nLab univalence axiom

Redirected from "definitional univalence".
Contents

Context

Type theory

natural deduction metalanguage, practical foundations

  1. type formation rule
  2. term introduction rule
  3. term elimination rule
  4. computation rule

type theory (dependent, intensional, observational type theory, homotopy type theory)

syntax object language

computational trinitarianism =
propositions as types +programs as proofs +relation type theory/category theory

logicset theory (internal logic of)category theorytype theory
propositionsetobjecttype
predicatefamily of setsdisplay morphismdependent type
proofelementgeneralized elementterm/program
cut rulecomposition of classifying morphisms / pullback of display mapssubstitution
introduction rule for implicationcounit for hom-tensor adjunctionlambda
elimination rule for implicationunit for hom-tensor adjunctionapplication
cut elimination for implicationone of the zigzag identities for hom-tensor adjunctionbeta reduction
identity elimination for implicationthe other zigzag identity for hom-tensor adjunctioneta conversion
truesingletonterminal object/(-2)-truncated objecth-level 0-type/unit type
falseempty setinitial objectempty type
proposition, truth valuesubsingletonsubterminal object/(-1)-truncated objecth-proposition, mere proposition
logical conjunctioncartesian productproductproduct type
disjunctiondisjoint union (support of)coproduct ((-1)-truncation of)sum type (bracket type of)
implicationfunction set (into subsingleton)internal hom (into subterminal object)function type (into h-proposition)
negationfunction set into empty setinternal hom into initial objectfunction type into empty type
universal quantificationindexed cartesian product (of family of subsingletons)dependent product (of family of subterminal objects)dependent product type (of family of h-propositions)
existential quantificationindexed disjoint union (support of)dependent sum ((-1)-truncation of)dependent sum type (bracket type of)
logical equivalencebijection setobject of isomorphismsequivalence type
support setsupport object/(-1)-truncationpropositional truncation/bracket type
n-image of morphism into terminal object/n-truncationn-truncation modality
propositional equalitydiagonal function/diagonal subset/diagonal relationpath space objectidentity type/path type
completely presented setsetdiscrete object/0-truncated objecth-level 2-type/set/h-set
setset with equivalence relationinternal 0-groupoidBishop set/setoid with its pseudo-equivalence relation an actual equivalence relation
equivalence class/quotient setquotientquotient type
inductioncolimitinductive type, W-type, M-type
higher inductionhigher colimithigher inductive type
-0-truncated higher colimitquotient inductive type
coinductionlimitcoinductive type
presettype without identity types
set of truth valuessubobject classifiertype of propositions
domain of discourseuniverseobject classifiertype universe
modalityclosure operator, (idempotent) monadmodal type theory, monad (in computer science)
linear logic(symmetric, closed) monoidal categorylinear type theory/quantum computation
proof netstring diagramquantum circuit
(absence of) contraction rule(absence of) diagonalno-cloning theorem
synthetic mathematicsdomain specific embedded programming language

homotopy levels

semantics

Equality and Equivalence

Universes

Homotopy theory

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

Contents

Idea

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 UU, so that types can be considered as points of UU, then between two types we also have an identity type X= UYX =_U Y. The univalence axiom says that these two notions of “sameness” for types are the same.

Extensionality principles like function extensionality, propositional extensionality (where XX and YY 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 p:E→Bp\colon E\to B of some sort is commonly said to be universal if every other bundle of the same sort is a pullback of pp 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 UU is univalent: every fibration with UU-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).

Definition

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 UU; these include

Let us assume an abstract family of equivalence types ≃\simeq with the property that for each type AA we have an identity equivalence idequiv(A):A≃A\mathrm{idequiv}(A) : A \simeq A.

Fix a Tarski universe in the sense of a type UU with a type family A:U⊢T(A)typeA : U \vdash T(A) \; \mathrm{type}. There is a reflexive graph whose type of vertices is UU, whose type of edges from A:UA : U to B:UB : U is

E(A,B)≔(T(A)≃T(B)),E(A,B) \coloneqq (T(A) \simeq T(B)),

and whose reflexivity map r:(A:U)→E(A,A)r : (A : U) \to E(A,A) sends AA to idequiv(T(A))\mathrm{idequiv}(T(A)). The reflexivity map induces, for A,B:UA,B : U, a function

idtoequiv(A,B):(A= UB)→E(A,B)\mathrm{idtoequiv}(A, B) : (A =_U B) \to E(A,B)

