Gauss's method preserves the solution set (One.I.1)
Provedhefferon_gauss_row_operations_preserve_solutionsgaussian-eliminationlinear-algebralinear-systems
Let be an matrix over a field , let , and let be an invertible matrix. Then a vector solves if and only if it solves . Since each of Gauss's three elementary row operations is left multiplication by an invertible matrix, row reduction carries a linear system to an equivalent one.
Preamble
import Mathlib.Data.Matrix.Basic import Mathlib.LinearAlgebra.Matrix.NonsingularInverse import Mathlib.LinearAlgebra.Matrix.ToLin open Matrix
Formal statement
theorem hefferon_gauss_row_operations_preserve_solutions
{K : Type*} [Field K] {m n : ℕ}
(A : Matrix (Fin m) (Fin n) K) (b : Fin m → K)
(M : Matrix (Fin m) (Fin m) K) (hM : IsUnit M.det) (x : Fin n → K) :
A *ᵥ x = b ↔ (M * A) *ᵥ x = M *ᵥ b := by
sorrySource
Jim Hefferon, *Linear Algebra*, Saint Michael's College, 2020 printing, Chapter One, Section I.1, Theorem 1.5, p. 12