The eigenvalues of the Lanczos compression \mathbf{T}_k provide quadrature nodes; the squared first components of its normalized eigenvectors provide weights. The function, interval, and derivative assumptions determine which error bounds apply.
Lean statement and details
NLAlib.lanczosQuadrature.{u_1, u_2} {๐ : Type u_1} [RCLike ๐] {n : Type u_2} [Fintype n]
[DecidableEq n] (A : Matrix n n ๐) (b : n โ ๐) (q : โ) : Measure โ
Theorem (Lanczos quadrature is the Gauss rule of the spectral measure).
for Hermitian \mathbf{A} and every q, \mathsf{lanczosQuadrature}(\mathbf{A}, \mathbf{b}, q) is the q-point Gauss rule of \mu_{\mathbf{A},\mathbf{b}}, for every RCLike field (complex Hermitian included). [GolubMeurant2010, Ch. 6].
Lean statement and details
Matrix.IsHermitian.lanczosQuadrature_eq_gaussQuadrature.{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 : โ) : lanczosQuadrature A b q = gaussQuadrature (spectralMeasure A b) q