NLA-lib Explorer

NLAlib.Ops.Reference.execution_congr_of_allOps

Library · theorem

The same for the run of a program: two interpretations that agree on the operations its tree calls, and on the tests and index uses, have the same executions.

NLAlib.Ops.Reference.execution_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) {r b : ℕ}
  (prog : Ops.Program Op Tst r b) (hs : Ops.Stmt.allOps p prog.body = true)
  (formats : Fin b → Ops.StorageFormat) (τ : Ops.Tape K) (d : Fin r → ℕ) (m : Ops.Mem K)
  (out : Ops.Reference.State Op Tst K) :
  Ops.Reference.Execution prog I R formats τ d m out ↔
    Ops.Reference.Execution prog J R formats τ d m out

Full source on GitHub

Import NLAlib.Ops.Dependence.