Bit weights and binomial reflection #
A Poisson-binomial law is the Hamming weight of independent Boolean trials. For a homogeneous parameter, complementing every trial reflects the count around the number of trials. The proof reuses coordinatewise PMF mapping and the existing Hamming-weight complement identity.
Main results #
poissonBinomial_eq_map_weight: the named Hamming-weight characterization.poissonBinomial_replicate_map_sub: homogeneous count reflection, including boundary parameters.
The Poisson-binomial law is the Hamming weight of its independent coin vector.
theorem Cslib.Probability.PMF.poissonBinomial_replicate_map_sub (n : ℕ) (p : ↑unitInterval) :
PMF.map (fun (k : ℕ) => n - k) (poissonBinomial (List.replicate n p)) = poissonBinomial (List.replicate n (unitInterval.symm p))
Reflecting a binomial count around its trial budget complements the coin parameter. No strict positivity or nontrivial-budget hypothesis is needed.