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.Theory |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.AreaComparison.Projection.Complete |
| 3 | |
| 4 | /-! |
| 5 | Assembling the proved evolution, small-annulus, projection, approximation, disk and finite-net |
| 6 | fields into the frozen flow conclusions. |
| 7 | |
| 8 | Morgan--Tian context: Section 19.6, Lemmas 19.30-19.31, printed pp. 461-466. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | /-- Turn the actual projected-annulus constructor into the universal projection field. |
| 20 | Source: Assembly of MT Lemmas 19.15, 19.30 and 19.31, pp. 447-449 and 462, in the frozen M64 |
| 21 | contract. -/ |
| 22 | theorem m64ProjectionField_of_annulus |
| 23 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 25 | [IsManifold (𝓡 n) ∞ M] |
| 26 | {a b : ℝ} {F : RicciFlow n M (Set.Icc a b)} |
| 27 | (G : M63AmbientGeometry F) : |
| 28 | ∀ circumference (h : 0 < circumference), ∀ t ∈ Set.Icc a b, |
| 29 | M64AnnulusProjection (G.product circumference h) t := by |
| 30 | intro circumference h t ht c0 c1 A |
| 31 | exact m64ProjectedAnnulus_of_annulus (G.product circumference h) t c0 c1 A |
| 32 | |
| 33 | /-- Package one ambient geometry with its actual evolution, ramp comparison, and projection |
| 34 | services. Source: Assembly of MT Lemmas 19.15, 19.30 and 19.31, pp. 447-449 and 462, in the |
| 35 | frozen M64 contract. -/ |
| 36 | def m64FlowConclusion_of_fields |
| 37 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 38 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 39 | [IsManifold (𝓡 n) ∞ M] |
| 40 | {a b : ℝ} {F : RicciFlow n M (Set.Icc a b)} |
| 41 | (G : M63AmbientGeometry F) |
| 42 | (evolution : M64AnnulusEvolution G) |
| 43 | (ramp_comparison : M64RampSmallAnnulusComparison G) |
| 44 | (projection : ∀ circumference (h : 0 < circumference), ∀ t ∈ Set.Icc a b, |
| 45 | M64AnnulusProjection (G.product circumference h) t) : |
| 46 | M64FlowConclusion F := by |
| 47 | exact { geometry := G |
| 48 | evolution := evolution |
| 49 | ramp_comparison := ramp_comparison |
| 50 | projection := projection } |
| 51 | |
| 52 | /-- Retain the same flow geometry while adding the actual disk comparison and finite-net |
| 53 | services. Source: Assembly of MT Lemmas 19.15, 19.30 and 19.31, pp. 447-449 and 462, in the |
| 54 | frozen M64 contract. -/ |
| 55 | theorem m64ThreeDimensionalFlowConclusion_of_fields |
| 56 | {M : Type u} [TopologicalSpace M] [ChartedSpace LoopAmbient M] |
| 57 | [IsManifold (𝓡 3) ∞ M] |
| 58 | {a b : ℝ} {F : RicciFlow 3 M (Set.Icc a b)} |
| 59 | (flow : M64FlowConclusion F) |
| 60 | (approximation : M64FamilyApproximationTheory F flow.geometry) |
| 61 | (disks : ∀ circumference (h : 0 < circumference), ∀ t ∈ Set.Icc a b, |
| 62 | M64DiskAreaComparison (flow.geometry.product circumference h) t) |
| 63 | (finite_nets : M64FamilyAnnulusNets flow.geometry) : |
| 64 | Nonempty (M64ThreeDimensionalFlowConclusion F) := by |
| 65 | exact ⟨{ flow := flow |
| 66 | approximation := approximation |
| 67 | disks := disks |
| 68 | finite_nets := finite_nets }⟩ |
| 69 | |
| 70 | end PoincareMT |