The Krull dimension of at a point . For a closed point of an irreducible affine variety it equals , by the closed-point dimension lemma for affine domains. At a generic point of a codimension-one subvariety the local dimension is one.
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 .