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.Ancestry.PoincareInputs |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Global.InitialClass |
| 3 | |
| 4 | /-! |
| 5 | # M71 continuation from the Poincare input producer |
| 6 | |
| 7 | The initial class and all event comparison inputs are produced before the |
| 8 | existing finite-cover application. Each target uses the literal M56 path, |
| 9 | one M59 output, and the same comparison providers. Source: Morgan--Tian |
| 10 | Proposition 15.12 and Theorem 18.1, pp. 365 and 431--432. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | /-- Construct M71's finite continuation service from M02/M53/M57 and the |
| 22 | actual M56 Poincare ancestry with the same flow's strict comparison bounds. |
| 23 | No initial class or event input is assumed. -/ |
| 24 | theorem m71ContinuationFromPoincareAncestry |
| 25 | (P02 : RepairedClosedTopologyProvider.{u}) |
| 26 | (G53 : RepairedSphereSeparationTheory.{u}) |
| 27 | (hM59 : M59LoopClassesAndComponentTopologyTheory.{u}) |
| 28 | {g₀ : StandardInitialMetric} (D : RepairedSurgeryFlowData.{u} g₀) |
| 29 | (L : RawLocalSurgeryTopologyData D.flow) |
| 30 | (P : M56PoincareAncestryData D.flow L) |
| 31 | (hM61 : M61WidthTheory.{u} (Classical.choose hM59).quotient) |
| 32 | (hM64 : M64ComparisonTheory.{u}) |
| 33 | (hM65 : M65DeformationTheory hM61.toM61RawWidthCore hM64) |
| 34 | (hM58 : RepairedShortLoopTrivialityTheory.{u}) |
| 35 | (hM66 : M66SmoothTimeTheory hM61.toM61RawWidthCore hM58 hM65) |
| 36 | (hM57 : RepairedTransportTheory.{u}) |
| 37 | (G40 : RepairedComparisonHomotopyTheory.{u}) |
| 38 | {K : RepairedComparisonMapData D} |
| 39 | (C : RepairedComparisonHomotopyData D K) |
| 40 | (hC : RepairedComparisonProviderRealization G40 D C) |
| 41 | (hcomparison : M67EventComparisonBounds D.flow Set.univ) |
| 42 | (hscalar : M67ScalarLowerBound D.flow Set.univ) : |
| 43 | Nonempty (M71FiniteContinuationService D P.witness P.ancestry) := by |
| 44 | obtain ⟨inputs⟩ := m57PoincareInputsFromTheories hM57 P02 G53 D L P K C |
| 45 | exact m71ContinuationFromInitialTopology P02 hM59 D L P hM61 hM64 hM65 |
| 46 | hM58 hM66 hM57 G40 C hC hcomparison hscalar inputs |
| 47 | |
| 48 | /-- The scalar clock used by M67 is a projection of pinching on the same |
| 49 | global flow. Only times in the actual domain are asserted. Source: |
| 50 | Morgan--Tian Theorem 15.9 and its use in Theorem 18.1, pp. 363--364, 432. -/ |
| 51 | theorem m71ScalarLowerBoundFromGlobalFlow |
| 52 | {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 53 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 54 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [T3Space M] |
| 55 | [SecondCountableTopology M] [CompactSpace M] |
| 56 | {N : NormalizedInitialMetric (M := M)} |
| 57 | (G : RepairedGlobalFlowData N) : |
| 58 | M67ScalarLowerBound G.certificate.flow Set.univ := by |
| 59 | intro t _ ht x |
| 60 | exact (G.certificate.pinched t ht).2.1 x (Set.mem_univ x) |
| 61 | |
| 62 | /- |
| 63 | Natural-language theorem: on the actual M52 flow of a compact simply connected |
| 64 | initial manifold, raw M38 topology, the M02/M53/M54/M55/M56/M57 services, one |
| 65 | M59 output and its M58/M61/M65/M66 width services construct the complete |
| 66 | input of M71. Ancestry, one initial metric/class, event geometry, point paths |
| 67 | and target covers are all produced on this flow. Its actual M40 provider, |
| 68 | realization and strict event bounds are supplied by the comparison calibration. |
| 69 | The absolute scalar bound is projected from this same global flow's pinching. |
| 70 | |
| 71 | Source: Morgan--Tian Proposition 15.12, Definition 18.2 and the Poincare branch |
| 72 | of Theorem 18.1, pp. 365, 419--420 and 431--432. This is checked predecessor |
| 73 | composition; the extinction theorem itself remains the M71 obligation. |
| 74 | -/ |
| 75 | theorem m71GlobalInputFromTheories |
| 76 | (P02 : RepairedClosedTopologyProvider.{u}) |
| 77 | (G53 : RepairedSphereSeparationTheory.{u}) |
| 78 | (G54 : RepairedGroupEffectsTheory.{u}) |
| 79 | (G55 : RepairedChildComponentsTheory.{u}) |
| 80 | (G56 : RepairedAncestryTheory.{u}) |
| 81 | (hM59 : M59LoopClassesAndComponentTopologyTheory.{u}) |
| 82 | (hM61 : M61WidthTheory.{u} (Classical.choose hM59).quotient) |
| 83 | (hM64 : M64ComparisonTheory.{u}) |
| 84 | (hM65 : M65DeformationTheory hM61.toM61RawWidthCore hM64) |
| 85 | (hM58 : RepairedShortLoopTrivialityTheory.{u}) |
| 86 | (hM66 : M66SmoothTimeTheory hM61.toM61RawWidthCore hM58 hM65) |
| 87 | (hM57 : RepairedTransportTheory.{u}) |
| 88 | (G40 : RepairedComparisonHomotopyTheory.{u}) |
| 89 | {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 90 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 91 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [T3Space M] |
| 92 | [SecondCountableTopology M] [CompactSpace M] [SimplyConnectedSpace M] |
| 93 | {N : NormalizedInitialMetric (M := M)} |
| 94 | (G : RepairedGlobalFlowData N) |
| 95 | (L : RawLocalSurgeryTopologyData G.certificate.flow) |
| 96 | {K : RepairedComparisonMapData (m52CoreFlowData G)} |
| 97 | (C : RepairedComparisonHomotopyData (m52CoreFlowData G) K) |
| 98 | (hC : RepairedComparisonProviderRealization G40 (m52CoreFlowData G) C) |
| 99 | (hcomparison : M67EventComparisonBounds G.certificate.flow Set.univ) : |
| 100 | Nonempty (M71GlobalExtinctionInput N G) := by |
| 101 | obtain ⟨P, _hP⟩ := m56PoincareAncestryFromTheories G56 G54 G55 G L |
| 102 | obtain ⟨Q⟩ := m71ContinuationFromPoincareAncestry P02 G53 hM59 |
| 103 | (m52CoreFlowData G) L P hM61 hM64 hM65 hM58 hM66 hM57 G40 C hC |
| 104 | hcomparison (m71ScalarLowerBoundFromGlobalFlow G) |
| 105 | exact ⟨m71GlobalInputFromPoincareAncestry G L P Q⟩ |
| 106 | |
| 107 | end PoincareMT |