ConceptComplete

Dimension

Dimension is one of the most fundamental invariants of an algebraic variety. Intuitively, a curve has dimension 1, a surface dimension 2, and a point dimension 0. Making this precise requires care: we give three equivalent definitions (topological, algebraic, field-theoretic) and show their agreement.

Throughout, kk denotes an algebraically closed field.


Topological dimension (Krull dimension)

Definition1.8Krull dimension of a topological space

Let XX be a topological space. The dimension of XX (or Krull dimension) is the supremum of the lengths of chains of irreducible closed subsets:

dim⁑X=sup⁑{n∣Z0⊊Z1βŠŠβ‹―βŠŠZn,β€…β€ŠZiΒ irreducibleΒ closedΒ inΒ X}.\dim X = \sup\{n \mid Z_0 \subsetneq Z_1 \subsetneq \cdots \subsetneq Z_n,\; Z_i \text{ irreducible closed in } X\}.

A chain Z0⊊Z1βŠŠβ‹―βŠŠZnZ_0 \subsetneq Z_1 \subsetneq \cdots \subsetneq Z_n has length nn (the number of strict inclusions). If no finite bound exists, dim⁑X=∞\dim X = \infty.

RemarkConvention on length

Be careful: a chain of n+1n+1 irreducible closed subsets has length nn. A single point (one irreducible closed set, no proper inclusions) contributes a chain of length 0.

ExampleDimension of a point

Let X={P}X = \{P\} be a single point. The only irreducible closed subset is {P}\{P\} itself, so the longest chain is Z0={P}Z_0 = \{P\}, which has length 0. Thus dim⁑{P}=0\dim\{P\} = 0.

ExampleDimension of A^1

In A1\mathbb{A}^1 with the Zariski topology, the irreducible closed subsets are:

  • The whole space A1\mathbb{A}^1 (corresponding to the prime ideal (0)(0)).
  • Individual points {a}\{a\} for a∈ka \in k (corresponding to maximal ideals (xβˆ’a)(x - a)).

The longest chain of irreducible closed subsets is:

{a}⊊A1,\{a\} \subsetneq \mathbb{A}^1,

which has length 1. Therefore dim⁑A1=1\dim \mathbb{A}^1 = 1.

ExampleDimension of A^2

In A2\mathbb{A}^2, the irreducible closed subsets are:

  • A2\mathbb{A}^2 itself (prime ideal (0)(0)).
  • Irreducible curves V(f)V(f) for irreducible f∈k[x,y]f \in k[x,y] (prime ideals (f)(f)).
  • Points {(a,b)}\{(a,b)\} (maximal ideals (xβˆ’a,yβˆ’b)(x-a, y-b)).

A maximal chain:

{(0,0)}⊊V(y)⊊A2,\{(0,0)\} \subsetneq V(y) \subsetneq \mathbb{A}^2,

which has length 2. We cannot insert any irreducible closed set strictly between a point and an irreducible curve, or between an irreducible curve and A2\mathbb{A}^2 (this follows from the fact that k[x,y]k[x,y] has Krull dimension 2). Therefore dim⁑A2=2\dim \mathbb{A}^2 = 2.

ExampleDimension of A^n

By the same reasoning, the irreducible closed subsets of An\mathbb{A}^n are in bijection with prime ideals of k[x1,…,xn]k[x_1,\ldots,x_n] (via V↔IV \leftrightarrow I). A maximal chain of prime ideals in k[x1,…,xn]k[x_1,\ldots,x_n] is:

(0)⊊(x1)⊊(x1,x2)βŠŠβ‹―βŠŠ(x1,…,xn),(0) \subsetneq (x_1) \subsetneq (x_1, x_2) \subsetneq \cdots \subsetneq (x_1, \ldots, x_n),

which has length nn. This gives dim⁑An=n\dim \mathbb{A}^n = n. More precisely, the Krull dimension of the polynomial ring k[x1,…,xn]k[x_1,\ldots,x_n] is nn (a nontrivial theorem in commutative algebra).


Algebraic dimension (Krull dimension of the coordinate ring)

Definition1.9Krull dimension of a ring

The Krull dimension of a commutative ring AA is the supremum of the lengths of chains of prime ideals:

dim⁑A=sup⁑{n∣p0⊊p1βŠŠβ‹―βŠŠpn,β€…β€Špi∈Spec⁑A}.\dim A = \sup\{n \mid \mathfrak{p}_0 \subsetneq \mathfrak{p}_1 \subsetneq \cdots \subsetneq \mathfrak{p}_n,\; \mathfrak{p}_i \in \operatorname{Spec} A\}.

RemarkTopological = algebraic for affine varieties

For an affine variety YβŠ†AnY \subseteq \mathbb{A}^n, the irreducible closed subsets of YY correspond bijectively to the prime ideals of k[Y]=k[x1,…,xn]/I(Y)k[Y] = k[x_1,\ldots,x_n]/I(Y) (via the VV-II correspondence restricted to YY). Inclusion of irreducible closed subsets reverses to inclusion of prime ideals. Therefore:

dim⁑Y=dim⁑k[Y].\dim Y = \dim k[Y].

The topological dimension of YY equals the Krull dimension of its coordinate ring.

ExampleDimension via coordinate ring: the parabola

Let Y=V(yβˆ’x2)βŠ†A2Y = V(y - x^2) \subseteq \mathbb{A}^2. Then k[Y]=k[x,y]/(yβˆ’x2)β‰…k[x]k[Y] = k[x,y]/(y-x^2) \cong k[x]. The prime ideals of k[x]k[x] are (0)(0) and (xβˆ’a)(x - a) for a∈ka \in k. The longest chain is (0)⊊(xβˆ’a)(0) \subsetneq (x-a), of length 1. So dim⁑Y=1\dim Y = 1. This confirms that the parabola is a curve.

ExampleDimension via coordinate ring: the cuspidal cubic

