NLAlib.Ops.Interp.satisfies_guardIsolated
Library · theorem
Local correctness of delegated primitive calls and a valid fallback give a globally valid source contract. No algorithm execution is included in either premise.
NLAlib.Ops.Interp.satisfies_guardIsolated {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)
(hFallback : fallback.Satisfies Ops.Mode.total o (contracts o))
(hActive :
∀ (d : List ℕ) (ins outs : List (ℕ × ℕ)) (τ : Ops.Tape K) (m : Ops.Mem K),
good m →
(∀ z ∈ outs, ¬C z.1) →
((contracts o).on Ops.Mode.total d ins outs τ m).pre m →
Ops.Mode.total.Holds (active.callS o d ins outs τ m)
(((contracts o).on Ops.Mode.total d ins outs τ m).post m)) :
(active.guardIsolated contracts good C fallback).Satisfies Ops.Mode.total o (contracts o)Import NLAlib.Ops.Logic.Isolated.