PMF-weighted finite expectation identities #
This module contains finite expectation identities stated directly for
Mathlib probability mass functions. They connect PMF.map and
PMF.bind to the real-weighted finite sums used by the
low individual degree test averaging layer.
Main declarations #
PMF.map_apply_toRealPMF.realWeightedSumPMF.realWeightedSumLinearMapPMF.realWeightedSum_mapPMF.realWeightedSum_bindPMF.map_sum_smulPMF.bind_apply_toRealPMF.bind_sum_smulPMF.sum_toReal_eq_onePMF.sum_const_smulPMF.totalVariationDistancePMF.totalVariationDistance_eq_sum_max_subPMF.totalVariationDistance_uniformOfFintype_uniformOfFinset_eqPMF.sum_le_sum_add_totalVariationDistancePMF.sum_rpow_one_div_le_rpow_sumPMF.realWeightedSum_rpow_one_div_le_rpowPMF.uniformOfFintype_map_equivPMF.uniformOfFintype_prod_apply_toRealPMF.uniformOfFintype_prod_eq_bindPMF.uniformOfFintype_sum_equiv_smulPMF.uniformOfFintype_prod_sum_smulPMF.uniformOfFintype_sum_equiv_fst_smulPMF.uniformOfFintype_sum_equiv_snd_smulPMF.uniformOfFintype_sum_factor_equiv_smulPMF.uniformOfFintype_sum_factor_equiv_fst_smulPMF.uniformOfFintype_sum_factor_equiv_snd_smul
References #
These are formalization-internal finite probability lemmas for the low individual degree test development.
The finite real-weighted expectation of a module-valued function against a
probability mass function. This is the finite-sum form of expectation used in
the low individual degree test, stated directly in Mathlib's PMF language.
Equations
- p.realWeightedSum f = ∑ a : α, (p a).toReal • f a
Instances For
The finite PMF-weighted expectation as a linear map in the averaged family.
This is the linear form of PMF.realWeightedSum; it records that the
probability weights are fixed and the averaged object varies linearly.
Equations
- p.realWeightedSumLinearMap = { toFun := fun (f : α → M) => p.realWeightedSum f, map_add' := ⋯, map_smul' := ⋯ }
Instances For
The finite total-variation distance between two probability mass functions,
written as half the L^1 distance between their real weights.
This is the PMF form of the finite total-variation comparison used in
Proposition prop:ld-dnoteq of references/ldt-paper/ld-pasting.tex.
Instances For
Pointwise real-weight formula for a finite push-forward probability mass
function. This is the finite real-valued form of PMF.map_apply.
A finite PMF-weighted sum against a push-forward is the corresponding PMF-weighted sum of the pulled-back family.
Pointwise real-weight formula for a finite monadic composition of
probability mass functions. This is the finite real-valued form of
PMF.bind_apply.
A finite PMF-weighted sum against a monadic composition is the iterated PMF-weighted sum.
The uniform probability mass on a product is the product of the two coordinate uniform masses, after coercion to real weights.
The uniform probability mass function on a product is the monadic composition of the two coordinate-uniform probability mass functions.
The PMF-weighted sum of a constant family is the constant value.
Jensen's inequality for the concave power x ↦ x ^ (1 / n), stated for a
finite probability mass function.
Reindex a finite sum weighted by Mathlib's uniform PMF along an equivalence.
Split a finite sum weighted by the uniform PMF on a product into iterated uniform PMF-weighted sums.
Marginalize a uniform PMF-weighted sum along the first coordinate of a product equivalence.
Marginalize a uniform PMF-weighted sum along the second coordinate of a product equivalence.
A uniform PMF-weighted sum pushed forward through a map has the uniform average of an equivalent observed coordinate.
A uniform PMF-weighted sum pushed forward through a map has the first coordinate uniform marginal when the seed is equivalent to a product.
A uniform PMF-weighted sum pushed forward through a map has the second coordinate uniform marginal when the seed is equivalent to a product.
A finite PMF-weighted sum against a push-forward is the corresponding PMF-weighted sum of the pulled-back family.
A finite PMF-weighted sum against a monadic composition is the corresponding iterated PMF-weighted sum.
The finite PMF-weighted sum of a constant family is the constant value.
Reindex a finite expectation against Mathlib's uniform PMF along an equivalence.
Split a finite expectation against the uniform PMF on a product into iterated finite expectations against the coordinate-uniform PMFs.
A uniform finite expectation pushed forward through a map has the uniform expectation of an equivalent observed coordinate.
A uniform finite expectation pushed forward through a map has the first coordinate uniform marginal when the seed is equivalent to a product.
A uniform finite expectation pushed forward through a map has the second coordinate uniform marginal when the seed is equivalent to a product.
For finite probability mass functions, total variation is the total positive
part of the signed weight difference q - p.
This is the finite PMF form of the elementary total-variation calculation used
in Proposition prop:ld-dnoteq of references/ldt-paper/ld-pasting.tex.
Total variation between the uniform probability mass function on a finite ambient type and the uniform probability mass function on a nonempty finite subset.
This is the PMF form of the uniform-versus-conditioned-uniform calculation in
Proposition prop:ld-dnoteq of references/ldt-paper/ld-pasting.tex.
A [0,1]-valued function has expectations over two finite probability mass
functions differing by at most their total-variation distance.
This is the finite PMF comparison estimate used after Proposition
prop:ld-dnoteq in references/ldt-paper/ld-pasting.tex.
Jensen's inequality for the concave power x ↦ x ^ (1 / n), stated for the
finite expectation associated to a probability mass function.