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.CurveShortening.Comparison.Assembly |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AnnularEvolution.Evolution |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.RampTransport.Comparison |
| 4 | |
| 5 | /-! Assembly of all original M64 clauses on one actual M63 geometry. |
| 6 | Source: MT Chapter 19, Lemmas 19.15 and 19.31, Proposition 19.35 and |
| 7 | the compact-family constructions on pp. 449-462. -/ |
| 8 | |
| 9 | noncomputable section |
| 10 | set_option autoImplicit false |
| 11 | |
| 12 | open Set |
| 13 | open scoped Manifold ContDiff |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | /-- The actual M63 geometry supports all M64 flow fields, including the original |
| 20 | small-annulus ramp comparison. Source: Morgan--Tian (2007), Lemma 19.15 and Corollary 19.16, |
| 21 | pp. 447-449; Lemma 19.31, pp. 462 and 464-466; project derivation |
| 22 | `proof-work/tasks/M64/derivations/2026-09-27-trimmed-intrinsic-transport.md`. -/ |
| 23 | def m64FlowConclusion_of_M63_analytic |
| 24 | {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] [SecondCountableTopology M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 26 | {a b : ℝ} {F : RicciFlow n M (Icc a b)} |
| 27 | (G : M63AmbientGeometry F) (analytic : M63AnalyticConclusion F G) |
| 28 | (hcompact : IsCompact (univ : Set M)) (hn : 3 ≤ n) : M64FlowConclusion F := by |
| 29 | let : CompactSpace M := isCompact_univ_iff.mp hcompact |
| 30 | exact m64FlowConclusion_of_fields G |
| 31 | (m64AnnulusEvolution_of_M63 G analytic hcompact (by omega)) |
| 32 | (m64RampSmallAnnulusComparison_of_geometry G) (m64ProjectionField_of_annulus G) |
| 33 | |
| 34 | /-- All frozen M64 conclusions from the exact predecessor service, with |
| 35 | the same chosen geometry retained by the three-dimensional record. |
| 36 | Source: MT Chapter 19, pp. 447-481, and the 2015 correction, pp. 8-9. -/ |
| 37 | theorem m64ComparisonTheory_from_M63 (hM63 : M63RampEstimatesTheory.{u}) : |
| 38 | M64ComparisonTheory.{u} := by |
| 39 | refine ⟨m64IntrinsicAnnulusComparison, ?_, ?_, ?_⟩ |
| 40 | · intro M _ _ _ _ _ g D hcompact |
| 41 | exact m64StaticApproximationTheory_of_compact g D hcompact |
| 42 | · intro n M _ _ _ _ _ a b F hn hcompact |
| 43 | obtain ⟨C⟩ := hM63.2.1 n M a b F hcompact |
| 44 | exact ⟨m64FlowConclusion_of_M63_analytic C.geometry C.analytic hcompact hn⟩ |
| 45 | · intro M _ _ _ _ _ a b F hcompact |
| 46 | obtain ⟨C⟩ := hM63.2.1 3 M a b F hcompact |
| 47 | let flow := m64FlowConclusion_of_M63_analytic C.geometry C.analytic hcompact (by norm_num) |
| 48 | exact m64ThreeDimensionalFlowConclusion_of_flow_M63 hM63 hcompact flow C.analytic |
| 49 | |
| 50 | end PoincareMT |