Proof (dimension of subspace)

If $U = \set{\v 0}$, then we are done.

Step 1. Let $u_1 \in U\setminus \set{\v 0}$. Then $\set{u_1}$ is linearly independent.

Suppose after step $k$, we have constructed a linearly independent set $\set{u_1, \ldots, u_k} \subseteq U$ with size $k$. If it spans $U$, then $\dim(U) = k \leq \dim(V)$ since a linearly independent set in $V$ has a size of at most $\dim(V)$. Otherwise:

Step $k+1$. Let $u_{k+1} \in U\setminus \langle u_1, \ldots, u_k\rangle$. Suppose for some $\lambda_1, \ldots, \lambda_{k+1}\in \mathbb{F}$, $$ \begin{align*} \sum_{i=1}^{k+1} \lambda_i u_i = \v 0. \end{align*} $$ If $\lambda_{k+1}\neq0$, then $$ \begin{align*} u_{k+1} = -\frac{1}{\lambda_{k+1}}\sum_{i=1}^{k} \lambda_i u_i \in \langle u_1, \ldots, u_k\rangle \end{align*} $$ which is a contradiction. So $\lambda_{k+1} = 0$. Then since $\set{u_1, \ldots, u_k}$ are linearly independent, $\lambda_1 = \lambda_2 = \ldots = \lambda_{k} = 0$. Hence $\set{u_1, \ldots, u_k, u_{k+1}}$ is linearly independent.

This terminates in at most $\dim(V)$ steps, since after step $\dim(V)$, $\set{u_1, \ldots, u_{\dim(V)}}\subseteq U\subseteq V$ is a linearly independent set of size $\dim(V)$, so it is a basis of $V$. It spans $V$ and therefore $U$.

If $U=V$, then trivially $\dim(U) = \dim(V)$.

If $\dim(U) = \dim(V)$, then let $B\subseteq U$ be a basis of $U$. $B$ is linearly independent and $|B| = \dim(U) = \dim(V)$, so $B$ is also a basis of $V$. Therefore $V = \langle B\rangle = U$.