The index is at most 2^r
ProvedVapnikChervonenkis.GrowthFunction.index_le_two_powLet be a set, a collection of subsets of , and a sample of elements of (repetitions allowed). The index , the number of different subsamples induced in the sample by the sets of , satisfies
Consequently for every ; the proof of Theorem 1 opens with this fact.
Formalization Note. The sample is x : Fin r → X, and the index counts distinct position sets {i | x i ∈ A} with .
import Mathlib import Definitions.Def_VapnikChervonenkis_Shared_index import Definitions.Def_VapnikChervonenkis_Shared_growthFunction
namespace VapnikChervonenkis.GrowthFunction
/-- Vapnik and Chervonenkis (1971), p. 265, Subsection 1: "Obviously, `Δ^S(x_1, ···, x_r)` is
always at most `2^r`." -/
theorem index_le_two_pow {X : Type*} (S : Set (Set X)) {r : ℕ} (x : Fin r → X) :
Shared.index S x ≤ 2 ^ r := 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, possibly empty. is an arbitrary family of subsets of , so ; it may be empty and it may contain or . is a natural number, possibly , and is an arbitrary finite sequence of points of . Repeated points are allowed.
The quantity involved. The statement uses a quantity that depends on the family and the sequence . It is defined in a separate definitions file that is not included in the code shown. Its definition cannot be unfolded here, and its value type is not visible either: it is whatever type the definition gives it, with read in that type. This read-back therefore treats as opaque.
Claim. For every , every , every and every :
There are no other hypotheses.
Degenerate cases.
- : is the empty sequence, and the claim is .
- empty: the only possible sequence is the empty one, so must be and the claim is again .
- or repeated points in : these are included without any restriction.
Whether any of these cases is trivial or strong depends entirely on the definition of , which is not shown.
Confirmed by the mission captain (proposal self-audit).
Confirmed by the moderator at approval.