TY - JOUR
T1 - Call-by-value Termination in the Untyped λ-calculus
AU - Jones, Neil D.
AU - Bohr, Nina
PY - 2008
Y1 - 2008
N2 - AbstractA fully-automated algorithm is developed able to show that evaluation of a given untyped ¿-expression will terminate under CBV (call-by-value). The ``size-change principle'' from first-order programs is extended to arbitrary untyped ¿-expressions in two steps. The first step suffices to show CBV termination of a single, stand-alone ¿-expression. The second suffices to show CBV termination of any member of a regular set of ¿-expressions, defined by a tree grammar. (A simple example is a minimum function, when applied to arbitrary Church numerals.) The algorithm is sound and proven so in this paper. The Halting Problem's undecidability implies that any sound algorithm is necessarily incomplete: some ¿-expressions may in fact terminate under CBV evaluation, but not be recognised as terminating. The intensional power of the termination algorithm is reasonably high. It certifies as terminating many interesting and useful general recursive algorithms including programs with mutual recursion and parameter exchanges, and Colson's ``minimum'' algorithm. Further, our type-free approach allows use of the Y combinator, and so can identify as terminating a substantial subset of PCF.
AB - AbstractA fully-automated algorithm is developed able to show that evaluation of a given untyped ¿-expression will terminate under CBV (call-by-value). The ``size-change principle'' from first-order programs is extended to arbitrary untyped ¿-expressions in two steps. The first step suffices to show CBV termination of a single, stand-alone ¿-expression. The second suffices to show CBV termination of any member of a regular set of ¿-expressions, defined by a tree grammar. (A simple example is a minimum function, when applied to arbitrary Church numerals.) The algorithm is sound and proven so in this paper. The Halting Problem's undecidability implies that any sound algorithm is necessarily incomplete: some ¿-expressions may in fact terminate under CBV evaluation, but not be recognised as terminating. The intensional power of the termination algorithm is reasonably high. It certifies as terminating many interesting and useful general recursive algorithms including programs with mutual recursion and parameter exchanges, and Colson's ``minimum'' algorithm. Further, our type-free approach allows use of the Y combinator, and so can identify as terminating a substantial subset of PCF.
U2 - 10.2168/LMCS-4(1:3)2008
DO - 10.2168/LMCS-4(1:3)2008
M3 - Journal article
SN - 1860-5974
VL - 1
SP - 1
EP - 39
JO - Logical Methods in Computer Science
JF - Logical Methods in Computer Science
IS - 3
ER -