We have the following statement (Matrix analysis and applied linear algebra, Mayer)
The range of every linear function $f:\mathbb{R}^n\rightarrow\mathbb{R}^m$ is a subspace of $\mathbb{R}^m$, and every subspace of $\mathbb{R}^m$ is the range of some linear function.
I understand the proof of the first part, but I need to understand the argument in the second part of statement.
He starts as follows.
Let $V$ be a subspace of $\mathbb{R}^m$. Suppose that $\{v_1, v_2, \dots, v_n\}$ is spanning set for $V$ so that $$V = \{\alpha_1v_1+ \dots + \alpha_nv_n \mid \alpha_i \in \mathbb{R}\}.$$
I know that every vector space has spanning set. Clearly, if the spanning set of $V$ has $k$ vectors, then there is also a spanning set of $V$ which has $k+1$ vector.
But I do not know why he is sure that the spanning set of $V$ has $n$ vectors. What am I missing? Thank you.