Lemma 1 — a sample with Δ^S ≥ Φ(n, i) has a subsample of size n with index 2^n
ProvedVapnikChervonenkis.Entropy.lemma1_shattered_subsampleLet be a collection of subsets of a set , let be a sample of size , and let be a number with . If
where is defined by the recurrence (1), then there is a subsample () of this sample such that
that is, induces all subsamples of it. This is the Sauer–Shelah lemma in the paper's sequence formulation; in the proof of necessity of Theorem 4 it provides, on a typical sample, a large subsample on which induces every subsample.
Formalization Note. The subsample is given by a strictly increasing map e : Fin n → Fin i of positions, and its terms are x ∘ e.
import Mathlib import Definitions.Def_VapnikChervonenkis_Shared_Phi import Definitions.Def_VapnikChervonenkis_Shared_index open MeasureTheory Filter Topology
namespace VapnikChervonenkis.Entropy
/-- **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.Entropy
Read-back
What the Lean code literally says, in plain math · claude-opus-5-5
No measure is involved. The setting:
- is any type and is any family of subsets of .
- is the imported natural-number-valued index of a finite sample.
- is an imported quantity ("Phi") depending on two natural numbers and compared with .
- Neither definition is in the code shown.
For all natural numbers with , and every sample with , the statement asserts that there exist indices (a strictly increasing map from into ) such that
Degenerate cases:
- is excluded, and so is .
- The hypothesis is the non-strict . If happened to be for some admissible , the hypothesis would hold for every sample. The conclusion would then be asserted for every , including when is empty. Whether that can happen depends on the unseen definition of .
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.