Canonical: https://knowlpedia.com/algebraic-geometry-foundations/scheme/

# Scheme

A locally ringed space covered by open subsets that are affine schemes.

A **scheme** is a [locally ringed space](https://knowlpedia.com/algebraic-geometry-foundations/locally-ringed-space/) \((X,\mathcal O_X)\) that has an [open cover](https://knowlpedia.com/topology/open-cover/) \(X=\bigcup_iU_i\) for which every restricted locally ringed space \((U_i,\mathcal O_X|_{U_i})\) is an [affine scheme](https://knowlpedia.com/algebraic-geometry-foundations/affine-scheme/).

In other words, a scheme is assembled by gluing prime spectra of commutative rings, while simultaneously gluing the algebraic functions carried by their [structure sheaves](https://knowlpedia.com/algebraic-geometry-foundations/structure-sheaf/).

## How to read the definition

The topological space \(X\) records how algebraic loci specialize and intersect. The sheaf \(\mathcal O_X\) records which functions are available on each open set, and its [stalk](https://knowlpedia.com/algebraic-geometry-foundations/stalk/) at a point records functions defined near that point. The affine-cover condition says that all of this data is locally controlled by commutative rings.

Maps between schemes must preserve both layers of information. These are [morphisms of schemes](https://knowlpedia.com/algebraic-geometry-foundations/morphism-of-schemes/), not merely continuous maps of the underlying spaces.

## Examples

Every affine scheme is a scheme, using the one-set cover. A field \(k\) gives the one-point scheme \(\operatorname{Spec}k\), and the [affine line](https://knowlpedia.com/algebraic-geometry-foundations/affine-line/) is \(\operatorname{Spec}k[x]\).

The [projective space](https://knowlpedia.com/algebraic-geometry-foundations/projective-space/) \(\mathbb P_k^n\) is generally not affine, but it is a scheme because it is covered by \(n+1\) open subsets, each isomorphic to [affine \(n\)-space](https://knowlpedia.com/algebraic-geometry-foundations/affine-n-space/).
