Theorem 8.7.8 (Straightening/unstraightening). For every small category \(S\), the functor \[ \Un\colon \Fun(S,\Cat) \iso \CoCart(S) \] is an equivalence.
Proof
By virtue of the preceding lemma and of the fundamental theorem of category theory (Theorem 6.3.8), it suffices to prove that the functor \(\Un\) has a section. We observe that a functor \(\Phi\colon B \to \Cat_{/S}\) admits a lift \(\widetilde{\Phi}\colon B \to \Fun(S,\Cat)\) along \(\Un\) if and only if it factors through \(\CoCart(S)\): this is precisely what Proposition 6.5.15 means. Considering \(B=\CoCart(S)\), and \(\Phi\) the canonical embedding of \(\CoCart(S)\) into \(\Cat_{/S}\), this proves that the functor \(\Un\) has a section.