NLA-lib Explorer

NLAlib.Ops.Specification.Accepts.mono

Library · theorem

A stronger postcondition is accepted when a weaker one follows from it.

NLAlib.Ops.Specification.Accepts.mono {Op Tst K : Type} {r b : ℕ} {P : Ops.Problem K r b}
  {S : Ops.Specification Op Tst P} {p : Ops.Program Op Tst r b} {I : Ops.Interp Op Tst K}
  {resources : Ops.ResourceModel Op Tst} {τ : Ops.Tape K} {d : Fin r → ℕ} {x : P.Input d}
  {Q Q' : Ops.Count (Op ⊕ Ops.Bookkeeping) Tst → Ops.Mem K → Prop}
  (h : S.Accepts p I resources τ d x Q)
  (hQ : ∀ (c : Ops.Count (Op ⊕ Ops.Bookkeeping) Tst) (m : Ops.Mem K), Q c m → Q' c m) :
  S.Accepts p I resources τ d x Q'

Full source on GitHub

Import NLAlib.Ops.Randomized.