Boolean distributions and Boolean predicates #
The masses of true and false under a Boolean distribution sum to one
(apply_true_add_apply_false, and toReal_true_add_toReal_false in real-valued units). Pushing
a distribution forward along Boolean predicates (PMF.map), the true-mass is monotone under
pointwise implication on the support (map_true_mono), satisfies union bounds
(map_true_le_add, and map_true_le_sum over a finite index set with its List.range instance
map_any_range_true_le_sum), is the expectation of the predicate's indicator (map_apply_true),
and is complemented by negation (map_not_true).
Main results #
Cslib.Probability.PMF.apply_true_add_apply_false,Cslib.Probability.PMF.toReal_true_add_toReal_false,Cslib.Probability.PMF.toReal_false_eq_one_sub,Cslib.Probability.PMF.toReal_true_eq_one_sub: Boolean outcome masses.Cslib.Probability.PMF.map_true_mono,Cslib.Probability.PMF.map_true_le_add,Cslib.Probability.PMF.map_true_le_sum,Cslib.Probability.PMF.map_any_range_true_le_sum,Cslib.Probability.PMF.map_apply_true,Cslib.Probability.PMF.map_not_true: monotonicity, union bounds, indicator expectations and complementation for Boolean predicates pushed forward alongPMF.map.
Union bound over a finite family of Boolean predicates pushed forward along p.map: if every
possible outcome satisfying E satisfies some F i with i ∈ s, the true-mass of E is at most
the sum of the true-masses of the F i.
Union bound for List.any over List.range K pushed forward along p.map: the
List.range instance of map_true_le_sum.