01.01.03 · foundations / linear-algebra

Vector space

shipped3 tiersLean: full

Anchor (Master): Halmos — Finite-Dimensional Vector Spaces; Hoffman-Kunze §1

Intuition [Beginner]

A vector space is a place where adding arrows and stretching arrows always makes sense. If two arrows live in the same vector space, their sum lives there too. If an arrow is stretched by a number, the result also lives there.

The idea matters because it separates the rules from the picture. Arrows in the plane are vector-space examples, but so are lists of numbers, polynomials, signals, and solutions to many equations. Once the rules are shared, the same algebra works in all of these settings.

Think of a vector space as a workshop with two reliable tools: combine and scale.

Visual [Beginner]

The blue and red arrows combine to make the green arrow. The purple arrow is stretched but stays in the same plane.

A coordinate grid with vector addition and scalar stretching inside one vector space.

The picture shows the two operations, not the full definition. A vector space is any collection where these operations obey the same basic rules.

Worked example [Beginner]

Work in the usual coordinate plane. Take the arrow and the arrow .

Adding them means adding matching coordinates:

Stretching the first arrow by gives

Both results are still arrows in the coordinate plane.

What this tells us: the coordinate plane is closed under the two vector-space operations, addition and scaling.

Check your understanding [Beginner]

Formal definition [Intermediate+]

Let be a field. A vector space over is an abelian group together with a scalar multiplication map

such that, for all and all ,

The elements of are vectors; the elements of are scalars. This is Mathlib's Module K V structure when K is a field [quantum-well Vector spaces.md].

Standard examples include , polynomial spaces , function spaces , and solution spaces of homogeneous linear equations. The one-element vector space exists over every field and contains only the zero vector.

Key theorem with proof [Intermediate+]

Theorem (elementary consequences of the axioms). Let be a vector space over a field . For every and every ,

Proof. For the first identity, use distributivity over scalar addition:

Add the additive inverse of to both sides. The result is , so .

For the second identity, use distributivity over vector addition:

The same cancellation gives .

For the third identity,

Thus is an additive inverse of . The additive inverse is unique in the abelian group , so .

Bridge. The construction here builds toward 01.01.15 (bilinear form / quadratic form), where the same data is upgraded, and the symmetry side is taken up in 03.01.04 (tensor algebra). The defining pattern appears again in those units in a sharpened form, where the local data is glued or quotiented. Putting these together, the foundational insight is that the data of this unit gives the structural signature that the rest of the strand reads off.

Exercises [Intermediate+]

Lean formalization [Intermediate+]

Mathlib models vector spaces as modules over a field. The companion file Codex.Foundations.LinearAlgebra.VectorSpace records the distributive laws and elementary zero-scalar consequences used above.

[object Promise]

This unit is marked lean_status: full because its formal content is within Mathlib's standard algebraic hierarchy.

Advanced results [Master]

Every vector space has a basis, assuming the usual choice principle. For finite-dimensional spaces, a basis is a finite list of linearly independent vectors that spans the space; every vector has a unique coordinate expression in that basis. For arbitrary vector spaces, the same statement is proved by Zorn's lemma [Halmos Ch. 1].

If has a basis indexed by , then is isomorphic to the direct sum

This identifies vector spaces over a fixed field by dimension: two vector spaces over are isomorphic exactly when their bases have the same cardinality.

The categorical form is also important. A vector space over is a module over the field , and the category is an abelian category with kernels, cokernels, direct sums, and exact sequences. The finite-dimensional subcategory is rigid monoidal under tensor product and duals.

Synthesis. This construction generalises the pattern fixed in 00.02.05 (function), with the symmetric data replaced by its skew or twisted analogue. Read in the opposite direction, the construction is dual to the metric story: complements and orthogonality are taken with respect to the bilinear datum of this unit, not a metric, and the resulting category of subobjects is the one the rest of the strand classifies. The central insight is that this datum identifies algebra with geometry: functions become vector fields, subspaces become quotients, and invariants become cohomology classes — and that identification is the engine driving every theorem downstream.

Full proof set [Master]

Basis classification in finite dimension. Let be finite-dimensional. Any spanning list can be shortened to a basis by deleting vectors that are linear combinations of earlier vectors. Any linearly independent list can be extended to a basis by adding vectors from a fixed spanning list until the span is all of . The exchange lemma proves that any two bases have the same number of elements, so dimension is well-defined [Hoffman-Kunze §1].

Coordinate isomorphism. If is a basis of , define

Spanning makes surjective. Linear independence makes , so is injective. Therefore is a vector-space isomorphism.

Subspace criterion. A nonempty subset is a subspace exactly when it is closed under linear combinations . If is a subspace, closure is inherited from scalar multiplication and addition. Conversely, closure under gives by choosing , gives additive inverses by choosing , and gives closure under addition and scalar multiplication by choosing the other coefficients appropriately.

Connections [Master]

  • Bilinear forms 01.01.15 — require vector spaces before one can evaluate two vector inputs.

  • Tensor algebra 03.01.04 — starts from a vector space and builds the free associative algebra generated by it.

  • Clifford algebra 03.09.02 — is a quotient of the tensor algebra of a vector space by quadratic relations.

  • Fredholm operators 03.09.06 — act on infinite-dimensional vector spaces with topology added.

  • Vector bundle 03.05.02 — places one vector space over each point of a base space.

Historical & philosophical context [Master]

The abstract vector-space concept emerged from nineteenth-century linear equations, determinants, and geometry, then stabilized through early twentieth-century algebra. The modern axiomatic presentation treats vectors as elements of any set with addition and scalar multiplication satisfying structural laws, not as coordinate tuples alone [Halmos Ch. 1].

Halmos's Finite-Dimensional Vector Spaces helped set the mid-century American style for coordinate-free linear algebra. Axler later emphasized linear maps and invariant subspaces while delaying determinants, a choice reflected in the modern definition-first route through vector spaces [quantum-well Axler S., Gerhing F.W., Ribet K.A. Linear Algebra Done Right, Springer, 2nd edition, 1997.md].

Bibliography [Master]

  • Halmos, P. R., Finite-Dimensional Vector Spaces, Princeton University Press, 1942.
  • Axler, S., Linear Algebra Done Right, Springer, 1997. §1.A.
  • Hoffman, K. & Kunze, R., Linear Algebra, Prentice-Hall, 2nd ed., 1971. §1.
  • Bourbaki, N., Algebra I, Chapters 1-3, Springer, 1989.

Wave 2 Phase 2.1 unit #1. Produced as a foundational pulled prerequisite for Clifford algebra, Fredholm operators, and characteristic-class units.