Definition 4.8.1. Let \(p\colon C \to S\) be a functor, and consider a morphism \(u\colon x \to y\) in \(C\), say in context \(\Gamma\). This morphism uniquely lifts to a morphism \(u'\) in the category \(C'\) defined by the following pullback square in context \(\Gamma\):
We say that \(u\) is locally \(p\)-cocartesian if the morphism \(u'\) is \(p'\)-cocartesian. We say that \(p\) is a locally cocartesian fibration if for every morphism \(w\colon s \to t\) in \(S\) and any \(x : C_s\) there exists a locally \(p\)-cocartesian lift \(u\colon x\to y\) of \(w\) starting in \(x\), equipped with a specified identification \(p(u) = w\).
One may dually define the notion of a locally \(p\)-cartesian morphism and the associated notion of locally cartesian fibrations.