Let $X$ and $U$ be vector spaces over a field $F$, and let $T : X \to U$.
(a) If there exists an operator $S : U \to X$ such that $S(T(x)) =x$ for all $x \in X$, then $S$ is called a left inverse of $T$.
(b) If there exists an operator $S : U \to X$ such that $T(S(u)) =u$ for all $u \in U$, then $S$ is called a right inverse of $T$.
I'm trying to prove the following theorem.
Let $X$ and $U$ be vector spaces over a field $F$, and let $T: X\to U$ be linear.
(a) There exists a left inverse $S$ of $T$ iff $T$ is injective.
(b) There exists a right inverse $S$ of $T$ iff $T$ is surjective.
So far my study on linear algebra has been largely restricted to finite dimensional vector spaces but this problem, I think applies to general vector spaces. How can I solve this without resorting to basis?