Variance-Aware 2m-th Moment and Collision-Concentration Bounds for k-Wise Independence #
This module provides two high-probability concentration tools for k-wise independent hash families
(Cslib.Probability.IsKWiseIndependentHash):
- Heterogeneous variance-aware
2 m-th moment and tail bounds (expect_sum_pow_le_of_sq_le,dens_filter_le_abs_sum_of_sq_le,dens_filter_le_abs_sum_sub_expect_of_Icc): RefinesIsKWiseIndependentHash.expect_sum_pow_lewhen centered termsZ x(|Z x| โค 1) satisfy per-coordinate second-moment bounds๐ผ y, (Z x y) ^ 2 โค v x(0 โค v x). Replacing#Swithmax (โ x โ S, v x) 1gives tail densitym * (m ^ 2 * max (โ x โ S, v x) 1 / a ^ 2) ^ m, yielding polynomial1 - n ^ (-c)concentration underO(c log n)-wise independence whenevera ^ 2 โฅ ฮฉ(m ^ 2 * max (โ x โ S, v x) 1)(becausesum_prod_image_eq_card_ledrops the1 / r!symmetry factor, leavingm ^ 2rather thanmin the numerator). CompareCslibFrontier.Probability.KWiseIndependent.Concentration(expect_sum_sub_expect_pow_le,dens_abs_sum_sub_expect_le), which retains1 / r!for[0, 1]-valued variables under the lower-mean regime2 * m โค 3 * ฮผto obtain2 * (3 * m * ฮผ / a ^ 2) ^ m(supportingO(c log n / log log n)-wise unit-mean balls-into-bins bounds when2 * m โค 3 * ฮผ), whereas the bounds here apply to general centered[-1, 1]variables and arbitraryโ x โ S, v xwithout requiring2 * m โค 3 * โ x โ S, v x. - Multi-salt collision-freedom and batch collision-count tail bounds
(
dens_forall_salt_exists_collision_le,dens_card_salt_colliding_ge_le): Bounds the probability that alls_maxsalts collide on a bucket under2 * s_max-wise independence, and bounds via greedy independent-witness extraction the probability that at least2 * rkeys in a batchQ_setcollide with a windowW_setacrosss_maxsalts under2 * r-wise independence.
Main results #
Cslib.Probability.IsKWiseIndependentHash.expect_sum_pow_le_of_sq_le:๐ผ i, (โ x โ S, Z x (h i x)) ^ (2 * m) โค m * m ^ (2 * m) * max (โ x โ S, v x) 1 ^ m.Cslib.Probability.IsKWiseIndependentHash.dens_filter_le_abs_sum_of_sq_le:dens {i | a โค |โ x โ S, Z x (h i x)|} โค m * (m ^ 2 * max (โ x โ S, v x) 1 / a ^ 2) ^ m.Cslib.Probability.IsKWiseIndependentHash.dens_filter_le_abs_sum_sub_expect_of_Icc: specialization to[0, 1]-valued random variablesg x : Y โ [0, 1].Cslib.Probability.IsKWiseIndependentHash.dens_forall_salt_exists_collision_le: probability that every salts : Fin s_maxhas an intra-bucket collision onS_bis at most(#S_b ^ 2 / |Y|) ^ s_max.Cslib.Probability.IsKWiseIndependentHash.dens_card_salt_colliding_ge_le,Cslib.Probability.IsKWiseIndependentHash.dens_card_local_salt_colliding_ge_le: probability that at least2 * rkeys inQ_setcollide withW_set(or per-key neighborhoodsW_of uof sizeโค w_cap) under some salt inFin s_max.
References #
Section 1: Heterogeneous variance-aware 2 m-th moment bound #
Heterogeneous variance-aware 2 m-th moment bound for limited independence:
For 1 โค m, a 2 * m-wise independent family h : ฮน โ X โ Y, a finite set S : Finset X, and
centered scores Z : X โ Y โ โ with |Z x y| โค 1 and ๐ผ y, (Z x y) ^ 2 โค v x (0 โค v x),
๐ผ i, (โ x โ S, Z x (h i x)) ^ (2 * m) โค m * m ^ (2 * m) * max (โ x โ S, v x) 1 ^ m.
Two-sided variance-aware tail bound for limited independence:
For 1 โค m, 0 < a, and 2 * m-wise independent centered sums bounded in [-1, 1] with
per-coordinate variance โค v x (0 โค v x),
dens {i | a โค |โ x โ S, Z x (h i x)|} โค m * (m ^ 2 * max (โ x โ S, v x) 1 / a ^ 2) ^ m.
Variance-aware tail bound for [0, 1]-valued scores:
For g x : Y โ [0, 1], each centered variable Z x y = g x y - ๐ผ y', g x y' automatically
satisfies |Z x y| โค 1 and ๐ผ y, (Z x y) ^ 2 โค ๐ผ y, g x y, yielding concentration in terms of
the mean sum ฮผ = โ x โ S, ๐ผ y, g x y rather than #S.
Section 2: Multi-salt collision-freedom and batch collision-count tail bounds #
Fresh-endpoint pair-collision bound under 2 * r-wise independence:
Suppose a, b : Fin r โ Z satisfy โ k, a k โ b k and โ j < k, a k โ a j โง a k โ b j (each
a k is distinct from its partner b k and all earlier endpoints a j, b j for j < k). Then
for any 2 * r-wise independent family H : ฮน โ Z โ Y,
dens {i | โ k, H i (a k) = H i (b k)} โค (|Y|โปยน) ^ r.
Multi-salt intra-bucket collision-freedom bound:
Under a 2 * s_max-wise independent family H : ฮน โ Fin s_max ร Q โ Y, the fraction of seeds i
for which every salt s : Fin s_max has a colliding pair u โ v inside S_b : Finset Q is at
most (#S_b ^ 2 / |Y|) ^ s_max.
Per-key neighborhood salt-collision count tail bound:
Under a 2 * r-wise independent family H : ฮน โ Fin s_max ร Q โ Y, given a batch
Q_set : Finset Q and per-key candidate collision sets W_of : Q โ Finset Q with
โ u โ Q_set, #(W_of u) โค w_cap, the fraction of seeds i for which at least 2 * r keys
u โ Q_set collide with some v โ W_of u \ {u} under some salt s : Fin s_max is at most
(((#Q_set * w_cap * s_max) / |Y|) ^ r).
Batch salt-collision count tail bound:
Under a 2 * r-wise independent family H : ฮน โ Fin s_max ร Q โ Y, given a batch
Q_set : Finset Q and a window W_set : Finset Q, the fraction of seeds i for which at least
2 * r keys u โ Q_set collide with some v โ W_set \ {u} under some salt s : Fin s_max is at
most ((#Q_set * #W_set * s_max) / |Y|) ^ r.