# 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 geometrical objects (such as vector bundles on topological spaces) can be "glued together" when they are isomorphic (in a compatible way) when restricted to intersections of the sets in an open covering of a space. In more general set-up the restrictions are replaced with general pull-backs, and fibred categories form the right framework to discuss the possibility of such "glueing". The intuitive meaning of a stack is that it is a fibred category such that "all possible glueings work". The specification of glueings requires a definition of coverings with regard to which the glueings 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 glueings with respect to the Grothendieck topology.

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 ⊆ stacks.

Template:Harvtxt and Template:Harvtxt give a brief introductory accounts of stacks, Template:Harvtxt, Template:Harvtxt and Template:Harvtxt give more detailed introductions, and Template:Harvtxt describes the more advanced theory.

## Motivation and history

Template:Quotebox The concept of stacks has its origin in the definition of effective descent data in Template:Harvtxt. 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.

Template:Harvtxt studied the Picard group of the moduli stack of elliptic curves, before stacks had been defined. Stacks were first defined by Template:Harvs, and the term "stack" was introduced by Template:Harvtxt 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 Template:Harvs.

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 a 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*:*x* →*y* of *y* by *F*. This means that any other morphism *g*:*z*→*y* 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*:*V*→*U* 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 sheaves 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 any descent datum is effective. A **descent datum** consists roughly of a covering of an object *V* of *C* by a family *V _{i}*, elements

*x*in the fiber over

_{i}*V*, and morphisms

_{i}*f*between the restrictions of

_{ji}*x*and

_{i}*x*to

_{j}*V*=

_{ij}*V*×

_{i}_{U}

*V*satisfying the compatibility condition

_{j}*f*=

_{ki}*f*. The descent datum is called

_{kj}f_{ji}**effective**if the elements

*x*are essentially the pullbacks of an element

_{i}*x*with image

*U*.

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 and surjection from (the stack associated to) a scheme to X.
A morphism *Y* *X* of stacks is **representable** if, for every morphism *S* *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.

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.
- Any scheme with quasi-compact diagonal is an algebraic stack (or more precisely represents one).
- The category of vector bundles
*V*→*S*is a stack over the category of topological spaces*S*. A morphism from*V*→*S*to*W*→*T*consists of continuous maps from*S*to*T*and from*V*to*W*(linear of 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)
- Template:Harvtxt studied the moduli stack M
_{1,1}of elliptic curves, and showed that its Picard group is cyclic of order 12. For elliptic curves over the complex numbers the corresponding stack is similar to a quotient of the upper half-plane by the action of the modular group. - The moduli space of algebraic curves M
_{g}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 M_{g}which is a good substitute for the non-existent fine moduli space of smooth genus*g*curves. More generally there is a moduli stack M_{g,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,*M*_{0}is the classifying stack BPGL(2) of the projective general linear group. (There is a subtlety in defining*M*_{1}, as one has to use algebraic spaces rather than schemes to construct it.) - Any 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 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*. A special case of this when*Y*is a point gives the classifying stack*BG*of a smooth group scheme*G*. - 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*. - The moduli stack of principal bundles on an algebraic curve
*X*with reductive group action by*G*, usually denoted by . - The moduli stack of formal group laws.
- A Picard stack generalizes a Picard variety.

## 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.) 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 O_{X} 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.

## 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.

## See also

## References

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:Citation/CS1|citation

|CitationClass=journal }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }} Unfortunately this book uses the incorrect assertion that morphisms of algebraic stacks induce morphisms of lisse-étale topoi. Some of these errors were fixed by Template:Harvtxt.

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

## External links

- Template:Nlab
- Template:Nlab
- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}

- {{#invoke:citation/CS1|citation

|CitationClass=citation }}