ConceptComplete

The 2-Yoneda Lemma

The 2-Yoneda Lemma is the stack-theoretic generalization of the classical Yoneda lemma. It identifies the category of morphisms from a representable stack hUh_U into a CFG F\mathcal{F} with the fiber category F(U)\mathcal{F}(U). This result is foundational for the "functor of points" approach to stacks and underlies the definition of representable morphisms.


The Classical Yoneda Lemma

RemarkRecall: classical Yoneda

For a presheaf F:Copβ†’SetF : \mathcal{C}^{\mathrm{op}} \to \mathbf{Set} and an object U∈CU \in \mathcal{C}, the classical Yoneda lemma gives a bijection: Nat⁑(hU,F)β‰…F(U)\operatorname{Nat}(h_U, F) \cong F(U) where hU=Hom⁑C(βˆ’,U)h_U = \operatorname{Hom}_\mathcal{C}(-, U) is the representable presheaf. The bijection sends a natural transformation Ξ±:hUβ†’F\alpha : h_U \to F to Ξ±U(id⁑U)∈F(U)\alpha_U(\operatorname{id}_U) \in F(U).

This has two key consequences:

  1. Embedding: The Yoneda embedding Cβ†ͺPSh(C)\mathcal{C} \hookrightarrow \mathbf{PSh}(\mathcal{C}), U↦hUU \mapsto h_U, is fully faithful.
  2. Evaluation: To understand a presheaf, it suffices to understand its values on representable presheaves.

Representable CFGs

Definition2.5.1Representable CFG

Let (C,Ο„)(\mathcal{C}, \tau) be a site and U∈CU \in \mathcal{C}. The representable CFG hUh_U (or C/U\mathcal{C}/U viewed as a CFG) over C\mathcal{C} is defined by:

hU(V)=Hom⁑C(V,U)h_U(V) = \operatorname{Hom}_\mathcal{C}(V, U)

viewed as a discrete groupoid (only identity morphisms). This is a sheaf of sets (for a subcanonical topology), hence a stack.

Equivalently, hUh_U is the slice category C/U\mathcal{C}/U with the forgetful functor to C\mathcal{C}, where the fiber over VV is the set of morphisms V→UV \to U.

ExampleRepresentable CFG from a scheme

For C=Sch\mathcal{C} = \mathbf{Sch} (or Sch/S\mathbf{Sch}/S) with the fppf topology, every scheme XX defines a representable stack hXh_X with hX(T)=Hom⁑(T,X)h_X(T) = \operatorname{Hom}(T, X) (discrete groupoid). The etale and fppf topologies are subcanonical, so representable presheaves are automatically sheaves.

For example, hAn(T)=O(T)nh_{\mathbb{A}^n}(T) = \mathcal{O}(T)^n (the set of nn-tuples of global functions on TT).

ExampleAffine schemes

The representable CFG hSpec⁑Ah_{\operatorname{Spec} A} for a ring AA sends T=Spec⁑BT = \operatorname{Spec} B to Hom⁑(A,B)\operatorname{Hom}(A, B) (ring homomorphisms). For A=Z[x]A = \mathbb{Z}[x], we get hA1(T)=O(T)h_{\mathbb{A}^1}(T) = \mathcal{O}(T) (the "generic point"). For A=Z[x,y]/(xyβˆ’1)A = \mathbb{Z}[x, y]/(xy - 1), we get hGm(T)=O(T)βˆ—h_{\mathbb{G}_m}(T) = \mathcal{O}(T)^* (units).


Statement of the 2-Yoneda Lemma

Definition2.5.22-Yoneda Lemma

Let p:Fβ†’Cp : \mathcal{F} \to \mathcal{C} be a CFG over a category C\mathcal{C}, and let U∈CU \in \mathcal{C}. There is an equivalence of categories:

Hom⁑CFG(C)(hU,F)≃F(U)\operatorname{Hom}_{\mathbf{CFG}(\mathcal{C})}(h_U, \mathcal{F}) \simeq \mathcal{F}(U)

Here Hom⁑CFG(C)(hU,F)\operatorname{Hom}_{\mathbf{CFG}(\mathcal{C})}(h_U, \mathcal{F}) is the category whose objects are morphisms (functors) hUβ†’Fh_U \to \mathcal{F} over C\mathcal{C}, and whose morphisms are 2-morphisms (natural transformations) between such functors.

