NLAlib.CGRun.abs_quadForm_sub_x_sub_sum_le
Library · theorem
For a successful k-step CG run with spectrum in [a,a'], a>0 and k^2\sqrt{k}\varepsilon(a'/a)^2\le10^{-5}, a solution \mathbf{A}\mathbf{x}_\star=\mathbf{b} and j+d\le k have absolute estimator error at most the terminal energy plus the rounding allowance, given by remainder <!-- value cgEnergyEstimatorFactor j d --> R_{j,d}=150d(j+d)\varepsilon(a'/a)\|\mathbf{b}\|^2/a. This exposes the accuracy needed of a delayed terminal-tail certificate.
NLAlib.CGRun.abs_quadForm_sub_x_sub_sum_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) :
|quadForm C.A (xs - C.x j) - ∑ i ∈ Finset.Ico j (j + d), C.γ i * C.ρ i ^ 2| ≤
quadForm C.A (xs - C.x (j + d)) +
cgEnergyEstimatorFactor j d * C.ε * (a' / a) * (‖WithLp.toLp 2 C.b‖ ^ 2 / a)Import NLAlib.Krylov.FinitePrecision.CGEnergyEstimator.