The adjunction determined by a representable map [00DS]
- November 8, 2023
- Jon Sterling
Definition The generic elements functor of a representable map [00DL]
- November 7, 2023
- Jon Sterling
Let {E}\xrightarrow {{p}}{U} be a representable map in \operatorname {Pr}\mathcal {C}. We shall define the generic elements functor {\widetilde {U}}\xrightarrow {{q}}{\widetilde {E}} that, intuitively, sends an element of the base to the “generic element” of the fiber of {E}\xrightarrow {{p}}{U} at that element.
Fixing an element \Gamma \vdash A, we define qA to be the upstairs map in the following pullback square that exists by representability of {E}\xrightarrow {{p}}{U}, and can be chosen by the univalence principle for the category \mathcal {C}:
Fixing a morphism {A}\xrightarrow {{\bar \gamma }}{B} in \widetilde {U} over {\Delta }\xrightarrow {{\gamma }}{\Gamma } in \mathcal {C}, we choose {qA}\xrightarrow {{q\bar \gamma }}{qB} to be the upper triangle determined by the universal property of the pullback as follows:
Commutation of the outer square follows from the homomorphism property of {A}\xrightarrow {{\bar \gamma }}{B} in \widetilde {U}. The assignment preserves identities and compositions, so we have defined a functor {\widetilde {U}}\xrightarrow {{q}}{\widetilde {E}}.
Definition The weakening counit of a representable map [00DM]
- November 7, 2023
- Jon Sterling
Let {E}\xrightarrow {{p}}{U} be a representable map in \operatorname {Pr}\mathcal {C}, so that {\widetilde {U}}\xrightarrow {{q}}{\widetilde {E}} is the corresponding generic elements functor. We may define a natural transformation {\widetilde {p}\circ q}\xrightarrow {{\epsilon }}{1_{\widetilde {U}}} that we shall call the weakening counit of the representable map {E}\xrightarrow {{p}}{U}.
For \Gamma \vdash A we define the component {\widetilde {p}qA}\xrightarrow {{\epsilon _A}}{A} to be the following cell over {\Gamma .A}\xrightarrow {{p_A}}{A}:
The reason to name \epsilon _A as we have done is that it witnesses the fact that “weakening” a given type \Gamma \vdash A into the context of its generic element gives you precisely the type of the generic element.
Definition The substitution unit of a representable map [00DN]
- November 7, 2023
- Jon Sterling
Let {E}\xrightarrow {{p}}{U} be a representable map in \operatorname {Pr}\mathcal {C}, so that {\widetilde {U}}\xrightarrow {{q}}{\widetilde {E}} is the corresponding generic elements functor. We may define a natural transformation {1_{\widetilde {E}}}\xrightarrow {{\eta }}{q\circ \widetilde {p}} that we shall call the substitution unit of the representable map {E}\xrightarrow {{p}}{U}.
We define {1_{\widetilde {E}}}\xrightarrow {{\eta }}{q\circ \widetilde {p}} assigning to each \Gamma \vdash a : A the upper-hand depicted below:
The reason to refer to {1_{\widetilde {E}}}\xrightarrow {{\eta }}{q\circ \widetilde {p}} as the substitution unit is that it witnesses the fact that every element of a given type arises from that type’s generic element by substitution.
Lemma Snake identity: duplicating the generic element [00DP]
- November 7, 2023
- Jon Sterling
The following “snake identity” for the substitution unit and the weakening counit holds for any representable map {E}\xrightarrow {{p}}{U} in \operatorname {Pr}\mathcal {C}:
As we shall see in the proof below, this identity states that duplicating the generic element gives you the generic element (up to weakening).
Proof.
- November 7, 2023
- Jon Sterling
We first instantiate the snake diagram at an arbitrary {\mathopen {}\left (\Gamma \vdash A\right )\mathclose {}}\in \widetilde {U}.
As {\widetilde {E}}\xrightarrow {{\pi _E}}{\mathcal {C}} is a discrete fibration, it suffices to check that the above diagram lies over an identity cell in \mathcal {C}. We therefore consider its image in \mathcal {C} as an endomorphism on \Gamma .A to check that it is the identity, computing as follows using the componentwise definitions of the substitution unit and the weakening counit:
These two maps evidently compose to the identity: indeed, by the universal property of \Gamma .A as the fiber product E\times _U\Gamma , it suffices to check that qA\circ p_A.qpqA\circ {\mathopen {}\left \langle \Gamma .A,qA\right \rangle \mathclose {}} = qA and p_A\circ p_A.qpqA\circ {\mathopen {}\left \langle \Gamma .A,qA\right \rangle \mathclose {}} = p_A, as can be read off from the diagrams below.
Lemma Snake identity: elements are sections [00DQ]
- November 8, 2023
- Jon Sterling
The following “snake identity” for the substitution unit and the weakening counit holds for any representable map {E}\xrightarrow {{p}}{U} in \operatorname {Pr}\mathcal {C}:
As we shall see, this law states that any element \Gamma \vdash a : A gives rise to a section of the display map {\Gamma .A}\xrightarrow {{p_A}}{\Gamma }.
Proof.
- November 8, 2023
- Jon Sterling
We may instantiate the snake diagram at an arbitrary {\mathopen {}\left (\Gamma \vdash a:A\right )\mathclose {}}\in \widetilde {E}, and we may whisker on the right with {\widetilde {U}}\xrightarrow {{\pi _U}}{\mathcal {C}} which, as a discrete fibration, is a faithful functor. It suffices now to check that the resulting cell is an identity map \mathcal {C}. We we compute it below using the componentwise definitions of the substitution unit and weakening counit.
The cell depicted above is indeed an identity, as {\Gamma }\xrightarrow {{\Gamma .a}}{\Gamma .A} is defined to be the section of {\Gamma .A}\xrightarrow {{p_A}}{\Gamma } determined by {\Gamma }\xrightarrow {{a}}{E}.
Corollary Adjointness of the generic elements functor [00DT]
- November 8, 2023
- Jon Sterling
Let {E}\xrightarrow {{p}}{U} be a representable map in \operatorname {Pr}{\mathcal {C}}; then we have an adjunction \widetilde {p}\dashv q where {\widetilde {U}}\xrightarrow {{q}}{\widetilde {E}} is the generic elements functor of {E}\xrightarrow {{p}}{U}, in which the unit and counit are the substitution unit and weakening counit respectively.
Proof.
- November 8, 2023
- Jon Sterling
We have verified the two snake identities in Lemmas [00DP] and [00DQ] respectively.