The equivalence sends a morphism F:hUβ†’FF : h_U \to \mathcal{F} to FU(id⁑U)∈F(U)F_U(\operatorname{id}_U) \in \mathcal{F}(U), and conversely, an object x∈F(U)x \in \mathcal{F}(U) to the morphism Ξ¦x:hUβ†’F\Phi_x : h_U \to \mathcal{F} defined by Ξ¦x(f:Vβ†’U)=fβˆ—x\Phi_x(f : V \to U) = f^*x.

RemarkWhy equivalence, not isomorphism

In the classical Yoneda lemma, we get a bijection of sets. In the 2-Yoneda lemma, we get an equivalence of categories (not an isomorphism). This is because the pullback fβˆ—xf^*x is only defined up to unique isomorphism (depending on the choice of cleavage), so different cleavage choices give naturally isomorphic, but not identical, functors Ξ¦x\Phi_x.

This is a fundamental feature of 2-category theory: "equations" are replaced by "coherent isomorphisms."


Proof Idea

RemarkSketch of proof

Construction of the equivalence: Given x∈F(U)x \in \mathcal{F}(U), define Ξ¦x:hUβ†’F\Phi_x : h_U \to \mathcal{F} as follows: for f:Vβ†’Uf : V \to U (an object of hUh_U over VV), set Ξ¦x(f)=fβˆ—x\Phi_x(f) = f^*x using a chosen cleavage. For a morphism g:Wβ†’Vg : W \to V in hUh_U (i.e., a commutative triangle f∘g=hf \circ g = h in C\mathcal{C}), set Ξ¦x(g)\Phi_x(g) to be the unique morphism gβˆ—(fβˆ—x)β†’(f∘g)βˆ—xg^*(f^*x) \to (f \circ g)^*x from the coherence of the cleavage.

Construction of the quasi-inverse: Given F:hUβ†’FF : h_U \to \mathcal{F}, set Ξ¨(F)=FU(id⁑U)∈F(U)\Psi(F) = F_U(\operatorname{id}_U) \in \mathcal{F}(U).

Verification: The composition Ψ∘Φ\Psi \circ \Phi sends xx to (id⁑U)βˆ—xβ‰…x(\operatorname{id}_U)^*x \cong x. The composition Φ∘Ψ\Phi \circ \Psi sends FF to Ξ¦F(id⁑U)\Phi_{F(\operatorname{id}_U)}, and the universal property of cartesian arrows gives a canonical natural isomorphism Ξ¦F(id⁑U)β‰…F\Phi_{F(\operatorname{id}_U)} \cong F.


Examples and Applications

ExampleEvaluation at a point

Let F=Mg\mathcal{F} = \mathcal{M}_g (moduli of genus-gg curves) over Sch\mathbf{Sch}. By the 2-Yoneda lemma:

Hom⁑(hS,Mg)≃Mg(S)={smoothΒ properΒ curvesΒ Cβ†’SΒ ofΒ genusΒ g}\operatorname{Hom}(h_S, \mathcal{M}_g) \simeq \mathcal{M}_g(S) = \{\text{smooth proper curves } C \to S \text{ of genus } g\}

So a morphism S→MgS \to \mathcal{M}_g (i.e., hS→Mgh_S \to \mathcal{M}_g) is the same as a family of curves over SS. The "universal family" corresponds to the identity morphism Mg→Mg\mathcal{M}_g \to \mathcal{M}_g (though Mg\mathcal{M}_g is not representable).

ExampleMorphisms into BG

By the 2-Yoneda lemma: Hom⁑(hS,BG)≃BG(S)={principalΒ G-torsorsΒ overΒ S}\operatorname{Hom}(h_S, BG) \simeq BG(S) = \{\text{principal } G\text{-torsors over } S\}

A morphism Sβ†’BGS \to BG corresponds to a GG-torsor on SS. The trivial morphism (composition Sβ†’βˆ—β†’BGS \to * \to BG) corresponds to the trivial torsor GΓ—SG \times S.

