Definition 4.5.1 ((Co)cartesian fibration). A functor \(f\colon A \to B\) is called a cocartesian fibration if the directed evaluation map \(\vec{\ev}^f_0\colon \Fun([1],A) \to A \vectimes{f} B\) admits a left adjoint section \(\lift^f_0\colon A \vectimes{f} B \to \Fun([1],A)\).
Dually, \(f\) is called a cartesian fibration if the map \(\vec{\ev}_1^f\colon \Fun([1],A) \to B \vectimes{f} A\) admits a right adjoint section \(\lift^f_1\colon B \vectimes{f} A \to \Fun([1],A)\).