NLA-lib Explorer

Probability transfer from total canonical algorithm certificates

Library · Source module

Probability transfer from total canonical algorithm certificates

A total certificate supplies successful counted execution and every declared resource bound on every tape. When its output specification and a mathematical reference event imply a stronger postcondition, the complete actual failure event lies inside reference failure. This includes none, all resource violations and failure of the stronger output property: the failure event is the negation of NLAlib.Ops.Specification.Accepts, the acceptance of a run that a certificate states for every run.

Main results

* NLAlib.Ops.Algorithm.failure_subset: actual failure is contained in reference failure. * NLAlib.Ops.Algorithm.measureReal_failure_le: a reference bound controls complete run failure. * NLAlib.Ops.Algorithm.accepts_of_wp, NLAlib.Ops.Algorithm.measureReal_not_accepts_le_of_wp: the bridge from a total word-level postcondition of the program's own run (a Writes or Wp event, as the probabilistic program logic proves) to acceptance of the same counted run.

Declarations