NLA-lib Explorer

NLAlib.Ops.RunsFromWL.call

Library · theorem

A call: one call at its dimensions, and the workspace of the operation. The memory is taken from a liberal Wp, by any call rule (fun _ _ => trivial when only the counts matter).

NLAlib.Ops.RunsFromWL.call {Op Tst K : Type} {I : Ops.Interp Op Tst K} {W : Op → List ℕ → ℕ}
  {τ : Ops.Tape K} {ρ : Ops.Env} {st : Ops.St Op Tst K} {o : Op} {ds : List Ops.IExp}
  {ins outs : List Ops.Operand} {d : List ℕ} {P : Ops.Mem K → Prop}
  (hd : Ops.IExp.evalList ρ.idx ds = some d)
  (h : Ops.Wp Ops.Mode.liberal I τ (Ops.Stmt.call o ds ins outs) ρ P st.mem) :
  Ops.RunsFromWL I W τ (Ops.Stmt.call o ds ins outs) ρ st (W o d) fun c m ↦
    c = Ops.Count.one o d ∧ P m

Full source on GitHub

Import NLAlib.Ops.Counted.