General = particular + homogeneous
ProvedHefferonLinAlg.general_eq_particular_plus_homogeneousLet be an matrix over a field , let , and suppose is one particular solution, . Then the solution set of is exactly . Every solution is the particular solution plus a solution of the associated homogeneous system, and conversely every such sum solves the system. This is the structural description of a solution set that Hefferon returns to throughout the book.
import Mathlib open Matrix
namespace HefferonLinAlg
theorem general_eq_particular_plus_homogeneous
{K : Type*} [Field K] {m n : ℕ}
(A : Matrix (Fin m) (Fin n) K) (b : Fin m → K) (p : Fin n → K) (hp : A *ᵥ p = b) :
{x : Fin n → K | A *ᵥ x = b} = {x : Fin n → K | ∃ h, A *ᵥ h = 0 ∧ x = p + h} := by
sorry
end HefferonLinAlgRead-back
What the Lean code literally says, in plain math · claude-opus-5
The declaration HefferonLinAlg.general_eq_particular_plus_homogeneous asserts the following. Let be an arbitrary type carrying a field structure (in particular ; no assumption of finiteness, of characteristic, or of algebraic closure is made), and let be arbitrary natural numbers — both are implicit and unconstrained, so the statement includes the degenerate cases (a matrix with no rows) and (a matrix with no columns, where is the one-point space consisting of the empty vector). Let
- be a matrix whose rows are indexed by and whose columns are indexed by ,
- be a vector (a function from the row index set to ),
- be a vector (a function from the column index set to ),
and assume the single hypothesis that satisfies the system, i.e.
this being the usual matrix–vector product, with equality of vectors meaning equality at every row index. Nothing else is assumed about : it is merely some solution, not required to be unique, nonzero, or distinguished in any way, and no assumption is made that is injective, surjective, square, or of any particular rank. Under these assumptions the theorem concludes an equality of two subsets of (equality of sets of vectors, i.e. the two sets have exactly the same members):
Here on the right denotes the zero vector of (the function that is at every row index), the existential quantifier ranges over all vectors and is a plain "there exists" with no uniqueness claim, the conjunction requires both that solve the homogeneous system and that be exactly , and denotes coordinatewise addition, . The claim is a full set equality (both inclusions), not one inclusion or a mere characterization up to some equivalence. In the degenerate case the hypothesis holds automatically (equality of two vectors with no coordinates), and both sides of the conclusion are then all of ; in the case both sides are subsets of a one-element space. The statement is closed with sorry, so no proof is supplied.
Confirmed by the mission captain (proposal self-audit).