NLA-lib Explorer

NLAlib.Ops.Wp.linkContext_of_isolated

Library · theorem

A total source word proof certifies the actual context-forwarded tree. Public stored algorithm constructors instantiate the source laws from raw data and primitive contracts; no desired output, successful execution or simulation callback is an input assumption.

NLAlib.Ops.Wp.linkContext_of_isolated {K Op Lo Tst : Type} (I : Ops.Interp Lo Tst K)
  (T : Ops.ContextTable Op Lo Tst) (context : List (ℕ × ℕ)) (relations : Op → Ops.BlockRel K)
  (adm : Op → List ℕ → List (ℕ × ℕ) → List (ℕ × ℕ) → Prop) (fallback : Ops.Interp Op Tst K)
  (C : ℕ → Prop) (reference : Ops.Store K)
  (hSat :
    ∀ (o : Op),
      ((I.linkContext T context).guardIsolated (fun o ↦ (relations o).spec (adm o))
            (Ops.Mem.Isolated C reference) C fallback).Satisfies
        Ops.Mode.total o ((relations o).spec (adm o)))
  {slot : ℕ} {τ : Ops.Tape K} {s : Ops.Stmt Op Tst} {ρ : Ops.Env} {m : Ops.Mem K}
  {Q : Ops.Mem K → Prop} (hslot : slot ≤ ρ.idx.length) (hSnapshot : Ops.Mem.Isolated C reference m)
  (hEnv : Ops.Env.Avoids C ρ) (hContext : ∀ z ∈ context, C z.1)
  (hWord :
    Ops.Wp Ops.Mode.total
      ((I.linkContext T context).guardIsolated (fun o ↦ (relations o).spec (adm o))
        (Ops.Mem.Isolated C reference) C fallback)
      τ s ρ Q m) :
  Ops.Wp Ops.Mode.total I τ (Ops.Stmt.linkContext context.length slot T s)
    (Ops.Env.withContext context slot ρ) Q m

Full source on GitHub

Import NLAlib.Ops.Logic.IsolatedLink.