From bases to projections

This foundation bridge supplies the finite-dimensional linear algebra used to begin the averaging proof of complete reducibility. It belongs to the programme’s existing linear-algebra foundation; it is not a replacement for that course.

The basis arguments below are adapted from Jim Hefferon’s Linear Algebra, at source revision df2262e089a02651c127f1dd12649c4622ee1383. The complete selected source statements and proofs, their source locators, and the author’s grant are supplied with this lesson. This adaptation retains Creative Commons Attribution–ShareAlike 2.5 terms; it is not CC0 and is not relicensed as GFDL. See the author’s grant, acknowledgements, exact selected source proofs, and reuse terms.

Adaptation, scope comparison, examples and solutions by OpenAI GPT-6 Astra in Codex, Ultra reasoning effort, October 2026. Self-checked by the AI writing this bridge; no human or independent AI review is claimed. The original source remains unchanged. This lesson corrects an already-recorded coefficient sign, makes the field condition explicit, and expands the finite termination and projection arguments. These are standard results, not claimed discoveries.

What to know first

We use field and vector-space axioms, finite sums, finite induction and elementary finite-set counting. A field has distinct elements 00 and 11; every nonzero scalar has an inverse. A vector space VV over a field kk is an abelian additive group with scalar multiplication satisfying the vector-space axioms.

For S⊆VS\subseteq V, its span consists of finite linear combinations of elements of SS; the empty combination is zero. The set is linearly independent when every relation involving finitely many distinct elements has all coefficients zero. A basis is a linearly independent spanning set. Throughout, VV has a finite basis. No topology, inner product, algebraic closure or characteristic-zero assumption is used.

Linear combinations of linear combinations remain linear combinations, by distributivity. Thus a span is a subspace. A subset of an independent set is independent, since a relation in the subset is also one in the larger set. Finally, coordinates in a basis are unique: subtracting two expressions gives a relation in the basis and therefore zero differences between all coefficients. We will use these elementary consequences explicitly.

Adding one independent vector

Lemma. If SS is independent and v∉Sv\notin S, then S∪{v}S\cup\{v\} is independent exactly when v∉span⁡(S)v\notin\operatorname{span}(S).

Proof. If v=∑i=1raisiv=\sum_{i=1}^r a_i s_i, combine repeated terms so the sis_i are distinct. The equation

∑i=1raisi−v=0 \sum_{i=1}^r a_i s_i-v=0

is a nontrivial relation on distinct elements of S∪{v}S\cup\{v\}: the coefficient of vv is −1≠0-1\ne0. Conversely, any nontrivial relation on that union must involve vv, because SS is independent. Write it as

∑i=1raisi+bv=0. \sum_{i=1}^r a_i s_i+bv=0.

If b=0b=0, independence of SS forces all other coefficients to vanish, a contradiction. Consequently b≠0b\ne0, and

v=−∑i=1rb−1aisi∈span⁡(S). v=-\sum_{i=1}^r b^{-1}a_i s_i\in\operatorname{span}(S).

This proves both implications. It also covers S=⌀S=\varnothing: the only dependent singleton is {0}\{0\}. ▫\square

The minus sign in the last display repairs the existing source finding B40-VS2-SOURCE-003. Omitting it did not change the source’s span-membership conclusion, but it made the displayed equality wrong outside characteristic two.

Exchanging a basis vector

Lemma. Let B=(b1,…,bn)B=(b_1,\ldots,b_n) be a basis, and write v=∑j=1ncjbjv=\sum_{j=1}^n c_jb_j. If ci≠0c_i\ne0, replacing bib_i by vv gives another basis.

Proof. Suppose

div+∑j≠idjbj=0. d_i v+\sum_{j\ne i}d_jb_j=0.

Substitution expresses zero in the original basis. Its bib_i-coefficient is dicid_ic_i, so di=0d_i=0. The other coefficients are then dj=0d_j=0. Thus the replacement family is independent. Moreover,

bi=ci−1v−∑j≠ici−1cjbj. b_i=c_i^{-1}v-\sum_{j\ne i}c_i^{-1}c_jb_j.

Every old basis vector therefore belongs to the span of the replacement family. That family spans VV, and hence is a basis. ▫\square

Why finite dimension bounds independence

Theorem. If VV has a basis with nn elements, every independent subset of VV has at most nn elements. Consequently all bases of VV have the same size.

Proof. If n=0n=0, then V={0}V=\{0\}, whose only independent subset is empty. Suppose n>0n>0 and, towards a contradiction, that an independent set contains distinct vectors s1,…,sn+1s_1,\ldots,s_{n+1}.

