NLA-lib Explorer

IsIdempotentElem.trace_eq_rank

Library · theorem

The trace of an idempotent matrix over a field is its rank: \operatorname{tr} \mathbf{P} = \operatorname{rank} \mathbf{P}. [HornJohnson2013, §3.1.P25 context].

IsIdempotentElem.trace_eq_rank.{u_2, u_4} {n : Type u_2} [Fintype n] {K : Type u_4} [Field K]
  {P : Matrix n n K} (hP : IsIdempotentElem P) : P.trace = ↑P.rank

Full source on GitHub

Import NLAlib.Matrix.Subspaces.Oblique.