NLA-lib Explorer

NLAlib.integral_norm_trace_sub_hutchpp_sq

Library · theorem

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

The mean-square error of Hutch++ is an average over the sketch: if the sketch test matrix \mathbf{S} is almost everywhere measurable, the residual test matrix \mathbf{G} is independent of it and every entry of \mathbf{G} has a finite fourth moment, then for every square \mathbf{A}, with \mathbf{\Delta}(\mathbf{S}) = (\mathbf{I} - \mathbf{P}_{\mathbf{A}\mathbf{S}}) \mathbf{A}(\mathbf{I} - \mathbf{P}_{\mathbf{A}\mathbf{S}}) and \mathbf{G}' an independent copy of \mathbf{G} (the inner integral), \mathbb{E}\,\lvert \operatorname{tr}\mathbf{A} - \mathsf{hutchpp}(\mathbf{A}, \mathbf{S}, \mathbf{G}) \rvert^2 = \mathbb{E}_{\mathbf{S}}\,\mathbb{E}_{\mathbf{G}'} \lvert \operatorname{tr}\mathbf{\Delta}(\mathbf{S}) - \mathsf{girardHutchinson}(\mathbf{\Delta}(\mathbf{S}), \mathbf{G}') \rvert^2\,. No isotropy, no independence of the columns and no column is needed; the per-law formulas of NLAlib.integral_norm_trace_sub_girardHutchinson_sq evaluate the inner integral. [MeyerMuscoMuscoWoodruff2021, proof of Theorem 10, (2)]; there as the law of total variance with Gaussian test matrices.

NLAlib.integral_norm_trace_sub_hutchpp_sq.{u_1, u_2, u_3, u_4, u_5} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {𝕜 : Type u_2} [RCLike 𝕜] {n : Type u_3} {s : Type u_4}
  {t : Type u_5} [Fintype n] [Fintype s] [Fintype t] [DecidableEq n] [IsProbabilityMeasure μ]
  (A : Matrix n n 𝕜) {S : Ω → Matrix n s 𝕜} {G : Ω → Matrix n t 𝕜} (hS : AEMeasurable S μ)
  (hG : ∀ (i : n) (j : t), MemLp (fun ω ↦ G ω i j) 4 μ) (hSG : S ⟂ᵢ[μ] G) :
  ∫ (ω : Ω), ‖A.trace - hutchpp A (S ω) (G ω)‖ ^ 2 ∂μ =
    ∫ (ω : Ω),
      ∫ (ω' : Ω),
        ‖((1 - rangeProjector (A * S ω)) * A * (1 - rangeProjector (A * S ω))).trace -
              girardHutchinson ((1 - rangeProjector (A * S ω)) * A * (1 - rangeProjector (A * S ω)))
                (G ω')‖ ^
          2 ∂μ ∂μ

Full source on GitHub

Import NLAlib.Estimation.Trace.HutchPlusPlus.