Codimension of a closed irreducible subset and generic points
Lemma 1 Let $Z$ be an irreducible subset of $X$. Then the closure $\mathrm{cl}_X(Z)$ in $X$, is an irreducible subset of $X$. Proof) Suppose for contradiction that $\mathrm{cl}_X(Z) = Z_1 \cup Z_2$ where $Z_i$ are closed proper subsets of $\mathrm{cl}_X(Z)$. Then $Z = (Z_1 \cap Z) \cup (Z_2 \cap Z)$ where each $Z_i \cap Z$ is a closed subset of $X$. If either $Z_i \cap Z = Z$, then $Z \subset Z_i \Rightarrow \mathrm{cl}_X(Z) \subset Z_i \subset \mathrm{cl}_X(Z)$ which contradicts our assumption that $Z_i$ are proper subsets of $\mathrm{cl}_X(Z)$. This shows that $Z_i \cap Z$ are proper subset of $Z$. Lemma 2 Let $Y \subset X$ be a subspace and $Z \subset Y$. Then $\mathrm{cl}_Y(Z) = \mathrm{cl}_X(Z) \cap Y$. Proof) Since $Z \subset \mathrm{cl}_X(Z) \cap Y$, it follows that $\mathrm{cl}_Y(Z) \subset \mathrm{cl}_X(Z) \cap Y$ as $\mathrm{cl}_X(Z) \cap Y$ is closed in $Y$. Now let $\mathrm{cl}_Y(Z) = W \cap Y$ where $W$ is a closed subset of $X$. Then $Z \subset \ma...