NLA-lib Explorer

Matrix.IsHermitian.norm_trace_cfc_sub_slq_le_of_continuousOn

Library · theorem

Headline of stochastic-lanczos-quadrature-error (provisional) General form: sizes are index types

The error of stochastic Lanczos quadrature and the minimax error: for Hermitian \mathbf{A} with spectrum in [a, a'], f continuous on [a, a'], every test matrix \mathbf{\Omega} with m columns and q + 1 Lanczos steps per probe, \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{2E_{2q + 1}(f; [a, a'])\|\mathbf{\Omega}\|_{\mathsf{F}}^2}{m} \,, E_{2q + 1} the error of the best uniform approximation of f on [a, a'] by polynomials of degree at most 2q + 1 (minimaxError). [UbaruChenSaad2017, §4] (locator to check); there with the quadrature error bounded through analytic f and Chebyshev approximation. Result: stochastic-lanczos-quadrature-error

Matrix.IsHermitian.norm_trace_cfc_sub_slq_le_of_continuousOn.{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' : ℝ} (hs : spectrum ℝ A ⊆ Set.Icc a a') {f : ℝ → ℝ}
  (hf : ContinuousOn 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) Ω‖ +
      2 * minimaxError f (Set.Icc a a') (2 * q + 1) * frobNorm Ω ^ 2 / ↑(Fintype.card m)

Full source on GitHub

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.