Let Y=V(y2βˆ’x3)Y = V(y^2 - x^3). Then k[Y]=k[x,y]/(y2βˆ’x3)β‰…k[t2,t3]k[Y] = k[x,y]/(y^2 - x^3) \cong k[t^2, t^3]. This is an integral domain of Krull dimension 1: the only prime ideals are (0)(0) and the maximal ideals (one for each point of YY). So dim⁑Y=1\dim Y = 1 --- the cuspidal cubic is a curve, despite its singularity.

ExampleDimension of a reducible set

Let X=V(xy)βŠ†A2X = V(xy) \subseteq \mathbb{A}^2, the union of the coordinate axes. The ring k[x,y]/(xy)k[x,y]/(xy) has the following prime ideals: (x)(x), (y)(y) (corresponding to the two irreducible components), and (x,yβˆ’a)(x, y-a), (xβˆ’a,y)(x-a, y) for a∈ka \in k (the points on each axis). A longest chain is:

(x)⊊(x,yβˆ’a),(x) \subsetneq (x, y-a),

which has length 1. So dim⁑X=1\dim X = 1. For a reducible algebraic set, the dimension is the maximum of the dimensions of its irreducible components.


Transcendence degree

Definition1.10Function field

For an affine variety YY (irreducible), the function field (or field of rational functions) of YY is the fraction field of the coordinate ring:

K(Y)=Frac⁑(k[Y]).K(Y) = \operatorname{Frac}(k[Y]).

Elements of K(Y)K(Y) are rational functions f/gf/g where f,g∈k[Y]f, g \in k[Y], gβ‰ 0g \neq 0. A rational function is defined on the open set where its denominator does not vanish.

Definition1.11Transcendence degree

Let K/kK/k be a field extension. The transcendence degree tr.deg⁑kK\operatorname{tr.deg}_k K is the maximum number of elements of KK that are algebraically independent over kk. Equivalently, if KK is finitely generated over kk, then

tr.deg⁑kK=n\operatorname{tr.deg}_k K = n

where KK is algebraic over k(t1,…,tn)k(t_1, \ldots, t_n) for some t1,…,tn∈Kt_1, \ldots, t_n \in K that are algebraically independent over kk, and nn is the smallest such number.

ExampleTranscendence degree of A^n

K(An)=k(x1,…,xn)K(\mathbb{A}^n) = k(x_1, \ldots, x_n), the field of rational functions in nn variables. The elements x1,…,xnx_1, \ldots, x_n are algebraically independent over kk, and K(An)K(\mathbb{A}^n) is generated by them, so

tr.deg⁑k k(x1,…,xn)=n.\operatorname{tr.deg}_k\, k(x_1,\ldots,x_n) = n.

ExampleTranscendence degree of a parabola

Y=V(yβˆ’x2)Y = V(y - x^2). Then k[Y]β‰…k[x]k[Y] \cong k[x], so K(Y)=k(x)K(Y) = k(x). This is a purely transcendental extension of kk of degree 1, so tr.deg⁑k K(Y)=1\operatorname{tr.deg}_k\, K(Y) = 1.

ExampleTranscendence degree of the cuspidal cubic

Y=V(y2βˆ’x3)Y = V(y^2 - x^3). Then k[Y]=k[t2,t3]k[Y] = k[t^2, t^3] and K(Y)=k(t)K(Y) = k(t) (since t=t3/t2∈K(Y)t = t^3/t^2 \in K(Y)). So tr.deg⁑k K(Y)=1\operatorname{tr.deg}_k\, K(Y) = 1.

ExampleTranscendence degree of a surface in A^3

Let Y=V(zβˆ’xy)βŠ†A3Y = V(z - xy) \subseteq \mathbb{A}^3. Then k[Y]=k[x,y,z]/(zβˆ’xy)β‰…k[x,y]k[Y] = k[x,y,z]/(z-xy) \cong k[x,y] via z↦xyz \mapsto xy, so K(Y)=k(x,y)K(Y) = k(x,y). We have tr.deg⁑k k(x,y)=2\operatorname{tr.deg}_k\, k(x,y) = 2, confirming YY is a surface.


Equivalence of the three definitions

Theorem1.2Dimension theorem

Let YY be an affine variety over an algebraically closed field kk. The following three quantities are equal:

  1. Topological dimension: dim⁑Y\dim Y = supremum of lengths of chains of irreducible closed subsets of YY.
  2. Krull dimension: dim⁑k[Y]\dim k[Y] = supremum of lengths of chains of prime ideals in k[Y]k[Y].
  3. Transcendence degree: tr.deg⁑k K(Y)\operatorname{tr.deg}_k\, K(Y).

That is,

dim⁑Y=dim⁑k[Y]=tr.deg⁑k K(Y).\dim Y = \dim k[Y] = \operatorname{tr.deg}_k\, K(Y).

RemarkProof ingredients

The equality (1) = (2) is immediate from the VV-II correspondence. The key content is (2) = (3), which relies on:

  • Noether normalization: For any finitely generated kk-algebra AA that is a domain, there exist algebraically independent elements y1,…,yd∈Ay_1, \ldots, y_d \in A such that AA is a finitely generated module over k[y1,…,yd]k[y_1,\ldots,y_d]. The number d=tr.deg⁑kFrac⁑(A)d = \operatorname{tr.deg}_k \operatorname{Frac}(A).
  • Going up / going down theorems: These allow one to lift chains of prime ideals through integral extensions.

Geometrically, Noether normalization says that every affine variety of dimension dd admits a finite surjective morphism to Ad\mathbb{A}^d.

ExampleNoether normalization for the twisted cubic

The twisted cubic Y=V(yβˆ’x2,zβˆ’x3)βŠ†A3Y = V(y-x^2, z-x^3) \subseteq \mathbb{A}^3 has coordinate ring k[Y]β‰…k[x]k[Y] \cong k[x]. The element xx is algebraically independent over kk, and k[Y]k[Y] is already equal to k[x]k[x]. So d=1d = 1 and the Noether normalization map is the identity: Yβ†’A1Y \to \mathbb{A}^1 given by the coordinate xx.

