NLA-lib Explorer

NLAlib.Ops.run_linkContext_call

Library · theorem

A context-linked primitive call has the exact source semantics, including failure. Context liveness is the only extra semantic premise; no hidden data read is performed.

NLAlib.Ops.run_linkContext_call {Op Lo Tst K : Type} (I : Ops.Interp Lo Tst K)
  (T : Ops.ContextTable Op Lo Tst) (context : List (ℕ × ℕ)) (slot : ℕ) (τ : Ops.Tape K) (o : Op)
  (ds : List Ops.IExp) (ins outs : List Ops.Operand) (ρ : Ops.Env) (m : Ops.Mem K)
  (hslot : slot ≤ ρ.idx.length) (hLive : m.Live context) :
  Ops.eval I τ (Ops.Stmt.linkContext context.length slot T (Ops.Stmt.call o ds ins outs))
      (Ops.Env.withContext context slot ρ) m =
    Ops.eval (I.linkContext T context) τ (Ops.Stmt.call o ds ins outs) ρ m

Full source on GitHub

Import NLAlib.Ops.ContextSemantics.