# Stack (mathematics)

In mathematics a stack or 2-sheaf is, roughly speaking, a sheaf that takes values in categories rather than sets. Stacks are used to formalise some of the main constructions of descent theory, and to construct fine moduli stacks when fine moduli spaces do not exist.

Descent theory is concerned with generalisations of situations where isomorphic, compatible geometrical objects (such as vector bundles on topological spaces) can be "glued together" within a restriction of the topological basis. In a more general set-up the restrictions are replaced with pullbacks; fibred categories then make a good framework to discuss the possibility of such gluing. The intuitive meaning of a stack is that it is a fibred category such that "all possible gluings work". The specification of gluings requires a definition of coverings with regard to which the gluings can be considered. It turns out that the general language for describing these coverings is that of a Grothendieck topology. Thus a stack is formally given as a fibred category over another base category, where the base has a Grothendieck topology and where the fibred category satisfies a few axioms that ensure existence and uniqueness of certain gluings with respect to the Grothendieck topology.

## Overview

Stacks are the underlying structure of algebraic stacks (also called Artin stacks) and Deligne–Mumford stacks, which generalize schemes and algebraic spaces and which are particularly useful in studying moduli spaces. There are inclusions: schemes ⊆ algebraic spaces ⊆ Deligne–Mumford stacks ⊆ algebraic stacks (Artin stacks) ⊆ stacks.

Edidin (2003) and Fantechi (2001) give a brief introductory accounts of stacks, Gómez (2001), Olsson (2007) and Vistoli (2005) give more detailed introductions, and Laumon & Moret-Bailly (2000) describes the more advanced theory.

## Motivation and history

La conclusion pratique à laquelle je suis arrivé dès maintenant, c'est que chaque fois que en vertu de mes critères, une variété de modules (ou plutôt, un schéma de modules) pour la classification des variations (globales, ou infinitésimales) de certaines structures (variétés complètes non singulières, fibrés vectoriels, etc.) ne peut exister, malgré de bonnes hypothèses de platitude, propreté, et non singularité éventuellement, la raison en est seulement l'existence d'automorphismes de la structure qui empêche la technique de descente de marcher.
Grothendieck's letter to Serre, 1959 Nov 5.

The concept of stacks has its origin in the definition of effective descent data in Grothendieck (1959). In a 1959 letter to Serre, Grothendieck observed that a fundamental obstruction to constructing good moduli spaces is the existence of automorphisms. A major motivation for stacks is that if a moduli space for some problem does not exist because of the existence of automorphisms, it may still be possible to construct a moduli stack.

Mumford (1965) studied the Picard group of the moduli stack of elliptic curves, before stacks had been defined. Stacks were first defined by Giraud (1966, 1971), and the term "stack" was introduced by Deligne & Mumford (1969) for the original French term "champ" meaning "field". In this paper they also introduced Deligne–Mumford stacks, which they called algebraic stacks, though the term "algebraic stack" now usually refers to the more general Artin stacks introduced by Artin (1974).

When defining quotients of schemes by group actions, it is often impossible for the quotient to be a scheme and still satisfy desirable properties for a quotient. For example, if a few points have non-trivial stabilisers, then the categorical quotient will not exist among schemes.

In the same way, moduli spaces of curves, vector bundles, or other geometric objects are often best defined as stacks instead of schemes. Constructions of moduli spaces often proceed by first constructing a larger space parametrizing the objects in question, and then quotienting by group action to account for objects with automorphisms which have been overcounted.

## Definitions

A category c with a functor to a category C is called a fibered category over C if for any morphism F from X to Y in C and any object y of c with image Y, there is a pullback f:xy of y by F. This means a morphism with image F such that any morphism g:zy with image G=FH can be factored as g=fh by a unique morphism h from z to x with image H. The element x=F*y is called the pullback of y along F and is unique up to canonical isomorphism.

The category c is called a prestack over a category C with a Grothendieck topology if it is fibered over C and for any object U of C and objects x, y of c with image U, the functor from objects over U to sets taking F:VU to Hom(F*x,F*y) is a sheaf. This terminology is not consistent with the terminology for sheaves: prestacks are the analogues of separated presheaves rather than presheaves.