defined using identity elimination with idtoequiv(A,A)(refl A)≔r(A)\mathrm{idtoequiv}(A, A)(\mathrm{refl}_A) \coloneqq r(A).

The Tarski universe (U,T)(U,T) is univalent if the induced (U,E,r)(U,E,r) is a univalent as a reflexive graph, i.e., if one of the following conditions (equivalent by the fundamental theorem of identity types) holds:

  1. For each A:UA:U the type of elements B:AB:A such that E(A,B)E(A, B) is a contractible type.

    A:U⊢ua(A):isContr(∑ B:UE(A,B))A:U \vdash \mathrm{ua}(A):\mathrm{isContr}\left(\sum_{B:U} E(A, B)\right)
  2. For each A:UA:U and B:UB:U, the function idtoequiv(A,B)\mathrm{idtoequiv}(A, B) is an equivalence of types

    A:U,B:U,⊢ua(A,B):isEquiv(idtoequiv(A,B))A:U, B:U, \vdash \mathrm{ua}(A, B):\mathrm{isEquiv}(\mathrm{idtoequiv}(A, B))
  3. There is a family of equivalences

    A:U,B:U⊢ua(A,B):(A= UB)≃E(A,B)A:U, B:U \vdash \mathrm{ua}(A, B):(A =_U B) \simeq E(A, B)
  4. EE is an identity system.

  5. For each A:UA:U and B:UB:U, the function idtoequiv(A,B)\mathrm{idtoequiv}(A, B) is a retraction:

    A:U,B:U⊢ua(A,B):E(A,B)→(A= UB)A:U, B:U \vdash \mathrm{ua}(A, B):E(A, B) \to (A =_U B)
    A:U,B:U,e:E(A,B)⊢uaβ(A,B,e):idtoequiv(A,B)(ua(A,B)(e))= E(A,B)eA:U, B:U, e:E(A, B) \vdash \mathrm{ua}\beta(A,B,e):\mathrm{idtoequiv}(A,B)(\mathrm{ua}(A,B)(e)) =_{E(A, B)} e

    (This is due to Daniel Licata in Licata 16.)

  6. The family EE with its reflexivity map satisfies the universal property of the weak identity type A= UBA =_U B.

See fundamental theorem of identity types for proofs that these definitions are the same.

Decomposition

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:

  • unit:A=∑ a:A1unit : A = \sum_{a:A} 1
  • flip:(∑ a:A∑ b:BC(a,b))=(∑ b:B∑ a:AC(a,b))flip : (\sum_{a:A} \sum_{b:B} C(a,b)) = (\sum_{b:B} \sum_{a:A} C(a,b))
  • contract:IsContr(A)→(A=1)contract: IsContr(A) \to (A=1)
  • unit β:coe(unit(a))=(a,⋆)unit_\beta : coe(unit(a)) = (a,\star)
  • flip β:coe(flip(a,b,c))=(b,a,c)flip_\beta : coe(flip(a,b,c)) = (b,a,c).

The proof constructs ua(f):A=Bua(f): A=B (for f:A≃Bf:A\simeq B) as the composite

A=unit∑ a:A1=contract∑ a:A∑ b:Bfa=b=flip∑ b:B∑ a:Afa=b=contract∑ b:B1=unitB A \overset{unit}{=} \sum_{a:A} 1 \overset{contract}{=} \sum_{a:A} \sum_{b:B} f a=b \overset{flip}{=} \sum_{b:B} \sum_{a:A} f a = b \overset{contract}{=} \sum_{b:B} 1 \overset{unit}{=} B

and uses unit βunit_\beta and flip βflip_\beta to compute that coe(ua(f))(a)=f(a)coe(ua(f))(a) = f(a), hence by function extensionality coe(ua(f))=fcoe(ua(f)) = f.

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.

Resizing the identity types

Due to the usual univalence axiom, we know that it is consistent to resize the identity types of a universe UU to be UU-small.

Resizing the identity types allows for one more version of univalence, where we replace the equivalence of types between the identity type A= UBA =_U B and the type of equivalences of the universe A≃BA \simeq B in the univalence axioms with the identity type of the universe UU, resulting in the statement that for all small types A:UA:U and B:UB:U, there is an identification

ua(A,B):(T(A)= UT(B))= U(T(A)≃T(B))\mathrm{ua}(A, B):(T(A) =_U T(B)) =_{U} (T(A) \simeq T(B))

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.

