Compfiles/Usa1977P5.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 1977, Problem 5
The positive reals v, w, x, y, z satisfy 0 < h ≤ v, w, x, y, z ≤ k. Show that
(v + w + x + y + z)(1/v + 1/w + 1/x + 1/y + 1/z) ≤ 25 + 6(√(h/k) - √(k/h))².
When do we have equality?
Imports (8)
Imported by 1 file
- lemma
Usa1977P5.le_max_endpointDocumented declaration: le_max_endpoint line 41 sourceSource documentation
If
r ≥ 0and0 < a ≤ x ≤ b, then(r + x) * (s + 1 / x)is bounded above by the maximum of its values at the endpointsx = aandx = b(as a function ofxit is a sum ofrs + 1, the linear functions * xand the convex functionr / x, hence it attains its maximum on[a, b]at an endpoint).standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Real,LE.le,OfNat.ofNat,LT.lt,HMul.hMul,HAdd.hAdd,HDiv.hDiv,Max.maxProof uses:
LT.lt.trans_le,Ne,LT.lt.ne',Eq,Or,LE.le.eq_or_lt,le_trans,le_antisymm,le_max_left,HSub.hSub,Iff.mpr,sub_pos,HPow.hPow,Nat,Eq.mpr,inferInstance,CommGroupWithZero,GroupWithZero,id,Mathlib.Tactic.FieldSimp.eq_eq_cancel_eqand 146 more156 instances, coercions and auxiliary constants left out.
Tactic trace: 25 steps
Open to load the checked before-and-after goal states.
lemma le_max_endpoint {r s a b x : ℝ} (hr : 0 ≤ r) (ha : 0 < a) (hb : 0 < b) (hax : a ≤ x) (hxb : x ≤ b) : (r + x) * (s + 1 / x) ≤ max ((r + a) * (s + 1 / a)) ((r + b) * (s + 1 / b)) := by … - def
Usa1977P5.cornerMaxDocumented declaration: cornerMax line 90 sourceSource documentation
cornerMax h k r s nis the maximum, over all ways of choosing each ofnfurther variables to be eitherhork, of(r + sum of the choices) * (s + sum of the reciprocals of the choices). It is defined recursively; the leaves of the recursion are exactly the2 ^ n"corner" values.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Real,Nat2 instances, coercions and auxiliary constants left out.
noncomputable def cornerMax (h k r s : ℝ) : ℕ → ℝ | 0 => r * s | n + 1 => max (cornerMax h k (r + h) (s + 1 / h) n) (cornerMax h k (r + k) (s + 1 / k) n) /-- The product `(r + Σ f i) * (s + Σ 1 / f i)`, where each `f i ∈ [h, k]`, is bounded above by the corresponding corner maximum. Proved by induction on `n`, applying `le_max_endpoint` to one variable at a time. -/
Mentions: h, f, Usa1977P5.le_max_endpoint
- lemma
Usa1977P5.le_cornerMaxThe product(r + Σ f i) * (s + Σ 1 / f i), where eachf i ∈ [h, k], is bounded above by the corresponding corner maximum line 97 sourceSource documentation
The product
(r + Σ f i) * (s + Σ 1 / f i), where eachf i ∈ [h, k], is bounded above by the corresponding corner maximum. Proved by induction onn, applyingle_max_endpointto one variable at a time.standard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Real,LT.lt,OfNat.ofNat,Nat,Fin,And,LE.le,HMul.hMul,HAdd.hAdd,Finset.sum,Finset.univ,HDiv.hDiv, Usa1977P5.cornerMaxProof uses:
Nat.recAux,Eq,Fin.sum_univ_zero,Eq.mpr,id,congrArg,add_zero,le_of_eq,rfl,Fin.succ,Finset.sum_nonneg,Membership.mem,Finset,LE.le.trans,LT.lt.le,And.left,Fin.sum_univ_succ,Mathlib.Tactic.Ring.of_eq,HPow.hPow,Nat.rawCastand 37 more89 instances, coercions and auxiliary constants left out.
Tactic trace: 27 steps
Open to load the checked before-and-after goal states.
lemma le_cornerMax (h k : ℝ) (hh : 0 < h) (hk : 0 < k) {n : ℕ} : ∀ (f : Fin n → ℝ) (_ : ∀ i, h ≤ f i ∧ f i ≤ k) (r s : ℝ) (_ : 0 ≤ r), (r + ∑ i, f i) * (s + ∑ i, 1 / f i) ≤ cornerMax h k r s n := by …Mentions: h, f, Usa1977P5.cornerMax
- problem
Usa1977P5.usa1977_p5line 134 sourcestandard axioms: Classical.choice, Quot.sound, propext what this means
Statement uses:
Real,LT.lt,OfNat.ofNat,And,LE.le,HMul.hMul,HAdd.hAdd,HDiv.hDiv,Nat,HPow.hPow,HSub.hSub,Real.sqrtProof uses:
LT.lt.trans_le,LE.le.trans,And.left,And.right,Ne,LT.lt.ne',Eq,Eq.mpr,id,congrArg,Eq.symm,Real.sqrt_mul,div_nonneg,LT.lt.le,div_mul_div_cancel₀,div_self,Real.sqrt_one,Eq.refl,Trans.trans,Mathlib.Tactic.Ring.of_eqand 170 more154 instances, coercions and auxiliary constants left out.
Tactic trace: 153 steps
Open to load the checked before-and-after goal states.