Documentation

CslibFrontier.Probability.Uniform.Translate

Subtracting a fixed mask from a uniform draw #

On a finite group, x ↦ x - c and x ↦ c - x are bijections, so they leave a uniform draw uniform, and an experiment that reads its uniform draw through either one is unchanged. These are the subtraction forms of the one-time-pad lemmas uniformOfFintype_map_add_right, uniformOfFintype_map_add_left, uniformOfFintype_bind_add_right and uniformOfFintype_bind_add_left in CslibFrontier.Probability.Uniform, which this module re-exports. They are kept in this leaf module because that file has many importers.

Main results #

Subtracting a fixed mask from a uniform element of a finite group leaves it uniform.

Subtracting a uniform element of a finite group from a fixed value, x ↦ c - x, leaves it uniform.

theorem Cslib.Probability.PMF.uniformOfFintype_bind_sub_right {G : Type u_1} [AddGroup G] [Fintype G] {β : Type u_2} (c : G) (f : G → PMF β) :
((uniformOfFintype G).bind fun (x : G) => f (x - c)) = (uniformOfFintype G).bind f

Unmasking a uniform draw on the right does not change an experiment that consumes it.

theorem Cslib.Probability.PMF.uniformOfFintype_bind_sub_left {G : Type u_1} [AddGroup G] [Fintype G] {β : Type u_2} (c : G) (f : G → PMF β) :
((uniformOfFintype G).bind fun (x : G) => f (c - x)) = (uniformOfFintype G).bind f

Reading a uniform draw as c - x does not change an experiment that consumes it.

theorem Cslib.Probability.PMF.uniformOfFintype_bind_bind_sub_right {G : Type u_1} [AddGroup G] [Fintype G] {H : Type u_2} {β : Type u_3} (p : PMF H) (g : H → G) (f : G → H → PMF β) :
((uniformOfFintype G).bind fun (x : G) => p.bind fun (y : H) => f (x - g y) y) = (uniformOfFintype G).bind fun (x : G) => p.bind fun (y : H) => f x y

Subtracting a function of a second independent draw leaves a uniform group element unchanged.