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.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Differential |
| 3 | import PoincareLib.Geometry.Curvature.Operator.RicciBounds |
| 4 | import Mathlib.Analysis.Calculus.Deriv.MeanValue |
| 5 | |
| 6 | /-! |
| 7 | # Scalar monotonicity of bounded ancient flows |
| 8 | |
| 9 | Smooth exhaustion and bounded-slab Hamilton block positivity imply scalar |
| 10 | monotonicity by sending the initial time to minus infinity. This is the |
| 11 | bounded-flow input in Kleiner--Lott (corrected 2013), Proposition 41.13, |
| 12 | p. 2678. The per-slice trace-Harnack theorem is not used. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.RicciFlow |
| 24 | |
| 25 | open Poincare.Geometry.RicciFlow.Harnack |
| 26 | |
| 27 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] |
| 28 | [SecondCountableTopology M] [ConnectedSpace M] [NoncompactSpace M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 30 | |
| 31 | /-- The scalar evolution expression is nonnegative in a bounded ancient flow. |
| 32 | The exhaustion is produced from completeness and the global curvature bound. -/ |
| 33 | theorem scalarEvolution_nonneg_of_bounded_ancient |
| 34 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow n M (Iic 0)) |
| 35 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 36 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 37 | {K : ℝ} (hK : 0 ≤ K) |
| 38 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) : |
| 39 | ∀ t ≤ 0, ∀ x, |
| 40 | 0 ≤ (F.connection t).laplacian (F.connection t).scalarCurvature x + |
| 41 | 2 * (F.connection t).ricciNormSq x := by |
| 42 | intro t ht x |
| 43 | obtain ⟨dR, hdR, hineq⟩ := |
| 44 | F.ancient_differential_of_bounded_ancient hC hcomplete hoperator hK hbound t ht x 0 |
| 45 | have hid : dR = (F.connection t).laplacian (F.connection t).scalarCurvature x + |
| 46 | 2 * (F.connection t).ricciNormSq x := |
| 47 | (hdR.derivWithin (uniqueDiffOn_Iic 0 t ht)).symm.trans |
| 48 | ((hC.scalar_evolution n M (Iic 0) F t ht x).derivWithin (uniqueDiffOn_Iic 0 t ht)) |
| 49 | rw [← hid] |
| 50 | have hzero : (F.connection t).ricci x 0 0 = 0 := by |
| 51 | rw [(F.connection t).ricci_eq_sum_frame x 0 0] |
| 52 | simp |
| 53 | simpa only [hzero, map_zero, mul_zero, add_zero] using hineq |
| 54 | |
| 55 | /-- Pointwise scalar time monotonicity from the bounded-flow exhaustion and |
| 56 | Hamilton block route, including the terminal slice. -/ |
| 57 | theorem scalarCurvature_monotoneOn_of_bounded_ancient |
| 58 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow n M (Iic 0)) |
| 59 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 60 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 61 | {K : ℝ} (hK : 0 ≤ K) |
| 62 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) : |
| 63 | ∀ x : M, MonotoneOn (fun t => (F.connection t).scalarCurvature x) (Iic 0) := by |
| 64 | intro x |
| 65 | apply monotoneOn_of_hasDerivWithinAt_nonneg (convex_Iic 0) |
| 66 | (scalarCurvature_continuousOn_time hC (Iic 0) F x) |
| 67 | (f' := fun t => (F.connection t).laplacian (F.connection t).scalarCurvature x + |
| 68 | 2 * (F.connection t).ricciNormSq x) |
| 69 | · intro t ht |
| 70 | exact (hC.scalar_evolution n M (Iic 0) F t (interior_subset ht) x).mono interior_subset |
| 71 | · intro t ht |
| 72 | exact scalarEvolution_nonneg_of_bounded_ancient hC F hcomplete hoperator hK hbound |
| 73 | t (show t ∈ Iic (0 : ℝ) from interior_subset ht) x |
| 74 | |
| 75 | end PoincareMT.RicciFlow |