Theorem 1 — m^S(r) is either identically 2^r or majorized by r^n + 1
ProvedVapnikChervonenkis.GrowthFunction.theorem1_growth_dichotomyLet be a set and a nonempty collection of subsets of , with growth function , the maximal number of different subsamples that the sets of induce in a sample of size . Then one of the following holds:
- for every ; or
- there is a positive integer , the first value of for which the equation is violated (that is, and for all ), such that
Theorem 1 says that the growth function of any class of events is either exponential or bounded by a polynomial, whose degree is the size of the smallest sample on which the class fails to induce every subsample. In the paper this dichotomy makes the bound of Theorem 2 tend to zero whenever is not identically .
Formalization Note. The class is assumed nonempty. The paper calls "a positive constant"; for every index is , the first violation occurs at , and would not be positive. The minimality of is part of the statement: a bound for an arbitrary violating would be weaker. Samples are sequences Fin r → X and growthFunction is the supremum of the index over them; the case reads .
import Mathlib import Definitions.Def_VapnikChervonenkis_Shared_Phi import Definitions.Def_VapnikChervonenkis_Shared_index import Definitions.Def_VapnikChervonenkis_Shared_growthFunction
namespace VapnikChervonenkis.GrowthFunction
/-- **Theorem 1** of Vapnik and Chervonenkis (1971), p. 267: the growth function `m^S(r)` is
either identically equal to `2^r`, or else it is majorized by `r^n + 1`, where `n` is a positive
constant equal to the first value of `r` for which `m^S(r) = 2^r` is violated. The class `S` is
assumed nonempty (for `S = ∅` the first violation is `r = 0`, and `n` is not positive). -/
theorem theorem1_growth_dichotomy {X : Type*} (S : Set (Set X)) (hS : S.Nonempty) :
(∀ r : ℕ, Shared.growthFunction S r = 2 ^ r) ∨
∃ n : ℕ, 0 < n ∧ Shared.growthFunction S n ≠ 2 ^ n ∧
(∀ r < n, Shared.growthFunction S r = 2 ^ r) ∧
∀ r : ℕ, Shared.growthFunction S r ≤ r ^ n + 1 := by sorry
end VapnikChervonenkis.GrowthFunction
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Let be an arbitrary type (any universe, possibly empty, with no finiteness, measurability or other structure assumed). Let be a family of subsets of , so , with the single hypothesis that is nonempty. may be finite or infinite.
The statement uses one non-standard notion, the growth function . It is written in the code, takes the family and a natural number , and is defined in a separate shared definitions file. That definition is not included in the code given to this auditor. So this read-back cannot say what actually computes: whether it counts the distinct traces on -point sets, how it treats repeated points or larger than , or what value it takes when that count is infinite. Its codomain is also not visible. The comparisons below with and happen in that codomain, whatever it is.
The theorem asserts that at least one of the following two alternatives holds:
- Alternative 1. For every natural number (including ),
- Alternative 2. There is a natural number that satisfies all four of these conditions:
- ;
- ;
- for every natural number ;
- for every natural number (including and every ),
Together, the second and third conditions mean that is exactly the smallest with . So when Alternative 2 holds, is uniquely determined. The two alternatives exclude each other, because Alternative 2 exhibits an where Alternative 1 fails. The statement is written as an ordinary "or", though. The bound in Alternative 2 is the polynomial , whose exponent is that first failure index . Nothing is said about how tight the bound is, and no condition other than is placed on for .
Degenerate cases.
- in Alternative 2. Because , the bound reads . The third condition also forces , since .
- in Alternative 2. The bound reads . If , the bound is for all .
- Empty . The hypothesis rules this case out, so the theorem says nothing about it.
- Empty or one-element . These are allowed. If is empty, the only nonempty choice is . If has one element, the choices are , and .
- In these cases the theorem still asserts one of the two alternatives. Which one holds depends entirely on how the unseen definition of behaves when exceeds the number of points of .
- For example, if that definition returns , a default value, or a count over multisets of points, the conclusion changes. That behaviour cannot be determined from the code shown.
- Infinite and junk values. The same caveat applies. The statement contains no division, no natural-number subtraction, no integral and no supremum. Any default or junk values could only enter through the definition of the growth function itself.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.