NLA-lib Explorer

NLAlib.Ops.Interp.link_callS_inl

Library · theorem

The call of an implemented operation under the induced interpretation is the run of its implementation on live operands: the run keeps the shape of the store by itself.

NLAlib.Ops.Interp.link_callS_inl {Op₁ Op₂ Tst K : Type} (I : Ops.Interp Op₂ Tst K)
  {T : Ops.Table Op₁ Op₂ Tst} {o : Op₁} {E : Ops.Impl Op₂ Tst} (hT : T o = Sum.inl E) (d : List ℕ)
  (ins outs : List (ℕ × ℕ)) (τ : Ops.Tape K) (m : Ops.Mem K) :
  (I.link T).callS o d ins outs τ m =
    if m.Live (ins ++ outs) then
      if E.Fits d.length ins.length outs.length then
        Ops.eval I τ E.body (Ops.Env.frame d (ins ++ outs)) m
      else none
    else none

Full source on GitHub

Import NLAlib.Ops.Link.