NLA-lib Explorer

NLAlib.Ops.exec_static

Library · theorem

Canonical byte and instruction bounds cover every successful format-checked execution.

NLAlib.Ops.exec_static {Op Tst K : Type} {r b : ℕ} {p : Ops.Program Op Tst r b}
  {I : Ops.Interp Op Tst K} {R : Ops.ResourceModel Op Tst} {formats : Fin b → Ops.StorageFormat}
  {τ : Ops.Tape K} {d : Fin r → ℕ} {m : Ops.Mem K} {st : Ops.St (Op ⊕ Ops.Bookkeeping) Tst K}
  (h : Ops.exec p I R formats τ d m = some st) :
  st.cost ≤ Ops.staticCost p d ∧ st.peak ≤ Ops.staticPeak R p d

Full source on GitHub

Import NLAlib.Ops.Static.