Fix and choose affine opens and with . The open subset of contains . If and , its diagonal is induced by the surjection
so it is a closed immersion. Hence every diagonal morphism is locally a closed immersion into an open subset, and therefore is a locally closed immersion.
For , the product is and the diagonal is . Its complement is the principal affine open
Take instead the separated scheme . The complement of its diagonal in is , where the removed diagonal has codimension two. Its global functions still form the polynomial ring of . Were the complement affine, its canonical morphism to of this ring would identify it with all of , which is impossible. Thus this diagonal complement is not affine.
Prevariety 2026-10-05
In the classical convention over an algebraically closed field , a prevariety is an irreducible topological space with a sheaf of rings which has a finite open cover by affine varieties, with compatible local identifications. A prevariety need not be separated. A classical algebraic variety is a separated prevariety: its diagonal morphism has closed image. Some authors allow reducible prevarieties and varieties; the separation criterion and product construction remain the same under that convention.
Quasi-separated morphism 2026-10-25
A morphism of schemes is quasi-separated if its diagonal morphism is a quasi-compact morphism. Every separated morphism has this property since a closed immersion is a quasi-compact morphism. This compactness condition is needed when uniqueness in the valuative criterion is used to deduce separatedness for arbitrary schemes.