As mentioned before, I am self-studying some commutative algebra out of "A Course in Commutative Algebra" by Kemper. In the text, Kemper has the following problem:
Let $X$ and $Y$ be affine varieties over a field $ K$, and let $f: X → Y$ be a morphism with induced homomorphism $ϕ: K[Y ] → K[X].$ We say that $f$ is dominant if the image $f(X)$ is dense in $Y$ , i.e., $\overline{f(X)} = Y$ .
Show that $f$ is dominant if and only if ϕ is injective.
He provides a proof of the forward implication and the reverse implication. I have come terms in understanding the forwards implication, but I have two questions regarding the reverse implication. Here is the proof given:
Assume that $ϕ$ is injective. Write $K[X] = K[x_1, . . . , x_m]/I, K[Y ] = K[y_1, . . . , y_n]/J,$ and let $f$ be given by $f_1, . . . , f_n ∈ K[x_1, . . . , x_m].$ Take $g ∈ \mathcal{I}_{K[y_1,...,y_n]} (f(X)).$ Then the polynomial $g(f_1, . . . , f_n) ∈ K[x_1, . . . , x_m]$ vanishes on $X$, so $ϕ(g + J) = 0.$ This implies $g ∈ J.$ We have shown that $\mathcal{I}_{K[y_1,...,y_n]} (f(X)) ⊆ J$, so
$$Y ⊆ \mathcal{V}_{K^n} (J) ⊆ \mathcal{V}_{K^n} (\mathcal{I}_{K[y_1,...,y_n]}(f(X))) = \overline{f(X)} ⊆ Y$$$ \square$
Now form here, I can see why $f(X)$ is dominant.
Before I ask my questions let me clarify some of the author's notations:
$\mathcal{I}_{K[y_1,...,y_n]} (f(X))$ is the vanishing ideal of $f(X)$.
$\mathcal{K^n}(J)$ is the affine variety given by $J$.
For the most part, I am okay with the proof, my questions are as follows:
What justifies the containment $Y ⊆ \mathcal{V}_{K^n} (J)$?
What justifies the equality $\mathcal{V}_{K^n} (\mathcal{I}_{K[y_1,...,y_n]}(f(X))) = \overline{f(X)}$?
Any help would be appreciated.