# Sheaf (mathematics)

In mathematics, a sheaf is a tool for systematically tracking locally defined data attached to the open sets of a topological space. The data can be restricted to smaller open sets, and the data assigned to an open set is equivalent to all collections of compatible data assigned to collections of smaller open sets covering the original one. For example, such data can consist of the rings of continuous or smooth real-valued functions defined on each open set. Sheaves are by design quite general and abstract objects, and their correct definition is rather technical, they are variously defined, for example, as sheaves of sets or sheaves of rings, depending on the type of data assigned to open sets.

There are also maps (or morphisms) from one sheaf to another; sheaves (of a specific type, such as sheaves of abelian groups) with their morphisms on a fixed topological space form a category. On the other hand, to each continuous map there is associated both a direct image functor, taking sheaves and their morphisms on the domain to sheaves and morphisms on the codomain, and an inverse image functor operating in the opposite direction; these functors, and certain variants of them, are essential parts of sheaf theory.

Due to their general nature and versatility, sheaves have several applications in topology and especially in algebraic and differential geometry. First, geometric structures such as that of a differentiable manifold or a scheme can be expressed in terms of a sheaf of rings on the space. In such contexts several geometric constructions such as vector bundles or divisors are naturally specified in terms of sheaves. Second, sheaves provide the framework for a very general cohomology theory, which encompasses also the "usual" topological cohomology theories such as singular cohomology. Especially in algebraic geometry and the theory of complex manifolds, sheaf cohomology provides a powerful link between topological and geometric properties of spaces. Sheaves also provide the basis for the theory of D-modules, which provide applications to the theory of differential equations. In addition, generalisations of sheaves to more general settings than topological spaces, such as Grothendieck topology, have provided applications to mathematical logic and number theory.

## Overview

In topology, differential geometry, and algebraic geometry, several structures defined on a topological space (e.g., a differentiable manifold) can be naturally localised or restricted to open subsets of the space: typical examples include continuous real or complex-valued functions, n times differentiable (real or complex-valued) functions, bounded real-valued functions, vector fields, and sections of any vector bundle on the space.

Presheaves formalise the situation common to the examples above: a presheaf (of sets) on a topological space is a structure that associates to each open set U of the space a set F(U) of sections on U, and to each open set V included in U a map F(U) → F(V) giving restrictions of sections over U to V; each of the examples above defines a presheaf by taking the restriction maps to be the usual restriction of functions, vector fields and sections of a vector bundle. Moreover, in each of these examples the sets of sections have additional algebraic structure: pointwise operations make them abelian groups, and in the examples of real and complex-valued functions the sets of sections even have a ring structure. In addition, in each example the restriction maps are homomorphisms of the corresponding algebraic structure; this observation leads to the natural definition of presheaves with additional algebraic structure such as presheaves of groups, of abelian groups, of rings: sets of sections are required to have the specified algebraic structure, and the restrictions are required to be homomorphisms. Thus for example continuous real-valued functions on a topological space form a presheaf of rings on the space.

Given a presheaf, a natural question to ask is to what extent its sections over an open set U are specified by their restrictions to smaller open sets Vi of an open cover of U. A presheaf is separated if its sections are "locally determined": whenever two sections over U coincide when restricted to each of Vi, the two sections are identical. All examples of presheaves discussed above are separated, since in each case the sections are specified by their values at the points of the underlying space. Finally, a separated presheaf is a sheaf if compatible sections can be glued together, i.e., whenever there is a section of the presheaf over each of the covering sets Vi, chosen so that they match on the overlaps of the covering sets, these sections correspond to a (unique) section on U, of which they are restrictions. It is easy to verify that all examples above except the presheaf of bounded functions are in fact sheaves: in all cases the criterion of being a section of the presheaf is local in a sense that it is enough to verify it in an arbitrary neighbourhood of each point.

On the other hand, a function can be bounded on each set of an (infinite) open cover of a space without being bounded on all of the space; thus bounded functions provide an example of a presheaf that in general fails to be a sheaf. Another example of a presheaf that fails to be a sheaf is the constant presheaf that associates the same fixed set (or abelian group, or ring,...) to each open set: it follows from the gluing property of sheaves that the set of sections on a disjoint union of two open sets is the Cartesian product of the sets of sections over the two open sets. The correct way to define the constant sheaf FA (associated to for instance a set A) on a topological space is to require sections on an open set U to be continuous maps from U to A equipped with the discrete topology; then in particular FA(U) = A for connected U.

