NLA-lib Explorer

NLAlib.Ops.RunsFromWL.exec_init

Library · theorem

From the initial state: every successful counted run is within the workspace, and the postcondition holds of its counts and its memory.

NLAlib.Ops.RunsFromWL.exec_init {Op Tst K : Type} {I : Ops.Interp Op Tst K} {W : Op → List ℕ → ℕ}
  {τ : Ops.Tape K} {ρ : Ops.Env} {p : ℕ} {Q : Ops.Count Op Tst → Ops.Mem K → Prop}
  {s : Ops.Stmt Op Tst} {m : Ops.Mem K} (h : Ops.RunsFromWL I W τ s ρ (Ops.St.init m) p Q)
  {st' : Ops.St Op Tst K} (hst : Ops.evalCounted I W τ s ρ (Ops.St.init m) = some st') :
  st'.peak ≤ p ∧ Q st'.cost st'.mem

Full source on GitHub

Import NLAlib.Ops.Counted.