Compfiles/Usa1978P5.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 compfiles documentation, Pinned compfiles corpus index
4 declarations, 0 contain sorry, 0 declared as axioms
USA Mathematical Olympiad 1978, Problem 5
There are 9 delegates at a conference, each speaking at most three languages. Given any three delegates, at least 2 speak a common language. Show that there are three delegates with a common language.
Imported by 1 file
- abbrev
Usa1978P5.ShareDelegateaand delegatebspeak a common language line 27 sourceSource documentation
Delegate
aand delegatebspeak a common language.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,FinsetProof uses:
Exists,And,Membership.mem4 instances, coercions and auxiliary constants left out.
abbrev Share {L : Type*} (speaks : Fin 9 → Finset L) (a b : Fin 9) : Prop := … - abbrev
Usa1978P5.SharedWithThe delegates other thandthat share a language withdline 35 sourceSource documentation
The delegates other than
dthat share a language withd.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,FinsetProof uses:
Finset.filter,And,Ne, Usa1978P5.Share,Eq,Membership.mem,Classical.propDecidable,Finset.univ10 instances, coercions and auxiliary constants left out.
noncomputable abbrev SharedWith {L : Type*} (speaks : Fin 9 → Finset L) (d : Fin 9) : Finset (Fin 9) := … - theorem
Usa1978P5.card_sharedWith_leDocumented declaration: card_sharedWith_le line 44 sourceSource documentation
Assuming that no three delegates share a common language, a delegate
dcan share a language with at most three other delegates: among any four delegates sharing a language withd, two of them would share the same language withdby the pigeonhole principle, sincedspeaks at most three languages, and those two together withdwould be three delegates with a common language.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Finset,LE.le,Finset.card,Not,Exists,And,Ne,Membership.mem, Usa1978P5.SharedWithProof uses:
Decidable.byContradiction,Subtype,And.right, Usa1978P5.Share,Finset.univ,Iff.mp,Finset.filter,Eq,Classical.propDecidable,Finset.mem_filter,Subtype.property,Finset.attach,False,Finset.exists_ne_map_eq_of_card_lt_of_maps_to,Eq.mpr,LT.lt,id,congrArg,Finset.card_attach,lt_of_le_of_ltand 9 more27 instances, coercions and auxiliary constants left out.
Tactic trace: 14 steps
Open to load the checked before-and-after goal states.
theorem card_sharedWith_le {L : Type*} (speaks : Fin 9 → Finset L) (hthree : ∀ d : Fin 9, (speaks d).card ≤ 3) (hnothree : ¬∃ a b c : Fin 9, a ≠ b ∧ a ≠ c ∧ b ≠ c ∧ ∃ l : L, l ∈ speaks a ∧ l ∈ speaks b ∧ l ∈ speaks c) (d : Fin 9) : (SharedWith speaks d).card ≤ 3 := by …Mentions: Usa1978P5.SharedWith
- problem
Usa1978P5.usa1978_p5line 67 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Fin,OfNat.ofNat,Nat,Finset,LE.le,Finset.card,Ne,Or, Usa1978P5.Share,Exists,And,Membership.memProof uses:
Decidable.byContradiction,Eq,Classical.propDecidable,Not, Usa1978P5.SharedWith, Usa1978P5.card_sharedWith_le,Nonempty,False,Nonempty.intro,Union.union,Singleton.singleton,HAdd.hAdd,Finset.card_union_le,Eq.mp,congrArg,Finset.card_singleton,Finset.univ,Finset.card_le_card,Eq.trans,binderNameHintand 21 more32 instances, coercions and auxiliary constants left out.
Tactic trace: 41 steps
Open to load the checked before-and-after goal states.