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.Surgery.StandardCap.Existence.Predecessors.Classification |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.Harnack |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.PointedCompactness |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.ReducedVolume |
| 5 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.Predecessors |
| 6 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Structure |
| 7 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Predecessors.AsymptoticSoliton |
| 8 | |
| 9 | /-! |
| 10 | # M20 providers from the earlier milestone theorems |
| 11 | |
| 12 | The M16 whole-past bound supplies the exact finite-window hypotheses of |
| 13 | M08--M10. Apply M18 separately in dimensions two and three, then supply M19 |
| 14 | before constructing M20's predecessor record. Every construction stays in a |
| 15 | theorem proof; no admitted-dependent data definition or new admission is used. |
| 16 | |
| 17 | The natural-language application derivation and source boundaries are in |
| 18 | `reviews/contracts/2026-09-15-m20-provider-audit.md`. |
| 19 | -/ |
| 20 | |
| 21 | set_option autoImplicit false |
| 22 | |
| 23 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT |
| 28 | |
| 29 | /-- Supply every M18 service on the given ancient solution and its actual flow. -/ |
| 30 | theorem m20AsymptoticPredecessors |
| 31 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 33 | [IsManifold (𝓡 n) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 34 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 35 | (K : AncientKappaSolution n M) : AncientAsymptoticSolitonPredecessors K := by |
| 36 | obtain ⟨D⟩ := ancientKappaStructuralConsequences n ricciFlowCurvatureTheory |
| 37 | differentialHarnackAncientTheory_from_M04 (generalizedParabolicRescaling_from_M12 n) |
| 38 | have hzero : (0 : ℝ) ∈ Set.Iic 0 := show (0 : ℝ) ≤ 0 from le_rfl |
| 39 | have hwindow (R : ℝ) : Set.Icc (0 - R) 0 ⊆ Set.Iic 0 := |
| 40 | fun _ ht => ht.2 |
| 41 | have hcurvature (R : ℝ) : |
| 42 | CompleteBoundedCurvatureOn K.flow (Set.Icc (0 - R) 0) := by |
| 43 | obtain ⟨C, hC, hbound⟩ := (D.structural M K).whole_past_bound 0 le_rfl |
| 44 | exact ⟨fun t ht => K.complete t ht.2, |
| 45 | C, hC.le, fun t ht x => hbound t ht.2 x⟩ |
| 46 | refine { |
| 47 | structural := ⟨D⟩ |
| 48 | harnack := differentialHarnackAncientTheory_from_M04 |
| 49 | pointed_compactness := ?_ |
| 50 | l_geometry := ?_ |
| 51 | reduced_length := ?_ |
| 52 | reduced_volume := ?_ |
| 53 | } |
| 54 | · intro T' T _ _ H |
| 55 | exact pointedRicciFlowCompactness_from_M04 H |
| 56 | · intro R hR |
| 57 | exact lGeodesicExistenceAndVariation_from_M04 K.flow 0 R hzero hR |
| 58 | (hwindow R) (hcurvature R) |
| 59 | · intro R hR |
| 60 | exact reducedLengthDifferentialInequalities_from_M04_M08 K.flow 0 R hzero hR |
| 61 | (hwindow R) (hcurvature R) |
| 62 | · intro R hR |
| 63 | exact reducedVolumeMonotonicity_from_M08_M09 K.flow 0 R hzero hR |
| 64 | (hwindow R) (hcurvature R) |
| 65 | |
| 66 | /-- Apply M18 to each exact input sequence in the specified dimension. -/ |
| 67 | theorem m20AsymptoticSolitonProvider (n : ℕ) : |
| 68 | AncientAsymptoticSolitonTheory.{u} n := by |
| 69 | apply ancientAsymptoticSolitonTheory_from_predecessors n |
| 70 | intro M _ _ _ _ _ _ _ _ _ K |
| 71 | exact m20AsymptoticPredecessors K |
| 72 | |
| 73 | /-- M19 receives dimension-two compactness and the actual dimension-two M18 service. -/ |
| 74 | theorem m20TwoDimensionalPredecessors |
| 75 | {N : Type u} [TopologicalSpace N] |
| 76 | [ChartedSpace (EuclideanSpace ℝ (Fin 2)) N] |
| 77 | [IsManifold (𝓡 2) ∞ N] [MeasurableSpace N] [BorelSpace N] |
| 78 | [T2Space N] [T3Space N] [SecondCountableTopology N] [ConnectedSpace N] : |
| 79 | TwoDimensionalClassificationPredecessors (M := N) := by |
| 80 | refine ⟨?_, ?_⟩ |
| 81 | · intro T' T _ _ H |
| 82 | exact pointedRicciFlowCompactness_from_M04 H |
| 83 | · intro K S |
| 84 | exact (m20AsymptoticSolitonProvider 2).limits N K S |
| 85 | |
| 86 | /-- Construct all six M20 services by applying their earlier producing theorems. -/ |
| 87 | theorem m20ClassificationPredecessors : |
| 88 | ThreeDimensionalClassificationPredecessors.{u} := by |
| 89 | refine { |
| 90 | local_flow := m20CompactLocalFlowProvider_from_M03 |
| 91 | curvature := ricciFlowCurvatureTheory |
| 92 | harnack := differentialHarnackAncientTheory_from_M04 |
| 93 | pointed_compactness := ?_ |
| 94 | m18 := m20AsymptoticSolitonProvider 3 |
| 95 | two_dimensional := ?_ |
| 96 | } |
| 97 | · intro n T' T _ _ H |
| 98 | exact pointedRicciFlowCompactness_from_M04 H |
| 99 | · apply m20TwoDimensionalProvider_from_M19 |
| 100 | intro N _ _ _ _ _ _ _ _ _ |
| 101 | exact m20TwoDimensionalPredecessors (N := N) |
| 102 | |
| 103 | /-- M20's existing full conclusion, with every predecessor supplied. -/ |
| 104 | theorem m20ClassificationFromMilestones |
| 105 | {M : Type u} [TopologicalSpace M] |
| 106 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 107 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 108 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] : |
| 109 | ThreeDimensionalClassificationTheory (M := M) := |
| 110 | threeDimensionalAncientAndShrinkingSolitonClassification m20ClassificationPredecessors |
| 111 | |
| 112 | end PoincareMT |