NLAlib.Ops.Algorithm.measureReal_not_accepts_le_of_wp
Library · theorem
Same-run probability from the program logic: for finite measures, a bound delta on the probability that the memory semantics of the certified program fails the total postcondition Q bounds the probability that the counted run fails, violates a resource bound of the specification or fails Q.
NLAlib.Ops.Algorithm.measureReal_not_accepts_le_of_wp {Op Tst K : Type} {r b : ℕ}
{P : Ops.Problem K r b} {model : Ops.AccessModel Op Tst P} {S : Ops.Specification Op Tst P}
(A : Ops.Algorithm model S) {d : Fin r → ℕ} (hd : P.valid d) (x : P.Input d)
(I : Ops.Interp Op Tst K) (hI : model.contracts d x I) {Omega : Type} [MeasurableSpace Omega]
(mu : Measure Omega) [IsFiniteMeasure mu] (tape : Omega → Ops.Tape K)
(Q : Omega → Ops.Mem K → Prop) {delta : ℝ}
(hBound :
mu.real
{omega |
¬Ops.Wp Ops.Mode.total I (tape omega) A.program.body (Ops.Program.environment d) (Q omega)
(P.initial d x)} ≤
delta) :
mu.real {omega | ¬S.Accepts A.program I model.resources (tape omega) d x fun x m ↦ Q omega m} ≤
deltaImport NLAlib.Ops.Probability.