NLA-lib Explorer

NLAlib.variance_hutchpp_le_of_hasLaw_gaussianMatrix_of_rank_le

Library · theorem

General form: sizes are index types

The variance of Gaussian Hutch++, Epperly–Webber form: if the n \times \lvert s \rvert sketch test matrix \mathbf{S} and the n \times \ell residual test matrix \mathbf{G}, \ell \ge 1, are independent and standard Gaussian, then for every real square \mathbf{A} with \operatorname{rank}\mathbf{A} \le r, \lvert s \rvert \le r and q + 2 \le \lvert s \rvert, <!-- value rotationInvariantFactor r {\lvert s \rvert} q --> \operatorname{Var}[\mathsf{hutchpp}(\mathbf{A}, \mathbf{S}, \mathbf{G})] \le \frac{2}{\ell}\, \frac{r - \lvert s \rvert}{r - q}\Bigl(1 + \frac{q}{\lvert s \rvert - q - 1}\Bigr) \|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_q\|_{\mathsf{F}}^2\,; the factor is rotationInvariantFactor r (Fintype.card s) q, below the Halko–Martinsson–Tropp factor of NLAlib.variance_hutchpp_le_of_hasLaw_gaussianMatrix and better when the rank r is close to \lvert s \rvert. From the exact variance and NLAlib.integral_frobNorm_sub_rsvd_sq_le_of_hasLaw_gaussianMatrix_of_rank_le. [EpperlyWebber2026, Theorem 3.2]; there for the randomized SVD alone, with r = \operatorname{rank}\mathbf{A}. Result: hutchpp-variance

NLAlib.variance_hutchpp_le_of_hasLaw_gaussianMatrix_of_rank_le.{u_1, u_3, u_4, u_5} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_3} {s : Type u_4} {t : Type u_5} [Fintype n]
  [Fintype s] [Fintype t] [DecidableEq n] [Nonempty t] (A : Matrix n n ℝ) {S : Ω → Matrix n s ℝ}
  {G : Ω → Matrix n t ℝ} (hS : HasLaw S (gaussianMatrix n s) μ)
  (hG : HasLaw G (gaussianMatrix n t) μ) (hSG : S ⟂ᵢ[μ] G) {r q : ℕ} (hr : A.rank ≤ r)
  (hsr : Fintype.card s ≤ r) (hq : q + 2 ≤ Fintype.card s) :
  Var[fun ω ↦ hutchpp A (S ω) (G ω); μ] ≤
    2 / ↑(Fintype.card t) * rotationInvariantFactor r (Fintype.card s) q *
      frobNorm (A - truncatedSVD A q) ^ 2

Full source on GitHub

Import NLAlib.Estimation.Trace.HutchPlusPlus.

General form: sizes are index types. A size is carried by a finite index type: |k| is the number of elements of the index type k, and "k nonempty" means k ≥ 1.