Compfiles/Usa2009P4.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
3 declarations, 0 contain sorry, 0 declared as axioms
USA Mathematical Olympiad 2009, Problem 4
For n ≥ 2, let a₁, a₂, ..., aₙ be positive real numbers such that
(a₁ + a₂ + ... + aₙ) (1/a₁ + 1/a₂ + ... + 1/aₙ) ≤ (n + 1/2)².
Prove that max(a₁, a₂, ..., aₙ) ≤ 4 min(a₁, a₂, ..., aₙ).
Imported by 1 file
- lemma
Usa2009P4.sum_mul_sum_inv_geCross-paired Cauchy–Schwarz: for any two distinct indicespandq, the product(∑ aᵢ)(∑ 1/aᵢ)is bounded below by(√(a p / a q) + √(a q / a p) + (n - 2))²line 36 sourceSource documentation
Cross-paired Cauchy–Schwarz: for any two distinct indices
pandq, the product(∑ aᵢ)(∑ 1/aᵢ)is bounded below by(√(a p / a q) + √(a q / a p) + (n - 2))².standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fin,Real,LT.lt,OfNat.ofNat,Ne,LE.le,HPow.hPow,HAdd.hAdd,Real.sqrt,HDiv.hDiv,HSub.hSub,HMul.hMul,Finset.sum,Finset.univ,Inv.invProof uses:
Membership.mem,Finset,Finset.erase,Iff.mpr,And,Finset.mem_erase,And.intro,Ne.symm,Finset.mem_univ,Finset.card,Exists,Finset.one_lt_card,Exists.intro,Eq.mp,Fintype.card,congrArg,Fintype.card_fin,Finset.card_univ,Eq,Equiv.Permand 42 more134 instances, coercions and auxiliary constants left out.
Tactic trace: 33 steps
Open to load the checked before-and-after goal states.
lemma sum_mul_sum_inv_ge {n : ℕ} {a : Fin n → ℝ} (ha : ∀ i, 0 < a i) {p q : Fin n} (hpq : p ≠ q) : (√(a p / a q) + √(a q / a p) + ((n : ℝ) - 2)) ^ 2 ≤ (∑ i, a i) * (∑ i, (a i)⁻¹) := by … - lemma
Usa2009P4.entry_le_four_mul_entryAny entry is at most4times any other entry line 101 sourceSource documentation
Any entry is at most
4times any other entry.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,Fin,Real,LT.lt,OfNat.ofNat,LE.le,HMul.hMul,Finset.sum,Finset.univ,HDiv.hDiv,HPow.hPow,HAdd.hAddProof uses:
Or,le_or_gt,le_of_not_gt,Mathlib.Tactic.Linarith.lt_irrefl,Eq.mp,HSub.hSub,congrArg,Mathlib.Tactic.Ring.of_eq,Mathlib.Tactic.Ring.Common.add_congr,Nat.rawCast,Int.rawCast,inferInstance,Ring,Int.negOfNat,Mathlib.Tactic.Ring.Common.sub_congr,Mathlib.Tactic.Ring.Common.atom_pf,rfl,Eq.mpr,Eq,idand 149 more158 instances, coercions and auxiliary constants left out.
Tactic trace: 54 steps
Open to load the checked before-and-after goal states.
lemma entry_le_four_mul_entry {n : ℕ} {a : Fin n → ℝ} (ha : ∀ i, 0 < a i) (h : (∑ i, a i) * (∑ i, 1 / a i) ≤ ((n : ℝ) + 1 / 2) ^ 2) (p q : Fin n) : a p ≤ 4 * a q := by …Mentions: h
- problem
Usa2009P4.usa2009_p4line 158 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Nat,LE.le,OfNat.ofNat,Fin,Real,LT.lt,HMul.hMul,Finset.sum,Finset.univ,HDiv.hDiv,HPow.hPow,HAdd.hAdd,Finset.max',Finset.image,Iff.mpr,Finset.Nonempty,Finset.image_nonempty,Exists.intro,Membership.mem,Finsetand 3 moreProof uses:
And,Eq,Exists,Iff.mp,Finset.mem_image,Finset.max'_mem,Finset.min'_mem,Eq.mpr,id,congrArg,Eq.symm, Usa2009P4.entry_le_four_mul_entry64 instances, coercions and auxiliary constants left out.
Tactic trace: 6 steps
Open to load the checked before-and-after goal states.