NLAlib.CGRun.norm_sub_mulVec_x_le_of_cgKStar_le
Library · theorem
Attainable accuracy at a prescribed step: for a k-step CG run with spectrum in [a,a'], a>0, \kappa=a'/a and k^2\sqrt{k}\varepsilon\kappa^2\le10^{-5}, for \varepsilon > 0, \mathbf{A}\mathbf{x}_\star = \mathbf{b} and k \ge k_\star(\kappa, \varepsilon, 1), with \mathbf{M} = \|\mathbf{x}_\star\| + \|\mathbf{x}_\star\|_{\mathbf{A}}/\sqrt{a}, \|\mathbf{b} - \mathbf{A}\mathbf{x}_k\| \le (11k + 8)\,\varepsilon\,a'\mathbf{M} . The bound grows linearly in k: the iterate-update contribution to the gap is not bounded by the decaying computed residual (as in [Greenbaum1997SIMAX]). The bound is smallest at k_\star (NLAlib.CGRun.norm_sub_mulVec_x_cgKStar_le); this does not identify the iterate with the smallest actual error. Related attainable-accuracy bounds appear in [BakeCarsonMa2025, Theorem 2], for mixed-precision PCG at some iterate up to a conditional existential index; here the step is prescribed and the finite-horizon condition is explicit. Result: cg-finite-precision-accuracy
NLAlib.CGRun.norm_sub_mulVec_x_le_of_cgKStar_le {n k : ℕ} (C : CGRun n k) {a a' : ℝ} (ha : 0 < a)
(hs : spectrum ℝ C.A ⊆ Set.Icc a a') (hsmall : ↑k ^ 2 * √↑k * C.ε * (a' / a) ^ 2 ≤ 1 / 10 ^ 5)
(hε : 0 < C.ε) {xs : Fin n → ℝ} (hx : C.A *ᵥ xs = C.b) (hk : cgKStar (a' / a) C.ε 1 ≤ k) :
‖WithLp.toLp 2 (C.b - C.A *ᵥ C.x k)‖ ≤
(11 * ↑k + 8) * C.ε * a' * (‖WithLp.toLp 2 xs‖ + √(quadForm C.A xs) / √a)Import NLAlib.Krylov.FinitePrecision.CGAccuracy.