NLA-lib Explorer

NLAlib.Ops.Pair.multiply_writes

Library · theorem

This statement changed in the recorded rename: 2026-11-kernel-routines.

The judgment of NLAlib.Ops.Pair.multiplyRoutine read at cells: the output pair holds the two machine products. A corollary of NLAlib.Ops.Pair.multiplyRoutine_meets, kept because its caller holds the input pair as two cells of a matrix entry inside a fill rule.

NLAlib.Ops.Pair.multiply_writes {K Op Tst : Type} [Ops.Has Ops.ScalarOp Op] {M : Ops.Machine K}
  {I : Ops.Interp Op Tst K} (hI : Ops.IsScalar M I) {md : Ops.Mode} {τ : Ops.Tape K} {m : Ops.Mem K}
  {x c z : ℕ × ℕ} {ar ai a : K}
  (hxz : Ops.Fp.Disj (Ops.Store.inBlock x.1 x.2 2) (Ops.Store.inBlock z.1 z.2 2))
  (hcz : Ops.Fp.Disj (Ops.Store.inBlock c.1 c.2 1) (Ops.Store.inBlock z.1 z.2 2))
  (hxr : m.store.get x.1 x.2 = some ar) (hxi : m.store.get x.1 (x.2 + 1) = some ai)
  (hc : m.store.get c.1 c.2 = some a) (hz : z.2 + 2 ≤ m.store.len z.1) :
  Ops.Writes md I τ Ops.Pair.multiply (Ops.Env.frame [] [x, c, z]) (Ops.Store.inBlock z.1 z.2 2)
    (fun m' ↦ m'.pos = m.pos ∧ m'.store.readBlock z.1 z.2 2 = some [M.mul ar a, M.mul ai a]) m

Full source on GitHub

Import NLAlib.Ops.Blas.Pair.