NLA-lib Explorer

NLAlib.Ops.Examples.abs_dec_srsumF_sub_le

Library · theorem

The sure error of the stochastically rounded sum, for every tape.

NLAlib.Ops.Examples.abs_dec_srsumF_sub_le {K : Type} [MeasurableSpace K] {u : ℝ} {dec : K → ℝ}
  {μ : Measure K} {g : K → K → K → K} (hg : Ops.Examples.SrModel u dec μ g) (hu : 0 ≤ u) (z₀ : K)
  (x : ℕ → K) (τ : Ops.Tape K) (p n : ℕ) :
  |dec (Ops.Examples.srsumF g z₀ x τ p n) - (dec z₀ + ∑ k ∈ Finset.range n, dec (x k))| ≤
    ((1 + 2 * u) ^ n - 1) * (|dec z₀| + ∑ k ∈ Finset.range n, |dec (x k)|)

Full source on GitHub

Import NLAlib.Ops.Examples.StochRound.