Splitting the coordinates of a finite product #
Split the coordinates of an independent product by a predicate P, along Mathlib's
Equiv.piEquivPiSubtypeProd. The coordinates satisfying P and the remaining coordinates form two
independent products. In particular, the restriction of an independent product to some of its
coordinates, or its composition with an injection of index types, is again an independent product.
An independent product over a sum of index types splits the same way into its two summands.
Conditioning a uniform tuple on the value of one coordinate splits that coordinate off: it becomes
constant, and the other coordinates stay uniform.
Main results #
Cslib.Probability.PMF.pi_map_piEquivPiSubtypeProd: the two parts of a split product are independent products.Cslib.Probability.PMF.pi_map_restrict,Cslib.Probability.PMF.pi_map_comp_injective: restricting an independent product, or reading it along an injection, gives the independent product of the selected factors.Cslib.Probability.PMF.pi_map_sumPiEquivProdPi,Cslib.Probability.PMF.bind_pi_sum: an independent product overι ⊕ κis a pair of independent products overιandκ.Cslib.Probability.PMF.filter_uniformOfFintype_eval_eq: conditioning a uniform tuple on one coordinate sets that coordinate.Cslib.Probability.PMF.uniformOfFintype_map_comp_dep: a uniform dependent function read through an injection is uniform.
Splitting the coordinates of an independent product by a predicate P gives two independent
products: one over the coordinates satisfying P, one over the rest.
Restricting an independent product to the coordinates satisfying P gives the independent
product of those coordinates.
Reading an independent product along an equivalence e onto the coordinates satisfying P
gives the independent product of the factors along e.
Reading an independent product along an injection e of index types gives the independent
product of the factors along e: the coordinates a (e k) are independent with laws p (e k).
An independent product over ι ⊕ κ splits, along Mathlib's Equiv.sumPiEquivProdPi, into
independent products over ι and over κ.
An experiment reading the two halves of an independent product over ι ⊕ κ samples each half
independently.
Conditioning a uniform tuple on the value c of its coordinate j sets that coordinate to c
and keeps the other coordinates uniform.
A uniform dependent function read through an injection g of index types is uniform.