Documentation

CslibFrontier.Probability.PMF.Option.Bind

Stochastic continuations of optional distributions #

A successful-part density law composes with an arbitrary randomized continuation. The failure contribution is retained separately, without conditioning or renormalization.

Main results #

theorem Cslib.Probability.PMF.bind_option_apply_of_some {α : Type u_1} {β : Type u_2} (μ : PMF (Option α)) (ν : PMF α) (mass : ENNReal) (h : ∀ (a : α), μ (some a) = mass * ν a) (k : Option α → PMF β) (b : β) :
(μ.bind k) b = μ none * (k none) b + mass * (ν.bind fun (a : α) => k (some a)) b

If successful atoms of μ are mass times those of ν, any stochastic continuation has the corresponding scaled successful contribution plus the actual failure contribution. No positivity or finite-mass premise is needed.