NLA-lib Explorer

NLAlib.Ops.Interp.Satisfies.of_callS

Library · theorem

An operation satisfies a contract if the call of the evaluator does.

NLAlib.Ops.Interp.Satisfies.of_callS {Op Tst K : Type} {I : Ops.Interp Op Tst K} {md : Ops.Mode}
  {o : Op} {C : Ops.Contract K}
  (h :
    ∀ (d : List ℕ) (ins outs : List (ℕ × ℕ)) (τ : Ops.Tape K) (m : Ops.Mem K),
      (C.on md d ins outs τ m).pre m →
        md.Holds (I.callS o d ins outs τ m) ((C.on md d ins outs τ m).post m)) :
  I.Satisfies md o C

Full source on GitHub

Import NLAlib.Ops.Contract.