# Commutative Algebra/Irreducibility, algebraic sets and varieties
## Irreducibility

Definition 21.1:
Let $X$ be a topological space. $X$ is said to be irreducible if and only if no two non-empty open subsets of $X$ are disjoint.
Some people (topologists) call irreducible spaces hyperconnected.
Theorem 21.2 (characterisation of irreducible spaces):
Let $X$ be a topological space. The following are equivalent:
* $X$ is irreducible.
* $X$ can not be written as the union of two proper closed subsets.
* Every open subset of $X$ is dense in $X$.
* The interior of every proper closed subset of $X$ is empty.
Proof 1: We prove 1. $\Rightarrow$ 2. $\Rightarrow$ 3. $\Rightarrow$ 4. $\Rightarrow$ 1.
1. $\Rightarrow$ 2.: Assume that $X=A\cup B$, where $A$, $B$ are proper and closed. Define $O:=X\setminus A$ and $U:=X\setminus B$. Then $O,U$ are open and
    $O\cap U=(X\setminus A)\cap (X\setminus B)=X\setminus (A\cup B)=\emptyset$
by one of deMorgan's rules, contradicting 1.
2. $\Rightarrow$ 3.: Assume that $U\subseteq X$ is open but not dense. Then $A:={\overline {U}}$ is closed and proper in $X$, and so is $B:=X\setminus U$. Furthermore, $X=A\cup B$, contradicting 2.
3. $\Rightarrow$ 4.: Let $\emptyset \neq A\subsetneq X$ be closed such that ${\overset {\circ }{A}}\neq \emptyset$. By definition of the closure, ${\overline {\overset {\circ }{A}}}\subseteq A$, which is why ${\overset {\circ }{A}}$ is a non-dense open set, contradicting 3.
4. $\Rightarrow$ 1.: Let $O,U\subseteq X$ be open and non-empty such that $O\cap U=\emptyset$. Define $A:=X\setminus O$. Then $A$ is a proper, closed subset of $X$, since $O\subseteq X\setminus A$. Furthermore, $O\subseteq {\overset {\circ }{A}}$, which is why $A$ has non-empty interior.$\Box$
Proof 2: We prove 1. $\Rightarrow$ 4. $\Rightarrow$ 3. $\Rightarrow$ 2. $\Rightarrow$ 1.
1. $\Rightarrow$ 4.: Assume we have a proper closed subset $A$ of $X$ with nonempty interior. Then $X\setminus A$ and ${\overset {\circ }{A}}$ are two disjoint nonempty open subsets of $X$.
4. $\Rightarrow$ 3.: Let $O\subseteq X$ be open. If $O$ was not dense in $X$, then ${\overline {O}}$ would be a proper closed subset of $X$ with nonempty interior.
3. $\Rightarrow$ 2.: Assume $X=A\cup B$, $A,B\subsetneq X$ proper and closed. Set $O:=X\setminus B$. Then $A\supset O$, and hence $O$ is not dense within $X$.
2. $\Rightarrow$ 1.: Let $O,U\subseteq X$ be open. If they are disjoint, then $X=(X\setminus O)\cup (X\setminus U)$.$\Box$
Remaining arrows:
1. $\Rightarrow$ 3.: Assume $U\subset X$ open, not dense. Then $X\setminus {\overline {U}}$ is nonempty and disjoint from $U$.
3. $\Rightarrow$ 1.: Let $O,U\subseteq X$ be open. If they are disjoint, then $O\subseteq X\setminus U$ and thus $O$ is not dense.
2. $\Rightarrow$ 4.: Let $A\subsetneq X$ be proper and closed with nonempty interior. Then $X=A\cup (X\setminus {\overset {\circ }{A}})$.
4. $\Rightarrow$ 2.: Let $X=A\cup B$, $A,B\subsetneq X$ proper and closed. Then $\emptyset \neq X\setminus A\subseteq {\overset {\circ }{A}}$.
We shall go on to prove a couple of properties of irreducible spaces.
Theorem 21.3:
Every irreducible space $X$ is connected and locally connected.
Proof:
1. Connectedness: Assume $X=U{\dot {\cup }}O$, $U,O$ open, non-empty. This certainly contradicts irreducibility.
2. Local connectedness: Let $x\in V\subseteq X$, where $V$ is open. But any open subset of $X$ is connected as in 1., which is why we have local connectedness.$\Box$
Theorem 21.4:
Let $X$ be an irreducible space. Then $X$ is Hausdorff if and only if $|X|\leq 1$.
Proof:
If $|X|\leq 1$, then $X$ is trivially Hausdorff. Assume that $X$ is Hausdorff and contains two distinct points $x\neq y$. Then we find $U_{x},U_{y}\subseteq X$ open such that $x\in U_{x}$, $y\in U_{y}$ and $U_{x}\cap U_{y}=\emptyset$, contradicting irreducibility.$\Box$
Theorem 21.5:
Let $X,Y$ be topological spaces, where $X$ is irreducible, and let $f:X\to Y$ be a continuous function (i.e. a morphism in the category of topological spaces). Then $f(X)$ is irreducible with the subspace topology induced by $Y$.
Proof: Let $O,U$ be two disjoint non-empty open subsets of $f(X)$. Since we are working with the subspace topology, we may write $O=f(X)\cap V$, $U=f(X)\cap W$, where $V,W\subseteq Y$ are open. We have
    $f^{-1}(O)=f^{-1}(f(X)\cap V)=f^{-1}(V)$ and similarly $f^{-1}(U)=f^{-1}(W)$.
