Theorem (Computation.IsDotTrace.exists_eq_sum_mul_one_add). Backward error of an inner product [Higham2002, §3.1], (3.4) there, with the factor of [CarsonMaShao2026, (3)]: under the standard model with unit roundoff 0 \le u < 1, the result s_n of a trace of recursive accumulation is the exact inner product of slightly perturbed data, s_n = \sum_{k<n} \mathbf{x}_k y_k (1 + \eta_k)\,, \qquad \lvert \eta_k \rvert \le \gamma_n = (1 - u)^{-n} - 1\,, with no condition on nu.
Headline
Lean statement and details
NLAlib.Computation.IsDotTrace.exists_eq_sum_mul_one_add {u : ℝ} {n : ℕ} {x y s : ℕ → ℝ}
(h : Computation.IsDotTrace (fun x ↦ Computation.RelErr u) x y n s) (hu : 0 ≤ u) (hu1 : u < 1) :
∃ η,
(∀ k < n, |η k| ≤ Computation.roundingFactor n u) ∧
s n = ∑ k ∈ Finset.range n, x k * y k * (1 + η k)