NLAlib.Ops.Interp.linkContext_callS_inl
Library · theorem
Implemented operations execute the declared body at the extra context inputs. The core's shape check is redundant because every statement preserves store shape.
NLAlib.Ops.Interp.linkContext_callS_inl {Op Lo Tst K : Type} (I : Ops.Interp Lo Tst K)
{T : Ops.ContextTable Op Lo Tst} {o : Op} {E : Ops.Impl Lo Tst} (hT : T o = Sum.inl E)
(context : List (ℕ × ℕ)) (d : List ℕ) (ins outs : List (ℕ × ℕ)) (τ : Ops.Tape K) (m : Ops.Mem K) :
(I.linkContext T context).callS o d ins outs τ m =
if m.Live (ins ++ outs) then
if E.Fits d.length (context.length + ins.length) outs.length then
Ops.eval I τ E.body (Ops.Env.frame d (context ++ ins ++ outs)) m
else none
else noneImport NLAlib.Ops.ContextSemantics.