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.Asymptotic.Classification |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Asymptotic.Compact |
| 3 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Asymptotic.Curvature.Bounded |
| 4 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Classification.Static |
| 5 | |
| 6 | /-! |
| 7 | # Assembly of the three-dimensional classification theory |
| 8 | |
| 9 | The actual-limit curvature bound closes the specified-sequence branch. Together |
| 10 | with the static soliton classification it gives the exact frozen M20 theorem |
| 11 | from the original predecessor services. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 24 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 25 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 26 | |
| 27 | variable {M : Type u} [TopologicalSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 29 | [IsManifold (𝓡 3) ∞ M] |
| 30 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 31 | [SecondCountableTopology M] [ConnectedSpace M] |
| 32 | |
| 33 | namespace AncientAsymptoticSolitonLimitData |
| 34 | |
| 35 | /-- The compact/noncompact split reduces an actual M18 limit to its |
| 36 | classification certificate once the noncompact curvature-bound producer is |
| 37 | available. -/ |
| 38 | theorem classificationCertificate_of_compact_or_bound |
| 39 | (hP : ThreeDimensionalClassificationPredecessors.{u}) |
| 40 | {K : AncientKappaSolution 3 M} {S : AncientRescalingSequence K} |
| 41 | (L : AncientAsymptoticSolitonLimitData S) |
| 42 | (hbound : ∀ t : ℝ, t < 0 → ∃ B : ℝ, 0 ≤ B ∧ |
| 43 | ∀ x : L.convergence.limit.carrier.carrier, |
| 44 | |(L.convergence.limit.flow.connection t).curvatureTensorNorm x| ≤ B) : |
| 45 | ThreeDimensionalAsymptoticClassificationCertificate S L := by |
| 46 | classical |
| 47 | by_cases hc : CompactSpace L.convergence.limit.carrier.carrier |
| 48 | · letI : CompactSpace L.convergence.limit.carrier.carrier := hc |
| 49 | exact L.classificationCertificate_of_compact hP.curvature |
| 50 | · exact L.classificationCertificate_of_bounded_curvature hP hbound |
| 51 | |
| 52 | end AncientAsymptoticSolitonLimitData |
| 53 | |
| 54 | /-- A bound on every specified actual M18 limit assembles the asymptotic |
| 55 | classification theory for a fixed ancient kappa-solution. -/ |
| 56 | theorem AncientKappaSolution.threeDimensionalAsymptoticClassification |
| 57 | (hP : ThreeDimensionalClassificationPredecessors.{u}) |
| 58 | (K : AncientKappaSolution 3 M) |
| 59 | (hbound : ∀ (S : AncientRescalingSequence K) |
| 60 | (L : AncientAsymptoticSolitonLimitData S) (t : ℝ), t < 0 → |
| 61 | ∃ B : ℝ, 0 ≤ B ∧ |
| 62 | ∀ x : L.convergence.limit.carrier.carrier, |
| 63 | |(L.convergence.limit.flow.connection t).curvatureTensorNorm x| ≤ B) : |
| 64 | Nonempty (ThreeDimensionalAsymptoticClassificationTheory K) := by |
| 65 | refine ⟨{ classify := ?_ }⟩ |
| 66 | intro S |
| 67 | obtain ⟨L⟩ := hP.m18.limits M K S |
| 68 | exact ⟨L, L.classificationCertificate_of_compact_or_bound hP (hbound S L)⟩ |
| 69 | |
| 70 | /-- Final M20 structure assembly from the static theorem and an asymptotic |
| 71 | classification producer. -/ |
| 72 | theorem threeDimensionalClassificationTheory_of_asymptotic |
| 73 | (hP : ThreeDimensionalClassificationPredecessors.{u}) |
| 74 | (hasymptotic : ∀ K : AncientKappaSolution 3 M, |
| 75 | Nonempty (ThreeDimensionalAsymptoticClassificationTheory K)) : |
| 76 | ThreeDimensionalClassificationTheory (M := M) := by |
| 77 | refine { classify := ?_, asymptotic_classify := hasymptotic } |
| 78 | intro S |
| 79 | exact GradientShrinkingSolitonData.threeDimensionalClassificationData (M := M) S hP |
| 80 | |
| 81 | /-- The frozen M20 classification, including the actual limit of each specified |
| 82 | ancient rescaling sequence and equality of its entire classified flow. -/ |
| 83 | theorem threeDimensionalAncientAndShrinkingSolitonClassification |
| 84 | (P : ThreeDimensionalClassificationPredecessors.{u}) : |
| 85 | ThreeDimensionalClassificationTheory (M := M) := by |
| 86 | apply threeDimensionalClassificationTheory_of_asymptotic P |
| 87 | intro K |
| 88 | apply K.threeDimensionalAsymptoticClassification P |
| 89 | intro S L t ht |
| 90 | exact L.bounded_curvature_threeDimensional P t ht |
| 91 | |
| 92 | end PoincareMT |