Internal parametricity, without an interval

07/12/2023
by   Thorsten Altenkirch, et al.
0

Parametricity is a property of the syntax of type theory implying e.g. that there is only one function having the type of the polymorphic identity function. Parametricity is usually proven externally, and does not hold internally. Internalising it is difficult because once there is a term witnessing parametricity, it also has to be parametric itself and this results in the appearance of higher dimensional cubes. In previous theories with internal parametricity, either an explicit syntax for higher cubes is present or the theory is extended with a new sort for the interval. In this paper we present a type theory with internal parametricity which is a simple extension of Martin-Löf type thoery: there are a few new type formers, term formers and equations. Geometry is not explicit in this syntax, but emergent: the new operations and equations only refer to objects up to dimension 3. We show that this theory is modelled by presheaves over the BCH cube category. Fibrancy conditions are not needed because we use span-based rather than relational parametricity. We define a gluing model for this theory implying that external parametricity and canonicity hold. The theory can be seen as a special case of a new kind of modal type theory, and it is the simplest setting in which the computational properties of higher observational type theory can be demonstrated.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
01/23/2018

Internal Universes in Models of Homotopy Type Theory

We show that universes of fibrations in various models of homotopy type ...
research
07/18/2023

Towards a geometry for syntax

It often happens that free algebras for a given theory satisfy useful re...
research
05/22/2020

Internal Parametricity for Cubical Type Theory

We define a computational type theory combining the contentful equality ...
research
02/10/2023

For the Metatheory of Type Theory, Internal Sconing Is Enough

Metatheorems about type theories are often proven by interpreting the sy...
research
02/27/2021

Generalized Universe Hierarchies and First-Class Universe Levels

In type theories, universe hierarchies are commonly used to increase the...
research
09/06/2022

Variable binding and substitution for (nameless) dummies

By abstracting over well-known properties of De Bruijn's representation ...
research
07/12/2018

Gradual Parametricity, Revisited (with Appendix)

Bringing the benefits of gradual typing to a language with parametric po...

Please sign up or login with your details

Forgot password? Click here to reset