NLA-lib Explorer

NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le_of_isSubgaussianVector

Library · theorem

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

General form: sizes are index types

The deviation of Hutch++ with a sub-Gaussian sketch. Let the sketch \mathbf{S}^{\mathsf{H}} of the n \times \lvert s \rvert sketch test matrix \mathbf{S}, \lvert s \rvert \ge 1, have independent, isotropic, sub-Gaussian rows with proxy c, and let the n \times \ell residual test matrix \mathbf{G} be independent of \mathbf{S}, with independent entries that each satisfy the sub-Gaussian moment generating function bound with variance proxy c' and have second moment 1. If \delta > 0 and <!-- value subgaussianEmbeddingDim c r (1/2) (\delta/2) --> \lvert s \rvert \ge 25 c^2 (r \log 21 + \log(2/(\delta/2)))/(16C (1/2)^2), with <!-- value subgaussianJLConstant -->C = 1/36, then for every real square \mathbf{A} and every \tau \ge 0, with \mathbf{E}_r = \mathbf{A} - \llbracket\mathbf{A}\rrbracket_r, we get <!-- value subgaussianRangeFinderFactor c --> <!-- value hansonWrightConstant --> \mathbb{P}\bigl[\lvert \operatorname{tr}\mathbf{A} - \mathsf{hutchpp}(\mathbf{A}, \mathbf{S}, \mathbf{G}) \rvert \ge \tau\bigr] \le \delta + 2\exp\Bigl(-\frac{1}{196}\min\Bigl( \frac{\ell\tau^2}{c'^2 (1 + 5c/2)\|\mathbf{E}_r\|_{\mathsf{F}}^2}, \frac{\ell\tau}{c'\sqrt{1 + 5c/2}\,\|\mathbf{E}_r\|_{\mathsf{F}}}\Bigr)\Bigr)\,; the size is subgaussianEmbeddingDim c r (1 / 2) (δ / 2), C is subgaussianJLConstant, the factor is subgaussianRangeFinderFactor c and the constant in the exponent is hansonWrightConstant. NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le with the range finder NLAlib.measureReal_frobNorm_sub_rsvd_sq_gt_le_mul_of_isSubgaussianVector. Sign sketches and residual probes are the case c = c' = 1. [MeyerMuscoMuscoWoodruff2021, Theorem 4 and §3, proof of Theorem 1]; there with sign test matrices, the factor 2 and unspecified constants. Result: hutchpp-tail

NLAlib.measureReal_abs_trace_sub_hutchpp_ge_le_of_isSubgaussianVector.{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] [Nonempty s] (A : Matrix n n ℝ)
  {S : Ω → Matrix n s ℝ} {G : Ω → Matrix n t ℝ} {c c' : ℝ≥0}
  (hSind : iIndepFun (fun i ω ↦ (S ω)ᴴ i) μ)
  (hSsub : ∀ (i : s), IsSubgaussianVector (fun ω ↦ (S ω)ᴴ i) c μ)
  (hSiso : ∀ (i : s), IsIsotropic (fun ω ↦ (S ω)ᴴ i) μ)
  (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) (hSG : S ⟂ᵢ[μ] G) {r : ℕ} {δ : ℝ}
  (hδ : 0 < δ) (hs : subgaussianEmbeddingDim (↑c) r (1 / 2) (δ / 2) ≤ ↑(Fintype.card s)) {τ : ℝ}
  (hτ : 0 ≤ τ) :
  μ.real {ω | τ ≤ |A.trace - hutchpp A (S ω) (G ω)|} ≤
    δ +
      2 *
        rexp
          (-(hansonWrightConstant *
              min
                (↑(Fintype.card t) * τ ^ 2 /
                  (↑c' ^ 2 * subgaussianRangeFinderFactor ↑c * frobNorm (A - truncatedSVD A r) ^ 2))
                (↑(Fintype.card t) * τ /
                  (↑c' * √(subgaussianRangeFinderFactor ↑c) * 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.