A ringed space ( X , O X ) {\displaystyle (X,{\mathcal {O}}_{X})} is a topological space X {\displaystyle X} together with a sheaf of rings O X {\displaystyle {\mathcal {O}}_{X}} on X {\displaystyle X} . The sheaf O X {\displaystyle {\mathcal {O}}_{X}} is called the structure sheaf of X {\displaystyle X} .
A locally ringed space is a ringed space ( X , O X ) {\displaystyle (X,{\mathcal {O}}_{X})} such that all stalks of O X {\displaystyle {\mathcal {O}}_{X}} are local rings (i.e. they have unique maximal ideals). Note that it is not required that O X ( U ) {\displaystyle {\mathcal {O}}_{X}(U)} be a local ring for every open set U {\displaystyle U} ; in fact, this is almost never the case.
An arbitrary topological space X {\displaystyle X} can be considered a locally ringed space by taking O X {\displaystyle {\mathcal {O}}_{X}} to be the sheaf of real-valued (or complex-valued) continuous functions on open subsets of X {\displaystyle X} . The stalk at a point x {\displaystyle x} can be thought of as the set of all germs of continuous functions at x {\displaystyle x} ; this is a local ring with the unique maximal ideal consisting of those germs whose value at x {\displaystyle x} is 0 {\displaystyle 0} .
If X {\displaystyle X} is a manifold with some extra structure, we can also take the sheaf of differentiable, or holomorphic functions. Both of these give rise to locally ringed spaces.
If X {\displaystyle X} is an algebraic variety carrying the Zariski topology, we can define a locally ringed space by taking O X ( U ) {\displaystyle {\mathcal {O}}_{X}(U)} to be the ring of rational mappings defined on the Zariski-open set U {\displaystyle U} that do not blow up (become infinite) within U {\displaystyle U} . The important generalization of this example is that of the spectrum of any commutative ring; these spectra are also locally ringed spaces. Schemes are locally ringed spaces obtained by "gluing together" spectra of commutative rings.
A morphism from ( X , O X ) {\displaystyle (X,{\mathcal {O}}_{X})} to ( Y , O Y ) {\displaystyle (Y,{\mathcal {O}}_{Y})} is a pair ( f , φ ) {\displaystyle (f,\varphi )} , where f : X → Y {\displaystyle f:X\to Y} is a continuous map between the underlying topological spaces, and φ : O Y → f ∗ O X {\displaystyle \varphi :{\mathcal {O}}_{Y}\to f_{*}{\mathcal {O}}_{X}} is a morphism from the structure sheaf of Y {\displaystyle Y} to the direct image of the structure sheaf of X. In other words, a morphism from ( X , O X ) {\displaystyle (X,{\mathcal {O}}_{X})} to ( Y , O Y ) {\displaystyle (Y,{\mathcal {O}}_{Y})} is given by the following data:
There is an additional requirement for morphisms between locally ringed spaces:
Two morphisms can be composed to form a new morphism, and we obtain the category of ringed spaces and the category of locally ringed spaces. Isomorphisms in these categories are defined as usual.
See also: Zariski tangent space
Locally ringed spaces have just enough structure to allow the meaningful definition of tangent spaces. Let X {\displaystyle X} be a locally ringed space with structure sheaf O X {\displaystyle {\mathcal {O}}_{X}} ; we want to define the tangent space T x ( X ) {\displaystyle T_{x}(X)} at the point x ∈ X {\displaystyle x\in X} . Take the local ring (stalk) R x {\displaystyle R_{x}} at the point x {\displaystyle x} , with maximal ideal m x {\displaystyle {\mathfrak {m}}_{x}} . Then k x := R x / m x {\displaystyle k_{x}:=R_{x}/{\mathfrak {m}}_{x}} is a field and m x / m x 2 {\displaystyle {\mathfrak {m}}_{x}/{\mathfrak {m}}_{x}^{2}} is a vector space over that field (the cotangent space). The tangent space T x ( X ) {\displaystyle T_{x}(X)} is defined as the dual of this vector space.
The idea is the following: a tangent vector at x {\displaystyle x} should tell you how to "differentiate" "functions" at x {\displaystyle x} , i.e. the elements of R x {\displaystyle R_{x}} . Now it is enough to know how to differentiate functions whose value at x {\displaystyle x} is zero, since all other functions differ from these only by a constant, and we know how to differentiate constants. So we only need to consider m x {\displaystyle {\mathfrak {m}}_{x}} . Furthermore, if two functions are given with value zero at x {\displaystyle x} , then their product has derivative 0 at x {\displaystyle x} , by the product rule. So we only need to know how to assign "numbers" to the elements of m x / m x 2 {\displaystyle {\mathfrak {m}}_{x}/{\mathfrak {m}}_{x}^{2}} , and this is what the dual space does.
Main article: Sheaf of modules
Given a locally ringed space ( X , O X ) {\displaystyle (X,{\mathcal {O}}_{X})} , certain sheaves of modules on X {\displaystyle X} occur in the applications, the O X {\displaystyle {\mathcal {O}}_{X}} -modules. To define them, consider a sheaf F {\displaystyle {\mathcal {F}}} of abelian groups on X {\displaystyle X} . If F ( U ) {\displaystyle {\mathcal {F}}(U)} is a module over the ring O X ( U ) {\displaystyle {\mathcal {O}}_{X}(U)} for every open set U {\displaystyle U} in X {\displaystyle X} , and the restriction maps are compatible with the module structure, then we call F {\displaystyle {\mathcal {F}}} an O X {\displaystyle {\mathcal {O}}_{X}} -module. In this case, the stalk of F {\displaystyle {\mathcal {F}}} at x {\displaystyle x} will be a module over the local ring (stalk) R x {\displaystyle R_{x}} , for every x ∈ X {\displaystyle x\in X} .
A morphism between two such O X {\displaystyle {\mathcal {O}}_{X}} -modules is a morphism of sheaves that is compatible with the given module structures. The category of O X {\displaystyle {\mathcal {O}}_{X}} -modules over a fixed locally ringed space ( X , O X ) {\displaystyle (X,{\mathcal {O}}_{X})} is an abelian category.
An important subcategory of the category of O X {\displaystyle {\mathcal {O}}_{X}} -modules is the category of quasi-coherent sheaves on X {\displaystyle X} . A sheaf of O X {\displaystyle {\mathcal {O}}_{X}} -modules is called quasi-coherent if it is, locally, isomorphic to the cokernel of a map between free O X {\displaystyle {\mathcal {O}}_{X}} -modules. A coherent sheaf F {\displaystyle F} is a quasi-coherent sheaf that is, locally, of finite type and for every open subset U {\displaystyle U} of X {\displaystyle X} the kernel of any morphism from a free O U {\displaystyle {\mathcal {O}}_{U}} -module of finite rank to F U {\displaystyle {\mathcal {F}}_{U}} is also of finite type.
Éléments de géométrie algébrique, Ch 0, 4.1.1. ↩