Define the growth function τH(m). State and prove Sauer's lemma: if VCdim⁡(H)=d, then τH(m)≤∑i=0d(mi). Why does this matter for generalisation?

Learning theory, VC theory
Level L5 Expert. Length Long. Nature Mat Mathematical.

What's being asked

Whether you can prove the polynomial bound on the number of labellings, which is what makes infinite classes with finite VC dimension learnable.

Key idea

Prove the stronger claim that for every finite set C, ∣HC∣≤∣{B⊆C:H shatters B}∣, by induction on ∣C∣. No set larger than d is shattered, so the count is at most ∑i=0d(mi)≤(emd)d for m≥d: polynomial in m instead of 2m.

Steps

  1. Define HC, the set of labellings of C realised by H, and τH(m)=max⁡∣C∣=m∣HC∣. Note τH(m)=2m for m≤d.
  2. Base case ∣C∣=1: if H realises one label on c, both sides are 1 (only ∅ is shattered); if it realises both, both sides are 2.
  3. Inductive step: let C={c1,…,cm} and C′={c2,…,cm}. Define Y0={(y2,…,ym):(0,y2,…,ym)∈HC or (1,y2,…,ym)∈HC} and Y1={(y2,…,ym):(0,y2,…,ym)∈HC and (1,y2,…,ym)∈HC}. Then ∣HC∣=∣Y0∣+∣Y1∣.
  4. Y0=HC′, so by induction ∣Y0∣ is at most the number of subsets of C′ shattered by H, which equals the number of shattered B⊆C with c1∉B.
  5. Let H′={h∈H:∃h′∈H with h′(c1)=1−h(c1) and h′=h on C′}. Then Y1=HC′′, and if H′ shatters B⊆C′ then H shatters B∪{c1}. By induction, ∣Y1∣ is at most the number of shattered B⊆C with c1∈B. Adding the two bounds proves the claim.
  6. Connect to generalisation: the classical bound Pr⁡[sup⁡h∈H∣LS(h)−LD(h)∣>ϵ]≤4 τH(2m) e−mϵ2/8 is useless if τH(2m)=22m, but with Sauer's lemma the polynomial beats the exponential, giving uniform convergence with m=O((dln⁡(d/ϵ)+ln⁡(1/δ))/ϵ2). So finite VC dimension implies PAC learnability.

Common mistakes

How long your answer should be

One page; about 10 minutes.

Last checked on 4 December 2026.

Read this

Previous in Learning theory: What is the VC dimension of linear classifiers (with a bias term) in d-dimensional space Rd, and how do you prove it?
Next in Learning theory: How do you prove the no free lunch theorem: for any learning algorithm A for binary classification with the 0-1 loss over a domain X, and any training size m<∣X∣/2, there is a distribution D and a labelling function f with LD(f)=0 such that with probability at least 17 over S∼Dm, LD(A(S))≥18?