Documentation

CslibFrontier.Probability.StatisticalDistance.Event

Events and relabeling under statistical distance #

Statistical distance bounds the change in the probability of every event (abs_toOuterMeasure_toReal_sub_le_dist), in particular the probability that a randomized distinguisher outputs any given value (abs_bind_apply_toReal_sub_le_dist), and relabeling both distributions by the same injective map preserves it (dist_map_of_injective).

Main results #

theorem Cslib.Probability.PMF.abs_toOuterMeasure_toReal_sub_le_dist {α : Type u_1} [Fintype α] (p q : PMF α) (event : Set α) :

Statistical distance bounds the change in the probability of every event.

theorem Cslib.Probability.PMF.abs_bind_apply_toReal_sub_le_dist {α : Type u_1} {β : Type u_2} [Fintype α] [Finite β] (p q : PMF α) (T : α → PMF β) (b : β) :
|((p.bind T) b).toReal - ((q.bind T) b).toReal| ≤ dist p q

A randomized distinguisher T outputs any given value b with probabilities, under p and under q, that differ by at most the statistical distance of p and q.

theorem Cslib.Probability.PMF.dist_map_of_injective {α : Type u_1} {β : Type u_2} [Fintype α] [Fintype β] (p q : PMF α) {f : α → β} (hf : Function.Injective f) :
dist (PMF.map f p) (PMF.map f q) = dist p q

Relabeling both distributions by the same injective map preserves statistical distance.