Theorem 12.6.3. Let \(C\) be a small category. Then the colimit of the Yoneda embedding \[ h_C\colon C \to \PSh(C) \] is the terminal object.
Proof
Under the equivalence \(\Fun(C,\PSh(C)) \simeq \Fun(C\catop\times C,\An)\), pulling back along the projection \(\pr_1\colon C\catop\times C\to C\catop\)
\[
\pr^*_1\colon\PSh(C)\to\Fun(C\catop\times C,\An)
\]
corresponds to the functor producing \(C\)-indexed constant objects
\[
\PSh(C)\to\Fun(C,\PSh(C))\, .
\]
Passing to left adjoint functors we thus see that there is a canonical commutative triangle
of the form
so that the horizontal equivalence sends \(h_C\) to \(\Hom_C\).
In other words, we have to prove that \((\pr_1)_!(\Hom_C)\)
is a terminal object.
Since there is always a canonical map to the terminal object and since the property for
a natural transformation to be invertible can be checked objectwise,
given a small category \(I\), the property for an object \(F\) of \(\Fun(I,\An)\) to be a terminal object
is equivalent to the property that \(F(i)\) is terminal in \(\An\) for all \(i\colon I^\simeq\).
Therefore, it suffices now to prove that the evaluation of \((\pr_1)_!(\Hom_C)\) at each \(x\colon C^\simeq\)
is terminal.
Since the projection map from \(C\catop\times C\) to \(C\) is a cocartesian fibration, we know
from Lemma 9.6.5
that we may compute the value at some object \(x\) of \(C\) as the colimit of the functor over the fiber
of \(\pr_1\) at \(x\),
which in this case is just \(C\). So it remains to show that
\[
\underset{y\colon C}{\colim}\, \Hom_C(x,y)
\]
is contractible for each object \(x\).
This is a particular case of Corollary 12.6.1
with \(A=C\catop\).
From Section 12.6, Yoneda density and categories of elements.