natural deduction metalanguage, practical foundations
type theory (dependent, intensional, observational type theory, homotopy type theory)
computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory
equality (definitional, propositional, computational, judgemental, extensional?, intensional?, decidable)
identity type, equivalence of types, definitional isomorphism
isomorphism, weak equivalence, homotopy equivalence, weak homotopy equivalence, equivalence in an (∞,1)-category
Examples.
(in category theory/type theory/computer science)
of all homotopy types
of (-1)-truncated types/h-propositions
homotopy theory, (∞,1)-category theory, homotopy type theory
flavors: stable, equivariant, rational, p-adic, proper, geometric, cohesive, directed…
models: topological, simplicial, localic, …
see also algebraic topology
Introductions
Definitions
Paths and cylinders
Homotopy groups
Basic facts
Theorems
In intensional type theory, identity types behave like path space objects; this viewpoint is called homotopy type theory. This induces furthermore a notion of homotopy fibers, hence of homotopy equivalences between types.
On the other hand, if type theory contains a type universe , so that types can be considered as points of , then between two types we also have an identity type . The univalence axiom says that these two notions of “sameness” for types are the same.
Extensionality principles like function extensionality, propositional extensionality (where and are h-propositions), and univalence (“typal extensionality”) are naturally regarded as a stronger form of identity of indiscernibles. In particular, the consistency of univalence means that in Martin-Löf type theory without univalence, one cannot define any predicate that provably distinguishes isomorphic types; thus isomorphic types are “externally indiscernible”, and univalence incarnates that principle internally by making them identical.
The name univalence (due to Voevodsky, see Voevodsky 14 for etymology) comes from the following reasoning. A fibration or bundle of some sort is commonly said to be universal if every other bundle of the same sort is a pullback of in a unique way (up to homotopy). Less commonly, a bundle is said to be versal if every other bundle is a pullback of it in some way, not necessarily unique. By contrast, a bundle is said to be univalent if every other bundle is a pullback of it in at most one way (up to homotopy). In the language of (∞,1)-category theory, a univalent bundle is an object classifier.
The univalence axiom does not literally say that anything is univalent in this sense. However, it is equivalent to saying that the canonical fibration over is univalent: every fibration with -small fibers is an essentially unique pullback of this one. For a description of this equivalence, see section 4.8 of the HoTT Book (syntactically) and Gepner-Kock (semantically).
Univalence is a commonly assumed axiom in homotopy type theory, and is central to the proposal (Voevodsky) that this provides a natively homotopy theoretic foundation of mathematics (see at univalent foundations for mathematics).
We work in a dependent type theory with identity types, dependent product types, and dependent sum types.
There are multiple notions of equivalence types in dependent type theory, which can be used for a definition of univalence for a type universe ; these include
Let us assume an abstract family of equivalence types with the property that for each type we have an identity equivalence .
Fix a Tarski universe in the sense of a type with a type family . There is a reflexive graph whose type of vertices is , whose type of edges from to is
and whose reflexivity map sends to . The reflexivity map induces, for , a function
defined using identity elimination with .
The Tarski universe is univalent if the induced is a univalent as a reflexive graph, i.e., if one of the following conditions (equivalent by the fundamental theorem of identity types) holds:
For each the type of elements such that is a contractible type.
For each and , the function is an equivalence of types
There is a family of equivalences
is an identity system.
For each and , the function is a retraction:
(This is due to Daniel Licata in Licata 16.)
The family with its reflexivity map satisfies the universal property of the weak identity type .
See fundamental theorem of identity types for proofs that these definitions are the same.
Assuming function extensionality, Ian Orton and Andrew Pitts (Orton and Pitts 19) showed that the univalence axiom can be simplified to the following special cases:
The proof constructs (for ) as the composite
and uses and to compute that , hence by function extensionality .
In the absence of function extensionality, this set of axioms is conjectured to be weaker than univalence. In addition, unlike the definitions above, this definition of univalence cannot be generalized to reflexive graphs.
Due to the usual univalence axiom, we know that it is consistent to resize the identity types of a universe to be -small.
Resizing the identity types allows for one more version of univalence, where we replace the equivalence of types between the identity type and the type of equivalences of the universe in the univalence axioms with the identity type of the universe , resulting in the statement that for all small types and , there is an identification
This implies the usual version of univalence either through identification elimination, transport, and action on identifications for the identity type. On the other hand, the usual version of univalence implies this version of univalence by repeated applications of univalence.
There are a few variants of univalence that are stricter than the usual axiom of univalence in that they use judgmental equalities and thus have to be expressed as (possibly multiple) inference rules instead of an axiom.
There is a variant of univalence called definitional univalence or judgmental univalence, which says that for and , the function inductively defined in the previous section is a definitional isomorphism instead of an equivalence of types.
Unlike the case for the usual typal variant of univalence, where one can use an element of an equivalence type, we cannot use definitional isomorphisms as elements of definitional isomorphism types to express definitional univalence, because the large recursion principle of the interval type together with definitional isomorphism types implies equality reflection, which contradicts univalence.
Mike Shulman's model of higher observational type theory uses the type of -small one-to-one correspondences for in definitional univalence.
There is another variant of univalence where we replace the equivalence of types between the identity type and the type of equivalences of the universe in the univalence axioms with judgmental equality of types, resulting in the statement that for all small types and , one could judge that . This implies the usual version of univalence through the structural rules for judgmental equality. The interpretation of such a univalent universe is that identifications of universes are equivalences of types.
Such univalent Tarski universes can be defined directly using inference rules instead of a judgmental equality, which say that identities are equivalences of types and . Namely, given function types and the isEquiv type family, one could add rules to the type theory which says that behaves as an equivalence type:
Introduction rules:
Elimination rules:
Computation rules:
Uniqueness rules:
Van den Berg (Van den Berg 20, Definition 2.13) gives a definition of univalent fibration in a path category which can be translated into type theory as follows:
Notably, this variant of the univalence axiom can be unfolded and presented as a pair of inference rules in a type theory with only identity types, dependent sum types, and . All uses of dependent product types can be replaced with hypothetical judgements.
Assuming dependent product types with function extensionality, this is equivalent to the univalence axiom (Licata 16). If function extensionality is not explicitly assumed, it is an open question whether it is equivalent to the univalence axiom (or equivalently, that it implies function extensionality). This is observed in Remark 4.6 of Swan 24. It is, however, equivalent to Orton and Pitts’ set of axioms.
Let be a locally cartesian closed model category in which all objects are cofibrant.
By the categorical semantics of homotopy type theory, a dependent type
corresponds to a morphism in that is a fibration between fibrant objects.
Then the dependent function type
is interpreted as the internal hom in the slice category after extending to the context by pulling back along the two projections , respectively. Hence this is interpreted as
Consider then the diagonal morphism in as an object of . We would like to define a morphism
in . By the defining (product internal hom)-adjunction, it suffices to define a morphism
in . But now by the universal property of pullback, it suffices to define just in a morphism
And since the composite pullback along either composite
is the identity, both and are isomorphic to ; thus here we can take the identity morphism.
Now, using the path object factorization in
by an acyclic cofibration followed by a fibration, we obtain a fibrant replacement of in the slice model category .
Since also is fibrant by the axioms on the locally cartesian closed model category , we have a lift in the diagram in
This lift is the interpretation of the path induction that deduces a map on all paths from one on just the identity paths .
Finally, let be the subobject on the weak equivalences (…), and observe that and factor through this to give a morphism
The fibration is univalent in if this morphism is a weak equivalence. By the 2-out-of-3 property, of course, it is equivalent to ask that be a weak equivalence.
(…)
We specialize the general discussion above to the realization in sSet, equipped with the standard model structure on simplicial sets.
For any fibration (Kan fibration) between fibrant objects (Kan complexes), consider first the simplicial set
defined as the internal hom in the slice category .
Notice that the vertices of this simplicial set over a fixed pair of vertices in form the set of morphisms between the fibers in .
This is because – by the defining property of the internal hom in the slice and using that products in are pullbacks in – the horizontal morphisms of simplcial sets in
correspond bijectively to the horizontal morphisms in
in , which are precisely morphisms .
Let then
be the full sub-simplicial set on those vertices that correspond to weak equivalences ((weak) homotopy equivalences).
By a similar consideration, one sees that the diagonal morphism in , regarded as an object , comes with a canonical morphism
The fibration is univalent, precisely when this morphism is a weak equivalence.
This appears originally as Voevodsky, def. 3.4
(…)
See (Shulman 15, UF 13)
(…)
The univalence axiom implies function extensionality.
A commented version of a formal proof of this fact can be found in (Bauer-Lumsdaine).
Mike Shulman proved in this MathOverflow post that given a type universe , large elimination of the interval type for -small types is equivalent to the univalence axiom for .
The univalence axiom can be used to deduce facts about the homotopy level of a univalent universe. For example (compare Theorem 7.1.11 in the HoTT Book):
Let . If is a univalent Tarski universe such that is an -type for all , then is an -type.
In particular, if is any univalent universe, then the subtype of -types in is a univalent universe (see Rijke 22, Proposition 17.2.1) and an -type.
Conversely, univalence can also imply lower bounds on the homotopy level of a universe. For example (Example 3.1.9 in the HoTT Book):
Let be a univalent Tarski universe. If contains a type of booleans , then is not an h-set.
This follows from the fact that is not an h-proposition; the role of here can be played by any type with a non-trivial automorphism. Similarly, a univalent universe containing a circle type cannot be an h-groupoid, since is equivalent to .
Kraus and Sattler consider univalent universes containing other univalent universes and show:
(Kraus–Sattler 15, Theorem 5.9) Let for be a collection of univalent universes such that
Then is not an -type.
The above has consequences for the compatibility of univalence with uniqueness of identity proofs (UIP), or equivalently axiom K. By Proposition , UIP for all types is inconsistent with the existence of a univalent universe containing a type of booleans (or other type with a non-trivial automorphism). On the other hand, a type theory can consistently contain a univalent universe that satisfies UIP, in the sense that all types in are h-sets. The univalent universe in the Hofmann–Streicher groupoid model is of this kind, as is the subtype of h-sets in any univalent universe .
The principle of the excluded middle is consistent with the existence of any number of univalent universes. This is because the principle of excluded middle as traditionally defined in mathematics is about propositions or (-1)-truncated types.
Dependent type theory with excluded middle and universes satisfying the univalence axiom has semantics in boolean -toposes. A short proof of the excluded middle for the simplicial model can be found in Kapulkin–Lumsdaine 20.
However, there is a global choice axiom which is inconsistent with the existence of sufficiently non-trivial univalent universes (Escardó 12):
This is sometimes called “excluded middle” in the propositions as types interpretation of type theory, where the principle of excluded middle is reinterpreted so that types are used instead of mere propositions. But this principle is much stronger than the excluded middle for mere propositions, being of comparable strength to a choice operator and implying that every type is an h-set.
If we extend Martin-Löf type theory with an axiom stating that a universe is univalent, we get a type theory which does not satisfy canonicity: there exist terms in the empty context which are not judgmentally equal to any numeral. For example, if is some equivalence (such as the identity equivalence), then is such a term: although there is a typal equality , there is no judgmental equality. This can be shown using normalization for MLTT to compare the normal forms of and , treating judgments of the extended theory as judgments of MLTT with an extra hypothesis in the context stating that is univalent.
Despite this, it is possible to extend Martin-Löf type theory with univalent universes further to create a theory that does enjoy canonicity. Cubical type theories are examples of such theories which can support an infinite hierarchy of univalent universes; see cubical type theory for more details. An earlier canonicity result for a type theory with one univalent universe where every type is an h-groupoid was proven by Harper and Licata (Harper and Licata 12).
A separate question is whether Martin-Löf type theory extended with one or more univalent universes satisfies the weaker homotopy canonicity property. In 2019, Christian Sattler and Krzysztof Kapulkin announced a proof of this result; the proof has been described in talks (Sattler 19) but has not appeared publicly. Rafaël Bocquet gives a second proof of homotopy canonicity in a preprint (Bocquet 23). Earlier homotopy canonicity results for truncated versions of univalent type theory were shown by Shulman (Shulman 15, Section 13). Shulman 15, Theorem 13.7 shows that Martin-Löf type theory with
has homotopy canonicity. Shulman 15, Theorem 13.12 shows that Martin-Löf type theory with
has homotopy canonicity. The proofs use Artin gluing of a suitable type-theoretic fibration category with the categories Set and Grpd, respectively, effectively inducing canonicity from these categories. By (Shulman 15, remark 13.13), for this construction to generalize to a univalent type theory without a global truncation axiom, one seems to need a sufficiently strict global sections functor with values in some model for infinity-groupoids. The proofs in Sattler 19 and Bocquet 23 address this problem in different ways.
In a post to the Homotopy Type Theory Google Group, Peter LeFanu Lumsdaine wrote:
Let be any pointed type, and be a universe (with rules as I set out a couple of emails ago). Then is again a universe, admitting all the same constructors as : take
,
,and so on; that is, constructor operations on are constantly on the first component, and mirror those of on the second component.
Now if is univalent, and has non-trivial (e.g. ), then ) gives a univalent universe sitting inside a non-univalent one (again, with the rules as I set out earlier).
Slightly more generally, given any cumulative pair of universes , we can consider ; this shows we can additionally have the smaller universe represented by an element of the larger one.
[N]ot only is not univalent, it’s not even “univalent on the image of ”, as was the case for the example in the groupoid model that I mentioned.
In dependent type theory with type variables, presented using a single type judgment and with identity types between types, it is possible to state the univalence axiom without any type universes.
The univalence axiom states that the function
inductively defined by
is an equivalence of types for all types and ,
where is the identity function on the type . This is given by the following axiom:
In impredicative polymorphism, this is also given by the following axiom:
Unlike the other presentation of dependent type theory in terms of universes, in this presentation of dependent type theory with a type judgment and type variables, it is consistent to assume both the univalence axiom and an axiom of set truncation like UIP or axiom K, since here there is no universe, provided one doesn’t have any higher types, such as the circle type.
There is one other version of univalence, where we replace the equivalence of types between the identity type and the type of equivalences of the universe in the univalence axioms with the identity type, resulting in the statement that for all small types and , there is an identification .
This implies the usual version of univalence either through identification elimination, transport, and action on identifications for the identity type.
Univalence is closely related to the “completeness” condition in the theory of Segal spaces/semi-Segal spaces. See complete Segal space/_complete semi-Segal space.
contrary to univalence is the axiom UIP
For more references see also at homotopy type theory.
Arguably, the earliest occurrence of a version of the univalence axiom is due – under the name “universe extensionality” – to:
Strictly speaking, univalence for propositions has a much longer pedigree, this that can and does hold even in set-level foundations, but this is the earliest version of univalence that goes beyond what is possible there. However, their universe extensionality axiom is stated only for h-sets, and would be incorrect if naively generalized to higher types. The correct statement that works for higher types requires a better definition of equivalences in homotopy type theory (see there for details), which Voevodsky was the first to give.
For comments on the early history see also:
It is this notion of equivalence in homotopy type theory which was fixed in
ever since the univalence axiom is widely attributed to Voevodsky. Earlier documentation of the univalence axiom in modern form is hard to come by:
The first technical understanding of (the semantics of) univalence in simplicial sets seems to be due to:
(which 6 years later came to be written up as Kapulkin, Lumsdaine & Voevodsky12 and another 10 years later was published as Kapulkin & Lumsdaine 2021).
The first mentioning by Voevodsky of the term “univalence” by email is 3.5 years later, from Dec. 30 2009 (according to Grayson, Oct. 2017).
The earliest recorded statement of the univalence axiom by Voevodsky’s hand date may be Voevodsky (2010), p. 11
see also:
Vladimir Voevodsky, The equivalence axiom and univalent models of type theory (Talk at CMU on February 4, 2010) (arXiv:1402.5556)
Vladimir Voevodsky, Univalent foundations – new type-theoretic foundations of mathematics, talk at IHP 2014 (pdf)
Later in:
appears the claim that:
have been working on the ideas that led to the discovery of univalent models since 2005 and gave the first public presentation on this subject at Ludwig-Maximilians-Universität München in November 2009.
A comprehensive discussion finally appears in the textbook:
Voevodsky’s (Bousfield’s) original idea for the universal Kan fibration as a model for a univalent universe in simplicial sets/-groupoids was eventually published as:
Peter Aczel, On Voevodsky’s Univalence Axiom, talk at Third European Set Theory Conference (2011) [pdf, pdf]
(in view of the structure identity principle)
Mike Shulman, Homotopy type theory, IV [blog post]
Additional definition of univalent universes appeared in section 17.1 of
On a superficially weaker but equivalent statement of univalence (also recorded in Orton and Pitts 19, Theorem 3.5):
On a reduction of the univalence axiom to special cases:
On a possibly weaker variant of univalence:
Benno van den Berg, Section 2.3 in Univalent polymorphism, Annals of Pure and Applied Logic 171 (2020) 102793 [arXiv:1803.10113, doi:10.1016/j.apal.2020.102793]
Andrew Swan, Section 4 in A categorical formulation of Kraus’ paradox (2024) [arXiv:2403.17961]
Some details regarding the univalence axiom for weakly Tarski universes appeared on MathOverflow in:
Some discussion about the univalence axiom in dependent type theory with type variables occurs in:
An accessible account of Voevodsky’s proof (following Bousfield 06) that the universal Kan fibration in simplicial sets is univalent:
A quick elegant proof of the object classifier/universal associated infinity-bundle in simplicial sets/-groupoids is in
A study of the semantic side of univalence in (infinity,1)-toposes, as well as further cases of locally cartesian closed (infinity,1)-categories is in
This does not yet show that the univalence axiom in its usual form holds in the internal type theory of (infinity,1)-toposes, however, due to the lack of a (known) sufficiently strict model for the object classifier. (But it works with Tarski universes, see there and type universes). Constructions of such a model in some very special cases are in Shulman12 below, and also in
Michael Shulman, The univalence axiom for elegant Reedy presheaves, Homology, Homotopy and Applications 17 2 (2015) 81–106 [arXiv:1307.6248, doi:10.4310/HHA.2015.v17.n2.a6]
Denis-Charles Cisinski, Univalent universes for elegant models of homotopy types [arXiv:1406.0058]
Finally, full proof that all ∞-stack (∞,1)-topos have presentations by model categories which interpret (provide categorical semantics) for homotopy type theory with univalent type universes:
On the issue of strict pullback of the univalent universe see
On an interpretation of a univalent universe at the strength of finite order arithmetic:
Coexistence of univalence with the excluded middle for mere propositions:
Incompatibility of univalence with the excluded middle for all types (not only mere propositions) follows from:
On lower bounds on the truncation levels of univalent universes:
Implementation of univalence in proof assistants:
in Agda:
in Coq:
A guided walk through the formal proof that univalence implies functional extensionality is at
Application of univalence to proof transfer:
A discussion of univalence in categories of diagrams over an inverse category with values in a category for which univalence is already established is discussed in
This discusses homotopy canonicity of univalence in its section 13. A proof of homotopy canonicity was presented in
Another proof of homotopy canonicity is the subject of
Bocquet’s introduction includes a sketch of Sattler and Kapulkin’s proof strategy.
Another approach to showing canonicity is (via cubical sets) in
Marc Bezem, Thierry Coquand, Simon Huber, A model of type theory in cubical sets, in 19th International Conference on Types for Proofs and Programs (TYPES 2013), Leibniz International Proceedings in Informatics (LIPIcs) 26 (2014) 107–128 [doi:10.4230/LIPIcs.TYPES.2013.107, pdf, Haskell code, discussion]
Marc Bezem, Thierry Coquand, Simon Huber, The univalence axiom in cubical sets, Journal of Automated Reasoning 63 (2019) 159–171 [arXiv:1710.10941, doi:10.1007/s10817-018-9472-6]
The computational interpretation of univalence / canonicity is discussed in
Dan Licata (with Robert Harper), Computing with Univalence, talk at Workshop on Higher Dimensional Algebra, Categories and Types (2012) [abstract (archived), slides]
Robert Harper, Daniel Licata, Canonicity for 2-dimensional type theory, in Proceedings of the 39th annual ACM SIGPLAN-SIGACT symposium on Principles of Programming Languages (POPL) (2012) 337–348 [doi:10.1145/2103656.2103697, pdf]
Daniel Licata, The computational interpretation of HoTT (in 2D), talk at UF-IAS-2012 [video]
Simon Huber (with Thierry Coquand), Towards a computational justification of the Axiom of Univalence , talk at TYPES 2011 [pdf]
Bruno Barras, Thierry Coquand, Simon Huber, A Generalization of the Takeuti-Gandy Interpretation, Mathematical Structures in Computer Science 25 Special Issue 5 (2015) 1071–1099 [pdf, doi:10.1017/S0960129514000504]
and realized in cubical type theory in
Thierry Coquand (with Marc Bezem and Simon Huber), Computational content of the Axiom of Univalence, September 2013 [pdf]
Cyril Cohen, Thierry Coquand, Simon Huber, Anders Mörtberg, Cubical Type Theory: a constructive interpretation of the univalence axiom, in 21st International Conference on Types for Proofs and Programs (TYPES 2015), Leibniz International Proceedings in Informatics (LIPIcs) 69 (2018) 5:1–5:34 [arxiv:1611.02108, hal-01378906, doi:10.4230/LIPIcs.TYPES.2015.5]
Proof of the univalence axiom from large elimination of the interval type relativizing to the type universe:
Last revised on September 20, 2026 at 02:40:18. See the history of this page for a list of all contributions to it.