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.NeckTipExclusion |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.NeckBufferedBall |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialDerivativeBall |
| 5 | |
| 6 | /-! |
| 7 | # Fine actual neck centers are far from the rotational tip |
| 8 | |
| 9 | Morgan-Tian Theorem 12.32, pp. 326-327. The full neck excludes the tip |
| 10 | by its actual Ricci tensor. The axial exit estimate then places the tip |
| 11 | outside a ball whose normalized radius grows as the neck accuracy tends |
| 12 | to zero. The distance statement uses the actual scalar normalization. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle ENNReal |
| 20 | |
| 21 | namespace PoincareMT.M35 |
| 22 | |
| 23 | open Uniqueness |
| 24 | |
| 25 | /-- Theorem 12.32, pp. 326-327: tip exclusion and the actual axial exit bound |
| 26 | force the center's distance to be at least one quarter of the neck length. -/ |
| 27 | theorem neck_center_tip_distance_of_exclusion |
| 28 | {epsilon : ℝ} {x : StandardCapSpace} (N : StandardCylinderPatch epsilon⁻¹ x) |
| 29 | (g : RiemannianMetric 3 StandardCapSpace) (he : 0 < epsilon) |
| 30 | (hesmall : epsilon ≤ 1 / 24) |
| 31 | (hclose : RoundCylinderClose epsilon 0 (roundCylinderPullback g N.coordinate)) |
| 32 | (htip : (0 : StandardCapSpace) ∉ N.carrier) : |
| 33 | epsilon⁻¹ / 4 ≤ (g.edist 0 x).toReal := by |
| 34 | have hlength : 0 < epsilon⁻¹ := inv_pos.mpr he |
| 35 | have hball := N.center_ball_subset_carrier_of_axial_cutoff g he hesmall |
| 36 | (show (0 : ℝ) ∈ Icc (-1) 0 by constructor <;> norm_num) |
| 37 | (half_pos hlength) (half_lt_self hlength) hclose |
| 38 | have hnot : ¬g.edist x 0 < ENNReal.ofReal (epsilon⁻¹ / 4) := by |
| 39 | intro h |
| 40 | apply htip |
| 41 | apply hball |
| 42 | change g.edist x 0 < ENNReal.ofReal (epsilon⁻¹ / 2 / 2) |
| 43 | convert h using 2 |
| 44 | ring |
| 45 | have hsymm : g.edist x 0 = g.edist 0 x := |
| 46 | @edist_comm StandardCapSpace g.toEMetricSpace.toPseudoEMetricSpace x 0 |
| 47 | rw [hsymm] at hnot |
| 48 | exact (ENNReal.ofReal_le_iff_le_toReal (g.edist_ne_top 0 x)).mp (le_of_not_gt hnot) |
| 49 | |
| 50 | /-- Theorem 12.32, pp. 326-327: every sufficiently fine actual static neck |
| 51 | has large scalar-normalized distance from the actual fixed tip. -/ |
| 52 | theorem exists_static_neck_tip_distance_threshold : |
| 53 | ∃ delta : ℝ, 0 < delta ∧ ∀ epsilon : ℝ, 0 < epsilon → epsilon ≤ delta → |
| 54 | ∀ (atlas : StandardCylinderAtlas) (g : RiemannianMetric 3 StandardCapSpace) |
| 55 | (D : LeviCivitaData g), |
| 56 | (∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 57 | ∀ x u v : StandardCapSpace, |
| 58 | g.inner (standardRotation A x) |
| 59 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 60 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = g.inner x u v) → |
| 61 | ∀ N : StandardStaticNeck atlas g D epsilon, |
| 62 | epsilon⁻¹ / 4 ≤ (g.edist 0 N.center).toReal * |
| 63 | Real.sqrt (D.scalarCurvature N.center) := by |
| 64 | obtain ⟨delta, hdelta, htip⟩ := exists_cylinder_tip_exclusion |
| 65 | refine ⟨min delta (1 / 24), lt_min hdelta (by norm_num), ?_⟩ |
| 66 | intro epsilon he hesmall atlas g D hrotation N |
| 67 | let Q := D.scalarCurvature N.center |
| 68 | let G : RiemannianMetric 3 StandardCapSpace := M13.scaleSmoothMetric g Q N.scalar_pos |
| 69 | let DG := M13.scaleLeviCivitaData D Q N.scalar_pos |
| 70 | have hclose : RoundCylinderClose epsilon 0 (roundCylinderPullback G N.patch.coordinate) := |
| 71 | N.close |
| 72 | have hexcluded := htip epsilon he (hesmall.trans (min_le_left _ _)) G DG |
| 73 | (scaleSmoothMetric_rotation_invariant hrotation Q N.scalar_pos) N.center N.patch hclose |
| 74 | have hd := neck_center_tip_distance_of_exclusion N.patch G he |
| 75 | (hesmall.trans (min_le_right _ _)) hclose hexcluded |
| 76 | have hscale := M13.homothety_edist g G |
| 77 | (Diffeomorph.refl (𝓡 3) StandardCapSpace ∞) Q N.scalar_pos |
| 78 | (M13.identity_metricHomothety g Q N.scalar_pos) 0 N.center |
| 79 | change G.edist 0 N.center = _ at hscale |
| 80 | rw [hscale, ENNReal.toReal_mul, ENNReal.toReal_ofReal (Real.sqrt_nonneg _)] at hd |
| 81 | simpa only [mul_comm] using hd |
| 82 | |
| 83 | end PoincareMT.M35 |