Hence, $f^{-1}(O)$ and $f^{-1}(U)$ are open in $X$ by continuity, and since they further are disjoint (since if $x\in f^{-1}(O)$, then $f(x)\in O$ and thus $f(x)\notin U$) and non-empty (since e.g. if $y\in O$, since $O\subset f(X)$, $y=f(x)$ for an $x\in X$ and hence $x\in f^{-1}(O)$), we have a contradiction.$\Box$
Corollary 21.6:
If $X$ is irreducible, $Y$ is Hausdorff and $f:X\to Y$ is continuous, then $f$ is constant.
Proof: Follows from theorems 21.4 and 21.5.$\Box$
We may now connect irreducible spaces with Noetherian spaces.
Theorem 21.7:
Let $X$ be a Noetherian topological space, and let $A\subseteq X$ be closed. Then there exists a finite decomposition
    $A=B_{1}\cup \cdots \cup B_{n}$
where each $B_{j}$ is irreducible, and no $B_{j}$ is a subset of (or equals) any of the other $B_{i},i\neq j$. Furthermore, this decomposition is unique up to order.
Proof:
First we prove existence. Let $A\subseteq X$ be closed. Then either $A$ is irreducible, and we are done, or $A$ can be written as the union of two proper closed subsets $A=B_{1}\cup B_{2}$. Now again either $B_{1}$ and $B_{2}$ are irreducible, or they can be written as the union of two proper closed subsets again. The process of thus splitting up the sets must eventually terminate with all involved subsets being irreducible, since $X$ is Noetherian and otherwise we would have an infinite properly descending chain of closed subsets, contradiction. To get the last condition satisfied, we unite any subset contained within another with the greater subset (this can be done successively since there are only finitely many of them). Hence, we have a decomposition of the desired form.
We proceed to proving uniqueness up to order. Let $A=B_{1}\cup \cdots \cup B_{n}=C_{1}\cup \cdots \cup C_{m}$ be two such decompositions. For $k\in \{1,\ldots ,n\}$, we may thus write $B_{k}=(B_{k}\cap C_{1})\cup \cdots \cup (B_{k}\cap C_{m})$. Assume that there does not exist $j\in \{1,\ldots ,m\}$ such that $B_{k}\subseteq C_{j}\Leftrightarrow B_{k}=(B_{k}\cap C_{j})$. Then we may define $S_{1}:=(B_{k}\cap C_{1})$ and then successively
    $S_{l+1}:=S_{l}\cup (B_{k}\cap C_{l+1})$