The category c is called a stack over the category C with a Grothendieck topology if it is a prestack over C and every descent datum is effective. A descent datum consists roughly of a covering of an object V of C by a family Vi, elements xi in the fiber over Vi, and morphisms fji between the restrictions of xi and xj to Vij=Vi×VVj satisfying the compatibility condition fki = fkjfji. The descent datum is called effective if the elements xi are essentially the pullbacks of an element x with image V.

A stack is called a stack in groupoids or a (2,1)-sheaf if it is also fibered in groupoids, meaning that its fibers (the inverse images of objects of C) are groupoids. Some authors use the word "stack" to refer to the more restrictive notion of a stack in groupoids.

An algebraic stack or Artin stack is a stack in groupoids X over the etale site such that the diagonal map of X is representable and there exists a smooth surjection from (the stack associated to) a scheme to X. A morphism Y${\displaystyle \rightarrow }$ X of stacks is representable if, for every morphism S ${\displaystyle \rightarrow }$ X from (the stack associated to) a scheme to X, the fiber product Y ×X S is isomorphic to (the stack associated to) an algebraic space. The fiber product of stacks is defined using the usual universal property, and changing the requirement that diagrams commute to the requirement that they 2-commute. See also morphism of algebraic stacks for further information.

The motivation behind the representability of the diagonal is the following: the diagonal morphism ${\displaystyle \Delta :{\mathfrak {X}}\to {\mathfrak {X}}\times {\mathfrak {X}}}$ is representable if and only if for any pair of morphisms of algebraic spaces ${\displaystyle X,Y\to {\mathfrak {X}}}$, their fiber product ${\displaystyle X\times _{\mathfrak {X}}Y}$ is representable.

A Deligne–Mumford stack is an algebraic stack X such that there is an étale surjection from a scheme to X. Roughly speaking, Deligne–Mumford stacks can be thought of as algebraic stacks whose objects have no infinitesimal automorphisms.

## Examples

