NLAlib.Ops.nrm2SumRoutine_meets
Library · theorem
Standard rounding
nrm2Sum meets the specification read off the relation of nrm2, over an interpretation whose sum has the error es: the squares are formed in a scratch block, summed, and the square root of the sum is taken in place.
NLAlib.Ops.nrm2SumRoutine_meets {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.nrm2SumRoutine.Meets I
(Ops.Routine.Spec.ofRel (Ops.nrm2Rel dec (fun n ↦ (1 + u) * (1 + es n) - 1) u) fun d ↦
ok (d.headD 0))Import NLAlib.Ops.Blas.Dot.