Event probabilities after a random first stage #
After a random first stage, an event's probability is the average of its conditional
probabilities (toOuterMeasure_bind_toReal). Failure and success bounds compose without
independence: a randomized continuation fails because its precondition already failed or because
it fails from a valid input (toOuterMeasure_bind_failure_le), lower bounds on a first stage and
on its continuation from supported members multiply (toOuterMeasure_bind_ge_mul_ennreal,
toOuterMeasure_bind_ge_mul), and failure bounds multiply when success is retained
(toOuterMeasure_bind_le_mul_ennreal). Average bias turns into the probability of good first
stages (toOuterMeasure_rate_ge).
Main results #
Cslib.Probability.PMF.toOuterMeasure_bind_toReal: averaging over a first stage.Cslib.Probability.PMF.toOuterMeasure_bind_le,Cslib.Probability.PMF.toOuterMeasure_bind_failure_le,Cslib.Probability.PMF.toOuterMeasure_bind_failure_toReal_le,Cslib.Probability.PMF.toOuterMeasure_bind_ge_mul,Cslib.Probability.PMF.toOuterMeasure_bind_ge_mul_ennreal,Cslib.Probability.PMF.toOuterMeasure_bind_le_mul_ennreal: composing failure and success bounds.Cslib.Probability.PMF.toOuterMeasure_rate_ge: average bias as the probability of good inputs.
References #
toOuterMeasure_bind_toReal, toOuterMeasure_bind_failure_le and
toOuterMeasure_bind_failure_toReal_le are adapted from Probability/PMF.lean on the cslib crypto
branch at 5ff69ca93402e7c947208dc56396d6d86203ccd8. The ENNReal event-composition lemmas were
extracted from Renfei Zhou's Karger algorithm development.
Event probability after a finite random choice is the average conditional probability.
A uniform upper bound on (kernel a).toOuterMeasure event bounds
(p.bind kernel).toOuterMeasure event.
A randomized continuation can fail because its precondition was already false or because it fails from a valid input. No independence or finite-state assumption is needed.
The real-valued error rule for a randomized continuation.
ENNReal multiplication rule for sequential success lower bounds across PMF.bind.
ENNReal multiplication rule for sequential failure upper bounds: if p stays in
stillFailing with probability at most q₁, every supported a ∈ stillFailing fails under
kernel a with probability at most q₂, and every supported a ∉ stillFailing has zero failure
probability under kernel a, then p.bind kernel fails with probability at most q₁ * q₂.
If a first stage p lands in pre with probability at least s₁ and for every supported
a ∈ pre the continuation kernel a lands in event with probability at least s₂, then
p.bind kernel lands in event with probability at least s₁ * s₂.
If a randomized test beats a threshold on average, at least its excess probability mass consists of inputs whose conditional acceptance probability reaches that threshold.