Statements about the law of the tape, and their transfer through linking
Library · Source module
Statements about the law of the tape, and their transfer through linking
A statement in expectation or in probability is about a random tape ξ : Ω → Tape K. The interpretation is fixed before the sample, and linking is pointwise in the tape (run_link), so these statements transfer from an algorithm to the linked program by lemmas proved once, here.
Main results
* NLAlib.Ops.Impl.Satisfies.runsLaw: the bridge from the certificate of a program to its law-level statement. * NLAlib.Ops.ConditionalRunsLaw: the shape of a law-level theorem. For every sample the run succeeds within the counts and the workspace with an output X ω, and the random variable X satisfies a statement Φ (an expectation, a variance, a tail bound). * NLAlib.Ops.Profile.Refines.runsLaw: the corollary for any algorithm and any certified profile, law-level form. The abstract theorem may use that every operation reads the tape only in its window; the certificate provides it for the linked interpretation. * NLAlib.Ops.Profile.Refines.measureReal_not_runs_le: the probability that the linked program fails or misses its postcondition is at most that of the algorithm. * NLAlib.Ops.Profile.Refines.integral_runVal: the expectation of an observable of the final memory (NLAlib.Ops.runVal) is the same for the linked program.
Declarations
- NLAlib.Ops.Algorithm.runsLaw
- NLAlib.Ops.ConditionalRuns.runVal_eq
- NLAlib.Ops.ConditionalRunsLaw
- NLAlib.Ops.ConditionalRunsLaw.mono
- NLAlib.Ops.Impl.Satisfies.runsLaw
- NLAlib.Ops.Profile.Refines.integral_runVal
- NLAlib.Ops.Profile.Refines.measureReal_not_runs_le
- NLAlib.Ops.Profile.Refines.measureReal_not_runs_le_of
- NLAlib.Ops.Profile.Refines.runsLaw
- NLAlib.Ops.runVal
- NLAlib.Ops.runVal_link