NLA-lib Explorer

Lanczos-FA and the minimax error

Library Β· Result group

Theorem (Matrix.IsHermitian.norm_cfc_mulVec_sub_lanczosFA_le_of_continuousOn). Lanczos-FA and the minimax error: for Hermitian \mathbf{A} with spectrum in [a, a'] and f continuous on [a, a'], q + 1 steps of Lanczos-FA satisfy \|f(\mathbf{A})\mathbf{b} - \mathsf{lanczosFA}(\mathbf{A}, f, \mathbf{b}, q + 1)\| \le 2E_q(f; [a, a'])\|\mathbf{b}\|\,, E_q the error of the best uniform approximation of f on [a, a'] by polynomials of degree at most q (minimaxError). [ChenPersson2026, (2)]; [Saad1992, Β§3]; there with E_q.

Headline (provisional)

Lean statement and details
Matrix.IsHermitian.norm_cfc_mulVec_sub_lanczosFA_le_of_continuousOn.{u_1, u_2} {π•œ : Type u_1}
  [RCLike π•œ] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n π•œ} (hA : A.IsHermitian)
  {a a' : ℝ} (hs : spectrum ℝ A βŠ† Set.Icc a a') {f : ℝ β†’ ℝ} (hf : ContinuousOn f (Set.Icc a a'))
  (b : n β†’ π•œ) (q : β„•) :
  β€–WithLp.toLp 2 (cfc f A *α΅₯ b - lanczosFA A f b (q + 1))β€– ≀
    2 * minimaxError f (Set.Icc a a') q * β€–WithLp.toLp 2 bβ€–

Full source on GitHub

Copy link

Other forms

Theorem (Matrix.IsHermitian.norm_cfc_mulVec_sub_lanczosFA_le_of_differentiableOn). Lanczos-FA for analytic functions: let \mathbf{A} be Hermitian with spectrum in [a, a'], a < a', and let f on [a, a'], pulled back to [-1, 1] by t \mapsto ((a' - a)t + a' + a)/2, extend to a function holomorphic and bounded by \mathbf{M} on the open Bernstein ellipse E_\rho, \rho > 1. Then q + 1 steps give \|f(\mathbf{A})\mathbf{b} - \mathsf{lanczosFA}(\mathbf{A}, f, \mathbf{b}, q + 1)\| \le \frac{4\mathbf{M}}{\rho^q(\rho - 1)}\|\mathbf{b}\|\,, from the uniform bound and the Chebyshev truncation of degree q. [Saad1992, Theorem 3.4] (locator to check); [Trefethen2019, Theorem 8.2] (locator to check), the approximation rate; constants composed here.

Lean statement and details
Matrix.IsHermitian.norm_cfc_mulVec_sub_lanczosFA_le_of_differentiableOn.{u_1, u_2} {π•œ : Type u_1}
  [RCLike π•œ] {n : Type u_2} [Fintype n] [DecidableEq n] {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))
  (b : n β†’ π•œ) (q : β„•) :
  β€–WithLp.toLp 2 (cfc f A *α΅₯ b - lanczosFA A f b (q + 1))β€– ≀
    4 * M / (ρ ^ q * (ρ - 1)) * β€–WithLp.toLp 2 bβ€–

Full source on GitHub

Copy link

Theorem (Matrix.IsHermitian.norm_cfc_mulVec_sub_lanczosFA_le_of_isUniformApproxOn). The uniform approximation bound: for Hermitian \mathbf{A} with spectrum in [a, a'], if a real polynomial p of degree less than q is within \varepsilon of f on [a, a'], then \|f(\mathbf{A})\mathbf{b} - \mathsf{lanczosFA}(\mathbf{A}, f, \mathbf{b}, q)\| \le 2\varepsilon\|\mathbf{b}\|: Lanczos-FA is exact on p, and f - p is at most \varepsilon on the spectrum of \mathbf{A} and on the Ritz values. [ChenPersson2026, (2)]; [Saad1992, Β§3].

Lean statement and details
Matrix.IsHermitian.norm_cfc_mulVec_sub_lanczosFA_le_of_isUniformApproxOn.{u_1, u_2} {π•œ : Type u_1}
  [RCLike π•œ] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n π•œ} (hA : A.IsHermitian)
  {a a' : ℝ} (hs : spectrum ℝ A βŠ† Set.Icc a a') {f : ℝ β†’ ℝ} {q : β„•} {p : Polynomial ℝ}
  (hp : p.degree < ↑q) {Ξ΅ : ℝ}
  (hΞ΅ : Metric.IsUniformApproxOn (fun x ↦ Polynomial.eval x p) f (Set.Icc a a') Ξ΅) (b : n β†’ π•œ) :
  β€–WithLp.toLp 2 (cfc f A *α΅₯ b - lanczosFA A f b q)β€– ≀ 2 * Ξ΅ * β€–WithLp.toLp 2 bβ€–

Full source on GitHub

Copy link

Theorem (Matrix.IsHermitian.norm_cfc_mulVec_sub_lanczosFA_le_of_lipschitzOnWith). Lanczos-FA for Lipschitz functions: for Hermitian \mathbf{A} with spectrum in [a, a'], a < a', and f L-Lipschitz on [a, a'], q + 1 steps give <!-- value jacksonApproximationConstant --> \|f(\mathbf{A})\mathbf{b} - \mathsf{lanczosFA}(\mathbf{A}, f, \mathbf{b}, q + 1)\| \le \frac{\pi L(a' - a)}{q + 2}\|\mathbf{b}\|\,, from the uniform bound and Jackson's theorem on [a, a'] in degree q (the constant is jacksonApproximationConstant). No printed source for this composition; the approximation step is [ChenTrogdonUbaru2022, Appendix C, Theorem 38].

Lean statement and details
Matrix.IsHermitian.norm_cfc_mulVec_sub_lanczosFA_le_of_lipschitzOnWith.{u_1, u_2} {π•œ : Type u_1}
  [RCLike π•œ] {n : Type u_2} [Fintype n] [DecidableEq n] {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')) (b : n β†’ π•œ) (q : β„•) :
  β€–WithLp.toLp 2 (cfc f A *α΅₯ b - lanczosFA A f b (q + 1))β€– ≀
    jacksonApproximationConstant * ↑L * (a' - a) / (↑q + 2) * β€–WithLp.toLp 2 bβ€–

Full source on GitHub

Copy link