for $1\leq l<m$. Then we set $l=1$ and increase $l$ until $S_{l}\cup (B_{k}\cap C_{l+1})$ is a decomposition of $B_{k}$ into two proper closed subsets (such an $l$ exists since it equals the first $l$ such that $S_{l}\cup (B_{k}\cap C_{l+1})=B_{k}$). Thus, our assumption was false; there does exist $j\in \{1,\ldots ,m\}$ such that $B_{k}\subseteq C_{j}$. Thus, each $B_{k}$ is contained within a $C_{j}$, and by symmetry $C_{j}$ is contained within some $B_{k'}$. Since by transitivity of $\subseteq$ this implies $B_{k}\subseteq B_{k'}$, $k=k'$ and $C_{j}=B_{k}$. For a fixed $k$, we set $\sigma (k)=j$, where $j$ is thus defined ($j$ is unique since otherwise there exist two equals among the $C$-sets). In a symmetric fashion, we may define $\tau (j)=k$, where $B_{k}=C_{j}$. Then $\tau$ and $\sigma$ are inverse to each other, and hence follows $n=m$ (sets with a bijection between them have equal cardinality) and the definition of $\sigma$, for example, implies that both decompositions are equal except for order.$\Box$

### Exercises

* Exercise 21.1.1: Let $X$ be an irreducible topological space, and let $O\subseteq X$ be open. Prove that $O$ is irreducible.

## Algebraic sets and varieties

Definition 21.8:
Let $\mathbb {F}$ be a field. Then the sets of the form
    $V(S):=\{(x_{1},\ldots ,x_{n})\in \mathbb {F} ^{n}|\forall f\in S:f(x_{1},\ldots ,x_{n})=0\}$,
where $S$ is a subset of the ring of polynomials in $n$ variables over $\mathbb {F}$ (that is $S\subseteq \mathbb {F} [x_{1},\ldots ,x_{n}]$), are called algebraic sets. If $S=\{f\}$ for a single $f\in \mathbb {F} [x_{1},\ldots ,x_{n}]$, we shall occasionally write
    $V(f):=V(\{f\})$.
The following picture depicts three algebraic sets (apart from the cube lines):
The orange surface is the set $V(f_{1})$, the blue surface is the set $V(f_{2})$, and the green line is the intersection of the two, equal to the set $V(\{f_{1},f_{2}\})$, where
    $f_{1}(x,y,z)=z+y^{3}$ and
    $f_{2}(x,y,z)=x+z^{2}$.
Three immediate lemmata are apparent.
Lemma 21.9:
    $S\subseteq T\Rightarrow V(T)\subseteq V(S)$.
Proof: Being in $V(T)$ is the stronger condition.$\Box$
Lemma 21.10 (formulas for algebraic sets):
Let $\mathbb {F}$ be a field and set $R:=\mathbb {F} [x_{1},\ldots ,x_{n}]$. Then the following rules hold for algebraic sets of $\mathbb {F} ^{n}$:
* $V(S)=V(\langle S\rangle )$ ($S\subseteq R$ a set)
* $V(R)=\emptyset$ and $V(\emptyset )=\mathbb {F} ^{n}$
* $V(I_{1})\cup \cdots \cup V(I_{k})=V(I_{1}\cap \cdots \cap I_{k})$ ($I_{1},\ldots ,I_{k}\leq R$ ideals)
* $\bigcap _{j\in J}V(S_{j})=V\left(\bigcup _{j\in J}S_{j}\right)$ ($S_{j}\subseteq R$ sets)
Proof:
1. Let $i:=\sum _{j=1}^{k}r_{j}s_{j}\in \langle S\rangle$. If $x=(x_{1},\ldots ,x_{n})\in V(S)$ follows $i(x)=0$. This proves $\subseteq$. The other direction follows from lemma 21.9.
2. $V(R)=\emptyset$ follows from the constant functions being contained within $R$, and $V(\emptyset )$ gives no condition on the points of $\mathbb {F} ^{n}$ to be contained within it.
3. $\subseteq$ follows by
    ${\begin{aligned}x\in V(I_{1})\cup \cdots \cup V(I_{k})&\Rightarrow \exists j\in \{1,\ldots ,k\}:x\in V(I_{j})\\&\Rightarrow \forall f\in I_{j}:f(x)=0\\&\Rightarrow \forall f\in I_{1}\cap \cdots \cap I_{k}:f(x)=0,\end{aligned}}$