• If the fibers of a stack are sets (meaning categories whose only morphisms are identity maps) then the stack is essentially the same as a sheaf of sets. This shows that a stack is a sort of generalization of a sheaf, taking values in arbitrary categories rather than sets.
• More concretely, let h be a contravariant functor from the category C of all schemes over some fixed base scheme to the category of sets. Then it determines the following category H:
1. an object is a pair (S, s) consisting of a scheme S in C and an element s of the set h(S)
2. a morphism (S, s) → (T, t) consists of a morphism φ: ST in C such that h(φ)(t)= s.
Via the forgetful functor p: HC, the category H is a category fibered over C. For example, if X is a scheme in C, then it determines the contravariant functor ${\displaystyle h=\operatorname {Hom} (-,X)}$ and the corresponding fibered category is the stack associated to X. Stacks (or prestacks) can be constructed as a variant of this construction.
• Any scheme with quasi-compact diagonal is an algebraic stack (or more precisely represents one) since every scheme has an action by the trivial group.
• The moduli stack of vector bundles: the category of vector bundles VS is a stack over the category of topological spaces S. A morphism from VS to WT consists of continuous maps from S to T and from V to W (linear on fibers) such that the obvious square commutes. The condition that this is a fibered category follows because one can take pullbacks of vector bundles over continuous maps of topological spaces, and the condition that a descent datum is effective follows because one can construct a vector bundle over a space by gluing together vector bundles on elements of an open cover.
• The stack of quasi-coherent sheaves on schemes (with respect to the fpqc-topology and weaker topologies)
• The stack of affine schemes on a base scheme (again with respect to the fpqc topology or a weaker one)
• The moduli space of algebraic curves Mg defined as a universal family of smooth curves of given genus g does not exist as an algebraic variety because in particular there are curves admitting nontrivial automorphisms. However there is a moduli stack Mg which is a good substitute for the non-existent fine moduli space of smooth genus g curves. More generally there is a moduli stack Mg,n of genus g curves with n marked points. In general this is an algebraic stack, and is a Deligne–Mumford stack for g≥2 or g=1,n>0 or g=0, n≥3 (in other words when the automorphism groups of the curves are finite). This moduli stack has a completion consisting of the moduli stack of stable curves (for given g and n) which is proper over Spec Z. For example, M0 is the classifying stack BPGL(2) of the projective general linear group. (There is a subtlety in defining M1, as one has to use algebraic spaces rather than schemes to construct it.)
• A gerbe is a stack in groupoids; for example the trivial gerbe that assigns to each scheme the principal G-bundles over the scheme, for some group G.
• If Y is a scheme and G is a smooth affine group scheme acting on Y, then there is a quotient algebraic stack Y/G, taking a scheme T to the groupoid of G-torsors over T with G-equivariant maps to Y. Explicitly, given a space ${\displaystyle X}$ with a ${\displaystyle G}$-action, form the stack ${\displaystyle [X/G]}$ which (intuitively speaking) sends a space ${\displaystyle Y}$ to the groupoid of pullback diagrams
${\displaystyle [X/G](Y)={\begin{Bmatrix}Z&{\xrightarrow {\Phi }}&X\\\downarrow &&\downarrow \\Y&{\xrightarrow {\phi }}&[X/G]\end{Bmatrix}}}$
where ${\displaystyle \Phi }$ is a ${\displaystyle G}$-equivariant morphism of spaces and ${\displaystyle Z\to Y}$is a principal ${\displaystyle G}$-bundle. The morphisms in this category are just morphisms of diagrams where the arrows on the right-hand side are equal and the arrows on the left-hand side are morphisms of principal ${\displaystyle G}$-bundles.
• A special case of this when Y is a point gives the classifying stack BG of a smooth affine group scheme G: ${\displaystyle {\textbf {B}}G:=[pt/G].}$ It is named so since the category ${\displaystyle \mathbf {B} G(X)}$, the fiber over X, is precisely the category ${\displaystyle \operatorname {Bun} _{G}(X)}$ of principal ${\displaystyle G}$-bundles over ${\displaystyle X}$. Note that ${\displaystyle \operatorname {Bun} _{G}(X)}$ itself can be considered as a stack, the moduli stack of principal G-bundles on X.
• An important subexample from this construction is ${\displaystyle \mathbf {B} GL_{n}}$ which is the moduli stack of principal ${\displaystyle GL_{n}}$-bundles. Since the data of a principal ${\displaystyle GL_{n}}$-bundle is equivalent to the data of a rank ${\displaystyle n}$ vector bundle, this is isomorphic to the moduli stack of rank ${\displaystyle n}$ vector bundles ${\displaystyle Vect_{n}}$.
• An example of a non-affine stack is given by the half-line with two stacky origins. This can be constructed as the colimit of two inclusion of ${\displaystyle [\mathbb {G} _{m}/(\mathbb {Z} /2)]\to [\mathbb {A} ^{1}/(\mathbb {Z} /2)]}$.
• Stacky curves, or orbicurves, can be constructed by taking the stack quotient of a morphism of curves by the monodromy group of the cover over the generic points. For example, take a projective morphism
${\displaystyle {\text{Proj}}(\mathbb {C} [x,y,z]/(x^{5}+y^{5}+z^{5}))\to {\text{Proj}}(\mathbb {C} [x,y])}$
which is generically etale. The stack quotient of the domain gives a stacky ${\displaystyle \mathbb {P} ^{1}}$ with stacky points that have stabilizer group ${\displaystyle \mathbb {Z} /5}$ at the fifth roots of unity in the ${\displaystyle x/y}$-chart since these are the points where the cover ramifies.[citation needed]
• If A is a quasi-coherent sheaf of algebras in an algebraic stack X over a scheme S, then there is a stack Spec(A) generalizing the construction of the spectrum Spec(A) of a commutative ring A. An object of Spec(A) is given by an S-scheme T, an object x of X(T), and a morphism of sheaves of algebras from x*(A) to the coordinate ring O(T) of T.
• If A is a quasi-coherent sheaf of graded algebras in an algebraic stack X over a scheme S, then there is a stack Proj(A) generalizing the construction of the projective scheme Proj(A) of a graded ring A.

## Quasi-coherent sheaves on algebraic stacks

On an algebraic stack one can construct a category of quasi-coherent sheaves similar to the category of quasi-coherent sheaves over a scheme.

