Lemma (regular rational function on affine variety)

If $X$ is an irreducible affine variety, then $O_X(X)$${}= A(X)$.

Proof