Documentation

CslibFrontier.Probability.StatisticalDistance.DirectProduct

Statistical distance of independent repetitions #

k independent draws from two distributions at statistical distance δ are at distance at least 1 - 2 exp (-k δ² / 2) (one_sub_two_mul_exp_le_dist_iid). This is the lower half of the Direct Product Lemma of Sahai and Vadhan [SahaiVadhan2003, Lemma 3.4]; the upper half, dist (iid μ k) (iid ν k) ≤ k δ, is Cslib.Probability.PMF.dist_iid_le.

The distinguisher counts the coordinates that fall in the event S on which μ is more likely than ν. Each coordinate lands in S with probability p under μ and q = p - δ under ν, so the count concentrates near k p under μ and near k q under ν. Hoeffding's inequality for [0, 1] scores (Cslib.Probability.PMF.pi_sum_ge_mean_add_card_mul, Cslib.Probability.PMF.pi_sum_le_mean_sub_card_mul) bounds the probability that the count crosses the midpoint threshold, under either distribution, by exp (-k δ² / 2).

Main results #

References #

theorem Cslib.Probability.PMF.one_sub_two_mul_exp_le_dist_iid {α : Type u_1} [Fintype α] (μ ν : PMF α) (k : ℕ) :
1 - 2 * Real.exp (-(↑k * dist μ ν ^ 2) / 2) ≤ dist (iid μ k) (iid ν k)

Direct product lower bound [SahaiVadhan2003, Lemma 3.4]: k independent draws from μ and from ν are at statistical distance at least 1 - 2 exp (-k δ² / 2), where δ = dist μ ν. Together with dist_iid_le this is the Direct Product Lemma.