This confirms dim⁑Y=tr.deg⁑k k(x)=1\dim Y = \operatorname{tr.deg}_k\, k(x) = 1.

ExampleNoether normalization for the circle

Consider Y=V(x2+y2βˆ’1)βŠ†A2Y = V(x^2 + y^2 - 1) \subseteq \mathbb{A}^2 over C\mathbb{C}. The coordinate ring is A=k[x,y]/(x2+y2βˆ’1)A = k[x,y]/(x^2+y^2-1). We need to find an element t∈At \in A such that AA is a finite module over k[t]k[t].

Take t=xt = x. In AA, we have y2=1βˆ’x2y^2 = 1 - x^2, so yy satisfies the monic polynomial T2βˆ’(1βˆ’t2)=0T^2 - (1-t^2) = 0 over k[t]k[t]. Thus A=k[t]+k[t]β‹…yA = k[t] + k[t] \cdot y is a free k[t]k[t]-module of rank 2, and AA is integral over k[t]k[t].

The Noether normalization is the projection Yβ†’A1Y \to \mathbb{A}^1, (x,y)↦x(x,y) \mapsto x, which is a 2-to-1 map (generically). This confirms dim⁑Y=1\dim Y = 1.


Dimension of projective varieties

Definition1.12Dimension of a projective variety

The dimension of a projective variety YβŠ†PnY \subseteq \mathbb{P}^n is its dimension as a topological space (supremum of lengths of chains of irreducible closed subsets). Equivalently, dim⁑Y=dim⁑(Y∩Ui)\dim Y = \dim(Y \cap U_i) for any standard affine open UiU_i that meets YY nontrivially.

ExampleDimension of projective space

dim⁑Pn=n\dim \mathbb{P}^n = n. Indeed, Pn\mathbb{P}^n contains the affine open set U0β‰…AnU_0 \cong \mathbb{A}^n, and dim⁑An=n\dim \mathbb{A}^n = n. The chain of irreducible closed subsets is:

{[1:0:β‹―:0]}⊊V(x1)⊊V(x1,x2)βŠŠβ‹―βŠŠV(x1,…,xnβˆ’1)⊊Pn,\{[1:0:\cdots:0]\} \subsetneq V(x_1) \subsetneq V(x_1,x_2) \subsetneq \cdots \subsetneq V(x_1,\ldots,x_{n-1}) \subsetneq \mathbb{P}^n,

where we abuse notation and write V(x1)=V(x1/x0)V(x_1) = V(x_1/x_0) restricted to the standard chart.

More precisely, in homogeneous coordinates, a maximal chain is:

[1:0:β‹―:0]⊊V(X1)βˆ©β‹―βˆ©V(Xn)⊊V(X1)βˆ©β‹―βˆ©V(Xnβˆ’1)βŠŠβ‹―βŠŠV(X1)⊊Pn.[1:0:\cdots:0] \subsetneq V(X_1) \cap \cdots \cap V(X_n) \subsetneq V(X_1) \cap \cdots \cap V(X_{n-1}) \subsetneq \cdots \subsetneq V(X_1) \subsetneq \mathbb{P}^n.

ExampleDimension of a projective curve

The Fermat cubic V(X3+Y3βˆ’Z3)βŠ†P2V(X^3 + Y^3 - Z^3) \subseteq \mathbb{P}^2 is an irreducible projective variety. In the affine chart Zβ‰ 0Z \neq 0, it becomes V(x3+y3βˆ’1)βŠ†A2V(x^3 + y^3 - 1) \subseteq \mathbb{A}^2. The coordinate ring is k[x,y]/(x3+y3βˆ’1)k[x,y]/(x^3+y^3-1), which has Krull dimension 1 (since x3+y3βˆ’1x^3 + y^3 - 1 is irreducible, it generates a prime ideal of height 1 in k[x,y]k[x,y]). So the Fermat cubic is a curve of dimension 1.


Dimension of hypersurfaces

Theorem1.3Dimension of a hypersurface

Let f∈k[x1,…,xn]f \in k[x_1, \ldots, x_n] be an irreducible polynomial. Then

dim⁑V(f)=nβˆ’1.\dim V(f) = n - 1.

More generally, if Y=V(f)βŠ†AnY = V(f) \subseteq \mathbb{A}^n with ff irreducible, then I(Y)=(f)I(Y) = (f) is a prime ideal of height 1 in k[x1,…,xn]k[x_1,\ldots,x_n], so dim⁑k[Y]=dim⁑k[x1,…,xn]/(f)=nβˆ’1\dim k[Y] = \dim k[x_1,\ldots,x_n]/(f) = n - 1.

Similarly, if FF is an irreducible homogeneous polynomial of degree dβ‰₯1d \geq 1 in k[X0,…,Xn]k[X_0,\ldots,X_n], then dim⁑V(F)=nβˆ’1\dim V(F) = n - 1 in Pn\mathbb{P}^n.

RemarkWhy height 1?

In a UFD, every nonzero prime ideal contains an irreducible element. Since k[x1,…,xn]k[x_1,\ldots,x_n] is a UFD, the prime ideal (f)(f) for irreducible ff has height 1 (there is no prime ideal strictly between (0)(0) and (f)(f)). By the dimension formula for quotient rings: dim⁑A/p=dim⁑Aβˆ’ht⁑(p)\dim A/\mathfrak{p} = \dim A - \operatorname{ht}(\mathfrak{p}) (valid for finitely generated kk-algebras that are domains), we get dim⁑k[x1,…,xn]/(f)=nβˆ’1\dim k[x_1,\ldots,x_n]/(f) = n - 1.

ExampleHypersurfaces in A^3

