@@ -17,21 +17,14 @@ We follow the first solution from
1717<https://artofproblemsolving.com/wiki/index.php?title=2000_IMO_Problems/Problem_2>.
1818
1919We parametrize `A = x / y`, `B = y / z`, `C = z / x` where `x, y, z > 0`.
20- This reduces the problem to proving `(x - y + z)(y - z + x)(z - x + y) ≤ 8xyz `.
20+ This reduces the problem to proving `(x - y + z)(y - z + x)(z - x + y) ≤ xyz `.
2121
22- We then reparametrize `x = q + r`, `y = r + p`, `z = p + q` where `p, q, r ∈ ℝ`,
23- which transforms the inequality to `8pqr ≤ (q + r)(r + p)(p + q)`.
24-
25- The proof splits into cases based on the signs of `p`, `q`, `r`.
26- When all are positive, AM-GM gives the result.
27- When at least one is negative or zero, the inequality is verified by sign analysis.
28-
29- ## Implementation notes
30-
31- - The inequality is reduced via `A = x / y`, `B = y / z`, `C = z / x`, then the substitution
32- `x = q + r`, `y = r + p`, `z = p + q`.
33- - Helper lemmas prove `8pqr ≤ (p + q)(r + p)(q + r)` by AM-GM when `p, q, r > 0` and by sign
34- analysis otherwise; the main proof closes with `grind`.
22+ Writing `u = x - y + z`, `v = y - z + x`, `w = z - x + y`, we have `u + v = 2x`,
23+ `v + w = 2y`, `w + u = 2z`, so any two of `u`, `v`, `w` have a positive sum and hence
24+ at most one of them can be nonpositive. If one is nonpositive the left-hand side is
25+ nonpositive and the inequality is clear. Otherwise all three are positive, and by AM-GM
26+ `uv ≤ ((u + v) / 2) ^ 2 = x ^ 2`, and similarly `vw ≤ y ^ 2` and `wu ≤ z ^ 2`; multiplying
27+ these gives `(uvw) ^ 2 ≤ (xyz) ^ 2`, from which the inequality follows.
3528
3629## References
3730
@@ -41,48 +34,39 @@ When at least one is negative or zero, the inequality is verified by sign analys
4134
4235namespace Imo2000Q2
4336
44- /-- When `p`, `q`, `r > 0`, `8pqr ≤ (p + q)(r + p)(q + r)`, by writing the difference of squares as
45- a sum of nonnegative squares. -/
46- lemma eight_mul_le_prod_add_of_pos {p q r : ℝ} (p_pos : 0 < p)
47- (q_pos : 0 < q) (r_pos : 0 < r) :
48- 8 * p * q * r ≤ (p + q) * (q + r) * (r + p) := by
49- suffices 0 ≤ ((p + q) * (q + r) * (r + p)) ^ 2 - (8 * p * q * r) ^ 2 from
50- le_of_sq_le_sq (le_of_sub_nonneg this) (by positivity)
51- calc 0 ≤ (p * (q - r) ^ 2 + q * (r - p) ^ 2 + r * (p - q) ^ 2 )
52- * ((p + q) * (q + r) * (r + p) + 8 * p * q * r) := by positivity
53- _ = ((p + q) * (q + r) * (r + p)) ^ 2 - (8 * p * q * r) ^ 2 := by ring
54-
55- /-- When `p ≤ 0` but `q`, `r > 0` and both pairwise sums are positive, the left side is
56- nonpositive so the inequality holds. -/
57- lemma eight_mul_le_prod_add_of_nonpos {p q r : ℝ} (p_nonpos : p ≤ 0 ) (r_pos : 0 < r) (q_pos : 0 < q)
58- (p_add_q_pos : 0 < p + q) (r_add_p_pos : 0 < r + p) :
59- 8 * p * q * r ≤ (p + q) * (r + p) * (q + r) := by
60- calc 8 * p * q * r ≤ 0 := by grw [mul_nonpos_of_nonpos_of_nonneg ?_ (by positivity)]
61- grw [mul_nonpos_of_nonpos_of_nonneg (by grind) (by positivity)]
62- _ ≤ (p + q) * (r + p) * (q + r) := by positivity
63-
64- /-- When all three pairwise sums `p + q`, `r + p`, `q + r` are positive, the inequality holds by
65- casing on the signs of `p`, `q`, `r`. -/
66- lemma eight_mul_le_prod_add_of_add_pos (p q r : ℝ)
67- (hpq : 0 < p + q := by grind)
68- (hqr : 0 < q + r := by grind)
69- (hrp : 0 < r + p := by grind) :
70- 8 * p * q * r ≤ (p + q) * (q + r) * (r + p) := by
71- rcases lt_or_ge 0 p with p_pos | p_nonpos <;>
72- rcases lt_or_ge 0 q with q_pos | q_nonpos <;>
73- rcases lt_or_ge 0 r with r_pos | r_nonpos
74- -- At most one of `p`, `q`, `r` can be negative; otherwise some pairwise sum is nonpositive.
75- · exact eight_mul_le_prod_add_of_pos p_pos q_pos r_pos
76- · -- `r` is the unique nonpositive variable.
77- convert eight_mul_le_prod_add_of_nonpos r_nonpos q_pos p_pos hrp hqr using 1 <;> ring
78- · -- `q` is the unique nonpositive variable.
79- convert eight_mul_le_prod_add_of_nonpos q_nonpos p_pos r_pos hqr hpq using 1 <;> ring
80- · linarith
81- · -- `p` is the unique nonpositive variable.
82- convert eight_mul_le_prod_add_of_nonpos p_nonpos r_pos q_pos hpq hrp using 1 ; ring
83- · linarith
84- · linarith
85- · linarith
37+ /-- For positive reals `x`, `y`, `z` we have `(x - y + z)(y - z + x)(z - x + y) ≤ xyz`. -/
38+ lemma prod_sub_add_le {x y z : ℝ} (hx : 0 < x) (hy : 0 < y) (hz : 0 < z) :
39+ (x - y + z) * (y - z + x) * (z - x + y) ≤ x * y * z := by
40+ -- At most one of the three factors can be nonpositive, since any two of them
41+ -- sum to twice one of `x`, `y`, `z`. If one is nonpositive, so is the product.
42+ rcases le_or_gt (x - y + z) 0 with hu | hu
43+ · have hv : 0 < y - z + x := by linarith
44+ have hw : 0 < z - x + y := by linarith
45+ calc (x - y + z) * (y - z + x) * (z - x + y)
46+ ≤ 0 := mul_nonpos_of_nonpos_of_nonneg
47+ (mul_nonpos_of_nonpos_of_nonneg hu hv.le) hw.le
48+ _ ≤ x * y * z := by positivity
49+ rcases le_or_gt (y - z + x) 0 with hv | hv
50+ · have hw : 0 < z - x + y := by linarith
51+ calc (x - y + z) * (y - z + x) * (z - x + y)
52+ ≤ 0 := mul_nonpos_of_nonpos_of_nonneg
53+ (mul_nonpos_of_nonneg_of_nonpos hu.le hv) hw.le
54+ _ ≤ x * y * z := by positivity
55+ rcases le_or_gt (z - x + y) 0 with hw | hw
56+ · calc (x - y + z) * (y - z + x) * (z - x + y)
57+ ≤ 0 := mul_nonpos_of_nonneg_of_nonpos (mul_nonneg hu.le hv.le) hw
58+ _ ≤ x * y * z := by positivity
59+ -- All three factors are positive. By AM-GM each pairwise product is bounded by a square:
60+ have h1 : (x - y + z) * (y - z + x) ≤ x ^ 2 := by linarith [sq_nonneg (y - z)]
61+ have h2 : (y - z + x) * (z - x + y) ≤ y ^ 2 := by linarith [sq_nonneg (z - x)]
62+ have h3 : (z - x + y) * (x - y + z) ≤ z ^ 2 := by linarith [sq_nonneg (x - y)]
63+ -- Multiplying the three bounds gives the squared inequality, and both sides are positive.
64+ refine le_of_sq_le_sq ?_ (by positivity)
65+ calc ((x - y + z) * (y - z + x) * (z - x + y)) ^ 2
66+ = ((x - y + z) * (y - z + x)) * ((y - z + x) * (z - x + y))
67+ * ((z - x + y) * (x - y + z)) := by ring
68+ _ ≤ x ^ 2 * y ^ 2 * z ^ 2 := by gcongr
69+ _ = (x * y * z) ^ 2 := by ring
8670
8771/-- **IMO 2000 Q2** . If `A`, `B`, `C > 0` and `ABC = 1`, then
8872`(A - 1 + 1 / B)(B - 1 + 1 / C)(C - 1 + 1 / A) ≤ 1`. -/
@@ -92,9 +76,10 @@ theorem imo2000_q2 {A B C : ℝ}
9276 obtain ⟨x, y, z, x_pos, y_pos, z_pos, rfl, rfl, rfl⟩ :
9377 ∃ x y z, 0 < x ∧ 0 < y ∧ 0 < z ∧ A = x / y ∧ B = y / z ∧ C = z / x :=
9478 ⟨A, 1 , 1 / B, by grind only [inv_pos]⟩
95- -- If `x = q + r`, `y = r + p`, `z = p + q`, it suffices to show `8pqr ≤ (q + r)(r + p)(p + q)`.
96- have := eight_mul_le_prod_add_of_add_pos ((y + z - x) / 2 ) ((z + x - y) / 2 ) ((x + y - z) / 2 )
97- field_simp
98- grind
79+ have key : (x / y - 1 + 1 / (y / z)) * (y / z - 1 + 1 / (z / x)) * (z / x - 1 + 1 / (x / y))
80+ = (x - y + z) * (y - z + x) * (z - x + y) / (x * y * z) := by
81+ field_simp
82+ rw [key, div_le_one (by positivity)]
83+ exact prod_sub_add_le x_pos y_pos z_pos
9984
10085end Imo2000Q2
0 commit comments