NLA-lib Explorer

Attainable accuracy, a priori

Library · Result group

Theorem (CGRun.norm_sub_mulVec_x_cgKStar_le). Attainable accuracy, a priori: for a CG run with spectrum in [a,a'], a>0, \kappa=a'/a, \varepsilon > 0, \mathbf{A}\mathbf{x}_\star =\mathbf{b}, k \ge k_\star = k_\star(\kappa, \varepsilon, 1) and the horizon condition at k_\star only, (k_\star)^2\sqrt{k_\star}\,\varepsilon\kappa^2 \le 10^{-5}, with \kappa' = 2\kappa + 1, \ell = \ln(\sqrt{\kappa'}/(4\varepsilon)) and \mathbf{M} = \|\mathbf{x}_\star\| + \|\mathbf{x}_\star\|_{\mathbf{A}}/\sqrt{a}, \|\mathbf{b} - \mathbf{A}\mathbf{x}_{k_\star}\| \le \Bigl(\frac{11}{2}(\sqrt{\kappa'} + 1)\,\ell + 19\Bigr)\varepsilon\,a'\mathbf{M} , an attainable relative residual of order \kappa\ln(1/\varepsilon)\,\varepsilon (one \sqrt{\kappa} from \mathbf{M} \le (1 + \sqrt{\kappa})\|\mathbf{x}_\star\|, one from k_\star \propto \sqrt{\kappa}). NLAlib.cgKStar_cube_mul_le gives a stronger sufficient condition at k_\star from \kappa^{7/2}\varepsilon\ell^3 \le 7 \cdot 10^{-7}. No printed source.

Headline (provisional)

Lean statement and details
NLAlib.CGRun.norm_sub_mulVec_x_cgKStar_le {n k : ℕ} (C : CGRun n k) {a a' : ℝ} (ha : 0 < a)
  (hs : spectrum ℝ C.A ⊆ Set.Icc a a') (hε : 0 < C.ε) (hk : cgKStar (a' / a) C.ε 1 ≤ k)
  (hsmall :
    ↑(cgKStar (a' / a) C.ε 1) ^ 2 * √↑(cgKStar (a' / a) C.ε 1) * 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 (cgKStar (a' / a) C.ε 1))‖ ≤
    (11 / 2 * (√(2 * (a' / a) + 1) + 1) * Real.log (√(2 * (a' / a) + 1) / (4 * 1 * C.ε)) + 19) *
          C.ε *
        a' *
      (‖WithLp.toLp 2 xs‖ + √(quadForm C.A xs) / √a)

Full source on GitHub

Copy link

Other forms

Theorem (CGRun.norm_sub_mulVec_x_le). The true residual: 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 \kappa' = 2\kappa + 1, q = (\sqrt{\kappa'} - 1)/(\sqrt{\kappa'} + 1) and \mathbf{M} = \|\mathbf{x}_\star\| + \|\mathbf{x}_\star\|_{\mathbf{A}}/\sqrt{a}, \|\mathbf{b} - \mathbf{A}\mathbf{x}_k\| \le 2\sqrt{\kappa'}\,q^k\|\mathbf{b}\| + 11\,k\,\varepsilon\,a'\mathbf{M} . No printed source.

Lean statement and details
NLAlib.CGRun.norm_sub_mulVec_x_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)
  {xs : Fin n → ℝ} (hx : C.A *ᵥ xs = C.b) :
  ‖WithLp.toLp 2 (C.b - C.A *ᵥ C.x k)‖ ≤
    2 * √(2 * (a' / a) + 1) * ((√(2 * (a' / a) + 1) - 1) / (√(2 * (a' / a) + 1) + 1)) ^ k *
        ‖WithLp.toLp 2 C.b‖ +
      11 * ↑k * C.ε * a' * (‖WithLp.toLp 2 xs‖ + √(quadForm C.A xs) / √a)

Full source on GitHub

Copy link

Theorem (CGRun.norm_sub_mulVec_x_le_norm_b_of_cgKStar_le). Attainable accuracy 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 \varepsilon > 0 and k \ge k_\star(\kappa, \varepsilon, 1), \|\mathbf{b} - \mathbf{A}\mathbf{x}_k\| \le (12k + 8)\,\varepsilon\,\kappa\,\|\mathbf{b}\|. No printed source.

Lean statement and details
NLAlib.CGRun.norm_sub_mulVec_x_le_norm_b_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.ε)
  (hk : cgKStar (a' / a) C.ε 1 ≤ k) :
  ‖WithLp.toLp 2 (C.b - C.A *ᵥ C.x k)‖ ≤ (12 * ↑k + 8) * C.ε * (a' / a) * ‖WithLp.toLp 2 C.b‖

Full source on GitHub

Copy link

Theorem (CGRun.norm_sub_mulVec_x_le_norm_sol_of_cgKStar_le). Attainable accuracy 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 \varepsilon > 0, \mathbf{A}\mathbf{x}_\star = \mathbf{b} and k \ge k_\star(\kappa, \varepsilon, 1), \|\mathbf{b} - \mathbf{A}\mathbf{x}_k\| \le (22k + 8)\,\varepsilon\sqrt{\kappa}\,a' \|\mathbf{x}_\star\| . No printed source.

Lean statement and details
NLAlib.CGRun.norm_sub_mulVec_x_le_norm_sol_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)‖ ≤ (22 * ↑k + 8) * C.ε * √(a' / a) * a' * ‖WithLp.toLp 2 xs‖

Full source on GitHub

Copy link

Theorem (CGRun.norm_sub_mulVec_x_le_of_cgKStar_le). 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.

Lean statement and details
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)

Full source on GitHub

Copy link

Theorem (CGRun.norm_sub_x_le_of_cgKStar_le). The forward error 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{x}_\star - \mathbf{x}_k\| \le (11k + 8)\,\varepsilon\,\kappa\,\mathbf{M}. No printed source.

Lean statement and details
NLAlib.CGRun.norm_sub_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 (xs - C.x k)‖ ≤
    (11 * ↑k + 8) * C.ε * (a' / a) * (‖WithLp.toLp 2 xs‖ + √(quadForm C.A xs) / √a)

Full source on GitHub

Copy link