Use the usual convention that a variety is an irreducible variety. For a quasi-projective algebraic set , its algebraic dimension is the supremum of the lengths of strict chains
of nonempty irreducible closed subsets of . It is the maximum of the algebraic dimensions of its irreducible components. On an affine algebraic set, the correspondence between irreducible closed subsets and prime ideals reverses inclusion, so this is the Krull dimension of the coordinate ring. On a quasi-projective algebraic set, it is the supremum of the Krull dimensions of the coordinate rings of its affine open subsets. At a closed point , the Krull dimension of the local ring measures chains through .
Here is a closed-point dimension lemma for affine domains that avoids transcendence degree. Put . By Noether normalization, there is a integral extension
The number of variables is because integral extensions preserve Krull dimension and . For any maximal ideal of , its contraction to is a maximal ideal. Since is an algebraically closed field, has height of a prime ideal . The going-down theorem applies because is an integrally closed domain and is a integral domain. It lifts a length- chain below to one below . Hence
The opposite inequality follows from .
For the nonempty open subset , choose a nonempty principal open subset and a closed point . Every prime ideal below avoids , so the preceding chain survives in the localization . Consequently . Conversely, any chain of irreducible closed subsets in gives a chain of the same length after taking closures in : intersecting those closures with recovers the original subsets. Therefore
For the principal hypersurface dimension lemma, let be a minimal prime ideal over . Since in the integral domain , . The Krull principal ideal theorem gives . Choose a closed point on lying on none of the other finitely many irreducible components of . Such a point exists because those other components cut out proper closed subsets of the irreducible variety , and closed points are dense. Set . Then and
Write . Choose a system of parameters in and lift it to . The ideal has radical equal to the maximal ideal of . The Krull height theorem yields . On the other hand, any chain of prime ideals containing can be extended strictly at the bottom by the zero prime ideal of the integral domain , giving . Thus . Since is a localization of , . Extending a chain in by also gives . Hence every component has the required dimension:
This argument uses Noether normalization, going-down theorem, and the Krull height theorem, never the dimension from the function field theorem. Irreducibility is essential: if the word variety were instead allowed to mean an arbitrary reducible affine algebraic set, neither assertion would hold without extra hypotheses. For example, a disjoint union of an affine plane and an affine line has an open component of smaller algebraic dimension; a function equal to on the plane and a coordinate on the line has a nonempty zero set of algebraic dimension .
Write , , , and . It is the quadratic cone invariant ring
where the involution negates both and . The invariant monomials have even total degree and are generated by ; reduction by proves the asserted presentation.
To verify the normal variety property, suppose is integral over . The same monic equation makes integral over . This polynomial ring is an integrally closed domain, so . Since belongs to the fraction field of , it is invariant under the involution, and hence belongs to . Thus is normal. The gradient of its equation is , so the Jacobian criterion shows that the origin is its only singular point of an algebraic variety. In particular is not smooth.
Take the prime Weil divisor and . We show that is not a Cartier divisor at . In the local ring
its prime ideal is . The quotient has dimension of a vector space over : generate it, and they are independent since while the relation has no linear term. By Nakayama lemma, cannot be generated by one element.
On a normal variety, the ideal of an effective prime Weil divisor is the divisorial ideal of functions with order at least one along that divisor and order at least zero along every other prime Weil divisor. If were a Cartier divisor at , a local defining rational function would identify this ideal with , because an integrally closed domain is the intersection of its height-one localizations at a prime ideal inside its fraction field. That would make principal, contradicting the calculation. Therefore has a nonzero class in the local divisor class group.
Now let be any linearly equivalent Weil divisor. If were outside its support of a Weil divisor, there would be an open subset containing on which is zero. On that neighbourhood would be a principal Weil divisor, hence a Cartier divisor, which is impossible. Therefore this point is unavoidable in every representative:
The argument does not assume that is effective. For comparison, because on the chart , ; the obstruction has order two, as in the Divisor class group of an A-type surface singularity.
Work on affine open subsets. Their coordinate rings are Noetherian rings and integrally closed domains. At a prime ideal of height of a prime ideal one, the local ring is a one-dimensional Noetherian local ring which is an integrally closed domain, hence a discrete valuation ring and therefore a regular local ring. At the generic point the local ring is a field, hence a regular local ring. For a brief justification of the one-dimensional local ring fact, take in a one-dimensional Noetherian local ring which is an integrally closed domain. Some ; choose the least such , and choose . Then , but . If , the determinant trick applied to the finitely generated faithful module would make integral over , a contradiction. Hence the ideal contains a unit and equals . Thus is principal. A one-dimensional Noetherian local ring with principal maximal ideal is a discrete valuation ring. Therefore a normal variety is regular in codimension one.
The ground field is an algebraically closed field, hence a perfect field, so having a regular local ring is equivalent to being a smooth point of a variety here. Moreover, the smooth locus of a variety is open, making the singular locus closed. If an irreducible component of the singular locus had algebraic codimension zero or one, its generic point would have a regular local ring by the preceding argument, a contradiction. Consequently every such component has algebraic codimension at least two.
One can read the numerical bound directly from chains of prime ideals, without identifying algebraic dimension with transcendence degree. For a prime ideal of height of a prime ideal at least two in an affine chart, append a chain below any chain in the quotient by . Its length increases by two. Thus . Since a nonempty affine open subset of the irreducible variety has algebraic dimension ,
For or , this means the singular locus is empty; take .
For a smooth projective curve , let be its geometric genus, let be a canonical divisor, and write for the dimension of a vector space of the Riemann-Roch space. The Riemann-Roch theorem says
for every divisor on an algebraic curve on .
Here is the cohomological proof of Riemann-Roch for curves. At a closed point , the local ring is a discrete valuation ring. A local uniformizer shows that increasing the allowed pole order by one gives the short exact sequence of sheaves
The last term is a length-one skyscraper sheaf; its precise identification with is noncanonical, but its sheaf cohomology has and . All the relevant groups of sheaf cohomology are finite-dimensional because is a projective variety, and coherent sheaf cohomology above degree one vanishes on a algebraic curve. The long exact sequence in sheaf cohomology therefore gives
Since is an algebraically closed field, every closed point has degree one. Iterating this identity for both positive and negative coefficients of proves
Every global regular function on a projective variety which is an irreducible variety is constant; hence and .
Finally apply Serre duality for a smooth projective curve:
Taking dimensions of a vector space and inserting this in the Euler characteristic of a coherent sheaf identity proves the displayed Riemann-Roch theorem. The substantial inputs from sheaf cohomology are finiteness and vanishing for coherent sheaves on a projective curve, and Serre duality; the change of Euler characteristic of a coherent sheaf is proved directly by the point exact sequence. In particular the argument handles negative as well as effective divisors on an algebraic curve.
An irreducible scheme is a nonempty scheme whose underlying topological space cannot be expressed as the union of two proper closed subsets. Equivalently, any two nonempty open subsets meet. A reduced scheme is one whose local rings have no nonzero nilpotent elements. Equivalently, every affine open subscheme has a reduced ring of regular functions. We may define an integral scheme as a nonempty scheme for which the coordinate ring of every nonempty affine open subscheme is an integral domain. We shall show that this is equivalent to being reduced and irreducible. The nonempty convention matters: the empty scheme is reduced but is not irreducible or integral.
For a commutative ring , the spectrum of a ring is reduced exactly when is a reduced ring. One direction follows since localization preserves reducedness. Conversely, if is a nonzero nilpotent element, choose a prime ideal containing its proper annihilator. Then cannot vanish at that localization, contradicting reducedness of its local ring.
The spectrum of a ring is irreducible exactly when its nilradical is a prime ideal. To see the essential implication directly, if , then is empty. Irreducibility forces or to be empty, hence or . Also is proper because the spectrum is nonempty. Conversely, if is a prime ideal, the point has closure , so the spectrum is irreducible. Combining the two criteria gives
Now suppose is reduced and irreducible. Every nonempty affine open subscheme is also reduced and irreducible: irreducibility passes to nonempty open subsets, because their nonempty open subsets are nonempty opens of . The affine criterion makes each coordinate ring an integral domain, so is integral. Conversely, suppose all its nonempty affine coordinate rings are integral domains. Their localizations show that is reduced. If were reducible, there would be disjoint nonempty open subsets; choose nonempty affine open subschemes and inside them. Their disjoint union is itself an affine open subscheme . Since are nonzero, contradicts the domain condition. Therefore
The generic point of an integral scheme is the unique point with . For existence, take a nonempty affine open subscheme . Its point has closure containing , which is dense in , so its closure in is all of . For uniqueness, both proposed generic points lie in every nonempty open subset, hence in , where the only dense point is . The function field is
Here the stalk description shows that the field of fractions is independent of the choice of nonempty affine open subscheme.
Every nonempty open subscheme contains , so taking a germ there defines . If a section has zero germ, restrict it to any nonempty affine open subscheme . Its image in is zero. Since this coordinate ring is an integral domain, the section is zero on . Such affines cover , and the sheaf gluing axiom makes the section zero on . Thus the generic-point embedding of regular functions is
For a nonreduced reducible fibre between integral schemes, take both source and target to be the affine line over , and use the ring homomorphism
Both coordinate rings are integral domains, so both schemes are integral. At the target closed point , the scheme-theoretic fibre has ring
by the Chinese remainder theorem. Its underlying space has two distinct closed points, so it is reducible. The class of is nonzero but has square zero, so it is not reduced. Even a morphism between integral schemes can have a fibre consisting of two nonreduced double points.