TheoremComplete

The 2-Yoneda Lemma

The 2-Yoneda lemma is the fundamental representability result for categories fibered in groupoids. It establishes an equivalence between the category of morphisms from a representable CFG hUh_U to an arbitrary CFG F\mathcal{F}, and the fiber F(U)\mathcal{F}(U). This result is the engine behind the "functor of points" approach to algebraic stacks.


Formal Statement

Theorem2.8.12-Yoneda Lemma

Let C\mathcal{C} be a category and let p:FCp : \mathcal{F} \to \mathcal{C} be a category fibered in groupoids over C\mathcal{C}. For every object UCU \in \mathcal{C}, there is an equivalence of categories

YU:F(U)    HomCFG/C(hU,F)\mathbf{Y}_U : \mathcal{F}(U) \xrightarrow{\;\simeq\;} \operatorname{Hom}_{\mathbf{CFG}/\mathcal{C}}(h_U, \mathcal{F})

where hUh_U is the CFG represented by UU (the slice category C/U\mathcal{C}/U with discrete fibers), and HomCFG/C(hU,F)\operatorname{Hom}_{\mathbf{CFG}/\mathcal{C}}(h_U, \mathcal{F}) is the category of morphisms hUFh_U \to \mathcal{F} over C\mathcal{C} (1-morphisms as objects, 2-morphisms as morphisms).

A quasi-inverse is given by the evaluation functor evU:HomCFG/C(hU,F)    F(U),FFU(idU)\mathbf{ev}_U : \operatorname{Hom}_{\mathbf{CFG}/\mathcal{C}}(h_U, \mathcal{F}) \xrightarrow{\;\simeq\;} \mathcal{F}(U), \quad F \mapsto F_U(\operatorname{id}_U)


Construction of the Equivalence

Definition2.8.2The functor Y_U

Fix a cleavage for F\mathcal{F} (choice of pullbacks). Given an object xF(U)x \in \mathcal{F}(U), define the morphism Φx:hUF\Phi_x : h_U \to \mathcal{F} as follows:

On objects: For f:VUf : V \to U (an object of hUh_U over VV), set Φx(f)=fxF(V)\Phi_x(f) = f^*x \in \mathcal{F}(V), where fxf^*x is the chosen pullback.

On morphisms: For a morphism in hUh_U from (g:WU)(g : W \to U) to (f:VU)(f : V \to U) given by h:WVh : W \to V with fh=gf \circ h = g, set Φx(h)\Phi_x(h) to be the unique morphism gxfxg^*x \to f^*x in F\mathcal{F} lying over hh making the diagram of cartesian arrows commute. (This exists and is unique because gxxg^*x \to x and fxxf^*x \to x are both cartesian over gg and ff respectively, and fh=gf \circ h = g.)

On morphisms in the fiber: Given an isomorphism α:xy\alpha : x \to y in F(U)\mathcal{F}(U), define a 2-morphism YU(α):ΦxΦy\mathbf{Y}_U(\alpha) : \Phi_x \Rightarrow \Phi_y by setting the component at (f:VU)(f : V \to U) to be fα:fxfyf^*\alpha : f^*x \to f^*y.

Definition2.8.3The evaluation functor

The quasi-inverse evU:Hom(hU,F)F(U)\mathbf{ev}_U : \operatorname{Hom}(h_U, \mathcal{F}) \to \mathcal{F}(U) sends:

On objects: A morphism F:hUFF : h_U \to \mathcal{F} to F(idU)F(U)F(\operatorname{id}_U) \in \mathcal{F}(U).

On morphisms: A 2-morphism α:FG\alpha : F \Rightarrow G to the component αidU:F(idU)G(idU)\alpha_{\operatorname{id}_U} : F(\operatorname{id}_U) \to G(\operatorname{id}_U) in F(U)\mathcal{F}(U).


Proof

Proof

