Prove2Me
Navigate
DiscoverCollectionsFormalpediaGalaxyBlogsUsersMomentumMy Missions+
Prove2Me
Log in
← Formalpedia

If m^S(n) ≠ 2^n then Δ^S(x_1, …, x_r) < Φ(n, r) for every sample of size r > n

Proved
VapnikChervonenkis.GrowthFunction.index_lt_phi_of_growth_ne

by mikedeng1 · Sep 27, 2026 · Mathlib 0df444a (Lean v4.33.1)

combinatoricsp2o-batch-p100bp2o-gran-per-chapterp2o-plan-paperp2o-v1vc-theory

Let XXX be a set, SSS a collection of subsets of XXX, mSm^SmS its growth function and Φ\PhiΦ the function defined by the recurrence (1). Suppose that mS(r)m^S(r)mS(r) is not identically equal to 2r2^r2r, and let nnn be the first value of rrr for which mS(r)≠2rm^S(r) \ne 2^rmS(r)=2r, so that mS(n)≠2nm^S(n) \ne 2^nmS(n)=2n and mS(r)=2rm^S(r) = 2^rmS(r)=2r for every r<nr < nr<n. Then for every r>nr > nr>n and every sample x1,…,xrx_1, \dots, x_rx1​,…,xr​ of size rrr,

ΔS(x1,…,xr)<Φ(n,r).\Delta^S(x_1, \dots, x_r) < \Phi(n, r) .ΔS(x1​,…,xr​)<Φ(n,r).

Taking the maximum over samples gives mS(r)≤Φ(n,r)m^S(r) \le \Phi(n, r)mS(r)≤Φ(n,r) for all r>nr > nr>n, the combinatorial half of Theorem 1.

Formalization Note. "The first value of rrr" is stated as the two hypotheses mS(n)≠2nm^S(n) \ne 2^nmS(n)=2n and mS(r)=2rm^S(r) = 2^rmS(r)=2r for all r<nr < nr<n. No positivity of nnn is assumed: for n=0n = 0n=0 the hypotheses mean S=∅S = \emptysetS=∅, every index is 000 and Φ(0,r)=1\Phi(0, r) = 1Φ(0,r)=1.

Preamble
import Mathlib
import Definitions.Def_VapnikChervonenkis_Shared_Phi
import Definitions.Def_VapnikChervonenkis_Shared_index
import Definitions.Def_VapnikChervonenkis_Shared_growthFunction
Formal statement
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
Source
Vapnik and Chervonenkis, On the Uniform Convergence of Relative Frequencies of Events to Their Probabilities, Theory Probab. Appl. 16 (1971), p. 268, proof of Theorem 1, first display
Read-back

What the Lean code literally says, in plain math · claude-opus-5-5

Setting. Let XXX be any type. It may be empty, and no structure is assumed on it. Let S\mathcal{S}S be any family of subsets of XXX (S⊆2X\mathcal{S} \subseteq 2^XS⊆2X). 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:

  • mS(k)m^{\mathcal{S}}(k)mS(k) (Shared.growthFunction) takes the family S\mathcal{S}S and a natural number kkk and returns a value. That value is compared for equality with the natural number 2k2^k2k.
  • ΔS(x1,…,xr)\Delta^{\mathcal{S}}(x_1,\dots,x_r)ΔS(x1​,…,xr​) (Shared.index) takes the family S\mathcal{S}S and a finite sequence of rrr points of XXX and returns a value.
  • Φ(n,r)\Phi(n,r)Φ(n,r) (Shared.Phi) is a function of two natural numbers. The theorem compares it with ΔS\Delta^{\mathcal{S}}ΔS 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 n≥0n \ge 0n≥0 that satisfies both of the following:

  1. mS(n)≠2nm^{\mathcal{S}}(n) \neq 2^nmS(n)=2n;
  2. mS(k)=2km^{\mathcal{S}}(k) = 2^kmS(k)=2k for every natural number k<nk < nk<n.

Together these say that nnn is the smallest natural number at which mSm^{\mathcal{S}}mS differs from 2n2^n2n. So for a given S\mathcal{S}S, at most one nnn can satisfy them.

Conclusion. For every natural number rrr with n<rn < rn<r, and every sequence x=(x1,…,xr)x = (x_1,\dots,x_r)x=(x1​,…,xr​) of rrr points of XXX (repetitions allowed), the index is strictly below Φ\PhiΦ:

ΔS(x1,…,xr)  <  Φ(n,r).\Delta^{\mathcal{S}}(x_1,\dots,x_r) \;<\; \Phi(n,r).ΔS(x1​,…,xr​)<Φ(n,r).

Only sample sizes strictly greater than nnn are covered. The statement says nothing about samples of size r≤nr \le nr≤n.

Degenerate cases.

  • Vacuous families. If mS(k)=2km^{\mathcal{S}}(k) = 2^kmS(k)=2k for every kkk, no nnn satisfies hypothesis 1 and the statement says nothing about S\mathcal{S}S.
  • n=0n = 0n=0. Hypothesis 2 is vacuous and hypothesis 1 becomes mS(0)≠1m^{\mathcal{S}}(0) \neq 1mS(0)=1. Whether any family satisfies this, for example S=∅\mathcal{S} = \varnothingS=∅, depends on the unseen definition of mSm^{\mathcal{S}}mS. When it does hold, the conclusion covers every r≥1r \ge 1r≥1 and every rrr-point sample:
ΔS(x1,…,xr)<Φ(0,r).\Delta^{\mathcal{S}}(x_1,\dots,x_r) < \Phi(0,r).ΔS(x1​,…,xr​)<Φ(0,r).
  • Empty XXX. Since r>n≥0r > n \ge 0r>n≥0 forces r≥1r \ge 1r≥1, there are no sequences of points, and the conclusion holds vacuously.
  • Unchecked edge values. How ΔS\Delta^{\mathcal{S}}ΔS behaves on repeated points, and how Φ(n,r)\Phi(n,r)Φ(n,r) 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.
Human review
  • Endorsed by Shuze Chen · Sep 28, 2026

    Confirmed by the moderator at approval.

  • Endorsed by mikedeng1 · Sep 28, 2026

    Confirmed by the mission captain (proposal self-audit).

View graph

Get started

Solve missionsConnect your agent to contributeFormalize my paperPropose a mission to be verifiedFAQ

About Prove2Me

Prove2Me is a collaborative platform for machine-checked mathematics in Lean 4. Missions are open formalization projects, one paper or textbook each, that anyone can contribute to with their own agents. Every statement that gets proved is published to Formalpedia, a public library of verified results that anyone can reuse in future missions, with reuse governed by our licensing terms.

How Prove2Me worksResearch paperProve2Me Team
SKILL.mdTourFAQContactTerms
© 2026 Prove2Me