NLA-lib Explorer

IsStarProjection.sum_re_apply_self

Library · theorem

The diagonal entries of an orthogonal projector sum to its rank: \sum_i \operatorname{Re} \mathbf{P}_{i,i} = \operatorname{rank} \mathbf{P}.

IsStarProjection.sum_re_apply_self.{u_1, u_3} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_3} [Fintype n]
  {P : Matrix n n 𝕜} (hP : IsStarProjection P) : ∑ i, RCLike.re (P i i) = ↑P.rank

Full source on GitHub

Import NLAlib.Matrix.Subspaces.ProjectorPair.