Documentation

CslibFrontier.Computability.Communication.Discrepancy.Symmetry

Discrepancy under exchange of the players #

Transposing the input distribution and Boolean gadget preserves discrepancy, since the same rectangles are available after swapping their two factors. In particular, uniform discrepancy is unchanged when the players exchange roles in a lifting simulation.

theorem Cslib.Communication.discrepancy_flip_of_swap {X : Type u_1} {Y : Type u_2} [Finite X] [Finite Y] (ν : PMF (X × Y)) (μ : PMF (Y × X)) (f : X → Y → Bool) (hswap : ∀ (x : X) (y : Y), μ (y, x) = ν (x, y)) :
(discrepancy μ fun (y : Y) (x : X) => f x y) = discrepancy ν f

Swapping the two players and the two coordinates of the input distribution preserves rectangle discrepancy.

theorem Cslib.Communication.discrepancy_uniform_flip {X : Type u_1} {Y : Type u_2} [Fintype X] [Fintype Y] [Nonempty X] [Nonempty Y] (f : X → Y → Bool) :

Uniform discrepancy is invariant under exchanging the players.