Theorem (CGRun.abs_norm_sub_mulVec_x_sub_norm_gap_le).Past k_\star(\delta) the true residual is the gap up to \delta times the gap's level: 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, \delta > 0 and k_\star(\kappa, \varepsilon, \delta) \le j \le k, \bigl\lvert\|\mathbf{b} - \mathbf{A}\mathbf{x}_j\| - \|\mathbf{b} - \mathbf{A}\mathbf{x}_j - \mathbf{r}_j\|\bigr\rvert \le 8\delta\varepsilon\|\mathbf{b}\| . No printed source.
Theorem (CGRun.norm_sub_mulVec_x_sub_r_le).The residual gap (true minus updated residual): with \mathbf{x}_0 = \mathbf{0}, \mathbf{r}_0 = \mathbf{b}, \|(\mathbf{b} - \mathbf{A}\mathbf{x}_k) - \mathbf{r}_k\| \le \varepsilon\sum_{j<k} \bigl(\|\mathbf{A}\|_2(\|\mathbf{x}_j\| + 4\gamma_j\|\mathbf{p}_j\|) + \|\mathbf{r}_j\|\bigr) . [Greenbaum1997SIMAX]; [StrakosTichy2002, (7.16)], there with \|\mathbf{x}\| + \max_j\|\mathbf{x}_j\| and +O(\varepsilon^2). Local: no Lanczos reduction, no \kappa. [BakeCarsonMa2025, Theorem 1] gives a related PCG gap bound through the same telescoping mechanism, retaining a maximum-iterate factor.
Theorem (CGRun.norm_sub_mulVec_x_sub_r_le_energy).The residual gap, a priori: 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 \mathbf{A}\mathbf{x}_\star = \mathbf{b}, with \mathbf{M} = \|\mathbf{x}_\star\| + \|\mathbf{x}_\star\|_{\mathbf{A}}/\sqrt{a}, \|\mathbf{b} - \mathbf{A}\mathbf{x}_k - \mathbf{r}_k\| \le 11\,k\,\varepsilon\,a'\mathbf{M} . [Greenbaum1997SIMAX]; [StrakosTichy2002, (7.16)], there with \|\mathbf{x}_\star\| + \max_j\|\mathbf{x}_j\| (a posteriori) and +O(\varepsilon^2); here \max_j\|\mathbf{x}_j\| \le 1.001\mathbf{M} is proved (NLAlib.CGRun.norm_x_le).
Lean statement and details
NLAlib.CGRun.norm_sub_mulVec_x_sub_r_le_energy {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)
{xs : Fin n → ℝ} (hx : C.A *ᵥ xs = C.b) :
‖WithLp.toLp 2 (C.b - C.A *ᵥ C.x k - C.r k)‖ ≤
11 * ↑k * C.ε * a' * (‖WithLp.toLp 2 xs‖ + √(quadForm C.A xs) / √a)
Theorem (CGRun.norm_sub_mulVec_x_sub_r_le_norm_b).The residual gap, a priori, in \|\mathbf{b}\|: 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 j \le k, \|\mathbf{b} - \mathbf{A}\mathbf{x}_j - \mathbf{r}_j\| \le 12\,j\,\varepsilon\,\kappa\, \|\mathbf{b}\| . No solution is needed in the statement. No printed source.
Theorem (CGRun.norm_sub_mulVec_x_sub_r_le_norm_sol).The residual gap, a priori, in \|\mathbf{x}_\star\|: 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 \mathbf{A}\mathbf{x}_\star = \mathbf{b}, \|\mathbf{b} - \mathbf{A}\mathbf{x}_k - \mathbf{r}_k\| \le 22\,k\,\varepsilon\sqrt{\kappa}\, a'\|\mathbf{x}_\star\| .\sqrt{\kappa} worse than the folklore O(k\varepsilon)a'\|\mathbf{x}_\star\|, which rests on a Euclidean monotonicity of the errors not known in finite precision. No printed source.
Lean statement and details
NLAlib.CGRun.norm_sub_mulVec_x_sub_r_le_norm_sol {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)
{xs : Fin n → ℝ} (hx : C.A *ᵥ xs = C.b) :
‖WithLp.toLp 2 (C.b - C.A *ᵥ C.x k - C.r k)‖ ≤ 22 * ↑k * C.ε * √(a' / a) * a' * ‖WithLp.toLp 2 xs‖