NLAlib.measureReal_abs_trace_cfc_sub_slq_ge_le_of_lipschitzOnWith
Library · theorem
General form: sizes are index types
The tail of stochastic Lanczos quadrature for Lipschitz functions. Let the entries of the real n \times m test matrix \mathbf{\Omega} be independent, each satisfying the sub-Gaussian moment generating function bound with variance proxy c and having second moment 1. Let \mathbf{A} be real symmetric with spectrum in [a, a'], a < a', and f L-Lipschitz on [a, a']. Then for every q and \tau \ge 0, with q + 1 Lanczos steps per probe and quadrature term <!-- value jacksonApproximationConstant -->\pi L(a' - a)/(2q + 3) per unit of mass, <!-- value hansonWrightConstant --> \mathbb{P}\Bigl[\tau + \frac{\pi L(a' - a)}{2q + 3}\cdot \frac{\|\mathbf{\Omega}\|_{\mathsf{F}}^2}{m} \le \bigl\lvert\operatorname{tr} f(\mathbf{A}) - \mathsf{slq}(\mathbf{A}, f, \mathbf{\Omega}, q + 1)\bigr\rvert\Bigr] \le 2\exp\Bigl(-\frac{1}{196}\min\Bigl( \frac{m\tau^2}{c^2\|f(\mathbf{A})\|_{\mathsf{F}}^2}, \frac{m\tau}{c\|f(\mathbf{A})\|_2}\Bigr)\Bigr)\,; the constants are hansonWrightConstant and jacksonApproximationConstant; the quadrature term is random, inside the event. Gaussian and sign test matrices are the case c = 1. [UbaruChenSaad2017, Theorem 4.1] (locator to check), there for analytic f; [CortinovisKressner2022, §4] (locator to check). Result: stochastic-lanczos-quadrature-tail
NLAlib.measureReal_abs_trace_cfc_sub_slq_ge_le_of_lipschitzOnWith.{u_2, u_3, u_4} {n : Type u_2}
{m : Type u_3} [Fintype n] [DecidableEq n] [Fintype m] {Ω : Type u_4} {mΩ : MeasurableSpace Ω}
{μ : Measure Ω} {X : Ω → Matrix n m ℝ} {c : ℝ≥0} (hind : iIndepFun (fun p ω ↦ X ω p.1 p.2) μ)
(hsub : ∀ (i : n) (j : m), HasSubgaussianMGF (fun ω ↦ X ω i j) c μ)
(hvar : ∀ (i : n) (j : m), ∫ (ω : Ω), X ω i j ^ 2 ∂μ = 1) {A : Matrix n n ℝ} (hA : A.IsHermitian)
{a a' : ℝ} (haa : a < a') (hs : spectrum ℝ A ⊆ Set.Icc a a') {f : ℝ → ℝ} {L : ℝ≥0}
(hf : LipschitzOnWith L f (Set.Icc a a')) (q : ℕ) {τ : ℝ} (hτ : 0 ≤ τ) :
μ.real
{ω |
τ +
jacksonApproximationConstant * ↑L * (a' - a) / (2 * ↑q + 3) *
(frobNorm (X ω) ^ 2 / ↑(Fintype.card m)) ≤
|(cfc f A).trace - slq A f (X ω) (q + 1)|} ≤
2 *
rexp
(-(hansonWrightConstant *
min (↑(Fintype.card m) * τ ^ 2 / (↑c ^ 2 * frobNorm (cfc f A) ^ 2))
(↑(Fintype.card m) * τ / (↑c * specNorm (cfc f A)))))Import NLAlib.Estimation.Trace.StochasticLanczosQuadrature.
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.