Comparing two-stage experiments at one outcome #
These lemmas compare the probabilities that two-stage experiments μ.bind f give one outcome b,
using facts about the continuations alone. Pointwise sum identities between continuations carry
over to the experiments: a constant offset with bind_apply_add_of_forall, and an exchange of two
pairs on the support with bind_apply_add_eq_on_support. Continuations that agree up to ε away
from one exceptional first-stage result differ by at most ε plus that result's probability
(bind_apply_le_add_of_ne). Stateful experiments whose first stages agree on good states, and
whose continuations agree on good states and keep bad states bad, give good outcomes equal
probability (bind_apply_eq_of_good). A sampler that keeps the first draw on an event and
otherwise resamples from its conditional law has that law (bind_pure_or_resample_eq).
The one-sided bounds, where the continuations need only be compared on the support, are in
CslibFrontier.Probability.PMF.Bind.
Main results #
Cslib.Probability.PMF.bind_apply_add_of_forall,Cslib.Probability.PMF.bind_apply_add_eq_on_support: sum identities between continuations carry over to the experiments.Cslib.Probability.PMF.bind_apply_le_add_of_ne: continuations close away from one first-stage result.Cslib.Probability.PMF.bind_apply_eq_of_good: stateful experiments that agree until a bad state.Cslib.Probability.PMF.bind_pure_or_resample_eq: keep a successful draw or resample.
If two pairs of continuations satisfy f₁ a b + g₂ a b = f₂ a b + g₁ a b on the support of
p, then (p.bind f₁) b + (p.bind g₂) b = (p.bind f₂) b + (p.bind g₁) b.
Pointwise bounds away from one exceptional first-stage result bound a two-stage experiment, up to the probability of that result.
Binds whose first stages agree on good states, and whose continuations agree on good inputs and outputs and keep bad states bad, agree on good outputs.
If the masses of p on s are a common multiple of the masses of q, then drawing from
p, keeping a draw in s, and otherwise drawing from q gives exactly q.