Locally ringed space
A topological space with a sheaf of rings whose stalks are local rings.
A locally ringed space is a pair consisting of a topological space and a sheaf of commutative rings such that every stalk is a local ring. The sheaf is called the structure sheaf.
The unique maximal ideal in distinguishes functions that vanish at from those locally invertible near . This extra condition makes points and local algebra interact correctly.
For example, if is a commutative ring, then is locally ringed because the stalk at a prime ideal is the local ring . Such examples are precisely the affine schemes.