Lemma. Characterising the type of quasi-inverses [01IT]
- September 24, 2025
- Jon Sterling
Let f:A\to B be a quasi-invertible function. Then we have an equivalence \mathsf {qinverseOf}(f)\to {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}x=_Ax where \mathsf {qinverseOf}(f) \equiv {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(\bar {f}:B\to A)}} f\circ \bar {f}\sim 1_B \times \bar {f}\circ f\sim 1_A is the type of quasi-inverses to f.
Proof.
- September 24, 2025
- Jon Sterling
To be more precise, we are constructing an element of the following type where \mathcal {U} is a big enough univalent universe:
{\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(A,B:\mathcal {U})}} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(f:A\to B)}} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(q_f:\mathsf {qinverseOf}(f))}} \left ( \mathsf {qinverseOf}(f)\cong {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{x=_Ax} \right )Because a quasi-invertible function is an equivalence, it suffices to construct an element of the following type:
{\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(A,B:\mathcal {U})}} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(f:A\approx _{\mathcal {U} / \mathcal {T}} B)}} \left ( \mathsf {qinverseOf}(f)\cong {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{x=_Ax} \right )We have the following sequence of equivalences:
\begin {aligned} & {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(A,B:\mathcal {U})}} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(f:A\approx _{\mathcal {U} / \mathcal {T}} B)}} \left ( \mathsf {qinverseOf}(f)\cong {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{x=_Ax} \right ) \\ &\quad \xrightarrow {(1)} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(A:\mathcal {U})}} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(\left \langle B,f\right \rangle :\left \{A\right \}^+_{\mathcal {U} / \mathcal {T}})}} \left ( \mathsf {qinverseOf}(f)\cong {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{x=_Ax} \right ) \\ &\quad \xrightarrow {(2)} {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(A:\mathcal {U})}} \left ( \mathsf {qinverseOf}(1_A)\cong {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}{x=_Ax} \right ) \end {aligned}The second equivalence is precisely the univalence of \mathcal {U}. Now, fixing A:\mathcal {U}, we have the following sequence of equivalences:
\begin {aligned} &\mathsf {qinverseOf}(1_A) \\ &\quad \xrightarrow {\equiv } {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(f:A\to A)}} f\sim 1_A \times f\sim 1_A \\ &\quad \xrightarrow {(1)} {\mathop {\mathchoice {\textstyle \sum }{\textstyle \sum }{\scriptstyle \sum }{\scriptscriptstyle \sum } }_{(\left \langle f,h\right \rangle : \left \{1_A\right \}^+_{{\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}}\Delta A} )}} f\sim 1_A \\ &\quad \xrightarrow {(2)} 1_A\sim 1_A \\ &\quad \xrightarrow {\equiv } {\mathop {\mathchoice {\textstyle \prod }{\textstyle \prod }{\scriptstyle \prod }{\scriptscriptstyle \prod } }_{(x:A)}} x=_Ax \end {aligned}Above, (1) is just reshuffling and (2) is the function extensionality / univalence for products of families of discrete reflexive graphs.