Theorem (Matrix.IsHermitian.lanczosFA_eq_lanczosMatrix).The Lanczos recurrence computes Lanczos-FA, for Hermitian \mathbf{A} and every q: \mathsf{lanczosFA}(\mathbf{A}, f, \mathbf{b}, q + 1) = \|\mathbf{b}\|\,\mathbf{Q}f(\mathbf{T})\mathbf{e}_0 with \mathbf{Q} and \mathbf{T} from q + 1 steps of the recurrence. [Saad1992, Β§2].
Headline (provisional)
Lean statement and details
Matrix.IsHermitian.lanczosFA_eq_lanczosMatrix.{u_1, u_2} {π : Type u_1} [RCLike π] {n : Type u_2}
[Fintype n] [DecidableEq n] {A : Matrix n n π} (hA : A.IsHermitian) (f : β β β) (b : n β π)
(q : β) :
lanczosFA A f b (q + 1) =
ββWithLp.toLp 2 bβ β’
lanczosMatrix A b (q + 1) *α΅₯ cfc f (lanczosTridiagonal A b (q + 1)) *α΅₯ Pi.single 0 1
Theorem (lanczosFA_eq_arnoldiMatrix).The Lanczos basis yields Lanczos-FA, for every \mathbf{A} and every q: with \mathbf{Q} = \mathsf{arnoldiMatrix}(\mathbf{A}, \mathbf{b}, q + 1) the canonical basis of \mathcal{K}_{q+1}(\mathbf{A}, \mathbf{b}) (zero columns past the grade) and \mathbf{T} = \mathbf{Q}^{\mathsf{H}}\mathbf{A}\mathbf{Q}, \mathsf{lanczosFA}(\mathbf{A}, f, \mathbf{b}, q + 1) = \|\mathbf{b}\|\,\mathbf{Q}f(\mathbf{T})\mathbf{e}_0, by the partial-isometry form compressedCfc_eq_of_mul_conjTranspose_mul_self and \mathbf{Q}^{\mathsf{H}}\mathbf{b} = \|\mathbf{b}\|\mathbf{e}_0 (conjTranspose_arnoldiMatrix_mulVec_self). [Saad1992, Β§2].
Lean statement and details
NLAlib.lanczosFA_eq_arnoldiMatrix.{u_1, u_2} {π : Type u_1} [RCLike π] {n : Type u_2} [Fintype n]
[DecidableEq n] (A : Matrix n n π) (f : β β β) (b : n β π) (q : β) :
lanczosFA A f b (q + 1) =
ββWithLp.toLp 2 bβ β’
arnoldiMatrix A b (q + 1) *α΅₯
cfc f ((arnoldiMatrix A b (q + 1))α΄΄ * A * arnoldiMatrix A b (q + 1)) *α΅₯ Pi.single 0 1