NLAlib.Computation.exists_eq_mul_one_add_sub_sum_of_relErr
Library · theorem
A running difference, with the errors carried forward. Let 0 \le u and let s_{k+1} be s_k - q_k with relative error u, for q_k the number c_k with relative error u, k < K. Then s_K = s_0(1 + \alpha) - \sum_{k<K} c_k(1 + \eta_k), with 1 + \alpha a product of K rounding factors and each 1 + \eta_k a product of K + 1. [Higham2002, §3.1].
NLAlib.Computation.exists_eq_mul_one_add_sub_sum_of_relErr {u : ℝ} {c s : ℕ → ℝ} (hu : 0 ≤ u)
(K : ℕ)
(h : ∀ k < K, ∃ q, Computation.RelErr u (c k) q ∧ Computation.RelErr u (s k - q) (s (k + 1))) :
∃ α η,
Computation.IsRoundingProduct u K α ∧
(∀ k < K, Computation.IsRoundingProduct u (K + 1) (η k)) ∧
s K = s 0 * (1 + α) - ∑ k ∈ Finset.range K, c k * (1 + η k)Import NLAlib.Matrix.FinitePrecision.CholeskyTraceBounds.