NLA-lib Explorer

NLAlib.Ops.wp_call_tern

Library · theorem

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

NLAlib.Ops.wp_call_tern {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 → K → Option K}
  {adm : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop}
  (hI : I.IsFn Ops.Mode.total o (Ops.BlockFn.tern g) adm) {ds : List Ops.IExp}
  {ins outs : List Ops.Operand} {x y w z : ℕ × ℕ} (hd : Ops.IExp.evalList ρ.idx ds = some [])
  (ha : Ops.Operand.evalList ρ ins = some [x, y, w]) (hb : Ops.Operand.evalList ρ outs = some [z])
  (hadm : adm [] [x, y, w] [z]) {a b c v : K} (hx : m.store.get x.1 x.2 = some a)
  (hy : m.store.get y.1 y.2 = some b) (hw : m.store.get w.1 w.2 = some c) (hg : g a b c = 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.