NLA-lib Explorer

NLAlib.Ops.Interp.Satisfies.mono

Library · theorem

Weakening: a contract with a stronger precondition and a weaker postcondition is met.

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

Full source on GitHub

Import NLAlib.Ops.Contract.