Lemma 8.7.6. The functor \(\Un\colon \Fun(S,\Cat) \to \Cat_{/S}\) lands in the subcategory \(\CoCart(S)\).

Proof

By definition of a subcategory it suffices to check this on individual morphisms in \(\Fun(S,\Cat)\).

Let us check what this functor does on objects. Note that the above construction is functorial in \(B\), in the sense that if we precompose \(F\colon B \times S \to \Cat\) by the functor \(g\times \id_S\colon B' \times S \to B \times S\) induced by some functor \(g\colon B' \to B\), we will end up with the composite \(B' \xrightarrow{g} B \xrightarrow{\Un} \Cat_{/S}\). So to compute \(\Un(f)\) for some functor \(f\colon S \to \Cat\), we may directly do the above construction where we replace \(B\) by \(*\). But then the natural transformation \(e \to \const_s\) is just the morphism in \(\Cat\) corresponding under directed univalence to the cocartesian fibration \(p\colon E \to S\) classified by the given functor \(f\colon S \to \Cat\). So on objects we see that it does indeed factor through \(\CoCart(S)\).

On morphisms, the proof is similar. It suffices to interpret how the functor \(\Un\) interprets cocartesian fibrations with small fibers of the form \[ p\colon E\to [1]\times S \] as a morphism in \(\Cat_{/S}\). Let \(l\) be a \(p\)-cocartesian lift of the term \(\id_{[1]}\times p_0\colon [1]\times E_0\to [1]\times S\) extending the term given by the canonical embedding \(\iota_0\) of the fiber \(E_0\) into \(E\) obtained from Lemma 8.2.2. Commutative diagram; see the PDF for its LaTeX source Taking fibers over \(1\) turns \(l\) into a functor \(l_1\colon E_0\to E_1\) over \(S\) that is a cocartesian functor over \(S\). The right-hand square shows that, after forgetting the base \(S\), directed univalence identifies \(l_1\) with the morphism in \(\Cat\) associated to \(p\). Thus the induced morphism in \(\Cat_{/S}\) is the morphism classified by \(l_1\), together with its compatibility with the projections to \(S\). In particular, it is a cocartesian functor over \(S\).

From Section 8.7, Straightening/unstraightening.