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.Riemannian.Measure.MetricComparison |
| 2 | import PoincareLib.Geometry.RicciFlow.Basic |
| 3 | import Mathlib.Analysis.Calculus.MeanValue |
| 4 | |
| 5 | /-! # Volume monotonicity under nonnegative Ricci curvature |
| 6 | |
| 7 | The Ricci equation orders the time-slice metrics. Metric volume comparison |
| 8 | then gives monotonicity for every fixed measurable region. |
| 9 | Reference: Morgan--Tian, equation (3.1), p. 44. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle ENNReal |
| 16 | |
| 17 | namespace PoincareMT.RicciFlow |
| 18 | |
| 19 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 20 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 21 | {J : Set ℝ} (F : RicciFlow n M J) |
| 22 | |
| 23 | theorem inner_antitone_of_nonnegative_ricci (hJ : Convex ℝ J) |
| 24 | (hRic : ∀ t ∈ J, ∀ x : M, ∀ v : TangentSpace (𝓡 n) x, |
| 25 | 0 ≤ (F.connection t).ricci x v v) |
| 26 | {s t : ℝ} (hs : s ∈ J) (ht : t ∈ J) (hst : s ≤ t) |
| 27 | (x : M) (v : TangentSpace (𝓡 n) x) : |
| 28 | (F.metric t).inner x v v ≤ (F.metric s).inner x v v := by |
| 29 | have hm : AntitoneOn (fun t ↦ (F.metric t).inner x v v) J := by |
| 30 | apply antitoneOn_of_hasDerivWithinAt_nonpos hJ |
| 31 | (fun t ht ↦ (F.equation t ht x v v).continuousWithinAt) |
| 32 | (f' := fun t ↦ -2 * (F.connection t).ricci x v v) |
| 33 | · intro t ht |
| 34 | exact (F.equation t (interior_subset ht) x v v).mono interior_subset |
| 35 | · intro t ht |
| 36 | exact mul_nonpos_of_nonpos_of_nonneg (by norm_num) (hRic t (interior_subset ht) x v) |
| 37 | exact hm hs ht hst |
| 38 | |
| 39 | variable [T3Space M] [MeasurableSpace M] [BorelSpace M] [SecondCountableTopology M] |
| 40 | |
| 41 | theorem volumeMeasure_antitone_of_nonnegative_ricci (hJ : Convex ℝ J) |
| 42 | (hRic : ∀ t ∈ J, ∀ x : M, ∀ v : TangentSpace (𝓡 n) x, |
| 43 | 0 ≤ (F.connection t).ricci x v v) |
| 44 | {s t : ℝ} (hs : s ∈ J) (ht : t ∈ J) (hst : s ≤ t) |
| 45 | {A : Set M} (hA : MeasurableSet A) : |
| 46 | (F.metric t).volumeMeasure A ≤ (F.metric s).volumeMeasure A := |
| 47 | (F.metric s).volumeMeasure_le_of_inner_le (F.metric t) |
| 48 | (F.inner_antitone_of_nonnegative_ricci hJ hRic hs ht hst) hA |
| 49 | |
| 50 | end PoincareMT.RicciFlow |