Maps between sheaves or presheaves (called morphisms), consist of maps between the sets of sections over each open set of the underlying space, compatible with restrictions of sections. If the presheaves or sheaves considered are provided with additional algebraic structure, these maps are assumed to be homomorphisms. Sheaves endowed with nontrivial endomorphisms, such as the action of an algebraic torus or a Galois group, are of particular interest.

Presheaves and sheaves are typically denoted by capital letters, F being particularly common, presumably for the French word for sheaves, faisceaux. Use of calligraphic letters such as ${\displaystyle {\mathcal {F}}}$ is also common.

## Formal definitions

The first step in defining a sheaf is to define a presheaf, which captures the idea of associating data and restriction maps to the open sets of a topological space; the second step is to require the normalisation and gluing axioms. A presheaf that satisfies these axioms is a sheaf.

### Presheaves

Let X be a topological space, and let C be a category. Usually C is the category of sets, the category of groups, the category of abelian groups, or the category of commutative rings. A presheaf F on X is a functor with values in C given by the following data:

• For each open set U of X, there corresponds an object F(U) in C
• For each inclusion of open sets VU, there corresponds a morphism ${\displaystyle \operatorname {res} _{V,U}\colon F(U)\rightarrow F(V)}$ in the category C.

The morphisms resV,U are called restriction morphisms. If sF(U), then its restriction resV,U(s) is often denoted s|V by analogy with restriction of functions. The restriction morphisms are required to satisfy two properties:

• For every open set U of X, the restriction morphism resU,U : F(U) → F(U) is the identity morphism on F(U).
• If we have three open sets WVU, then the composite resW,V o resV,U equals resW,U.

Informally, the second axiom says it doesn't matter whether we restrict to W in one step or restrict first to V, then to W.

There is a compact way to express the notion of a presheaf in terms of category theory. First we define the category of open sets on X to be the posetal category O(X) whose objects are the open sets of X and whose morphisms are inclusions. Then a C-valued presheaf on X is the same as a contravariant functor from O(X) to C. This definition can be generalized to the case when the source category is not of the form O(X) for any X; see presheaf (category theory).

If F is a C-valued presheaf on X, and U is an open subset of X, then F(U) is called the sections of F over U. If C is a concrete category, then each element of F(U) is called a section. A section over X is called a global section. A common notation (used also below) for the restriction resV,U(s) of a section is s|V. This terminology and notation is by analogy with sections of fiber bundles or sections of the étalé space of a sheaf; see below. F(U) is also often denoted ${\displaystyle \Gamma }$(U,F), especially in contexts such as sheaf cohomology where U tends to be fixed and F tends to be variable.

### Sheaves

For simplicity, consider first the case where the sheaf takes values in the category of sets. In fact, this definition applies more generally to the situation where the category is a concrete category whose underlying set functor is conservative, meaning that if the underlying map of sets is a bijection, then the original morphism is an isomorphism.

A sheaf is a presheaf with values in the category of sets that satisfies the following two axioms:

1. (Locality) If (Ui) is an open covering of an open set U, and if s,tF(U) are such that s|Ui = t|Ui for each set Ui of the covering, then s = t; and
2. (Gluing) If (Ui) is an open covering of an open set U, and if for each i a section siF(Ui) is given such that for each pair Ui,Uj of the covering sets the restrictions of si and sj agree on the overlaps: si|UiUj = sj|UiUj, then there is a section sF(U) such that s|Ui = si for each i.

The section s whose existence is guaranteed by axiom 2 is called the gluing, concatenation, or collation of the sections si. By axiom 1 it is unique. Sections si satisfying the condition of axiom 2 are often called compatible; thus axioms 1 and 2 together state that compatible sections can be uniquely glued together. A separated presheaf, or monopresheaf, is a presheaf satisfying axiom 1.[1]

If C has products, the sheaf axioms are equivalent to the requirement that, for any open covering Ui, the first arrow in the following diagram is an equalizer:

${\displaystyle F(U)\rightarrow \prod _{i}F(U_{i}){{{} \atop \longrightarrow } \atop {\longrightarrow \atop {}}}\prod _{i,j}F(U_{i}\cap U_{j}).}$

