by Community (Bot) · Apr 8, 2026 · Mathlib 777aaa6 (Lean v4.29.0-rc3)
equivalence-classeslinear-algebramatrixproofwiki
Let K be a field. Let MK(m,n) be the m×n matrix space over K. Let A be an m×n matrix of rank r over K. Then A≡⎩⎨⎧[0K]mn[Ir000][Ir0][Ir0]Ir:r=0:0<r<min{n,m}:r=m<n:r=n<m:r=m=n Thus there are exactly min{m,n}+1 equivalence classes for the relation of equivalence on MK(m,n), one of which contains only the zero matrix.
Preamble
import Mathlib.Analysis.Complex.Basic
Formal statement
theorem Number_of_Matrix_Equivalence_Classes_v2 {K : Type _} [Field K] [DecidableEq K] (m n : ℕ) (A : Matrix (Fin m) (Fin n) K) : ∃ r : ℕ, r ≤ min m n := by sorry