The definition that actually matters
In the Span node we saw redundancy: sometimes a vector is already reachable from the others and adds nothing to the span. We need a clean test for "no redundancy." Here it is, and it's deceptively small.
Vectors are linearly independent if the only solution to is .
If there's any other solution — any way to hit with not-all-zero coefficients — the vectors are linearly dependent.
The all-zeros combination always gives ; that's the free lunch nobody can take away (it's the trivial combination). Independence says: that's the only lunch. Dependence says: there's a sneaky second way, a nontrivial combination that secretly cancels to zero. The whole concept is "is zero reachable in a non-stupid way?" That one question controls everything downstream.
Why this captures "no freeloaders"
The definition looks abstract; let's prove it means exactly what we want.
Theorem. are linearly dependent at least one lies in the span of the others.
Proof. () Suppose dependent: there's a nontrivial with some . Solve for that — legal because lets us divide: The right side is a linear combination of the other vectors, so .
() Suppose some . Move everything to one side: The coefficient of is , so this is a nontrivial combination equal to — the vectors are dependent.
So "linearly dependent" and "somebody is a combination of the rest" are literally the same statement. The freeloader is real, and the is the receipt that catches them.
Testing independence = solving a homogeneous system
Here's the marriage with the Matrices stratum, on full display. Write the vectors as columns of a matrix . Then is precisely the homogeneous system from the Subspaces node. Independence is the demand that this system has only the trivial solution .
From the Matrices stratum you know exactly when that happens: row-reduce and check the pivots. The system has only the trivial solution iff every column has a pivot (no free variables — every variable is forced to zero). So: A free variable is a freeloader given a name. Independence = no free variables = a pivot in every column. That's the whole computational test, and it's just Gaussian elimination wearing a new hat — the same damn machine from two lessons ago, still running the show.
The geometric pictures
- In : two vectors are dependent they're parallel (one is a scalar multiple of the other). Independent means they point in genuinely different directions.
- In : three vectors are dependent they lie in a common plane through the origin (or worse, a line). Independent means they "fill out" all three dimensions.
- Any list containing is automatically dependent. Why? The combination is nontrivial (the coefficient on is ) yet equals . The zero vector is the ultimate freeloader — it contributes nothing but breaks independence on sight.
The pigeonhole hammer: too many vectors must be dependent
Now a theorem you'll lean on constantly, and it's pure counting — ruthlessly elegant.
Theorem. Any list of more than vectors in is linearly dependent.
Proof (via pivots). Suppose you have vectors in . Stack them as columns of an matrix . Independence would require a pivot in every one of the columns. But pivots live in rows, and there are only rows — so at most pivots exist. Since , at least one column has no pivot, meaning a free variable, meaning a nontrivial solution to . Therefore the vectors are dependent.
That's pigeonhole reasoning from the Sets stratum (more columns than rows, pivots can't cover them all) deciding a geometric fact — no computation required. Five vectors in ? Dependent, guaranteed, before you even look at the numbers. This caps how big an independent set can get, and it's precisely what makes dimension well-defined next node. When I said counting controls everything, I was not bullshitting you.