[Paper Review] Introduction to Univalent Foundations of Mathematics with Agda
This paper introduces univalent foundations of mathematics using Agda, a proof assistant based on Martin-Löf type theory, enabling formalization of constructive mathematics with support for higher inductive types and univalence. It demonstrates how to develop mathematics—such as number theory, analysis, and topology—within a type-theoretic framework, with Agda verifying logical correctness, and outlines a path toward cubical Agda for full univalent mathematics.
We introduce Voevodsky's univalent foundations and univalent mathematics, and explain how to develop them with the computer system Agda, which is based on Martin-Löf type theory. Agda allows us to write mathematical definitions, constructions, theorems and proofs, for example in number theory, analysis, group theory, topology, category theory or programming language theory, checking them for logical and mathematical correctness. Agda is a constructive mathematical system by default, which amounts to saying that it can also be considered as a programming language for manipulating mathematical objects. But we can assume the axiom of choice or the principle of excluded middle for pieces of mathematics that require them, at the cost of losing the implicit programming-language character of the system. For a fully constructive development of univalent mathematics in Agda, we would need to use its new cubical flavour, and we hope these notes provide a base for researchers interested in learning cubical type theory and cubical Agda as the next step. Compared to most expositions of the subject, we work with explicit universe levels.
Motivation & Objective
- To provide a practical introduction to univalent foundations of mathematics using the Agda proof assistant.
- To demonstrate how Agda can be used to formally define and verify mathematical constructions in areas like number theory, analysis, and topology.
- To explain the role of explicit universe levels in univalent type theory and their importance for formalization.
- To guide researchers toward adopting cubical Agda for fully constructive univalent mathematics.
- To bridge foundational mathematics with computational implementation via a dependently typed language.
Proposed method
- Leverages Agda as a constructive type theory system to formalize mathematical definitions, theorems, and proofs.
- Uses Martin-Löf type theory as the foundational logic, with explicit universe levels to manage type hierarchies.
- Introduces univalence and higher inductive types as core principles for modeling mathematical structures in type theory.
- Supports classical reasoning (e.g., excluded middle, axiom of choice) in specific modules, though at the cost of losing computational interpretation.
- Relies on Agda’s type checker to verify logical and mathematical correctness of all formalizations.
- Provides a foundation for transitioning to cubical Agda, which supports univalent type theory natively with better computational behavior.
Experimental results
Research questions
- RQ1How can univalent foundations of mathematics be effectively formalized using a proof assistant like Agda?
- RQ2What role do explicit universe levels play in the formalization of univalent mathematics in Agda?
- RQ3How can constructive and classical mathematics coexist within a single Agda-based formalization framework?
- RQ4What are the practical challenges in developing univalent mathematics without cubical type theory?
- RQ5What is the pathway from standard Agda to cubical Agda for full univalent reasoning?
Key findings
- The paper successfully formalizes foundational mathematical theories—including number theory, analysis, group theory, and topology—within Agda using univalent foundations.
- Agda’s type system ensures logical and mathematical correctness of all definitions and proofs through automated checking.
- The use of explicit universe levels enables precise control over type hierarchies, which is essential for large-scale formalization.
- Classical principles like the axiom of choice and excluded middle can be postulated in specific modules, though they compromise the system’s computational interpretation.
- The framework provides a solid foundation for transitioning to cubical Agda, which is necessary for full support of univalence and higher inductive types.
- The entire formalization is available on GitHub, with verified mathematics and source code accessible for replication and extension.
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.