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.Volume.Surgery.Measure.LocalFiniteness |
| 2 | import PoincareLib.Geometry.Riemannian.Distance.CompleteBalls |
| 3 | |
| 4 | /-! |
| 5 | Adapted from Mapher `PoincareMT/Proofs/M49/CompleteBallVolume.lean` at |
| 6 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 7 | |
| 8 | # Finite actual volume of balls in complete connected manifolds |
| 9 | |
| 10 | The standard model balls in Morgan-Tian Theorem 13.2, p. 333, |
| 11 | and Lemma 17.12, p. 410, have finite calibrated volume. The workspace's |
| 12 | complete-ball theorem retains the specified Riemannian metric exactly. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set MeasureTheory |
| 18 | open scoped Manifold ContDiff Bundle ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.SurgeryVolume |
| 23 | |
| 24 | /-- Complete connected model balls have finite actual calibrated volume, |
| 25 | as used in MT Theorem 13.2, p. 333, and Lemma 17.12, p. 410. -/ |
| 26 | theorem calibratedMetricVolume_ball_lt_top {n : ℕ} {M : Type u} |
| 27 | [TopologicalSpace M] [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 28 | [IsManifold (𝓡 n) ∞ M] [T3Space M] [ConnectedSpace M] |
| 29 | [MeasurableSpace M] [BorelSpace M] |
| 30 | (g : RiemannianMetric n M) (hc : MetricComplete g) (p : M) (r : ℝ) : |
| 31 | calibratedMetricVolume g (g.ball p r) < ⊤ := by |
| 32 | have hsub : g.ball p r ⊆ {q | g.edist p q ≤ ENNReal.ofReal r} := |
| 33 | fun q hq => (show g.edist p q < ENNReal.ofReal r from hq).le |
| 34 | exact (measure_mono hsub).trans_lt |
| 35 | (calibratedMetricVolume_lt_top_of_isCompact g |
| 36 | (g.isCompact_closedBall_of_metricComplete hc p r)) |
| 37 | |
| 38 | end PoincareMT.SurgeryVolume |