01.01.04 · foundations / linear-algebra

Subspace, basis, dimension

shipped3 tiersLean: partial

Anchor (Master): Halmos — Finite-Dimensional Vector Spaces §I.5–I.8; Hoffman-Kunze §2; Lang Algebra Ch. III §5

Intuition [Beginner]

A subspace is a piece of a vector space that is itself closed under the same operations. Pick any two arrows that live inside it and add them: the sum stays inside. Stretch one arrow by any number: the result stays inside. The piece carries its own self-contained algebra.

In the everyday picture of three-dimensional space, the subspaces are the origin alone, every line through the origin, every plane through the origin, and the whole space. A line that misses the origin is not a subspace because adding two of its arrows lands somewhere off the line.

A basis is a smallest list of arrows that can build every other arrow by combining and scaling. Dimension counts how many arrows the basis needs.

Visual [Beginner]

The blue parallelogram on the left is a plane through the origin sitting inside three-dimensional space. The red and blue arrows span that plane: every point in it is a combination of the two. The right panel shows three arrows that together span the whole surrounding space.

A tilted plane through the origin with two basis arrows inside it; on the right, three orthogonal basis arrows for the surrounding three-dimensional space.

The plane is a 2-dimensional subspace inside the 3-dimensional space. Two arrows are enough to reach every point of the plane. Three arrows are needed to reach every point of the whole space.

Worked example [Beginner]

Work in the coordinate plane. Take the two arrows and .

Combining them with coefficients and produces

Combining them with coefficients and produces

Every point in the plane is reached as . The two arrows reach every point and neither one is a multiple of the other. The list is a basis of the coordinate plane, and the dimension of the plane is .

What this tells us: a basis is a minimum-size kit that builds every other arrow.

Check your understanding [Beginner]

Formal definition [Intermediate+]

Let be a vector space over a field .

A subspace of is a subset that is non-empty, closed under addition, and closed under scalar multiplication. Equivalently, is non-empty and contains whenever and . A subspace inherits the vector-space structure of [quantum-well Proof that the sum of subspaces is also a subspace.md].

A finite list of vectors in is linearly independent when

with . The list spans , written , when every vector in is a linear combination of the listed vectors.

A basis of is a list of vectors that is both linearly independent and spanning. Equivalent phrasings: a basis is a maximal linearly independent list, or a minimal spanning list. The vector space is finite-dimensional when it has a finite basis.

The dimension of a finite-dimensional vector space, written , is the number of vectors in any basis. Well-definedness — that every basis has the same number of elements — is the content of the key theorem below [textbooks-extra Calculus Vol.2 - Multi-Variable Calculus and Linear Algebra with Applications (Tom Apostol).pdf].

Examples. The coordinate space has dimension with the standard basis where has a in position and zeroes elsewhere. The space of polynomials of degree at most has dimension with basis . The zero space has dimension with the empty basis.

Non-examples. The set is closed under addition and under non-negative scalar multiplication but not under multiplication by , so it fails to be a subspace. The set misses the origin and fails closure under addition. The list in spans but is not linearly independent because , so it is not a basis.

Key theorem with proof [Intermediate+]

Theorem (Steinitz replacement). Let be a vector space over . Suppose spans and is linearly independent. Then , and there is a relabelling of the so that also spans [Steinitz, E. — Bedingt konvergente Reihen und konvexe Systeme].

Proof. Argue by induction on .

Base case . Since is linearly independent, . The spanning hypothesis writes for scalars , and at least one is non-zero because . Relabel so that . Solving for gives

Every linear combination of is therefore also a linear combination of . Hence spans , and holds because contains the non-zero vector , so .

Inductive step. Assume the result for . Apply it to the spanning set and the linearly independent set . The conclusion gives and a relabelling so that spans .

Express in this spanning set:

with . At least one is non-zero. Otherwise , which rearranges to

The coefficient on is non-zero, contradicting the linear independence of .

Therefore some . The list is non-empty, so . Relabel so that . Solving for gives

Every linear combination of is therefore also a linear combination of . Hence spans . The induction is complete.

Corollary (well-definedness of dimension). Any two bases of a finite-dimensional vector space have the same number of elements.

Proof. Let and be bases. Apply the replacement theorem with as the spanning set and as the linearly independent set: . Apply it again with the roles reversed: . Hence .