since clearly $I_{1}\cap \cdots \cap I_{k}\subseteq I_{j}$.
We will first prove $\supseteq$ for the case $k=2$. Indeed, let $x\notin V(I_{1})\cup V(I_{2})$, that is, neither $x\in V(I_{1})$ nor $x\in V(I_{2})$. Hence, we find a polynomial $f\in I_{1}$ such that $f(x)\neq 0$ and a polynomial $g\in S_{2}$ such that $g(x)\neq 0$. The polynomial $f\cdot g$ is contained within $I_{1}\cap I_{2}$ and $(f\cdot g)(x)=f(x)\cdot g(x)\neq 0$, since every field is an integral domain. Thus, $x\notin V(I_{1}\cap I_{2})$.
Assume $\supseteq$ holds for $k-1$ many sets. Then we have
    $V(I_{1}\cap \cdots \cap I_{k})=V((I_{1}\cap \cdots I_{k-1})\cap I_{k})\subseteq V(I_{1}\cap \cdots I_{k-1})\cup V(I_{k})\subseteq V_{I_{1})\cup \cdots \cup V(I_{k-1})\cup V(I_{k})$.
4.
    ${\begin{aligned}x\in \bigcap _{j\in J}V(S_{j})&\Leftrightarrow \forall j\in J:x\in V(S_{j})\\&\Leftrightarrow \forall j\in J:\forall f\in S_{j}:f(x)=0\\&\Leftrightarrow \forall f\in \bigcup _{j\in J}S_{j}:f(x)=0\\&\Leftrightarrow x\in V\left(\bigcup _{j\in J}S_{j}\right).\end{aligned}}$$\Box$
From this lemma we see that the algebraic sets form the closed sets of a topology, much like the Zariski-closed sets we got to know in chapter 14. We shall soon find a name for that topology, but we shall first define it in a different way to justify the name we will give.
Lemma 21.11:
Let $\mathbb {F}$ be a field and $I\subseteq \mathbb {F} [x_{1},\ldots ,x_{n}]$. Then
    $V(I)=V(r(I))$;
we recall that $r(I)$ is the radical of $I$.
Proof: "$\supseteq$" follows from lemma 21.9. Let on the other hand $x\in V(I)$ and $g\in r(I)$. Then $g^{k}\in I$ for a suitable $k\in \mathbb {N}$. Thus, $g^{k}(x)=g(x)^{k}=0$. Assume $g(x)\neq 0$. Then $g(x)^{k}\neq 0$, contradiction. Hence, $x\in V(r(I))$.$\Box$
From calculus, we all know that there is a natural topology on $\mathbb {R} ^{n}$, namely the one induced by the Euclidean norm. However, there exists also a different topology on $\mathbb {R} ^{n}$, and in fact, on $\mathbb {F} ^{n}$ for any field $\mathbb {F}$. This topology is called the Zariski topology on $\mathbb {F} ^{n}$. Now the Zariski topology actually is a topology on $\operatorname {Spec} R$, for $R$ a ring, isn't it? Yes, and if $R=\mathbb {F} [x_{1},\ldots ,x_{n}]$, then $\mathbb {F} ^{n}$ is in bijective correspondence with a subset of $\operatorname {Spec} R$. Through this correspondence we will define the Zariski topology. So let's establish this correspondence by beginning with the following lemma.
Lemma 21.12:
Let $\mathbb {F}$ be a field and set $R:=\mathbb {F} [x_{1},\ldots ,x_{n}]$. If $(\alpha _{1},\ldots ,\alpha _{n})\in \mathbb {F} ^{n}$, then the ideal
    $\langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle$
is a maximal ideal of $R$.
Proof:
Set
    $\varphi :\mathbb {F} [x_{1},\ldots ,x_{n}]\to \mathbb {F} ,\varphi (f):=f(\alpha _{1},\ldots ,\alpha _{n})$.
