Independent finite PMF products #
A product of finite distributions assigns each tuple the product of its coordinate masses. Its induced measure is Mathlib's product measure, so its coordinates satisfy the independence and concentration theorems. Mapping coordinates commutes with this product. Replacing one coordinate of a uniform tuple by a fresh uniform sample preserves its law.
Main definitions #
Cslib.Probability.PMF.pi: independent finite products with dependent coordinate types.
Main results #
Cslib.Probability.PMF.toMeasure_pi,.toMeasure_bind_pair,.iIndepFun_pi: product-measure and independence laws.Cslib.Probability.PMF.pi_bind_update_pair: reveal a coordinate and retain the entire tuple.Cslib.Probability.PMF.pi_map,.pi_bind: coordinatewise mapping and sampling laws.Cslib.Probability.PMF.conditionalSnd_pi_joint: coordinatewise conditioning.
References #
Adapted from Probability/Product.lean on the cslib crypto branch at
5ff69ca93402e7c947208dc56396d6d86203ccd8. The measure and independence results reuse Mathlib.
Independent PMF samples induce the product of their measures.
The PMF product agrees with the measure-theoretic product.
Coordinate projections of the product are mutually independent.
Independent uniform coordinates give the uniform distribution on tuples.
Replacing one coordinate of a uniform tuple by a fresh uniform draw preserves its law. The other coordinates stay independent of the replacement.
Independent conditional samples can be drawn after the complete tuple of their inputs.
One coordinate of an independent product may be sampled first and then held fixed.
Revealing one coordinate and retaining the tuple is equivalent to sampling that coordinate first, then independently completing the remaining coordinates.
Independent pairs can be sampled by drawing their first components, then drawing each second component conditionally and independently.
Independent joint samples can be drawn by first drawing all observations and then drawing the hidden coordinates independently from their conditional distributions.
Conditioning independent joint samples on a possible observation tuple preserves independence of their hidden coordinates.