In A3\mathbb{A}^3 with coordinates (x,y,z)(x,y,z):

  • V(z)β‰…A2V(z) \cong \mathbb{A}^2: a plane, dimension 2. (A hyperplane is always a hypersurface.)
  • V(x2+y2+z2βˆ’1)V(x^2 + y^2 + z^2 - 1): a sphere (over C\mathbb{C}), dimension 2.
  • V(xyβˆ’z2)V(xy - z^2): a quadric cone, dimension 2. This is singular at the origin (the vertex of the cone).
  • V(x2+y3+z5)V(x^2 + y^3 + z^5): an E8E_8 surface singularity, dimension 2.

All hypersurfaces in A3\mathbb{A}^3 (defined by a single irreducible equation) have dimension 3βˆ’1=23 - 1 = 2: they are surfaces.

ExampleSmooth quadric in P^3

Q=V(X0X3βˆ’X1X2)βŠ†P3Q = V(X_0 X_3 - X_1 X_2) \subseteq \mathbb{P}^3 is an irreducible quadric hypersurface, so dim⁑Q=3βˆ’1=2\dim Q = 3 - 1 = 2. We saw earlier (Segre embedding) that Qβ‰…P1Γ—P1Q \cong \mathbb{P}^1 \times \mathbb{P}^1, which is consistent: dim⁑(P1Γ—P1)=1+1=2\dim(\mathbb{P}^1 \times \mathbb{P}^1) = 1 + 1 = 2.


Codimension and dimension of intersections

Definition1.13Codimension

If YβŠ†XY \subseteq X is an irreducible closed subset of a variety XX, the codimension of YY in XX is

codim⁑(Y,X)=dim⁑Xβˆ’dim⁑Y.\operatorname{codim}(Y, X) = \dim X - \dim Y.

More generally, the codimension of YY in XX can be defined as the supremum of lengths of chains of irreducible closed subsets Y=Z0⊊Z1βŠŠβ‹―βŠŠZrβŠ†XY = Z_0 \subsetneq Z_1 \subsetneq \cdots \subsetneq Z_r \subseteq X.

For well-behaved (catenary) rings, these two definitions agree.

ExampleBasic codimension computations

In An\mathbb{A}^n:

| Subvariety | Dimension | Codimension in An\mathbb{A}^n | |---|---|---| | An\mathbb{A}^n itself | nn | 00 | | Hypersurface V(f)V(f), ff irred. | nβˆ’1n-1 | 11 | | A point {P}\{P\} | 00 | nn | | A line | 11 | nβˆ’1n-1 | | V(x1,…,xr)V(x_1,\ldots,x_r) (rr coordinate hyperplanes) | nβˆ’rn - r | rr |

Codimension-1 subvarieties are hypersurfaces. Codimension-nn subvarieties (in An\mathbb{A}^n) are points.

Theorem1.4Dimension of intersections

Let Y,ZY, Z be irreducible closed subsets of An\mathbb{A}^n (or Pn\mathbb{P}^n). Then every irreducible component WW of Y∩ZY \cap Z satisfies

dim⁑Wβ‰₯dim⁑Y+dim⁑Zβˆ’n.\dim W \geq \dim Y + \dim Z - n.

In particular, if dim⁑Y+dim⁑Zβ‰₯n\dim Y + \dim Z \geq n, then Y∩Zβ‰ βˆ…Y \cap Z \neq \varnothing (in the projective case).

RemarkCodimension version

Equivalently, codim⁑(W)≀codim⁑(Y)+codim⁑(Z)\operatorname{codim}(W) \leq \operatorname{codim}(Y) + \operatorname{codim}(Z) for each irreducible component WW of Y∩ZY \cap Z. The "expected" codimension of the intersection is codim⁑(Y)+codim⁑(Z)\operatorname{codim}(Y) + \operatorname{codim}(Z), and the actual codimension can only be less (i.e., the intersection can only be "larger than expected").

ExampleTwo lines in A^2

Let Y=V(y)Y = V(y) and Z=V(yβˆ’x)Z = V(y - x) in A2\mathbb{A}^2. Both have dimension 1. Their intersection is V(y,yβˆ’x)=V(x,y)={(0,0)}V(y, y-x) = V(x,y) = \{(0,0)\}, which has dimension 0. We check:

dim⁑(Y∩Z)=0β‰₯1+1βˆ’2=0.\dim(Y \cap Z) = 0 \geq 1 + 1 - 2 = 0.

Equality holds --- this is a "transverse" intersection.

ExampleParallel lines in A^2

Y=V(y)Y = V(y) and Z=V(yβˆ’1)Z = V(y-1) in A2\mathbb{A}^2. Then Y∩Z=V(y,yβˆ’1)=βˆ…Y \cap Z = V(y, y-1) = \varnothing. The theorem gives dim⁑Wβ‰₯0\dim W \geq 0 for any component WW, but the intersection is empty, so there is no contradiction.

In P2\mathbb{P}^2, these lines do meet at the point at infinity [1:0:0][1:0:0] (homogenize: Y=0Y = 0 and Yβˆ’Z=0Y - Z = 0 give Z=0Z = 0, Y=0Y = 0).

ExamplePlane and line in A^3

Let Y=V(z)βŠ†A3Y = V(z) \subseteq \mathbb{A}^3 (a plane, dimension 2) and Z=V(x,y)βŠ†A3Z = V(x,y) \subseteq \mathbb{A}^3 (the zz-axis, dimension 1). Then Y∩Z=V(x,y,z)={(0,0,0)}Y \cap Z = V(x,y,z) = \{(0,0,0)\}, dimension 0. The bound gives:

dim⁑(Y∩Z)=0β‰₯2+1βˆ’3=0.\dim(Y \cap Z) = 0 \geq 2 + 1 - 3 = 0.

Again, equality holds.

ExampleExcess intersection

Let Y=V(x,y)βŠ†A4Y = V(x,y) \subseteq \mathbb{A}^4 (a plane, dimension 2) and Z=V(x,z)βŠ†A4Z = V(x,z) \subseteq \mathbb{A}^4 (another plane, dimension 2). Then

