Finite-probability helpers for EPI-2 #
Monotonicity of prob is the core's Distribution.prob_mono; congruence, the complement rule
prob_not and the union bound prob_exists_le_sum are those of Epidemics.GiantCoins (EPI-3);
Markov's inequality on an exponential moment and the expectation of a coin are the core's
Distribution.prob_le_expect_exp and Distribution.bernoulli_expect (FND-3). This file adds
prob_eq_one, prob_eq_zero and two ways of conditioning an independent product on one
coordinate (an arbitrary coordinate, through Function.update, and the first coordinate of
Fin (m + 1), through Fin.cons). They are stated for any Distribution; their move to
dynamics/ is tracked in issues #42 and #46.
Conditioning an independent product on one coordinate: the expectation is the average,
over the value b of coordinate i, of the expectation with that coordinate set to b.
Conditioning on the first coordinate: an i.i.d. product over Fin (m + 1) is the
average, over the first coordinate b, of the product over Fin m with b prepended.
Conditioning the percolation coins on the coin of one pair.