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.LocalBounds.Limit |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.ParabolicNoncollapse |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Compactness.ScalarBuffer |
| 4 | |
| 5 | /-! |
| 6 | # Interior compactness from uniform local curvature control |
| 7 | |
| 8 | The actual common limit retains completeness, nonnegative curvature, the |
| 9 | original noncollapse constant, and a positive-curvature slice. Source time |
| 10 | minus one is the reference slice; shifted time one is the terminal boundary. |
| 11 | No bounded-curvature ancient-solution package is assumed for this limit. |
| 12 | |
| 13 | Reference: Morgan--Tian, Theorem 9.64, pp. 225-229; Kleiner--Lott, |
| 14 | Appendix E, Theorem E.1 and Corollary E.2, pp. 2848-2849. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 21 | |
| 22 | namespace PoincareMT.NormalizedKappaSolutionSequence |
| 23 | |
| 24 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 25 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 26 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 27 | |
| 28 | variable {kappa : ℝ} (S : NormalizedKappaSolutionSequence kappa) |
| 29 | |
| 30 | local instance constructionSourceConnected (k : ℕ) : ConnectedSpace (S.term k).carrier.carrier := |
| 31 | (S.term k).connectedSpace |
| 32 | |
| 33 | /-- Uniform terminal-ball scalar control constructs one complete interior |
| 34 | limit with the original parabolic noncollapse constant. -/ |
| 35 | theorem exists_complete_noncollapsed_interior_geometric_limit |
| 36 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 37 | (hlocal : M23LocalCurvatureEstimate S) : |
| 38 | ∃ G : AncientPointedGeometricConvergence (fun k => (S.term k).carrier) |
| 39 | (fun k t => (S.term k).flow.flow.metric (t - 1)) (fun k => (S.term k).base) 1, |
| 40 | (∀ t : ℝ, t < 1 → G.limitCarrier.metricComplete (G.limitFlow.metric t)) ∧ |
| 41 | (∀ t : ℝ, t < 1 → ∀ x : G.limitCarrier.carrier, |
| 42 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x) ∧ |
| 43 | (∃ s ∈ Ioo (0 : ℝ) 1, 0 < (G.limitFlow.connection s).curvatureTensorNorm G.base) ∧ |
| 44 | ∀ t : ℝ, t < 1 → ∀ p : G.limitCarrier.carrier, ∀ r : ℝ, 0 < r → |
| 45 | (∀ u ∈ Ioc (t - r ^ 2) t, ∀ x ∈ (G.limitFlow.metric t).ball p r, |
| 46 | |(G.limitFlow.connection u).curvatureTensorNorm x| ≤ r⁻¹ ^ 2) → |
| 47 | ENNReal.ofReal (kappa * r ^ 3) ≤ calibratedMetricVolume (G.limitFlow.metric t) |
| 48 | ((G.limitFlow.metric t).ball p r) := by |
| 49 | have hcontrol := m23AllTimeCurvatureControl_of_local S P hlocal |
| 50 | obtain ⟨G, hreference⟩ := S.exists_complete_interior_geometric_limit P hcontrol |
| 51 | have hcomplete := S.interiorLimit_complete G P hcontrol hreference |
| 52 | refine ⟨G, hcomplete, S.interiorLimit_nonnegativeCurvatureOperator G, ?_, ?_⟩ |
| 53 | · obtain ⟨δ, hδ, hδone, hbuffer⟩ := S.exists_base_scalar_positive_time_buffer P hcontrol |
| 54 | refine ⟨1 - δ, ⟨by linarith, by linarith⟩, ?_⟩ |
| 55 | apply S.interiorLimit_base_curvatureTensorNorm_pos_of_scalar_buffer G |
| 56 | (by linarith : 1 - δ < 1) (by norm_num : (0 : ℝ) < 1 / 2) |
| 57 | exact Eventually.of_forall fun k => hbuffer k (1 - δ - 1) ⟨by linarith, by linarith⟩ |
| 58 | · intro t ht p r hr hcurv |
| 59 | exact S.interiorLimit_noncollapsed_ball G hcomplete ht p hr hcurv |
| 60 | |
| 61 | end PoincareMT.NormalizedKappaSolutionSequence |