Y∩Z=V(x,y,z)β‰…A1,dim⁑(Y∩Z)=1.Y \cap Z = V(x,y,z) \cong \mathbb{A}^1, \quad \dim(Y \cap Z) = 1.

The lower bound is 2+2βˆ’4=02 + 2 - 4 = 0, but the actual dimension is 1 --- the intersection is "excess" by 1. This happens because YY and ZZ share the common direction along the ww-axis and are not "in general position."


Krull's Principal Ideal Theorem (Hauptidealsatz)

Theorem1.5Krull's Hauptidealsatz

Let AA be a Noetherian ring and f∈Af \in A a non-unit, non-zero-divisor. Then every minimal prime p\mathfrak{p} over (f)(f) has height ≀1\leq 1:

ht⁑(p)≀1.\operatorname{ht}(\mathfrak{p}) \leq 1.

More generally (generalized principal ideal theorem): if a=(f1,…,fr)\mathfrak{a} = (f_1, \ldots, f_r) is generated by rr elements, then every minimal prime p\mathfrak{p} over a\mathfrak{a} satisfies ht⁑(p)≀r\operatorname{ht}(\mathfrak{p}) \leq r.

RemarkGeometric meaning

Krull's theorem has a beautiful geometric interpretation. In An\mathbb{A}^n:

  • A single equation f=0f = 0 cuts out a set of codimension ≀1\leq 1 (each irreducible component is a hypersurface or the whole space).
  • The zero set of rr equations has every component of codimension ≀r\leq r.
  • Equivalently, every component of V(f1,…,fr)βŠ†AnV(f_1,\ldots,f_r) \subseteq \mathbb{A}^n has dimension β‰₯nβˆ’r\geq n - r.

One cannot cut dimension by more than one with each equation. This is the algebraic version of the geometric intuition that "each equation imposes at most one constraint."

ExampleSingle equation in A^3

Let f=x2+y2+z2∈k[x,y,z]f = x^2 + y^2 + z^2 \in k[x,y,z]. The ideal (f)(f) is prime (since ff is irreducible over C\mathbb{C}, using the fact that x2+y2+z2=(x+iy+βˆ’1βˆ’1 z)(⋯ )x^2 + y^2 + z^2 = (x + iy + \sqrt{-1-1}\, z)(\cdots) --- actually, x2+y2+z2x^2+y^2+z^2 is irreducible over C\mathbb{C} because it cannot factor as a product of two linear forms). By the Hauptidealsatz, the minimal prime over (f)(f) is (f)(f) itself with height 1. So dim⁑V(f)=3βˆ’1=2\dim V(f) = 3 - 1 = 2.

ExampleTwo equations in A^3

In A3\mathbb{A}^3, consider V(x,y)V(x, y): this is the zz-axis. The ideal (x,y)(x,y) has height 2 in k[x,y,z]k[x,y,z], and dim⁑V(x,y)=1=3βˆ’2\dim V(x,y) = 1 = 3 - 2. The generalized principal ideal theorem guarantees ht⁑(x,y)≀2\operatorname{ht}(x,y) \leq 2, and indeed equality holds here.

Now consider V(x2,xy)V(x^2, xy). We have V(x2,xy)=V(x)βˆͺV(x,y)=V(x)V(x^2, xy) = V(x) \cup V(x, y) = V(x), which is the entire yzyz-plane of dimension 2. The minimal prime over (x2,xy)(x^2, xy) is (x)(x), which has height 1 --- well within the bound of 2.

ExampleWhen the bound is not sharp

Consider V(xy,xz)βŠ†A3V(xy, xz) \subseteq \mathbb{A}^3. The ideal (xy,xz)(xy, xz) is generated by 2 elements, so the generalized Hauptidealsatz guarantees each component has codimension ≀2\leq 2. The decomposition is

V(xy,xz)=V(x)βˆͺV(y,z).V(xy, xz) = V(x) \cup V(y,z).

Here V(x)V(x) has codimension 1 and V(y,z)V(y,z) has codimension 2. Both are within the bound. The variety V(x)V(x) has codimension strictly less than 2 --- the two equations xy=0xy = 0 and xz=0xz = 0 do not impose independent conditions along V(x)V(x).


Examples: computing dimensions

ExampleDimension of the twisted cubic

The twisted cubic CβŠ†A3C \subseteq \mathbb{A}^3 is the image of t↦(t,t2,t3)t \mapsto (t, t^2, t^3). Its coordinate ring is k[C]=k[x,y,z]/(yβˆ’x2,zβˆ’x3)β‰…k[x]k[C] = k[x,y,z]/(y-x^2, z-x^3) \cong k[x], so

dim⁑C=dim⁑k[x]=1.\dim C = \dim k[x] = 1.

Alternatively, K(C)=k(x)K(C) = k(x), so tr.deg⁑kK(C)=1\operatorname{tr.deg}_k K(C) = 1. The twisted cubic is a curve --- a 1-dimensional subvariety of A3\mathbb{A}^3 with codimension 2.

Note that CC is defined by the ideal (yβˆ’x2,zβˆ’x3)(y-x^2, z-x^3), which has height 2 in k[x,y,z]k[x,y,z], consistent with dim⁑C=3βˆ’2=1\dim C = 3 - 2 = 1.

ExampleDimension of the rational normal curve

The rational normal curve of degree dd is the image of Ξ½d:P1β†’Pd\nu_d : \mathbb{P}^1 \to \mathbb{P}^d given by

[s:t]↦[sd:sdβˆ’1t:β‹―:td].[s:t] \mapsto [s^d : s^{d-1}t : \cdots : t^d].

Since Ξ½d\nu_d is an isomorphism onto its image, dim⁑νd(P1)=dim⁑P1=1\dim \nu_d(\mathbb{P}^1) = \dim \mathbb{P}^1 = 1. The rational normal curve is a curve of codimension dβˆ’1d - 1 in Pd\mathbb{P}^d.

ExampleDimension of the Grassmannian

