Theorem (Matrix.PosDef.exists_re_quadForm_sub_cgIterate_eq_residualMinimax_sq_mul). The spectrum-minimax bound for CG is attained (Greenbaum): for n nonempty and positive definite \mathbf{A}, every start \mathbf{x}_0 and every q there is a solution \mathbf{x}_\star \ne \mathbf{x}_0 with, for \mathbf{b} = \mathbf{A}\mathbf{x}_\star, \|\mathbf{x}_\star - \mathsf{cgIterate}(\mathbf{A}, \mathbf{b}, \mathbf{x}_0, q)\|_{\mathbf{A}}^2 = \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. So Matrix.PosDef.re_quadForm_sub_cgIterate_le_residualMinimax_sq_mul cannot be improved for any spectrum. The interval case with an explicit instance is re_quadForm_sub_cgIterate_chebyshevExtremaMatrix. The initial error carries the dual weights w_\lambda of exists_residualMinimax_sq_le_sum_mul_norm_sq, divided by \lambda, as its spectral weights. [Greenbaum1979]; [Greenbaum1997, §3.1]; locators to verify.
Headline (provisional) General form: sizes are index types
Lean statement and details
Matrix.PosDef.exists_re_quadForm_sub_cgIterate_eq_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)
[Nonempty n] (x₀ : n → 𝕜) (q : ℕ) :
∃ xs,
xs ≠ x₀ ∧
RCLike.re (quadForm A (xs - cgIterate A (A *ᵥ xs) x₀ q)) =
residualMinimax (spectrum ℝ A) q ^ 2 * RCLike.re (quadForm A (xs - x₀))