NLA-lib Explorer

NLAlib.Ops.Interp.callS_of_live

Library · theorem

NLAlib.Ops.Interp.callS_of_live {Op Tst K : Type} {I : Ops.Interp Op Tst K} {o : Op} {d : List ℕ}
  {ins outs : List (ℕ × ℕ)} {τ : Ops.Tape K} {m : Ops.Mem K} (h : m.Live (ins ++ outs)) :
  I.callS o d ins outs τ m =
    (I.call o d ins outs τ m).bind fun m' ↦ if m'.store.shape = m.store.shape then some m' else none

Full source on GitHub

Import NLAlib.Ops.Exec.