NLA-lib Explorer

NLAlib.Ops.Examples.exists_isBlas1_isExactMatvec_pairwise

Library · theorem

The same contracts can be met jointly for pairwise summation at every recursion depth, on precisely the lengths covered by that depth.

NLAlib.Ops.Examples.exists_isBlas1_isExactMatvec_pairwise {Op Tst : Type}
  [Ops.Has Ops.OperatorOp Op] [Ops.Has Ops.Blas1Op Op] [Ops.Has Ops.ScalarOp Op]
  [Ops.Apart Ops.Blas1Op Ops.ScalarOp Op] [Ops.Apart Ops.Blas1Op Ops.OperatorOp Op]
  [Ops.Apart Ops.ScalarOp Ops.OperatorOp Op] {u : ℝ} (hu : 0 ≤ u) (k : ℕ) {m n : ℕ}
  (A : Matrix (Fin m) (Fin n) ℝ) :
  ∃ J,
    Ops.StdModel u id Ops.exactMachine ∧
      Ops.IsScalar Ops.exactMachine J ∧
        Ops.IsBlas1 id (Ops.Blas.pairwise.err u) (fun r ↦ Nat.clog 2 r < k) J ∧
          Ops.IsExactMatvec id A J

Full source on GitHub

Import NLAlib.Ops.Examples.Bilinear.