Suppose first that . If , then , so the zero set of the regular function contains and hence its closure . Thus in the coordinate ring , and is injective.
Conversely, if were a proper closed subset of , its vanishing ideal in would contain a nonzero regular function . Then vanishes on , so , contradicting injectivity. Therefore
This is the coordinate-ring criterion for a dominant morphism of affine varieties.
For an irreducible affine variety, define dimension by
Irreducibility makes both coordinate rings integral domains. The injective map extends to an embedding of function fields
An algebraically independent family in remains algebraically independent in , so the dimension of an irreducible affine variety by transcendence degree gives