Bridge. The replacement theorem builds toward rank-nullity, where dimension counts solutions and image vectors against each other inside a single linear map. The dimension function appears again in tensor algebra, where packages the multilinear structure into a single integer. The same dimension count organises differential forms, where the rank of records how many independent -fold wedge products fit inside an -dimensional space. The same invariant feeds vector-bundle theory, where the rank of a bundle is the dimension of every fibre. Putting these together, dimension is the foundational invariant of finite-dimensional linear algebra: it classifies finite-dimensional vector spaces over a fixed field up to isomorphism, and it is the integer the rest of the strand reads off whenever a multilinear, exterior, or fibrewise construction is performed.

Exercises [Intermediate+]

Lean formalization [Intermediate+]

Mathlib models a subspace as Submodule K V, a basis as Basis ι K V, and the dimension of a finite-dimensional space as Module.finrank K V. The companion file Codex.Foundations.LinearAlgebra.Basis records the statements used above and packages the cardinality coincidence of any two finite bases.

[object Promise]

This unit is marked lean_status: partial because Mathlib provides every named ingredient — Submodule, Basis, Module.Free.rank, FiniteDimensional, mk_eq_mk_of_basis — but does not package a single self-contained Steinitz-replacement theorem proof in the modern Mathlib idiom; the corresponding statement in the companion module is left as a sorry-gated theorem awaiting the Mathlib-style derivation.

Advanced results [Master]

Subspace lattice. The subspaces of form a lattice under inclusion, with meet and join . The dimension formula

is the modular identity that characterises this lattice [Hoffman-Kunze — Linear Algebra]. The lattice is modular but generally not distributive: in , three distinct lines through the origin produce a sublattice on which the distributive law fails.

Quotient and direct sum. For a subspace , the quotient space has dimension . A choice of complement realises the internal direct-sum decomposition and identifies with . The dimension count holds by concatenating bases.

Infinite-dimensional case. Every vector space has a basis (a Hamel basis), assuming the axiom of choice; existence is proved by Zorn's lemma applied to the partially ordered set of linearly independent subsets [quantum-well Finite dimensional vector spaces.md]. Any two Hamel bases of have the same cardinality, and that cardinal is . In an infinite-dimensional Banach space, a Hamel basis is uncountable, and the more useful objects are Schauder bases (allowing convergent infinite sums) or, in Hilbert spaces, orthonormal bases. These are categorically different objects: a Schauder basis depends on the topology and on a choice of summation order, while a Hamel basis is purely algebraic.

Dimension as a categorical invariant. The category of finite-dimensional vector spaces over is equivalent to the skeleton consisting of objects for , with morphisms given by matrices. Under this equivalence, isomorphism class corresponds to the natural number , so of the underlying groupoid is . The Grothendieck group of the symmetric monoidal category is , generated by the class , and the dimension homomorphism is an isomorphism.

Module-theoretic generalisation. Over a principal ideal domain, a finitely generated free module has a well-defined rank that plays the role of dimension; the structure theorem decomposes any finitely generated module into a free part and torsion. Over a general commutative ring, dimension fragments into multiple invariants — minimal generator count, Krull dimension, projective dimension — none of which agree in full generality. The clean coincidence available over a field is the algebraic content of "vector space".

Synthesis. This construction generalises the pattern fixed in the vector space unit, with the choice of basis selecting a coordinate system inside an otherwise unstructured object. Read in the opposite direction, dimension is the object that records the structure independently of the coordinates: the same invariant survives every change of basis. The replacement-theorem skeleton appears again in matroid theory, where the same exchange axiom abstracts the linear-independence pattern away from vector spaces and into a combinatorial framework. Putting these together, the central insight is that finite-dimensional linear algebra is governed by a single integer, and that integer is the only invariant separating one finite-dimensional space from another over a fixed field. The same invariant feeds vector-bundle rank, tensor-product dimension counts, exterior-algebra rank, and the discrete data of every Lie-group representation.

Full proof set [Master]

Existence of a basis (finite-dimensional case). Suppose is spanned by a finite list . Iterate the following procedure: if some is a linear combination of the others, remove it; otherwise stop. The procedure terminates because the list shrinks at each step and stays a spanning set throughout. The final list is linearly independent and spans, hence a basis.

Extension of an independent list to a basis. Let be linearly independent in a finite-dimensional with basis . Apply Steinitz replacement with as the spanning set and as the independent list: , and the relabelling of produces spanning . This list has elements and , so it is a basis [textbooks-extra Calculus Vol.2 - Multi-Variable Calculus and Linear Algebra with Applications (Tom Apostol).pdf].

