[Paper Review] Formalizing Equivalences Without Tears
This paper presents a formal introduction to univalent foundations of mathematics using Agda, emphasizing constructive type theory with explicit universe levels and the consistent use of classical axioms like excluded middle and choice. It demonstrates how univalent mathematics—where equality is structure-preserving via identity types and equivalences are equivalent to identifications—can be developed constructively, with Agda ensuring logical correctness and enabling exploration of homotopy type theory and cubical type theory as a next step.
The aim of this paper is to refine and extend proposals by Sozeau and Tabareau and by Voevodsky for universe polymorphism in type theory. In those systems judgments can depend on explicit constraints between universe levels. We here present a system where we also have products indexed by universe levels and by constraints. Our theory has judgments for internal universe levels, built up from level variables by a successor operation and a binary supremum operation, and also judgments for equality of universe levels.
Motivation & Objective
- To provide a practical, formal introduction to univalent foundations of mathematics using Agda as a proof assistant.
- To demonstrate how univalent mathematics can be developed constructively within Martin-Löf type theory, even before assuming the univalence axiom.
- To clarify that classical axioms like excluded middle and choice can be consistently assumed in univalent type theory without breaking computational interpretation.
- To emphasize the automatic invariance of mathematical properties under equivalences (e.g., isomorphisms, equivalences) due to the identity type structure.
- To lay the groundwork for future work in cubical type theory and cubical Agda by introducing foundational concepts in a verified, literate Agda format.
Proposed method
- Using Agda to formalize mathematical definitions, constructions, theorems, and proofs in a dependently typed, constructive setting based on Martin-Löf type theory.
- Employing explicit universe levels to manage size distinctions and support large types such as the type of categories or monoids.
- Defining identity types as the primitive notion of equality, which collect all ways in which two objects can be equal, rather than truth values.
- Formalizing type equivalences uniformly across all type levels using Voevodsky’s definition, which generalizes isomorphism to higher groupoids.
- Applying the univalence axiom to equate type equivalences with identity types, ensuring that equivalent types are equal in the sense of the identity type.
- Using subsingleton truncations to distinguish between properties (existence without specification) and data (designated existence), enabling definitions like surjective functions and images.
Experimental results
Research questions
- RQ1How can univalent foundations be formalized in Agda using Martin-Löf type theory with explicit universe levels?
- RQ2What is the role of the univalence axiom in making type equivalences equivalent to identity types, and how does this affect the treatment of equality in mathematics?
- RQ3Can classical principles like the law of excluded middle and the axiom of choice be consistently assumed in univalent type theory without compromising its constructive nature?
- RQ4How does the identity type in univalent type theory automatically ensure invariance of properties under equivalences, such as isomorphisms of monoids or equivalences of categories?
- RQ5What is the significance of distinguishing between properties and structures in univalent mathematics, and how is this formalized using subsingleton truncations?
Key findings
- The identity type in univalent type theory automatically captures the correct notion of equality for all types: for sets like ℕ, it is a truth value; for monoids, it is the type of isomorphisms; for categories, it is the type of equivalences.
- Univalent foundations do not require a new type theory; they extend Martin-Löf type theory with the univalence axiom, which equates type equivalences with identity types.
- Classical axioms such as excluded middle and choice can be consistently assumed in univalent mathematics, though they break the computational interpretation; their univalent formulations differ from classical ones.
- The distinction between properties and structures is formalized via subsingleton truncations, enabling precise definitions of surjections and images without assuming choice.
- The paper demonstrates that even before assuming univalence, significant univalent mathematics—such as the automatic invariance of properties under equivalences—can be developed constructively in Agda.
- The formal development in Agda ensures logical correctness and provides a verified foundation for further exploration of cubical type theory and cubical Agda.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.