On the Uniform Convergence of Relative Frequencies of Events to Their Probabilities I: The Growth Function DichotomyResearch Paper
Motivation
Statistical learning theory asks when the empirical frequencies of a whole class of events converge to their probabilities uniformly over the class. Vapnik and Chervonenkis answered this question in 1971 (Theory Probab. Appl. 16 (1971) 264–280) by attaching to every class of sets a single combinatorial quantity, the growth function, and bounding the probability of a large uniform deviation in terms of it. For that bound to be useful, the growth function must grow more slowly than an exponential. The first result of the paper, Theorem 1, shows that the growth function of any class is either exactly or bounded by a polynomial. This dichotomy is the reason finite VC dimension (the size of the largest fully shattered sample) became the central complexity measure of learning theory.
Timeline of the combinatorial core:
- 1971–1972. The same polynomial bound appeared in three independent papers: Vapnik and Chervonenkis (this paper; announced in Dokl. Akad. Nauk SSSR 181 (1968)), N. Sauer, On the density of families of sets, J. Combin. Theory Ser. A 13 (1972) 145–147, and S. Shelah, A combinatorial problem; stability and order for models and theories in infinitary languages, Pacific J. Math. 41 (1972) 247–261. The bound of Lemma 1 below is now called the Sauer–Shelah lemma.
- 1989. Blumer, Ehrenfeucht, Haussler and Warmuth, Learnability and the Vapnik–Chervonenkis dimension, J. ACM 36 (1989) 929–965, made finite VC dimension the characterization of PAC learnability.
Setting
Let be a set and a collection of subsets of . A sample of size is a finite sequence of elements of ; repetitions are allowed. Each induces in the sample the subsample of the terms that lie in , which is determined by the set of positions .
The index is the number of different subsamples induced by the sets of , i.e. the number of distinct sets of positions with . It is at most . The growth function is
the maximum over all samples of size . For the rays on the line ; for the open subsets of , .
The function on pairs of natural numbers is defined by the recurrence (1) of the paper,
In the Lean development these are index S x for x : Fin r → X, growthFunction S r, and Phi n r in the namespace VapnikChervonenkis.GrowthFunction.
Formalization targets
Goal: Theorem 1 (p. 267)
For a nonempty class , either for every , or, with the first value of at which fails,
The exponent is pinned down by minimality: and for every .
Milestones, in the order the proof uses them
- The index is at most (p. 265): .
- The closed form of (p. 266): for , and for .
- The polynomial bound (p. 266): for , .
- Lemma 1 (p. 266): if and , some subsample of size satisfies .
- The first display of the proof of Theorem 1 (p. 268): if , then for every sample of size .
Significance
Theorem 1 converts the distribution-free bound of Theorem 2 of the same paper into a convergence statement: whenever the growth function is not identically , the right-hand side is a polynomial times a decaying exponential, so relative frequencies converge to probabilities uniformly over . The same dichotomy underlies sample-complexity bounds for PAC learning, covering-number bounds for VC classes, and the notion of VC dimension itself; the exponent is the VC dimension plus one.
The results are classical and proved. Mathlib contains the Sauer–Shelah lemma for finite set families (Finset.card_shatterer_le_sum_vcDim in Mathlib/Combinatorics/SetFamily/Shatter.lean). The platform has several open formal statements of Sauer's lemma for growth functions over finite point sets (ComputationalLearning.sauer_lemma, FoundationsML.RademacherVC.sauer_lemma, HighDimProb.Chaining.sauer_shelah) and a closed form for Kearns–Vazirani's (ComputationalLearning.phi_closed_form, the same recurrence). No statement of Theorem 1, and none over the paper's sequence model of samples, is formalized. This mission formalizes the paper's own route: Lemma 1 in the paper's form, the polynomial bound on , and the dichotomy with the minimal exponent. It also provides the growth function over sequences that the companion missions (Theorem 2, and the entropy criterion Theorem 4) are stated with.
Difficulty
The obvious argument has two steps: bound by whenever no subsample of size is fully split, then bound by . The first step is the Sauer–Shelah lemma, and it does not follow from counting alone. A class can induce many subsamples on points without inducing all on any fixed of them, and no counting of subsamples one position at a time rules this out. The second step is elementary but must hold uniformly for all , including , where and the bound uses .
Samples are sequences, not sets. With repeated points, two positions carrying the same point can never be separated, so Lemma 1 must be applied to position sets rather than point sets. Transferring Mathlib's set-family lemma to this setting is a bookkeeping step that does not reduce to a citation.
Formalization scope
- A sample of size is
x : Fin r → Xwith positions ; repetitions are allowed. A subsample of size isx ∘ ewithe : Fin n → Fin istrictly increasing. index S xcounts distinctFinset (Fin r)of positions{i | x i ∈ A}withA ∈ S. Counting point setsA ∩ {x_1, …, x_r}instead would be a different object when points repeat; the growth function over finite sets of points (as inComputationalLearning_VC) differs from when has fewer than elements.growthFunction S ris the supremum inℕofindex S xover all samples; the family is bounded by , so it is a maximum. When is empty and its value is ; exactly when is nonempty.Phiis defined by the recurrence (1). The paper introduces as the maximal number of components into which hyperplanes cut -space; that geometric identity (Example 3) is not part of this mission.- Hypothesis added to Theorem 1: nonempty. The paper calls "a positive constant"; for every index is , the first violation is at and is not positive.
- Corrections of the printed text. (a) The closed form of is printed with summand ; it is formalized with (the printed version already fails at ). (b) The proof of Theorem 1 ends "for , ", which fails at ; the milestone is the non-strict bound stated on p. 266. The milestone texts are verbatim from the page.
- Milestone 5 states the first display of the proof of Theorem 1 with its hypothesis as printed: is the first value of with .
- The goal keeps the minimality of . A version stating for an arbitrary with would be a different theorem, and a version that drops the first disjunct or allows would trivialize.
No measure, σ-algebra or probability appears: the class is an arbitrary collection of subsets of a bare type. Needed infrastructure: basic API for index (monotonicity in the sample, behaviour under restriction to a subsample) and a bridge between samples and Mathlib's set families (Finset.Shatters, Finset.vcDim). Both are reusable by the two companion missions of this paper, and contributions of either are welcome.
Selected references
- V. N. Vapnik and A. Ya. Chervonenkis, On the uniform convergence of relative frequencies of events to their probabilities, Theory of Probability and Its Applications 16(2) (1971) 264–280 (English translation by B. Seckler). https://doi.org/10.1137/1116025
- N. Sauer, On the density of families of sets, Journal of Combinatorial Theory, Series A 13 (1972) 145–147. https://doi.org/10.1016/0097-3165(72)90019-2
- S. Shelah, A combinatorial problem; stability and order for models and theories in infinitary languages, Pacific Journal of Mathematics 41 (1972) 247–261. https://doi.org/10.2140/pjm.1972.41.247
- A. Blumer, A. Ehrenfeucht, D. Haussler and M. K. Warmuth, Learnability and the Vapnik–Chervonenkis dimension, Journal of the ACM 36(4) (1989) 929–965. https://doi.org/10.1145/76359.76371