2.10 Universes and the univalence axiom
Given two types A and B, we may consider them as elements of some universe type π°, and thereby form the identity type A=π°B.
As mentioned in the introduction, univalence is the identification of A=π°B with the type (AβB) of equivalences from A to B, which we described in Β§2.4 (http://planetmath.org/24homotopiesandequivalences).
We perform this identification by way of the following canonical function.
Lemma 2.10.1.
For types A,B:U, there is a certain function,
ππ½πππΎππ:(A=π°B)β(AβB), | (2.10.1) |
defined in the proof.
Proof.
We could construct this directly by induction on equality, but the following description is more convenient.
Note that the identity function ππ½π°:π°βπ° may be regarded as a type family indexed by the universe π°; it assigns to each type X:π° the type X itself.
(When regarded as a fibration
, its total space is the type β(A:π°)A of βpointed typesβ; see also Β§4.8 (http://planetmath.org/48theobjectclassifier).)
Thus, given a path p:A=π°B, we have a transport function p*:AβB.
We claim that p* is an equivalence.
But by induction, it suffices to assume that p is ππΎπΏπ
A, in which case p*β‘ππ½A, which is an equivalence by Example 2.4.7 (http://planetmath.org/24homotopiesandequivalences#Thmpreeg1).
Thus, we can define ππ½πππΎππ(p) to be p* (together with the above proof that it is an equivalence).
β
We would like to say that ππ½πππΎππ is an equivalence.
However, as with ππΊπππ
π for function types, the type theory described in http://planetmath.org/node/87533Chapter 1 is insufficient to guarantee this.
Thus, as we did for function extensionality, we formulate this property as an axiom: Voevodskyβs univalence axiom.
Axiom 2.10.3 (Univalence).
For any A,B:U, the function (2.10.1) is an equivalence,
(A=π°B)β(AβB). |
Technically, the univalence axiom is a statement about a particular universe type π°. If a universe π° satisfies this axiom, we say that it is univalent. Except when otherwise noted (e.g. in Β§4.9 (http://planetmath.org/49univalenceimpliesfunctionextensionality)) we will assume that all universes are univalent.
Remark 2.10.4.
It is important for the univalence axiom that we defined AβB using a βgoodβ version of isequiv as described in Β§2.4 (http://planetmath.org/24homotopiesandequivalences), rather than (say) as β(f:AβB)qinv(f).
In particular, univalence means that equivalent types may be identified.
As we did in previous sections
, it is useful to break this equivalence into:
-
β’
An introduction rule for (A=π°B),
ππΊ:(AβB)β(A=π°B). -
β’
The elimination rule, which is ππ½πππΎππ,
ππ½πππΎππβ‘πππΊππππππXβ¦X:(A=π°B)β(AβB). -
β’
The propositional computation rule,
πππΊππππππXβ¦X(ππΊ(f),x)=f(x). -
β’
The propositional uniqueness principle: for any p:A=B,
p=ππΊ(πππΊππππππXβ¦X(p)).
We can also identify the reflexivity, concatenation
, and inverses
of equalities in the universe with the corresponding operations
on equivalences:
ππΎπΏπ A | =ππΊ(ππ½A) | ||
ππΊ(f)\centerdotππΊ(g) | =ππΊ(gβf) | ||
ππΊ(f)-1 | =ππΊ(f-1). |
The first of these follows because ππ½A=ππ½πππΎππ(ππΎπΏπ A) by definition of ππ½πππΎππ, and ππΊ is the inverse of ππ½πππΎππ. For the second, if we define p:β‘ππΊ(f) and q:β‘ππΊ(g), then we have
ππΊ(gβf)=ππΊ(ππ½πππΎππ(q)βππ½πππΎππ(p))=ππΊ(ππ½πππΎππ(pβ q))=pβ q |
using Lemma 2.3.9 (http://planetmath.org/23typefamiliesarefibrations#Thmprelem6) and the definition of ππ½πππΎππ. The third is similar.
The following observation, which is a special case of Lemma 2.3.10 (http://planetmath.org/23typefamiliesarefibrations#Thmprelem7), is often useful when applying the univalence axiom.
Lemma 2.10.5.
For any type family B:AβU and x,y:A with a path p:x=y and u:B(x), we have
πππΊππππππB(p,u) | =πππΊππππππXβ¦X(πΊπB(p),u) | ||
=ππ½πππΎππ(πΊπB(p))(u). |
Title | 2.10 Universes and the univalence axiom |
\metatable |