TheoremComplete

Replacement Theorem (Steinitz Exchange Lemma)

The Replacement Theorem is the fundamental result that makes the concept of dimension well-defined. It shows that linearly independent sets cannot be larger than spanning sets.


Statement

Theorem1.8Replacement Theorem

Let VV be a vector space spanned by a set GG with G=n|G| = n. If L={v1,v2,,vm}L = \{v_1, v_2, \ldots, v_m\} is a linearly independent subset of VV, then mnm \leq n, and there exists a subset HGH \subseteq G with H=nm|H| = n - m such that

span(LH)=V.\text{span}(L \cup H) = V.

In other words, we can "replace" mm elements of the spanning set GG by the independent set LL and still span VV.

RemarkKey consequences

The Replacement Theorem immediately implies:

  1. Dimension is well-defined: Any two bases of VV have the same number of elements. (If β1\beta_1 and β2\beta_2 are bases with β1=m|\beta_1| = m and β2=n|\beta_2| = n, then mnm \leq n (apply the theorem with L=β1L = \beta_1, G=β2G = \beta_2) and nmn \leq m (apply with roles reversed), so m=nm = n.)

  2. Independent sets are small: Any linearly independent set has at most dimV\dim V elements.

  3. Spanning sets are large: Any spanning set has at least dimV\dim V elements.

  4. Basis extension: Every linearly independent set can be extended to a basis.


Examples

ExampleReplacement in R^3

Let G={e1,e2,e3}G = \{e_1, e_2, e_3\} (standard basis) and L={(1,1,0)}L = \{(1, 1, 0)\}. Then m=1m = 1, n=3n = 3, and we can replace one element of GG. For instance:

span{(1,1,0),e2,e3}=R3\text{span}\{(1, 1, 0), e_2, e_3\} = \mathbb{R}^3

since (1,1,0),e2,e3(1, 1, 0), e_2, e_3 are linearly independent. We replaced e1e_1 (we could also have replaced e2e_2, but not e3e_3 since (1,1,0)(1,1,0) has 00 in the third component and we would lose coverage of that direction).

ExampleReplacement in R^2

G={(1,0),(0,1)}G = \{(1, 0), (0, 1)\} spans R2\mathbb{R}^2 and L={(1,1),(1,1)}L = \{(1, 1), (1, -1)\} is linearly independent with L=2=G|L| = 2 = |G|. The theorem says mnm \leq n (222 \leq 2) and we can replace all of GG by LL:

span{(1,1),(1,1)}=R2.\text{span}\{(1, 1), (1, -1)\} = \mathbb{R}^2.

The set HH is empty.

ExampleReplacement in P_2(R)

G={1,x,x2}G = \{1, x, x^2\} spans P2(R)P_2(\mathbb{R}) with G=3|G| = 3. The set L={1+x,1x}L = \{1 + x, 1 - x\} is linearly independent (L=2|L| = 2). The theorem guarantees we can keep one element of GG:

span{1+x,1x,x2}=P2(R).\text{span}\{1 + x, 1 - x, x^2\} = P_2(\mathbb{R}).

Indeed: 1=12(1+x)+12(1x)1 = \tfrac{1}{2}(1+x) + \tfrac{1}{2}(1-x) and x=12(1+x)12(1x)x = \tfrac{1}{2}(1+x) - \tfrac{1}{2}(1-x).

ExampleToo many independent vectors

In R3\mathbb{R}^3, we cannot have 4 linearly independent vectors. If {v1,v2,v3,v4}\{v_1, v_2, v_3, v_4\} were independent and G={e1,e2,e3}G = \{e_1, e_2, e_3\}, the theorem gives 434 \leq 3, a contradiction.

ExampleWhy spanning is needed

The theorem requires GG to span VV. Consider V=R3V = \mathbb{R}^3, G={(1,0,0),(0,1,0)}G = \{(1, 0, 0), (0, 1, 0)\} (not spanning), and L={(0,0,1)}L = \{(0, 0, 1)\}. Here LL is independent and L=12=G|L| = 1 \leq 2 = |G|, but we cannot replace an element of GG and still span VV (since GG did not span VV to begin with).

ExampleHistorical note

The theorem is also known as the Steinitz Exchange Lemma, after Ernst Steinitz who proved it in 1913. The "exchange" viewpoint: if vv is a vector outside span(S)\text{span}(S), we can add vv to SS and remove some element of SS while preserving the span.

ExampleNon-uniqueness of H

The subset HH in the theorem is generally not unique. In R3\mathbb{R}^3 with G={e1,e2,e3}G = \{e_1, e_2, e_3\} and L={(1,1,1)}L = \{(1, 1, 1)\}, we can take H={e2,e3}H = \{e_2, e_3\} or H={e1,e3}H = \{e_1, e_3\} or H={e1,e2}H = \{e_1, e_2\}. All three choices work.

ExampleConstructive replacement

In practice, the replacement is done one vector at a time. Given G={g1,g2,g3}G = \{g_1, g_2, g_3\} spanning R3\mathbb{R}^3 and v1=2g1+3g2+g3v_1 = 2g_1 + 3g_2 + g_3:

Since the coefficient of g1g_1 is nonzero, we can solve for g1g_1: g1=12(v13g2g3)g_1 = \tfrac{1}{2}(v_1 - 3g_2 - g_3). So span{v1,g2,g3}=span{g1,g2,g3}\text{span}\{v_1, g_2, g_3\} = \text{span}\{g_1, g_2, g_3\}.

ExampleMaximal independent sets are bases

A linearly independent set LL in a finite-dimensional space VV is a basis if and only if L=dimV|L| = \dim V. This follows from the Replacement Theorem: if L=dimV=n|L| = \dim V = n and GG is any basis, then H=H = \varnothing, so span(L)=V\text{span}(L) = V.

ExampleMinimal spanning sets are bases

A spanning set GG for VV is a basis if and only if G=dimV|G| = \dim V. If G=n=dimV|G| = n = \dim V and GG were dependent, removing a vector gives a spanning set of size n1n-1. But any basis has nn elements, contradicting that it can be extended from a subset of this smaller spanning set.

ExampleDimensions of subspaces of R^4

By the Replacement Theorem, the subspaces of R4\mathbb{R}^4 have dimensions 0,1,2,30, 1, 2, 3, or 44:

  • dim=0\dim = 0: only {0}\{0\}
  • dim=1\dim = 1: lines through the origin
  • dim=2\dim = 2: planes through the origin
  • dim=3\dim = 3: hyperplanes {xax=0}\{x \mid a \cdot x = 0\}
  • dim=4\dim = 4: R4\mathbb{R}^4 itself
ExampleInfinite-dimensional remark

In infinite-dimensional spaces, the Replacement Theorem still holds for finite independent sets, but the full theory of dimension requires more care (Zorn's lemma for the existence of bases).


Proof

See the detailed proof.

RemarkLooking ahead

The Replacement Theorem is the key tool for proving the Dimension Theorem and the Rank-Nullity Theorem.