NLAlib.Ops.sumPairwiseRoutine_meets
Library · theorem
Standard rounding
Pairwise summation meets the specification read off the relation of sum for the lengths n with ⌈log₂ n⌉ < k + 1, over an interpretation whose sum meets it for ⌈log₂ n⌉ < k: one level of the recursion. The two halves are summed into scratch cells by the operation sum, and the two partial sums are added.
NLAlib.Ops.sumPairwiseRoutine_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) (hu : 0 ≤ u) {k : ℕ}
(hS : Ops.IsSum dec (fun n ↦ (1 + u) ^ Nat.clog 2 n - 1) (fun n ↦ Nat.clog 2 n < k) I) :
Ops.sumPairwiseRoutine.Meets I
(Ops.Routine.Spec.ofRel (Ops.sumRel dec fun n ↦ (1 + u) ^ Nat.clog 2 n - 1) fun d ↦
Nat.clog 2 (d.headD 0) < k + 1)Import NLAlib.Ops.Blas.Sum.