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 条
[21]   Propositions and higher-order attitude attributions [J].
Ludwig, Kirk .
CANADIAN JOURNAL OF PHILOSOPHY, 2013, 43 (5-6) :741-765
[22]   QPCF: Higher-Order Languages and Quantum Circuits [J].
Paolini, Luca ;
Piccolo, Mauro ;
Zorzi, Margherita .
JOURNAL OF AUTOMATED REASONING, 2019, 63 (04) :941-966
[23]   Theoretical framework for higher-order quantum theory [J].
Bisio, Alessandro ;
Perinotti, Paolo .
PROCEEDINGS OF THE ROYAL SOCIETY A-MATHEMATICAL PHYSICAL AND ENGINEERING SCIENCES, 2019, 475 (2225)
[24]   Graph IRs for Impure Higher-Order Languages [J].
Bracevac, Oliver ;
Wei, Guannan ;
Jia, Songlin ;
Abeysinghe, Supun ;
Jiang, Yuxuan ;
Bao, Yuyan ;
Rompf, Tiark .
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2023, 7 (OOPSLA)
[25]   Semantics of Higher-Order Probabilistic Programs with Conditioning [J].
Dahlqvist, Fredrik ;
Kozen, Dexter .
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2020, 4 (POPL)
[26]   A Relational Framework for Higher-Order Shape Analysis [J].
Kaki, Gowtham ;
Jagannathan, Suresh .
ACM SIGPLAN NOTICES, 2014, 49 (09) :311-324
[27]   Natural Inductive Theorems for Higher-Order Rewriting [J].
Aoto, Takahito ;
Yamada, Toshiyuki ;
Chiba, Yuki .
22ND INTERNATIONAL CONFERENCE ON REWRITING TECHNIQUES AND APPLICATIONS (RTA'11), 2011, 10 :107-121
[28]   A higher-order generalization of the NPK-method [J].
Birkelbach, Felix ;
Deutsch, Markus ;
Flegkas, Stylianos ;
Franz, Winter ;
Werner, Andreas .
THERMOCHIMICA ACTA, 2018, 661 :27-33
[29]   Formal Verification of Higher-Order Probabilistic Programs [J].
Sato, Tetsuya ;
Aguirre, Alejandro ;
Barthe, Gilles ;
Gaboardi, Marco ;
Garg, Deepak ;
Hsu, Justin .
PROCEEDINGS OF THE ACM ON PROGRAMMING LANGUAGES-PACMPL, 2019, 3 (POPL)
[30]   Verifying higher-order concurrency with data automata [J].
Dixon, Alex ;
Lazic, Ranko ;
Murawski, Andrzej S. ;
Walukiewicz, Igor .
2021 36TH ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2021,