NLA-lib Explorer

NLAlib.Ops.Interp.satisfies_iff_callS

Library · theorem

The same statement through the call of the evaluator, NLAlib.Ops.Interp.callS, which fails unless the operands are buffers of the store and the shape is unchanged. This is the form the program logic uses.

NLAlib.Ops.Interp.satisfies_iff_callS {Op Tst K : Type} {I : Ops.Interp Op Tst K} {md : Ops.Mode}
  {o : Op} {C : Ops.Contract K} :
  I.Satisfies md o C ↔
    ∀ (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)

Full source on GitHub

Import NLAlib.Ops.Contract.