For G=GmG = \mathbb{G}_m: morphisms S→BGmS \to B\mathbb{G}_m correspond to line bundles on SS. The "tautological" line bundle on BGmB\mathbb{G}_m corresponds to the identity map BGm→BGmB\mathbb{G}_m \to B\mathbb{G}_m.

ExamplePoints of a stack

For kk a field and X\mathcal{X} a stack over Sch/k\mathbf{Sch}/k: X(k):=Hom⁑(hSpec⁑k,X)≃X(Spec⁑k)\mathcal{X}(k) := \operatorname{Hom}(h_{\operatorname{Spec} k}, \mathcal{X}) \simeq \mathcal{X}(\operatorname{Spec} k)

This is a groupoid, not a set. The "set of kk-points" is ∣X(k)∣=Ο€0(X(k))|\mathcal{X}(k)| = \pi_0(\mathcal{X}(k)) (isomorphism classes), but the full groupoid contains automorphism information.

For X=BGm\mathcal{X} = B\mathbb{G}_m over kk algebraically closed: ∣X(k)∣={βˆ—}|\mathcal{X}(k)| = \{*\} (one point), but Aut⁑(βˆ—)=kβˆ—\operatorname{Aut}(*) = k^*. For X=M2\mathcal{X} = \mathcal{M}_2: ∣X(k)∣|\mathcal{X}(k)| parametrizes genus-2 curves up to isomorphism.

Example2-morphisms and automorphisms

Given two morphisms f,g:hSβ†’Ff, g : h_S \to \mathcal{F} corresponding to objects x,y∈F(S)x, y \in \mathcal{F}(S), a 2-morphism Ξ±:fβ‡’g\alpha : f \Rightarrow g corresponds to an isomorphism xβ†’βˆΌyx \xrightarrow{\sim} y in F(S)\mathcal{F}(S).

In particular, the 2-automorphisms of a morphism f:hSβ†’Ff : h_S \to \mathcal{F} correspond to Aut⁑F(S)(x)\operatorname{Aut}_{\mathcal{F}(S)}(x). This is how stacks encode automorphism groups: the group of self-2-morphisms of a point Sβ†’XS \to \mathcal{X}.


Representable Morphisms

Definition2.5.3Representable morphism

A morphism f:Xβ†’Yf : \mathcal{X} \to \mathcal{Y} of stacks (or CFGs) over a site (C,Ο„)(\mathcal{C}, \tau) is representable (or representable by objects of C\mathcal{C}) if for every object U∈CU \in \mathcal{C} and every morphism hUβ†’Yh_U \to \mathcal{Y}, the 2-fiber product XΓ—YhU\mathcal{X} \times_\mathcal{Y} h_U is representable:

XΓ—YhU≃hV\mathcal{X} \times_\mathcal{Y} h_U \simeq h_V

for some V∈CV \in \mathcal{C}.

In the context of algebraic stacks, "representable" typically means "representable by algebraic spaces" (the fiber product is an algebraic space).

ExampleThe morphism from a scheme to BG

Let P→SP \to S be a GG-torsor. The corresponding morphism f:hS→BGf : h_S \to BG is such that the 2-fiber product hS×BGhSh_S \times_{BG} h_S is representable by the scheme PP (viewed as a GG-scheme over SS):

hSΓ—BGhS≃hPh_S \times_{BG} h_S \simeq h_P

More precisely, a TT-point of hS×BGhSh_S \times_{BG} h_S consists of two maps T→ST \to S with an isomorphism of the corresponding torsors, which is the same as a section of PTP_T, which by definition is a map T→PT \to P.

This shows that the diagonal Δ:hS→hS×BGhS\Delta : h_S \to h_S \times_{BG} h_S is a GG-torsor, and hence BGBG has "affine diagonal" when GG is affine.

ExampleRepresentable morphisms for M_g

The forgetful morphism Mg,1→Mg\mathcal{M}_{g,1} \to \mathcal{M}_g (forget the marked point) is representable. Given a family C→SC \to S (a morphism hS→Mgh_S \to \mathcal{M}_g), the fiber product is:

Mg,1Γ—MghS≃hC\mathcal{M}_{g,1} \times_{\mathcal{M}_g} h_S \simeq h_C

