I'm learning about Basis and Spans and now that's I've figured out what these are, I'm trying to understand the Replacement Theorem(also called the Exchange Theorem).
The definition goes like this:
Let $V$ be a vector space and let $B = \{v_{1}, v_{2}, ..., v_{n}\}$ be a basis for V with n elements. Choose and integer $m\leq n$ and let $S = \{w_1, w_2, ..., w_m\}$ be a finite set of linearly independent vectors. Then, there is a set $Z\subset B$ containing exactly $n-m$ elements such that $span({Z\cup S}) = V$
Now this is what I understand from the above definition. $V$ is a vector space and $B$ being the basis of $V$ is the set of linearly independent vectors such that for any vector, for example, $u_1 \in V$, we have: $u_1 = \sum u_1v_i$ where $i$ is the number of elements in $B$. If, now, I make a set $S$ with $n-m$ or $n=m$ elements then I'll have the remaining vectors $w_i$ in my set $Z$. These vectors are also linearly independent.
Finally, set $span(\{Z \cup S\}) = V$. Now that's my problem:
Why it is not $span(\{Z\cup S\}) = B$ since $S$ is a set of linearly independent vectors(which is a basis) and if I'm making a set $Z$ with $n-m$ elements(which is from $B$ as well) ?
It would really help if an example is given in the explanation, let's say we have a vector space $V = \{u_1, u_2, u_3, u_4\}$.
Thanks