Representable natural transformations [00E2]
- November 10, 2023
- Jon Sterling
Notation Type theoretic notation in presheaves [00DO]
- November 7, 2023
- Jon Sterling
Let {E}\xrightarrow {{p}}{U} be a morphism in \operatorname {Pr}\mathcal {C}, and let \Gamma be a representable object. We shall use the following notations inspired by dependent type theory to refer to elements of U and E:
- We shall write {\mathopen {}\left (\Gamma \vdash _p A\right )\mathclose {}} to refer to a morphism {\Gamma }\xrightarrow {{A}}{U}.
- Given {\mathopen {}\left (\Gamma \vdash _p A\right )\mathclose {}}, we shall write {\mathopen {}\left (\Gamma \vdash _p a : A\right )\mathclose {}} to refer to a morphism {\Gamma }\xrightarrow {{a}}{E} such that the composite \Gamma \xrightarrow {a}E\xrightarrow {p}U is equal to {\Gamma }\xrightarrow {{A}}{U}.
Definition Representable morphisms of presheaves [00DX]
- November 9, 2023
- Jon Sterling
A morphism {E}\xrightarrow {{p}}{U} in \operatorname {Pr}{\mathcal {C}} is called representable when for every \Gamma \vdash _p A, the fiber product \Gamma .A :\equiv E\times _U\Gamma is representable:
Notation Notation for universal maps [00DW]
- November 9, 2023
- Jon Sterling
Let {E}\xrightarrow {{p}}{U} be a representable morphism in \operatorname {Pr}\mathcal {C}. Given {\Delta }\xrightarrow {{\gamma }}{\Gamma } and \Delta \vdash a : A\gamma , we shall write {\Delta }\xrightarrow {{{\mathopen {}\left \langle \gamma ,a\right \rangle \mathclose {}}}}{\Gamma .A} for the universal map below:
Given {\Delta }\xrightarrow {{\gamma }}{\Gamma }, \Delta \vdash B, \Gamma \vdash A, and \Delta .B\vdash a : A\gamma p_B, we shall write {\Delta .B}\xrightarrow {{\gamma .a}}{\Gamma .A} for the universal map {\mathopen {}\left \langle \gamma \circ p_B,a\right \rangle \mathclose {}}.
Making representable maps algebraic [00EG]
- November 13, 2023
- Jon Sterling
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.
Lemma Representable maps from adjunctions [00DK]
- November 6, 2023
- Jon Sterling
Let {E}\xrightarrow {{p}}{U} be a morphism in \operatorname {Pr}\mathcal {C}; if the induced functor {\widetilde {E}}\xrightarrow {{\widetilde {p}}}{\widetilde {U}} between categories of elements has a right adjoint, then {E}\xrightarrow {{p}}{U} is representable.
Proof.
- November 6, 2023
- Jon Sterling
Let there be a right adjoint {\widetilde {U}}\xrightarrow {{q}}{\widetilde {E}} to {\widetilde {E}}\xrightarrow {{\widetilde {p}}}{\widetilde {U}}, and fix {\mathopen {}\left (\Gamma \vdash A\right )\mathclose {}}\in \widetilde {U}. Applying the right adjoint, we have an element {\mathopen {}\left (\Gamma .A\vdash qA\right )\mathclose {}}\in \widetilde {E}; instantiating the counit at {\mathopen {}\left (\Gamma \vdash A\right )\mathclose {}}, we have a cell {\widetilde {p}qA}\xrightarrow {{\epsilon _{A}}}{A}, which amounts to a commuting square in the following configuration:
It suffices to show that the square depicted above is cartesian. Because pullbacks in presheaf categories are computed pointwise, it suffices to consider only squares with a representable apex, such as the one below in which \Delta is assumed representable:
To construct the universal map {\Delta }\xrightarrow {{{\mathopen {}\left \langle \gamma ,a\right \rangle \mathclose {}}}}{\Gamma .A} factoring \gamma ,a through qA,p_A respectively, we note the square above corresponds precisely to a morphism {\widetilde {p}a}\xrightarrow {{\bar \gamma }}{A} in \widetilde {U}, visualised as follows:
We can transpose {\widetilde {p}a}\xrightarrow {{\gamma }}{A} to obtain the following {a}\xrightarrow {{\bar \gamma ^\sharp }}{qA} in \widetilde {E}:
We now define {\Delta }\xrightarrow {{{\mathopen {}\left \langle \gamma ,a\right \rangle \mathclose {}}}}{\Gamma .A} to be the image of {a}\xrightarrow {{\bar \gamma ^\sharp }}{qA} in \mathcal {C}, i.e. {\mathopen {}\left \langle \gamma ,a\right \rangle \mathclose {}} :\equiv \pi _E \bar \gamma ^\sharp .The factorisation qA\circ {\mathopen {}\left \langle \gamma ,a\right \rangle \mathclose {}} = a holds by inspection of the above diagram in \widetilde {E}. The other factorisation p_A \circ {\mathopen {}\left \langle \gamma ,a\right \rangle \mathclose {}} = \gamma holds by the snake identities of adjoints:
Uniqueness of {a}\xrightarrow {{{\mathopen {}\left \langle \gamma ,a\right \rangle \mathclose {}}}}{qA} with this property can be seen as follows. We fix any {\Delta }\xrightarrow {{h}}{\Gamma .A} satisfying the two factorisation properties; in other words, we assume that h lies underneath a morphism in {a}\xrightarrow {{\bar {h}}}{qA} in \widetilde {E} satisfying (only) the additional property that \epsilon _A\circ \bar {h} = \gamma :
To see that h = {\mathopen {}\left \langle \gamma ,a\right \rangle \mathclose {}}, it therefore suffices to observe the following instance of the snake identity:
Corollary Algebraic description of representable maps [00DU]
- November 9, 2023
- Jon Sterling
A morphism {E}\xrightarrow {{p}}{U} is representable in \operatorname {Pr}\mathcal {C} if and only if the induced functor {\widetilde {E}}\xrightarrow {{\widetilde {p}}}{\widetilde {U}} has a right adjoint.