NLA-lib Explorer

NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le

Library · theorem

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

Headline of hutchpp-tail (provisional) General form: sizes are index types

The deviation of Hutch++ given a range-finder guarantee. Let the sketch test matrix \mathbf{S} be almost everywhere measurable and the n \times \ell residual test matrix \mathbf{G} be independent of it, with independent entries that each satisfy the sub-Gaussian moment generating function bound with variance proxy c (HasSubgaussianMGF) and have second moment 1. If, for some r and K, the range-finder event \|\mathbf{A} - \mathsf{rsvd}(\mathbf{A}, \mathbf{S})\|_{\mathsf{F}}^2 \le K\|\mathbf{A} - \llbracket\mathbf{A}\rrbracket_r\|_{\mathsf{F}}^2 fails with probability at most \delta_1, then for every real square \mathbf{A} and every \tau \ge 0, with \mathbf{E}_r = \mathbf{A} - \llbracket\mathbf{A}\rrbracket_r, <!-- value hansonWrightConstant --> \mathbb{P}\bigl[\lvert \operatorname{tr}\mathbf{A} - \mathsf{hutchpp}(\mathbf{A}, \mathbf{S}, \mathbf{G}) \rvert \ge \tau\bigr] \le \delta_1 + 2\exp\Bigl(-\frac{1}{196}\min\Bigl( \frac{\ell\tau^2}{c^2 K\|\mathbf{E}_r\|_{\mathsf{F}}^2}, \frac{\ell\tau}{c\sqrt{K}\|\mathbf{E}_r\|_{\mathsf{F}}}\Bigr)\Bigr)\,; the constant is hansonWrightConstant. On the range-finder event the compressed residual has Frobenius (hence spectral) norm at most \sqrt{K}\|\mathbf{E}_r\|_{\mathsf{F}}; conditionally on \mathbf{S} the Girard–Hutchinson tail applies (NLAlib.measureReal_abs_trace_sub_girardHutchinson_ge_le), and ProbabilityTheory.IndepFun.measureReal_mem_le_add integrates it over the sketch. A zero denominator makes its fraction 0, and the bound is then at least 2; in particular, when \|\mathbf{E}_r\|_{\mathsf{F}} = 0 the bound says nothing, and that case is handled through exactness of Hutch++ on the range-finder event instead. Instances: NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le_of_isSubgaussianVector, NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le_of_hasLaw_gaussianMatrix. [MeyerMuscoMuscoWoodruff2021, Theorem 4 and Lemma 2]; there for positive semidefinite \mathbf{A} with \|\mathbf{\Delta}\|_{\mathsf{F}} \le 2\|\mathbf{E}_r\|_{\mathsf{F}} given, unspecified constants and a sample-size form. Result: hutchpp-tail

NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le.{u_1, u_2, u_3, u_4} {Ω : Type u_1}
  {mΩ : MeasurableSpace Ω} {μ : Measure Ω} {n : Type u_2} {s : Type u_3} {t : Type u_4} [Fintype n]
  [Fintype s] [Fintype t] [DecidableEq n] (A : Matrix n n ℝ) {S : Ω → Matrix n s ℝ}
  {G : Ω → Matrix n t ℝ} {c : ℝ≥0} (hS : AEMeasurable S μ) (hSG : S ⟂ᵢ[μ] G)
  (hGind : iIndepFun (fun p ω ↦ G ω p.1 p.2) μ)
  (hGsub : ∀ (i : n) (j : t), HasSubgaussianMGF (fun ω ↦ G ω i j) c μ)
  (hGvar : ∀ (i : n) (j : t), ∫ (ω : Ω), G ω i j ^ 2 ∂μ = 1) {r : ℕ} {K δ₁ : ℝ}
  (hRF :
    μ.real {ω | K * frobNorm (A - truncatedSVD A r) ^ 2 < frobNorm (A - rsvd A (S ω)) ^ 2} ≤ δ₁)
  {τ : ℝ} (hτ : 0 ≤ τ) :
  μ.real {ω | τ ≤ |A.trace - hutchpp A (S ω) (G ω)|} ≤
    δ₁ +
      2 *
        rexp
          (-(hansonWrightConstant *
              min (↑(Fintype.card t) * τ ^ 2 / (↑c ^ 2 * K * frobNorm (A - truncatedSVD A r) ^ 2))
                (↑(Fintype.card t) * τ / (↑c * √K * frobNorm (A - truncatedSVD A r)))))

Full source on GitHub

Import NLAlib.Estimation.Trace.HutchPlusPlusTail.

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.