= Dimension from minimum tangent dimension
For a nonempty irreducible <affine variety> $X$ over an <algebraically closed field>,
$$
\dim X=\min_{p\in X\text{ closed}}\dim T_pX.
$$
Every closed-point <local ring> has <Krull dimension> $\dim X$, and its <embedding dimension> is at least that value. Equality holds precisely when the local ring is regular, hence at a <smooth point of a variety>. The <density of the smooth locus> ensures the minimum is attained. The same statement holds for a pure-dimensional reduced variety; components of different <dimensions> require local <dimension> instead.<The Stacks project>[Section 33.46, tag 0C2G; Lemma 33.25.8, tag 0B8X]{ref}
For example, $X=V(xz,yz)\subset\mathbb A^3$ is the <union> of the plane $z=0$ and the vertical line $x=y=0$. It has <dimension> two, but its <Zariski tangent space> at $(0,0,1)$ has <dimension> one. That <point> is smooth on its one-dimensional component. Thus neither the global minimum formula nor testing all <points> against one global <dimension> works for a mixed-dimensional variety.
Back to article page