NLAlib.Ops.Examples.runs_bilinear_rounded
Library · theorem
Oracle: matrix–vector product
Every interpretation satisfying the two operation contracts computes the bilinear form within their two call counts and the declared scratch bound.
NLAlib.Ops.Examples.runs_bilinear_rounded {K Op Tst : Type} [Ops.Has Ops.OperatorOp Op]
[Ops.Has Ops.Blas1Op Op] [Inhabited K] {dec : K → ℝ} {m n : ℕ} {A : Matrix (Fin m) (Fin n) ℝ}
{e : ℕ → ℝ} {ok : ℕ → Prop} {J : Ops.Interp Op Tst K} (hA : Ops.IsExactMatvec dec A J)
(hD :
J.Satisfies Ops.Mode.total (Ops.Has.inj Ops.Blas1Op.dot)
((Ops.dotRel dec e).spec (Ops.OutApart ok)))
(hok : ok m) (W : Op → List ℕ → ℕ) {τ : Ops.Tape K} {x y z : ℕ × ℕ} {μ : Ops.Mem K}
{xs ys : List K} (hxz : x.1 ≠ z.1) (hyz : y.1 ≠ z.1) (hl : μ.Live [x, y, z])
(hx : μ.store.readBlock x.1 x.2 m = some xs) (hy : μ.store.readBlock y.1 y.2 n = some ys)
(hz : z.2 < μ.store.len z.1) :
Ops.ConditionalRuns J W τ Ops.Examples.bilinear (Ops.Env.frame [m, n] [x, y, z]) μ
(Ops.Examples.bilinearCount m n) (Ops.Examples.bilinearPeak W m n)
(Ops.Examples.BilinearRounded dec A (e m) z xs ys μ)Import NLAlib.Ops.Examples.Bilinear.