NLAlib.CGRun.quadForm_sub_x_le_of_sum_add_le
Library · theorem
Headline of cg-delayed-energy-stopping
Certified delayed-energy stopping. For a successful k-step CG run with spectrum in [a,a'], a>0, k^2\sqrt{k}\varepsilon(a'/a)^2\le10^{-5}, solution \mathbf{A}\mathbf{x}_\star=\mathbf{b} and j+d\le k, suppose the terminal energy is at most T. If the delayed decrement sum plus T and the input-only rounding allowance of <!-- value cgEnergyEstimatorFactor j d --> 150d(j+d)\varepsilon(a'/a)\|\mathbf{b}\|^2/a is at most the requested tolerance, the physical energy at j is at most that tolerance. A small delayed sum alone is insufficient when the terminal tail or rounding allowance is large. No printed source. Result: cg-delayed-energy-stopping
NLAlib.CGRun.quadForm_sub_x_le_of_sum_add_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) {j d : ℕ} (hjd : j + d ≤ k) {tail tolerance : ℝ}
(hterminal : quadForm C.A (xs - C.x (j + d)) ≤ tail)
(hstop :
∑ i ∈ Finset.Ico j (j + d), C.γ i * C.ρ i ^ 2 +
cgEnergyEstimatorFactor j d * C.ε * (a' / a) * (‖WithLp.toLp 2 C.b‖ ^ 2 / a) +
tail ≤
tolerance) :
quadForm C.A (xs - C.x j) ≤ toleranceImport NLAlib.Krylov.FinitePrecision.CGEnergyEstimator.