NLA-lib Explorer

Past k_\star(\delta) the true residual is the gap

Library · Result group

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.

Headline (provisional)

Lean statement and details
NLAlib.CGRun.abs_norm_sub_mulVec_x_sub_norm_gap_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.ε) {δ : ℝ} (hδ : 0 < δ) {j : ℕ} (hkj : cgKStar (a' / a) C.ε δ ≤ j) (hj : j ≤ k) :
  |‖WithLp.toLp 2 (C.b - C.A *ᵥ C.x j)‖ - ‖WithLp.toLp 2 (C.b - C.A *ᵥ C.x j - C.r j)‖| ≤
    8 * δ * C.ε * ‖WithLp.toLp 2 C.b‖

Full source on GitHub

Copy link

Other forms

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.

Lean statement and details
NLAlib.CGRun.norm_sub_mulVec_x_sub_r_le {n k : ℕ} (C : CGRun n k) :
  ‖WithLp.toLp 2 (C.b - C.A *ᵥ C.x k - C.r k)‖ ≤
    C.ε *
      ∑ j ∈ Finset.range k,
        (specNorm C.A * (‖WithLp.toLp 2 (C.x j)‖ + 4 * C.γ j * ‖WithLp.toLp 2 (C.p j)‖) + C.ρ j)

Full source on GitHub

Copy link

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)

Full source on GitHub

Copy link

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.

Lean statement and details
NLAlib.CGRun.norm_sub_mulVec_x_sub_r_le_norm_b {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)
  {j : ℕ} (hj : j ≤ k) :
  ‖WithLp.toLp 2 (C.b - C.A *ᵥ C.x j - C.r j)‖ ≤ 12 * ↑j * C.ε * (a' / a) * ‖WithLp.toLp 2 C.b‖

Full source on GitHub

Copy link

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‖

Full source on GitHub

Copy link