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.Generation |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Models |
| 3 | import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Compactness |
| 4 | import PoincareLib.Geometry.RicciFlow.Soliton.TwoDimensional.Roundness |
| 5 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Models |
| 6 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Compact.Homothety |
| 7 | |
| 8 | /-! |
| 9 | # Compact-round classification from the generated flow |
| 10 | |
| 11 | The surface roundness theorem and the generated flow give the complete |
| 12 | frozen M19 shrinking-soliton conclusion. The M20 compact-round branch is |
| 13 | assembled from its static geometric hypotheses. Every time-slice roundness |
| 14 | certificate concerns the flow constructed from the original soliton datum. |
| 15 | Morgan--Tian, Theorem 9.42 and Claim 9.43, pp. 206-208. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | section Surface |
| 26 | |
| 27 | variable {M : Type u} [TopologicalSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) M] |
| 29 | [IsManifold (𝓡 2) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 30 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 31 | |
| 32 | /-- Apply the generated flow to the M19 shrinking-soliton conclusion. |
| 33 | Compactness follows from the original surface soliton hypotheses. -/ |
| 34 | theorem exists_twoDimensionalShrinkingSolitonConclusion_of_round |
| 35 | (S : GradientShrinkingSolitonData 2 M) |
| 36 | (hround : ConstantPositiveSectionalCurvature S.metric S.connection) : |
| 37 | Nonempty (TwoDimensionalShrinkingSolitonConclusion S) := by |
| 38 | obtain ⟨G⟩ := exists_shrinkingSolitonFlow S |
| 39 | exact ⟨⟨G, .compactRound ⟨S.compactSpace, G.round_at_time hround⟩⟩⟩ |
| 40 | |
| 41 | /-- The full M19 shrinking-soliton output from the exact frozen datum. -/ |
| 42 | theorem exists_twoDimensionalShrinkingSolitonConclusion |
| 43 | (S : GradientShrinkingSolitonData 2 M) : |
| 44 | Nonempty (TwoDimensionalShrinkingSolitonConclusion S) := |
| 45 | exists_twoDimensionalShrinkingSolitonConclusion_of_round S S.round |
| 46 | |
| 47 | end Surface |
| 48 | |
| 49 | section ThreeDimensional |
| 50 | |
| 51 | variable {M : Type u} [TopologicalSpace M] |
| 52 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 53 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 54 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 55 | |
| 56 | /-- Apply the generated flow to the compact-round branch of the frozen M20 |
| 57 | classification output, on the same carrier and original metric. -/ |
| 58 | theorem exists_threeDimensionalClassificationData_of_compact_round |
| 59 | (S : GradientShrinkingSolitonData 3 M) (hc : CompactSpace M) |
| 60 | (hround : ConstantPositiveSectionalCurvature S.metric S.connection) : |
| 61 | Nonempty (ThreeDimensionalClassificationData S) := by |
| 62 | obtain ⟨G⟩ := exists_shrinkingSolitonFlow S |
| 63 | exact ⟨⟨⟨G, .compactRound ⟨hc, G.round_at_time_three hround⟩⟩⟩⟩ |
| 64 | |
| 65 | end ThreeDimensional |
| 66 | |
| 67 | end PoincareMT |