NLA-lib Explorer

NLAlib.Ops.Blas.pairwise_certifies_exact

Library · theorem

Exact arithmetic

Pairwise BLAS1 over exact scalar arithmetic satisfies the exact contracts at the lengths covered by the recursion depth.

NLAlib.Ops.Blas.pairwise_certifies_exact {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}
  {dec : K → ℝ} (hM : Ops.ExactModel dec M) (k : ℕ) :
  (Ops.Blas.pairwise k).Refines (fun I ↦ Ops.IsScalar M I) fun J ↦
    Ops.IsScalar M J ∧ Ops.IsExactBlas1 dec (fun n ↦ Nat.clog 2 n < k) J

Full source on GitHub

Import NLAlib.Ops.Profiles.BlasCert.