NLA-lib Explorer

NLAlib.Ops.eval_sim_of_isolated

Library · theorem

Successful source execution transfers through local call refinement. The callback is one primitive-call law, not a whole-program correctness or success assumption. Public stored algorithm certificates derive it from their declared block contracts and raw data. The isolated buffers are those satisfying C; no buffer order is assumed.

NLAlib.Ops.eval_sim_of_isolated {K Op Tst : Type} {source target : Ops.Interp Op Tst K}
  {C : ℕ → Prop} {reference : Ops.Store K} {τ : Ops.Tape K}
  (hCall :
    ∀ (o : Op) (d : List ℕ) (ins outs : List (ℕ × ℕ)) (τ : Ops.Tape K) (m m' : Ops.Mem K),
      Ops.Mem.Isolated C reference m →
        (∀ z ∈ outs, ¬C z.1) →
          source.callS o d ins outs τ m = some m' →
            target.callS o d ins outs τ m = some m' ∧ Ops.Mem.Isolated C reference m')
  (hTest : source.test = target.test) (hIndex : source.index = target.index) {s : Ops.Stmt Op Tst}
  {ρ : Ops.Env} {m m' : Ops.Mem K} (hSnapshot : Ops.Mem.Isolated C reference m)
  (hEnv : Ops.Env.Avoids C ρ) (hr : Ops.eval source τ s ρ m = some m') :
  Ops.eval target τ s ρ m = some m' ∧ Ops.Mem.Isolated C reference m'

Full source on GitHub

Import NLAlib.Ops.Logic.IsolatedLink.