NLA-lib Explorer

Matrix.IsHermitian.norm_trace_cfc_sub_slq_le_of_differentiableOn

Library ยท theorem

General form: sizes are index types

The error of stochastic Lanczos quadrature for analytic functions: let \mathbf{A} be Hermitian with spectrum in [a, a'], a < a', and let f, transported to [-1, 1] by the affine map onto [a, a'], extend to a function F holomorphic on the open Bernstein ellipse E_\rho, \rho > 1, with \lvert F\rvert \le \mathbf{M} there. Then for every test matrix \mathbf{\Omega} with m columns and every q, with 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{4\mathbf{M}}{\rho^{2q + 1}(\rho - 1)}\cdot \frac{\|\mathbf{\Omega}\|_{\mathsf{F}}^2}{m}\,, from the Chebyshev truncation of degree 2q + 1. [UbaruChenSaad2017, Theorem 4.1] (locator to check); the setting of their analysis, there with relative error for positive definite \mathbf{A}. Result: stochastic-lanczos-quadrature-error

Matrix.IsHermitian.norm_trace_cfc_sub_slq_le_of_differentiableOn.{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 : โ„ โ†’ โ„} {F : โ„‚ โ†’ โ„‚} {ฯ M : โ„} (hฯ : 1 < ฯ)
  (hFd : DifferentiableOn โ„‚ F (openBernsteinEllipse ฯ))
  (hM : Metric.IsUniformApproxOn F (fun x โ†ฆ 0) (openBernsteinEllipse ฯ) M)
  (hExt : Set.EqOn (fun t โ†ฆ โ†‘(f (((a' - a) * t + a' + a) / 2))) (fun t โ†ฆ F โ†‘t) (Set.Icc (-1) 1))
  (ฮฉ : Matrix n m ๐•œ) (q : โ„•) :
  โ€–(cfc f A).trace - slq A f ฮฉ (q + 1)โ€– โ‰ค
    โ€–(cfc f A).trace - girardHutchinson (cfc f A) ฮฉโ€– +
      4 * M / (ฯ ^ (2 * q + 1) * (ฯ - 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.