NLA-lib Explorer

Matrix.rank_neg

Library · theorem

Negating a matrix does not change its rank.

Matrix.rank_neg.{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) : (-A).rank = A.rank

Full source on GitHub

Import NLAlib.ForMathlib.LinearAlgebra.Matrix.Rank.