A quasi-coherent sheaf is roughly one that looks locally like the sheaf of a module over a ring. The first problem is to decide what one means by "locally": this involves the choice of a Grothendieck topology, and there are many possible choices for this, all of which have some problems and none of which seem completely satisfactory. The Grothendieck topology should be strong enough so that the stack is locally affine in this topology: schemes are locally affine in the Zariski topology so this is a good choice for schemes as Serre discovered, algebraic spaces and Deligne–Mumford stacks are locally affine in the etale topology so one usually uses the etale topology for these, while algebraic stacks are locally affine in the smooth topology so one can use the smooth topology in this case. For general algebraic stacks the etale topology does not have enough open sets: for example, if G is a smooth connected group then the only etale covers of the classifying stack BG are unions of copies of BG, which are not enough to give the right theory of quasicoherent sheaves.

Instead of using the smooth topology for algebraic stacks one often uses a modification of it called the Lis-Et topology (short for Lisse-Etale: lisse is the French term for smooth), which has the same open sets as the smooth topology but the open covers are given by etale rather than smooth maps. This usually seems to lead to an equivalent category of quasi-coherent sheaves, but is easier to use: for example it is easier to compare with the etale topology on algebraic spaces. The Lis-Et topology has a subtle technical problem: a morphism between stacks does not in general give a morphism between the corresponding topoi. (The problem is that while one can construct a pair of adjoint functors f*, f*, as needed for a geometric morphism of topoi, the functor f* is not left exact in general. This problem is notorious for having caused some errors in published papers and books.[1]) This means that constructing the pullback of a quasicoherent sheaf under a morphism of stacks requires some extra effort.

It is also possible to use finer topologies. Most reasonable "sufficiently large" Grothendieck topologies seem to lead to equivalent categories of quasi-coherent sheaves, but the larger a topology is the harder it is to handle, so one generally prefers to use smaller topologies as long as they have enough open sets. For example, the big fppf topology leads to essentially the same category of quasi-coherent sheaves as the Lis-Et topology, but has a subtle problem: the natural embedding of quasi-coherent sheaves into OX modules in this topology is not exact (it does not preserve kernels in general).

## Other types of stack

Differentiable stacks and topological stacks are defined in a way similar to algebraic stacks, except that the underlying category of affine schemes is replaced by the category of smooth manifolds or topological spaces.

More generally one can define the notion of an n-sheaf or n–1 stack, which is roughly a sort of sheaf taking values in n–1 categories. There are several inequivalent ways of doing this. 1-sheaves are the same as sheaves, and 2-sheaves are the same as stacks. They are called higher stacks.

A very similar and analogous extension is to develop the stack theory on non-discrete objects (i.e., a space is really a spectrum in algebraic topology). The resulting stacky objects are called derived stacks (or spectral stacks). Jacob Lurie's under-construction book Spectral Algebraic Geometry studies a generalization which he calls a spectral Deligne–Mumford stack. By definition, it is a ringed ∞-topos that is étale-locally the étale spectrum of an E-ring (this notion subsumes that of a derived scheme, at least in characteristic zero.)

## Set-theoretical problems

There are some minor set theoretical problems with the usual foundation of the theory of stacks, because stacks are often defined as certain functors to the category of sets and are therefore not sets. There are several ways to deal with this problem:

• One can work with Grothendieck universes: a stack is then a functor between classes of some fixed Grothendieck universe, so these classes and the stacks are sets in a larger Grothendieck universe. The drawback of this approach is that one has to assume the existence of enough Grothendieck universes, which is essentially a large cardinal axiom.
• One can define stacks as functors to the set of sets of sufficiently large rank, and keep careful track of the ranks of the various sets one uses. The problem with this is that it involves some additional rather tiresome bookkeeping.
• One can use reflection principles from set theory stating that one can find set models of any finite fragment of the axioms of ZFC to show that one can automatically find sets that are sufficiently close approximations to the universe of all sets.
• One can simply ignore the problem. This is the approach taken by many authors.

## Notes

1. ^ See, for example, Olsson, Martin (2007), Sheaves on Artin Stacks.

## References

### Pedagogical

• Behrend, Kai; Conrad, Brian; Edidin, Dan; Fulton, William; Fantechi, Barbara; Göttsche, Lothar; Kresch, Andrew (2006), Algebraic stacks
• Goméz, Tomás, Algebraic stacks is an expository article describing the basics of stacks with examples.
• Edidin, Dan (2003), "What is... a Stack?" (PDF), Notices of the AMS, 50 (4): 458–459