Theorem (CGRun.quadForm_sub_x_le_sub_sum_add). Physical energy and computed decrements. For a successful k-step CG run with spectrum in [a,a'], a>0, \kappa=a'/a and k^2\sqrt{k}\varepsilon\kappa^2\le10^{-5}, a solution \mathbf{A}\mathbf{x}_\star=\mathbf{b} satisfies for j\le k, with error <!-- value cgEnergyFactor j --> R_j=135j^2\varepsilon\kappa\|\mathbf{b}\|^2/a, \|\mathbf{x}_\star-\mathbf{x}_j\|_{\mathbf{A}}^2\le \|\mathbf{x}_\star\|_{\mathbf{A}}^2-\sum_{i<j}\gamma_i\|\mathbf{r}_i\|^2+R_j . The coefficient of the computed decrement sum is exactly one. No printed source.
Headline
Lean statement and details
NLAlib.CGRun.quadForm_sub_x_le_sub_sum_add {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) {j : ℕ} (hj : j ≤ k) :
quadForm C.A (xs - C.x j) ≤
quadForm C.A xs - ∑ i ∈ Finset.range j, C.γ i * C.ρ i ^ 2 +
cgEnergyFactor j * C.ε * (a' / a) * (‖WithLp.toLp 2 C.b‖ ^ 2 / a)