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.Soliton.Flow.Applications.Classification |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Ancient.Roundness |
| 3 | import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Ancient.Sequence.Existence |
| 4 | |
| 5 | /-! |
| 6 | # Two-dimensional ancient and shrinking-soliton classification |
| 7 | |
| 8 | The exact frozen M19 conclusion combines the compact-round classification of |
| 9 | every actual asymptotic limit, the flow generated by each shrinking soliton, |
| 10 | and ancient roundness from a reduced-length minimizing rescaling sequence |
| 11 | constructed from the original ancient-solution hypotheses. |
| 12 | |
| 13 | Morgan--Tian, Corollary 9.50, pp. 213--214. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | variable {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] |
| 26 | [IsManifold (𝓡 2) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 27 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 28 | |
| 29 | theorem twoDimensionalAncientAndShrinkingSolitonClassification |
| 30 | (P : TwoDimensionalClassificationPredecessors (M := M)) : |
| 31 | TwoDimensionalClassificationTheory (M := M) := by |
| 32 | refine { |
| 33 | asymptotic_round := P.asymptoticRoundTheory |
| 34 | shrinking_soliton := exists_twoDimensionalShrinkingSolitonConclusion |
| 35 | ancient_classification := ?_ } |
| 36 | intro K |
| 37 | have hsequence : Nonempty (AncientRescalingSequence K) := |
| 38 | K.exists_ancientRescalingSequence |
| 39 | obtain ⟨S⟩ := hsequence |
| 40 | exact ⟨P.ancientRoundCertificate_of_sequence K S⟩ |
| 41 | |
| 42 | end PoincareMT |