A TT-point of the fiber product is a family CT→TC_T \to T together with a section T→CTT \to C_T, which is the same as a map T→CT \to C over SS. So the fiber product is the total space CC itself. This is the universal curve over Mg\mathcal{M}_g (in a relative sense).

ExampleDiagonal is representable

For a stack X\mathcal{X}, the diagonal Ξ”:Xβ†’XΓ—X\Delta : \mathcal{X} \to \mathcal{X} \times \mathcal{X} is representable if and only if for any two morphisms hUβ†’Xh_U \to \mathcal{X} and hVβ†’Xh_V \to \mathcal{X} (corresponding to objects x∈X(U)x \in \mathcal{X}(U) and y∈X(V)y \in \mathcal{X}(V)), the Isom presheaf Isom⁑(x,y)\operatorname{Isom}(x, y) is representable by an object (scheme, algebraic space) of C\mathcal{C}.

This is a key condition in the definition of algebraic stacks:

  • Deligne-Mumford stack: diagonal is representable, unramified, and separated.
  • Artin stack: diagonal is representable and of finite type.

Functors of Points for Stacks

Definition2.5.4Functor of points

The 2-Yoneda lemma justifies the functor of points approach to stacks: a stack X\mathcal{X} over Sch\mathbf{Sch} is completely determined by its "functor of points" X(βˆ’):Schopβ†’Grpd,S↦X(S)\mathcal{X}(-) : \mathbf{Sch}^{\mathrm{op}} \to \mathbf{Grpd}, \quad S \mapsto \mathcal{X}(S) together with the pullback functors. Morphisms Xβ†’Y\mathcal{X} \to \mathcal{Y} are determined by their effect on SS-points for all SS.

This is the stack-theoretic generalization of the scheme-theoretic functor of points, where a scheme XX is determined by hX(S)=Hom⁑(S,X)h_X(S) = \operatorname{Hom}(S, X).

ExampleFunctor of points for affine group schemes

The algebraic group GLnGL_n has functor of points GLn(S)=GLn(O(S))GL_n(S) = GL_n(\mathcal{O}(S)) for affine S=Spec⁑RS = \operatorname{Spec} R. The classifying stack BGLnBGL_n has:

BGLn(S)={rank-nΒ vectorΒ bundlesΒ onΒ S}BGL_n(S) = \{\text{rank-}n \text{ vector bundles on } S\}

A morphism f:S→BGLnf : S \to BGL_n is the same as a rank-nn vector bundle on SS, by the 2-Yoneda lemma.

The quotient stack [Spec⁑k/GLn][\operatorname{Spec} k / GL_n] has: [Spec⁑k/GLn](S)={(P,Οƒ):PΒ aΒ GLn-torsorΒ onΒ S,Οƒ:Pβ†’Spec⁑kΒ equivariant}≃BGLn(S)[\operatorname{Spec} k / GL_n](S) = \{(P, \sigma) : P \text{ a } GL_n\text{-torsor on } S, \sigma : P \to \operatorname{Spec} k \text{ equivariant}\} \simeq BGL_n(S) since every equivariant map to a point is unique.

ExampleFunctor of points for the Hilbert scheme

The Hilbert scheme Hilb⁑X/Sn\operatorname{Hilb}^n_{X/S} represents the functor: T↦{ZβŠ‚XT:Zβ†’TΒ flat,Β proper,Β withΒ HilbertΒ polynomialΒ n}T \mapsto \{Z \subset X_T : Z \to T \text{ flat, proper, with Hilbert polynomial } n\}

By Yoneda (classical, since this is a scheme), a morphism Tβ†’Hilb⁑nT \to \operatorname{Hilb}^n is the same as a flat family of subschemes parametrized by TT. The 2-Yoneda lemma tells us the analogous story for stacks.

ExamplePoints of the classifying stack of mu_n

For ΞΌn=Spec⁑k[t]/(tnβˆ’1)\mu_n = \operatorname{Spec} k[t]/(t^n - 1), the classifying stack BΞΌnB\mu_n parametrizes ΞΌn\mu_n-torsors:

