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.Blowup.Construction.ShortTime.Terminal.TerminalNormalCovers |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.PartialLimits.StaticNormalCoverLimit |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.PartialLimits.Geometry.UniformNormalCover |
| 4 | import PoincareLib.Geometry.RicciFlow.Compactness.SourceMetric |
| 5 | |
| 6 | /-! |
| 7 | # The actual complete terminal metric limit |
| 8 | |
| 9 | Morgan--Tian Theorem 5.9 and Corollary 5.10, pp. 88--89, and Claim 11.5, |
| 10 | p. 270. The original generalized sequence supplies all finite-radius |
| 11 | normal covers and curvature derivatives. One complete static limit retains |
| 12 | the actual component embeddings and all-radius source coverage. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Topology ENNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M30 |
| 24 | |
| 25 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 26 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 27 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 28 | |
| 29 | /-- The original bounded-distance geometry has an actual complete terminal |
| 30 | metric limit with compact source coverage at every radius |
| 31 | (Theorem 5.9 and Claim 11.5, pp. 88--89 and 270). -/ |
| 32 | theorem exists_complete_terminal_static_limit |
| 33 | (hC : RicciFlowCurvatureTheory.{u}) {S : GeneralizedBlowupSequence.{u}} |
| 34 | {epsilon canonicalConstant kappa r₀ mu : ℝ} |
| 35 | (H : M30CommonBlowupControls S epsilon canonicalConstant kappa r₀ mu) |
| 36 | (hbound : GeneralizedBlowupBoundedDistance S) : |
| 37 | ∃ G : PartialPointedMetricConvergence (terminalComponentMetric S) |
| 38 | (terminalComponentBase S) 1, |
| 39 | G.limitCarrier.metricComplete G.limitMetric ∧ |
| 40 | ∀ A : ℝ, 0 < A → ∃ l : ℕ, ∀ᶠ k in atTop, |
| 41 | (terminalComponentMetric S (G.subsequence k)).ball |
| 42 | (terminalComponentBase S (G.subsequence k)) A ⊆ |
| 43 | G.embedding k '' G.exhaustion l := by |
| 44 | classical |
| 45 | have hNormal : UniformNormalCoverService.{u} := |
| 46 | M28.exists_uniform_normalCover_of_local_noncollapse |
| 47 | obtain ⟨sigma, hsigma, R, rho, N, hsize, hcovers, hcurv⟩ := |
| 48 | exists_terminalComponent_normal_covers hNormal hC H hbound |
| 49 | let : ∀ k, MetricSpace (terminalComponentCarrier S (sigma k)).carrier := |
| 50 | fun k => (terminalComponentCarrier S (sigma k)).metricSpaceOf |
| 51 | (terminalComponentMetric S (sigma k)) |
| 52 | let cover := fun k j (hjk : j ≤ k) => Classical.choice (hcovers k j hjk) |
| 53 | obtain ⟨G, hcomplete, hcoverage⟩ := exists_complete_static_limit_of_normal_covers |
| 54 | (fun k => terminalComponentMetric S (sigma k)) |
| 55 | (fun k => terminalComponentBase S (sigma k)) |
| 56 | (fun k => (terminalComponentMetric S (sigma k)).leviCivitaData) |
| 57 | hsize cover (fun _ _ _ => rfl) hcurv |
| 58 | exact ⟨G.reindex hsigma, hcomplete, hcoverage⟩ |
| 59 | |
| 60 | end PoincareMT.M30 |