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.Surgery.Induction.Noncollapse.StableSet.Cylinders.SeedCurvature |
| 2 | import Mathlib.Analysis.Complex.ExponentialBounds |
| 3 | |
| 4 | /-! |
| 5 | # Scale-relative full curvature on a low-scalar cylinder |
| 6 | |
| 7 | Morgan--Tian Lemma 11.2 and Corollary 4.33, pp. 268-269 and 80, |
| 8 | used in Proposition 16.1 on pp. 391-393. The small canonical radius |
| 9 | absorbs the absolute Hamilton--Ivey constant. This pointwise estimate |
| 10 | works for both the old-prefix seed and a small-radius test center. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.Proofs.M46 |
| 20 | |
| 21 | /-- The absolute pinching constant is smaller than the scalar scale |
| 22 | at any of the controlled radii, Corollary 4.33, p. 80. -/ |
| 23 | theorem exp_four_le_four_inv_sq {r : ℝ} (hr : 0 < r) (hrsmall : r ≤ 1 / 200) : |
| 24 | Real.exp 4 ≤ 4 * r⁻¹ ^ 2 := by |
| 25 | have hexp : Real.exp 4 < 81 := by |
| 26 | have hpow := pow_lt_pow_left₀ (Real.exp_one_lt_three) (Real.exp_pos 1).le |
| 27 | (by norm_num : (4 : ℕ) ≠ 0) |
| 28 | have heq : Real.exp 4 = (Real.exp 1) ^ (4 : ℕ) := by |
| 29 | calc |
| 30 | Real.exp 4 = Real.exp ((4 : ℝ) * 1) := by norm_num |
| 31 | _ = _ := Real.exp_nat_mul 1 4 |
| 32 | rw [heq] |
| 33 | norm_num at hpow ⊢ |
| 34 | exact hpow |
| 35 | have hinv : (200 : ℝ) ≤ r⁻¹ := by |
| 36 | have h := one_div_le_one_div_of_le hr hrsmall |
| 37 | norm_num at h |
| 38 | exact h |
| 39 | nlinarith [sq_nonneg (r⁻¹ - 200)] |
| 40 | |
| 41 | /-- A scalar ceiling at four times a controlled scale gives full |
| 42 | curvature at most fifty-two times that scale, Corollary 4.33, p. 80. -/ |
| 43 | theorem low_scalar_curvature_le_fifty_two (P : M46Predecessors.{u}) |
| 44 | {F : SurgeryFlowData.{u}} {t r : ℝ} |
| 45 | (hpinch : SurgeryPinchedAt (F.connection t) t) |
| 46 | (hr : 0 < r) (hrsmall : r ≤ 1 / 200) |
| 47 | (x : (F.slice t).carrier) |
| 48 | (hscalar : (F.connection t).scalarCurvature x ≤ 4 * r⁻¹ ^ 2) : |
| 49 | (F.connection t).curvatureTensorNorm x ≤ 52 * r⁻¹ ^ 2 := by |
| 50 | have h := pinched_curvature_norm_le P hpinch (Set.mem_univ x) |
| 51 | have hmax : max ((F.connection t).scalarCurvature x) (Real.exp 4) ≤ 4 * r⁻¹ ^ 2 := |
| 52 | max_le hscalar (exp_four_le_four_inv_sq hr hrsmall) |
| 53 | nlinarith |
| 54 | |
| 55 | end PoincareMT.Proofs.M46 |