Stacks project reader · Categories · Search · Suggestions (AI)

The Stacks project, tag 0GWH, at revision a04446e (28 July 2026). Official page: stacks.math.columbia.edu/tag/0GWH

The 2-Yoneda lemma

Let \(\mathcal{C}\) be a category. The \(2\)-category of fibred categories over \(\mathcal{C}\) was constructed/defined in Definition 4.33.9. If \(\mathcal{S}\), \(\mathcal{S}'\) are fibred categories over \(\mathcal{C}\) then \[\Mor_{\textit{Fib}/\mathcal{C}}(\mathcal{S}, \mathcal{S}')\] denotes the category of \(1\)-morphisms in this \(2\)-category. Here is the \(2\)-category analogue of the Yoneda lemma in the setting of fibred categories.

Lemma 4.41.1 [2-Yoneda lemma for fibred categories] (0GWI) official page ↗

Let \(\mathcal{C}\) be a category. Let \(\mathcal{S} \to \mathcal{C}\) be a fibred category over \(\mathcal{C}\). Let \(U \in \Ob(\mathcal{C})\). The functor \[\Mor_{\textit{Fib}/\mathcal{C}}(\mathcal{C}/U, \mathcal{S}) \longrightarrow \mathcal{S}_U\] given by \(G \mapsto G(\text{id}_U)\) is an equivalence.

Proof. Make a choice of pullbacks for \(\mathcal{S}\) (see Definition 4.33.6). We define a functor \[\mathcal{S}_U \longrightarrow \Mor_{\textit{Fib}/\mathcal{C}}(\mathcal{C}/U, \mathcal{S})\] as follows. Given \(x \in \Ob(\mathcal{S}_U)\) the associated functor is

  1. on objects: \((f : V \to U) \mapsto f^*x\), and

  2. on morphisms: the arrow \((g : V'/U \to V/U)\) maps to the composition \[(f \circ g)^*x \xrightarrow{(\alpha_{g, f})_x} g^*f^*x \rightarrow f^*x\] where \(\alpha_{g, f}\) is as in Lemma 4.33.7.

We omit the verification that this is an inverse to the functor of the lemma.

Let \(\mathcal{C}\) be a category. The \(2\)-category of categories fibred in groupoids over \(\mathcal{C}\) is a “full” sub \(2\)-category of the \(2\)-category of categories over \(\mathcal{C}\) (see Definition 4.35.6). Hence if \(\mathcal{S}\), \(\mathcal{S}'\) are fibred in groupoids over \(\mathcal{C}\) then \[\Mor_{\textit{Cat}/\mathcal{C}}(\mathcal{S}, \mathcal{S}')\] denotes the category of \(1\)-morphisms in this \(2\)-category (see Definition 4.32.1). These are all groupoids, see remarks following Definition 4.35.6. Here is the \(2\)-category analogue of the Yoneda lemma.

Lemma 4.41.2 [2-Yoneda lemma] (004B) official page ↗

Let \(\mathcal{S}\to \mathcal{C}\) be fibred in groupoids. Let \(U \in \Ob(\mathcal{C})\). The functor \[\Mor_{\textit{Cat}/\mathcal{C}}(\mathcal{C}/U, \mathcal{S}) \longrightarrow \mathcal{S}_U\] given by \(G \mapsto G(\text{id}_U)\) is an equivalence.

Proof. Make a choice of pullbacks for \(\mathcal{S}\) (see Definition 4.33.6). We define a functor \[\mathcal{S}_U \longrightarrow \Mor_{\textit{Cat}/\mathcal{C}}(\mathcal{C}/U, \mathcal{S})\] as follows. Given \(x \in \Ob(\mathcal{S}_U)\) the associated functor is

  1. on objects: \((f : V \to U) \mapsto f^*x\), and

  2. on morphisms: the arrow \((g : V'/U \to V/U)\) maps to the composition \[(f \circ g)^*x \xrightarrow{(\alpha_{g, f})_x} g^*f^*x \rightarrow f^*x\] where \(\alpha_{g, f}\) is as in Lemma 4.35.2.

We omit the verification that this is an inverse to the functor of the lemma.

Remark 4.41.3 (076J) official page ↗

We can use the \(2\)-Yoneda lemma to give an alternative proof of Lemma 4.37.3. Let \(p : \mathcal{S} \to \mathcal{C}\) be a category fibred in groupoids. We define a contravariant functor \(F\) from \(\mathcal{C}\) to the category of groupoids as follows: for \(U\in \Ob(\mathcal{C})\) let \[F(U) = \Mor_{\textit{Cat}/\mathcal{C}}(\mathcal{C}/U, \mathcal{S}).\] If \(f : U \to V\) the induced functor \(\mathcal{C}/U \to \mathcal{C}/V\) induces the morphism \(F(f) : F(V) \to F(U)\). Clearly \(F\) is a functor. Let \(\mathcal{S}'\) be the associated category fibred in groupoids from Example 4.37.1. There is an obvious functor \(G : \mathcal{S}' \to \mathcal{S}\) over \(\mathcal{C}\) given by taking the pair \((U, x)\), where \(U \in \Ob(\mathcal{C})\) and \(x \in F(U)\), to \(x(\text{id}_U) \in \mathcal{S}\). Now Lemma 4.41.2 implies that for each \(U\), \[G_U : \mathcal{S}'_U = F(U)= \Mor_{\textit{Cat}/\mathcal{C}}(\mathcal{C}/U, \mathcal{S}) \to \mathcal{S}_U\] is an equivalence, and thus \(G\) is an equivalence between \(\mathcal{S}\) and \(\mathcal{S}'\) by Lemma 4.35.9.