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 PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Theory |
| 2 | import Mathlib.Analysis.SpecialFunctions.Pow.Real |
| 3 | import Mathlib.Tactic |
| 4 | |
| 5 | /-! |
| 6 | # Absolute-time algebra of the positive-start correction |
| 7 | |
| 8 | The initial Harnack boundary is normalized by b sqrt(b). Its real-power |
| 9 | form gives exactly the two corrected reduced-length identities. |
| 10 | Morgan-Tian Lemma 6.49 and the positive-start variant, p. 131. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | namespace PoincareMT.M14 |
| 16 | |
| 17 | /-- The initial-boundary normalization equals the frozen three-halves |
| 18 | real power for positive endpoint times, Lemma 6.49, p. 131. -/ |
| 19 | theorem positiveStart_initial_factor {a b : ℝ} (ha : 0 < a) (hb : 0 < b) : |
| 20 | Real.rpow (a / b) (3 / 2 : ℝ) = (a * Real.sqrt a) / (b * Real.sqrt b) := by |
| 21 | rw [Real.rpow_eq_pow, show (3 / 2 : ℝ) = 1 + 1 / 2 by norm_num, |
| 22 | Real.rpow_add (div_pos ha hb), Real.rpow_one, ← Real.sqrt_eq_rpow, |
| 23 | Real.sqrt_div ha.le] |
| 24 | ring |
| 25 | |
| 26 | /-- The actual action, kinetic energy and Harnack boundary identities |
| 27 | give the two exact frozen positive-start corrections, with absolute |
| 28 | backward-time normalization, Lemma 6.49, p. 131. -/ |
| 29 | theorem positiveStart_correction_algebra {a b : ℝ} (ha : 0 < a) (hb : 0 < b) |
| 30 | (L E S C K d g : ℝ) |
| 31 | (hK : K = L / 2 - ((Real.sqrt b) ^ 3 * S + Real.sqrt b * E / 4) + |
| 32 | a * Real.sqrt a * C) |
| 33 | (hd : d = S / 2 - E / (8 * (Real.sqrt b) ^ 2) - L / (4 * (Real.sqrt b) ^ 3)) |
| 34 | (hg : g = E / (4 * (Real.sqrt b) ^ 2)) : |
| 35 | d = S - (L / (2 * Real.sqrt b)) / b + K / (2 * b * Real.sqrt b) - |
| 36 | (Real.rpow (a / b) (3 / 2 : ℝ) * C) / 2 ∧ |
| 37 | g = (L / (2 * Real.sqrt b)) / b - K / (b * Real.sqrt b) - S + |
| 38 | Real.rpow (a / b) (3 / 2 : ℝ) * C := by |
| 39 | rw [positiveStart_initial_factor ha hb, hK, hd, hg] |
| 40 | have hsq := Real.sq_sqrt hb.le |
| 41 | have hpos := Real.sqrt_pos.mpr hb |
| 42 | generalize hroot : Real.sqrt b = r at * |
| 43 | rw [← hsq] |
| 44 | constructor <;> field_simp [hpos.ne'] <;> ring |
| 45 | |
| 46 | end PoincareMT.M14 |