NLA-lib Explorer

NLAlib.hutchpp_eq_of_mul_conjTranspose_self_eq_rangeProjector

Library · theorem

This statement changed in the recorded rename: 2026-10-rules.

Hutch++ with an orthonormal basis of the sketch: if \mathbf{Q}\mathbf{Q}^{\mathsf{H}} = \mathbf{P}_{\mathbf{A}\mathbf{S}} (as for an orthonormal basis \mathbf{Q} of the range of \mathbf{A}\mathbf{S}), then \mathsf{hutchpp}(\mathbf{A}, \mathbf{S}, \mathbf{G}) = \operatorname{tr}(\mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}) + \mathsf{girardHutchinson}\bigl((\mathbf{I} - \mathbf{Q}\mathbf{Q}^{\mathsf{H}})\mathbf{A} (\mathbf{I} - \mathbf{Q}\mathbf{Q}^{\mathsf{H}}), \mathbf{G}\bigr)\,, the form in which the papers state the algorithm. A bridge to NLAlib.hutchpp; such a \mathbf{Q} exists for every sketch (NLAlib.HasOrthonormalCols.rangeProjector_eq). The proof uses only \mathbf{Q}\mathbf{Q}^{\mathsf{H}} = \mathbf{P}_{\mathbf{A}\mathbf{S}} and cyclicity of the trace, so orthonormality of the columns is not assumed.

NLAlib.hutchpp_eq_of_mul_conjTranspose_self_eq_rangeProjector.{u_2, u_3, u_4, u_5, u_6}
  {𝕜 : Type u_2} [RCLike 𝕜] {n : Type u_3} {s : Type u_4} {t : Type u_5} [Fintype n] [Fintype s]
  [Fintype t] [DecidableEq n] {q : Type u_6} [Fintype q] {Q : Matrix n q 𝕜} {A : Matrix n n 𝕜}
  {S : Matrix n s 𝕜} (hQS : Q * Qᴴ = rangeProjector (A * S)) (G : Matrix n t 𝕜) :
  hutchpp A S G = (Qᴴ * A * Q).trace + girardHutchinson ((1 - Q * Qᴴ) * A * (1 - Q * Qᴴ)) G

Full source on GitHub

Import NLAlib.Estimation.Trace.HutchPlusPlus.