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.CanonicalNeighborhood.Neck.Geometry.Model |
| 2 | import PoincareLib.Geometry.Riemannian.Metric.Product.Distance |
| 3 | import PoincareLib.Geometry.Riemannian.Measure.Balls |
| 4 | |
| 5 | /-! |
| 6 | # A fixed positive model volume for universal noncollapsing |
| 7 | |
| 8 | The radius-one-quarter ball in the scalar-normalized round cylinder has |
| 9 | positive finite volume. Both the model and its chosen center are fixed before |
| 10 | any ancient solution is supplied. |
| 11 | Reference: Morgan--Tian, Proposition 9.58, pp. 220--221. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | local instance : ChartedSpace (EuclideanSpace ℝ (Fin 3)) RoundCylinderSpace := |
| 23 | RiemannianMetric.lineProductChartedSpace (n := 2) (M := UnitTwoSphere) |
| 24 | |
| 25 | local instance : IsManifold (𝓡 3) ∞ RoundCylinderSpace := |
| 26 | RiemannianMetric.lineProductIsManifold (n := 2) (M := UnitTwoSphere) |
| 27 | |
| 28 | theorem roundCylinderMetric_complete : MetricComplete roundCylinderMetric := by |
| 29 | let : ChartedSpace (EuclideanSpace ℝ (Fin (2 + 1))) RoundCylinderSpace := |
| 30 | RiemannianMetric.lineProductChartedSpace (n := 2) (M := UnitTwoSphere) |
| 31 | let : IsManifold (𝓡 (2 + 1)) ∞ RoundCylinderSpace := |
| 32 | RiemannianMetric.lineProductIsManifold (n := 2) (M := UnitTwoSphere) |
| 33 | let h := rescaledMetric (Poincare.Geometry.Riemannian.SpaceForm.roundSphereMetric 2) |
| 34 | 2 (by norm_num) |
| 35 | apply h.metricComplete_of_product_pullback roundCylinderMetric |
| 36 | roundCylinderModelDiffeomorph |
| 37 | · intro z v w |
| 38 | rw [roundCylinderMetric_inner] |
| 39 | change EvolvingRoundCylinderMetric 0 z v w = |
| 40 | (rescaledMetric (Poincare.Geometry.Riemannian.SpaceForm.roundSphereMetric 2) |
| 41 | 2 (by norm_num)).inner z.1 v.1 w.1 + v.2 * w.2 |
| 42 | rw [rescaledMetric_inner, |
| 43 | Poincare.Geometry.Riemannian.SpaceForm.roundSphereMetric_inner] |
| 44 | simp only [EvolvingRoundCylinderMetric, sub_zero, mul_one, |
| 45 | RiemannianMetric.euclideanMetric_inner] |
| 46 | · dsimp only [MetricComplete] |
| 47 | infer_instance |
| 48 | |
| 49 | def universalNoncollapseModelPoint : RoundCylinderSpace := |
| 50 | (Classical.choice (show Nonempty UnitTwoSphere from by |
| 51 | obtain ⟨x, hx⟩ := (NormedSpace.sphere_nonempty (E := EuclideanSpace ℝ (Fin 3)) |
| 52 | (x := 0) (r := 1)).mpr zero_le_one |
| 53 | exact ⟨⟨x, hx⟩⟩), 0) |
| 54 | |
| 55 | /-- The source model's fixed small-ball volume, in real-valued units. -/ |
| 56 | def universalNoncollapseModelVolume : ℝ := |
| 57 | (roundCylinderMetric.volumeMeasure |
| 58 | (roundCylinderMetric.ball universalNoncollapseModelPoint (1 / 4))).toReal |
| 59 | |
| 60 | theorem universalNoncollapseModelVolume_pos : 0 < universalNoncollapseModelVolume := by |
| 61 | apply ENNReal.toReal_pos |
| 62 | · exact (roundCylinderMetric.volumeMeasure_ball_pos universalNoncollapseModelPoint |
| 63 | (by norm_num : (0 : ℝ) < 1 / 4)).ne' |
| 64 | · exact (roundCylinderMetric.volumeMeasure_ball_lt_top roundCylinderMetric_complete |
| 65 | universalNoncollapseModelPoint (1 / 4)).ne |
| 66 | |
| 67 | end PoincareMT |