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.