The Grassmannian G(r,n)\mathbb{G}(r, n) parametrizes rr-dimensional subspaces of knk^n. An rr-dimensional subspace is specified by an rΓ—nr \times n matrix of rank rr, modulo the action of GL⁑r\operatorname{GL}_r. The space of rΓ—nr \times n matrices has dimension rnrn, and GL⁑r\operatorname{GL}_r has dimension r2r^2, so

dim⁑G(r,n)=rnβˆ’r2=r(nβˆ’r).\dim \mathbb{G}(r,n) = rn - r^2 = r(n - r).

Concrete cases:

| Grassmannian | Parametrizes | Dimension | |---|---|---| | G(1,n)=Pnβˆ’1\mathbb{G}(1, n) = \mathbb{P}^{n-1} | Lines through origin in knk^n | nβˆ’1n - 1 | | G(2,4)\mathbb{G}(2, 4) | Lines in P3\mathbb{P}^3 | 2β‹…2=42 \cdot 2 = 4 | | G(2,5)\mathbb{G}(2, 5) | Lines in P4\mathbb{P}^4 | 2β‹…3=62 \cdot 3 = 6 | | G(3,6)\mathbb{G}(3, 6) | Planes in P5\mathbb{P}^5 | 3β‹…3=93 \cdot 3 = 9 |

The Grassmannian G(2,4)\mathbb{G}(2,4) sits inside P5\mathbb{P}^5 via the Plucker embedding, where it is a quadric hypersurface. Check: dim⁑G(2,4)=4=dim⁑P5βˆ’1=5βˆ’1\dim \mathbb{G}(2,4) = 4 = \dim \mathbb{P}^5 - 1 = 5 - 1. This is consistent with G(2,4)\mathbb{G}(2,4) being a hypersurface in P5\mathbb{P}^5.

ExampleDimension of flag varieties

A complete flag in knk^n is a sequence

0=V0⊊V1⊊V2βŠŠβ‹―βŠŠVn=kn0 = V_0 \subsetneq V_1 \subsetneq V_2 \subsetneq \cdots \subsetneq V_n = k^n

where dim⁑Vi=i\dim V_i = i. The flag variety Fl⁑(n)=Fl⁑(1,2,…,nβˆ’1; n)\operatorname{Fl}(n) = \operatorname{Fl}(1,2,\ldots,n-1;\, n) parametrizes all such flags. It is a projective variety of dimension

dim⁑Fl⁑(n)=n(nβˆ’1)2.\dim \operatorname{Fl}(n) = \frac{n(n-1)}{2}.

This can be computed by a "tower of fibrations": choosing V1βŠ†V2βŠ†β‹―V_1 \subseteq V_2 \subseteq \cdots successively, one gets a tower

Fl⁑(n)β†’G(nβˆ’1,n)β†’G(nβˆ’2,n)β†’β‹―\operatorname{Fl}(n) \to \mathbb{G}(n-1, n) \to \mathbb{G}(n-2, n) \to \cdots

At each step, the fiber is a projective space. Alternatively, Fl⁑(n)=GL⁑n/B\operatorname{Fl}(n) = \operatorname{GL}_n / B where BB is the Borel subgroup of upper triangular matrices, and dim⁑Fl⁑(n)=dim⁑GL⁑nβˆ’dim⁑B=n2βˆ’n(n+1)2=n(nβˆ’1)2\dim \operatorname{Fl}(n) = \dim \operatorname{GL}_n - \dim B = n^2 - \frac{n(n+1)}{2} = \frac{n(n-1)}{2}.

For n=3n = 3: dim⁑Fl⁑(3)=3\dim \operatorname{Fl}(3) = 3, parametrizing flags 0⊊V1⊊V2⊊k30 \subsetneq V_1 \subsetneq V_2 \subsetneq k^3 (a point in a line in a plane in 3-space).

More generally, a partial flag variety Fl⁑(d1,…,ds; n)\operatorname{Fl}(d_1, \ldots, d_s;\, n) parametrizing flags Vd1βŠŠβ‹―βŠŠVds⊊knV_{d_1} \subsetneq \cdots \subsetneq V_{d_s} \subsetneq k^n has dimension

dim⁑Fl⁑(d1,…,ds; n)=βˆ‘i=1sdi(di+1βˆ’di)\dim \operatorname{Fl}(d_1, \ldots, d_s;\, n) = \sum_{i=1}^{s} d_i(d_{i+1} - d_i)

where ds+1=nd_{s+1} = n.

ExampleDimension of determinantal varieties

Let MmΓ—n(k)β‰…AmnM_{m \times n}(k) \cong \mathbb{A}^{mn} be the space of mΓ—nm \times n matrices, and define

Mr={A∈MmΓ—n(k)∣rank⁑(A)≀r}.\mathcal{M}_r = \{A \in M_{m \times n}(k) \mid \operatorname{rank}(A) \leq r\}.

This is the determinantal variety defined by the vanishing of all (r+1)Γ—(r+1)(r+1) \times (r+1) minors of a generic mΓ—nm \times n matrix. Its dimension is

dim⁑Mr=r(m+nβˆ’r).\dim \mathcal{M}_r = r(m + n - r).

To see this: a matrix of rank exactly rr is determined by its image (an rr-dimensional subspace of kmk^m, parametrized by G(r,m)\mathbb{G}(r,m) of dimension r(mβˆ’r)r(m-r)) together with a surjective linear map knβ†’krk^n \to k^r (which, modulo the choice of basis, contributes rnβˆ’r2=r(nβˆ’r)rn - r^2 = r(n-r) parameters). Total: r(mβˆ’r)+r(nβˆ’r)=r(m+nβˆ’2r)r(m-r) + r(n-r) = r(m+n-2r), but we must also account for the r2r^2 parameters in GL⁑r\operatorname{GL}_r. A cleaner computation:

