NLA-lib Explorer

NLAlib.Ops.sumSeq_satisfies

Library · theorem

Standard rounding

Sequential summation satisfies the contract of sum with the error (1 + u) ^ (n - 1) - 1, for every length: a consequence of the judgment of its routine.

NLAlib.Ops.sumSeq_satisfies {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Inhabited K]
  {M : Ops.Machine K} {I : Ops.Interp Op Tst K} (hI : Ops.IsScalar M I) {u : ℝ} {dec : K → ℝ}
  (hM : Ops.StdModel u dec M) (hu : 0 ≤ u) (ok : ℕ → Prop) :
  Ops.sumSeqRoutine.impl.Satisfies I Ops.Mode.total
    ((Ops.sumRel dec fun n ↦ (1 + u) ^ (n - 1) - 1).spec (Ops.OutApart ok))

Full source on GitHub

Import NLAlib.Ops.Blas.Sum.