Restriction-Fiber Cardinalities and Conditioning for k-Wise Independent Hash Families #
This module provides exact natural-number fiber-cardinality identities for restrictions
T.restrict (h i) = y (#T ≤ k) and full evaluations h i = y (Fintype.card X ≤ k) of a
k-wise independent hash family h : ι → X → Y, together with fiber conditioning of a
(k + 1)-wise independent hash family on a single evaluation h θ x = v₀.
Main results #
Cslib.Probability.IsKWiseIndependentHash.card_filter_restrict_eq: for#T ≤ kandy : T → Ywith[Nonempty Y],Fintype.card Y ^ #T * #{i : ι | T.restrict (h i) = y} = Fintype.card ι.Cslib.Probability.IsKWiseIndependentHash.card_filter_eq_of_card_le: forFintype.card X ≤ kandy : X → Ywith[Nonempty Y],#{i : ι | h i = y} * Fintype.card Y ^ Fintype.card X = Fintype.card ι.Cslib.Probability.IsKWiseIndependentHash.card_fiber_eq: single-point fiber identityFintype.card Y * Fintype.card {θ // h θ x = v₀} = Fintype.card ι.Cslib.Probability.IsKWiseIndependentHash.fiber: conditioning a(k + 1)-wise independent family onh θ x = v₀yields a nonempty fiber carrying ak-wise independent family on{z : X // z ≠ x}.Cslib.Probability.dens_le_of_hash_fiber: uniform fiber-wise upper bound on(dens {θ | Bad θ})under(k + 1)-wise independence by conditioning onh θ x = v₀.
Exact natural-number fiber cardinality of T.restrict (h i) = y under a k-wise independent
hash family h : ι → X → Y over a nonempty codomain Y.
Exact natural-number fiber cardinality of h i = y on a finite domain X with
Fintype.card X ≤ k under a k-wise independent hash family h : ι → X → Y.
Exact single-point fiber cardinality |Y| * |{θ // h θ x = v₀}| = |ι| under (k + 1)-wise
independence.
Conditioning a (k + 1)-wise independent hash family h : ι → X → Y on h θ x = v₀ yields a
nonempty seed fiber {θ : ι // h θ x = v₀} carrying a k-wise independent hash family on
{z : X // z ≠ x}.
Conditioning a (k + 1)-wise independent hash family h on h θ x = v₀ yields a k-wise
independent family on {y // y ≠ x} (IsKWiseIndependentHash.fiber), bounding any seed event
uniformly across fibers.