dim⁑Mr=dim⁑{(A,V)∣Im⁑(A)βŠ†V,β€…β€Šdim⁑V=r}=dim⁑G(r,m)+rn=r(mβˆ’r)+rn=r(m+nβˆ’r).\dim \mathcal{M}_r = \dim\{(A,V) \mid \operatorname{Im}(A) \subseteq V,\; \dim V = r\} = \dim \mathbb{G}(r,m) + rn = r(m-r) + rn = r(m+n-r).

Special cases:

  • r=0r = 0: M0={0}\mathcal{M}_0 = \{0\}, dimension 0. Check: 0β‹…(m+nβˆ’0)=00 \cdot (m+n-0) = 0.
  • r=1r = 1: M1\mathcal{M}_1 has dimension m+nβˆ’1m + n - 1. For 2Γ—22 \times 2 matrices (m=n=2m = n = 2): dim⁑M1=1β‹…3=3\dim \mathcal{M}_1 = 1 \cdot 3 = 3. This is the locus V(det⁑)βŠ†A4V(\det) \subseteq \mathbb{A}^4, a hypersurface of dimension 3 in A4\mathbb{A}^4. Consistent!
  • r=min⁑(m,n)βˆ’1r = \min(m,n) - 1: the variety V(det⁑)V(\det) (for square matrices m=nm = n) has dimension n2βˆ’1n^2 - 1, which is codimension 1 in An2\mathbb{A}^{n^2}.
ExampleThe determinantal hypersurface V(det)

For the space Mn(k)β‰…An2M_n(k) \cong \mathbb{A}^{n^2} of nΓ—nn \times n matrices, the locus of singular matrices is

V(det⁑)=Mnβˆ’1={A∣det⁑(A)=0}.V(\det) = \mathcal{M}_{n-1} = \{A \mid \det(A) = 0\}.

Since det⁑\det is an irreducible polynomial of degree nn in the n2n^2 matrix entries, V(det⁑)V(\det) is an irreducible hypersurface of dimension n2βˆ’1n^2 - 1.

Let us verify using the determinantal formula: dim⁑Mnβˆ’1=(nβˆ’1)(n+nβˆ’(nβˆ’1))=(nβˆ’1)(n+1)=n2βˆ’1\dim \mathcal{M}_{n-1} = (n-1)(n + n - (n-1)) = (n-1)(n+1) = n^2 - 1.

For n=2n = 2: det⁑=adβˆ’bc\det = ad - bc on A4\mathbb{A}^4, giving a 3-dimensional hypersurface. The singular locus of V(det⁑)V(\det) is {a=b=c=d=0}\{a = b = c = d = 0\} (the zero matrix), a single point.

For n=3n = 3: V(det⁑)βŠ†A9V(\det) \subseteq \mathbb{A}^9 has dimension 8. It is singular along M1\mathcal{M}_1 (matrices of rank ≀1\leq 1), which has dimension 3+3βˆ’1=53 + 3 - 1 = 5.


Fiber dimension theorem

Theorem1.6Fiber dimension theorem (Chevalley)

Let f:X→Yf : X \to Y be a dominant morphism of irreducible varieties. Then:

  1. dim⁑Xβ‰₯dim⁑Y\dim X \geq \dim Y.
  2. For every point y∈f(X)y \in f(X), every irreducible component of the fiber fβˆ’1(y)f^{-1}(y) has dimension β‰₯dim⁑Xβˆ’dim⁑Y\geq \dim X - \dim Y.
  3. There exists a nonempty open subset UβŠ†YU \subseteq Y such that for all y∈Uy \in U:

dim⁑fβˆ’1(y)=dim⁑Xβˆ’dim⁑Y.\dim f^{-1}(y) = \dim X - \dim Y.

  1. More precisely, for each integer rβ‰₯0r \geq 0, the set

{x∈X∣everyΒ componentΒ ofΒ fβˆ’1(f(x))Β throughΒ xΒ hasΒ dimensionβ‰₯r}\{x \in X \mid \text{every component of } f^{-1}(f(x)) \text{ through } x \text{ has dimension} \geq r\}

is a closed subset of XX.

RemarkGeometric content

The fiber dimension theorem says that the "generic fiber" of a dominant morphism f:Xβ†’Yf: X \to Y has dimension dim⁑Xβˆ’dim⁑Y\dim X - \dim Y, and fibers can only jump up in dimension over special closed subsets. The dimension cannot drop below the generic value.

This is sometimes called the semicontinuity of fiber dimension: the function y↦dim⁑fβˆ’1(y)y \mapsto \dim f^{-1}(y) is upper semicontinuous.

ExampleProjection from a surface

Let X=V(xzβˆ’y)βŠ†A3X = V(xz - y) \subseteq \mathbb{A}^3, which is isomorphic to A2\mathbb{A}^2 via (x,z)↦(x,xz,z)(x,z) \mapsto (x, xz, z), so dim⁑X=2\dim X = 2. Consider the projection f:Xβ†’A1f : X \to \mathbb{A}^1 given by f(x,y,z)=xf(x,y,z) = x.

For aβ‰ 0a \neq 0: fβˆ’1(a)={(a,y,z)∣azβˆ’y=0}={(a,az,z)∣z∈k}β‰…A1f^{-1}(a) = \{(a, y, z) \mid az - y = 0\} = \{(a, az, z) \mid z \in k\} \cong \mathbb{A}^1, dimension 1.

For a=0a = 0: fβˆ’1(0)={(0,y,z)∣0β‹…zβˆ’y=0}={(0,0,z)∣z∈k}β‰…A1f^{-1}(0) = \{(0, y, z) \mid 0 \cdot z - y = 0\} = \{(0, 0, z) \mid z \in k\} \cong \mathbb{A}^1, dimension 1.

In this case, every fiber has dimension 1=2βˆ’11 = 2 - 1. The fiber dimension is constant.

ExampleBlow-up of A^2 at the origin

The blow-up of A2\mathbb{A}^2 at the origin is

