Type-based termination of recursive definitions

From MaRDI portal





The purpose of this paper is to introduce \(\lambda^\wedge\), a typed \(\lambda\)-calculus supporting inductive types and recursive function definitions. The salient feature of the \(\lambda^\wedge\) system are its type-based approach to ensure termination through the notion of stage, and its support for stage polymorphism. More concretely, the authors formalize the notion of tape-based termination using a restricted form of type dependency (known as indexed types). This leads to a simple and intuitive system that is shown to fulfill subject reduction and strong normalization of typable terms. \(\lambda^\wedge\)-calculus is powerful enough to encode many recursive definitions rejected by other existing type systems, scales up to mutually inductive types and supports separate compilation. Finally, in comparison to the \(\lambda_G\) system (where termination is ensured by a syntactic guard condition), \(\lambda^\wedge\) provides a much clearer syntax, admits a clean semantics, and it is robust to several extensions such as mutually (co)inductive data types and mutually (co)recursive function definitions. This makes the typed \(\lambda^\wedge\)-calculus a good basic candidate for type theory-based proof-assistants such as the COQ system. The paper is organized as follows: Section 2 of the paper presents the \(\lambda^\wedge\) system formally, as a simply typed lambda calculus featuring strongly positive, finitely iterated parametric inductive types, and type-based termination of recursive definitions. Section 3 shows that the \(\lambda^\wedge\)-calculus is well-behaved and possesses two important meta-theoretic properties: subject reduction and strong normalization of typable terms. Section 4 introduces the \(\lambda_G\) system, a simply typed \(\lambda\)-calculus with inductive types, for which termination of typable recursively defined functions is ensured by a syntactic guard condition \(G\) constraining uses of recursive calls in the body of definitions. \(\lambda^\wedge\) is proved to strictly extend the \(\lambda_G\) system. Section 5 considers the mechanism of extending the \(\lambda^\wedge\)-calculus to coinductive types, introduced as infinite objects into type theory modelling the perpetual computations (e.g., met in process systems). Section 6 discusses related work for \(\lambda^\wedge\)-calculus, comparing it to five main families of other similar lambda calculi. Conclusions and future research directions are outlined in the final Section 7.




Cited in
(32)


Describes a project that uses

Uses Software






This page was built for publication: Type-based termination of recursive definitions

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q4463991)