Total variation and squared weights #
Adapted for Lean Pool by changing module paths and selecting explicit imports.
For probability distributions P = p ^ 2 and Q = q ^ 2, Cauchy–Schwarz bounds the square
of their total variation distance by ∑ x, (p x - q x) ^ 2.
The file also proves Weierstrass' product inequality, used to compare product distributions
in Komlos.Cube.
theorem
Komlos.tvDist_sq_le
{E : Type u_1}
{P Q : E →₀ ℝ}
{s : Finset E}
(hPs : P.support ⊆ s)
(hQs : Q.support ⊆ s)
{p q : E → ℝ}
(hP : ∀ x ∈ s, P x = p x ^ 2)
(hQ : ∀ x ∈ s, Q x = q x ^ 2)
(hp : ∑ x ∈ s, p x ^ 2 = 1)
(hq : ∑ x ∈ s, q x ^ 2 = 1)
:
Cauchy–Schwarz: the total variation distance between p ^ 2 and q ^ 2 is at most the
L² distance between p and q.