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

# Sheaf

A system of local data on open sets that can be uniquely glued when compatible.

Let \(X\) be a [topological space](https://knowlpedia.com/topology/topological-space/). A **sheaf** \(\mathcal F\) on \(X\) assigns an object \(\mathcal F(U)\) to every open set \(U\subseteq X\), together with restriction maps
\[
\mathcal F(U)\longrightarrow \mathcal F(V)\qquad (V\subseteq U),
\]
such that restrictions compose as expected. It must also satisfy two local-to-global conditions. If \(U=\bigcup_i U_i\), then sections over \(U\) are determined by their restrictions to the \(U_i\); and compatible sections \(s_i\in\mathcal F(U_i)\) glue to a unique section \(s\in\mathcal F(U)\).

## Examples

The elements of \(\mathcal F(U)\) are called **sections over \(U\)**. For example, continuous real-valued functions form a sheaf: functions defined on an [open cover](https://knowlpedia.com/topology/open-cover/) and agreeing on overlaps glue uniquely. A [structure sheaf](https://knowlpedia.com/algebraic-geometry-foundations/structure-sheaf/) similarly records algebraic functions, while a [stalk](https://knowlpedia.com/algebraic-geometry-foundations/stalk/) records their germs at one point.
