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.Topology.Manifold.Poincare.Final.Compatibility.SourceNames |
| 2 | import PoincareLib.Topology.Manifold.Poincare.Final.Compatibility.Volume |
| 3 | import PoincareLib.Topology.Manifold.Poincare.Final.Compatibility.Metric |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Source.TerminalSourceNormalCharts |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.CanonicalInduction.Terminal.Source.TerminalSourceNormalTransfer |
| 6 | import PoincareLib.Geometry.RicciFlow.Generalized.Noncollapse.Volume.LocalVolume |
| 7 | |
| 8 | /-! |
| 9 | # Actual volume buffers at terminal chart centers |
| 10 | |
| 11 | MT Theorems 1.34 and 1.36, pp. 19-20. The original base-ball volume |
| 12 | floor and curvature control give explicit positive finite volumes at |
| 13 | every controlled center and smaller radius on the same source. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set MeasureTheory |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M47 |
| 25 | |
| 26 | variable {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | [MeasurableSpace M] [BorelSpace M] [T3Space M] [SecondCountableTopology M] |
| 29 | |
| 30 | /-- The explicit smaller-ball floor uses only the original controlled |
| 31 | base ball, and its volume is finite; MT Theorems 1.34 and 1.36. -/ |
| 32 | theorem terminalSourceNormal_center_volume |
| 33 | (g : RiemannianMetric 3 M) (D : LeviCivitaData g) (p0 p : M) |
| 34 | {A R r K v s : ℝ} (hK : 0 ≤ K) (hA : 0 < A) (hr : 0 < r) (hv : 0 < v) |
| 35 | (hAR : A ≤ R) (hAr : A + r ≤ R) (hp : p ∈ g.ball p0 A) |
| 36 | (hcompact : IsCompact (closure (g.ball p0 (5 * R)))) |
| 37 | (hcurv : ∀ x ∈ g.ball p0 (5 * R), D.curvatureTensorNorm x ≤ K) |
| 38 | (hvol : ENNReal.ofReal v ≤ g.volumeMeasure (g.ball p0 r)) |
| 39 | (hs : 0 < s) (hsR : s ≤ R) : |
| 40 | 0 < RiemannianMetric.smallerBallVolumeBound 3 K R v s ∧ |
| 41 | ENNReal.ofReal (RiemannianMetric.smallerBallVolumeBound 3 K R v s) ≤ |
| 42 | calibratedMetricVolume g (g.ball p s) ∧ |
| 43 | calibratedMetricVolume g (g.ball p s) < ⊤ := by |
| 44 | have hR : 0 < R := hA.trans_le hAR |
| 45 | have hbase : g.ball p0 r ⊆ g.ball p R := by |
| 46 | intro x hx |
| 47 | have hpp0 : g.edist p p0 < ENNReal.ofReal A := by |
| 48 | have hp' : g.edist p0 p < ENNReal.ofReal A := hp |
| 49 | simpa only [RiemannianMetric.edist, Manifold.riemannianEDist_comm] using hp' |
| 50 | calc |
| 51 | g.edist p x ≤ g.edist p p0 + g.edist p0 x := M36.metric_edist_triangle g p p0 x |
| 52 | _ < ENNReal.ofReal A + ENNReal.ofReal r := ENNReal.add_lt_add hpp0 hx |
| 53 | _ = ENNReal.ofReal (A + r) := (ENNReal.ofReal_add hA.le hr.le).symm |
| 54 | _ ≤ ENNReal.ofReal R := ENNReal.ofReal_le_ofReal hAr |
| 55 | have hlarge : closure (g.ball p (2 * R)) ⊆ g.ball p0 (5 * R) := |
| 56 | g.closure_ball_subset_ball_of_margin hA.le (by positivity) (by linarith) hp |
| 57 | have hc : IsCompact (closure (g.ball p (2 * R))) := |
| 58 | hcompact.of_isClosed_subset isClosed_closure (hlarge.trans subset_closure) |
| 59 | have hb := g.smallerBall_volume_lower_bound_of_curvatureTensorNorm_le D p |
| 60 | (by norm_num) hK hR hv hc (fun x hx => hcurv x (hlarge (subset_closure hx))) |
| 61 | (hvol.trans (measure_mono hbase)) hs hsR |
| 62 | have hcs : IsCompact (closure (g.ball p s)) := |
| 63 | hc.of_isClosed_subset isClosed_closure (closure_mono (fun x hx => |
| 64 | hx.trans_le (ENNReal.ofReal_le_ofReal (by linarith : s ≤ 2 * R)))) |
| 65 | refine ⟨hb.1, ?_, Proofs.M15.calibratedMetricVolume_ball_lt_top_of_precompact g p s hcs⟩ |
| 66 | simpa only [Proofs.M15.calibratedMetricVolume_eq_volumeMeasure] using hb.2 |
| 67 | |
| 68 | end PoincareMT.M47 |