NLA-lib Explorer

NLAlib.Ops.Reference.derives_congr_of_allOps

Library · theorem

The interpretation reaches a run only at the calls and the tests of the tree. If every operation the tree s calls passes the check p, and two interpretations have the same calls of the operations that pass p and the same tests and index uses, then the execution rules derive the same outcomes under both: the same memory, tape position, count, scratch and peak. Nothing else of an interpretation can affect a run.

NLAlib.Ops.Reference.derives_congr_of_allOps {Op Tst K : Type} {I J : Ops.Interp Op Tst K}
  (p : Op → Bool) (hcall : ∀ (o : Op), p o = true → I.call o = J.call o) (htest : I.test = J.test)
  (hindex : I.index = J.index) (R : Ops.ResourceModel Op Tst) (τ : Ops.Tape K) {s : Ops.Stmt Op Tst}
  (hs : Ops.Stmt.allOps p s = true) (ρ : Ops.Env) (a c : Ops.Reference.State Op Tst K) :
  Ops.Reference.Derives I R τ s ρ a c ↔ Ops.Reference.Derives J R τ s ρ a c

Full source on GitHub

Import NLAlib.Ops.Dependence.