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.Models.Cylinder |
| 2 | |
| 3 | /-! |
| 4 | # Three-dimensional shrinking-soliton alternatives |
| 5 | |
| 6 | Ported from Mapher `Definitions/M20ThreeDimensionalClassification.lean` at |
| 7 | `49331b7d7ecad38f53e4300c3b35d6a84b2cc648`, with declarations unchanged. |
| 8 | Morgan--Tian, Theorem 9.42, pp. 206-208. The quotient alternative retains |
| 9 | the free involution without an orientation restriction. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | variable {M : Type u} [TopologicalSpace M] |
| 21 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 22 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 23 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 24 | |
| 25 | /-- A 3D shrinking-soliton model certificate from the Theorem 9.42 ledger. -/ |
| 26 | inductive ThreeDimensionalSolitonModel |
| 27 | (S : GradientShrinkingSolitonData 3 M) |
| 28 | (G : ShrinkingSolitonFlow S) : Type (u + 2) where |
| 29 | | compactRound : CompactRoundShrinkingModel G → |
| 30 | ThreeDimensionalSolitonModel S G |
| 31 | | sphereLine : SphereLineProductCertificate G → |
| 32 | ThreeDimensionalSolitonModel S G |
| 33 | | quotientSphereLine : QuotientSphereLineCertificate G → |
| 34 | ThreeDimensionalSolitonModel S G |
| 35 | |
| 36 | structure ThreeDimensionalSolitonConclusion |
| 37 | (S : GradientShrinkingSolitonData 3 M) where |
| 38 | flow : ShrinkingSolitonFlow S |
| 39 | model : ThreeDimensionalSolitonModel S flow |
| 40 | |
| 41 | structure ThreeDimensionalClassificationData |
| 42 | (S : GradientShrinkingSolitonData 3 M) where |
| 43 | conclusion : ThreeDimensionalSolitonConclusion S |
| 44 | |
| 45 | end PoincareMT |