We verify that evUYUidF(U)\mathbf{ev}_U \circ \mathbf{Y}_U \simeq \operatorname{id}_{\mathcal{F}(U)} and YUevUidHom(hU,F)\mathbf{Y}_U \circ \mathbf{ev}_U \simeq \operatorname{id}_{\operatorname{Hom}(h_U, \mathcal{F})}.

Step 1: evUYUid\mathbf{ev}_U \circ \mathbf{Y}_U \simeq \operatorname{id}.

For xF(U)x \in \mathcal{F}(U), we have evU(Φx)=Φx(idU)=(idU)x\mathbf{ev}_U(\Phi_x) = \Phi_x(\operatorname{id}_U) = (\operatorname{id}_U)^*x. By the cleavage, there is a canonical isomorphism ϵx:(idU)xx\epsilon_x : (\operatorname{id}_U)^*x \xrightarrow{\sim} x. These isomorphisms are natural in xx, giving a natural isomorphism evUYUidF(U)\mathbf{ev}_U \circ \mathbf{Y}_U \cong \operatorname{id}_{\mathcal{F}(U)}.

Step 2: YUevUid\mathbf{Y}_U \circ \mathbf{ev}_U \simeq \operatorname{id}.

For a morphism F:hUFF : h_U \to \mathcal{F}, set x=F(idU)x = F(\operatorname{id}_U). We need a 2-isomorphism ΦxF\Phi_x \cong F.

For any f:VUf : V \to U, we have Φx(f)=fx=fF(idU)\Phi_x(f) = f^*x = f^*F(\operatorname{id}_U) and F(f)F(V)F(f) \in \mathcal{F}(V). Now FF maps the morphism f:(idUf=f)(idU)f : (\operatorname{id}_U \circ f = f) \to (\operatorname{id}_U) in hUh_U to a morphism F(f)F(idU)=xF(f) \to F(\operatorname{id}_U) = x in F\mathcal{F} lying over ff. Since F\mathcal{F} is fibered in groupoids, every morphism is cartesian, so this morphism is a cartesian lift of ff at xx. By uniqueness of cartesian lifts up to unique isomorphism, there is a unique isomorphism θf:fxF(f)\theta_f : f^*x \xrightarrow{\sim} F(f) in F(V)\mathcal{F}(V).

The collection {θf}fhU\{\theta_f\}_{f \in h_U} defines a 2-isomorphism θ:ΦxF\theta : \Phi_x \Rightarrow F. Naturality of θ\theta follows from the universal property of cartesian arrows.

Step 3: Functoriality and coherence.

The isomorphisms in Steps 1 and 2 are natural in xx and FF respectively, giving the required equivalence of categories. The coherence conditions (triangle identities for the adjunction) follow from the uniqueness assertions in the universal property of cartesian morphisms.


Key Consequences

Theorem2.8.42-Yoneda embedding is 2-fully faithful

The 2-Yoneda embedding Y:CCFG/C\mathcal{Y} : \mathcal{C} \to \mathbf{CFG}/\mathcal{C}, UhUU \mapsto h_U, is 2-fully faithful: for all U,VCU, V \in \mathcal{C},

HomCFG/C(hU,hV)hV(U)=HomC(U,V)\operatorname{Hom}_{\mathbf{CFG}/\mathcal{C}}(h_U, h_V) \simeq h_V(U) = \operatorname{Hom}_\mathcal{C}(U, V)

where the right-hand side is a discrete category (set).

Proof

Apply the 2-Yoneda lemma with F=hV\mathcal{F} = h_V. Then Hom(hU,hV)hV(U)=HomC(U,V)\operatorname{Hom}(h_U, h_V) \simeq h_V(U) = \operatorname{Hom}_\mathcal{C}(U, V), which is a set viewed as a discrete groupoid. In particular, there are no non-identity 2-morphisms between morphisms of representable CFGs.

Theorem2.8.5Morphisms from representables detect properties

