NLAlib.Ops.Specification.accepts_iff_exec
Library · theorem
Acceptance of a run, read with the evaluator: canonical execution succeeds with an outcome within the five resource bounds that meets the postcondition. Neither admission, successful execution nor event measurability is a premise.
NLAlib.Ops.Specification.accepts_iff_exec {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)
(R : Ops.ResourceModel Op Tst) (τ : Ops.Tape K) (d : Fin r → ℕ) (x : P.Input d)
(Q : Ops.Count (Op ⊕ Ops.Bookkeeping) Tst → Ops.Mem K → Prop) :
S.Accepts p I R τ d x Q ↔
∃ st,
Ops.exec p I R P.formats τ d (P.initial d x) = some st ∧
st.peak ≤ S.scratch d ∧
st.cost ≤ S.budget d ∧
R.work st.cost ≤ S.work d ∧
R.span st.cost ≤ S.span d ∧
P.initialBytes d x + st.peak ≤ S.memory d ∧ Q st.cost st.memImport NLAlib.Ops.Reference.Equivalence.