NLAlib.Ops.exec_within
Library · theorem
Soundness of the static count and workspace: a successful counted run keeps the live cells, adds at most the static count and stays within the static workspace.
NLAlib.Ops.exec_within {Op Tst K : Type} {I : Ops.Interp Op Tst K} {W : Op → List ℕ → ℕ}
{τ : Ops.Tape K} {s : Ops.Stmt Op Tst} {ρ : Ops.Env} {st st' : Ops.St Op Tst K}
(h : Ops.evalCounted I W τ s ρ st = some st') :
st.Within st' (Ops.stmtCost s ρ.idx) (Ops.stmtPeak W s ρ.idx)Import NLAlib.Ops.Static.