NLA-lib Explorer

Matrix.IsHermitian.lanczosFA_inv_eq_cgIterate

Library · theorem

Headline of lanczos-fa-cg

CG is Lanczos-FA for the inverse, for every Hermitian \mathbf{A}: \mathsf{lanczosFA}(\mathbf{A}, x \mapsto x^{-1}, \mathbf{b}, q) = \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{0}, q) (CG from the zero start), with Lean's 0^{-1} = 0 matching the pseudoinverse junk value of galerkinInverse. [ChenPersson2026, §1.1]; [Saad2003, §6.7]. Result: lanczos-fa-cg

Matrix.IsHermitian.lanczosFA_inv_eq_cgIterate.{u_1, u_2} {𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2}
  [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜} (hA : A.IsHermitian) (b : n → 𝕜) (q : ℕ) :
  lanczosFA A (fun x ↦ x⁻¹) b q = cgIterate A b 0 q

Full source on GitHub

Import NLAlib.Krylov.Functions.LanczosFA.