This is a surjective ring homomorphism. We claim that its kernel is given by $\langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle$. This is actually not trivial and requires explanation. The relation $\langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle \subseteq \ker \varphi$ is trivial. We shall now prove the other direction, which isn't. For a given $f\in \mathbb {F} [x_{1},\ldots ,x_{n}]$, we define ${\tilde {f}}(x_{1},x_{2},\ldots ,x_{n}):=f(x_{1}+\alpha _{1},\ldots ,x_{n}+\alpha _{n})$; hence,
    ${\begin{aligned}f(x_{1},x_{2},\ldots ,x_{n})&=f(x_{1}+\alpha _{1}-\alpha _{1},\ldots ,x_{n}+\alpha _{n}-\alpha _{n})\\&={\tilde {f}}(x_{1}-\alpha _{1},x_{2}-\alpha _{2},\ldots ,x_{n}-\alpha _{n}).\end{aligned}}$
Furthermore, $f(\alpha _{1},\ldots ,\alpha _{n})=0$ if and only if ${\tilde {f}}(0,\ldots ,0)=0$. The latter condition is satisfied if and only if ${\tilde {f}}$ has no constant, and this happens if and only if ${\tilde {f}}$ is contained within the ideal $\langle x_{1},\ldots ,x_{n}\rangle$. This means we can write ${\tilde {f}}$ as an $\mathbb {F} [x_{1},\ldots ,x_{n}]$-linear combination of $x_{1},\ldots ,x_{n}$, and inserting $x_{j}-\alpha _{j}$ for $x_{j}$ gives the desired statement.
Hence, by the first isomorphism theorem for rings,
    $\mathbb {F} [x_{1},\ldots ,x_{n}]{\big /}\langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle \cong \mathbb {F}$.
Thus, $\mathbb {F} [x_{1},\ldots ,x_{n}]{\big /}\langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle$ is a field and hence $\langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle$ is maximal.$\Box$
Lemma 21.13:
Let $\mathbb {F}$ be a field. Define
    ${\mathcal {M}}_{\mathbb {F} }:=\left\{\langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle {\big |}(\alpha _{1},\ldots ,\alpha _{n})\in \mathbb {F} ^{n}\right\}$
(according to the previous lemma this is a subset of $\operatorname {Spec} \mathbb {F} [x_{1},\ldots ,x_{n}]$, as maximal ideals are prime). Then the function
    $\Phi :\mathbb {F} ^{n}\to {\mathcal {M}}_{\mathbb {F} },f((\alpha _{1},\ldots ,\alpha _{n})):=\langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle$
is a bijection.
Proof:
The function is certainly surjective. Let $\langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle =\langle x_{1}-\beta _{1},\ldots ,x_{n}-\beta _{n}\rangle$, and assume $\beta _{j}\neq \alpha _{j}$ for a certain $j\in \{1,\ldots ,n\}$. Then $x_{j}-\beta _{j}\in \langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle$, and thus
    $0\neq \alpha _{j}-\beta _{j}=x_{j}-\beta _{j}-(x_{j}-\alpha _{j})\in \langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle$.
Thus, $\langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle$ contains a unit and therefore equals $\mathbb {F} [x_{1},\ldots ,x_{n}]$, contradicting its maximality that was established in the last lemma.$\Box$
Definition 21.14:
Let $\mathbb {F}$ be a field. Then the Zariski topology on $\mathbb {F} ^{n}$ is defined to consist of the open sets
    $\Phi ^{-1}(O)$, $O\subseteq {\mathcal {M}}_{\mathbb {F} }$ open
