Lemma 1 — Δ^S ≥ Φ(n, i) forces a subsample of size n with index 2^n
ProvedVapnikChervonenkis.GrowthFunction.lemma1_shattered_subsampleLet be a set, a collection of subsets of , and the function defined by the recurrence (1). Suppose that for some sample of size and some number with ,
Then there exists a subsample of this sample, with positions , such that
that is, the sets of induce all subsamples of .
This is the paper's form of the Sauer–Shelah lemma. Its contrapositive drives Theorem 1: if no subsample of size has index , then every sample of size has index below .
Formalization Note. Samples are functions Fin i → X. The subsample is x ∘ e for a strictly increasing e : Fin n → Fin i, so it consists of distinct positions of the sample (the points at those positions may coincide, in which case its index is below ). The range is part of the hypothesis, as in the paper.
import Mathlib import Definitions.Def_VapnikChervonenkis_Shared_Phi import Definitions.Def_VapnikChervonenkis_Shared_index import Definitions.Def_VapnikChervonenkis_Shared_growthFunction
namespace VapnikChervonenkis.GrowthFunction
/-- **Lemma 1** of Vapnik and Chervonenkis (1971), p. 266: if for some sample `x_1, ···, x_i` of
size `i` and some number `n` with `1 ≤ n ≤ i` one has `Δ^S(x_1, ···, x_i) ≥ Φ(n, i)`, then there is
a subsample `x_{i_1}, ···, x_{i_n}` of this sample (positions `i_1 < ··· < i_n`) with
`Δ^S(x_{i_1}, ···, x_{i_n}) = 2^n`. -/
theorem lemma1_shattered_subsample {X : Type*} (S : Set (Set X)) (i n : ℕ) (x : Fin i → X)
(hn1 : 1 ≤ n) (hni : n ≤ i) (hΔ : Shared.Phi n i ≤ Shared.index S x) :
∃ e : Fin n → Fin i, StrictMono e ∧ Shared.index S (x ∘ e) = 2 ^ n := by sorry
end VapnikChervonenkis.GrowthFunction
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
Setting.
- is an arbitrary type, and is an arbitrary family of subsets of .
- and are natural numbers.
- is a sequence of points of . Repeated points are allowed.
The quantities involved. Two quantities appear, both defined in separate definitions files that are not shown, so neither can be unfolded here:
- , a function of two natural numbers;
- , a quantity attached to and any finite sequence of points of .
The hypothesis compares with , so the two take values in the same ordered type.
Hypotheses.
- .
- .
- (non-strict).
Claim. Under these hypotheses, there exists a strictly increasing map
such that
In words: there are positions in the sequence such that the length- subsequence taken at those positions has exactly . Only existence is asserted, not uniqueness.
Degenerate cases.
- forces : is then non-empty, so must be non-empty for any instance to exist. If is empty, the statement holds vacuously.
- : excluded by hypothesis 1.
- : the only strictly increasing map is the identity. The claim then becomes: if , then .
- Repeated points: positions are distinct, but the chosen points need not be.
Whether hypothesis 3 can ever hold, and so whether the statement has non-vacuous content for given and , depends on the definitions of and , which are not shown.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.