The residual gap and the attainable accuracy of finite-precision CG, a priori
Library · Source module
The residual gap and the attainable accuracy of finite-precision CG, a priori
For a conjugate gradient run C : NLAlib.CGRun n k on a matrix with spectrum in [a, a'], a > 0, \kappa = a'/a, under (H) k^2\sqrt{k}\,\varepsilon\kappa^2 \le 10^{-5} and \mathbf{A}\mathbf{x}_\star = \mathbf{b}, the computed iterates, the \mathbf{A}-norm error of the computed run and the residual gap \mathbf{g}_j = \mathbf{b} - \mathbf{A}\mathbf{x}_j - \mathbf{r}_j are bounded a priori: with \mathbf{M} = \|\mathbf{x}_\star\| + \|\mathbf{x}_\star\|_{\mathbf{A}}/\sqrt{a}, \|\mathbf{x}_j\| \le 1.001\,\mathbf{M},\qquad \|\mathbf{x}_\star - \mathbf{x}_j\|_{\mathbf{A}}^2 \le 1.001\,\|\mathbf{x}_\star\|_{\mathbf{A}}^2, \qquad \|\mathbf{g}_k\| \le 11\,k\,\varepsilon\,a'\mathbf{M} . The gap estimate of [MeurantStrakos2006, §5.4] depends on the maximum norm of an iterate; its a priori form there is heuristic. Here the iterate bound is proved under (H).
The proof is one joint induction (the private theorem gapErrorInduction) on the gap and the true \mathbf{A}-norm error E_j of the computed run: the descent \mathbf{p}_j^{\mathsf{T}}\mathbf{r}_j \ge 0.999\rho_j^2 (G1, from the line search defect), the step \gamma_j^2\mathbf{p}_j^{\mathsf{T}}\mathbf{A}\mathbf{p}_j \le 1.001\gamma_j\rho_j^2 (G2), \gamma_j\|\mathbf{p}_j\| \le 1.5\|\mathbf{b}\|/a through the model's \sum_j\gamma_j\rho_j^2 \le 2\|\mathbf{b}\|^2/a (G2′), and the one-step inequality for E_{j+1} (G3).
The attainable accuracy for \varepsilon > 0: after k_\star = \lceil\tfrac12(\sqrt{\kappa'} + 1)\ell\rceil steps, \kappa' = 2\kappa + 1, \ell = \ln(\sqrt{\kappa'}/(4\varepsilon)), the computed residual is below 8\varepsilon\|\mathbf{b}\| (NLAlib.CGRun.ρ_le_of_cgKStar_le, the Chebyshev bound of the model), so the true residual is the gap up to 8\varepsilon\|\mathbf{b}\|. Exact arithmetic is an admissible run with zero gap, so the computed residual is not necessarily smaller than the true residual. For any \delta > 0, the theorem gives \|\mathbf{r}_j\| \le 8\delta\varepsilon\|\mathbf{b}\| once j \ge k_\star(\kappa, \varepsilon, \delta), provided j \le k and (H) holds. Choosing a smaller \delta costs logarithmically more iterations. This is a decreasing upper envelope, not a claim that the residual norm decreases at every step or tends to zero at fixed precision. The gap estimate does not assert stagnation or a positive lower bound for the true residual.
Validity: for \varepsilon > 0, (H) requires k \le (10^{-5}/(\varepsilon\kappa^2))^{2/5}. Every requested residual tolerance must fit this finite horizon. The stronger cubic condition in NLAlib.cgKStar_cube_mul_le remains a sufficient condition at k_\star.
Related attainable-accuracy analysis for mixed-precision preconditioned CG appears in [BakeCarsonMa2025, Theorem 2]. Their argument uses an existential auxiliary-energy index, subject to their condition (91), and retains a maximum-iterate factor. Here unpreconditioned CG has an explicit Chebyshev threshold and a proved iterate bound under (H). The error models and hypotheses differ; this is not a formalization of their theorem or a comparison of its constants. Citation numbering refers to version 3 of that preprint.
Constants are unoptimised (maintainer, 2026-10-29: "do whatever is cleanest proof-wise").
Main definitions
* NLAlib.cgKStar: the number of steps after which the computed residual is at gap level.
Main results
* NLAlib.CGRun.p_dotProduct_r_ge, NLAlib.CGRun.γ_sq_mul_dotProduct_mulVec_le, NLAlib.CGRun.γ_mul_norm_p_le, NLAlib.CGRun.quadForm_sub_x_succ_le: the one-step lemmas. * NLAlib.CGRun.quadForm_sub_x_le_sub_sum, NLAlib.CGRun.quadForm_sub_x_le, NLAlib.CGRun.norm_x_le: the computed run's error and iterates, a priori. * NLAlib.CGRun.norm_sub_mulVec_x_sub_r_le_energy, NLAlib.CGRun.norm_sub_mulVec_x_sub_r_le_norm_sol, NLAlib.CGRun.norm_sub_mulVec_x_sub_r_le_norm_b: the residual gap, a priori. * NLAlib.CGRun.norm_sub_mulVec_x_le: the true residual. * NLAlib.CGRun.ρ_le_of_cgKStar_le, NLAlib.CGRun.abs_norm_sub_mulVec_x_sub_norm_gap_le, NLAlib.CGRun.norm_sub_mulVec_x_le_of_cgKStar_le, NLAlib.CGRun.norm_sub_x_le_of_cgKStar_le, NLAlib.CGRun.norm_sub_mulVec_x_cgKStar_le: the attainable accuracy.
Declarations
- NLAlib.CGRun.abs_norm_sub_mulVec_x_sub_norm_gap_le
- NLAlib.CGRun.abs_p_dotProduct_r_sub_le
- NLAlib.CGRun.norm_sub_mulVec_x_cgKStar_le
- NLAlib.CGRun.norm_sub_mulVec_x_le
- NLAlib.CGRun.norm_sub_mulVec_x_le_norm_b_of_cgKStar_le
- NLAlib.CGRun.norm_sub_mulVec_x_le_norm_sol_of_cgKStar_le
- NLAlib.CGRun.norm_sub_mulVec_x_le_of_cgKStar_le
- NLAlib.CGRun.norm_sub_mulVec_x_sub_r_le_energy
- NLAlib.CGRun.norm_sub_mulVec_x_sub_r_le_norm_b
- NLAlib.CGRun.norm_sub_mulVec_x_sub_r_le_norm_sol
- NLAlib.CGRun.norm_sub_x_le_of_cgKStar_le
- NLAlib.CGRun.norm_x_le
- NLAlib.CGRun.p_dotProduct_r_ge
- NLAlib.CGRun.p_dotProduct_r_ge_mul
- NLAlib.CGRun.quadForm_sub_x_le
- NLAlib.CGRun.quadForm_sub_x_le_sub_sum
- NLAlib.CGRun.quadForm_sub_x_succ_le
- NLAlib.CGRun.quadForm_sub_x_succ_le_sub_add
- NLAlib.CGRun.γ_mul_norm_p_le
- NLAlib.CGRun.γ_sq_mul_dotProduct_mulVec_le
- NLAlib.CGRun.γ_sq_mul_dotProduct_mulVec_le_mul
- NLAlib.CGRun.ρ_le_of_cgKStar_le
- NLAlib.cgKStar
- NLAlib.cgKStar_cube_mul_le
- NLAlib.cgKStar_pos
- NLAlib.pow_le_of_cgKStar_le