Bl⁑0(A2)={((x,y),[s:t])∈A2Γ—P1∣xtβˆ’ys=0}.\operatorname{Bl}_0(\mathbb{A}^2) = \{((x,y), [s:t]) \in \mathbb{A}^2 \times \mathbb{P}^1 \mid xt - ys = 0\}.

This is an irreducible variety of dimension 2. The natural projection Ο€:Bl⁑0(A2)β†’A2\pi : \operatorname{Bl}_0(\mathbb{A}^2) \to \mathbb{A}^2 is a morphism with:

  • For (x,y)β‰ (0,0)(x,y) \neq (0,0): Ο€βˆ’1(x,y)={((x,y),[x:y])}\pi^{-1}(x,y) = \{((x,y), [x:y])\}, a single point (dimension 0).
  • For (x,y)=(0,0)(x,y) = (0,0): Ο€βˆ’1(0,0)={((0,0),[s:t])}β‰…P1\pi^{-1}(0,0) = \{((0,0), [s:t])\} \cong \mathbb{P}^1, dimension 1.

The generic fiber dimension is 2βˆ’2=02 - 2 = 0, and the special fiber over the origin jumps to dimension 1. The set where fiber dimension β‰₯1\geq 1 is {(0,0)}\{(0,0)\}, which is indeed closed.

ExampleFibers of the rank stratification

Consider the map f:MmΓ—n(k)β†’G(r,m)f : M_{m \times n}(k) \to \mathbb{G}(r, m) sending a matrix AA of rank rr to its image Im⁑(A)∈G(r,m)\operatorname{Im}(A) \in \mathbb{G}(r,m). (This is defined on the locally closed subset of matrices of rank exactly rr.)

The fiber over a fixed rr-plane VβŠ†kmV \subseteq k^m is the set of all mΓ—nm \times n matrices with image VV, which is the set of nn-tuples of vectors in VV, i.e., Hom⁑(kn,V)β‰…krn\operatorname{Hom}(k^n, V) \cong k^{rn} (modulo the constraint that the map is surjective onto VV, which is an open condition). So the fiber has dimension rnrn (as the open subset of matrices of rank rr in krnk^{rn}).

The total dimension: dim⁑G(r,m)+rn=r(mβˆ’r)+rn=r(m+nβˆ’r)\dim \mathbb{G}(r,m) + rn = r(m-r) + rn = r(m+n-r), matching our earlier computation.

ExampleIncidence correspondence for lines in P^2

Consider the incidence variety

Ξ£={(p,β„“)∈P2Γ—(P2)βˆ—βˆ£pβˆˆβ„“}\Sigma = \{(p, \ell) \in \mathbb{P}^2 \times (\mathbb{P}^2)^* \mid p \in \ell\}

where (P2)βˆ—(\mathbb{P}^2)^* is the dual projective plane parametrizing lines. Then Ξ£βŠ†P2Γ—P2\Sigma \subseteq \mathbb{P}^2 \times \mathbb{P}^2 is defined by a0x0+a1x1+a2x2=0a_0 x_0 + a_1 x_1 + a_2 x_2 = 0 where [x0:x1:x2][x_0:x_1:x_2] are coordinates on P2\mathbb{P}^2 and [a0:a1:a2][a_0:a_1:a_2] are coordinates on (P2)βˆ—(\mathbb{P}^2)^*.

Projection to P2\mathbb{P}^2: The fiber over a point pp is the set of lines through pp, which is P1\mathbb{P}^1. So every fiber has dimension 1, and dim⁑Σ=dim⁑P2+1=3\dim \Sigma = \dim \mathbb{P}^2 + 1 = 3.

Projection to (P2)βˆ—(\mathbb{P}^2)^*: The fiber over a line β„“\ell is the set of points on β„“\ell, which is P1\mathbb{P}^1. Again every fiber has dimension 1, and dim⁑Σ=dim⁑(P2)βˆ—+1=3\dim \Sigma = \dim (\mathbb{P}^2)^* + 1 = 3.

Both projections give dim⁑Σ=3\dim \Sigma = 3, which is consistent.


Summary of dimension computations

VarietyDimensionMethod
An\mathbb{A}^nnntr.deg⁑k k(x1,…,xn)=n\operatorname{tr.deg}_k\, k(x_1,\ldots,x_n) = n
Pn\mathbb{P}^nnnContains An\mathbb{A}^n as dense open
Point00Single irreducible closed set
Hypersurface V(f)βŠ†AnV(f) \subseteq \mathbb{A}^nnβˆ’1n - 1ht⁑(f)=1\operatorname{ht}(f) = 1
Twisted cubic in A3\mathbb{A}^311k[C]β‰…k[t]k[C] \cong k[t]
V(xyβˆ’z2)βŠ†A3V(xy-z^2) \subseteq \mathbb{A}^3 (quadric cone)22Irreducible hypersurface
G(r,n)\mathbb{G}(r, n)r(nβˆ’r)r(n-r)Fiber argument
Fl⁑(n)\operatorname{Fl}(n) (flag variety)n(nβˆ’1)2\frac{n(n-1)}{2}GL⁑n/B\operatorname{GL}_n/B
Mr\mathcal{M}_r (rank ≀r\leq r matrices in MmΓ—nM_{m \times n})r(m+nβˆ’r)r(m+n-r)Incidence correspondence
V(det⁑)βŠ†Mn(k)V(\det) \subseteq M_n(k)n2βˆ’1n^2 - 1Irreducible hypersurface in An2\mathbb{A}^{n^2}
RemarkLooking ahead

Dimension is the starting point for the theory of algebraic geometry:

  • Curves (dim⁑=1\dim = 1): classified by genus; rich connections to number theory and complex analysis.
  • Surfaces (dim⁑=2\dim = 2): the Enriques--Kodaira classification; birational geometry becomes nontrivial (blow-ups, minimal models).
  • Higher dimensions: the minimal model program (Mori theory) extends the classification, but many fundamental questions remain open.

In Hartshorne Ch. II, dimension will be redefined for schemes using the Krull dimension of the structure sheaf, recovering the same notion for varieties.