Type-based termination of recursive definitions
(co)inductive data types(co)recursive function definitionsCOQ systemtype-based proof assistant systemstyped lambda calculus
Combinatory logic and lambda calculus (03B40) Logic in computer science (03B70) Functional programming and lambda calculus (68N18) Semantics in the theory of computing (68Q55) Specification and verification (program logics, model checking, etc.) (68Q60) Abstract data types; algebraic specification (68Q65)
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.
- CIC\(\widehat{~}\): Type-based termination of recursive definitions in the calculus of inductive constructions
- A tutorial on type-based termination
- Practical inference for type-based termination in a polymorphic setting
- Termination checking with types
- On strong normalization of the calculus of constructions with type-based termination
- Inductively defined functions in functional programming languages
- Typed -calculus with recursive definitions
- Specification and verification of a formal system for structurally recursive functions
- A predicative analysis of structural recursion
- Inductive and coinductive components of corecursive functions in Coq
- Probabilistic termination by monadic affine sized typing
- Mixed inductive/coinductive types and strong normalization
- Polarised subtyping for sized types
- The computability path ordering: The end of a quest
- Type-based termination with sized products
- Using structural recursion for corecursion
- Implementing a normalizer using sized heterogeneous types
- On the relation between sized-types based termination and semantic labelling
- Size-based termination of higher-order rewriting
- Termination checking with types
- On strong normalization of the calculus of constructions with type-based termination
- Efficient lambda encodings for Mendler-style coinductive types in Cedille
- The Recursion Scheme from the Cofree Recursive Comonad
- A tutorial on type-based termination
- scientific article; zbMATH DE number 7168147 (Why is no real title available?)
- Well-founded recursion with copatterns and sized types
- Interactive programming in Agda -- objects and graphical user interfaces
- Practical inference for type-based termination in a polymorphic setting
- Compositional coinduction with sized types
- Partiality and recursion in interactive theorem provers -- an overview
- A user's friendly syntax to define recursive functions as typed λ-terms
- Is sized typing for Coq practical?
- A sound strategy to compile general recursion into finite depth pattern matching
- Map fusion for nested datatypes in intensional type theory
- Interpretations of recursively defined types
- Termination of rewrite relations on \(\lambda\)-terms based on Girard's notion of reducibility
- Type-based termination of generic programs
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)