In algebraic geometry, the dimension of a scheme is a generalization of the dimension of an algebraic variety. Scheme theory emphasizes the relative point of view and, accordingly, the relative dimension of a morphism of schemes is also important.
By definition, the dimension of a scheme X is the dimension of the underlying topological space: the supremum of the lengths â of chains of irreducible closed subsets:
In particular, if is an affine scheme, then such chains correspond to chains of prime ideals (inclusion reversed), so the dimension of X is precisely the Krull dimension of A.
If Y is an irreducible closed subset of a scheme X, then the codimension of Y in X is the supremum of the lengths â of chains of irreducible closed subsets:
An irreducible subset of X is an irreducible component of X if and only if its codimension in X is zero. If is affine, then the codimension of Y in X is precisely the height of the prime ideal defining Y in X.
An equidimensional scheme (or, pure dimensional scheme) is a scheme whose irreducible components are of the same dimension (implicitly assuming the dimensions are all well-defined).
All irreducible schemes are equidimensional.
In an affine space, the union of a line and a point not on the line is not equidimensional. Generally, if two closed subschemes of some scheme, neither containing the other, have unequal dimensions, then their union is not equidimensional.
If a scheme is smooth (for instance, étale) over Spec k for some field k, then every connected component (which is then, in fact, an irreducible component) is equidimensional.
Let be a morphism locally of finite type between two schemes and . The relative dimension of at a point is the dimension of the fiber . If all the nonempty fibers are purely of the same dimension , then one says that is of relative dimension .