Typing termination in a higher-order concurrent imperative language

被引:10
作者
Boudol, Gerard [1 ]
机构
[1] INRIA Sophia Antipolis, F-06902 Sophia Antipolis, France
关键词
RECURSIVE TYPES; INFORMATION-FLOW; SEMANTICS; PROGRAMS; STORAGE;
D O I
10.1016/j.ic.2009.06.007
中图分类号
TP301 [理论、方法];
学科分类号
081202 ;
摘要
We propose means to predict termination in a higher-order imperative and concurrent language a la ML. We follow and adapt the classical method for proving termination in typed formalisms, namely the realizability technique. There is a specific difficulty with higher-order state, which is that one cannot define a realizability interpretation simply by induction on types, because applying a function may have side-effects at types not smaller than the type of the function. Moreover, such higher-order side-effects may give rise to computations that diverge without resorting to explicit recursion. We overcome these difficulties by introducing a type and effect system for our language that enforces a stratification of the memory. The stratification prevents the circularities in the memory that may cause divergence, and allows us to define a realizability interpretation of the types and effects, which we then use to establish that typable sequential programs in our system are guaranteed to terminate, unless they use explicit recursion in a divergent way. We actually prove a more general fairness property, that is, any typable thread yields the scheduler after some finite computation. Our realizability interpretation also copes with dynamic thread creation. (C) 2010 Elsevier Inc. All rights reserved.
引用
收藏
页码:716 / 736
页数:21
相关论文
共 50 条
[41]   Alpha-Renaming of Higher-Order Meta-Expressions [J].
Sabel, David .
PROCEEDINGS OF THE 19TH INTERNATIONAL SYMPOSIUM ON PRINCIPLES AND PRACTICE OF DECLARATIVE PROGRAMMING (PPDP 2017), 2017, :151-162
[42]   HIGHER-ORDER INTERACTIONS (BIPOLAR OR NOT) IN ABSTRACT ARGUMENTATION: A STATE OF THE ART [J].
Cayrol, Claudette ;
Cohen, Andrea ;
Lagasquie-Schiex, Marie-Christine .
JOURNAL OF APPLIED LOGICS-IFCOLOG JOURNAL OF LOGICS AND THEIR APPLICATIONS, 2021, 8 (06) :1339-1435
[43]   Validity of Attacks Related to Argument Set in Higher-Order Argumentation Frameworks [J].
Li, Hengfei ;
Wu, Jiachao .
LOGIC AND ARGUMENTATION, CLAR 2025, 2025, 15712 :139-149
[44]   Higher-order Recursion Schemes and Collapsible Pushdown Automata: Logical Properties [J].
Broadbent, Christopher H. ;
Carayol, Arnaud ;
Ong, C-H Luke ;
Serre, Olivier .
ACM TRANSACTIONS ON COMPUTATIONAL LOGIC, 2021, 22 (02)
[45]   Self-Formalisation of Higher-Order LogicSemantics, Soundness, and a Verified Implementation [J].
Ramana Kumar ;
Rob Arthan ;
Magnus O. Myreen ;
Scott Owens .
Journal of Automated Reasoning, 2016, 56 :221-259
[46]   Logical Encoding of Argumentation Frameworks with Higher-order Attacks and Evidential Supports [J].
Cayrol, Claudette ;
Lagasquie-Schiex, Marie-Christine .
INTERNATIONAL JOURNAL ON ARTIFICIAL INTELLIGENCE TOOLS, 2020, 29 (3-4)
[47]   Resolving Inductive Definitions with Binders in Higher-Order Typed Functional Programming [J].
Lakin, Matthew R. ;
Pitts, Andrew M. .
PROGRAMMING LANGUAGES AND SYSTEMS, PROCEEDINGS, 2009, 5502 :47-61
[48]   Trading volume and realized higher-order moments in the Australian stock market [J].
Ahadzie, Richard Mawulawoe ;
Jeyasreedharan, Nagaratnam .
JOURNAL OF BEHAVIORAL AND EXPERIMENTAL FINANCE, 2020, 28
[49]   Higher-Order Approximate Relational Refinement Types for Mechanism Design and Differential Privacy [J].
Barthe, Gilles ;
Gaboardi, Marco ;
Arias, Emilio Jesus Gallego ;
Hsu, Justin ;
Roth, Aaron ;
Strub, Pierre-Yves .
ACM SIGPLAN NOTICES, 2015, 50 (01) :55-68
[50]   Algebraic Temporal Effects: Temporal Verification of Recursively Typed Higher-Order Programs [J].
Sekiyama, Taro ;
Unno, Hiroshi .
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2025, 9 (POPI)