The Stacks project, tag 04SS, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/04SS
The 2-Yoneda lemma
Let \(U \in \Ob((\Sch/S)_{fppf})\), and let \(\mathcal{X}\) be a category fibred in groupoids over \((\Sch/S)_{fppf}\). We will frequently use the \(2\)-Yoneda lemma, see Categories, Lemma 4.41.2. Technically it says that there is an equivalence of categories \[\Mor_{\textit{Cat}/(\Sch/S)_{fppf}}( (\Sch/U)_{fppf}, \mathcal{X}) \longrightarrow \mathcal{X}_U, \quad f \longmapsto f(U/U).\] It says that \(1\)-morphisms \((\Sch/U)_{fppf} \to \mathcal{X}\) correspond to objects \(x\) of the fibre category \(\mathcal{X}_U\). Namely, given a \(1\)-morphism \(f : (\Sch/U)_{fppf} \to \mathcal{X}\) we obtain the object \(x = f(U/U) \in \Ob(\mathcal{X}_U)\). Conversely, given a choice of pullbacks for \(\mathcal{X}\) as in Categories, Definition 4.33.6, and an object \(x\) of \(\mathcal{X}_U\), we obtain a functor \((\Sch/U)_{fppf} \to \mathcal{X}\) defined by the rule \[(\varphi : V \to U) \longmapsto \varphi^*x\] on objects. By abuse of notation we use \(x : (\Sch/U)_{fppf} \to \mathcal{X}\) to indicate this functor. It indeed has the property that \(x(U/U) = x\) and moreover, given any other functor \(f\) with \(f(U/U) = x\) there exists a unique \(2\)-isomorphism \(x \to f\). In other words the functor \(x\) is well determined by the object \(x\) up to unique \(2\)-isomorphism.
We will use this without further mention in the following.