Theorem (Matrix.PosDef.re_quadForm_sub_cgIterate_le_residualMinimax_sq_mul). The spectrum-optimal bound for CG: for positive definite \mathbf{A} and \mathbf{A}\mathbf{x}_\star = \mathbf{b}, \|\mathbf{x}_\star - \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\|_{\mathbf{A}}^2 \le \mathsf{residualMinimax}(\sigma(\mathbf{A}), q)^2 \|\mathbf{x}_\star - \mathbf{x}_0\|_{\mathbf{A}}^2 \,, where \mathsf{residualMinimax}(\sigma(\mathbf{A}), q) = \min_{p}\max_{\lambda \in \sigma(\mathbf{A})}\lvert p(\lambda) \rvert, the minimum over real p with \deg p \le q, p(0) = 1. Every other bound of this file follows from it by bounding the minimax value. For each \mathbf{A} some \mathbf{b} attains it (Greenbaum): Matrix.PosDef.exists_re_quadForm_sub_cgIterate_eq_residualMinimax_sq_mul and Matrix.PosDef.isGreatest_re_quadForm_sub_cgIterate_div in NLAlib.Krylov.LinearSystems.WorstCase. [Greenbaum1997, ยง3.1]; locator to verify. [Saad2003, Theorem 6.29]; its proof gives this bound, with the maximum over the eigenvalues, before passing to an interval, for real symmetric \mathbf{A}.
Headline
Lean statement and details
Matrix.PosDef.re_quadForm_sub_cgIterate_le_residualMinimax_sq_mul.{u_1, u_2} {๐ : Type u_1}
[RCLike ๐] {n : Type u_2} [Fintype n] [DecidableEq n] {A : Matrix n n ๐} (hA : A.PosDef)
{b xs : n โ ๐} (hxs : A *แตฅ xs = b) (xโ : n โ ๐) (q : โ) :
RCLike.re (quadForm A (xs - cgIterate A b xโ q)) โค
residualMinimax (spectrum โ A) q ^ 2 * RCLike.re (quadForm A (xs - xโ))