Mathlib Map

Theorems · Theorem · linear algebra

Matrix.rank_diagonal

∀ {m : Type um} {R : Type uR} [inst : Field R] [inst_1 : Fintype m] [inst_2 : DecidableEq m] [inst_3 : DecidableEq R]
  (w : m → R), (Matrix.diagonal w).rank = Fintype.card { i // w i ≠ 0 }

The rank of a diagonal matrix is the count of non-zero elements on its main diagonal

Defined in
Mathlib.LinearAlgebra.Matrix.Rank
Cited by
3 results in Mathlib
Foundations
Depth 116 from the axioms · uses propext, Classical.choice, Quot.sound
Assumes
FieldFintypeDecidableEqDecidableEq

Around this declaration

Dashed lines are statement dependencies; solid lines are citations in proofs.

Cites16

Mathlib declarations this one mentions in its statement or cites explicitly in its proof. Plumbing is filtered out.

Cited by3

Results whose statement or proof uses this declaration.