Uniform sampling and subset sums #
A surjective additive homomorphism between finite groups preserves the uniform distribution. Consequently, the sum over any nonempty subset of independently uniform group elements is uniform, and two distinct nonempty subsets give independent uniform sums. Replacing any one summand by a fresh uniform value also makes the complete sum uniform.
For bitstrings, addition is pointwise XOR. These subset sums are the pairwise independent
masks used by the Goldreich–Levin decoder. The joint-distribution theorem does not assert
mutual independence of three or more subset sums. The fiber-counting criterion is shared with
PairwiseIndependentHash.Shift; the subset-sum results are adapted from the cslib crypto
branch at 5ff69ca.
Main results #
Cslib.Probability.card_mul_card_filter_eq_of_shift,Cslib.Probability.dens_filter_eq_of_shift: translations force equal fibers.Cslib.Probability.PMF.uniformOfFintype_map_of_shift,Cslib.Probability.PMF.uniformOfFintype_map_addHom: uniformity from translations, in particular for surjective additive homomorphisms.Cslib.Probability.PMF.uniformOfFintype_map_sum,Cslib.Probability.PMF.uniformOfFintype_map_sum_pair: subset sums are uniform and pairwise independent.
References #
If every translate f + c of a function f : ι → G into a finite group is f ∘ e for a
permutation e of ι, then all fibers of f have the same size |ι| / |G|.
Uniformity from shifts: if every translate f + c of a function f : ι → G into a
finite group is f ∘ e for a permutation e of ι, then f is uniformly distributed: for a
uniformly random i, f i takes each value with probability 1 / |G|.
A function whose output translations are realized by permutations of its input sends uniform inputs to uniform outputs.
A finite sum is uniform if any one summand is fresh uniform, regardless of the others.
A surjective additive homomorphism of finite groups sends uniform inputs to uniform outputs.
A nonempty subset sum of independent uniform group elements is uniform.
Distinct nonempty subset sums have the joint distribution of two independent uniform samples.