Stricter variants 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.

Using definitional isomorphism

There is a variant of univalence called definitional univalence or judgmental univalence, which says that for x:Ax:A and y:Ay:A, the function idtoequiv(x,y)\mathrm{idtoequiv}(x, y) 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 UU-small one-to-one correspondences for RR in definitional univalence.

Using judgmental equality of types

There is another variant of univalence where we replace the equivalence of types between the identity type A= UBA =_U B and the type of equivalences of the universe A≃BA \simeq B in the univalence axioms with judgmental equality of types, resulting in the statement that for all small types A:UA:U and B:UB:U, one could judge that (A= UB)≡(A≃B)type(A =_U B) \equiv (A \simeq B) \; \mathrm{type}. 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 (U,T)(U, T) can be defined directly using inference rules instead of a judgmental equality, which say that identities p:A= UBp:A =_U B are equivalences of types AA and BB. Namely, given function types and the isEquiv type family, one could add rules to the type theory which says that A= UBA =_U B behaves as an equivalence type:

Introduction rules:

Γ⊢A:UΓ⊢B:UΓ,x:T[A/X]⊢f:T[B/X]Γ⊢y:isEquiv(f)Γ⊢equiv(f,y):A= UB\frac{\Gamma \vdash A:U \quad \Gamma \vdash B:U \quad \Gamma, x:T[A/X] \vdash f:T[B/X] \quad \Gamma \vdash y:\mathrm{isEquiv}(f)}{\Gamma \vdash \mathrm{equiv}(f, y):A =_U B}

Elimination rules:

Γ⊢A:UΓ⊢B:UΓ,x:T[A/X]⊢f:T[B/X]Γ,z:A= UB⊢CtypeΓ,x:T[A/X],f:T[B/X],y:isEquiv(f)⊢c:C[equiv(f,y)/z]Γ,z:A= UB⊢ind A= UB C(c):C\frac{\Gamma \vdash A:U \quad \Gamma \vdash B:U \quad \Gamma, x:T[A/X] \vdash f:T[B/X] \quad \Gamma, z:A =_U B \vdash C \; \mathrm{type} \quad \Gamma, x:T[A/X], f:T[B/X], y:\mathrm{isEquiv}(f) \vdash c:C[\mathrm{equiv}(f, y)/z]}{\Gamma, z:A =_U B \vdash \mathrm{ind}_{A =_U B}^C(c):C}

Computation rules:

Γ⊢A:UΓ⊢B:UΓ,x:T[A/X]⊢f:T[B/X]Γ,z:A= UB⊢CtypeΓ,x:T[A/X],f:T[B/X],y:isEquiv(f)⊢c:C[equiv(f,y)/z]Γ,x:T[A/X],f:T[B/X],y:isEquiv(f)⊢β A= UB C(c):ind A= UB C(c)[equiv(f,y)/z]= C[equiv(f,y)/z]c\frac{\Gamma \vdash A:U \quad \Gamma \vdash B:U \quad \Gamma, x:T[A/X] \vdash f:T[B/X] \quad \Gamma, z:A =_U B \vdash C \; \mathrm{type} \quad \Gamma, x:T[A/X], f:T[B/X], y:\mathrm{isEquiv}(f) \vdash c:C[\mathrm{equiv}(f, y)/z]}{\Gamma, x:T[A/X], f:T[B/X], y:\mathrm{isEquiv}(f) \vdash \beta_{A =_U B}^C(c):\mathrm{ind}_{A =_U B}^C(c)[\mathrm{equiv}(f, y)/z] =_{C[\mathrm{equiv}(f, y)/z]} c}

Uniqueness rules:

Γ⊢A:UΓ⊢B:UΓ,x:T[A/X]⊢f:T[B/X]Γ,z:A= UB⊢CtypeΓ,x:T[A/X],f:T[B/X],y:isEquiv(f)⊢c:C[equiv(f,y)/z]Γ,z:A= UB⊢u:CΓ,x:T[A/X],f:T[B/X],y:isEquiv(f)⊢i in(u):u[equiv(f,y)/z]= C[in(x,y)/z]cΓ,e:A= UB⊢η A= UB C(c):u[e/z]= C[e/z]ind A= UB C(c)[e/z]\frac{\Gamma \vdash A:U \quad \Gamma \vdash B:U \quad \Gamma, x:T[A/X] \vdash f:T[B/X] \quad \Gamma, z:A =_U B \vdash C \; \mathrm{type} \quad \Gamma, x:T[A/X], f:T[B/X], y:\mathrm{isEquiv}(f) \vdash c:C[\mathrm{equiv}(f, y)/z] \quad \Gamma, z:A =_U B \vdash u:C \quad \Gamma, x:T[A/X], f:T[B/X], y:\mathrm{isEquiv}(f) \vdash i_\mathrm{in}(u):u[\mathrm{equiv}(f, y)/z] =_{C[\mathrm{in}(x, y)/z]} c}{\Gamma, e:A =_U B \vdash \eta_{A =_U B}^C(c):u[e/z] =_{C[e/z]} \mathrm{ind}_{A =_U B}^C(c)[e/z]}

Weaker variants of univalence

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:

A:U,B:U⊢ua(A,B):(A≃B)→(A= UB)A:U, B:U \vdash \mathrm{ua}(A, B): (A \simeq B) \to (A =_U B)
A:U,B:U,e:(A≃B),a:A⊢uaβ(A,B,e,a):coe(ua(A,B))(a)= Be(a)A:U, B:U, e : (A\simeq B), a: A \vdash \mathrm{ua}\beta(A,B,e,a) : \mathrm{coe}(\mathrm{ua}(A,B))(a) =_{B} e(a)

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 UU. 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.

In categorical semantics

Let 𝒞\mathcal{C} be a locally cartesian closed model category in which all objects are cofibrant.

By the categorical semantics of homotopy type theory, a dependent type

b:B⊢E(b)type b : B \vdash E(b) \; \mathrm{type}

corresponds to a morphism E→BE \to B in 𝒞\mathcal{C} that is a fibration between fibrant objects.

Then the dependent function type

b 1,b 2:B⊢(E(b 1)→E(b 2))type b_1, b_2 : B \vdash ( E(b_1) \to E(b_2)) \; \mathrm{type}

is interpreted as the internal hom [−,−] 𝒞/ B×B[-,-]_{\mathcal{C}/_{B \times B}} in the slice category 𝒞/ B×B\mathcal{C}/_{B \times B} after extending EE to the context B×BB \times B by pulling back along the two projections p 1,p 2:B×B→Bp_1, p_2 : B \times B \to B, respectively. Hence this is interpreted as

[p 1 *E,p 2 *E] 𝒞/ B×B≃[E×B,B×E] 𝒞/ B×B∈𝒞/ B×B. [p_1^* E \, , \, p_2^* E]_{\mathcal{C}/_{B \times B}} \simeq [E \times B \, , \, B \times E]_{\mathcal{C}/_{B \times B}} \in \mathcal{C}/_{B \times B} \,.

Consider then the diagonal morphism Δ B:B→B×B\Delta_B : B \to B \times B in 𝒞\mathcal{C} as an object of 𝒞/ B×B\mathcal{C}/_{B \times B}. We would like to define a morphism

q:Δ B→[E×B,B×E] 𝒞/ B×B. q \colon \Delta_B \to [E \times B , B \times E]_{\mathcal{C}/_{B \times B}} \,.

in 𝒞/ B×B\mathcal{C}/_{B \times B}. By the defining (product ⊣\dashv internal hom)-adjunction, it suffices to define a morphism

Δ B× 𝒞/ B×BE×B→B×E \Delta_B \times_{\mathcal{C}/_{B \times B}} E \times B \to B \times E

in 𝒞/ B×B\mathcal{C}/_{B \times B}. But now by the universal property of pullback, it suffices to define just in 𝒞 /B\mathcal{C}_{/B} a morphism

Δ B× 𝒞/ B×BE×B→Δ B× 𝒞/ B×BB×E. \Delta_B \times_{\mathcal{C}/_{B \times B}} E \times B \to \Delta_B \times_{\mathcal{C}/_{B \times B}} B \times E\,.

And since the composite pullback along either composite

B→Δ BB×B→π 1B B \xrightarrow{\Delta_B} B\times B \xrightarrow{\pi_1} B
B→Δ BB×B→π 2B B \xrightarrow{\Delta_B} B\times B \xrightarrow{\pi_2} B

is the identity, both Δ B× 𝒞/ B×BE×B\Delta_B \times_{\mathcal{C}/_{B \times B}} E \times B and Δ B× 𝒞/ B×BB×E\Delta_B \times_{\mathcal{C}/_{B \times B}} B \times E are isomorphic to EE; thus here we can take the identity morphism.