Let F:XYF : \mathcal{X} \to \mathcal{Y} be a morphism of CFGs over C\mathcal{C}. Then FF is an equivalence if and only if for every UCU \in \mathcal{C}, the induced functor

F:Hom(hU,X)Hom(hU,Y)F_* : \operatorname{Hom}(h_U, \mathcal{X}) \to \operatorname{Hom}(h_U, \mathcal{Y})

is an equivalence of categories. By the 2-Yoneda lemma, this is equivalent to requiring that F(U):X(U)Y(U)F(U) : \mathcal{X}(U) \to \mathcal{Y}(U) is an equivalence for all UU.


Applications

ExampleFamilies as morphisms

For X=Mg\mathcal{X} = \mathcal{M}_g (moduli of genus-gg curves), the 2-Yoneda lemma gives:

\operatorname{Hom}(h_S, \mathcal{M}_g) \simeq \mathcal{M}_g(S) = \left\{\parbox{20em}{\centering smooth proper morphisms $C \to S$ with geometrically connected fibers of genus $g$}\right\}

A morphism SMgS \to \mathcal{M}_g is a family of curves over SS. A 2-morphism between two morphisms f,g:SMgf, g : S \to \mathcal{M}_g is an isomorphism between the corresponding families. The automorphism group of a morphism f:SMgf : S \to \mathcal{M}_g is Aut(C/S)\operatorname{Aut}(C/S), the automorphism group of the corresponding family.

ExampleRepresentability criterion

A CFG X\mathcal{X} is representable by an object XCX \in \mathcal{C} if and only if there exists XX and an equivalence XhX\mathcal{X} \simeq h_X. By the 2-Yoneda lemma, this is equivalent to:

  1. X(U)\mathcal{X}(U) is a discrete groupoid (set) for all UU.
  2. The functor Uπ0(X(U))U \mapsto \pi_0(\mathcal{X}(U)) is representable.

For stacks on (Sch,fppf)(\mathbf{Sch}, \mathrm{fppf}), condition (1) means all automorphism groups are trivial.

ExampleFiber products via the 2-Yoneda lemma

For stacks X,Y,Z\mathcal{X}, \mathcal{Y}, \mathcal{Z} with morphisms XZ\mathcal{X} \to \mathcal{Z} and YZ\mathcal{Y} \to \mathcal{Z}, the 2-fiber product X×ZY\mathcal{X} \times_\mathcal{Z} \mathcal{Y} is characterized by:

(X×ZY)(U)X(U)×Z(U)Y(U)(\mathcal{X} \times_\mathcal{Z} \mathcal{Y})(U) \simeq \mathcal{X}(U) \times_{\mathcal{Z}(U)} \mathcal{Y}(U)

where the right-hand side is the 2-fiber product of groupoids. This follows from the 2-Yoneda lemma since Hom(hU,X×ZY)Hom(hU,X)×Hom(hU,Z)Hom(hU,Y)\operatorname{Hom}(h_U, \mathcal{X} \times_\mathcal{Z} \mathcal{Y}) \simeq \operatorname{Hom}(h_U, \mathcal{X}) \times_{\operatorname{Hom}(h_U, \mathcal{Z})} \operatorname{Hom}(h_U, \mathcal{Y}).

ExampleThe diagonal and representability

The diagonal Δ:XX×X\Delta : \mathcal{X} \to \mathcal{X} \times \mathcal{X} of a stack X\mathcal{X} is representable if and only if for every UCU \in \mathcal{C} and every pair of objects x,yX(U)x, y \in \mathcal{X}(U), the presheaf Isom(x,y)\operatorname{Isom}(x, y) is representable (by an object of C\mathcal{C}, or an algebraic space).

