NLAlib.eq_gmresIterate_of_conjTranspose_mul_krylovMatrix_mulVec_sub_eq_zero
Library · theorem
Headline of gmres-petrov-galerkin
The Petrov–Galerkin condition characterises GMRES for invertible \mathbf{A}: with \mathbf{r}_0 = \mathbf{b} - \mathbf{A}\mathbf{x}_0, a vector \mathbf{y} of \mathbf{x}_0 + \mathcal{K}_q(\mathbf{A}, \mathbf{r}_0) with (\mathbf{A}\mathbf{K}_q(\mathbf{A}, \mathbf{r}_0))^{\mathsf{H}}(\mathbf{b} - \mathbf{A}\mathbf{y}) = \mathbf{0}, a residual orthogonal to \mathbf{A}\mathcal{K}_q(\mathbf{A}, \mathbf{r}_0), is \mathsf{gmresIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q). The parallel of Matrix.PosDef.eq_cgIterate_of_conjTranspose_krylovMatrix_mulVec_sub_eq_zero. [Saad2003, Proposition 5.3]; [Saad2003, §6.5]. Saad shows, for any square matrix, that this condition is equivalent to minimising the residual over \mathbf{x}_0 + \mathcal{K}, and GMRES is the method with \mathcal{K} = \mathcal{K}_q; invertibility makes the minimiser unique. Result: gmres-petrov-galerkin
NLAlib.eq_gmresIterate_of_conjTranspose_mul_krylovMatrix_mulVec_sub_eq_zero.{u_1, u_2}
{𝕜 : Type u_1} [RCLike 𝕜] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n 𝕜}
(hA : IsUnit A) {b x₀ y : n → 𝕜} {q : ℕ} (hy : y - x₀ ∈ krylovSpace A (b - A *ᵥ x₀) q)
(h : (A * krylovMatrix A (b - A *ᵥ x₀) q)ᴴ *ᵥ (b - A *ᵥ y) = 0) : y = gmresIterate A b x₀ qImport NLAlib.Krylov.LinearSystems.GMRES.