Poincaré conjecture: the Lean proof, cleaned up together
The 2026 Lean proof of the Poincaré conjecture after Morgan and Tian, 3 million lines, cleaned up together: smaller, faster to build, more readable, the theorems unchanged

| 1 | import Mathlib.Analysis.SpecialFunctions.Pow.Real |
| 2 | import Mathlib.Tactic.Linarith |
| 3 | import Mathlib.Tactic.Ring |
| 4 | |
| 5 | /-! |
| 6 | # A negative time for the explicit width profile |
| 7 | |
| 8 | This proves the zero-start profile algebra in Morgan--Tian, Theorem 18.1, |
| 9 | printed p. 432. The time depends only on the nonnegative initial width. |
| 10 | The explicit choice and positivity checks are recorded in |
| 11 | `proof-work/tasks/M71/derivations/2026-09-23-fixed-width.md`. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | namespace PoincareMT |
| 17 | |
| 18 | /-- Morgan--Tian, Theorem 18.1, p. 432: the zero-start comparison profile is |
| 19 | strictly negative at a nonnegative time determined by the initial width. -/ |
| 20 | theorem m71ProfileAlgebra_neg (w0 : ℝ) (hw : 0 ≤ w0) : |
| 21 | let c : ℝ := 2 + w0 / (2 * Real.pi) |
| 22 | let T : ℝ := (c ^ 4 - 1) / 4 |
| 23 | 0 ≤ T ∧ |
| 24 | w0 * Real.rpow ((1 + 4 * T) / (1 + 4 * (0 : ℝ))) ((3 : ℝ) / 4) + |
| 25 | 2 * Real.pi * Real.rpow (1 + 4 * (0 : ℝ)) ((1 : ℝ) / 4) * |
| 26 | Real.rpow (1 + 4 * T) ((3 : ℝ) / 4) - |
| 27 | 2 * Real.pi * (1 + 4 * T) < 0 := by |
| 28 | dsimp only |
| 29 | set c : ℝ := 2 + w0 / (2 * Real.pi) |
| 30 | set T : ℝ := (c ^ 4 - 1) / 4 |
| 31 | have hpi : 0 < 2 * Real.pi := mul_pos (by norm_num) Real.pi_pos |
| 32 | have hc : 2 ≤ c := by |
| 33 | dsimp [c] |
| 34 | linarith [div_nonneg hw hpi.le] |
| 35 | have hcpos : 0 < c := by linarith |
| 36 | have hc4 : 1 ≤ c ^ 4 := one_le_pow₀ (by linarith : 1 ≤ c) |
| 37 | have hclock : 1 + 4 * T = c ^ 4 := by |
| 38 | dsimp [T] |
| 39 | ring |
| 40 | have hpower : (c ^ (4 : ℕ)) ^ ((3 : ℝ) / 4) = c ^ 3 := by |
| 41 | rw [← Real.rpow_natCast_mul hcpos.le] |
| 42 | norm_num |
| 43 | constructor |
| 44 | · exact div_nonneg (sub_nonneg.mpr hc4) (by norm_num : (0 : ℝ) ≤ 4) |
| 45 | · simp only [Real.rpow_eq_pow, mul_zero, add_zero, div_one, Real.one_rpow, |
| 46 | mul_one, hclock, hpower] |
| 47 | have hcw : 2 * Real.pi * c = 4 * Real.pi + w0 := by |
| 48 | dsimp [c] |
| 49 | rw [mul_add, mul_div_cancel₀ _ (ne_of_gt hpi)] |
| 50 | ring |
| 51 | calc |
| 52 | w0 * c ^ 3 + 2 * Real.pi * c ^ 3 - 2 * Real.pi * c ^ 4 = |
| 53 | (w0 + 2 * Real.pi - 2 * Real.pi * c) * c ^ 3 := by ring |
| 54 | _ = -(2 * Real.pi * c ^ 3) := by rw [hcw]; ring |
| 55 | _ < 0 := neg_neg_of_pos (mul_pos hpi (pow_pos hcpos 3)) |
| 56 | |
| 57 | end PoincareMT |