Documentation

CslibFrontier.Computability.Communication.Discrepancy.Transport

Discrepancy under alphabet equivalences #

Separate equivalences of the players' alphabets map rectangles bijectively to rectangles. Thus transporting a gadget and its distribution preserves discrepancy. In particular, changing between finite indices and bit strings does not change uniform discrepancy.

theorem Cslib.Communication.discrepancy_comap_equiv {X : Type u_1} {Y : Type u_2} {X' : Type u_3} {Y' : Type u_4} [Finite X] [Finite Y] [Finite X'] [Finite Y'] (e : X' ≃ X) (f : Y' ≃ Y) (ν : PMF (X × Y)) (μ : PMF (X' × Y')) (g : X → Y → Bool) (hμ : ∀ (x : X') (y : Y'), μ (x, y) = ν (e x, f y)) :
(discrepancy μ fun (x : X') (y : Y') => g (e x) (f y)) = discrepancy ν g

Transporting both alphabet coordinates and their point masses preserves discrepancy.

theorem Cslib.Communication.discrepancy_uniform_comap_equiv {X : Type u_1} {Y : Type u_2} {X' : Type u_3} {Y' : Type u_4} [Fintype X] [Fintype Y] [Fintype X'] [Fintype Y'] [Nonempty X] [Nonempty Y] [Nonempty X'] [Nonempty Y'] (e : X' ≃ X) (f : Y' ≃ Y) (g : X → Y → Bool) :
(discrepancy (Probability.PMF.uniformOfFintype (X' × Y')) fun (x : X') (y : Y') => g (e x) (f y)) = discrepancy (Probability.PMF.uniformOfFintype (X × Y)) g

Uniform discrepancy is invariant under separate equivalences of the input alphabets.