Coordinate isomorphism. A choice of ordered basis defines

Spanning gives surjectivity. Linear independence gives , hence injectivity. So is an isomorphism, and every -dimensional vector space over is isomorphic to .

Hamel basis existence (general case). Let be the family of linearly independent subsets of , partially ordered by inclusion. Every chain has the union as an upper bound, which is linearly independent because any finite linear-dependence relation involves only finitely many elements and hence lies inside one member of the chain. Zorn's lemma gives a maximal element . Maximality forces : otherwise a vector extends to a strictly larger independent set. Hence is a basis.

Equicardinality of Hamel bases. Standard transfinite combinatorics shows that two Hamel bases of an infinite-dimensional vector space satisfy . The proof reduces to a counting argument: each element of is a finite linear combination of elements of , the assignment is at-most countable-to-one, and cardinal arithmetic with infinite cardinals closes the comparison [Halmos — Finite-Dimensional Vector Spaces].

Connections [Master]

  • Vector space 01.01.03 — supplies the underlying object on which the subspace lattice is built and the algebraic data the basis decomposes.

  • Bilinear and quadratic forms 01.01.15 — measurement on a vector space pulls back through a basis to a Gram matrix, and the rank of that matrix records the dimension of the radical complement.

  • Tensor algebra 03.01.04 — the dimension count is the multilinear shadow of the present unit, and a basis of generates a basis of every tensor power.

  • Vector bundle 03.05.02 — the rank of a bundle is the dimension of every fibre, and a local product chart pulls a basis of the fibre back to a frame on the base.

  • Differential forms 03.04.01 — the rank of is , where , so the dimension function fixes how many independent -forms exist on an -manifold's cotangent space.

Historical & philosophical context [Master]

Hermann Grassmann gave the first systematic account of linearly independent generators and dimension in Die lineale Ausdehnungslehre (1844), formulating the algebra of -dimensional extension long before the field-axiomatic vector-space concept stabilised [Halmos — Finite-Dimensional Vector Spaces]. Giuseppe Peano's Calcolo geometrico secondo l'Ausdehnungslehre di H. Grassmann (1888) gave the modern axiomatic definition of a real vector space, including the closure conditions on subspaces and the dimension axiom in essentially their current form.

Ernst Steinitz proved the replacement theorem in 1913 in his memoir Bedingt konvergente Reihen und konvexe Systeme (J. reine angew. Math. 143). The theorem established well-definedness of dimension as a corollary of an exchange procedure and is the algebraic ancestor of the matroid exchange axiom; van der Waerden adopted it as the standard route to dimension in Moderne Algebra (1930), and Hermann Weyl's Theorie der Gruppen und ihrer Darstellungen (1928) presented the linear-algebraic content axiomatically as the foundation for representation theory. Georg Hamel's 1905 paper Eine Basis aller Zahlen und die unstetigen Lösungen der Funktionalgleichung used Zorn-style choice to construct what is now called a Hamel basis of over , exhibiting an additive function on that is not linear and demonstrating the choice-dependence of bases in the infinite-dimensional setting.

Bibliography [Master]

  • Grassmann, H., Die lineale Ausdehnungslehre, ein neuer Zweig der Mathematik, Otto Wigand, Leipzig, 1844.
  • Peano, G., Calcolo geometrico secondo l'Ausdehnungslehre di H. Grassmann, Bocca, Torino, 1888.
  • Hamel, G., "Eine Basis aller Zahlen und die unstetigen Lösungen der Funktionalgleichung ", Mathematische Annalen 60 (1905), 459–462.
  • Steinitz, E., "Bedingt konvergente Reihen und konvexe Systeme", Journal für die reine und angewandte Mathematik 143 (1913), 128–176.
  • Weyl, H., Theorie der Gruppen und ihrer Darstellungen, S. Hirzel, Leipzig, 1928.
  • van der Waerden, B. L., Moderne Algebra, Springer, 1930.
  • Halmos, P. R., Finite-Dimensional Vector Spaces, Princeton University Press, 1942. §I.5–I.8.
  • Hoffman, K. & Kunze, R., Linear Algebra, Prentice-Hall, 2nd ed., 1971. §2.
  • Apostol, T. M., Calculus, Vol. 2: Multi-Variable Calculus and Linear Algebra with Applications, 2nd ed., Wiley, 1969. Ch. 1 §1.7–§1.13.

Autonomous production unit. Pulled-prerequisite for rank-nullity, tensor-algebra dimension counts, and vector-bundle rank.