Lemma. Structure identity principle for co-slice morphisms [009X]
- October 5, 2023
- Jon Sterling
Let A be a type and let {X}\xrightarrow {{f}}{Y} be a homomorphism of A-algebras. Assuming function extensionality, the type \mathchoice {\textstyle \sum _{{\mathopen {}\left (g\colon X\to Y\right )\mathclose {}}}}{\textstyle \sum _{{\mathopen {}\left (g\colon X\to Y\right )\mathclose {}}}}{\scriptstyle \sum _{{\mathopen {}\left (g\colon X\to Y\right )\mathclose {}}}}{\scriptscriptstyle \sum _{{\mathopen {}\left (g\colon X\to Y\right )\mathclose {}}}}g\sim f of homomorphisms homotopic to f is contractible.
Proof.
- October 5, 2023
- Jon Sterling
We expand the dependent sum \mathchoice {\textstyle \sum _{{\mathopen {}\left (g\colon X\to Y\right )\mathclose {}}}}{\textstyle \sum _{{\mathopen {}\left (g\colon X\to Y\right )\mathclose {}}}}{\scriptstyle \sum _{{\mathopen {}\left (g\colon X\to Y\right )\mathclose {}}}}{\scriptscriptstyle \sum _{{\mathopen {}\left (g\colon X\to Y\right )\mathclose {}}}}g\sim f as a flat record telescope:
\begin {bmatrix*}[l] {\mathopen {}\left \lvert g\right \rvert \mathclose {}} &\colon &{\mathopen {}\left \lvert X\right \rvert \mathclose {}}\to {\mathopen {}\left \lvert Y\right \rvert \mathclose {}}\\ \alpha _g &\colon &{\mathopen {}\left \lvert g\right \rvert \mathclose {}}\circ \alpha _X \sim \alpha _Y\\ {\mathopen {}\left \lvert H\right \rvert \mathclose {}} &\colon &{\mathopen {}\left \lvert f\right \rvert \mathclose {}}\sim {\mathopen {}\left \lvert g\right \rvert \mathclose {}}\\ \alpha _H &\colon &\mathchoice {\textstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}}{\textstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}}{\scriptstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}}{\scriptscriptstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}} {\mathopen {}\left \lvert H\right \rvert \mathclose {}}\alpha _X a\cdot \alpha _g a = \alpha _f a \end {bmatrix*}First we re-order the telescope:
\begin {bmatrix*}[l] {\mathopen {}\left \lvert g\right \rvert \mathclose {}} &\colon &{\mathopen {}\left \lvert X\right \rvert \mathclose {}}\to {\mathopen {}\left \lvert Y\right \rvert \mathclose {}}\\ {\mathopen {}\left \lvert H\right \rvert \mathclose {}} &\colon &{\mathopen {}\left \lvert f\right \rvert \mathclose {}}\sim {\mathopen {}\left \lvert g\right \rvert \mathclose {}}\\ \alpha _g &\colon &{\mathopen {}\left \lvert g\right \rvert \mathclose {}}\circ \alpha _X \sim \alpha _Y\\ \alpha _H &\colon &\mathchoice {\textstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}}{\textstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}}{\scriptstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}}{\scriptscriptstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}} {\mathopen {}\left \lvert H\right \rvert \mathclose {}}\alpha _X a\cdot \alpha _g a = \alpha _f a \end {bmatrix*}By homotopy induction (function extensionality), the first two fields contract to a point with substitution {\mathopen {}\left [{\mathopen {}\left \lvert g\right \rvert \mathclose {}}:\equiv {\mathopen {}\left \lvert f\right \rvert \mathclose {}}; {\mathopen {}\left \lvert H\right \rvert \mathclose {}}:\equiv \lambda \_.\mathsf {refl}\right ]\mathclose {}}. What remains of our telescope is the following:
\begin {bmatrix*}[l] \alpha _g &\colon &{\mathopen {}\left \lvert f\right \rvert \mathclose {}}\circ \alpha _X \sim \alpha _Y\\ \alpha _H &\colon &\mathchoice {\textstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}}{\textstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}}{\scriptstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}}{\scriptscriptstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}} \mathsf {refl} \cdot \alpha _g a = \alpha _f a \end {bmatrix*}Zooming into the \alpha _H component, we simplify it and then zoom back out:
\begin {bmatrix*}[l] \alpha _g &\colon &{\mathopen {}\left \lvert f\right \rvert \mathclose {}}\circ \alpha _X \sim \alpha _Y\\ \alpha _H &\colon &\mathchoice {\textstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}}{\textstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}}{\scriptstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}}{\scriptscriptstyle \prod _{{\mathopen {}\left (a:A\right )\mathclose {}}}} \alpha _g a = \alpha _f a \end {bmatrix*}By dependent homotopy induction (also function extensionality), the remaining data collapse to a point with substitution {\mathopen {}\left [\alpha _g :\equiv \alpha _f; \alpha _H :\equiv \lambda \_.\mathsf {refl}\right ]\mathclose {}}. The remaining telescope is empty, so we are done.