โ {ฮฑ : Type u_1} {n d : โ} {๐ : Set (Set ฮฑ)}, HasVCDimLE d ๐ โ d โค n โ โ(vcGrowth n ๐) โค (Real.exp 1 / โd * โn) ^ d- DeclHasVCDimLE.vcGrowth_le_expDeclaration kindtheorem
โ {ฮฑ : Type u_1} {n d : โ} {๐ : Set (Set ฮฑ)}, HasVCDimLE d ๐ โ d โค n โ โ(vcGrowth n ๐) โค (Real.exp 1 / โd * โn) ^ d - Declsum_choose_le_exp_powDeclaration kindtheorem
โ (d m : โ), 0 < d โ d โค m โ โ i โ Finset.range (d + 1), โ(m.choose i) โค (Real.exp 1 / โd * โm) ^ d
Used by
- Declsum_choose_mul_pow_le_add_one_powDeclaration kindtheorem
Truncating a binomial expansion at degree
dcan only decrease it, fort โฅ 0.โ {m d : โ} {t : โ}, 0 โค t โ d โค m โ โ i โ Finset.range (d + 1), โ(m.choose i) * t ^ i โค (1 + t) ^ mUsed by
- Declsum_choose_le_mul_sum_choose_mul_powDeclaration kindtheorem
Undoing the weighting
t ^ icosts a single factor(m / d) ^ d, sincet = d / mand eachiin range is at mostd.โ {m d : โ}, 0 < โd โ 0 < โm โ โd โค โm โ โ i โ Finset.range (d + 1), โ(m.choose i) โค (โm / โd) ^ d * โ i โ Finset.range (d + 1), โ(m.choose i) * (โd / โm) ^ iUsed by
- Declone_add_div_pow_le_exp_powDeclaration kindtheorem
At
t = d / m, the binomial base is bounded byexp 1raised to the degree.โ {m d : โ}, 0 < โm โ (1 + โd / โm) ^ m โค Real.exp 1 ^ dUsed by
- DeclHasVCDimLE.vcGrowth_le_sum_rangeDeclaration kindtheorem
The Sauer-Shelah inequality, with the sum indexed by
Finset.range (d + 1).โ {ฮฑ : Type u_1} {n d : โ} {๐ : Set (Set ฮฑ)}, HasVCDimLE d ๐ โ vcGrowth n ๐ โค โ k โ Finset.range (d + 1), n.choose kUsed by
- DeclHasVCDimLE.vcGrowth_leDeclaration kindtheorem
โ {ฮฑ : Type u_1} {n d : โ} {๐ : Set (Set ฮฑ)}, HasVCDimLE d ๐ โ vcGrowth n ๐ โค โ k โ Finset.Iic d, n.choose k - DeclHasVCDimLE.ncard_image_inter_leDeclaration kindtheorem
The Sauer-Shelah inequality: a family of VC dimension at most
dtraces at mostโ k โค d, n.choose ksets on any finite set of size at mostn. The proof here derives it from Pajor's inequality.Simon, A Guide to NIP Theories, states the same bound as his Lemma 6.4, for the growth function of a class of VC dimension at most
k, and records in the notes to that chapter that the lemma is implicit in Vapnik and Chervonenkis (1971) and was rediscovered independently by Shelah (1972) and by Sauer (1972). Dvir, Filmus and Moran state it in the introduction to A Sauer-Shelah-Perles Lemma for Lattices and cite the same three sources. Perles is carried in the name they give the lemma; a publication of his is cited by neither source.โ {ฮฑ : Type u_1} {n d : โ} {๐ : Set (Set ฮฑ)} {A : Set ฮฑ}, HasVCDimLE d ๐ โ A.Finite โ A.ncard โค n โ ((fun x => A โฉ x) '' ๐).ncard โค โ k โ Finset.Iic d, n.choose kUses
Used by
- Declncard_setOf_ncard_leDeclaration kindtheorem
โ {ฮฑ : Type u_1} {A : Set ฮฑ}, A.Finite โ โ (d : โ), {B | B โ A โง B.ncard โค d}.ncard = โ k โ Finset.Iic d, A.ncard.choose kUses
- DeclsetOf_subset_and_ncard_le_zeroDeclaration kindtheorem
โ {ฮฑ : Type u_1} {A : Set ฮฑ}, A.Finite โ {B | B โ A โง B.ncard โค 0} = {โ }Used by
- DeclsetOf_subset_and_ncard_le_succDeclaration kindtheorem
The subsets of
Aof size at mostd + 1split into those of size at mostdand those of size exactlyd + 1.โ {ฮฑ : Type u_1} (d : โ) (A : Set ฮฑ), {B | B โ A โง B.ncard โค d + 1} = {B | B โ A โง B.ncard โค d} โช {B | B โ A โง B.ncard = d + 1}Used by
- Decldisjoint_setOf_ncard_le_setOf_ncard_eqDeclaration kindtheorem
โ {ฮฑ : Type u_1} (d : โ) (A : Set ฮฑ), Disjoint {B | B โ A โง B.ncard โค d} {B | B โ A โง B.ncard = d + 1}Used by
- Declncard_image_inter_le_ncard_setOf_shattersDeclaration kindtheorem
The
ncardtransfer ofencard_image_inter_le_encard_shatters, forAfinite. Internal: the general statement is theencardone, which needs no hypothesis.โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A : Set ฮฑ}, A.Finite โ ((fun x => A โฉ x) '' ๐).ncard โค {B | B โ A โง Shatters ๐ B}.ncard - Declencard_image_inter_le_encard_shattersDeclaration kindtheorem
Pajor's inequality, with no finiteness assumptions: the traces of
๐onAare at most as many as the subsets ofAshattered by๐. For a finite trace family this is a descent on the number of traces that never consumes the ground set; an infinite trace family forces infinitely many shattered singletons, and both sides areโค.Dvir, Filmus and Moran, A Sauer-Shelah-Perles Lemma for Lattices, credit the Boolean lattice case to Pajor (Sous-espaces
โโโฟdes espaces de Banach, Travaux en Cours 16, Hermann, Paris, 1985) and to Aharoni and Holzman, unpublished. Their Theorem 1.2 is the lattice form, for finite lattices with nonvanishing Mรถbius function: a family shatters at least as many elements as it has members. Reading that for a family of traces on a ground set is the standard translation into the language of set families, and the statement here carries no finiteness hypothesis, which theirs does.โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A : Set ฮฑ}, ((fun x => A โฉ x) '' ๐).encard โค {B | B โ A โง Shatters ๐ B}.encard - Declpajor_encard_auxDeclaration kindtheorem
โ {ฮฑ : Type u_1} {A : Set ฮฑ} (N : โ) (๐ : Set (Set ฮฑ)), ((fun x => A โฉ x) '' ๐).Finite โ ((fun x => A โฉ x) '' ๐).ncard โค N โ ((fun x => A โฉ x) '' ๐).encard โค {B | B โ A โง Shatters ๐ B}.encardUses
- Decltrace_sep_unionDeclaration kindtheorem
โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A : Set ฮฑ} {x : ฮฑ}, (fun x => A โฉ x) '' {C | C โ ๐ โง x โ C} โช (fun x => A โฉ x) '' {C | C โ ๐ โง x โ C} = (fun x => A โฉ x) '' ๐Used by
- Decltrace_sep_disjointDeclaration kindtheorem
โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A : Set ฮฑ} {x : ฮฑ}, x โ A โ Disjoint ((fun x => A โฉ x) '' {C | C โ ๐ โง x โ C}) ((fun x => A โฉ x) '' {C | C โ ๐ โง x โ C})Used by
- DeclnotMem_of_shatters_sep_rightDeclaration kindtheorem
โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {B : Set ฮฑ} {x : ฮฑ}, Shatters {C | C โ ๐ โง x โ C} B โ x โ BUsed by
- DeclnotMem_of_shatters_sep_leftDeclaration kindtheorem
โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {B : Set ฮฑ} {x : ฮฑ}, Shatters {C | C โ ๐ โง x โ C} B โ x โ BUsed by
- DeclnotMem_of_forall_notMemDeclaration kindtheorem
A family whose members all avoid
xshatters only sets avoidingx.โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {B : Set ฮฑ} {x : ฮฑ}, (โ C โ ๐, x โ C) โ Shatters ๐ B โ x โ B - Declinsert_injOn_notMemDeclaration kindtheorem
Inserting a fixed element is injective on the sets avoiding it: the element can be removed again, recovering the argument.
โ {ฮฑ : Type u_1} (x : ฮฑ), Set.InjOn (insert x) {B | x โ B}Used by
- Declexists_splitterDeclaration kindtheorem
โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A : Set ฮฑ}, ((fun x => A โฉ x) '' ๐).Nontrivial โ โ x โ A, (โ C โ ๐, x โ C) โง โ C โ ๐, x โ CUsed by
- Declexists_splitter_of_not_subsetDeclaration kindtheorem
A point of
Awitnessing that one trace fails to contain another is a point at which๐splits.โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A C C' : Set ฮฑ}, C โ ๐ โ C' โ ๐ โ ยฌA โฉ C โ A โฉ C' โ โ x โ A, (โ D โ ๐, x โ D) โง โ D โ ๐, x โ DUsed by
- Decldisjoint_image_insertDeclaration kindtheorem
A family whose members all avoid
xis disjoint from any family of sets containingx.โ {ฮฑ : Type u_1} {x : ฮฑ} {๐ฎ ๐ฏ : Set (Set ฮฑ)}, (โ B โ ๐ฎ, x โ B) โ Disjoint ๐ฎ (insert x '' ๐ฏ)Used by
- DeclShatters.insertDeclaration kindtheorem
If
Bis shattered both by the members of๐avoidingxand by the members of๐containingx, then๐shattersinsert x B. This is the exchange step in the proof of Pajor's inequality.โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {B : Set ฮฑ} {x : ฮฑ}, Shatters {C | C โ ๐ โง x โ C} B โ Shatters {C | C โ ๐ โง x โ C} B โ Shatters ๐ (insert x B)Used by
- Declinfinite_setOf_shattersDeclaration kindtheorem
โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A : Set ฮฑ}, ((fun x => A โฉ x) '' ๐).Infinite โ {B | B โ A โง Shatters ๐ B}.Infinite - Declsingleton_image_splitPoints_subsetDeclaration kindtheorem
The singleton of a point at which
๐splits is shattered by๐.โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A : Set ฮฑ}, (fun x => {x}) '' splitPointsโ ๐ A โ {B | B โ A โง Shatters ๐ B}Used by
- Declshatters_singletonDeclaration kindtheorem
โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {x : ฮฑ}, Shatters ๐ {x} โ (โ C โ ๐, x โ C) โง โ C โ ๐, x โ C - DeclShatters.of_forall_subsetDeclaration kindtheorem
Shattersread atSet ฮฑ, as an introduction rule; theโฉ-shaped companion ofShatters.of_forall_le.โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A : Set ฮฑ}, (โ โฆB : Set ฮฑโฆ, B โ A โ โ C โ ๐, A โฉ C = B) โ Shatters ๐ A - DeclShatters.exists_inter_eqDeclaration kindtheorem
Shattersread atSet ฮฑ, whereโisโฉandโคisโ: every subset ofAis the intersection ofAwith a member of๐. Definitionally the same statement, stated in the shape every use site wants, so that consumers obtain anโฉ-typed equation directly.โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A B : Set ฮฑ}, Shatters ๐ A โ B โ A โ โ C โ ๐, A โฉ C = B - Declfinite_image_inter_of_finite_splitPointsDeclaration kindtheorem
A family splitting
Aat finitely many elements has finitely many traces onA.โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A : Set ฮฑ}, (splitPointsโ ๐ A).Finite โ ((fun x => A โฉ x) '' ๐).FiniteUsed by
- DeclinjOn_inter_splitPointsDeclaration kindtheorem
A trace of
๐onAis determined by its restriction to the elements at which๐splits: elsewhere, membership in the trace is decided byAalone.โ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A : Set ฮฑ}, Set.InjOn (fun x => x โฉ splitPointsโ ๐ A) ((fun x => A โฉ x) '' ๐) - Declfinite_setOf_subset_andDeclaration kindtheorem
Any collection of subsets of a finite set is finite.
โ {ฮฑ : Type u_1} {A : Set ฮฑ}, A.Finite โ โ (p : Set ฮฑ โ Prop), {B | B โ A โง p B}.Finite - DeclHasVCDimLE.ncard_le_of_shattersDeclaration kindtheorem
A family of VC dimension at most
dshatters only sets of size at mostd.โ {ฮฑ : Type u_1} {d : โ} {๐ : Set (Set ฮฑ)} {B : Set ฮฑ}, HasVCDimLE d ๐ โ Shatters ๐ B โ B.ncard โค d - DeclHasVCDimLE.finite_of_shattersDeclaration kindtheorem
A family of VC dimension at most
dshatters only finite sets.โ {ฮฑ : Type u_1} {d : โ} {๐ : Set (Set ฮฑ)} {B : Set ฮฑ}, HasVCDimLE d ๐ โ Shatters ๐ B โ B.Finite - Hypothesish๐
HasVCDimLE d ๐
- Hypothesishdn
d โค n
A set family
๐has VC dimension at mostdif all the sets it shatters have size at mostd.{ฮฑ : Type u_1} โ โ โ Set (Set ฮฑ) โ PropA set family
๐shatters a setAif all subsets ofAcan be obtained as the intersection ofAwith some element of the set family. We also say thatAis traced by๐.{ฮฑ : Type u_1} โ [SemilatticeInf ฮฑ] โ Set ฮฑ โ ฮฑ โ Propโ {ฮฑ : Type u_1} [inst : SemilatticeInf ฮฑ] {๐ : Set ฮฑ} {A : ฮฑ}, Shatters ๐ A โ โ B โ ๐, A โค Bโ {ฮฑ : Type u_1} [inst : SemilatticeInf ฮฑ] {๐ โฌ : Set ฮฑ} {A : ฮฑ}, ๐ โ โฌ โ Shatters ๐ A โ Shatters โฌ Aโ {ฮฑ : Type u_1} [inst : BooleanAlgebra ฮฑ] {๐ : Set ฮฑ} {A : ฮฑ}, Shatters ๐ A โ Shatters ((fun x => xแถ) โปยน' ๐) Aโ {ฮฑ : Type u_1} {๐ : Set (Set ฮฑ)} {A B : Set ฮฑ}, A โ B โ Shatters ๐ B โ Shatters ๐ Aโ {ฮฑ : Type u_1} [inst : SemilatticeInf ฮฑ] {๐ : Set ฮฑ} [inst_1 : OrderBot ฮฑ], Shatters ๐ โฅ โ ๐.Nonempty- DefinitionsplitPointsdef
The elements of
Aat which๐splits: some member of๐contains them and some does not. These are exactly the elements whose singleton๐shatters.{ฮฑ : Type u_1} โ Set (Set ฮฑ) โ Set ฮฑ โ Set ฮฑ The growth of a set family is the maximum number of sets it cuts out from any set of size at most
n.{ฮฑ : Type u_1} โ โ โ Set (Set ฮฑ) โ โโ {ฮฑ : Type u_1} {n : โ} {๐ : Set (Set ฮฑ)} {d : โ}, vcGrowth n ๐ โค d โ โ โฆA : Set ฮฑโฆ, A.Finite โ A.ncard โค n โ ((fun x => A โฉ x) '' ๐).ncard โค d
Verification
- Replay
- accepted
- Axioms
- Classical.choiceQuot.soundpropext
- Statement identity
- not-applicable
- Substrate
- Lean 4 kernel v4.31.0
- Dictionary pin
- design-lab@5802df4 ยท initial
- Frozen export
- 600ed63e389a
- Verified
- 2026-09-24T00:00:00Z