NLA-lib Explorer

IsStarProjection.re_trace_mul

Library 路 theorem

The trace of a product of two orthogonal projectors is the squared Frobenius norm of the product: \operatorname{Re} \operatorname{tr}(\mathbf{P}\mathbf{Q}) = \|\mathbf{P}\mathbf{Q}\|_{\mathsf{F}}^2.

IsStarProjection.re_trace_mul.{u_1, u_3} {饾暅 : Type u_1} [RCLike 饾暅] {n : Type u_3} [Fintype n]
  {P Q : Matrix n n 饾暅} (hP : IsStarProjection P) (hQ : IsStarProjection Q) :
  RCLike.re (P * Q).trace = frobNorm (P * Q) ^ 2

Full source on GitHub

Import NLAlib.Matrix.Subspaces.ProjectorPair.