[step:Define the candidate inverse $\Psi : \mathrm{Hom}_{k\text{-alg}}(\mathcal{O}_W, \mathcal{O}_V) \to \mathrm{Mor}(V, W)$]Given a $k$-algebra homomorphism $\psi : \mathcal{O}_W \to \mathcal{O}_V$, define a candidate map $\Phi_\psi : V \to \mathbb{A}^m_k$ by
\begin{align*}
\Phi_\psi : V &\to \mathbb{A}^m_k \\
p &\mapsto \big(\psi(\bar{Y}_1)(p), \ldots, \psi(\bar{Y}_m)(p)\big).
\end{align*}
Each component $\psi(\bar{Y}_j) \in \mathcal{O}_V$ is a polynomial function on $V$, so $\Phi_\psi$ is given by polynomial functions in each coordinate. We must check that $\Phi_\psi(p) \in W$ for every $p \in V$, i.e. that the image lies in $W$.
[claim]
For every $g \in I(W)$ and every $p \in V$, $g(\Phi_\psi(p)) = 0$
[/claim]
[proof]
Pick any $g \in I(W)$. Then by definition of $I(W)$, $\bar g = 0$ in $\mathcal{O}_W$. Since $\psi : \mathcal{O}_W \to \mathcal{O}_V$ is a ring homomorphism, $\psi(\bar g) = \psi(0) = 0$ in $\mathcal{O}_V$.
Now we compute $\psi(\bar g)$ in terms of $g$. Because $\psi$ is a $k$-algebra homomorphism, it commutes with polynomial expressions: writing $g = g(Y_1, \ldots, Y_m) \in k[Y_1, \ldots, Y_m]$ (a polynomial in the coordinate variables), we have $\bar g = g(\bar{Y}_1, \ldots, \bar{Y}_m)$ in $\mathcal{O}_W$, and applying $\psi$:
\begin{align*}
\psi(\bar g) = \psi\big(g(\bar{Y}_1, \ldots, \bar{Y}_m)\big) = g\big(\psi(\bar{Y}_1), \ldots, \psi(\bar{Y}_m)\big).
\end{align*}
The first equality is the polynomial expression for $\bar g$; the second uses that $\psi$ preserves $k$-linear combinations and products and so commutes with evaluation of any polynomial.
Therefore $g(\psi(\bar{Y}_1), \ldots, \psi(\bar{Y}_m)) = 0$ as an element of $\mathcal{O}_V$, i.e. as a function on $V$. Evaluating at $p \in V$,
\begin{align*}
g\big(\psi(\bar{Y}_1)(p), \ldots, \psi(\bar{Y}_m)(p)\big) = 0.
\end{align*}
The left-hand side is precisely $g(\Phi_\psi(p))$. So $g(\Phi_\psi(p)) = 0$, as required.
[/proof]
The claim shows that for every $p \in V$, $\Phi_\psi(p)$ is killed by every element of $I(W)$, so $\Phi_\psi(p) \in V(I(W))$. By the [Hilbert Nullstellensatz](/theorems/2124) applied to varieties, $V(I(W)) = W$ (the closure of $W$ is $W$ itself, as $W$ is closed). Hence $\Phi_\psi(p) \in W$, so $\Phi_\psi$ is a map $V \to W$ given coordinate-wise by polynomials, i.e. a morphism. Set $\Psi(\psi) := \Phi_\psi$.[/step]