NLA-lib Explorer

NLAlib.HasOrthonormalCols.frobNorm_one_sub_mul_sq

Library · theorem

The squared distance from a frame \mathbf{Q} to the range of a frame \mathbf{U} is the number of columns of \mathbf{Q} less the squared overlap: \|(\mathbf{I} - \mathbf{U}\mathbf{U}^{\mathsf{H}})\mathbf{Q}\|_{\mathsf{F}}^2 = \lvert q \rvert - \|\mathbf{Q}^{\mathsf{H}}\mathbf{U}\|_{\mathsf{F}}^2.

NLAlib.HasOrthonormalCols.frobNorm_one_sub_mul_sq.{u_1, u_3, u_4, u_5} {𝕜 : Type u_1} [RCLike 𝕜]
  {n : Type u_3} {p : Type u_4} {q : Type u_5} [Fintype n] [Fintype p] [Fintype q] [DecidableEq n]
  [DecidableEq p] [DecidableEq q] {U : Matrix n p 𝕜} {Q : Matrix n q 𝕜} (hU : HasOrthonormalCols U)
  (hQ : HasOrthonormalCols Q) :
  frobNorm ((1 - U * Uᴴ) * Q) ^ 2 = ↑(Fintype.card q) - frobNorm (Qᴴ * U) ^ 2

Full source on GitHub

Import NLAlib.Matrix.Subspaces.ProjectorPair.