NLA-lib Explorer

NLAlib.Ops.wp_call_const

Library · theorem

Call of a functional constant, on cells.

NLAlib.Ops.wp_call_const {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} {v : K}
  {adm : List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop}
  (hI : I.IsFn Ops.Mode.total o (Ops.BlockFn.const v) adm) {ds : List Ops.IExp}
  {ins outs : List Ops.Operand} {z : ℕ × ℕ} (hd : Ops.IExp.evalList ρ.idx ds = some [])
  (ha : Ops.Operand.evalList ρ ins = some []) (hb : Ops.Operand.evalList ρ outs = some [z])
  (hadm : adm [] [] [z]) (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.