Equivalent_Matrices_Equal_Rank
Provedlinear-algebramatrixproofwikirank
Let and be matrices over a field . Let denote the rank of . Let denote that and are matrix equivalent. Then
Preamble
import Mathlib.LinearAlgebra.Matrix.ToLin import Mathlib.LinearAlgebra.Matrix.NonsingularInverse import Mathlib.LinearAlgebra.Dimension.Finrank
Formal statement
theorem Equivalent_Matrices_Equal_Rank {K : Type _} [Field K] [DecidableEq K] {m n : ℕ} (A B : Matrix (Fin m) (Fin n) K) (P : Matrix (Fin n) (Fin n) K) (Q : Matrix (Fin m) (Fin m) K) (hP : IsUnit P) (hQ : IsUnit Q) (h : B = Q * A * P⁻¹) : Module.finrank K (LinearMap.range A.toLin') = Module.finrank K (LinearMap.range B.toLin') := by sorrySource