The points of the spectrum of a commutative ring are its prime ideals. Its Zariski topology has closed sets and basis . The structure sheaf of a scheme can be defined as follows: a section over assigns an element of to every , and locally that assignment is represented by one fraction , with outside every prime in the neighbourhood. Restrictions forget values. Local representability and equality can be checked on an open cover, so these assignments satisfy the sheaf gluing axiom. On the sections identify with the localization of a ring .
Evaluation at induces the ring homomorphism . It is surjective because is represented by a section on . For injectivity, represent a germ by on a neighbourhood of . If its value in vanishes, there is with . The section is then zero after restricting to inside that neighbourhood. Its germ is zero. Thus
The tensor product of sheaves is the sheafification of the presheaf
with restriction maps induced by those of , , and the structure sheaf of a scheme. Sending the germ of to gives a canonical map
It is surjective because a finite sum of tensors of germs has representatives on one common neighborhood. It is injective because an equality in a tensor product of modules is witnessed by finitely many additive and balancing relations; all their germs, including the scalars in , can be represented and their equalities made valid on a common smaller neighborhood. Equivalently, a filtered colimit of modules commutes with these tensor products. Since sheafification preserves the stalk of a sheaf, this proves the asserted isomorphism.
For the pullback of a sheaf of modules, first form the inverse image sheaf : sheafify . The morphism of sheaves of rings then defines
Exactness of a sequence of sheaf of modules morphisms is checked on every stalk of a sheaf. Applying the right exactness of the tensor product of modules to the stalk sequence over gives the exact stalk sequence of the pullbacks. Thus preserves sequences ending in zero, as required.
A quasi-coherent sheaf is a sheaf of modules locally of the form for a module over the coordinate ring of an affine neighborhood. On an affine variety with ring , this associated sheaf is characterized on principal opens by , using localization of a module. Suppose and is affine, with ring . The induced algebra map gives a canonical map
At a point , both sides identify with : on the right use and associativity of the tensor product of modules. The map is therefore an isomorphism on every stalk of a sheaf, hence an isomorphism of sheaves. Such cover , proving that the pullback is a quasi-coherent sheaf.
Finally, on an affine open with ring , the presheaf defining has, on , the value
Consequently , so is a quasi-coherent sheaf. The algebra map for is the composite . Restriction of functions and the tensor-product construction give a canonical sheaf morphism . At , it is the associativity isomorphism
It is therefore a sheaf of modules isomorphism. In particular,
Every restriction map of the structure sheaf of a scheme is a unital ring homomorphism. Thus in implies the same identity in for every open . This proves (ii)(i), so (i) and (ii) are equivalent.
An open immersion is a morphism of schemes that identifies , including its structure sheaf, with an open subscheme of .
Let and . The inclusion is an open immersion and is an affine scheme, but is not affine. Indeed, regular functions extend across the missing codimension-two point, so
Were affine, the inclusion would therefore correspond to an isomorphism of coordinate rings and would be an isomorphism , a contradiction.
For an example with both schemes affine, the principal open subscheme
is a nontrivial open immersion. The affine line is connected because has no nontrivial idempotent elements.
A scheme has characteristic when in its structure sheaf of a scheme. Equivalently, its structure morphism factors through .