Lemma:
Let $V, W$ be finite-dimensional real vector spaces of equal dimension and $T: V \to W$ be an isomorphism. If $\{v_1, v_2, \ldots, v_n\}$ is a basis for $V$ then $\{T(v_1), T(v_2), \ldots, T(v_n)\}$ is a basis for $W.$
Theorem:
Let $V, W$ be finite-dimensional real vector spaces. If $\dim(V) = \dim(W),$ then $V, W$ are isomorphic
Proof of the Theorem:
Let $\{v_1, v_2, \ldots, v_n\}$ be a basis for $V.$ By the lemma above we have $\{T(v_1), T(v_2), \ldots, T(v_n)\}$ is a basis for $W$.
Let $T: V \to W$ be a transformation as $T(k_1v_1 + k_2v_2 + \ldots + k_nv_n) = k_1T(v_1) + k_2T(v_2) + \ldots + k_nT(v_n)$.
Let $u \in V$ such that $T(u) = 0.$ Suppose $u = k_1v_1 + k_2v_2 + \ldots + k_nv_n.$ Then $$T(u) = T(k_1v_1 + k_2v_2 + \ldots + k_nv_n) = k_1T(v_1) + k_2T(v_2) + \ldots + k_nT(v_n) = 0$$ and so all $k_i = 0$ because $T(v_i)$ are basis vectors which means $u = 0$. This implies $\ker(T) = \{0\}.$
I am confused about the way the given lemma is used in the proof. The lemma says that $T$ must be an isomorphism. But isn't that what we are trying to prove?