FormalConjecturesForMathlib/Combinatorics/SetFamily/VCDim.lean
Explanation legend Lean4 Domain Explanation Language (L4DEL)
L4DEL explanations are a separate layer. They do not change the Lean source. Intuition is explanatory prose; numbered items are a reading path; sources link the wording back to evidence.
- L4DEL
- Lean4 Domain Explanation Language
Credit: The upstream authors and contributors retain credit for the project and mathematics. lean4-explainer only renders their pinned source and adds the separately disclosed explanation layer.
Project sources: Pinned project documentation, Formal Conjectures paper, arXiv v1
16 declarations, 0 contain sorry, 0 declared as axioms
VC dimension of a set family
This file defines the VC dimension of a set family as the maximum size of a set it shatters.
Imports (1)
Imported by 2 files
- def
ShattersA set familyπshatters a setAif restrictingπtoAgives rise to all subsets ofAline 33 sourceSource documentation
A set family
πshatters a setAif restrictingπtoAgives rise to all subsets ofA.no axioms what this means
Statement uses:
SetProof uses:
LE.le,Exists,And,Membership.mem,Eq,Inter.inter3 instances, coercions and auxiliary constants left out.
def Shatters : Prop := β β¦Bβ¦, B β A β β C β π, A β© C = B
- lemma
Shatters.exists_inter_eq_singletonline 35 sourceno axioms what this means
Statement uses:
Set, Shatters,Membership.mem,Exists,And,Eq,Inter.inter,Singleton.singletonProof uses:
Iff.mpr,LE.le,Set.singleton_subset_iff6 instances, coercions and auxiliary constants left out.
- lemma
Shatters.mono_leftline 38 sourceno axioms what this means
Statement uses:
Set,LE.le, ShattersProof uses:
Exists,And,Membership.mem,Eq,Inter.inter,Exists.intro,And.intro5 instances, coercions and auxiliary constants left out.
- lemma
Shatters.mono_rightline 41 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,LE.le, ShattersProof uses:
And,Membership.mem,Eq,Inter.inter,Exists,LE.le.trans,Exists.intro,And.intro,inf_congr_right,inf_le_of_left_le16 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Shatters.exists_supersetline 44 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Set, Shatters,Exists,And,Membership.mem,LE.leProof uses:
Eq,Inter.inter,Set.Subset.rfl,Exists.intro,And.intro,Iff.mp,Set.inter_eq_left6 instances, coercions and auxiliary constants left out.
- lemma
Shatters.of_forall_subsetline 47 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Set,LE.le,Membership.mem, ShattersProof uses:
Exists.intro,And,Eq,Inter.inter,And.intro,Iff.mpr,Set.inter_eq_right5 instances, coercions and auxiliary constants left out.
- lemma
Shatters.nonemptyline 50 sourceno axioms what this means
Statement uses:
Set, Shatters,Set.NonemptyProof uses:
Exists,And,Membership.mem,Eq,Inter.inter,Set.Subset.rfl,Exists.intro3 instances, coercions and auxiliary constants left out.
- lemma
shatters_emptyline 53 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Set,Iff, Shatters,EmptyCollection.emptyCollection,Set.NonemptyProof uses:
Iff.intro, Shatters.nonempty,LE.le,Exists,And,Membership.mem,Eq,Inter.inter,Exists.intro,And.intro,Eq.mpr,id,Eq.trans,congrFun',congrArg,Set.empty_inter,Eq.mp8 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
Shatters.subset_iffline 56 sourceno axioms what this means
Statement uses:
Set, Shatters,Iff,LE.le,Exists,And,Membership.mem,Eq,Inter.interProof uses:
Iff.intro,Set.inter_subset_left9 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
shatters_iffline 59 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Set,Iff, Shatters,Eq,Set.image,Inter.inter,Set.powersetProof uses:
Iff.intro,Set.ext,of_eq_true,Membership.mem,Eq.trans,Exists,And,True,congr,congrArg,LE.le,propext, Shatters.subset_iff,iff_self,Eq.superset13 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
univ_shattersline 62 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Set, Shatters,Set.univProof uses: Shatters.of_forall_subset,
of_eq_true,LE.le,Membership.mem,Eq.trans,True,forall_congr,implies_congr,Eq.refl,implies_true3 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
shatters_univline 64 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Set,Iff, Shatters,Set.univ,EqProof uses:
of_eq_true,Eq.trans,Membership.mem,True,congr,congrArg,forall_congr,LE.le,Exists,And,Inter.inter,implies_congr,funext,congrFun',Set.univ_inter,iff_self9 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- def
HasVCDimAtMostDocumented declaration: HasVCDimAtMost line 71 sourceSource documentation
A set family
πhas VC dimension at mostdif there are no familiesxof elements indexed by[d + 1]andAof sets ofπindexed by2^[d + 1]such thatx i β A s β i β sfor alli β [d + 1], s β [d + 1].no axioms what this means
Statement uses:
Set,NatProof uses:
Fin,HAdd.hAdd,OfNat.ofNat,Membership.mem,Not,Iff4 instances, coercions and auxiliary constants left out.
def HasVCDimAtMost : Prop := β¦
- lemma
HasVCDimAtMost.antiline 75 sourceno axioms what this means
Statement uses:
Set,Nat,LE.le, HasVCDimAtMostProof uses:
Fin,HAdd.hAdd,OfNat.ofNat,Membership.mem6 instances, coercions and auxiliary constants left out.
- lemma
HasVCDimAtMost.monoline 78 sourcestandard axioms: Quot.sound, propext what this means
Statement uses:
Set,Nat,LE.le, HasVCDimAtMostProof uses:
Fin,HAdd.hAdd,OfNat.ofNat,Membership.mem,Iff,Decidable.byContradiction,Not,Function.comp,Fin.castLE,Set.image,of_eq_true,Eq.trans,True,forall_congr,eq_true,implies_true,Iff.trans,congrFun',congrArg,Existsand 4 more11 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.
- lemma
HasVCDimAtMost.emptyline 84 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat, HasVCDimAtMost,EmptyCollection.emptyCollection,SetProof uses:
of_eq_true,Fin,HAdd.hAdd,OfNat.ofNat,Membership.mem,Not,Iff,Eq.trans,True,forall_congr,False,Exists,implies_congr,congrArg,funext,implies_true13 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.