There are many ways to define algebraic varieties, but over $\mathbb{C}$ most of them coincide. However, there are some things about which I am not sure and which I would like to verify. I know there are many similar questions around, but I am interested in this specific formulation. References (or sketches of proofs) are very welcome.
First question: is it the same to define an affine variety as
- A closed, irreducible subset of some $\mathbb{C}^n$ with respect to the Zariski topology
- $\mathrm{Spm}(\mathbb{C}[X_1,\dots ,X_n]/I)$, where $I$ is a prime ideal and $\mathrm{Spm}$ denotes the set of maximal ideals endowed with the Zariski topology
- $\mathrm{Spec}(\mathbb{C}[X_1,\dots ,X_n]/I)$, where $I$ is a prime ideal and $\mathrm{Spec}$ denotes the set of prime ideals endowed with the Zariski topology.
More in detail: do all three definitions give rise to equivalent categories, when I define a variety as a separated locally ringed space over $\mathbb{C}$ that can be covered by finitely many affine varieties? (And is this even the correct definition?)
The second question is: if I am only working with closed points, is the following definition of regular function completely general and correct?
Let $X$ be a variety of dimension $n$. A function $f: X \to \mathbb{C}$ is regular at a point $x \in X$ if there is an affine open neighbourhood $U$ of $x$ and polynomials $g,h \in \mathbb{C}[X_1,\dots,X_n]$ such that $h$ is nowhere zero on $U$ and $f=\frac{g}{h}$ on $U$. The function $f$ is a regular function if it is regular at each point of $X$. We denote by $\mathbb{C}[X]$ the $\mathbb{C}$-algebra of regular functions on $X$. Equivalently, $\mathbb{C}[X] := \mathcal{O}_X(X)$.