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.TwoDimensional.Models |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence |
| 3 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Asymptotic.Theory |
| 4 | |
| 5 | /-! |
| 6 | # M19 two-dimensional classification statement |
| 7 | |
| 8 | The conclusion keeps the compact-round ancient certificate separate from the |
| 9 | shrinking-soliton model output. It also records the conversion of each |
| 10 | actual M18 limit into the bounded, self-similar, compact-round flow supplied |
| 11 | by Corollary 9.50. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | variable {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] |
| 24 | [IsManifold (𝓡 2) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 25 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 26 | |
| 27 | structure TwoDimensionalClassificationPredecessors : Prop where |
| 28 | compactness : |
| 29 | ∀ {T' T : ℝ}, T' < 0 → 0 < T → |
| 30 | ∀ H : PointedRicciFlowCompactnessHypotheses 2 T' T, |
| 31 | Nonempty (PointedRicciFlowCompactnessConclusion H) |
| 32 | m18 : |
| 33 | ∀ (K : AncientKappaSolution 2 M) (S : AncientRescalingSequence K), |
| 34 | AncientAsymptoticSolitonConclusion S |
| 35 | |
| 36 | /-! Corollary 9.50 is applied to the actual M18 limit rather than to an |
| 37 | unrelated desired-limit premise. -/ |
| 38 | structure TwoDimensionalAsymptoticRoundTheory |
| 39 | (K : AncientKappaSolution 2 M) : Prop where |
| 40 | classify : |
| 41 | ∀ S : AncientRescalingSequence K, |
| 42 | ∃ L : AncientAsymptoticSolitonLimitData S, |
| 43 | TwoDimensionalAsymptoticRoundCertificate S L |
| 44 | |
| 45 | /-! The M19 2D ancient and shrinking-soliton classification output. -/ |
| 46 | structure TwoDimensionalClassificationTheory : Prop where |
| 47 | asymptotic_round : ∀ K : AncientKappaSolution 2 M, |
| 48 | Nonempty (TwoDimensionalAsymptoticRoundTheory K) |
| 49 | shrinking_soliton : ∀ S : GradientShrinkingSolitonData 2 M, |
| 50 | Nonempty (TwoDimensionalShrinkingSolitonConclusion S) |
| 51 | ancient_classification : ∀ K : AncientKappaSolution 2 M, |
| 52 | Nonempty (TwoDimensionalAncientRoundCertificate K) |
| 53 | |
| 54 | end PoincareMT |