Lecture. Univalent foundations II [01GU]
- September 8, 2025
- Jon Sterling
This lecture can be supplemented by the manuscript Reflexive graph lenses in univalent foundations, but it is not required.
It is often not easy to work directly with identification types: instead, we want to decompose identifications in some structure into smaller more intuitive notions that are related to the substructures. For example, we will today impose axioms to the effect that “an identification of functions given by a homotopy” and “an identification of types in a universe is given by an equivalence”. With these axioms, we will be able to deduce things like “an identification of monoids is given by a monoid isomorphism”. The mathematical construct needed to state all these properties is that of a reflexive graph, which we define below.
Definition Reflexive graph [01GW]
A reflexive graph A is given by a type \left \lvert {A}\right \rvert ~\mathit {type} of “vertices” and a family of types x,y:\left \lvert {A}\right \rvert \vdash x\approx _{A} y~\mathit {type} denoting “edges”, and a distinguished “reflexive edge” for every vertex: x:\left \lvert {A}\right \rvert \vdash \mathsf {rx}_{A}{x}:x\approx _{A} x
In the world of univalent foundations, we use the term reflexive graph to mean what classical mathematicians might call (reflexive) “pseudo-graphs” or “multi-graphs” or “quivers”.
Example The discrete reflexive graph [01GX]
For any type A, we may form a “discrete” reflexive graph \Delta A using the identification type:
\begin {aligned} &\left \lvert {\Delta A}\right \rvert :\equiv A \\ &x\approx _{\Delta A}y :\equiv x=_Ay \\ &\mathsf {rx}_{\Delta A}{x} :\equiv \mathsf {refl}_x \end {aligned}Most interesting reflexive graphs will not be defined in terms of the identification type, unlike the discrete reflexive graph. However, it will be a very important property that a given reflexive graph be equivalent to a discrete reflexive graph; in order to state this property later on, we define a function to compare the two:
Construction From identifications to edges [01H0]
Let A be a reflexive graph; we can define a canonical function from identifications of points in A to edges in A using identification elimination:
\begin {aligned} x,y:\left \lvert {A}\right \rvert ; p:x=_{\left \lvert {A}\right \rvert }y &\vdash \iota ^{A}_{x,y}~p: x\approx _{A}y \\ x:\left \lvert {A}\right \rvert &\vdash \iota ^{A}_{x,x}~\mathsf {refl}_x :\equiv \mathsf {rx}_{A}{x} \end {aligned}Definition Outward and inward fans [01GY]
Let A be a reflexive graph. For any vertex x:\left \lvert {A}\right \rvert , we define the outward fan of x to be the type \left \{x\right \}^+_{A} :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(y:\left \lvert {A}\right \rvert )}} x\approx _{A} y consisting of all edges out of x; similarly, we define the inward fan of x to be the type \left \{x\right \}^-_{A}:\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(y:\left \lvert {A}\right \rvert )}} y\approx _{A} x consisting of all edges into x.
Observation Fans of the discrete reflexive graph [01GZ]
Discrete reflexive graphs \Delta A are special, in that all their inward and outward fans are contractible. This is a straightforward consequence of the contractibility of singletons, because the inward and outward fans in \Delta A are singletons:
\begin {aligned} \left \{x\right \}^+_{\Delta A} &\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(y:A)}}{x=_Ay} \\ \left \{x\right \}^-_{\Delta A} &\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(y:A)}}{y=_Ax} \end {aligned}Each of the above is evidently contractible onto the pair (x, \mathsf {refl}_x). Since the fans are all inhabited by this point, it is equivalent to observe that the fans are propositions.
The property of discrete reflexive graphs that their fans are contractible comes directly from the fact that their edges are identifications.
Construction The coproduct of a family of reflexive graphs [01HI]
- September 12, 2025
- Jon Sterling
Let A be a type and for each x:A let B[x] be a reflexive graph. The coproduct of the family B[x] is defined to be the reflexive graph {\mathop {\mathchoice {\textstyle \coprod }{\textstyle \coprod }{\scriptstyle \coprod }{\scriptscriptstyle \coprod } }_{(x:A)}}{B[x]} specified below:
\begin {aligned} \left \lvert {{\mathop {\mathchoice {\textstyle \coprod }{\textstyle \coprod }{\scriptstyle \coprod }{\scriptscriptstyle \coprod } }_{(x:A)}}{B[x]}}\right \rvert &:\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}\left \lvert {B[x]}\right \rvert \\ \left ( \left \langle a,b\right \rangle \approx _{{\mathop {\mathchoice {\textstyle \coprod }{\textstyle \coprod }{\scriptstyle \coprod }{\scriptscriptstyle \coprod } }_{(x:A)}}{B[x]}} \left \langle a',b'\right \rangle \right ) &:\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(p:a=_Aa')}} \; p_*^{\left \lvert {B[-]}\right \rvert } b \approx _{B[a']} b' \\ \mathsf {rx}_{{\mathop {\mathchoice {\textstyle \coprod }{\textstyle \coprod }{\scriptstyle \coprod }{\scriptscriptstyle \coprod } }_{(x:A)}}{B[x]}}{\left \langle a,b\right \rangle } &:\equiv \left \langle \mathsf {refl}_a, \mathsf {rx}_{B[a]}{b} \right \rangle \end {aligned}Lemma The coproduct of a family of discrete reflexive graphs [01HJ]
- September 12, 2025
- Jon Sterling
Suppose that x:A\vdash B[x]~\mathit {type} is a family of types. Then we may consider the coproduct \widetilde {\Delta B} :\equiv {\mathop {\mathchoice {\textstyle \coprod }{\textstyle \coprod }{\scriptstyle \coprod }{\scriptscriptstyle \coprod } }_{(x:A)}}{\Delta B[x]} of the corresponding family of discrete reflexive graphs, whose type of vertices is precisely the sum \widetilde {B}:\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{B[x]} and whose edges from \left \langle a,b\right \rangle to \left \langle a',b'\right \rangle are given by pairs of identifications as follows: \begin {aligned} &p:a=_Aa' \\ &q: p_*^B b =_{B[a']} b' \end {aligned}
Then for each u,v:\widetilde {B}, the comparison function \iota ^{\widetilde {\Delta B}}_{u,v} : u=_{\widetilde {B}}v \to u\approx _{\widetilde {\Delta B}} v is an equivalence.
Proof.
- September 12, 2025
- Jon Sterling
It suffices to show that each \iota ^{\widetilde {\Delta B}}_{u,v} is quasi-invertible. For the underlying function of the quasi-inverse, we begin to define:
\begin {aligned} &a,a':A; p:a=_Aa'; b:B[a], b':B'[a'], q:p_*^Bb=_{B[a']}b' \\ &\vdash \bar \iota _{\left \langle a,b\right \rangle ,\left \langle a',b'\right \rangle }\left \langle p,q\right \rangle : \left \langle a,b\right \rangle =_{\widetilde {B}} \left \langle a',b'\right \rangle \end {aligned}We first proceed by identification elimination on (a',p):
\begin {aligned} &a:A, b:B[a], b':B'[a'], q:({\mathsf {refl}_{a}})_*^Bb=_{B[a]}b' \\ &\vdash \bar \iota _{\left \langle a,b\right \rangle ,\left \langle a,b'\right \rangle }\left \langle \mathsf {refl}_a,q\right \rangle : \left \langle a,b\right \rangle =_{\widetilde {B}} \left \langle a,b'\right \rangle \end {aligned}Noting that transport computes away under reflexivity, the above is simplified:
\begin {aligned} &a:A, b:B[a], b':B'[a'], q:b=_{B[a]}b' \\ &\vdash \bar \iota _{\left \langle a,b\right \rangle ,\left \langle a,b'\right \rangle }\left \langle \mathsf {refl}_a,q\right \rangle : \left \langle a,b\right \rangle =_{\widetilde {B}} \left \langle a,b'\right \rangle \end {aligned}Then we use identification elimination once more on (b,q):
\begin {aligned} &a:A, b:B[a] \\ &\vdash \bar \iota _{\left \langle a,b\right \rangle ,\left \langle a,b\right \rangle }\left \langle \mathsf {refl}_a,\mathsf {refl}_b\right \rangle :\equiv \mathsf {refl}_{\left \langle a,b\right \rangle } \end {aligned}Next, we must construct the two homotopies witnessing \bar \iota _{u,v} as a section and a retraction of \iota _{u,v} respectively.
\begin {aligned} &a,a':A; p:a=_Aa'; b:B[a], b':B'[a'], q:p_*^Bb=_{B[a']}b' \\ &\vdash \epsilon _{\left \langle a,b\right \rangle ,\left \langle a',b'\right \rangle } \left \langle p,q\right \rangle : \iota ^{\widetilde {\Delta B}}_{\left \langle a,b\right \rangle ,\left \langle a',b'\right \rangle } \left ( \bar \iota _{\left \langle a,b\right \rangle ,\left \langle a',b'\right \rangle } \left \langle p,q\right \rangle \right ) =_{{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(p:a=_Aa')}}p_*^Bb=_{B[a']}b'} \left \langle p,q\right \rangle \\[12pt] &u,v:\widetilde {B}; p : u=_{\widetilde {B}}v \\ &\vdash \eta _{u,v}p : \bar \iota _{u,v}\left ( \iota ^{\widetilde {\Delta B}}_{u,v}(p) \right ) =_{u=_{\widetilde {B}}v} p \end {aligned}We use identification elimination three times:
\begin {aligned} &a:A, b:B[a] \\ &\vdash \epsilon _{\left \langle a,b\right \rangle ,\left \langle a,b\right \rangle } \left \langle \mathsf {refl}_a,\mathsf {refl}_b\right \rangle :\equiv \mathsf {refl}_{ \left \langle \mathsf {refl}_a, \mathsf {refl}_b \right \rangle } \\[12pt] &u:\widetilde {B} \\ &\vdash \eta _{u,u}~\mathsf {refl}_u :\equiv \mathsf {refl}_{\mathsf {refl}_u} \end {aligned}The significance of our lemma concerning the coproduct of discrete reflexive graphs is that it allows us to decompose identifications in sums to their constituent parts. Because of the presence of the transport, this decomposition is still a little crude; but it is a first step toward more sophisticated decompositions that we will develop using the machinery of reflexive graphs. A first application of our lemma is to develop the theory of fibrewise equivalences, which we will need.
Fibrewise equivalences [01HE]
- September 12, 2025
- Jon Sterling
Construction The sum of a family of functions [01HD]
- September 12, 2025
- Jon Sterling
Let A be a type, and let x:A\vdash B[x],C[x]~\mathit {type} be two families of types. Given a family of functions x:A \vdash f_x: B[x]\to C[x] we will refer to \begin {aligned} &\tilde {f} : {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{B[x]}\to {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{C[x]} \\ &\tilde {f}\left \langle x,b\right \rangle :\equiv \left \langle x, f_xb\right \rangle \end {aligned} as its sum.
Lemma Characterisation of fibrewise equivalence [01HF]
- September 12, 2025
- Jon Sterling
Let x:A\vdash f_x:B[x]\to C[x] be a family of functions. The sum \tilde {f}:{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{B[x]}\to {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{C[x]} is an equivalence if and only if each f_x:B[x]\to C[x] is an equivalence.
Proof.
- September 12, 2025
- Jon Sterling
If each f_x is contractible, it is not difficult at all to see that \tilde {f} is also contractible. Going the other direction requires a bit more sophistication.
In particular, we consider fibres of \tilde {f}:{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{B[x]}\to {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{C[x]}. Given a:A and c:C[a], we have the following sequence of equivalences:
\begin {aligned} &\mathsf {fib}_{\tilde {f}}\left \langle a,c\right \rangle \\ & \xrightarrow {(1)} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(w: {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{B[x]} )}} \tilde {f}w =_{{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{C[x]}} \left \langle a,c\right \rangle \\ & \xrightarrow {(2)} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(a':A)}} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(b:B[a'])}} \left \langle a',f_{a'}b\right \rangle =_{{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{C[x]}} \left \langle a,c\right \rangle \\ & \xrightarrow {(3)} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(a':A)}} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(b:B[a'])}} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(p:a'=_Aa)}} p_*^C(f_{a'}b) =_{C[a]} c \\ & \xrightarrow {(4)} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(b:B[a])}} f_{a}b =_{C[a]}c \\ & \xrightarrow {(5)} \mathsf {fib}_{f_a}c \end {aligned}Above:
- (1) is the identity equivalence.
- (2) is the re-association equivalence.
- (3) is the equivalence induced by our lemma on coproducts of discrete reflexive graphs.
- (4) is the equivalence induced by contracting the data (a',p) to (a,\mathsf {refl}_a).
- (5) is the identity equivalence.
Therefore, it follows that the fibres of \bar {f} are equivalent to fibres of some f_a; as the latter are contractible, so are the former.
Theorem Fundamental theorem of identification types [01H1]
Let A be a reflexive graph. The following are equivalent:
- Every fan of A is a proposition.
- Every fan of A is contractible.
- For each x,y:\left \lvert {A}\right \rvert the function \iota ^{A}_{x,y} : x=_{\left \lvert {A}\right \rvert }y \to x\approx _{A} y is an retraction.
- For each x,y:A the function \iota ^{A}_{x,y} : x=_{\left \lvert {A}\right \rvert }y \to x\approx _{A} y is an equivalence.
Proof.
(1) and (2) are clearly equivalent because fans are always inhabited.
(3) implies (1). Suppose that each \iota ^{A}_{x,y} is a retraction. This means that for each x:A we have a family of sections \begin {aligned} & s_{y}: x\approx _{A}y\to x=_{\left \lvert {A}\right \rvert }y \\ &h_y: \iota ^{A}_{x,y}\circ s_y \sim 1_{x\approx _{\left \lvert {A}\right \rvert }y} \end {aligned} exhibiting x\approx _{A}y as a retract of x=_{\left \lvert {A}\right \rvert }y. Combined with the identity retraction on A, we obtain by the sum of retracts a section {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{x\approx _{A}y} \to {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{x=_{\left \lvert {A}\right \rvert }y} to the evident function {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{x=_{\left \lvert {A}\right \rvert }y} \to {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:A)}}{x\approx _{A}y} exhibiting the fan \left \{x\right \}^+_{A} as a retract of a proposition. Propositions are closed under retracts, so we are done.(2) implies (3) Conversely, we suppose that every fan of A is contractible (onto the reflexive edges). We need to define:
\begin {aligned} x,y:\left \lvert {A}\right \rvert ; e:x\approx _{A}y &\vdash s_{x,y}e: x=_{\left \lvert {A}\right \rvert }y \\ x,y:\left \lvert {A}\right \rvert e:x\approx _{A}y &\vdash h_{x,y}e: \iota ^{A}_{x,y}(s_{x,y}e) =_{x\approx _{A} y} e \end {aligned}The above can be equivalently expressed in one term:
x,y:\left \lvert {A}\right \rvert ; e:x\approx _{A}y \vdash \sigma _{x,y}e : {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(s:x=_{\left \lvert {A}\right \rvert }y)}} \iota ^{A}_{x,y}s =_{x\approx _{A} y} eWe note that the pair \left \langle y,e\right \rangle is an element of the contractible fan \left \{x\right \}^+_{A}. In particular, we have some identification c_{x,\left \langle y,e\right \rangle } : \left \langle x,\mathsf {rx}_{A}{x}\right \rangle =_{\left \{x\right \}^+_{A}} \left \langle y,e\right \rangle \text {.}
We can now transport in the family u:\left \{x\right \}^+_{A} \vdash S[u]:\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(s:x=_{\left \lvert {A}\right \rvert } u.1)}} \iota ^{A}_{x,u.1}s =_{x=_Ay}u.2 ~\mathit {type} along this identification to obtain:
\sigma _{x,y}e :\equiv (c_{x,\left \langle y,e\right \rangle })_*^S \left \langle x,\mathsf {refl}_x\right \rangle(2) implies (4) It remains to show that if every fan of A is contractible, then each \iota ^{A}_{x,y} is an equivalence. We first note that the functions \iota ^{A}_{x,y} can be rearranged into the following form:
\begin {aligned} &\iota _x: \{x\}_{\left \lvert {A}\right \rvert }\to \left \{x\right \}^-_{A} \\ &\iota _x\left \langle y,p\right \rangle :\equiv \left \langle y, \iota ^{A}_{x,y}p\right \rangle \end {aligned}Moreover, each \iota _x above is an equivalence if and only if each \iota ^{A}_{x,y} is an equivalence, as we recall from our lemma on fibrewise equivalences.
Definition Univalent reflexive graph [01HK]
- September 13, 2025
- Jon Sterling
A reflexive graph A is called univalent when it satisfies any of the equivalent conditions of the fundemantal theorem of identification types.
Although we did not yet have the terminology, we have already shown that the coproduct of discrete reflexive graphs is univalent. In fact, the same holds for the coproduct of univalent reflexive graphs!
Exercise The coproduct of a family of univalent reflexive graphs [01HN]
- September 13, 2025
- Jon Sterling
Given a type A and a family x:A\vdash B[x] of univalent reflexive graphs, show that the coproduct {\mathop {\mathchoice {\textstyle \coprod }{\textstyle \coprod }{\scriptstyle \coprod }{\scriptscriptstyle \coprod } }_{(x:A)}}B[x] is univalent.
Function extensionality in terms of reflexive graphs [01HQ]
- September 13, 2025
- Jon Sterling
Construction The product of a family of reflexive graphs [01HL]
- September 13, 2025
- Jon Sterling
Let A be a type and let B[x] be a reflexive graph varying in x:A. We define the product {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{B[x]} of the reflexive graphs B[x] as follows:
\begin {aligned} \left \lvert {{\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}B[x]}\right \rvert &:\equiv {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{\left \lvert {B[x]}\right \rvert } \\ \left ( f \approx _{{\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{B[x]}} g \right ) &:\equiv {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{ fx \approx _{B[x]} gx } \\ \mathsf {rx}_{{\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{B[x]}}{f} &:\equiv \lambda x\mathpunct {.} \mathsf {rx}_{B[x]}{fx} \end {aligned}Construction The product of a family of discrete reflexive graphs [01HM]
- September 13, 2025
- Jon Sterling
Let x:A\vdash B[x]~\mathit {type} be a family of types. We can consider the product {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{\Delta B[x]} of the corresponding family of discrete reflexive graphs. Inspecting its definition, we see that an edge f\approx _{{\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{\Delta B[x]}}g is precisely a homotopy f\sim g.
Unlike in the case for coproducts, the basic dependent type theory that we have presented cannot prove that the product discrete reflexive graphs is univalent. Instead, this property must be added as an axiom (a constant that we assume without imposing any computation rules). This axiom is equivalent to the one commonly known as function extensionality.
Axiom The univalence principle for products of discrete reflexive graphs [01HP]
- September 13, 2025
- Jon Sterling
We assume that for any family of types x:A\vdash B[x]~\mathit {type}, the product {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{\Delta B[x]} of discrete reflexive graphs is univalent.
Exercise The product of a family of contractible types [01I0]
- September 13, 2025
- Jon Sterling
Show that the product of a family of contractible types is contractible.
Exercise The product of a family of n-truncated types [01HZ]
- September 13, 2025
- Jon Sterling
Show that the product of a family of n-truncated types is n-truncated.
Lemma The product of a family of univalent reflexive graphs [01HY]
- September 13, 2025
- Jon Sterling
Let A be a type and let x:A\vdash B[x] be a family of univalent reflexive graphs. Then the product reflexive graph {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{B[x]} is univalent.
Proof.
- September 13, 2025
- Jon Sterling
We will show that for each dependent function f:{\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{\left \lvert {B[x]}\right \rvert } the fan \left \{f\right \}^+_{{\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{B[x]}} is a proposition. Our goal is therefore to construct \phi as specified below:
We have the following sequence of equivalences:
\begin {aligned} &\left \{f\right \}^+_{{\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{B[x]}} \\ &\xrightarrow {(1)} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(g: {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{\left \lvert {B[x]}\right \rvert } )}}{ {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}} fx\approx _{B[x]} gx } \\ &\xrightarrow {(2)} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(y:\left \lvert {B[x]}\right \rvert )}} fx \approx _{B[x]} y \\ &\xrightarrow {(3)} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}} \left \{fx\right \}^+_{B[x]} \end {aligned}Above, (1) and (3) are the identity equivalences. (2) is the distributivity of products over sums.
Any type that is equivalent to a proposition must be a proposition (in fact, any retract of a proposition is a proposition). Therefore it suffices to observe that the product {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}\left \{fx\right \}^+_{B[x]} of all the fans in B is a proposition, because the product of a family of propositions is a proposition and each B[x] is univalent.
Univalent universes [01HR]
- September 13, 2025
- Jon Sterling
We recall that we have defined a universe to be a type \mathcal {U} together with a family x:\mathcal {U}\vdash \mathcal {T}[X]~\mathit {type} satisfying various closure conditions. We will henceforth describe a further condition on universes that causes their identification types A=_{\mathcal {U}}B be canonically equivalent to the type of equivalences from A to B.
The following notion of reflexive graph image is derived from my 2024 manuscript Reflexive graph lenses in univalent foundations.
Construction Reflexive graph image [01HS]
- September 13, 2025
- Jon Sterling
The reflexive graph image of a type A under a family x:A\vdash B[x]~\mathit {type} is defined to be the following reflexive graph denoted A/B:
\begin {aligned} \left \lvert {A/B}\right \rvert &:\equiv A \\ \left ( x\approx _{A/B} y \right ) &:\equiv \mathsf {Equiv}(B[x],B[y]) \\ \mathsf {rx}_{A/B}{x} &:\equiv \mathsf {id}_{B[x]} \end {aligned}In other words, the points of A/B are the elements of A, but the edges are equivalences between the corresponding components of B. The reflexivity edges are, naturally, given by identity equivalences.
Definition Univalent family [01HT]
- September 13, 2025
- Jon Sterling
A family of types x:A\vdash B[x]~\mathit {type} is called univalent when the reflexive graph image A/B is univalent.
Definition Univalent universe [01HU]
- September 13, 2025
- Jon Sterling
Early on we assumed the axiom of universes, which ensures that every (parameterised) family of types lies in a universe. The main idea of univalent foundations is to further require that these universes be univalent. We therefore switch to the following axiom of univalent universes:
Axiom The axiom of univalent universes [01HW]
- September 13, 2025
- Jon Sterling
We declare that for any finite sequence of families \mathbf {A} \equiv (A_i~\mathit {type})_{(i<n)} \qquad \mathbf {B} \equiv (x:A_i\vdash B_i[x]~\mathit {type})_{(i<n)} we have a univalent universe (\mathcal {U}_{\mathbf {A},\mathbf {B}}, \mathcal {T}_{\mathcal {A},\mathcal {B}}) closed additionally under the following rules for each k<n: \frac { u:A_k }{ \overline {B_k[u]}:\mathcal {U}_{\mathbf {A},\mathbf {B}} \qquad \mathcal {T}\bigl [ \overline {B_k[u]} \bigr ] \equiv B_k[u] ~\mathit {type} }
Univalence principles for algebraic structures [01I1]
- September 13, 2025
- Jon Sterling
When we have a univalent universe \mathcal {U}, the identification types of \mathcal {U} classify equivalences of types. Combining this with identification elimination, we obtain several very useful reasoning principles that are unique to univalent foundations:
To prove something about all types equipped with an equivalence onto A:\mathcal {U}, it suffices to prove that thing just about the identity equivalence on A.
This gives us a simpler way to prove many basic theorems. For example, we can prove that the composition of equivalences is associative and unital by reducing to the case of composing the identity equivalence with itself. That is a kind of reasoning that is impossible in traditional foundations, but completely natural in univalent foundations.
We can use the same principle to transfer properties and structure between equivalent types. For example, we previously observed that any type that is equivalent to a proposition is a proposition; that can be proved directly, but univalence provides a particularly simple proof in which we consider just the case of the identity equivalence.
The universe being univalent is, however, just the start. At many times we want to transfer properties and structures along not an equivalence of types, but rather an equivalence of (e.g.) monoids or categories, or something else. To give a simple example, let’s consider the exampe of the fixed points of a unary algebra; this is just an example, so do not worry if you haven’t heard of such things.
Definition Unary algebra [01I2]
- September 13, 2025
- Jon Sterling
A unary algebra A is given by a type \left \lvert {A}\right \rvert together with an endo-function \mathsf {f}_{A}:\left \lvert {A}\right \rvert \to \left \lvert {A}\right \rvert .
Definition Fixed points of a unary algebra [01I3]
- September 13, 2025
- Jon Sterling
A fixed point of a unary algebra A is an element a:\left \lvert {A}\right \rvert together with an identification \phi : fa=_{\left \lvert {A}\right \rvert }a. So the type of fixed points in A is the following sum:
\mathsf {FP}(A) :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(a:\left \lvert {A}\right \rvert )}}{ fa=_{\left \lvert {A}\right \rvert }a }Now, we can also speak of equivalences of unary algebras; these ought to be equivalences of the underlying types that preserve the associated endo-function.
Definition Equivalences of unary algebras [01I4]
- September 13, 2025
- Jon Sterling
Given two unary algebras A and B, an equivalence of unary algebras h from A to B is given by an equivalence \left \lvert {h}\right \rvert :\left \lvert {A}\right \rvert \xrightarrow {\sim }\left \lvert {B}\right \rvert together with a family of homotopies \mathsf {f}_{h} : \left \lvert {h}\right \rvert \circ \mathsf {f}_{A} \sim \mathsf {f}_{B}\circ \left \lvert {h}\right \rvert \text {.}
False Start Univalent universes can’t do it all alone! [01I5]
- September 13, 2025
- Jon Sterling
Now let A and B be unary algebras which we freely assume to lie within some univalent universe \mathcal {U}, and suppose that we have an equivalence of unary algebras h:A\to B. We might wish to find a way to transfer a fixed point of A to obtain a fixed point of B. It seems at first that univalence should help with this, as (indeed) the underyling function \left \lvert {h}\right \rvert :\left \lvert {A}\right \rvert \to \left \lvert {B}\right \rvert is an equivalence and so we may consider just the case that it is the identity equivalence. We are trying to construct the following transfer function:
\begin {aligned} &A,B:\mathsf {UnaryAlg}_{\mathcal {U}}, h:\mathsf {UnaryAlgEquiv}(A,B), a:\mathsf {FP}(A) \vdash \mathsf {FP}(B) \end {aligned}We first destructure all of our assumptions:
\begin {aligned} &A,B:\mathcal {U}; f_A:A\to A, f_B:B\to B,\\ &h:\mathsf {Equiv}(A,B), f_h: h\circ f_A\sim f_B\circ h, \\ &a : \mathsf {FP}\left \langle A,f_A\right \rangle \\ &\vdash \mathsf {FP}\left \langle B,f_B\right \rangle \end {aligned}What the univalence of \mathcal {U} allows us to do is reduce to just the case that (B,h) are the identity equivalence on the type A. So it would suffice to exhibit:
\begin {aligned} &A:\mathcal {U}; f_A:A\to A, f_A':A\to A,\\ &f_h: f_A\sim f_A', \\ &a : \mathsf {FP}\left \langle A,f_A\right \rangle \\ &\vdash \mathsf {FP}\left \langle A,f_A'\right \rangle \end {aligned}This was not quite as magical as we had hoped! We are still going to need to use the homotopy above to convert a fixed point of f_A to a fixed point of f_A'. This is obviously possible, but there is nothing automatic about it; if we had many more operations and laws than are present in the theory of unary algebras, doing so would quickly become unwieldy.
Some eminent mathematicians, whom one might view as unscrupulous if judging only from their misleading and inaccurate public statements on univalent foundations, have concluded for this reason that univalence is a bit of hype and cannot actually achieve what is claimed. Our goal today is to see how univalence, wielded in a cultured and educated manner, really can solve this kind of problem elegantly and simply.
Our lesson from the false start above is that we instead need to characterise the identification type of the type of unary algebras, building on the univalence principle of the universe. We can do so directly, but it will be most useful to develop some general-purpose machinery that can be re-used.
Definition Displayed reflexive graph [01I6]
- September 13, 2025
- Jon Sterling
Let A be a reflexive graph. A displayed reflexive graph B over A is given by the following data:
\begin {aligned} x:\left \lvert {A}\right \rvert &\vdash \left \lvert {B}\right \rvert [x]~\mathit {type} \\ x,y:\left \lvert {A}\right \rvert ; e:x\approx _{A}y, u:\left \lvert {B}\right \rvert [x], v:\left \lvert {B}\right \rvert [y] &\vdash u \approx ^{B}_{e} v ~\mathit {type} \\ x:\left \lvert {A}\right \rvert ,u:\left \lvert {B}\right \rvert [x] &\vdash \mathsf {rx}^{A}_{x}u : u\approx ^{B}_{\mathsf {rx}_{A}{x}}u \end {aligned}An element of \left \lvert {B}\right \rvert [x] is called a vertex displayed over x. Given an edge p:x\approx _{A}y in A and displayed vertices u,v over x,y respectively, an element of u\approx ^{B}_{p}v is called a displayed edge over p. Finally, \mathsf {rx}^{A}_{x}u is called the displayed reflexivity edge on u over x.
Displayed reflexive graphs over A give rise to ordinary reflexive graphs in two major ways: by taking their component over a vertex x:A, and by computing the total reflexive graph.
Construction Components of a displayed reflexive graph [01I7]
- September 13, 2025
- Jon Sterling
Let B be a displayed reflexive graph over a reflexive graph A. The component of B over a vertex x:\left \lvert {A}\right \rvert is the reflexive graph B[x] specified below:
\begin {aligned} \left \lvert {B[x]}\right \rvert &:\equiv \left \lvert {B}\right \rvert [x] \\ \left ( u \approx _{B[x]} v \right ) &:\equiv u \approx ^{B}_{\mathsf {rx}_{A}{x}} v \\ \mathsf {rx}_{B[x]}{u} &:\equiv \mathsf {rx}^{B}_{x}{u} \end {aligned}Construction The total reflexive graph of a displayed reflexive graph [01I8]
- September 13, 2025
- Jon Sterling
Let B be a displayed reflexive graph over a reflexive graph A. The total reflexive graph of B is defined to be the reflexive graph A.B specified below:
\begin {aligned} \left \lvert {A.B}\right \rvert &:\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:\left \lvert {A}\right \rvert )}}{\left \lvert {B}\right \rvert [x]} \\ \left ( \left \langle x,u\right \rangle \approx _{A.B} \left \langle y,v\right \rangle \right ) &:\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(e:x\approx _{A}y)}} u\approx ^{B}_{e} v \\ \mathsf {rx}_{A.B}{\left \langle x,u\right \rangle } &:\equiv \left \langle \mathsf {rx}_{A}{x}, \mathsf {rx}^{B}_{x}{u} \right \rangle \end {aligned}Definition Univalent displayed reflexive graph [01I9]
- September 13, 2025
- Jon Sterling
A displayed reflexive graph is called univalent when all of its components are univalent.
Lemma Univalent total reflexive graphs [01IA]
- September 13, 2025
- Jon Sterling
Let B be a displayed reflexive graph over a reflexive graph A. If A is univalent and B is univalent, then the total reflexive graph A.B is univalent.
Proof.
- September 13, 2025
- Jon Sterling
We will show that for every a:\left \lvert {A}\right \rvert and b:\left \lvert {B}\right \rvert the fan \left \{\left \langle a,b\right \rangle \right \}^+_{A.B} is a proposition. We consider the following sequence of equivalences:
\begin {aligned} &\left \{\left \langle a,b\right \rangle \right \}^+_{A.B} \\ &\xrightarrow {(1)} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(p:{\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:\left \lvert {A}\right \rvert )}}\left \lvert {B}\right \rvert [x])}} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(e:a\approx _{A} p.1)}} b\approx ^{B}_{e} p.2 \\ &\xrightarrow {(2)} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(x:\left \lvert {A}\right \rvert )}} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(e:a\approx _{A} x)}} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(u:\left \lvert {B}\right \rvert [x])}} b\approx ^{B}_{e} u \\ &\xrightarrow {(3)} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(\phi :\left \{a\right \}^+_{A})}} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(u:\left \lvert {B}\right \rvert [\phi .1])}} b\approx ^{B}_{\phi .2} u \\ &\xleftarrow {(4)} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(u:\left \lvert {B}\right \rvert [a])}} b\approx ^{B}_{\mathsf {rx}_{A}{a}}u \\ &\xrightarrow {(5)} \left \{b\right \}^+_{B[a]} \end {aligned}Above:
- (1) and (5) are the identity equivalences.
- (2) and (3) is just re-associating the data.
- (4) is given by our assumption that A is univalent.
Because each fan of A.B is equivalent to a fan of some component of B, and B is univalent, we conclude that A.B is univalent.
Example A displayed reflexive graph for endofunctions [01IB]
- September 13, 2025
- Jon Sterling
We recall our definition of unary algebra in a universe \mathcal {U}, which we do not necessarily assume univalent here.
\mathsf {UnaryAlg}_{\mathcal {U}} :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(A:\mathcal {U})}} A\to AWe will construct a displayed reflexive graph whose total reflexive graph \mathsf {Endofun}_{\mathcal {U}} will be exactly the desired notion of equivalence of unary algebras, i.e.:
\mathsf {UnaryAlgEquiv}(A,B) :\equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(h:\mathsf {Equiv}(A,B))}} h\circ \mathsf {f}_{A}\sim \mathsf {f}_{B}\circ hBecause the first component above needs to be an equivalence of types, we know what the base reflexive graph needs to be: the reflexive graph image \mathcal {U} / \mathcal {T}! To construct the displayed reflexive graph \mathsf {Endofun}_{\mathcal {U}} over \mathcal {U} / \mathcal {T}, we proceed as follows:
\begin {aligned} &A:\mathcal {U} \\ &\vdash \left \lvert {\mathsf {Endofun}_{\mathcal {U}}}\right \rvert [A] :\equiv A\to A \\[12pt] & A,B:\mathcal {U}; e:\mathsf {Equiv}(A,B), f_A:A\to A, f_B:B\to B \\ &\vdash \left (f_A\approx ^{\mathsf {EndoFun}_{\mathcal {U}}}_{e} f_B\right ) :\equiv e\circ f_A \sim f_B\circ e \\[12pt] &A:\mathcal {U}, f_A:A\to A \\ &\vdash \mathsf {rx}^{\mathsf {EndoFun}_{\mathcal {U}}}_{A}{f_A} :\equiv \lambda x\mathpunct {.} \mathsf {refl}_{f_Ax} \end {aligned}Computation Total reflexive graph for endofunctions [01IF]
- September 13, 2025
- Jon Sterling
The total reflexive graph of the displayed reflexive graph for endofunctions \mathsf {Endofun}_{\mathcal {U}} is precisely the following:
\begin {aligned} \left \lvert {(\mathcal {U} / \mathcal {T}).\mathsf {Endofun}_{\mathcal {U}}}\right \rvert &\equiv \mathsf {UnaryAlg}_{\mathcal {U}} \\ \left (A\approx _{(\mathcal {U} / \mathcal {T}).\mathsf {Endofun}_{\mathcal {U}}}B\right ) &\equiv \mathsf {UnaryAlgEquiv}(A,B) \\ \mathsf {rx}_{(\mathcal {U} / \mathcal {T}).\mathsf {Endofun}_{\mathcal {U}}}{A} &\equiv \left \langle 1_A, \lambda x\mathpunct {.}\mathsf {refl}_{\mathsf {f}_{A}x}\right \rangle \end {aligned}Computation Components of the displayed reflexive graph for endofunctions [01IC]
- September 13, 2025
- Jon Sterling
Given a type A:\mathcal {U}, the component of \mathsf {Endofun}_{\mathcal {U}} over A is computed as follows:
\begin {aligned} \left \lvert {\mathsf {Endofun}_{\mathcal {U}}}\right \rvert [A] &\equiv A\to A \\ \left (f\approx _{\mathsf {Endofun}_{\mathcal {U}}[A]} g\right ) &\equiv f\sim g \\ \mathsf {rx}_{\mathsf {Endofun}_{\mathcal {U}}[A]}{f} &\equiv \lambda x\mathpunct {.}{\mathsf {refl}_{fx}} \end {aligned}Inspecting the above, we see that we have the following judgemental equality of reflexive graphs:
\mathsf {Endofun}_{\mathcal {U}}[A] \equiv {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}} \Delta ACorollary Displayed univalence for endfunctions [01ID]
- September 13, 2025
- Jon Sterling
It follows immediately that the displayed reflexive graph for endofunctions \mathsf {Endofun}_{\mathcal {U}} is univalent (regardless of whether \mathcal {U} is univalent).
Proof.
- September 13, 2025
- Jon Sterling
We need only verify that each component \mathsf {Endofun}_{\mathcal {U}}[A] is univalent; but we already computed that this component is precisely the product {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}\Delta A\text {,} which is univalent by the univalence principle for products of discrete reflexive graphs, i.e. function extensionality.
Corollary The univalence principle for unary algebras [01IE]
- September 13, 2025
- Jon Sterling
If \mathcal {U} is a univalent universe, then the total reflexive graph (\mathcal {U} / \mathcal {T}).\mathsf {Endofun}_{\mathcal {U}} is univalent.
Proof.
- September 13, 2025
- Jon Sterling
This follows from our lemma for univalent total reflexive graphs via our assumption that \mathcal {U} is a univalent universe and our displayed univalence lemma for endofunctions.
Univalence principles such as the one above for algebraic structures are often called structure identity principles, a name (to my knowledge) chosen by the late Peter Aczel. These can be derived for pretty any algebraic structure whatsoever in the way that we have shown above.
Example Univalent transfer of fixed points along equivalences of unary algebras [01IG]
- September 13, 2025
- Jon Sterling
With the univalence principle for unary algebras in hand, it is now trivial to transfer fixed points along an equivalence of unary algebras, as we have the following equivalences:
\begin {aligned} & {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(A,B:\mathsf {UnaryAlg}_{\mathcal {U}})}} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(e:\mathsf {UnaryAlgEquiv}(A,B))}}\; \mathsf {FP}(A)\to \mathsf {FP}(B) \\ &\xrightarrow {(1)} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(A:\mathsf {UnaryAlg}_{\mathcal {U}})}} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(\phi : \left \{A\right \}^+_{(\mathcal {U} / \mathcal {T}).\mathsf {Endofun}_{\mathcal {U}}} )}} \; \mathsf {FP}(A)\to \mathsf {FP}(\phi .1) \\ &\xrightarrow {(2)} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(A:\mathsf {UnaryAlg}_{\mathcal {U}})}} \mathsf {FP}(A)\to \mathsf {FP}(A) \end {aligned}Above, (1) is just reassociating data and (2) is the univalence princile for unary algebras, as we contract the fan \phi onto (A,1_A) where 1_A is the identity equivalence of unary algebras.
Exercises [01HO]
- September 8, 2025
- Jon Sterling
Exercise. The coproduct of a family of univalent reflexive graphs [01HN]
- September 13, 2025
- Jon Sterling
Given a type A and a family x:A\vdash B[x] of univalent reflexive graphs, show that the coproduct {\mathop {\mathchoice {\textstyle \coprod }{\textstyle \coprod }{\scriptstyle \coprod }{\scriptscriptstyle \coprod } }_{(x:A)}}B[x] is univalent.
Exercise. The product of a family of contractible types [01I0]
- September 13, 2025
- Jon Sterling
Show that the product of a family of contractible types is contractible.
Exercise. The product of a family of n-truncated types [01HZ]
- September 13, 2025
- Jon Sterling
Show that the product of a family of n-truncated types is n-truncated.