Compfiles/Usa1983P3.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
2 declarations, 0 contain sorry, 0 declared as axioms
USA Mathematical Olympiad 1983, Problem 3
S₁, S₂, ..., Sₙ are subsets of the real line. Each Sᵢ is the union of two closed intervals. Any three Sᵢ have a point in common. Show that there is a point which belongs to at least half the Sᵢ.
Imports (5)
Imported by 1 file
- lemma
Usa1983P3.mem_leftMax_or_rightMinDocumented declaration: mem_leftMax_or_rightMin line 36 sourceSource documentation
Key covering step of the solution: writing each set of the family as
Icc (a i) (b i) ∪ Icc (c i) (d i), every set contains eithera h, wherehmaximizes the left endpointa, ord k, wherekminimizes the right endpointd. Otherwise a common point ofS i,S handS kwould have to lie left ofa hinsideS h, or right ofd kinsideS k.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fin,Set,Real,LE.le,Eq,Union.union,Set.Icc,Set.Nonempty,Inter.inter,Or,Membership.memProof uses:
Classical.byContradiction,Not,And,False,Eq.mp,LT.lt,Eq.mpr,id,congrArg,Set.mem_union_left,lt_of_not_ge,propext,not_and,Set.mem_Icc,Set.mem_union_right,not_and',And.left,Iff.mp,LE.le.trans,And.rightand 4 more18 instances, coercions and auxiliary constants left out.
Tactic trace: 40 steps
Open to load the checked before-and-after goal states.
lemma mem_leftMax_or_rightMin {n : ℕ} {S : Fin n → Set ℝ} {a b c d : Fin n → ℝ} (hab : ∀ i, a i ≤ b i) (hbc : ∀ i, b i ≤ c i) (hcd : ∀ i, c i ≤ d i) (hSd : ∀ i, S i = Set.Icc (a i) (b i) ∪ Set.Icc (c i) (d i)) {h k : Fin n} (hmax : ∀ i, a i ≤ a h) (hmin : ∀ i, d k ≤ d i) (h3 : ∀ i j k : Fin n, (S i ∩ S j ∩ S k).Nonempty) (i : Fin n) : a h ∈ S i ∨ d k ∈ S i := by … - problem
Usa1983P3.usa1983_p3line 84 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LT.lt,OfNat.ofNat,Fin,Set,Real,Exists,And,LE.le,Eq,Union.union,Set.Icc,Set.Nonempty,Inter.inter,HMul.hMul,Set.ncard,Set.ofPred,Membership.memProof uses:
Nonempty,Nonempty.intro,Fin.mk,Finset,Finset.univ,Finset.exists_max_image,Finset.univ_nonempty,Finset.exists_min_image,Finset.mem_univ,Or, Usa1983P3.mem_leftMax_or_rightMin,And.left,And.right,Set.univ,HAdd.hAdd,Set.ncard_le_ncard,Set.toFinite,LE.le.trans,Eq.mp,Fintype.cardand 10 more47 instances, coercions and auxiliary constants left out.
Tactic trace: 19 steps
Open to load the checked before-and-after goal states.