Affiliation:
1. University of Gothenburg, Sweden
2. Chalmers University of Technology, Sweden
3. ENS Paris-Saclay, France
Abstract
Sized types have been developed to make termination checking more perspicuous, more powerful, and more modular by integrating termination into type checking. In dependently-typed proof assistants where proofs by induction are just recursive functional programs, the termination checker is an integral component of the trusted core, as validity of proofs depend on termination. However, a rigorous integration of full-fledged sized types into dependent type theory is lacking so far. Such an integration is non-trivial, as explicit sizes in proof terms might get in the way of equality checking, making terms appear distinct that should have the same semantics.
In this article, we integrate dependent types and sized types with higher-rank size polymorphism, which is essential for generic programming and abstraction. We introduce a size quantifier ∀ which lets us ignore sizes in terms for equality checking, alongside with a second quantifier Π for abstracting over sizes that do affect the semantics of types and terms. Judgmental equality is decided by an adaptation of normalization-by-evaluation for our new type theory, which features
type shape
-directed reflection and reification. It follows that subtyping and type checking of normal forms are decidable as well, the latter by a bidirectional algorithm.
Publisher
Association for Computing Machinery (ACM)
Subject
Safety, Risk, Reliability and Quality,Software
Reference55 articles.
1. Semi-continuous Sized Types and Termination
2. Towards Normalization by Evaluation for the βη-Calculus of Constructions
3. Type-Based Termination, Inflationary Fixed-Points, and Mixed Inductive-Coinductive Types
4. Andreas Abel. 2013. Normalization by Evaluation: Dependent Types and Impredicativity. Unpublished. http://www.tcs.ifi. lmu.de/~abel/habil.pdf Andreas Abel. 2013. Normalization by Evaluation: Dependent Types and Impredicativity. Unpublished. http://www.tcs.ifi. lmu.de/~abel/habil.pdf
5. A predicative analysis of structural recursion
Cited by
16 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献