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.PolygonApproximation.Static.Approximation |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.PolygonApproximation.Family.ApproximationFromStatic |
| 3 | import PoincareLib.Geometry.CurveShortening.Comparison.AreaComparison.Disk.ComparisonComplete |
| 4 | import PoincareLib.Geometry.CurveShortening.Comparison.AreaComparison.Finite.NetsComplete |
| 5 | import PoincareLib.Geometry.CurveShortening.Comparison.AreaComparison.Flow.ConclusionAssembly |
| 6 | |
| 7 | /-! |
| 8 | # Closed approximation and three-dimensional packaging |
| 9 | |
| 10 | The static approximation theorem supplies the raw family at the exact |
| 11 | initial metric and connection. M63's supplied-family clause then turns each |
| 12 | raw family into the evolving approximation consumed by M64. The disk and |
| 13 | finite-net fields are direct products of the already proved comparison |
| 14 | constructors once an actual M64 flow conclusion has been supplied. |
| 15 | |
| 16 | Morgan--Tian context: Chapter 19, Sections 19.3-19.7, printed pp. 447-481; the frozen M64 |
| 17 | contracts and project comparison erratum specify the final interfaces. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | open Set |
| 23 | open scoped Manifold ContDiff Bundle |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT |
| 28 | |
| 29 | variable {M : Type u} [TopologicalSpace M] [T2Space M] |
| 30 | [SecondCountableTopology M] |
| 31 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 32 | {a b : ℝ} {F : RicciFlow 3 M (Set.Icc a b)} |
| 33 | {G : M63AmbientGeometry F} |
| 34 | |
| 35 | /-- Apply M63's supplied-family conclusion to every raw M64 approximation from the closed |
| 36 | static raw-family supplier. Source: Assembly of MT Lemmas 19.15, 19.30 and 19.31, pp. |
| 37 | 447-449 and 462, in the frozen M64 contract. -/ |
| 38 | theorem m64FamilyApproximationTheory_of_M63 |
| 39 | (hM63 : M63RampEstimatesTheory.{u}) |
| 40 | (hcompact : IsCompact (Set.univ : Set M)) |
| 41 | (analytic : M63AnalyticConclusion F G) : |
| 42 | M64FamilyApproximationTheory F G := by |
| 43 | apply m64FamilyApproximationTheory_from_static_raw hM63 hcompact analytic |
| 44 | intro Gamma hnull zeta hzeta |
| 45 | exact (m64StaticApproximationTheory_of_compact (F.metric a) (F.connection a) |
| 46 | hcompact).raw_family Gamma hnull zeta hzeta |
| 47 | |
| 48 | /-- The three-dimensional record is obtained by applying the closed disk and finite-net |
| 49 | constructors to an already supplied M64 flow record. Source: Assembly of MT Lemmas 19.15, |
| 50 | 19.30 and 19.31, pp. 447-449 and 462, in the frozen M64 contract. -/ |
| 51 | theorem m64ThreeDimensionalFlowConclusion_of_flow_M63 |
| 52 | (hM63 : M63RampEstimatesTheory.{u}) |
| 53 | (hcompact : IsCompact (Set.univ : Set M)) |
| 54 | (flow : M64FlowConclusion F) |
| 55 | (analytic : M63AnalyticConclusion F flow.geometry) : |
| 56 | Nonempty (M64ThreeDimensionalFlowConclusion F) := by |
| 57 | let approximation := m64FamilyApproximationTheory_of_M63 hM63 hcompact |
| 58 | analytic |
| 59 | let disks : ∀ circumference (h : 0 < circumference), ∀ t ∈ Set.Icc a b, |
| 60 | M64DiskAreaComparison (flow.geometry.product circumference h) t := |
| 61 | fun circumference h t ht => m64DiskAreaComparison_of_product |
| 62 | (flow.geometry.product circumference h) t |
| 63 | let finite_nets := m64FamilyAnnulusNets_of_compact flow.geometry hcompact |
| 64 | exact m64ThreeDimensionalFlowConclusion_of_fields flow approximation disks finite_nets |
| 65 | |
| 66 | end PoincareMT |