A locally ringed space is a topological space equipped with a sheaf of commutative rings whose stalk at every point is a local ring. A morphism of locally ringed spaces consists of a continuous map and a morphism of sheaves of rings , with every induced stalk map a local homomorphism: the inverse image of the target maximal ideal is the source maximal ideal. Here is the direct image sheaf, with sections on .
Let be a ring homomorphism. Define the map between the spectra of rings by
The inverse image is a prime ideal, and . Thus is a continuous map, because the principal open subsets form a basis. On these principal open subsets, define the structure sheaf map using the localizations
These maps commute with restrictions and consequently give a morphism of sheaves. At , putting , the stalk map is . An element belongs to its inverse image of exactly when , so this is a local homomorphism. We have constructed a morphism of locally ringed spaces.
Conversely, take a morphism of locally ringed spaces . Its map on global sections gives a ring homomorphism
Locality of the stalk map implies, for every ,
Hence the point map must be . On , its structure sheaf map must send to and the inverse of to the inverse of . Thus it is precisely the localization map constructed above. Agreement on this basis proves agreement of the morphisms of sheaves. In particular, the inducing ring homomorphism exists and is unique.
If is surjective, write . The correspondence between prime ideals of and prime ideals of containing identifies homeomorphically with the closed subset : the principal open subsets correspond on both sides. Moreover, the stalk maps are the surjections , so is surjective.
For the converse, it is important not to assume that global sections preserve an arbitrary surjection of sheaves. Here the affine module-sheaf equivalence supplies the extra information: on every ,
Thus is the quasi-coherent sheaf associated with the -module , and the cokernel sheaf of is associated with the module , since localization of a module is exact. Surjectivity of the morphism of sheaves gives for every prime ideal . This implies : if , its proper annihilator lies in a maximal ideal , and then in . Therefore is surjective. We have proved the closed immersion criterion for affine schemes:

Pinned article: Introduction to the OurBigBook Project

Welcome to the OurBigBook Project! Our goal is to create the perfect publishing platform for STEM subjects, and get university-level students to write the best free STEM tutorials ever.
Everyone is welcome to create an account and play with the site: ourbigbook.com/go/register. We belive that students themselves can write amazing tutorials, but teachers are welcome too. You can write about anything you want, it doesn't have to be STEM or even educational. Silly test content is very welcome and you won't be penalized in any way. Just keep it legal!
We have two killer features:
  1. topics: topics group articles by different users with the same title, e.g. here is the topic for the "Fundamental Theorem of Calculus" ourbigbook.com/go/topic/fundamental-theorem-of-calculus
    Articles of different users are sorted by upvote within each article page. This feature is a bit like:
    • a Wikipedia where each user can have their own version of each article
    • a Q&A website like Stack Overflow, where multiple people can give their views on a given topic, and the best ones are sorted by upvote. Except you don't need to wait for someone to ask first, and any topic goes, no matter how narrow or broad
    This feature makes it possible for readers to find better explanations of any topic created by other writers. And it allows writers to create an explanation in a place that readers might actually find it.
    Figure 1.
    Screenshot of the "Derivative" topic page
    . View it live at: ourbigbook.com/go/topic/derivative
  2. local editing: you can store all your personal knowledge base content locally in a plaintext markup format that can be edited locally and published either:
    This way you can be sure that even if OurBigBook.com were to go down one day (which we have no plans to do as it is quite cheap to host!), your content will still be perfectly readable as a static site.
    Figure 5. . You can also edit articles on the Web editor without installing anything locally.
    Video 3.
    Edit locally and publish demo
    . Source. This shows editing OurBigBook Markup and publishing it using the Visual Studio Code extension.
  3. https://raw.githubusercontent.com/ourbigbook/ourbigbook-media/master/feature/x/hilbert-space-arrow.png
  4. Infinitely deep tables of contents:
    Figure 6.
    Dynamic article tree with infinitely deep table of contents
    .
    Descendant pages can also show up as toplevel e.g.: ourbigbook.com/cirosantilli/chordate-subclade
All our software is open source and hosted at: github.com/ourbigbook/ourbigbook
Further documentation can be found at: docs.ourbigbook.com
Feel free to reach our to us for any help or suggestions: docs.ourbigbook.com/#contact