NLA-lib Explorer

IsStarProjection.trace_eq_rank

Library 路 theorem

The trace of an orthogonal projector is its rank: \operatorname{tr} \mathbf{P} = \operatorname{rank} \mathbf{P}.

IsStarProjection.trace_eq_rank.{u_1, u_3} {饾暅 : Type u_1} [RCLike 饾暅] {n : Type u_3} [Fintype n]
  {P : Matrix n n 饾暅} (hP : IsStarProjection P) : P.trace = 鈫慞.rank

Full source on GitHub

Import NLAlib.Matrix.Subspaces.ProjectorPair.