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.ThreeDimensional.Compact.Classification |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Noncompact.Rigidity.Contradiction |
| 3 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Splitting.Global.Realization |
| 4 | |
| 5 | /-! |
| 6 | # Classification of three-dimensional shrinking solitons |
| 7 | |
| 8 | The compact and null-curvature branches classify every supplied shrinking |
| 9 | flow. Flow generation then supplies the exact static field of the frozen M20 |
| 10 | classification, using only its original predecessor services. |
| 11 | |
| 12 | Morgan--Tian, Definition 9.41 and Theorem 9.42, pp. 206--208. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | variable {M : Type u} [TopologicalSpace M] |
| 24 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 25 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 26 | [SecondCountableTopology M] [ConnectedSpace M] |
| 27 | |
| 28 | /-- The frozen model alternatives hold for the entire supplied shrinking flow. -/ |
| 29 | theorem ShrinkingSolitonFlow.threeDimensionalSolitonModel |
| 30 | {S : GradientShrinkingSolitonData 3 M} (G : ShrinkingSolitonFlow S) |
| 31 | (hP : ThreeDimensionalClassificationPredecessors.{u}) : |
| 32 | Nonempty (ThreeDimensionalSolitonModel S G) := by |
| 33 | classical |
| 34 | by_cases hc : CompactSpace M |
| 35 | · letI : CompactSpace M := hc |
| 36 | obtain ⟨C⟩ := G.compactRoundModel hP.curvature |
| 37 | exact ⟨.compactRound C⟩ |
| 38 | · obtain ⟨x, v, w, hv, hw, hvw, hzero⟩ := S.exists_null_plane_of_noncompact hP hc |
| 39 | exact global_model_of_splitting_obligation |
| 40 | (G.globalSplittingObligation_of_null_plane hP x v w hv hw hvw hzero) |
| 41 | |
| 42 | /-- The static classification field of M20, with its original hypotheses. -/ |
| 43 | theorem GradientShrinkingSolitonData.threeDimensionalClassificationData |
| 44 | (S : GradientShrinkingSolitonData 3 M) |
| 45 | (hP : ThreeDimensionalClassificationPredecessors.{u}) : |
| 46 | Nonempty (ThreeDimensionalClassificationData S) := by |
| 47 | obtain ⟨G⟩ := exists_shrinkingSolitonFlow S |
| 48 | obtain ⟨model⟩ := G.threeDimensionalSolitonModel hP |
| 49 | exact ⟨⟨⟨G, model⟩⟩⟩ |
| 50 | |
| 51 | end PoincareMT |