where $\Phi$ and ${\mathcal {M}}_{\mathbb {F} }$ are given as in lemma 21.13 (that is, the Zariski topology on $\mathbb {F} ^{n}$ is defined to be the initial topology with respect to $\Phi$).
It is easy to check that the sets $\Phi ^{-1}(O)$, $O\subseteq {\mathcal {M}}_{\mathbb {F} }$ really do form a topology.
There is a very simple different way to characterise the Zariski topology:
Theorem 21.15:
Let $\mathbb {F}$ be a field. The closed sets of the Zariski topology on $\mathbb {F} ^{n}$ are exactly the algebraic sets.
Proof:
Unfortunately, for a set $T\subseteq \mathbb {F} [x_{1},\ldots ,x_{n}]$, the notation $V(T)$ is now ambiguous; it could refer to the algebraic set associated to $T$, or to the set of prime ideals $p$ of $\mathbb {F} [x_{1},\ldots ,x_{n}]$ satisfying $T\subseteq p$. Hence, we shall write the latter as ${\tilde {V}}(T)$ for the remainder of this wikibook.
Let $A\subseteq \mathbb {F} ^{n}$ be closed w.r.t. the Zariski topology; that is, $A=\Phi ^{-1}({\tilde {V}}(T)\cap {\mathcal {M}}_{\mathbb {F} })$, where $\Phi$ is the function from lemma 21.13 and $T\subseteq R:=\mathbb {F} [x_{1},\ldots ,x_{n}]$. We claim that $A=V(T)$. Indeed, for $\alpha \in \mathbb {F} ^{n}$,
    ${\begin{aligned}\alpha \in V(T)&\Leftrightarrow \forall f\in T:f(\alpha )=0\\&\Leftrightarrow \forall f\in T:\left((x_{1}-\alpha _{1})|f\vee \cdots \vee (x_{1}-\alpha _{1})|f\right)\\&\Leftrightarrow \forall f\in T:f\in \langle x_{1}-\alpha _{1},\ldots ,x_{n}-\alpha _{n}\rangle \\&\Leftrightarrow T\subseteq \Phi (\alpha )\\&\Leftrightarrow \Phi (\alpha )\in {\tilde {V}}(T)\\&\Leftrightarrow \alpha \in \Phi ^{-1}({\tilde {V}}(T)\cap {\mathcal {M}}_{\mathbb {F} })\end{aligned}}$.
Let now $V(S)$ be an algebraic set. We claim $V(S)=\Phi ^{-1}({\tilde {V}}(S)\cap {\mathcal {M}}_{\mathbb {F} })$. Indeed, the above equivalences prove also this identity (with $S$ replacing $T$).$\Box$
In fact, we could have defined the Zariski topology in this way (that is, just defining the closed sets to be the algebraic sets), but then we would have hidden the connection to the Zariski topology we already knew.
We shall now go on to give the next important definition, which also shows why we dealt with irreducible spaces.
Definition 21.16:
Let $\mathbb {F}$ be a field and let $V(S)$ be an algebraic set. If $V(S)$ is irreducible w.r.t. the subspace topology induced by the Zariski topology, $V(S)$ is called an algebraic variety.
Often, we shall just write variety for algebraic variety.
We have an easy characterisation of algebraic varieties. But in order to prove it, we need a definition with theorem first.
Theorem and definition 21.17:
Let $V(S)$ be an algebraic set. We define
    $I(V(S)):=\{f\in \mathbb {F} [x_{1},\ldots ,x_{n}]|\forall x\in V(S):f(x)=0\}$
and call $I(V(S))$ the ideal associated to $V(S)$ or the ideal of vanishing of $V(S)$. We have
    $V(I(V(S)))=V(S)$
