Event probabilities of discrete distributions #
The probability p.toOuterMeasure s of an event under a discrete distribution is finite and at
most one (toOuterMeasure_ne_top, toOuterMeasure_le_one); on a finite type its real value is the
sum of the masses of the event's members (toOuterMeasure_apply_toReal), and an event and its
complement have total probability one (toOuterMeasure_add_compl_ennreal,
toOuterMeasure_toReal_add_compl). Conditioning keeps the event's masses and divides them by its
probability (filter_apply_toReal).
Event probabilities after a random first stage are in CslibFrontier.Probability.PMF.EventBind, and
the outcome masses of Boolean distributions and Boolean predicates are in
CslibFrontier.Probability.PMF.Bool.
Main results #
Cslib.Probability.PMF.toOuterMeasure_ne_top,Cslib.Probability.PMF.toOuterMeasure_le_one: events have probability at most one.Cslib.Probability.PMF.toOuterMeasure_eq_tsum_mul_indicator: an event's probability is the expectation of its indicator.Cslib.Probability.PMF.toOuterMeasure_abs_sub_ge_le,Cslib.Probability.PMF.toOuterMeasure_abs_sub_ge_toReal_le: two-sided tail bounds from upper and lower tails.Cslib.Probability.PMF.toOuterMeasure_apply_toReal,Cslib.Probability.PMF.toOuterMeasure_toReal_eq_sum_ite,Cslib.Probability.PMF.toOuterMeasure_toReal_add_compl,Cslib.Probability.PMF.toOuterMeasure_toReal_pos_iff: real-valued event probabilities.Cslib.Probability.PMF.toOuterMeasure_add_compl_ennreal,Cslib.Probability.PMF.toOuterMeasure_compl_le_one_sub: complementation and failure bounds.Cslib.Probability.PMF.filter_apply_toReal: conditioned masses.
References #
Adapted in part from Probability/PMF.lean on the cslib crypto branch at
5ff69ca93402e7c947208dc56396d6d86203ccd8. The ENNReal complement lemmas were extracted from
Renfei Zhou's Karger algorithm development.
Every event has finite probability, including on an infinite ambient type.
Adapted from the cslib crypto branch at 5ff69ca.
An event has probability at most one.
The event that f a deviates from m by at least ε is covered by the upper tail
m + ε ≤ f a and the lower tail f a ≤ m - ε.
In real-valued probabilities, the two-sided tail ε ≤ |f a - m| is bounded by the sum of
the upper tail m + ε ≤ f a and the lower tail f a ≤ m - ε.
The probability of an event in a finite space, as the mean of its indicator.
Exact complementation law p.toOuterMeasure s + p.toOuterMeasure sᶜ = 1 for discrete PMFs,
valid on arbitrary types without measurability hypotheses.
A lower bound on success gives the complementary upper bound on failure.
An event and its complement have total probability one, in real-valued probability units.