[step:Express each affine algebraic set by finitely many polynomial equations]
Let $S \subset K[x_1,\dots,x_n]$ be a set of polynomials, and define its affine algebraic set
\begin{align*}
V_K(S) := \{a \in K^n : f(a)=0 \text{ for every } f \in S\}.
\end{align*}
Let $I := (S) \subset K[x_1,\dots,x_n]$ be the ideal generated by $S$. By the [Hilbert Basis Theorem](/theorems/860) (citing a result not yet in the wiki: Hilbert Basis Theorem), the ideal $I$ is finitely generated. Choose polynomials $f_1,\dots,f_r \in K[x_1,\dots,x_n]$ such that
\begin{align*}
I = (f_1,\dots,f_r).
\end{align*}
We claim that
\begin{align*}
V_K(S)=V_K(f_1,\dots,f_r).
\end{align*}
If $a \in V_K(S)$ and $g \in I$, then $g$ is a finite $K[x_1,\dots,x_n]$-linear combination of elements of $S$, so evaluating at $a$ gives $g(a)=0$. In particular $f_i(a)=0$ for every $i \in \{1,\dots,r\}$, hence $a \in V_K(f_1,\dots,f_r)$. Conversely, if $a \in V_K(f_1,\dots,f_r)$ and $h \in S$, then $h \in I=(f_1,\dots,f_r)$, so
\begin{align*}
h = \sum_{i=1}^r q_i f_i
\end{align*}
for some $q_1,\dots,q_r \in K[x_1,\dots,x_n]$. Evaluating at $a$ gives
\begin{align*}
h(a)=\sum_{i=1}^r q_i(a) f_i(a)=0,
\end{align*}
so $a \in V_K(S)$. Therefore the two algebraic sets are equal.
[/step]