NLA-lib Explorer

NLAlib.Ops.dotSum_satisfies

Library · theorem

Standard rounding

dotSum satisfies the contract of dot with the error (1 + u) (1 + es n) - 1, over an interpretation whose sum has the error es: a consequence of the judgment of its routine.

NLAlib.Ops.dotSum_satisfies {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op] [Ops.Has Ops.Blas1Op 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) {es : ℕ → ℝ} {ok : ℕ → Prop}
  (hS : Ops.IsSum dec es ok I) (hes : ∀ (n : ℕ), 0 ≤ es n) :
  Ops.dotSumRoutine.impl.Satisfies I Ops.Mode.total
    ((Ops.dotRel dec fun n ↦ (1 + u) * (1 + es n) - 1).spec (Ops.OutApart ok))

Full source on GitHub

Import NLAlib.Ops.Blas.Dot.