By the 2-Yoneda lemma, a morphism hUX×Xh_U \to \mathcal{X} \times \mathcal{X} corresponds to a pair (x,y)X(U)×X(U)(x, y) \in \mathcal{X}(U) \times \mathcal{X}(U), and: hU×X×XXIsom(x,y)h_U \times_{\mathcal{X} \times \mathcal{X}} \mathcal{X} \simeq \operatorname{Isom}(x, y) So representability of Δ\Delta amounts to representability of all Isom functors.

ExampleAtlases for algebraic stacks

An atlas (or presentation) of a stack X\mathcal{X} is a representable morphism p:hUXp : h_U \to \mathcal{X} that is a smooth surjection. By the 2-Yoneda lemma, pp corresponds to an object xX(U)x \in \mathcal{X}(U).

The conditions on pp translate to:

  • Surjective: For every field kk and yX(Speck)y \in \mathcal{X}(\operatorname{Spec} k), there exists a field extension k/kk'/k and an isomorphism ykxky|_{k'} \cong x|_{k'} in X(k)\mathcal{X}(k'). (Locally, every object comes from xx.)
  • Smooth: The fiber product hU×XhU=Isom(x,x)×h_U \times_\mathcal{X} h_U = \operatorname{Isom}(x, x) \times \cdots (the groupoid scheme R=U×XUR = U \times_\mathcal{X} U) is smooth over UU via both projections.
ExampleThe universal object

For a stack X\mathcal{X}, the identity morphism id:XX\operatorname{id} : \mathcal{X} \to \mathcal{X} corresponds (by a generalized 2-Yoneda) to the universal object over X\mathcal{X}. For example:

  • For Mg\mathcal{M}_g: the identity corresponds to the universal curve CgMg\mathcal{C}_g \to \mathcal{M}_g.
  • For BGBG: the identity corresponds to the universal torsor EGBGEG \to BG (which is the morphism SpeckBG\operatorname{Spec} k \to BG corresponding to the trivial torsor).
  • For BGmB\mathbb{G}_m: the identity corresponds to the universal line bundle on BGmB\mathbb{G}_m.

These universal objects are constructed abstractly from the 2-Yoneda lemma.


Enriched Versions

Theorem2.8.62-Yoneda for stacks on a site

Let (C,τ)(\mathcal{C}, \tau) be a site with subcanonical topology (representable presheaves are sheaves). Then for any stack F\mathcal{F} on (C,τ)(\mathcal{C}, \tau) and UCU \in \mathcal{C}:

HomStacks/C(hU,F)F(U)\operatorname{Hom}_{\mathbf{Stacks}/\mathcal{C}}(h_U, \mathcal{F}) \simeq \mathcal{F}(U)

The same equivalence holds with CFG\mathbf{CFG} replaced by Stacks\mathbf{Stacks}, since the representable CFG hUh_U is already a stack (it is a sheaf of sets).

ExampleExtension to algebraic spaces

If C=Sch\mathcal{C} = \mathbf{Sch} and we allow algebraic spaces, then for an algebraic space XX (which is a sheaf on the etale site, but not necessarily representable by a scheme):

HomStacks(X,F)F(X)\operatorname{Hom}_{\mathbf{Stacks}}(X, \mathcal{F}) \simeq \mathcal{F}(X)

where F(X)\mathcal{F}(X) is defined by extending F\mathcal{F} from schemes to algebraic spaces (using the etale presentation UXU \to X and descent). This allows us to treat algebraic spaces on equal footing with schemes in the functor-of-points language.

ExampleHigher Yoneda in derived algebraic geometry

In derived algebraic geometry (Lurie, Toen-Vezzosi), the 2-Yoneda lemma generalizes to the \infty-Yoneda lemma: for a derived stack X\mathcal{X} (a functor dAffopS\mathbf{dAff}^{\mathrm{op}} \to \mathcal{S} satisfying descent, where S\mathcal{S} is the \infty-category of spaces):

Map(hSpecA,X)X(SpecA)\operatorname{Map}(h_{\operatorname{Spec} A}, \mathcal{X}) \simeq \mathcal{X}(\operatorname{Spec} A)

