[step:Verify naturality of the restricted isomorphism]
Let $V'$ be a finite-dimensional complex $\mathfrak g$-module, and let $W'$ be a complex $\mathfrak g$-module. Let
\begin{align*}
a:V'\to V
\end{align*}
and
\begin{align*}
b:W\to W'
\end{align*}
be $\mathfrak g$-module homomorphisms. The induced map on ordinary Hom spaces sends $\Phi\in\operatorname{Hom}_{\mathbb C}(V,W)$ to
\begin{align*}
b\circ \Phi\circ a\in \operatorname{Hom}_{\mathbb C}(V',W').
\end{align*}
The induced tensor map is
\begin{align*}
a^*\otimes b:V^*\otimes W\to (V')^*\otimes W',
\end{align*}
where $a^*:V^*\to (V')^*$ is the dual map $\lambda\mapsto \lambda\circ a$.
For a finite-dimensional complex [vector space](/page/Vector%20Space) $A$ and a complex vector space $B$, let
\begin{align*}
\Theta_{A,B}:A^*\otimes B\to \operatorname{Hom}_{\mathbb C}(A,B)
\end{align*}
denote the tensor-Hom map defined on pure tensors by
\begin{align*}
\Theta_{A,B}(\mu\otimes y)(a_0)=\mu(a_0)y
\end{align*}
for $\mu\in A^*$, $y\in B$, and $a_0\in A$.
For a pure tensor $\lambda\otimes w\in V^*\otimes W$ and $v'\in V'$, we have
\begin{align*}
\Theta_{V',W'}((a^*\otimes b)(\lambda\otimes w))(v')=\lambda(a(v'))b(w).
\end{align*}
The right-hand side is also
\begin{align*}
(b\circ \Theta_{V,W}(\lambda\otimes w)\circ a)(v').
\end{align*}
By linearity, the equality holds for every tensor in $V^*\otimes W$. Thus the tensor-Hom isomorphism is compatible with precomposition in $V$ and postcomposition in $W$.
It remains to check explicitly that the tensor map preserves invariants. Since $a:V'\to V$ is a $\mathfrak g$-module homomorphism, for every $x\in\mathfrak g$, $\lambda\in V^*$, and $v'\in V'$ we have
\begin{align*}
((x\cdot a^*\lambda)(v'))=-\lambda(a(x\cdot v'))=-\lambda(x\cdot a(v'))=(a^*(x\cdot\lambda))(v').
\end{align*}
Therefore $a^*:V^*\to (V')^*$ is a $\mathfrak g$-module homomorphism for the contragredient actions. Since $b:W\to W'$ is also a $\mathfrak g$-module homomorphism, the tensor product map $a^*\otimes b:V^*\otimes W\to (V')^*\otimes W'$ is a $\mathfrak g$-module homomorphism for the diagonal tensor product actions. Hence, if $t\in (V^*\otimes W)^{\mathfrak g}$, then for every $x\in\mathfrak g$,
\begin{align*}
x\cdot ((a^*\otimes b)(t))=(a^*\otimes b)(x\cdot t)=0,
\end{align*}
so $(a^*\otimes b)(t)\in ((V')^*\otimes W')^{\mathfrak g}$. Thus the compatibility above restricts to invariant tensors and $\mathfrak g$-module homomorphisms. Hence the isomorphism
\begin{align*}
\operatorname{Hom}_{\mathfrak g}(V,W)\cong (V^*\otimes W)^{\mathfrak g}
\end{align*}
is natural in $V$ contravariantly and in $W$ covariantly. This proves the theorem.
[/step]