Covering a target set with a few hash functions #
Seeds seeds i of a family of functions h i : X → Y cover Y from a finite set S ⊆ X if
every y : Y is the image of an element of S under one of the functions h (seeds i)
(Cslib.Probability.Covers). Covering is a two-sided size test for S:
- if
his pairwise independent,Yis nonempty,q |Y| ≤ #Sand|Y| < q ^ p, then somepseeds coverY(Cslib.Probability.IsPairwiseIndependentHash.exists_covers_of_card; withYempty there may be no seeds at all): by the second moment bound, at most a1 / qfraction of the seeds miss a given target, and a union bound over the targets findspseeds that miss none (Cslib.exists_cover_of_scaled_card_lt); - if
pseeds coverY, then|Y| ≤ p #S(Cslib.Probability.Covers.card_le_mul), whatever the family.
With Y the strings of u bits, q = 2 and p = u + 1, covering holds when #S ≥ 2 ^ (u + 1)
and fails when (u + 1) #S < 2 ^ u: a test that separates sizes a factor 2 (u + 1) apart. Like
the hashing analysis of the set lower bound protocol of Goldwasser and Sipser
[GS86], Arora and Barak, Section 8.2, covering certifies a lower
bound on a size. The
union bound over the targets is that of Lautemann's covering lemma [Lau83]
(Cslib.exists_forall_exists_mul_mem_of_mul_card_compl_le), with the seeds of a pairwise
independent family in place of shifts.
Main definitions #
Cslib.Probability.Covers:pseeds cover the target from a finite set.
Main results #
Cslib.Probability.IsPairwiseIndependentHash.exists_covers_of_card: large sets are covered by few seeds of a pairwise independent family.Cslib.Probability.Covers.card_le_mul: covered targets are at mostptimes the set.Cslib.Probability.covers_iff_nonempty: a one-point target is covered exactly by a nonempty set.
References #
The seeds seeds i cover Y from S if every y : Y is the image of an element of S
under one of the functions h (seeds i).
Instances For
Covered targets are few: if p seeds cover Y from S, then |Y| ≤ p #S.
A one-point target is covered exactly by a nonempty set, with at least one seed.
Large sets are covered by few seeds: if h is pairwise independent, q |Y| ≤ #S and
|Y| < q ^ p, then some p seeds cover Y from S. At most a 1 / q fraction of the seeds
miss a given target (IsPairwiseIndependentHash.card_filter_notMem_image_mul_le), and the union
bound over the targets (Cslib.exists_cover_of_scaled_card_lt) finds p seeds that miss none.