Now, using the path object factorization in 𝒞\mathcal{C}

B ↪≃ B I Δ B↘ ↙ B×B \array{ B &&\stackrel{\simeq}{\hookrightarrow}&& B^I \\ & {}_{\mathllap{\Delta_B}}\searrow && \swarrow_{\mathrlap{}} \\ && B \times B }

by an acyclic cofibration followed by a fibration, we obtain a fibrant replacement of Δ B\Delta_B in the slice model category 𝒞 B×B\mathcal{C}_{B \times B}.

Since also [E×B,B×E] 𝒞/ B×B[E \times B, B \times E]_{\mathcal{C}/_{B \times B}} is fibrant by the axioms on the locally cartesian closed model category 𝒞\mathcal{C}, we have a lift q^\hat q in the diagram in 𝒞/ B×B\mathcal{C}/_{B \times B}

B →q [E×B,B×E] 𝒞/ B×B ↓ q^↗ ↓ B I → B×B=* 𝒞/ B×B. \array{ B &\stackrel{q}{\to}& [E \times B, B \times E]_{\mathcal{C}/_{B \times B}} \\ \downarrow &{}^{\mathllap{\hat q}}\nearrow& \downarrow \\ B^I &\to& B \times B = *_{\mathcal{C}/_{B \times B}} } \,.

This lift is the interpretation of the path induction that deduces a map on all paths γ∈B I\gamma \in B^I from one on just the identity paths id b∈B↪B Iid_b \in B \hookrightarrow B^I.

Finally, let Eq(E)↪[E×B,B×E] 𝒞/ B×BEq(E) \hookrightarrow [E \times B , B \times E]_{\mathcal{C}/_{B \times B}} be the subobject on the weak equivalences (…), and observe that qq and q^\hat q factor through this to give a morphism

q^:B I→Eq(E). \hat q : B^I \to Eq(E) \,.

The fibration E→BE \to B is univalent in 𝒞\mathcal{C} if this morphism is a weak equivalence. By the 2-out-of-3 property, of course, it is equivalent to ask that q:B→Eq(E)q\colon B\to Eq(E) be a weak equivalence.

(…)

In simplicial sets

We specialize the general discussion above to the realization in 𝒞=\mathcal{C} = sSet, equipped with the standard model structure on simplicial sets.

For E→BE \to B any fibration (Kan fibration) between fibrant objects (Kan complexes), consider first the simplicial set

[E×B,B×E] B×B∈sSet/ B×B [E \times B , B \times E]_{B \times B} \in sSet/_{B \times B}

defined as the internal hom in the slice category sSet/ B×BsSet/_{B \times B}.

Notice that the vertices of this simplicial set over a fixed pair (b 1,b 2):*→B×B(b_1, b_2) : * \to B \times B of vertices in BB form the set of morphisms E b 1→E b 2E_{b_1} \to E_{b_2} between the fibers in sSetsSet.

This is because – by the defining property of the internal hom in the slice and using that products in sSet/ B×BsSet/_{B \times B} are pullbacks in sSetsSet – the horizontal morphisms of simplcial sets in

* → [E×B,B×E] B×B (b 1,b 2)↘ ↙ B×B \array{ * &&\to&& [E \times B, B \times E]_{B \times B} \\ & {}_{\mathllap{(b_1,b_2)}}\searrow && \swarrow \\ && B \times B }

correspond bijectively to the horizontal morphisms in

E b 1×{b 2} → {b 1}×E b 2 ↘ ↙ B×B \array{ E_{b_1} \times \{b_2\} &&\to&& \{b_1\} \times E_{b_2} \\ & \searrow && \swarrow \\ && B \times B }

in sSetsSet, which are precisely morphisms E b 1→E b 2E_{b_1} \to E_{b_2}.

Let then

Eq(E)↪[E×B,B×E] B×B∈sSet/ B×B Eq(E) \hookrightarrow [E \times B, B \times E]_{B \times B} \in sSet/_{B \times B}

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 Δ B:B→B×B\Delta_B : B \to B \times B in sSetsSet, regarded as an object B∈sSet/ B×BB \in sSet/_{B \times B}, comes with a canonical morphism

B→Eq(E). B \to Eq(E) \,.