as an equivalence of spaces (not just groupoids). Here Map\operatorname{Map} is the mapping space in the \infty-category of derived stacks. The classical 2-Yoneda lemma is the truncation to π0\pi_0 and π1\pi_1.


Naturality

Theorem2.8.7Naturality of the 2-Yoneda equivalence

The equivalence F(U)Hom(hU,F)\mathcal{F}(U) \simeq \operatorname{Hom}(h_U, \mathcal{F}) is natural in both UU and F\mathcal{F}:

(a) In UU: For a morphism f:VUf : V \to U in C\mathcal{C}, the diagram F(U)YUHom(hU,F)\mathcal{F}(U) \xrightarrow{\mathbf{Y}_U} \operatorname{Hom}(h_U, \mathcal{F}) ff\downarrow f^* \quad\quad\quad\quad \downarrow f^* F(V)YVHom(hV,F)\mathcal{F}(V) \xrightarrow{\mathbf{Y}_V} \operatorname{Hom}(h_V, \mathcal{F}) 2-commutes, where the right vertical map is precomposition with hf:hVhUh_f : h_V \to h_U.

(b) In F\mathcal{F}: For a morphism G:FGG : \mathcal{F} \to \mathcal{G} of CFGs, the diagram F(U)YUHom(hU,F)\mathcal{F}(U) \xrightarrow{\mathbf{Y}_U} \operatorname{Hom}(h_U, \mathcal{F}) GUG\downarrow G_U \quad\quad\quad\quad \downarrow G_* G(U)YUHom(hU,G)\mathcal{G}(U) \xrightarrow{\mathbf{Y}_U} \operatorname{Hom}(h_U, \mathcal{G}) 2-commutes, where GG_* is postcomposition with GG.

ExampleNaturality and pullback

Naturality in UU means: if xF(U)x \in \mathcal{F}(U) corresponds to Φx:hUF\Phi_x : h_U \to \mathcal{F}, then the pullback fxF(V)f^*x \in \mathcal{F}(V) corresponds to Φxhf:hVhUF\Phi_x \circ h_f : h_V \to h_U \to \mathcal{F}. In moduli terms: if CSC \to S is a family (corresponding to SMgS \to \mathcal{M}_g) and f:TSf : T \to S, then fC=C×STf^*C = C \times_S T corresponds to the composition TSMgT \to S \to \mathcal{M}_g.


Summary

RemarkThe 2-Yoneda lemma in practice

The 2-Yoneda lemma is used constantly in the theory of stacks:

  1. Object = morphism: An object of X(S)\mathcal{X}(S) is a morphism SXS \to \mathcal{X}. This is the "functor of points."
  2. Automorphism = 2-automorphism: Aut(x)=Aut(SX)\operatorname{Aut}(x) = \operatorname{Aut}(S \to \mathcal{X}), the group of self-2-morphisms.
  3. Representability: X\mathcal{X} is a scheme iff all fibers are discrete groupoids.
  4. Fiber products: (X×ZY)(U)X(U)×Z(U)Y(U)(\mathcal{X} \times_\mathcal{Z} \mathcal{Y})(U) \simeq \mathcal{X}(U) \times_{\mathcal{Z}(U)} \mathcal{Y}(U).
  5. Representable morphisms: f:XYf : \mathcal{X} \to \mathcal{Y} is representable iff X×YhU\mathcal{X} \times_\mathcal{Y} h_U is representable for all UYU \to \mathcal{Y}.
  6. Universal objects: The identity id:XX\operatorname{id} : \mathcal{X} \to \mathcal{X} gives the universal family.
  7. Atlases: A smooth surjection hUXh_U \to \mathcal{X} (an object of X(U)\mathcal{X}(U)) presents X\mathcal{X}.

These principles reduce questions about stacks to questions about groupoids and schemes.