NLA-lib Explorer

NLAlib.Ops.Reference.consistent_of_evalCounted

Library · theorem

Successful execution preserves the fact that live scratch does not exceed its peak.

NLAlib.Ops.Reference.consistent_of_evalCounted {Op Tst K : Type} {I : Ops.Interp Op Tst K}
  {W : Op → List ℕ → ℕ} {τ : Ops.Tape K} {s : Ops.Stmt Op Tst} {ρ : Ops.Env} {a b : Ops.St Op Tst K}
  (h : Ops.evalCounted I W τ s ρ a = some b) (ha : a.cur ≤ a.peak) : b.cur ≤ b.peak

Full source on GitHub

Import NLAlib.Ops.Reference.Accounting.