and any set $T$ such that $V(T)=V(S)$ is contained within $I(V(S))$.
Proof:
Let first $T$ be any set such that $V(T)=V(S)$. Then for all $f\in T$ and $x\in V(S)=V(T)$, $f(x)=0$ and hence $f\in I(V(S))$. Thus $T\subseteq I(V(S))$.
Therefore, $S\subseteq I(V(S))$, and hence $V(I(V(S)))\subseteq V(S)$ by lemma 21.9. On the other hand, if $x\in V(S)$, then $f(x)=0$ for all $f\in I(V(S))$ by definition. Hence $x\in V(I(V(S)))$. This proves $V(S)\subseteq V(I(V(S)))$.$\Box$
Theorem 21.18:
Let $\mathbb {F}$ be a field and let $V(S)$ be an algebraic set. Then $V(S)$ is an algebraic variety if and only if $V(S)=V(p)$ for a prime ideal $p\leq \mathbb {F} [x_{1},\ldots ,x_{n}]$.
Proof:
Let first $p\leq \mathbb {F} [x_{1},\ldots ,x_{n}]$ be a prime ideal. Assume that $V(p)=V(S)\cup V(T)$, where $V(S),V(T)$ are two proper closed subsets of $V(p)$ (according to lemma 21.10, all subsets of $V(p)$ closed w.r.t. the subspace topology of $V(p)$ have this form). Then there exist $x\in V(p)\setminus V(T)$ and $y\in V(p)\setminus V(S)$. Hence, there is $g\in T$ such that $g(x)\neq 0$ and $f\in S$ such that $f(y)\neq 0$. Furthermore, $f\cdot g\in p$ since for all $z\in V(S)\cup V(T)$ either $f(z)=0$ or $g(z)=0$, but neither $f\in p$ nor $g\in p$.
Let now $V(S)$ be an algebraic set, and assume that $I:=I(V(S))$ is not prime. Let $fg\in I$ such that neither $f\in I$ nor $g\in I$. Set $J_{f}:=I+\langle f\rangle$ and $J_{g}:=I+\langle g\rangle$. Then $J_{f}$ and $J_{g}$ are strictly larger than $I$. According to 21.17, $V(J_{f})\neq V(S)$ and $V(J_{g})\neq V(S)$, since otherwise $J_{f}\subseteq I$ or $J_{g}\subseteq I$ respectively. Hence, both $V(J_{f})$ and $V(J_{g})$ are proper subsets of $V(S)$. But if $x\in V(S)=V(I)$, then $fg(x)=f(x)g(x)=0$. Hence, either $f(x)=0$ or $g(x)=0$, and thus either $x\in J_{f}$ or $x\in J_{g}$. Thus, $V(S)$ is the union of two proper closed subsets,
    $V(S)=V(J_{g})\cup V(J_{f})$,
and is not irreducible. Hence, if irreducibility is present, then $I(V(S))$ is prime and from 21.17 $V(I(V(S)))=V(S)$.$\Box$
Theorem 21.19:
$\mathbb {F} ^{n}$, equipped with the Zariski topology, is a Noetherian space.
Proof:
Let $O_{1}\subseteq O_{2}\subseteq \cdots \subseteq O_{k}\subseteq \cdots$ be an ascending chain of open sets. Let $\Phi$ and ${\mathcal {M}}_{\mathbb {F} }$ be given as in lemma 21.13 and definition 21.14. Set $U_{j}=\Phi (O_{j})$ for all $j\in \mathbb {N}$. Then, since $\Phi$, being a function, preserves inclusion,
    $U_{1}\subseteq U_{2}\subseteq \cdots \subseteq U_{k}\subseteq \cdots$.
Since $\mathbb {F}$ is a Noetherian ring, so is $\mathbb {F} [x_{1},\ldots ,x_{n}]$ (by repeated application of Hilbert's basis theorem). Hence, the above ascending chain of the $U_{j}$ eventually stabilizes at some $N\in \mathbb {N}$. Since $\Phi$ is a bijection, $O_{j}=\Phi ^{-1}(\Phi (O_{j}))=\Phi ^{-1}(U_{j})$. Hence, the $O_{j}$ stabilize at $N$ as well.$\Box$
Corollary 21.20:
Every algebraic set $V(S)$ has a decomposition
    $V(S)=V(p_{1})\cup V(p_{2})\cup \cdots \cup V(p_{k})$
for certain prime ideals $p_{1},\ldots ,p_{n}\leq \mathbb {F} [x_{1},\ldots ,x_{n}]$ such that none of the $V(p_{j})$ is a proper subset of the other. This decomposition is unique up to order.
That is, we can decompose algebraic sets into algebraic varieties.
Proof:
Combine theorems 21.19, 21.7 and 21.18.$\Box$

### Exercises

* Exercise 21.2.1: Let $f,g\in \mathbb {F} [x_{1},\ldots ,x_{n}]$. Prove that $V(\{f\cdot g\})=V(\{f\})\cup V(\{g\})$.