NLA-lib Explorer

NLAlib.Ops.Blas.sumPairwise_certifies

Library · theorem

Standard rounding

One level of pairwise summation: from the lengths of depth below k to those of depth below k + 1.

NLAlib.Ops.Blas.sumPairwise_certifies {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op]
  [Ops.Has Ops.Blas1Op Op] [Ops.Apart Ops.Blas1Op Ops.ScalarOp Op] [Inhabited K] {M : Ops.Machine K}
  {u : ℝ} {dec : K → ℝ} (hM : Ops.StdModel u dec M) (hu : 0 ≤ u) (k : ℕ) :
  Ops.Blas.sumPairwise.Refines
    (fun I ↦ Ops.IsScalar M I ∧ Ops.IsSum dec (Ops.Blas.pairSumErr u) (fun n ↦ Nat.clog 2 n < k) I)
    fun J ↦
    Ops.IsScalar M J ∧ Ops.IsSum dec (Ops.Blas.pairSumErr u) (fun n ↦ Nat.clog 2 n < k + 1) J

Full source on GitHub

Import NLAlib.Ops.Profiles.BlasCert.