Extending Homotopy Type Theory with Strict Equality

Thorsten Altenkirch,Paolo Capriotti,Nicolai Kraus
DOI: https://doi.org/10.4230/LIPIcs.CSL.2016.21
2016-10-29
Abstract:In homotopy type theory (HoTT), all constructions are necessarily stable under homotopy equivalence. This has shortcomings: for example, it is believed that it is impossible to define a type of semi-simplicial types. More generally, it is difficult and often impossible to handle towers of coherences. To address this, we propose a 2-level theory which features both strict and weak equality. This can essentially be represented as two type theories: an "outer" one, containing a strict equality type former, and an "inner" one, which is some version of HoTT. Our type theory is inspired by Voevosky's suggestion of a homotopy type system (HTS) which currently refers to a range of ideas. A core insight of our proposal is that we no not need any form of equality reflection in order to achieve what HTS was suggested for. Instead, having unique identity proofs in the outer type theory is sufficient, and it also has the meta-theoretical advantage of not breaking decidability of type checking. The inner theory can be an easily justifiable extensions of HoTT, allowing the construction of "infinite structures" which are considered impossible in plain HoTT. Alternatively, we can set the inner theory to be exactly the current standard formulation of HoTT, in which case our system can be thought of as a type-theoretic framework for working with "schematic" definitions in HoTT. As demonstrations, we define semi-simplicial types and formalise constructions of Reedy fibrant diagrams.
Logic in Computer Science
What problem does this paper attempt to address?
This paper attempts to address some of the limitations in Homotopy Type Theory (HoTT). Specifically, all constructions in HoTT must be stable under homotopy equivalence, which has led to some shortcomings. For example, it is considered impossible to define semi - simplicial types. More broadly, dealing with towers of coherences is often very difficult or even impossible. To solve these problems, the author proposes a 2 - level theory that includes both strict equality and weak equality. By introducing this two - level structure, the author hopes to overcome some of the limitations in HoTT without undermining the decidability of type - checking, thereby enabling the definition and manipulation of more complex mathematical structures. ### Main Contributions 1. **Proposing the 2 - level theory**: This theory combines Martin - Löf Type Theory (MLTT) with axiom K and HoTT, allowing strict and weak equalities to be handled within the same framework. 2. **Avoiding the equality reflection problem**: Unlike the HTS proposed by Voevodsky, this theory does not require any form of equality reflection, thus avoiding the complexity and undecidability issues that come with it. 3. **Defining semi - simplicial types**: Using the 2 - level theory, semi - simplicial types and other constructions that were previously considered undefinable in standard HoTT have been successfully defined. 4. **Formalizing Reedy fibrant diagrams**: It has been shown how to use strict equality to formalize the construction of Reedy fibrant diagrams, a task that is difficult to achieve in traditional HoTT. ### Specific Contents of the 2 - level Theory - **Outer - layer theory**: It contains strict equality types and internal equality satisfying axiom K. This layer can be regarded as an extension of MLTT K. - **Inner - layer theory**: It can be an extended version of HoTT that allows the construction of infinite structures, or it can directly adopt the current standard HoTT. In this way, the 2 - level theory provides a powerful tool for handling constructions that require strict equality in Homotopy Type Theory while retaining the core features of HoTT.