Proposition 6.2.3 (Pointwise criterion for adjunctions). Let \(f\colon C \to D\) be a functor. Assume that, for every object \(d \in D\), we are given an object \(g(d)\) in \(C\) together with a morphism \(\epsilon_d\colon f(g(d)) \to d\) (resp. \(\eta_d\colon d \to f(g(d))\)) such that for any object \(c\) in \(C\) the map \[ C(c,g(d)) \xrightarrow{f} D(f(c), f(g(d))) \xrightarrow{\epsilon_d \circ -} D(f(c),d) \] is an equivalence (resp. for every \(c\) in \(C\) the map \[ C(g(d),c) \xrightarrow{f} D(f(g(d)), f(c)) \xrightarrow{- \circ \eta_d} D(d,f(c)) \] is an equivalence.) Then there is a right adjoint (resp. left adjoint) \(g\colon D \to C\) of \(f\) such that \(g(d)\) coincides on objects with the data above, and the counit (resp. unit) is on objects given by the maps \(\epsilon_d\) (resp. \(\eta_d\)).
Proof
We will only prove the first case; the other case is dual. By Theorem 6.2.1 it suffices to check that, for each object \(d\) of \(D\), the pair \((g(d),\epsilon_d)\) is a terminal object of the relative slice \(C_{/d} = C \times_D D_{/d}\). By Lemma 6.1.10, it suffices to show that the hom anima \(\Hom_{C_{/d}}((c,\alpha), (g(d),\epsilon_d))\) is contractible for any object \((c,\alpha\colon f(c) \to d)\) of \(C_{/d}\). Work in the iterated context \(d:D^{\simeq},(c,\alpha):(C_{/d})^{\simeq}\) of the universal object of \(D\) and the universal object of its relative slice. By definition of \(C_{/d}\) as a pullback, we may compute this hom anima via the following pullback diagram, where \(*\) is the terminal category in this context:
But since the bottom composite is assumed to be an equivalence, we see that the top composite is also an equivalence, and so the left-upper corner is contractible as desired. This finishes the proof.