Theorem (Matrix.rank_fromCols_replicateCol_eq_iff). Rouché–Capelli. Adjoining the column \mathbf{b} to \mathbf{A} leaves the rank unchanged exactly when \mathbf{A}\mathbf{x} = \mathbf{b} has a solution. [HornJohnson2013, §0.4.2].
Headline
Lean statement and details
Matrix.rank_fromCols_replicateCol_eq_iff.{u_1, u_3, u_4} {K : Type u_1} [Field K] {m : Type u_3}
{n : Type u_4} [Fintype n] (A : Matrix m n K) (b : m → K) :
(A.fromCols (replicateCol Unit b)).rank = A.rank ↔ ∃ x, A *ᵥ x = b