NLA-lib Explorer

NLAlib.Ops.Interp.callS_guardIsolated_of_good

Library · theorem

A successful guarded call within the isolated regime uses the actual delegated call and satisfies the source primitive precondition.

NLAlib.Ops.Interp.callS_guardIsolated_of_good {K Op Tst : Type}
  {active fallback : Ops.Interp Op Tst K} {contracts : Op → Ops.Contract K}
  {good : Ops.Mem K → Prop} {C : ℕ → Prop} {o : Op} {d : List ℕ} {ins outs : List (ℕ × ℕ)}
  {τ : Ops.Tape K} {m m' : Ops.Mem K} (hg : good m) (ho : ∀ z ∈ outs, ¬C z.1)
  (hr : (active.guardIsolated contracts good C fallback).callS o d ins outs τ m = some m') :
  ((contracts o).on Ops.Mode.total d ins outs τ m).pre m ∧ active.callS o d ins outs τ m = some m'

Full source on GitHub

Import NLAlib.Ops.Logic.Isolated.