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.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialCylinderTensor |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Cylinder.Jets.CylinderJetEstimates |
| 4 | |
| 5 | /-! |
| 6 | # The actual orbit radius controlled by a radial neck |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. The zeroth angular component |
| 9 | of the frozen full neck comparison bounds its actual orbit radius. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | namespace PoincareMT.M35 |
| 19 | |
| 20 | /-- The full frozen radial comparison controls its angular coefficient |
| 21 | at every actual axial point, in particular at its own scalar center. -/ |
| 22 | theorem radialCylinderTensor_angular_bound {A : ℝ → ℝ} {epsilon s : ℝ} |
| 23 | (he : 0 < epsilon) |
| 24 | (hclose : RoundCylinderClose epsilon 0 (radialCylinderTensor A 1)) |
| 25 | (hs : s ∈ Ioo (-epsilon⁻¹) epsilon⁻¹) : |A s - 2| < 4 * epsilon := by |
| 26 | let q : UnitTwoSphere := ⟨EuclideanSpace.single (2 : Fin 3) (1 : ℝ), by simp⟩ |
| 27 | have h := hclose.component_abs_lt he (by norm_num) (by norm_num) |
| 28 | (z := (q, s)) hs (Nat.zero_le _) ![0, 0] |
| 29 | dsimp only at h |
| 30 | have hgram : roundCylinderGram 0 (chartAt (EuclideanSpace ℝ (Fin 2)) q) |
| 31 | (chartAt (EuclideanSpace ℝ (Fin 2)) q q, s) 0 0 = 2 := by |
| 32 | rw [roundCylinderGram_center] |
| 33 | norm_num |
| 34 | have hh : |A s / 2 * 2 - 2| < (2 : ℝ) ^ 2 * epsilon := by |
| 35 | simpa only [roundCylinderIteratedDerivative, radialCylinderTensor_coefficient, |
| 36 | Matrix.cons_val_zero, Matrix.cons_val_one, hgram, roundCylinderCoordinateBasis, |
| 37 | pow_zero, pow_one, one_pow, mul_zero, sub_zero, add_zero, zero_mul, |
| 38 | Fin.isValue, Matrix.head_cons, one_mul, mul_one] using h |
| 39 | norm_num at hh |
| 40 | exact hh |
| 41 | |
| 42 | theorem radialCylinderTensor_angular_lt_four {A : ℝ → ℝ} {epsilon : ℝ} |
| 43 | (he : 0 < epsilon) (hehalf : epsilon < 1 / 2) |
| 44 | (hclose : RoundCylinderClose epsilon 0 (radialCylinderTensor A 1)) : A 0 < 4 := by |
| 45 | have h := radialCylinderTensor_angular_bound he hclose |
| 46 | (show (0 : ℝ) ∈ Ioo (-epsilon⁻¹) epsilon⁻¹ from |
| 47 | ⟨neg_neg_of_pos (inv_pos.mpr he), inv_pos.mpr he⟩) |
| 48 | have hh := (abs_lt.mp h).2 |
| 49 | linarith only [hh, hehalf] |
| 50 | |
| 51 | end PoincareMT.M35 |