If m^S(n) ≠ 2^n then Δ^S(x_1, …, x_r) < Φ(n, r) for every sample of size r > n
ProvedVapnikChervonenkis.GrowthFunction.index_lt_phi_of_growth_neLet be a set, a collection of subsets of , its growth function and the function defined by the recurrence (1). Suppose that is not identically equal to , and let be the first value of for which , so that and for every . Then for every and every sample of size ,
Taking the maximum over samples gives for all , the combinatorial half of Theorem 1.
Formalization Note. "The first value of " is stated as the two hypotheses and for all . No positivity of is assumed: for the hypotheses mean , every index is and .
import Mathlib import Definitions.Def_VapnikChervonenkis_Shared_Phi import Definitions.Def_VapnikChervonenkis_Shared_index import Definitions.Def_VapnikChervonenkis_Shared_growthFunction
namespace VapnikChervonenkis.GrowthFunction
/-- Vapnik and Chervonenkis (1971), p. 268, first display of the proof of Theorem 1: suppose
`m^S(r)` is not identically `2^r` and `n` is the first value of `r` for which `m^S(r) ≠ 2^r`
(`m^S(n) ≠ 2^n` and `m^S(r) = 2^r` for all `r < n`). Then for any sample `x_1, ···, x_r` of size
`r > n`, `Δ^S(x_1, ···, x_r) < Φ(n, r)`. -/
theorem index_lt_phi_of_growth_ne {X : Type*} (S : Set (Set X)) (n : ℕ)
(hn : Shared.growthFunction S n ≠ 2 ^ n)
(hmin : ∀ r < n, Shared.growthFunction S r = 2 ^ r) (r : ℕ) (hr : n < r) (x : Fin r → X) :
Shared.index S x < Shared.Phi n r := by sorry
end VapnikChervonenkis.GrowthFunction
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting. Let be any type. It may be empty, and no structure is assumed on it. Let be any family of subsets of (). The statement uses three definitions that are imported from other files and not shown here. The read-back can name them but cannot unfold them:
- (
Shared.growthFunction) takes the family and a natural number and returns a value. That value is compared for equality with the natural number . - (
Shared.index) takes the family and a finite sequence of points of and returns a value. - (
Shared.Phi) is a function of two natural numbers. The theorem compares it with using strict "<".
The exact meaning of each of these, and the number system each one lives in, is fixed by those imported definitions and not by this statement.
Hypotheses. The statement is universally quantified over a natural number that satisfies both of the following:
- ;
- for every natural number .
Together these say that is the smallest natural number at which differs from . So for a given , at most one can satisfy them.
Conclusion. For every natural number with , and every sequence of points of (repetitions allowed), the index is strictly below :
Only sample sizes strictly greater than are covered. The statement says nothing about samples of size .
Degenerate cases.
- Vacuous families. If for every , no satisfies hypothesis 1 and the statement says nothing about .
- . Hypothesis 2 is vacuous and hypothesis 1 becomes . Whether any family satisfies this, for example , depends on the unseen definition of . When it does hold, the conclusion covers every and every -point sample:
- Empty . Since forces , there are no sequences of points, and the conclusion holds vacuously.
- Unchecked edge values. How behaves on repeated points, and how is valued at small or boundary arguments (for example, whether it involves natural-number subtraction or truncated binomial sums), is fixed by the imported definitions. This statement does not constrain either.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.