BΞΌn(S)={(L,Ο•):LΒ aΒ lineΒ bundleΒ onΒ S,Ο•:LβŠ—nβ†’βˆΌOS}B\mu_n(S) = \{(\mathcal{L}, \phi) : \mathcal{L} \text{ a line bundle on } S, \phi : \mathcal{L}^{\otimes n} \xrightarrow{\sim} \mathcal{O}_S\}

An object is a line bundle with a trivialization of its nn-th tensor power -- an "nn-th root of the trivial bundle." The automorphism group is ΞΌn(S)\mu_n(S) acting by ΞΆβ‹…(L,Ο•)=(L,ΞΆnΟ•)\zeta \cdot (\mathcal{L}, \phi) = (\mathcal{L}, \zeta^n \phi) (but ΞΆn=1\zeta^n = 1, so Aut⁑=ΞΌn\operatorname{Aut} = \mu_n).


The Yoneda Embedding for Stacks

Definition2.5.52-Yoneda embedding

The 2-Yoneda embedding is the 2-functor: Y:Cβ†’CFG(C),U↦hU\mathcal{Y} : \mathcal{C} \to \mathbf{CFG}(\mathcal{C}), \quad U \mapsto h_U

The 2-Yoneda lemma implies this is 2-fully faithful: for any U,V∈CU, V \in \mathcal{C}, Hom⁑CFG(hU,hV)≃hV(U)=Hom⁑C(U,V)\operatorname{Hom}_{\mathbf{CFG}}(h_U, h_V) \simeq h_V(U) = \operatorname{Hom}_\mathcal{C}(U, V)

The right-hand side is a discrete groupoid (a set), and the equivalence restricts to a bijection on isomorphism classes. So the Yoneda embedding is fully faithful in the usual sense.

ExampleSchemes inside stacks

The 2-Yoneda embedding Schβ†ͺStacks\mathbf{Sch} \hookrightarrow \mathbf{Stacks} is 2-fully faithful. This means:

  • Schemes form a full sub-2-category of stacks.
  • A morphism between representable stacks hXβ†’hYh_X \to h_Y is the same as a morphism of schemes Xβ†’YX \to Y.
  • There are no nontrivial 2-morphisms between morphisms of schemes (since the fibers are discrete).

A stack X\mathcal{X} is representable (equivalent to hXh_X for some scheme XX) if and only if X(S)\mathcal{X}(S) is a discrete groupoid (set) for all SS and X\mathcal{X} is a sheaf.

ExampleTesting representability

The 2-Yoneda lemma gives a criterion: a stack X\mathcal{X} is representable if and only if:

  1. All automorphism groups Aut⁑(x)\operatorname{Aut}(x) are trivial for all x∈X(S)x \in \mathcal{X}(S).
  2. The presheaf of isomorphism classes S↦π0(X(S))S \mapsto \pi_0(\mathcal{X}(S)) is a sheaf.
  3. This sheaf is representable.

Condition (1) is the key distinction: stacks with nontrivial automorphisms can never be schemes.

For Mg\mathcal{M}_g (gβ‰₯2g \geq 2): condition (1) fails (the general curve has trivial automorphisms, but special curves like hyperelliptic curves have Z/2Z\mathbb{Z}/2\mathbb{Z}). So Mg\mathcal{M}_g is not a scheme.


Summary

RemarkKey takeaways

The 2-Yoneda lemma provides the conceptual foundation for working with stacks:

  1. Objects are morphisms: An object x∈X(S)x \in \mathcal{X}(S) is the same as a morphism Sβ†’XS \to \mathcal{X}. This is the "functor of points" philosophy, elevated to the 2-categorical setting.

  2. Automorphisms are 2-morphisms: The automorphism group of xx equals the group of 2-automorphisms of the corresponding morphism S→XS \to \mathcal{X}.

  3. Representable morphisms: Fiber products with representable objects detect geometric properties. A morphism X→Y\mathcal{X} \to \mathcal{Y} is representable if pulling back along any point S→YS \to \mathcal{Y} gives a representable object.

  4. Embedding: Schemes embed fully faithfully into stacks, and properties of morphisms of stacks can be defined by pulling back to the representable case.

These principles drive all subsequent developments: the definition of algebraic stacks, smooth/etale/flat morphisms of stacks, and cohomology of stacks.