NLA-lib Explorer

NLAlib.Ops.Specification.accepts_congr_of_buffers

Library · theorem

A run depends on the input only through the supplied buffers. At two inputs with the same buffers, under the same interpretation and tape, the same runs are accepted: the outcome, its count and its memory are the same, and so is every resource claim.

NLAlib.Ops.Specification.accepts_congr_of_buffers {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 y : P.Input d} (h : (↑x).2 = (↑y).2)
  (Q : Ops.Count (Op ⊕ Ops.Bookkeeping) Tst → Ops.Mem K → Prop) :
  S.Accepts p I resources τ d x Q ↔ S.Accepts p I resources τ d y Q

Full source on GitHub

Import NLAlib.Ops.Dependence.