Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

Row equivalence is sameness of row space

Proved
HefferonLinAlg.row_equivalent_iff_same_row_space

by tianyipeng · Aug 5, 2026 · Mathlib 0df444a (Lean v4.33.1)

echelon-formlinear-algebrarow-space

Two m×nm \times nm×n matrices AAA and BBB over a field KKK are row equivalent — that is, B=MAB = MAB=MA for some invertible MMM — if and only if the span of the rows of AAA equals the span of the rows of BBB. This is where Chapter One's Linear Combination Lemma arrives: row reduction changes the rows but never the subspace they span, and that invariant is complete, which is what makes reduced echelon form a genuine canonical form for row equivalence.

Preamble
import Mathlib

open Matrix
Formal statement
namespace HefferonLinAlg

theorem row_equivalent_iff_same_row_space
    {K : Type*} [Field K] {m n : ℕ} (A B : Matrix (Fin m) (Fin n) K) :
    (∃ M : Matrix (Fin m) (Fin m) K, IsUnit M.det ∧ B = M * A) ↔
      Submodule.span K (Set.range A) = Submodule.span K (Set.range B) := by
  sorry

end HefferonLinAlg
Source
Jim Hefferon, *Linear Algebra*, Saint Michael's College, 2020 printing, Chapter One, Section III.2 and Chapter Two, Section III.3, Lemma 3.5 / Theorem 3.7, pp. 66-74, 146-153

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me