Sauer–Shelah lemma
Parent: vc-dimension Prereq: learning-theory —
H; and vc-dimension — shattering,VCdim.
The lemma that turns "finite VC" into a usable bound: a class of finite VC realizes only polynomially many labelings on n points, not 2ⁿ. This is the engine of the fundamental-theorem.
Definition
has a set, and the restrictionh ∩ SIdentify each hypothesis with its+region — the set of inputs it labels+:Under this identification
h ∩ Sis an ordinary set intersection, picking out the+points ofS:Because the labels are binary, this subset already is the labeling:
s ∈ h∩Smeanssis+,s ∉ h∩Smeans−. So a subset ofSand a labeling ofSare the same thing, and distincth ∩ S= distinct labelings.
Growth functionLet
S ⊆ Xbe a set ofnpoints from the input space. RestrictingHtoSgives — the distinct labelingsHproduces onS(viewing eachhas its set of+points). The growth function is the largest such count over alln-point sets:Always , with equality exactly when some
npoints are shattered.
It counts distinct label-patterns, and has nothing to do with predicting correctly (there is no target here).
Computing
Π_threshold(n)from the definition Recallhₜ ≡ [t, ∞), sohₜ ∩ S = {pᵢ ∈ S : pᵢ ≥ t}— the points to the right oft.
n = 2,S = {p₁, p₂}(p₁<p₂). Sweeptacross the line and read off the intersection:
where tsitshₜ ∩ Slabeling t ≤ p₁{p₁, p₂}(+,+)p₁ < t ≤ p₂{p₂}(−,+)t > p₂∅(−,−)3 distinct intersections (
{p₁}, i.e.(+,−), never occurs) →|H|_S| = 3. Same for any 2 points, soΠ(2) = 3.General
n,p₁ < … < pₙ. Sincehₜ ∩ Sis always the points≥ t, it is a suffix{pᵢ, …, pₙ}. Astsweepsℝit falls into one ofn+1gaps (beforep₁, between each consecutive pair, or afterpₙ), and the suffix shrinks one point at a time:That is
n+1distinct intersections, so|H|_S| = n+1. It's the same for every choice ofnpoints, hence the max isInfinitely many thresholds, only
n+1behaviors onnpoints — linearO(n), matching VC = 1. (Check: Sauer–Shelah givesC(n,0)+C(n,1) = 1 + n.) That collapse of an infinite class to a polynomial count is exactly what the growth function measures.
Sauer–ShelahIf
VCdim(H) = d, then for alln
So above the VC dimension the growth function switches from exponential 2ⁿ to polynomial nᵈ — that jump is the whole reason finite VC ⟹ learnable.
Proof (induction on n)
Write ; we show for every S with |S| = n, where .
Base. n = 0: one (empty) labeling, and . d = 0: H shatters no single point, so all hypotheses agree on every point, giving .
Step. Fix a point x ∈ S and let . Split by how each labeling of S' extends over x:
- — the labelings of
S'(two labelings ofSthat agree onS'collapse to one); - — the labelings of
S'that occur in with both values ofx.
Counting extensions gives (each S'-labeling has one or two extensions; the two-extension ones are exactly ).
H'is a restriction ofH, soVCdim(H') ≤ d, hence by induction.VCdim(H'') ≤ d − 1: ifH''shatters a setA ⊆ S', then every labeling ofAappears with both values ofx, soHshattersA ∪ {x}; thus|A| + 1 ≤ d. Hence by induction.
Adding, — the last equality is Pascal's identity . ∎
The bound then follows by a standard binomial estimate.