Documentation

CslibFrontier.Foundations.Probability.ProductDensity

Marginal densities in finite products #

Coordinate events preserve their marginal density; events on distinct coordinates are independent. These reuse seed relabelling and the existing two-factor density identity.

theorem Cslib.Probability.dens_filter_fst_and_snd {ι : Type u_1} {κ : Type u_2} [Fintype ι] [Fintype κ] (p : ι → Prop) (q : κ → Prop) [DecidablePred p] [DecidablePred q] :
{z : ι × κ | p z.1 ∧ q z.2}.dens = {i : ι | p i}.dens * {j : κ | q j}.dens

Independence of separate seeds: on the product of two seed spaces, an event about the first seed and an event about the second have probability equal to the product of their probabilities.

theorem Cslib.Probability.dens_filter_pi_eval {Role A : Type} [Fintype Role] [DecidableEq Role] [Fintype A] [Nonempty A] (role : Role) (E : A → Prop) [DecidablePred E] :
{σ : Role → A | E (σ role)}.dens = {a : A | E a}.dens

A coordinate of a uniform finite product has its original marginal density.

theorem Cslib.Probability.dens_filter_pi_eval_and_pi_eval {Role A : Type} [Fintype Role] [DecidableEq Role] [Fintype A] [Nonempty A] {i j : Role} (hij : j ≠ i) (E F : A → Prop) [DecidablePred E] [DecidablePred F] :
{σ : Role → A | E (σ i) ∧ F (σ j)}.dens = {a : A | E a}.dens * {a : A | F a}.dens

Distinct actual role coordinates are independent under uniform product density.