NLA-lib Explorer

NLAlib.Ops.wp_call_bin

Library · theorem

Call of a functional operation of two cells, on cells.

NLAlib.Ops.wp_call_bin {Op Tst K : Type} {md : Ops.Mode} {I : Ops.Interp Op Tst K} {τ : Ops.Tape K}
  {ρ : Ops.Env} {Q : Ops.Mem K → Prop} {m : Ops.Mem K} {o : Op} {g : K → K → Option K}
  {adm : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop}
  (hI : I.IsFn Ops.Mode.total o (Ops.BlockFn.bin g) adm) {ds : List Ops.IExp}
  {ins outs : List Ops.Operand} {x y z : ℕ × ℕ} (hd : Ops.IExp.evalList ρ.idx ds = some [])
  (ha : Ops.Operand.evalList ρ ins = some [x, y]) (hb : Ops.Operand.evalList ρ outs = some [z])
  (hadm : adm [] [x, y] [z]) {a b v : K} (hx : m.store.get x.1 x.2 = some a)
  (hy : m.store.get y.1 y.2 = some b) (hg : g a b = some v) (hz : z.2 < m.store.len z.1)
  (hQ : Q (m.upd z v)) : Ops.Wp md I τ (Ops.Stmt.call o ds ins outs) ρ Q m

Full source on GitHub

Import NLAlib.Ops.Rules.