NLA-lib Explorer

NLAlib.Ops.Reference.derives_iff_instrumented

Library · theorem

Declarative source execution and the instrumented evaluator agree on every consistent accounting state, including the exact count, tape position, current scratch and peak.

NLAlib.Ops.Reference.derives_iff_instrumented {Op Tst K : Type} (I : Ops.Interp Op Tst K)
  (R : Ops.ResourceModel Op Tst) (τ : Ops.Tape K) (s : Ops.Stmt Op Tst) (ρ : Ops.Env)
  (a b : Ops.Reference.State Op Tst K) (ha : a.cur ≤ a.peak) :
  Ops.Reference.Derives I R τ s ρ a b ↔ Ops.Reference.instrumented I R τ s ρ a = some b

Full source on GitHub

Import NLAlib.Ops.Reference.Equivalence.