Documentation

CslibFrontier.Probability.PairwiseIndependentHash.SupportSize

Pairwise-Independent Affine-Hash Support-Size Estimator #

This module defines the zero-hitting probability affineHashHitProb R j T of a uniformly random j-bit affine hash function on a finite set T ⊆ BitString R and proves that summing this probability over j = 0, ..., R estimates ⌊log₂ |T|⌋ within [-1, +3].

Main definitions #

Main results #

: Pairwise-Independent Affine-Hash Support-Size Estimator #

noncomputable def Cslib.Probability.affineHashHitProb (R j : ℕ) (T : Finset (BitString R)) :

Exact real probability that a uniformly random j-bit affine hash sends some element of T ⊆ BitString R to 0^j.

theorem Cslib.Probability.affineHashHitSum_bounds (R : ℕ) {T : Finset (BitString R)} (hT : T.Nonempty) :
↑(Nat.log 2 T.card) - 1 ≤ ∑ j : Fin (R + 1), affineHashHitProb R (↑j) T ∧ ∑ j : Fin (R + 1), affineHashHitProb R (↑j) T ≤ ↑(Nat.log 2 T.card) + 3

Affine-hash support-size estimator: for every nonempty T ⊆ BitString R, ⌊log₂ #T⌋ - 1 ≤ ∑_{j=0}^R Pr[0 ∈ affineHash_j(T)] ≤ ⌊log₂ #T⌋ + 3.