Theorem (Matrix.IsHermitian.gmresIterate_eq_lanczosMatrix). The Lanczos recurrence yields MINRES: for Hermitian \mathbf{A} and every q, \mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q) = \mathbf{x}_0 + \|\mathbf{r}_0\|\,\mathbf{Q}_q\underline{\mathbf{T}}_q^{+}\mathbf{e}_0 with \mathbf{Q}_q and \underline{\mathbf{T}}_q computed by the Lanczos recurrence from \mathbf{r}_0, with no grade hypothesis. [PaigeSaunders1975, §6]; [Greenbaum1997, §2.5]; the second locator to verify. Paige and Saunders put the Lanczos vectors into the minimum residual problem (2.7) through (6.1) and (6.2), for real symmetric \mathbf{A} and up to termination.
Headline
Lean statement and details
Matrix.IsHermitian.gmresIterate_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) (b x₀ : n → 𝕜) (q : ℕ) :
gmresIterate A b x₀ q =
x₀ +
↑‖WithLp.toLp 2 (b - A *ᵥ x₀)‖ •
lanczosMatrix A (b - A *ᵥ x₀) q *ᵥ
pinv ((lanczosTridiagonal A (b - A *ᵥ x₀) (q + 1)).submatrix id Fin.castSucc) *ᵥ
Pi.single 0 1