The fibration E→BE \to B is univalent, precisely when this morphism is a weak equivalence.

This appears originally as Voevodsky, def. 3.4

In simplicial presheaves

(…)

See (Shulman 15, UF 13)

(…)

Properties

Relation to function extensionality

The univalence axiom implies function extensionality.

A commented version of a formal proof of this fact can be found in (Bauer-Lumsdaine).

Relation to large elimination of the interval type

Mike Shulman proved in this MathOverflow post that given a type universe UU, large elimination of the interval type for UU-small types is equivalent to the univalence axiom for UU.

Univalence and truncation levels

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):

Proposition

Let n≥−2n \ge -2. If A:U⊢T(A)typeA : U \vdash T(A) \; \mathrm{type} is a univalent Tarski universe such that T(A)T(A) is an n n -type for all A:UA : U, then UU is an (n+1)(n+1)-type.

In particular, if UU is any univalent universe, then the subtype U ≤n↪UU^{\le n} \hookrightarrow U of nn-types in UU is a univalent universe (see Rijke 22, Proposition 17.2.1) and an (n+1)(n+1)-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):

Proposition

Let A:U⊢T(A)typeA : U \vdash T(A) \; \mathrm{type} be a univalent Tarski universe. If UU contains a type of booleans 2\mathbf{2}, then UU is not an h-set.

This follows from the fact that 2≃2\mathbf{2} \simeq \mathbf{2} is not an h-proposition; the role of 2\mathbf{2} here can be played by any type with a non-trivial automorphism. Similarly, a univalent universe containing a circle type S 1S^1 cannot be an h-groupoid, since S 1≃S 1S^1 \simeq S^1 is equivalent to S 1+S 1S^1 + S^1.

Kraus and Sattler consider univalent universes containing other univalent universes and show:

Proposition

(Kraus–Sattler 15, Theorem 5.9) Let U iU_i for 0≤i≤n0 \le i \le n be a collection of univalent universes such that

Then U nU_n is not an n n -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 UU that satisfies UIP, in the sense that all types in UU are h-sets. The univalent universe in the Hofmann–Streicher groupoid model is of this kind, as is the subtype U ≤0↪UU^{\le 0} \hookrightarrow U of h-sets in any univalent universe UU.

Univalence and excluded middle

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.

Γ⊢AtypeΓ⊢lem A:isProp(A)→(A∨(A→∅))\frac{\Gamma \vdash A \; \mathrm{type}}{\Gamma \vdash \mathrm{lem}_A:\mathrm{isProp}(A) \to (A \vee (A \to \emptyset))}

Dependent type theory with excluded middle and universes satisfying the univalence axiom has semantics in boolean ( ∞ , 1 ) (\infty, 1) -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):

Γ⊢AtypeΓ⊢gc A:A+(A→∅)\frac{\Gamma \vdash A \; \mathrm{type}}{\Gamma \vdash \mathrm{gc}_A:A + (A \to \emptyset)}

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.

Canonicity and homotopy canonicity

If we extend Martin-Löf type theory with an axiom stating that a universe UU is univalent, we get a type theory which does not satisfy canonicity: there exist terms ⋅⊢N:ℕ\cdot \vdash N : \mathbb{N} in the empty context which are not judgmentally equal to any numeral. For example, if ⋅⊢e:ℕ≃ℕ\cdot \vdash e : \mathbb{N} \simeq \mathbb{N} is some equivalence (such as the identity equivalence), then coe(ua(e))(0):ℕcoe(ua(e))(0) : \mathbb{N} is such a term: although there is a typal equality coe(ua(e))(0)=e(0)coe(ua(e))(0) = e(0), there is no judgmental equality. This can be shown using normalization for MLTT to compare the normal forms of coe(ua(e))(0)coe(ua(e))(0) and e(0)e(0), treating judgments of the extended theory as judgments of MLTT with an extra hypothesis in the context stating that UU 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.

A univalent universe inside a non-univalent universe

In a post to the Homotopy Type Theory Google Group, Peter LeFanu Lumsdaine wrote:

Let (x 0:X)(x_0:X) be any pointed type, and (𝒰,El)(\mathcal{U}, El) be a universe (with rules as I set out a couple of emails ago). Then X×𝒰X \times \mathcal{U} is again a universe, admitting all the same constructors as 𝒰\mathcal{U}: take

