Matrix.IsHermitian.norm_trace_cfc_sub_slq_le_of_lipschitzOnWith
Library · theorem
General form: sizes are index types
The error of stochastic Lanczos quadrature for Lipschitz functions: for Hermitian \mathbf{A} with spectrum in [a, a'], a < a', f L-Lipschitz on [a, a'], every test matrix \mathbf{\Omega} with m columns and every q, with q + 1 Lanczos steps per probe, <!-- value jacksonApproximationConstant --> \bigl\lvert\operatorname{tr} f(\mathbf{A}) - \mathsf{slq}(\mathbf{A}, f, \mathbf{\Omega}, q + 1)\bigr\rvert \le \bigl\lvert\operatorname{tr} f(\mathbf{A}) - \mathsf{girardHutchinson}(f(\mathbf{A}), \mathbf{\Omega})\bigr\rvert + \frac{\pi L(a' - a)}{2q + 3}\cdot \frac{\|\mathbf{\Omega}\|_{\mathsf{F}}^2}{m}\,; the constant is jacksonApproximationConstant. Per probe, the Gauss-rule error for Lipschitz functions (Jackson's theorem in degree 2q + 1), averaged. [UbaruChenSaad2017, §4] (locator to check); the rate from [ChenTrogdonUbaru2022, Appendix C, Theorem 38], the approximation step. Result: stochastic-lanczos-quadrature-error
Matrix.IsHermitian.norm_trace_cfc_sub_slq_le_of_lipschitzOnWith.{u_1, u_2, u_3} {𝕜 : Type u_1}
[RCLike 𝕜] {n : Type u_2} {m : Type u_3} [Fintype n] [DecidableEq n] [Fintype m]
{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'))
(Ω : Matrix n m 𝕜) (q : ℕ) :
‖(cfc f A).trace - slq A f Ω (q + 1)‖ ≤
‖(cfc f A).trace - girardHutchinson (cfc f A) Ω‖ +
jacksonApproximationConstant * ↑L * (a' - a) / (2 * ↑q + 3) *
(frobNorm Ω ^ 2 / ↑(Fintype.card m))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.