Canonical: https://knowlpedia.com/algebraic-geometry-foundations/morphism-of-locally-ringed-spaces/

# Morphism of locally ringed spaces

A continuous map with a compatible sheaf map that is local on every stalk.

Let \((X,\mathcal O_X)\) and \((Y,\mathcal O_Y)\) be [locally ringed spaces](https://knowlpedia.com/algebraic-geometry-foundations/locally-ringed-space/). A **morphism of locally ringed spaces** \(f:X\to Y\) consists of

1. a [continuous map](https://knowlpedia.com/topology/continuous-map/) \(f:X\to Y\), and
2. a [morphism of sheaves of rings](https://knowlpedia.com/algebraic-geometry-foundations/morphism-of-sheaves/) into the [direct image sheaf](https://knowlpedia.com/algebraic-geometry-foundations/direct-image-sheaf/)

\[
f^\#:\mathcal O_Y\longrightarrow f_*\mathcal O_X,
\]

such that for every \(x\in X\), the induced map on [stalks](https://knowlpedia.com/algebraic-geometry-foundations/stalk/)

\[
f_x^\#:\mathcal O_{Y,f(x)}\longrightarrow\mathcal O_{X,x}
\]

is a local homomorphism of [local rings](https://knowlpedia.com/algebra-commutative/local-ring/). This means that the inverse image of the maximal ideal of \(\mathcal O_{X,x}\) is the maximal ideal of \(\mathcal O_{Y,f(x)}\).

The local condition ensures that functions vanishing at \(f(x)\) pull back to functions vanishing at \(x\). A [morphism of schemes](https://knowlpedia.com/algebraic-geometry-foundations/morphism-of-schemes/) is precisely a morphism of locally ringed spaces between schemes.