Start with the given basis B0B_0. Inductively suppose that BrB_r is a basis containing s1,…,srs_1,\ldots,s_r and n−rn-r of the original basis vectors, where 0≤r<n0\le r<n. Express sr+1s_{r+1} in BrB_r. Some coefficient of one of the remaining original vectors must be nonzero: otherwise sr+1s_{r+1} would be in the span of s1,…,srs_1,\ldots,s_r, contradicting independence. The exchange lemma replaces such an original vector by sr+1s_{r+1}. This constructs Br+1B_{r+1}.

After nn exchanges, (s1,…,sn)(s_1,\ldots,s_n) is a basis. It spans sn+1s_{n+1}, again contradicting independence. Thus there cannot be n+1n+1 distinct elements in an independent set. This proves the bound without presupposing that the set spans or is already finite.

If another basis has mm elements, the bound gives m≤nm\le n. Applying the same argument with that basis gives n≤mn\le m. Hence m=nm=n; their common value is dim⁡kV\dim_k V. ▫\square

This is the source’s exchange argument with its induction written directly for an arbitrary independent set. It avoids using the existence of a minimal-sized basis when proving the independent-set bound.

Extending a basis and choosing a complement

Theorem. Every independent subset of VV extends to a basis of VV. Every subspace U⊆VU\subseteq V has a finite basis, which extends to one of VV.

Proof. An independent set SS has at most n=dim⁡kVn=\dim_k V elements. If it does not span VV, choose a vector outside its span. The first lemma says that adjoining it preserves independence. Repeat whenever the span is still not VV. Each step increases the finite cardinality by one. The preceding theorem makes more than n−|S|n-|S| additions impossible, so the process must reach a basis.

For a subspace UU, start with the empty set and choose each new vector in UU outside the current span. These sets are independent in VV, so the same bound forces termination in a spanning independent set of UU. Extend this basis to one of VV by the first part. Only finitely many choices are needed. If U=0U=0, its basis is empty; if U=VU=V, there are no extra basis vectors. ▫\square

Corollary. Every subspace of VV is the image of a linear projection. More precisely, there are linear maps i:U→Vi:U\to V and p:V→Up:V\to U with ii the inclusion and pi=1Upi=1_U. The endomorphism p0=ipp_0=ip satisfies

p02=p0,im⁡p0=U,V=U⊕ker⁡p0. p_0^2=p_0,\qquad\operatorname{im}p_0=U, \qquad V=U\oplus\ker p_0.

Proof. Choose a basis (u1,…,ur)(u_1,\ldots,u_r) of UU and extend it to (u1,…,ur,w1,…,wn−r)(u_1,\ldots,u_r,w_1,\ldots,w_{n-r}) of VV. Unique coordinates define

v=∑i=1raiui+∑j=1n−rbjwj,p(v)=∑i=1raiui. \begin{aligned} v&=\sum_{i=1}^r a_i u_i+\sum_{j=1}^{n-r}b_jw_j,\\ p(v)&=\sum_{i=1}^r a_i u_i. \end{aligned}

Coordinates of a sum are the sums of the coordinates, and coordinates of a scalar multiple are the scalar multiples of the coordinates, again by uniqueness. Therefore pp is linear. It fixes UU, which gives pi=1Upi=1_U, p02=p0p_0^2=p_0, and im⁡p0=U\operatorname{im}p_0=U. Its kernel is the span of the wjw_j. For every vv,

v=p0v+(v−p0v),p0(v−p0v)=0. v=p_0v+(v-p_0v),\qquad p_0(v-p_0v)=0.

If u∈U∩ker⁡p0u\in U\cap\ker p_0, then u=p0u=0u=p_0u=0. This proves the direct sum. ▫\square

There is generally no distinguished choice of p0p_0. In the displayed adapted basis its matrix is diag⁡(Ir,0)\operatorname{diag}(I_r,0). A different complement can give a different projection onto the same subspace.

The exact step used in representation theory

In Representations and complete reducibility, Theorem 2.3 begins by extending a basis of an invariant subspace UU, then defining a projection p0p_0. The preceding corollary supplies exactly this construction, over every field in that theorem, including finite fields. Exercise 5 applies the same construction to its isotypic subspace SS. No inner product or orthogonal projection is needed for either initial construction.

The representation-theoretic averaging has an additional condition: |G||G| must be invertible in kk. If UU is invariant, put

P=1|G|∑g∈Gρ(g)p0ρ(g−1). P=\frac{1}{|G|}\sum_{g\in G}\rho(g)p_0\rho(g^{-1}).