Here the first map is the product of the restriction maps

${\displaystyle \operatorname {res} _{U_{i},U}\colon F(U)\rightarrow F(U_{i})}$

and the pair of arrows the products of the two sets of restrictions

${\displaystyle \operatorname {res} _{U_{i}\cap U_{j},U_{i}}\colon F(U_{i})\rightarrow F(U_{i}\cap U_{j})}$

and

${\displaystyle \operatorname {res} _{U_{i}\cap U_{j},U_{j}}\colon F(U_{j})\rightarrow F(U_{i}\cap U_{j}).}$

For a separated presheaf, the first arrow need only be injective.

In general, for an open set U and open covering (Ui), construct a category J whose objects are the sets Ui and the intersections UiUj and whose morphisms are the inclusions of UiUj in Ui and Uj. The sheaf axioms for U and (Ui) are that the limit of the functor F restricted to the category J must be isomorphic to F(U).

Notice that the empty subset of a topological space is covered by the empty family of sets; the product of an empty family or the limit of an empty family is a terminal object, and consequently the value of a sheaf on the empty set must be a terminal object. If sheaf values are in the category of sets, applying the local identity axiom to the empty family shows that over the empty set, there is at most one section, and applying the gluing axiom to the empty family shows that there is at least one section; this property is called the normalisation axiom.

