What changes when identity itself can carry mathematical structure?
Distinguish equality within a type from a path in its universe, and explain what univalence and cubical computation add.
Martin Hofmann and Thomas Streicher give an intensional type-theory model with distinct identity proofs. Uniqueness of identity proofs is therefore not derivable from the interpreted rules; equality can carry structure beyond a truth value.
Source: Hofmann and Streicher, The Groupoid Model Refutes Uniqueness of Identity Proofs (1994)In ordinary mathematical prose, equality often appears as a yes-or-no relationship. In intensional type theory, an equality is represented by an identity type, and that type can itself have mathematical structure.
Homotopy type theory investigates this structure through connections with topology and higher-dimensional mathematics. Univalent foundations develop a related account of when equivalent objects can be identified.
This is a particular foundational research program. It is not a feature automatically shared by every dependent-type proof assistant.
Returning to identity types
The dependent-type note introduced
the type of identifications between and in .
Reflexivity supplies an identification of with itself. Identity elimination supports constructions such as symmetry, transitivity, and transport along equality.
The rules of intensional type theory do not generally force all proofs of an identity to be identical. Whether such uniqueness can be derived is a mathematical question about the theory.
Martin Hofmann and Thomas Streicher's groupoid interpretation, presented in 1994 and developed further afterward, showed that uniqueness of identity proofs is not generally derivable in the relevant intensional setting.
Sources and credit for Thomas Streicher
VioWellnitz. Via Wikimedia Commons. Image source · CC0 · Biographical dates
Their model gave objects and identifications a structured interpretation. It provided an important precursor to the higher-dimensional viewpoint.
The path interpretation
Think of a type as a space and an identity between its elements as a path. A path between paths then represents an identity between identifications.
This picture is a guide to formal structure. It does not mean that every type is literally defined as a subset of Euclidean space or that every proof is an ordinary drawn curve.
Steve Awodey and Michael Warren developed homotopy-theoretic interpretations of identity types. Vladimir Voevodsky's work on simplicial models and univalence supplied another central strand.
Sources and credit for Steve Awodey
Schmid, Renate. Via Wikimedia Commons. Image source · CC BY-SA 2.0 de · Biographical dates
Sources and credit for Vladimir Voevodsky
Schmid, Renate. Via Wikimedia Commons. Image source · CC BY-SA 2.0 de · Biographical dates
The developments connected type theory with structures already studied in homotopy theory: points, paths, homotopies, and their higher relationships.
The connection changes the questions one can ask. Instead of assuming that all self-identifications are indistinguishable, one can study a type's loops and higher identity structure.
Models establish a precise consistency relationship
A geometric interpretation must validate the type constructors, substitution, and computation rules, not merely associate evocative pictures with formulas. Awodey and Warren's work on model categories, first circulated in 2007 and published in 2009, connected identity types with homotopical structure in that precise sense.
The simplicial construction developed from Voevodsky's work was documented by Kapulkin and Lumsdaine in The Simplicial Model of Univalent Foundations. Its universe constructions use set-theoretic size assumptions. Such a model supplies a relative consistency argument: a contradiction in the interpreted theory would induce one in the metatheory supporting the model. It is not an assumption-free proof of the entire foundation's consistency.
This continues a familiar historical pattern. As with set-theoretic independence and categorical semantics, a new interpretation clarifies which principles can coexist and which conclusions do not follow from older rules alone.
Transport as a concrete operation
Let be a family of types. If and , identity elimination gives
For a familiar example, suppose and . An equality between two lengths permits a vector to be regarded at the corresponding equal index.
Transport along reflexivity computes to the original term. For a more general identity, the operation records how the dependent information moves.
In the geometric interpretation, a family behaves like varying data over points of a base, and transport follows a path in that base. The formal rules and the picture reinforce one another, provided their levels are kept distinct.
Equivalence of types
A function is an equivalence when it has the appropriate invertibility property. One formulation says that each fiber
is contractible: it has a specified center and every element can be identified with that center.
This formulation includes coherence in a way suitable for higher identity. Merely writing two inverse-looking functions without stating the required equalities would leave the definition incomplete.
Write for the type of equivalences.
An identification in a universe always induces an equivalence, by identity elimination:
Reflexivity induces the identity equivalence. The question is whether every equivalence arises in this way with the appropriate uniqueness structure.
The univalence axiom
Univalence asserts that the canonical map from identifications to equivalences is itself an equivalence:
It makes precise a form of reasoning in which equivalent types can be identified within a universe.
This is stronger and more structured than the informal instruction to “treat isomorphic objects as the same.” It specifies how identity in the universe relates to equivalence and how dependent constructions respect it.
For example, a bijection between two finite sets can provide an identification of their underlying types in a suitable univalent setting. Transport then carries constructions expressed over those types.
If the objects also have operations, a bare equivalence of carrier types does not automatically preserve those operations. A group isomorphism must respect multiplication and the other structure. Structure-identity principles extend the analysis with such conditions.
The additional structure is what permits mathematical statements to transfer correctly.
A concrete consequence: two different loops at a type
Let be the Boolean type with distinct elements and . It has an identity equivalence and a swap equivalence sending to and to . These equivalences are different: if their underlying functions were equal, evaluating at would give .
Univalence turns into an identification
Transporting along in the family gives , up to the propositional computation law for univalence. Transport along reflexivity gives . Therefore cannot equal the reflexivity path: equality of those paths would force their transports to agree and hence identify with .
The nontrivial loop lives at the Boolean type as a point of the universe, not between the two Boolean elements. Booleans themselves can still be a set with ordinary discrete equality. This distinction prevents a common misunderstanding that univalence makes all values of equivalent types equal or collapses true and false.
In the axiomatic presentation, the transport equation is generally propositional, not automatically a reduction rule executed by the original evaluator. That difference motivates the computational developments below. The HoTT book, Chapters 2–3, develops the identity and universe distinctions used in this example.
Propositions, sets, and higher types
The hierarchy can be stated internally. A type is a mere proposition when any two of its elements are equal. A type is a set, or 0-type, when each identity type is a mere proposition. A 1-type has set-valued identity types, and the pattern continues.
Being a mere proposition does not mean being inhabited. The empty type qualifies: there are no two inhabitants that could differ. Being a set does not mean having only one element: the Boolean type qualifies even though .
For existence, the dependent sum contains a witness together with evidence. Its propositional truncation, written , retains mere existence while hiding the choice of witness. Its elimination principle permits conclusions in mere propositions, rather than an unrestricted extraction of an arbitrary witness.
Consequently, “there exists” and “here is an element” can have different formal representations. Classical principles must also be formulated at the appropriate level: excluded middle for mere propositions is not an assertion that every arbitrary type has decidable, uniquely determined data.
A circle with a specified loop
A higher inductive type can specify both point constructors and path constructors.
The circle is described informally by a point
and a loop
The associated elimination principle says what data are needed to define a map out of the circle: an image point and a compatible loop at that point, with the appropriate computation rules.
The loop is not imposed as equal to reflexivity. In the developed theory, the loop space of the circle can be related to the integers, with winding around the circle corresponding to positive and negative iterations.
That statement requires a substantial proof, commonly organized through an encode–decode method. Daniel Licata and Michael Shulman's 2013 account describes a type-theoretic calculation of the fundamental group. The construction uses a family over the circle whose fiber at the base is the integers and whose transport around the generating loop acts by successor. Encoding a loop transports zero; decoding an integer iterates the loop or its inverse. Proving that these operations are inverse supplies the mathematical content. The constructor declarations alone do not prove the calculation.
The example shows why higher identity is mathematically useful. A type can present a space through generators and identifications rather than encoding every construction indirectly in a set-theoretic representation.
The collaborative development of HoTT
The 2012–2013 special year at the Institute for Advanced Study brought together researchers working on type theory, homotopy, and univalent foundations.
The resulting Homotopy Type Theory: Univalent Foundations of Mathematics was a collaborative 2013 book, developed through an unusually open writing process.
Its organization moves from type-theoretic foundations to homotopy theory, set-level mathematics, and other applications. The book is an important synthesis, not the beginning of every idea it presents.
Contributors and antecedents matter because the field combined several mathematical traditions. Assigning the entire development to a single theorem prover or a single publication would obscure its substance.
Why computation became a new problem
Adding an axiom to a type theory may provide new proofs without providing reduction rules for the new constants.
For univalence and higher inductive constructions, researchers wanted a computational account compatible with the constructive aims of type theory. A proof involving transport should ideally support meaningful evaluation, with appropriate normalization or canonicity results.
Cubical approaches use interval-like dimensions and operations on higher-dimensional objects. Work by Marc Bezem, Thierry Coquand, Simon Huber, and others developed models; Cyril Cohen, Coquand, Huber, and Anders Mörtberg presented an influential cubical type theory.
Sources and credit for Thierry Coquand
Andrej Bauer. Via Wikimedia Commons. Image source · CC BY-SA 2.5 si · Biographical dates
Their paper provides a constructive treatment in which univalence is supported by the theory's computational structure. Related work establishes canonicity results and extends the treatment of higher inductive types.
The precise result depends on the particular cubical calculus. Huber's canonicity theorem establishes, for the system studied, that a closed natural-number term computes to a numeral, with a stronger statement allowing a context of name variables. Canonicity is a concrete computational property; it is not a synonym for normalization of every expression or for decidability of every mathematical proposition.
“Cubical” names a family of approaches, not a single interchangeable implementation. Rules for universes, composition, higher inductive types, and judgmental equality must be checked for the particular calculus being used.
What this does and does not imply for assistants
Ordinary Lean foundations use a proof-irrelevant proposition-valued equality: any two proofs of the same equality are identified. As the Lean reference specifies, this is built into its treatment of propositions. Consequently, univalence for a universe containing the Boolean type cannot simply be added consistently for Lean's native equality. The identity and swap equivalences would yield two distinct universe identifications by the argument above, while proof irrelevance would identify them. A univalent interpretation requires a different foundational account, rather than an extra axiom for that same native equality.
Coq/Rocq, Agda, and other ecosystems support different libraries, extensions, or specialized modes with their own rules. In each case, the choice of identity type and any uniqueness principles must be checked before transferring a HoTT argument.
A claim that a theorem has been checked must therefore specify the system and assumptions. A theorem in a HoTT library and a theorem in an ordinary classical higher-order or proof-irrelevant dependent theory may rest on different foundations.
HoTT also does not replace all earlier proof theory, set theory, or categorical logic. It creates new connections and new foundational possibilities while leaving those fields with their own questions.
From foundations to learned proof search
The type system determines what counts as an acceptable proof. The process of finding such a proof can use many different methods, including statistical prediction.
The final main note examines how learned systems interact with formal libraries and checkers, and why successful search must still be distinguished from faithful formalization and new mathematical discovery.
Check your understanding: does univalence identify the two Boolean values?
The swap equivalence yields a path from the Boolean type to itself. Does that give a proof that within the Boolean type?
No. The path is in the universe of types. Transport along it swaps the two values; transport along reflexivity preserves them. This difference proves that the universe path is nontrivial. It leaves the two values distinct inside their Boolean type. Equality at one type level must not be confused with equality at another.
Sources and further reading
-
Martin Hofmann and Thomas Streicher, “The Groupoid Model Refutes Uniqueness of Identity Proofs” (1994); “The Groupoid Interpretation of Type Theory” (1998).
-
Steve Awodey and Michael A. Warren, “Homotopy Theoretic Models of Identity Types”, preprint 2007, publication 2009.
-
The Univalent Foundations Program, Homotopy Type Theory: Univalent Foundations of Mathematics (2013).
-
Cyril Cohen, Thierry Coquand, Simon Huber, and Anders Mörtberg, “Cubical Type Theory: A Constructive Interpretation of the Univalence Axiom”, preprint 2016, proceedings publication 2018.
-
Simon Huber, “Canonicity for Cubical Type Theory” (2016 preprint).
-
Marc Bezem, Thierry Coquand, and Simon Huber, “The Univalence Axiom in Cubical Sets” (2017 preprint).
-
Chris Kapulkin and Peter LeFanu Lumsdaine, “The Simplicial Model of Univalent Foundations (after Voevodsky)”, for the semantic construction and its metatheoretic assumptions.
-
Daniel R. Licata and Michael Shulman, “Calculating the Fundamental Group of the Circle in Homotopy Type Theory” (2013).