El(x,A)=El(A)El(x,A) = El(A),
(x,A)+ 𝒰(y,B)=(x 0,A+ 𝒰B)(x,A) +_\mathcal{U} (y,B) = (x_0, A +_\mathcal{U} B),

and so on; that is, constructor operations on (X×𝒰)(X \times \mathcal{U}) are constantly x 0x_0 on the first component, and mirror those of 𝒰\mathcal{U} on the second component.

Now if 𝒰\mathcal{U} is univalent, and XX has non-trivial π 0\pi_0 (e.g. X=S 1X=S^1), then 𝒰→(X×𝒰\mathcal{U} \rightarrow (X \times \mathcal{U}) 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 𝒰 0→𝒰 1\mathcal{U}_0 \rightarrow \mathcal{U}_1, we can consider 𝒰 0→A×𝒰 1\mathcal{U}_0 \rightarrow A \times \mathcal{U}_1; this shows we can additionally have the smaller universe represented by an element of the larger one.

Mike Shulmanadded:

[N]ot only is X×𝒰X \times \mathcal{U} not univalent, it’s not even “univalent on the image of 𝒰\mathcal{U}”, as was the case for the example in the groupoid model that I mentioned.

Univalence axiom without universes

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

idtoequiv(A,B):(A=B)→(A≃B)\mathrm{idtoequiv}(A, B):(A = B) \to (A \simeq B)

inductively defined by

idtoequiv(A,A,refl(A))≔id A\mathrm{idtoequiv}(A, A, \mathrm{refl}(A)) \coloneqq \mathrm{id}_A

is an equivalence of types for all types AA and BB,

isEquiv(idtoequiv(A,B))\mathrm{isEquiv}(\mathrm{idtoequiv}(A, B))

where id A≔λx:A.x\mathrm{id}_A \coloneqq \lambda x:A.x is the identity function on the type AA. This is given by the following axiom:

ΓctxΓ,Atype,Btype⊢ua(A,B):isEquiv(λp:A=B.idtoequiv(A,B,p))\frac{\Gamma \; \mathrm{ctx}}{\Gamma, A \; \mathrm{type}, B \; \mathrm{type} \vdash \mathrm{ua}(A, B):\mathrm{isEquiv}(\lambda p:A = B.\mathrm{idtoequiv}(A, B, p))}

In impredicative polymorphism, this is also given by the following axiom:

ΓctxΓ⊢ua:ΠA.ΠB.isEquiv(λp:A=B.idtoequiv(A,B,p))\frac{\Gamma \; \mathrm{ctx}}{\Gamma \vdash \mathrm{ua}:\Pi A.\Pi B.\mathrm{isEquiv}(\lambda p:A = B.\mathrm{idtoequiv}(A, B, p))}

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 A=BA = B and the type of equivalences of the universe A≃BA \simeq B in the univalence axioms with the identity type, resulting in the statement that for all small types AA and BB, there is an identification ua(A,B):(A=B)=(A≃B)\mathrm{ua}(A, B):(A = B) = (A \simeq B).

This implies the usual version of univalence either through identification elimination, transport, and action on identifications for the identity type.

References

For more references see also at homotopy type theory.

History

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:

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/ ∞ \infty -groupoids was eventually published as:

Exposition and survey

Additional definition of univalent universes appeared in section 17.1 of

Variants

On a superficially weaker but equivalent statement of univalence (also recorded in Orton and Pitts 19, Theorem 3.5):

  • Dan Licata, weak univalence with “beta” implies full univalence (2016) [web]

On a reduction of the univalence axiom to special cases:

On a possibly weaker variant of univalence:

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:

  • Dependent Type Theory vs Polymorphic Type Theory, Category Theory Zulip [web]

Semantics

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/∞\infty-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

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

  • Univalent Foundations Mailing List, Quotients, March 2013

On an interpretation of a univalent universe at the strength of finite order arithmetic:

Properties

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:

Proof assistants

Implementation of univalence in proof assistants:

in Agda:

cubical Agda:

in Coq:

A guided walk through the formal proof that univalence implies functional extensionality is at

Application of univalence to proof transfer:

Canonicity and computational interpretations

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

The computational interpretation of univalence / canonicity is discussed in

and realized in cubical type theory in

Proof of the univalence axiom from large elimination of the interval type relativizing to the type universe:

  • How to formulate the univalence axiom without universes? (web)

Last revised on September 20, 2026 at 02:40:18. See the history of this page for a list of all contributions to it.