NLA-lib Explorer

NLAlib.frobNorm_one_sub_rangeProjector_mul_rangeProjector_sq

Library ยท theorem

The Frobenius norm of (\mathbf{I} - \mathbf{P}_{\mathbf{X}})\mathbf{P}_{\mathbf{Y}} is the root sum of squares of the sines of the principal angles: \|(\mathbf{I} - \mathbf{P}_{\mathbf{X}})\mathbf{P}_{\mathbf{Y}}\|_{\mathsf{F}}^2 = \sum_{j < \operatorname{rank} \mathbf{Y}} \sin^2 \theta_j(\mathbf{X}, \mathbf{Y}).

NLAlib.frobNorm_one_sub_rangeProjector_mul_rangeProjector_sq.{u_1, u_2, u_3, u_4} {๐•œ : Type u_1}
  [RCLike ๐•œ] {n : Type u_2} {p : Type u_3} {q : Type u_4} [Fintype n] [Fintype p] [Fintype q]
  [DecidableEq n] (X : Matrix n p ๐•œ) (Y : Matrix n q ๐•œ) :
  frobNorm ((1 - rangeProjector X) * rangeProjector Y) ^ 2 =
    โˆ‘ j โˆˆ Finset.range Y.rank, Real.sin (principalAngle X Y j) ^ 2

Full source on GitHub

Import NLAlib.Matrix.Subspaces.PrincipalAngles.