Specifications and what it means to certify one
Library · Source module
Specifications and what it means to certify one
A specification lists the claims about one run of a program: a bound for each resource and a condition on the final count and memory. A run is accepted when the execution rules (NLAlib.Ops.Reference.Execution) derive an outcome that is within every bound and satisfies the condition. A certificate states that every run is accepted.
These definitions are stated with the execution rules alone. The evaluator NLAlib.Ops.exec computes the same outcome (NLAlib.Ops.Reference.execution_iff_exec), and NLAlib.Ops.Specification.accepts_iff_exec and NLAlib.Ops.Program.certifies_iff_exec restate acceptance and certification with it; proofs use those forms.
Main definitions
* NLAlib.Ops.Specification: the claims about one run. * NLAlib.Ops.Specification.Accepts: one run is accepted (an outcome derived by the rules, the five resource bounds and a postcondition). * NLAlib.Ops.Runs, NLAlib.Ops.Program.Certifies: every run of a fixed program is accepted.