Documentation

CslibFrontier.Probability.PairwiseIndependentHash.Covering

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:

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 #

Main results #

References #

def Cslib.Probability.Covers {ι : Type u_1} {X : Type u_2} {Y : Type u_3} [DecidableEq Y] (h : ι → X → Y) (S : Finset X) {p : ℕ} (seeds : Fin p → ι) :

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
    @[instance_reducible]
    instance Cslib.Probability.instDecidableCoversOfFintype {ι : Type u_1} {X : Type u_2} {Y : Type u_3} [DecidableEq Y] [Fintype Y] (h : ι → X → Y) (S : Finset X) {p : ℕ} (seeds : Fin p → ι) :
    Decidable (Covers h S seeds)

    Covering a finite target is decidable.

    theorem Cslib.Probability.Covers.card_le_mul {ι : Type u_1} {X : Type u_2} {Y : Type u_3} [DecidableEq Y] [Fintype Y] {h : ι → X → Y} {S : Finset X} {p : ℕ} {seeds : Fin p → ι} (hc : Covers h S seeds) :

    Covered targets are few: if p seeds cover Y from S, then |Y| ≤ p #S.

    theorem Cslib.Probability.covers_iff_nonempty {ι : Type u_1} {X : Type u_2} {Y : Type u_3} [DecidableEq Y] [Unique Y] {h : ι → X → Y} {S : Finset X} {p : ℕ} {seeds : Fin p → ι} (hp : 0 < p) :
    Covers h S seeds ↔ S.Nonempty

    A one-point target is covered exactly by a nonempty set, with at least one seed.

    theorem Cslib.Probability.IsPairwiseIndependentHash.exists_covers_of_card {ι : Type u_1} {X : Type u_2} {Y : Type u_3} [DecidableEq Y] [Fintype ι] [Fintype Y] {h : ι → X → Y} (hh : IsPairwiseIndependentHash h) [Nonempty Y] {S : Finset X} {q p : ℕ} (hS : q * Fintype.card Y ≤ S.card) (hp : Fintype.card Y < q ^ p) :
    ∃ (seeds : Fin p → ι), Covers h S seeds

    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.