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.AncientKappa.Compactness.Construction |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Terminal.Construction |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Terminal.Assembly |
| 4 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Terminal.Inheritance |
| 5 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.Terminal.Monotonicity |
| 6 | |
| 7 | /-! |
| 8 | # A complete normalized closed limit on the original carrier |
| 9 | |
| 10 | Uniform source control produces the actual closed flow, with completeness, |
| 11 | the original noncollapse constant, curvature positivity, scalar normalization, |
| 12 | and past curvature control. Global boundedness remains a separate geometric |
| 13 | step before packaging this flow as an ancient kappa-solution. |
| 14 | |
| 15 | Reference: Morgan--Tian, Theorem 9.64, pp. 225-229. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set |
| 22 | open scoped Manifold ContDiff Bundle Topology |
| 23 | |
| 24 | namespace PoincareMT.NormalizedKappaSolutionSequence |
| 25 | |
| 26 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 27 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 28 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 29 | |
| 30 | local instance closedLimitConnected (C : FlowCarrier.{0} 3) : ConnectedSpace C.carrier := |
| 31 | connectedSpace_iff_univ.mpr C.connected |
| 32 | |
| 33 | /-- The normalized sequence has an actual complete closed ancient limit |
| 34 | on its retained interior carrier, before any global curvature bound is used. -/ |
| 35 | theorem exists_complete_noncollapsed_closed_geometric_limit |
| 36 | {κ : ℝ} (S : NormalizedKappaSolutionSequence κ) |
| 37 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 38 | (hlocal : M23LocalCurvatureEstimate S) : |
| 39 | ∃ G : AncientPointedGeometricConvergence (fun k => (S.term k).carrier) |
| 40 | (fun k t => (S.term k).flow.flow.metric (t - 1)) (fun k => (S.term k).base) 1, |
| 41 | ∃ F : RicciFlow 3 G.limitCarrier.carrier (Iic 0), |
| 42 | (∀ t : ℝ, t < 0 → F.metric t = G.limitFlow.metric (t + 1)) ∧ |
| 43 | (∀ t : ℝ, t ≤ 0 → G.limitCarrier.metricComplete (F.metric t)) ∧ |
| 44 | (∀ t : ℝ, t ≤ 0 → ∀ x : G.limitCarrier.carrier, |
| 45 | (F.connection t).NonnegativeCurvatureOperator x) ∧ |
| 46 | AncientKappaNoncollapsed F κ ∧ |
| 47 | (F.connection 0).scalarCurvature G.base = 1 ∧ |
| 48 | (∀ s t : ℝ, s ≤ t → t ≤ 0 → ∀ x : G.limitCarrier.carrier, |
| 49 | (F.connection s).scalarCurvature x ≤ (F.connection t).scalarCurvature x) ∧ |
| 50 | (∀ s t : ℝ, s ≤ t → t ≤ 0 → ∀ x : G.limitCarrier.carrier, |
| 51 | |(F.connection s).curvatureTensorNorm x| ≤ (F.connection t).scalarCurvature x) := by |
| 52 | have hcontrol := m23AllTimeCurvatureControl_of_local S P hlocal |
| 53 | obtain ⟨G, hcomplete, _, _, _⟩ := |
| 54 | S.exists_complete_noncollapsed_interior_geometric_limit P hlocal |
| 55 | have hreference := hcomplete 0 (by norm_num) |
| 56 | obtain ⟨F, hF⟩ := S.exists_terminal_flow_on_interior_carrier G P hcontrol hreference |
| 57 | exact ⟨G, F, hF, S.closedLimit_complete G F hF P hcontrol hreference, |
| 58 | S.closedLimit_nonnegativeCurvatureOperator G P F hF, |
| 59 | S.closedLimit_noncollapsed G P hcomplete F hF, |
| 60 | S.closedLimit_scalar_normalized G P hcontrol F hF, |
| 61 | S.closedLimit_scalar_monotone G P F hF, |
| 62 | fun s t hst ht x => S.closedLimit_past_norm_le_scalar G P F hF hst ht x⟩ |
| 63 | |
| 64 | end PoincareMT.NormalizedKappaSolutionSequence |