NLAlib.Ops.Specification.Accepts
Library · def
A run is accepted. The execution rules derive an outcome of the program p from the supplied buffers of the input x, under the interpretation I and the tape τ; that outcome obeys every resource claim of the specification (scratch, counts, work, span, and resident memory: the payload of the supplied buffers plus the peak scratch), and its count and final memory meet the postcondition Q. Negation includes failure (no outcome is derived), a violation of any of the five bounds, and failure of the postcondition. A certificate states that every run is accepted (NLAlib.Ops.Runs); a randomized claim bounds the probability that a run is not (NLAlib.Ops.Algorithm.FailsAtMost).
NLAlib.Ops.Specification.Accepts {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 : Ops.Count (Op ⊕ Ops.Bookkeeping) Tst → Ops.Mem K → Prop) : PropImport NLAlib.Ops.Specification.