NLA-lib Explorer

NLAlib.Ops.Interp.testAt_linkContext

Library · theorem

Queries read only their original operands after shifting; context is never added.

NLAlib.Ops.Interp.testAt_linkContext {Op Lo Tst K : Type} (I : Ops.Interp Lo Tst K)
  (T : Ops.ContextTable Op Lo Tst) (context : List (ℕ × ℕ)) (slot : ℕ) (q : Tst)
  (ds : List Ops.IExp) (ins : List Ops.Operand) (ρ : Ops.Env) (m : Ops.Mem K)
  (hslot : slot ≤ ρ.idx.length) :
  I.testAt q (List.map (Ops.IExp.liftContext context.length slot) ds)
      (List.map (Ops.Operand.liftContext context.length slot) ins)
      (Ops.Env.withContext context slot ρ) m =
    (I.linkContext T context).testAt q ds ins ρ m

Full source on GitHub

Import NLAlib.Ops.ContextSemantics.