Assume by way of contradiction that \(V\) is a vector space with bases \(S_0 = \{v_1,v_2,\dots,v_n\}\) and \(S'=\{u_1,u_2,\dots,u_m\}\) with \(n\lt m\text{.}\) Since \(u_1\in V\) and \(S_0\) is a basis for \(V\text{,}\) there are scalars \(c_i\) such that \(\displaystyle u_1 = \sum_{i=1}^n c_i
v_i\text{.}\) Since \(S'\) is linearly independent, \(u_1\neq
\vec{0}\) and at least one \(c_i\neq 0\text{.}\) Without loss of generality, assume that \(c_1\neq 0\text{.}\) Now let \(S_1 =
\{u_1,v_2,\dots,v_n\}\text{.}\) We claim that \(S_1\) is a basis for \(V\text{.}\) Notice that we can write
\begin{equation*}
v_1 = \frac{1}{c_1}u_1 + \sum_{i=2}^n
\frac{-c_i}{c_1}v_i.
\end{equation*}
Thus, \(v_1\in span(S_1)\) and so any vector in \(span(S_0)=V\) can be written to demonstrate that it is also in \(span(S_1)\text{.}\) To see that \(S_1\) is linearly independent, suppose that
\begin{equation*}
\vec{0} = d_1 u_1 + d_2v_2 + \cdots + d_nv_n
\end{equation*}
is a nontrivial linear combination of vectors in \(S_1\) that sums to the zero vector. Notice that if \(d_1=0\text{,}\) then we have a nontrivial linear combination of vectors from \(S_0\) that sums to the zero vector, which contradicts that \(S_0\) is linearly independent. Thus, \(d_1\neq 0\text{.}\) In this case, substitute \(u_1 = \sum_{i=1}^n c_i
v_i\) and combine like terms. Since \(c_1\neq 0\neq d_1\text{,}\) we now have a nontrivial linear combination of vectors from \(S_0\) that sums to \(\vec{0}\text{,}\) which contradicts that \(S_0\) is a basis for \(V\text{.}\) We will now show, as with using mathematical induction, that we can continue to move vectors from \(S'\) into our basis. To do so, we assume for some \(i\) such that \(1\leq i\lt n\) that \(S_i=\{u_1,u_2,\dots,u_i,v_{i+1},\dots,v_n\}\) is a basis for \(V\text{.}\) We will show that \(S_{i+1}=\{u_1,u_2,\dots,u_{i+1},v_{i+2},\dots,v_n\}\) is also a basis for \(V\text{.}\) We know that \(u_{i+1}\in
span(S_i)\text{,}\) so there are scalars \(f_i\) such that
\begin{equation}
u_{i+1}=f_1u_1+f_2u_2+\cdots+f_iu_i+f_{i+1}v_{i+1}+\cdots+f_nv_n\text{.}\tag{4.1}
\end{equation}
Notice that this requires some
\(f_j\) with
\(j\gt i\) be nonzero, as otherwise we would have written
\(u_{i+1}\) as a linear combination of elements of
\(S'\) (other than
\(u_{i+1}\)), which would mean that
\(S'\) is not linearly independent. Without loss of generality, assume that
\(f_{i+1}\neq 0\text{.}\) Notice that equation
(4.1) can be rearranged to show that
\(v_{i+1}\in span(S_{i+1})\) as we did with
\(v_1\) earlier, so
\(S_{i+1}\) spans
\(V\text{.}\) To prove that
\(S_{i+1}\) is linearly independent, suppose that
\begin{equation*}
\vec{0} = a_1u_1 + a_2u_2+\cdots +
a_{i+1}u_{i+1}+a_{i+2}v_{i+2}+\cdots a_nv_n
\end{equation*}
is a nontrivial linear combination that sums to the zero vector. Notice that \(a_{i+1}\neq 0\) or else we have demonstrated that \(S_i\) is linearly dependent. However, we now have
\begin{equation*}
u_{i+1} = \frac{-a_1}{a_{i+1}}u_1 +\cdots +
\frac{-a_i}{a_{i+1}}u_i + \frac{-a_{i+2}}{a_{i+1}}v_{i+2}+\cdots
+ \frac{-a_n}{a_{i+1}}v_n\text{.}
\end{equation*}
Notice that
\(v_{i+1}\) is not present in this sum, but otherwise this is a linear combination of elements of
\(S_i\text{.}\) Since
(4.1) has a nonzero coefficient on
\(v_{i+1}\text{,}\) this is a different linear combination summing to
\(u_{i+1}\text{.}\) Thus,
\(S_i\) is not linearly independent, which is a contradiction.