Here each summand maps into UU and acts as the identity on UU. Hence P(V)⊆UP(V)\subseteq U and P|U=1UP|_U=1_U. Conjugation by ρ(h)\rho(h) permutes the summands by g↦hgg\mapsto hg, so PP commutes with the group action. Also P2=PP^2=P, because PP fixes its image. The decomposition v=Pv+(v−Pv)v=Pv+(v-Pv) gives the invariant complement ker⁡P\ker P. The requirement that |G||G| be invertible belongs here, not to basis extension.

This comparison applies to the exact lesson source SHA-256 659942BDF47420E6665D59C4E80CF973867730D3B231D7E9C80AB8177BD83712, at Theorem 2.3 and Exercise 5. It checks only the finite-basis/projection prerequisite and its use. It does not certify the rest of the lesson, its other prerequisites, the isotypic identification, or the complete course. The original consumer lesson and its review state are unchanged.

Worked example and exercises

Example. In k2k^2, take U=k(1,0)U=k(1,0). For every a∈ka\in k, the vector (a,1)(a,1) is a complement basis vector, and the resulting projection is

pa(x,y)=(x−ay,0),[pa]=(1−a00). p_a(x,y)=(x-ay,0),\qquad [p_a]=\begin{pmatrix}1&-a\\0&0\end{pmatrix}.

Its kernel is k(a,1)k(a,1). Direct substitution gives pa2=pap_a^2=p_a. These distinct projections show why choosing a subspace does not canonically choose a complement.

Exercise 1. Over a field, extend u=(1,1,0)u=(1,1,0), v=(0,1,1)v=(0,1,1) to a basis of k3k^3, and write a projection onto their span.

Solution. A relation au+bv=0au+bv=0 gives a=0a=0 in the first coordinate and b=0b=0 in the third. The vector e2=(0,1,0)e_2=(0,1,0) is outside their span: the same two coordinates would force both coefficients to vanish. Thus (u,v,e2)(u,v,e_2) is a basis. In fact

(x,y,z)=xu+zv+(y−x−z)e2,p0(x,y,z)=(x,x+z,z). \begin{aligned} (x,y,z)&=xu+zv+(y-x-z)e_2,\\ p_0(x,y,z)&=(x,x+z,z). \end{aligned}

This formula is valid in every characteristic. It fixes u,vu,v, kills e2e_2, and satisfies p02=p0p_0^2=p_0.

Exercise 2. Why does basis extension not by itself prove that every invariant subspace has an invariant complement in characteristic pp?

Solution. Over a field of characteristic p>0p>0, let a generator of CpC_p act on k2k^2 by

A=(1101)=I+N. A=\begin{pmatrix}1&1\\0&1\end{pmatrix}=I+N.

Since N2=0N^2=0, induction gives (I+N)m=I+mN(I+N)^m=I+mN, and thus Ap=IA^p=I. The line U=ke1U=ke_1 is invariant. Any complementary line has a generator w=(a,1)w=(a,1). If it were invariant, Aw=(a+1,1)Aw=(a+1,1) would equal cwcw. The second coordinate forces c=1c=1, while the first then forces 1=01=0, impossible. Ordinary linear complements exist; invariant ones do not in this example. Averaging cannot repair them because the scalar |Cp|=p|C_p|=p is zero in kk.

Exercise 3. Which part of the proof prevents it from asserting basis extension for arbitrary infinite-dimensional spaces?

Solution. The finite bound on the size of an independent set makes the process of adding vectors terminate. With no finite spanning basis, this argument supplies no such bound and therefore no termination claim. An infinite-dimensional theorem needs a different argument and any additional set-theoretic assumptions must be stated. Nothing in this bridge claims that theorem.

Sources and changes

Hefferon, Linear Algebra, vector-spaces chapter: the add-vector lemma in src/vs/vs2.tex, lines 492–525; exchange, equal basis size, independent-set bound and basis extension in src/vs/vs3.tex, lines 1657–1779, 1818–1831 and 1857–1874. The programme’s existing foundation reader preserves the source edition and its editorial notes. The author’s site supplies the broader course.

The adaptation above keeps the same algebraic argument, spells out the zero-dimensional case and finite termination, proves the subspace and projection consequences, and gives examples with solutions. The requirement 0≠10\ne1 also respects the already-recorded source-context finding B40-FIELDS-SOURCE-001. It is not a newly discovered defect. The field-general formulation is justified by the displayed algebraic proof, not merely by changing the word “real” in a source statement.

All adapted teaching and added exposition on this page use CC BY-SA 2.5. The separately linked representation-theory lesson retains its own source, credit and licence. No change to it or to the canonical Stacks text is made here.