FormalConjecturesForMathlib/Data/Finset/Powerset.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
4 declarations, 0 contain sorry, 0 declared as axioms
Imports (1)
Imported by 1 file
- lemma
Finset.powersetCard_interline 27 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
DecidableEq,Finset,Nat,Eq,Finset.powersetCard,Inter.interProof uses:
Finset.ext,Eq.mpr,Iff,Membership.mem,And,LE.le,Finset.card,id,congr,congrArg,Eq.trans,congrFun',and_and_right12 instances, coercions and auxiliary constants left out.
Tactic trace: 2 steps
Open to load the checked before-and-after goal states.
- lemma
Finset.disjoint_powersetCard_powersetCardline 30 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
DecidableEq,Finset,Nat,Iff,Disjoint,Finset.powersetCard,LT.lt,Finset.card,Inter.interProof uses:
of_eq_true,Eq.trans,True,congrFun',congrArg,Eq,EmptyCollection.emptyCollection,iff_self13 instances, coercions and auxiliary constants left out.
Tactic trace: 1 steps
Open to load the checked before-and-after goal states.
- lemma
Finset.filter_subset_powersetCard_card_add_oneThe(#t + 1)-subsets ofsthat containt ⊆ sare exactly the setsinsert a twitha ∈ s \ tline 36 sourceSource documentation
The
(#t + 1)-subsets ofsthat containt ⊆ sare exactly the setsinsert a twitha ∈ s \ t.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
DecidableEq,Finset,LE.le,Eq,Finset.filter,Finset.powersetCard,HAdd.hAdd,Nat,Finset.card,OfNat.ofNat,Finset.image,Insert.insert,SDiff.sdiffProof uses:
Finset.ext,Eq.mpr,Iff,Membership.mem,And,Exists,Not,id,congr,congrArg,Eq.trans,congrFun',funext,Iff.intro,HSub.hSub,Finset.card_sdiff_of_subset,Decidable.byContradiction,Singleton.singleton,Iff.mp,Finset.card_eq_oneand 16 more35 instances, coercions and auxiliary constants left out.
Tactic trace: 18 steps
Open to load the checked before-and-after goal states.
lemma filter_subset_powersetCard_card_add_one (h : t ⊆ s) : (powersetCard (#t + 1) s).filter (t ⊆ ·) = (s \ t).image (insert · t) := by … - lemma
Finset.card_filter_subset_powersetCard_card_add_oneAk-subsettofslies in exactly#s - kof the(k + 1)-subsets ofsline 52 sourceSource documentation
A
k-subsettofslies in exactly#s - kof the(k + 1)-subsets ofs.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
DecidableEq,Finset,LE.le,Eq,Nat,Finset.card,Finset.filter,Finset.powersetCard,HAdd.hAdd,OfNat.ofNat,HSub.hSubProof uses:
Eq.mpr,Finset.image,Insert.insert,SDiff.sdiff,id,congrArg, Finset.filter_subset_powersetCard_card_add_one,Finset.card_image_of_injOn,Membership.mem,Set,Eq.symm,Finset.mem_insert_self,Or.resolve_right,Eq.mp,Or,propext,Finset.mem_insert,And.right,Not,Iff.mpand 4 more25 instances, coercions and auxiliary constants left out.
Tactic trace: 7 steps
Open to load the checked before-and-after goal states.
lemma card_filter_subset_powersetCard_card_add_one (h : t ⊆ s) : #((powersetCard (#t + 1) s).filter (t ⊆ ·)) = #s - #t := by …