It can be shown that to specify a sheaf, it is enough to specify its restriction to the open sets of a basis for the topology of the underlying space. Moreover, it can also be shown that it is enough to verify the sheaf axioms above relative to the open sets of a covering, thus a sheaf can often be defined by giving its values on the open sets of a basis, and verifying the sheaf axioms relative to the basis. (see gluing axiom#Sheaves on a basis of open sets.)

### Morphisms

Heuristically speaking, a morphism of sheaves is analogous to a function between them. However, because sheaves contain data relative to every open set of a topological space, a morphism of sheaves is defined as a collection of functions, one for each open set, that satisfy a compatibility condition.

Let F and G be two sheaves on X with values in the category C. A morphism ${\displaystyle \varphi :G\to F}$ consists of a morphism ${\displaystyle \varphi _{U}:G(U)\to F(U)}$ for each open set U of X, subject to the condition that this morphism is compatible with restrictions. In other words, for every open subset V of an open set U, the following diagram is commutative.

${\displaystyle {\begin{array}{rcl}G(U)&{\xrightarrow {\quad \varphi _{U}\quad }}&F(U)\\r_{V,U}{\Biggl \downarrow }&&{\Biggl \downarrow }r_{V,U}\\G(V)&{\xrightarrow[{\quad \varphi _{V}\quad }]{}}&F(V)\end{array}}}$

Recall that we could also express a sheaf as a special kind of functor. In this language, a morphism of sheaves is a natural transformation of the corresponding functors. With this notion of morphism, there is a category of C-valued sheaves on X for any C. The objects are the C-valued sheaves, and the morphisms are morphisms of sheaves. An isomorphism of sheaves is an isomorphism in this category.

It can be proved that an isomorphism of sheaves is an isomorphism on each open set U. In other words, φ is an isomorphism if and only if for each U, ${\displaystyle \varphi _{U}}$ is an isomorphism. It is also true that a morphism of sheaves φ is an isomorphism if and only if there exists an open cover ${\displaystyle \{U_{\alpha }\}}$ such that ${\displaystyle \varphi |_{U_{\alpha }}}$ are isomorphisms of sheaves for all ${\displaystyle \alpha }$. The same facts are true for monomorphisms. However, they are false for epimorphisms, and their failure is measured by sheaf cohomology.

Notice that we did not use the gluing axiom in defining a morphism of sheaves. Consequently, the above definition makes sense for presheaves as well; the category of C-valued presheaves is then a functor category, the category of contravariant functors from O(X) to C.

## Examples

Because sheaves encode exactly the data needed to pass between local and global situations, there are many examples of sheaves occurring throughout mathematics. Here are some additional examples of sheaves:

• Any continuous map of topological spaces determines a sheaf of sets. Let f : YX be a continuous map. We define a sheaf Γ(Y/X) on X by setting Γ(Y/X)(U) equal to the sections UY, that is, Γ(Y/X)(U) is the set of all continuous functions s : UY such that f ∘ s = idU. Restriction is given by restriction of functions; this sheaf is called the sheaf of sections of f, and it is especially important when f is the projection of a fiber bundle onto its base space. Notice that if the image of f does not contain U, then Γ(Y/X)(U) is empty. For a concrete example, take X = C \ {0}, Y = C, and f(z) = exp(z). Γ(Y/X)(U) is the set of branches of the logarithm on U.
• Fix a point x in X and an object S in a category C. The skyscraper sheaf over x with stalk S is the sheaf Sx defined as follows: If U is an open set containing x, then Sx(U) = S. If U does not contain x, then Sx(U) is the terminal object of C. The restriction maps are either the identity on S, if both open sets contain x, or the unique map from S to the terminal object of C.

### Sheaves on manifolds

In the following examples M is an n-dimensional Ck-manifold; the table lists the values of certain sheaves over open subsets U of M and their restriction maps.

Sheaf Sections over an open set U Restriction maps Remarks
Sheaf of j-times continuously differentiable functions ${\displaystyle {\mathcal {O}}_{M}^{j}}$, jk Cj-functions UR Restriction of functions. This is a sheaf of rings with addition and multiplication given by pointwise addition and multiplication. When j = k, this sheaf is called the structure sheaf and is denoted ${\displaystyle {\mathcal {O}}_{M}}$.
Sheaf of nonzero k-times continuously differentiable functions ${\displaystyle {\mathcal {O}}_{X}^{\times }}$ Nowhere zero Ck-functions UR Restriction of functions. A sheaf of groups under pointwise multiplication.
Cotangent sheaves ΩpM Differential forms of degree p on U Restriction of differential forms. Ω1M and ΩnM are commonly denoted ΩM and ωM, respectively.
Sheaf of distributions DB Distributions on U The dual map to extension of smooth compactly supported functions by zero. Here M is assumed to be smooth.
Sheaf of differential operators ${\displaystyle {\mathcal {D}}_{M}}$ Finite-order differential operators on U Restriction of differential operators. Here M is assumed to be smooth.

### Presheaves that are not sheaves

Here are two examples of presheaves that are not sheaves:

• Let X be the two-point topological space {x, y} with the discrete topology. Define a presheaf F as follows: F(∅) = {∅}, F({x}) = R, F({y}) = R, F({x, y}) = R × R × R. The restriction map F({x, y}) → F({x}) is the projection of R × R × R onto its first coordinate, and the restriction map F({x, y}) → F({y}) is the projection of R × R × R onto its second coordinate. F is a presheaf that is not separated: A global section is determined by three numbers, but the values of that section over {x} and {y} determine only two of those numbers. So while we can glue any two sections over {x} and {y}, we cannot glue them uniquely.
• Let X be the real line, and let F(U) be the set of bounded continuous functions on U. This is not a sheaf because it is not always possible to glue. For example, let Ui be the set of all x such that |x| < i. The identity function f(x) = x is bounded on each Ui. Consequently we get a section si on Ui. However, these sections do not glue, because the function f is not bounded on the real line. Consequently F is a presheaf, but not a sheaf. In fact, F is separated because it is a sub-presheaf of the sheaf of continuous functions.

## Turning a presheaf into a sheaf

It is frequently useful to take the data contained in a presheaf and to express it as a sheaf, it turns out that there is a best possible way to do this. It takes a presheaf F and produces a new sheaf aF called the sheaving, sheafification or sheaf associated to the presheaf F. The functor a is called the sheaving functor, sheafification functor, or associated sheaf functor. There is a natural morphism of presheaves ${\displaystyle i\colon F\to aF}$ that has the universal property that for any sheaf G and any morphism of presheaves ${\displaystyle f\colon F\to G}$, there is a unique morphism of sheaves ${\displaystyle {\tilde {f}}\colon aF\rightarrow G}$ such that ${\displaystyle f={\tilde {f}}i}$. In fact a is the left adjoint functor to the inclusion functor (or forgetful functor) from the category of sheaves to the category of presheaves, and i is the unit of the adjunction. In this way, the category of sheaves turns into a Giraud subcategory of presheaves.

One concrete way of constructing the sheaf aF is to identify it with the sheaf of sections of an appropriate topological space; this space is analogous to the étalé space of a sheaf. Briefly, the underlying set of the topological space is the disjoint union of the stalks of F, denoted Spé F. There is a natural map φ : Spé FX that sends each germ to the point of X over which it lies. For each open set U and each section s of F over U, we define a section ${\displaystyle {\bar {s}}}$ of φ that sends x to the germ sx. Then Spé F is given the finest topology for which all sections ${\displaystyle {\bar {s}}}$ are continuous, and aF is the sheaf of continuous sections of φ for this topology.

There are other constructions of the sheaf aF. In particular, Alexander Grothendieck and Jean-Louis Verdier (SGA 4 II 3.0.5) define a functor L from presheaves to presheaves which, when applied to a presheaf, yields a separated presheaf and, when applied to a separated presheaf, yields a sheaf. Applying the functor L twice therefore turns a presheaf into a sheaf, and in fact LLF is the associated sheaf aF.

## Operations

If K is a subsheaf of a sheaf F of abelian groups, then the quotient sheaf Q is the sheaf associated to the presheaf ${\displaystyle U\mapsto F(U)/K(U)}$; in other words, the quotient sheaf fits into an exact sequence of sheaves of abelian groups;

${\displaystyle 0\to K\to F\to Q\to 0.}$

(this is also called a sheaf extension.)

Let F, G be sheaves of abelian groups; the set of morphisms of sheaves from F to G forms an abelian group (by the abelian group structure of G). The sheaf hom of F and G, denoted by,

${\displaystyle {\mathcal {Hom}}(F,G)}$

is the sheaf of abelian groups ${\displaystyle U\mapsto \operatorname {\mathcal {Hom}} (F|_{U},G|_{U})}$ where ${\displaystyle F|_{U}}$ is the sheaf on U given by ${\displaystyle (F|_{U})(V)=F(V)}$ (Note sheafification is not needed here). The direct sum of F and G is the sheaf given by ${\displaystyle U\mapsto F(U)\oplus G(U)}$, and the tensor product of F and G is the sheaf associated to the presheaf ${\displaystyle U\mapsto F(U)\otimes G(U)}$.

All of these operations extend to sheaves of modules over a sheaf of rings A; the above is the special case when A is the constant sheaf ${\displaystyle {\underline {\mathbf {Z} }}}$.

## Images of sheaves

The definition of a morphism on sheaves makes sense only for sheaves on the same space X; this is because the data contained in a sheaf is indexed by the open sets of the space. If we have two sheaves on different spaces, then their data is indexed differently. There is no way to go directly from one set of data to the other.

However, it is possible to move a sheaf from one space to another using a continuous function. Let f : XY be a continuous function from a topological space X to a topological space Y. If we have a sheaf on X, we can move it to Y, and vice versa. There are four ways in which sheaves can be moved.

• A sheaf ${\displaystyle {\mathcal {F}}}$ on X can be moved to Y using the direct image functor ${\displaystyle f_{*}}$ or the direct image with proper support functor ${\displaystyle f_{!}}$.
• A sheaf ${\displaystyle {\mathcal {G}}}$ on Y can be moved to X using the inverse image functor ${\displaystyle f^{-1}}$ or the twisted inverse image functor ${\displaystyle f^{!}}$.

The twisted inverse image functor ${\displaystyle f^{!}}$ is, in general, only defined as a functor between derived categories. These functors come in adjoint pairs: ${\displaystyle f^{-1}}$ and ${\displaystyle f_{*}}$ are left and right adjoints of each other, and ${\displaystyle Rf_{!}}$ and ${\displaystyle f^{!}}$ are left and right adjoints of each other. The functors are intertwined with each other by Grothendieck duality and Verdier duality.

There is a different inverse image functor for sheaves of modules over sheaves of rings; this functor is usually denoted ${\displaystyle f^{*}}$ and it is distinct from ${\displaystyle f^{-1}}$. See inverse image functor.

## Stalks of a sheaf

The stalk ${\displaystyle {\mathcal {F}}_{x}}$ of a sheaf ${\displaystyle {\mathcal {F}}}$ captures the properties of a sheaf "around" a point xX, generalizing the germs of functions. Here, "around" means that, conceptually speaking, one looks at smaller and smaller neighborhoods of the point. Of course, no single neighborhood will be small enough, so we will have to take a limit of some sort.

The stalk is defined by

${\displaystyle {\mathcal {F}}_{x}=\varinjlim _{U\ni x}{\mathcal {F}}(U),}$

the direct limit being over all open subsets of X containing the given point x. In other words, an element of the stalk is given by a section over some open neighborhood of x, and two such sections are considered equivalent if their restrictions agree on a smaller neighborhood.

The natural morphism F(U) → Fx takes a section s in F(U) to its germ at x. This generalises the usual definition of a germ.

A different way of defining the stalk is

${\displaystyle {\mathcal {F}}_{x}:=i^{-1}{\mathcal {F}}(\{x\}),}$

where i is the inclusion of the one-point space {x} into X. The equivalence follows from the definition of the inverse image.

In many situations, knowing the stalks of a sheaf is enough to control the sheaf itself. For example, whether or not a morphism of sheaves is a monomorphism, epimorphism, or isomorphism can be tested on the stalks, they also find use in constructions such as Godement resolutions.

## Ringed spaces and locally ringed spaces

A pair ${\displaystyle (X,{\mathcal {O}}_{X})}$ consisting of a topological space X and a sheaf of rings on X is called a ringed space. Many types of spaces can be defined as certain types of ringed spaces; the sheaf ${\displaystyle {\mathcal {O}}_{X}}$ is called the structure sheaf of the space. A very common situation is when all the stalks of the structure sheaf are local rings, in which case the pair is called a locally ringed space. Here are examples of definitions made in this way:

• An n-dimensional Ck manifold M is a locally ringed space whose structure sheaf is an ${\displaystyle {\underline {\mathbf {R} }}}$-algebra and is locally isomorphic to the sheaf of Ck real-valued functions on Rn.
• A complex analytic space is a locally ringed space whose structure sheaf is a ${\displaystyle {\underline {\mathbf {C} }}}$-algebra and is locally isomorphic to the vanishing locus of a finite set of holomorphic functions together with the restriction (to the vanishing locus) of the sheaf of holomorphic functions on Cn for some n.
• A scheme is a locally ringed space that is locally isomorphic to the spectrum of a ring.
• A semialgebraic space is a locally ringed space that is locally isomorphic to a semialgebraic set in Euclidean space together with its sheaf of semialgebraic functions.

## Sheaves of modules

Let ${\displaystyle (X,{\mathcal {O}}_{X})}$ be a ringed space. A sheaf of modules is a sheaf ${\displaystyle {\mathcal {M}}}$ such that on every open set U of X, ${\displaystyle {\mathcal {M}}(U)}$ is an ${\displaystyle {\mathcal {O}}_{X}(U)}$-module and for every inclusion of open sets VU, the restriction map ${\displaystyle {\mathcal {M}}(U)\to {\mathcal {M}}(V)}$ is a homomorphism of ${\displaystyle {\mathcal {O}}_{X}(U)}$-modules.

Most important geometric objects are sheaves of modules. For example, there is a one-to-one correspondence between vector bundles and locally free sheaves of ${\displaystyle {\mathcal {O}}_{X}}$-modules. Sheaves of solutions to differential equations are D-modules, that is, modules over the sheaf of differential operators.

A particularly important case are abelian sheaves, which are modules over the constant sheaf ${\displaystyle {\underline {\mathbf {Z} }}}$. Every sheaf of modules is an abelian sheaf.

### Finiteness conditions for sheaves of modules

The condition that a module is finitely generated or finitely presented can also be formulated for a sheaf of modules. ${\displaystyle {\mathcal {M}}}$ is finitely generated if, for every point x of X, there exists an open neighborhood U of x, a natural number n (possibly depending on U), and a surjective morphism of sheaves ${\displaystyle {\mathcal {O}}_{X}^{n}|_{U}\to {\mathcal {M}}|_{U}}$. Similarly, ${\displaystyle {\mathcal {M}}}$ is finitely presented if in addition there exists a natural number m (again possibly depending on U) and a morphism of sheaves ${\displaystyle {\mathcal {O}}_{X}^{m}|_{U}\to {\mathcal {O}}_{X}^{n}|_{U}}$ such that the sequence of morphisms ${\displaystyle {\mathcal {O}}_{X}^{m}|_{U}\to {\mathcal {O}}_{X}^{n}|_{U}\to {\mathcal {M}}}$ is exact. Equivalently, the kernel of the morphism ${\displaystyle {\mathcal {O}}_{X}^{n}|_{U}\to {\mathcal {M}}}$ is itself a finitely generated sheaf.

These, however, are not the only possible finiteness conditions on a sheaf; the most important finiteness condition for a sheaf is coherence. ${\displaystyle {\mathcal {M}}}$ is coherent if it is of finite type and if, for every open set U and every morphism of sheaves ${\displaystyle \phi :{\mathcal {O}}_{X}^{n}\to {\mathcal {M}}}$ (not necessarily surjective), the kernel of φ is of finite type. ${\displaystyle {\mathcal {O}}_{X}}$ is coherent if it is coherent as a module over itself. Note that coherence is a strictly stronger condition than finite presentation: ${\displaystyle {\mathcal {O}}_{X}}$ is always finitely presented as a module over itself, but it is not always coherent. For example, let X be a point, let ${\displaystyle {\mathcal {O}}_{X}}$ be the ring R = C[x1, x2, ...] of complex polynomials in countably many indeterminates. Choose n = 1, and for the morphism φ, take the map that sends every variable to zero. The kernel of this map is not finitely generated, so ${\displaystyle {\mathcal {O}}_{X}}$ is not coherent.

## The étalé space of a sheaf

In the examples above it was noted that some sheaves occur naturally as sheaves of sections. In fact, all sheaves of sets can be represented as sheaves of sections of a topological space called the étalé space, from the French word étalé [etale], meaning roughly "spread out". If F is a sheaf over X, then the étalé space of F is a topological space E together with a local homeomorphism π : EX such that the sheaf of sections of π is F. The space E is usually very strange, and even if the sheaf F arises from a natural topological situation, E may not have any clear topological interpretation. For example, if F is the sheaf of sections of a continuous function f : YX, then E = Y if and only if f is a local homeomorphism.

The étalé space E is constructed from the stalks of F over X; as a set, it is their disjoint union and π is the obvious map that takes the value x on the stalk of F over xX. The topology of E is defined as follows. For each element s of F(U) and each x in U, we get a germ of s at x; these germs determine points of E. For any U and sF(U), the union of these points (for all xU) is declared to be open in E. Notice that each stalk has the discrete topology as subspace topology. Two morphisms between sheaves determine a continuous map of the corresponding étalé spaces that is compatible with the projection maps (in the sense that every germ is mapped to a germ over the same point); this makes the construction into a functor.

The construction above determines an equivalence of categories between the category of sheaves of sets on X and the category of étalé spaces over X; the construction of an étalé space can also be applied to a presheaf, in which case the sheaf of sections of the étalé space recovers the sheaf associated to the given presheaf.

This construction makes all sheaves into representable functors on certain categories of topological spaces; as above, let F be a sheaf on X, let E be its étalé space, and let π : EX be the natural projection. Consider the category Top/X of topological spaces over X, that is, the category of topological spaces together with fixed continuous maps to X. Every object of this space is a continuous map f : YX, and a morphism from YX to ZX is a continuous map YZ that commutes with the two maps to X. There is a functor Γ from Top/X to the category of sets that takes an object f : YX to (f−1F)(Y). For example, if i : UX is the inclusion of an open subset, then Γ(i) = (i−1F)(U) agrees with the usual F(U), and if i : {x} → X is the inclusion of a point, then Γ({x}) = (i−1F)({x}) is the stalk of F at x. There is a natural isomorphism

${\displaystyle (f^{-1}F)(Y)\cong \operatorname {Hom} _{\mathbf {Top} /X}(f,\pi )}$,

which shows that E represents the functor Γ.

E is constructed so that the projection map π is a covering map. In algebraic geometry, the natural analog of a covering map is called an étale morphism. Despite its similarity to "étalé", the word étale [etal] has a different meaning in French. It is possible to turn E into a scheme and π into a morphism of schemes in such a way that π retains the same universal property, but π is not in general an étale morphism because it is not quasi-finite, it is, however, formally étale.

The definition of sheaves by étalé spaces is older than the definition given earlier in the article, it is still common in some areas of mathematics such as mathematical analysis.

## Sheaf cohomology

It was noted above that the functor ${\displaystyle \Gamma (U,-)}$ preserves isomorphisms and monomorphisms, but not epimorphisms. If F is a sheaf of abelian groups, or more generally a sheaf with values in an abelian category, then ${\displaystyle \Gamma (U,-)}$ is actually a left exact functor. This means that it is possible to construct derived functors of ${\displaystyle \Gamma (U,-)}$. These derived functors are called the cohomology groups (or modules) of F and are written ${\displaystyle H^{i}(U,-)}$. Grothendieck proved in his "Tohoku paper" (Grothendieck (1957)) that every category of sheaves of abelian groups contains enough injective objects, so these derived functors always exist.

However, computing sheaf cohomology using injective resolutions is nearly impossible. In practice, it is much more common to find a different and more tractable resolution of F. A general construction is provided by Godement resolutions, and particular resolutions may be constructed using soft sheaves, fine sheaves, and flabby sheaves (also known as flasque sheaves from the French flasque meaning flabby); as a consequence, it can become possible to compare sheaf cohomology with other cohomology theories. For example, the de Rham complex is a resolution of the constant sheaf ${\displaystyle {\underline {\mathbf {R} }}}$ on any smooth manifold, so the sheaf cohomology of ${\displaystyle {\underline {\mathbf {R} }}}$ is equal to its de Rham cohomology. In fact, comparing sheaf cohomology to de Rham cohomology and singular cohomology provides a proof of de Rham's theorem that the two cohomology theories are isomorphic.

A different approach is by Čech cohomology. Čech cohomology was the first cohomology theory developed for sheaves and it is well-suited to concrete calculations. It relates sections on open subsets of the space to cohomology classes on the space. In most cases, Čech cohomology computes the same cohomology groups as the derived functor cohomology. However, for some pathological spaces, Čech cohomology will give the correct ${\displaystyle H^{1}}$ but incorrect higher cohomology groups. To get around this, Jean-Louis Verdier developed hypercoverings. Hypercoverings not only give the correct higher cohomology groups but also allow the open subsets mentioned above to be replaced by certain morphisms from another space; this flexibility is necessary in some applications, such as the construction of Pierre Deligne's mixed Hodge structures.

A much cleaner approach to the computation of some cohomology groups is the Borel–Bott–Weil theorem, which identifies the cohomology groups of some line bundles on flag manifolds with irreducible representations of Lie groups; this theorem can be used, for example, to easily compute the cohomology groups of all line bundles on projective space.

In many cases there is a duality theory for sheaves that generalizes Poincaré duality. See Grothendieck duality and Verdier duality.

## Sites and topoi

André Weil's Weil conjectures stated that there was a cohomology theory for algebraic varieties over finite fields that would give an analogue of the Riemann hypothesis; the cohomology of a complex manifold can be defined as the sheaf cohomology of the locally constant sheaf ${\displaystyle {\underline {\mathbf {C} }}}$ in the Euclidean topology, which suggests defining a Weil cohomology theory in positive characteristic as the sheaf cohomology of a constant sheaf. But the only classical topology on such a variety is the Zariski topology, and the Zariski topology has very few open sets, so few that the cohomology of any Zariski-constant sheaf on an irreducible variety vanishes (except in degree zero). Alexandre Grothendieck solved this problem by introducing Grothendieck topologies, which axiomatize the notion of covering. Grothendieck's insight was that the definition of a sheaf depends only on the open sets of a topological space, not on the individual points. Once he had axiomatized the notion of covering, open sets could be replaced by other objects. A presheaf takes each one of these objects to data, just as before, and a sheaf is a presheaf that satisfies the gluing axiom with respect to our new notion of covering; this allowed Grothendieck to define étale cohomology and l-adic cohomology, which eventually were used to prove the Weil conjectures.

A category with a Grothendieck topology is called a site. A category of sheaves on a site is called a topos or a Grothendieck topos; the notion of a topos was later abstracted by William Lawvere and Miles Tierney to define an elementary topos, which has connections to mathematical logic.

## History

The first origins of sheaf theory are hard to pin down – they may be co-extensive with the idea of analytic continuation[clarification needed]. It took about 15 years for a recognisable, free-standing theory of sheaves to emerge from the foundational work on cohomology.

At this point sheaves had become a mainstream part of mathematics, with use by no means restricted to algebraic topology, it was later discovered that the logic in categories of sheaves is intuitionistic logic (this observation is now often referred to as Kripke–Joyal semantics, but probably should be attributed to a number of authors). This shows that some of the facets of sheaf theory can also be traced back as far as Leibniz.