Documentation

CslibFrontier.Probability.KWiseIndependent.Minwise

Minimum ranks under five-wise independence #

A distinguished key is a weak minimum among itself and L distinct competitors with probability at most 256 / L under five-wise independent uniform ranks, when the rank alphabet has at least L values. Conditional on the distinguished rank, the indicators of smaller competitors are four-wise independent. Their fourth moment controls the probability of seeing no smaller rank. Summing this bound over the distinguished rank gives the inverse-linear dependence even when ranks can tie.

This adapts the continuous-rank upper bound of Knudsen and Stöckel, Theorem 2, Section 5.1 to a discrete uniform rank alphabet. Their theorem uses strict minima and uniform ranks on the unit interval. Here the rank alphabet is finite, and every tie at the minimum counts. The discrete sum is bounded by telescoping consecutive reciprocals.

theorem Cslib.Probability.IsKWiseIndependentHash.dens_le_all {Seed : Type u_1} {X : Type u_2} [Fintype Seed] {q : ℕ} {h : Seed → X → Fin q} (hh : IsKWiseIndependentHash 5 h) (S : Finset X) {x : X} (hx : x ∉ S) (hS : 0 < S.card) (hSq : S.card ≤ q) :
↑{s : Seed | ∀ y ∈ S, h s x ≤ h s y}.dens ≤ 256 / ↑S.card

Under five-wise independent uniform ranks, a key has rank at most all #S competitors' ranks with probability at most 256 / #S. Ties count toward the event.

theorem Cslib.Probability.IsKWiseIndependentHash.exists_card_endpoint_min_le {Seed : Type u_1} {A : Type u_2} {X : Type u_3} [Fintype Seed] [Fintype A] {q L : ℕ} {h : Seed → X → Fin q} (hh : IsKWiseIndependentHash 5 h) (w : A → Fin (L + 1) → X) (hL : 0 < L) (hLq : L ≤ q) :
∃ (s : Seed), {a : A | Function.Injective (w a) ∧ ((∀ (j : Fin (L + 1)), h s (w a 0) ≤ h s (w a j)) ∨ ∀ (j : Fin (L + 1)), h s (w a (Fin.last L)) ≤ h s (w a j))}.card * L ≤ 512 * Fintype.card A

One seed makes an endpoint a weak minimum on at most 512 * card A / L of the injective windows in a family. The windows may overlap arbitrarily.