CPL - Chalmers Publication Library

# Normalization by evaluation for sized dependent types

Andreas Abel (Institutionen för data- och informationsteknik (GU) ; Institutionen för data- och informationsteknik, Datavetenskap, Programmeringslogik (Chalmers)) ; Andrea Vezzosi (Institutionen för data- och informationsteknik, Datavetenskap (Chalmers)) ; Theo Winterhalter
Proceedings of the ACM on Programming Languages (2475-1421). Vol. 1 (2017), ICFP, p. 33:1--33:3.
[Konferensbidrag, refereegranskat]

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 (\forall) 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.

Nyckelord: dependent types, eta-equality, normalization-by-evaluation, proof irrelevance, sized types, subtyping, universes

CPL Pubid: 252072

# Läs direkt!

Lokal fulltext (fritt tillgänglig)

Länk till annan sajt (kan kräva inloggning)

# Institutioner (Chalmers)

Institutionen för data- och informationsteknik (GU) (GU)