Haussler's Sphere-Packing Lemma for VC Classes #
Subsampling alone bounds an ε-separated set of labelings of VC dimension d by Dudley's
O((1 / ε) ^ (2 d)) (card_le_div_pow_of_le_hammingDist in
CslibFrontier/MachineLearning/PACLearning/Packing.lean), losing a factor of 2 in the exponent.
Haussler [Hau95] sharpened the exponent to the optimal d, proving that every ε-separated
subset P ⊆ {0, 1}^m whose shattered sets have size at most d satisfies
|P| ≤ e (d + 1) (2 e / ε) ^ d.
This module formalizes Haussler's sphere-packing bound and its Hamming covering-net corollary:
- Weighted one-inclusion shifting inequality (
sum_min_update_le_mul_sum): a weighted coordinate-shifting strengthening of the hypercube edge-density bound in [Hau95]. For any nonnegative weightμ : (ι → Bool) → ℝwhose positive support shatters no finite set of more thandcoordinates, the sum ofmin (μ f) (μ (update f i true))over all hypercube edges is at mostd · ∑ f, μ f. Coordinate shifting replacesμonFin (n + 1) → Boolby pointwisemaxandminacross coordinate0, whose supports shatter at mostdandd - 1coordinates respectively. - Harmonic-mean edge bound (
sum_harmonic_update_le_two_mul_sum): since2 a b / (a + b) ≤ 2 min a bfora, b ≥ 0, the harmonic-mean edge sum is at most2 d · ∑ f, μ f, obtained directly from the weighted shifting step without an edge-orientation argument. - Random-projection fiber gap (
mul_sub_expect_card_image_le): applying the harmonic-mean bound to fiber multiplicities ofPon uniform(r + 1)-tuplest : Fin (r + 1) → Fin m(sampled with replacement, so the argument allowsr = ⌊2 (d + 1) / ε⌋₊even whenr ≥ m) and counting within-fiber disagreements across the(r + 1)-st coordinate yields((r + 1) ε - 2 d) |P| ≤ (r + 1) ε · 𝔼_s [|P|_s|]. - Haussler's Boolean
n-cube sphere-packing theorem (card_le_exp_mul_add_one_mul_pow_of_setShatters,card_le_exp_mul_add_one_mul_pow, [Hau95]): choosingr = ⌊2 (d + 1) / ε⌋₊and bounding|P|_s|bygrowthFunction_le_exp_mul_powatT = 2 / εgives|P| ≤ e (d + 1) (2 e / ε) ^ dfor0 < ε ≤ 1, along with thevcDimform and the maximal-packing covering-net bound (exists_covering_haussler). The 1995 J. Combin. Theory Ser. A PDF has not been inspected firsthand here, so internal lemma/theorem numbers are omitted; the generalL¹(P)probability- measure extension remains open under #4920.
Main definitions #
hypercubeEdgeMinSum μ: sum ofmin (μ f) (μ (Function.update f i true))over hypercube edges(i, f)withf i = false.
Main results #
sum_min_update_le_mul_sum:hypercubeEdgeMinSum μ ≤ d * ∑ f, μ fwhen{f | 0 < μ f}shatters no finite set of size exceedingd.sum_harmonic_update_le_two_mul_sum: harmonic-mean hypercube edge inequality.mul_sub_expect_card_image_le:((r + 1) ε - 2 d) |P| ≤ (r + 1) ε · 𝔼_s [|P|_s|].card_le_exp_mul_add_one_mul_pow_of_setShatters,card_le_exp_mul_add_one_mul_pow,card_le_exp_mul_vcDim_add_one_mul_pow: Haussler'se (d + 1) (2 e / ε) ^ dpacking bound.exists_covering_haussler:ε m-Hamming covering net of size at moste (d + 1) (2 e / ε) ^ d.
References #
1. Weighted hypercube min-edge shifting inequality #
Sum of min (μ f) (μ (Function.update f i true)) across all undirected hypercube edges (i, f)
with f i = false (weighted analogue of the hypercube edge count in [Hau95]).
The edge-minimum sum counts each edge at its endpoint with coordinate i equal to false.
Weighted hypercube edge-density inequality (a weighted coordinate-shifting strengthening of
the edge-density lemma in [Hau95]): if μ : (ι → Bool) → ℝ is nonnegative and its support
{f | 0 < μ f} shatters no finite set of more than d coordinates, then
hypercubeEdgeMinSum μ ≤ d * ∑ f, μ f.
Harmonic-mean hypercube edge inequality: under the hypotheses of sum_min_update_le_mul_sum,
∑ i, ∑ f, (if f i = false then 2 μ(f) μ(f⊕e_i) / (μ(f) + μ(f⊕e_i)) else 0) ≤ 2 d ∑ f, μ(f).
2. Random-projection fiber gap and Haussler's sphere-packing bound #
Random-projection fiber gap [Hau95]: for an ε-separated subset P of {0, 1}^m
(0 < m) whose shattered sets have size at most d, and any r : ℕ,
((r + 1) ε - 2 d) |P| ≤ (r + 1) ε · (∑ s : Fin r → Fin m, |P|_s|) / m ^ r.
Haussler's Sphere-Packing Theorem for a Boolean subset [Hau95]: if
P : Finset (Fin m → Bool) shatters no finite set of more than d coordinates and its members
pairwise have Hamming distance at least ε m (0 < ε ≤ 1), then
P.card ≤ e (d + 1) (2 e / ε) ^ d.
Haussler's Sphere-Packing Theorem for concept classes on a sample [Hau95]: if every
finite set shattered by C : ConceptClass α Bool has at most d points, then any ε-separated set
P ⊆ restriction C x of labelings on m sample points (0 < ε ≤ 1) has at most
e (d + 1) (2 e / ε) ^ d elements, sharpening Dudley's (8 / ε) ^ (2 d) bound in
card_le_div_pow_of_le_hammingDist.
Haussler's packing bound stated in terms of vcDim for a class of finite VC dimension.
Haussler Hamming covering-number bound: if every finite set shattered by C has size at
most d, then for any m sample points x and 0 < ε ≤ 1, restriction C x admits an
ε m-Hamming net N ⊆ restriction C x of size at most e (d + 1) (2 e / ε) ^ d.