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.Extinction.Global.Definitions |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Ancestry.InitialAnchor |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Ancestry.Poincare |
| 4 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Class.Topology.Providers |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.Ancestry.TransportTheory |
| 6 | |
| 7 | /-! |
| 8 | # M71 continuation packages from the literal M56 and M57 outputs |
| 9 | |
| 10 | The initial component belongs to M56. Each package uses exactly the path |
| 11 | to which M57 applies. The finite cover is reselected by terminal points, |
| 12 | and the same initial metric and class precede every target-time quantifier. |
| 13 | Actual comparison geometry and the same flow's strict event bounds remain |
| 14 | explicit prerequisites; the global bound is retained before target selection. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | noncomputable def m71ContinuationPackage |
| 26 | {g₀ : StandardInitialMetric} {D : RepairedSurgeryFlowData.{u} g₀} |
| 27 | {W : RepairedEventChildWitness D.flow} |
| 28 | (ancestry : RepairedFiniteAncestryData D.flow W) |
| 29 | (B : M59HigherBasepointTransportService.{u}) |
| 30 | (hM57 : RepairedTransportTheory.{u}) |
| 31 | (G40 : RepairedComparisonHomotopyTheory.{u}) |
| 32 | {K : RepairedComparisonMapData D} (C : RepairedComparisonHomotopyData D K) |
| 33 | (hC : RepairedComparisonProviderRealization G40 D C) |
| 34 | (T : ℝ) (hT : T ∈ D.flow.time_domain) (x : (D.flow.slice T).carrier) |
| 35 | (H : RepairedAncestryTransportInput D W (ancestry.path_for T hT x) K C) : |
| 36 | M71ComponentContinuationData D W ancestry B T hT where |
| 37 | terminal_point := x |
| 38 | K := K |
| 39 | C := C |
| 40 | H := H |
| 41 | A := Classical.choice (hM57.transport B G40 D W ancestry C hC T hT x H) |
| 42 | |
| 43 | /- |
| 44 | Natural-language producer statement: if the original compact initial manifold |
| 45 | is connected, then the exact time-zero slice of the M52 certificate flow is |
| 46 | connected. The certificate's initial identification is a diffeomorphism, so |
| 47 | this is a transport of the primitive connectedness fact, not an endpoint |
| 48 | assumption. |
| 49 | |
| 50 | Source: the initial identification in Morgan--Tian's normalized initial-flow |
| 51 | setup (Theorem 15.9, pp. 363--364), used by the time-zero branch of Theorem |
| 52 | 18.1, pp. 415 and 431--432. |
| 53 | -/ |
| 54 | theorem m71InitialSliceConnected |
| 55 | {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 56 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 57 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [T3Space M] |
| 58 | [SecondCountableTopology M] [CompactSpace M] |
| 59 | {N : NormalizedInitialMetric (M := M)} |
| 60 | (G : RepairedGlobalFlowData N) |
| 61 | (hM : IsConnected (Set.univ : Set M)) : |
| 62 | IsConnected (Set.univ : Set (G.certificate.flow.slice 0).carrier) := by |
| 63 | have himage := hM.image G.certificate.initial_identification |
| 64 | G.certificate.initial_identification.continuous.continuousOn |
| 65 | rw [Set.image_univ] at himage |
| 66 | change IsConnected (Set.range (G.certificate.initial_identification : M → _)) at himage |
| 67 | have hrange : Set.range (G.certificate.initial_identification : M → _) = Set.univ := by |
| 68 | apply Set.eq_univ_of_forall |
| 69 | intro y |
| 70 | exact G.certificate.initial_identification.surjective y |
| 71 | rw [hrange] at himage |
| 72 | exact himage |
| 73 | |
| 74 | /- |
| 75 | Natural-language producer statement: simple connectedness of the original |
| 76 | initial manifold is transported to the exact time-zero slice of the M52 |
| 77 | certificate flow through its initial diffeomorphism. This is the topological |
| 78 | instance needed before applying the pointwise M56 group adapter. |
| 79 | |
| 80 | Source: Morgan--Tian Theorem 15.9 initial identification, pp. 363--364, and |
| 81 | the simply connected time-zero branch of Theorem 18.1, pp. 415 and 431--432. |
| 82 | -/ |
| 83 | theorem m71InitialSliceSimplyConnected |
| 84 | {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 85 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 86 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [T3Space M] |
| 87 | [SecondCountableTopology M] [CompactSpace M] [SimplyConnectedSpace M] |
| 88 | {N : NormalizedInitialMetric (M := M)} |
| 89 | (G : RepairedGlobalFlowData N) : |
| 90 | SimplyConnectedSpace (G.certificate.flow.slice 0).carrier := by |
| 91 | exact |
| 92 | (G.certificate.initial_identification.toHomeomorph.symm.toHomotopyEquiv).simplyConnectedSpace |
| 93 | |
| 94 | /- A checked composition of the two primitive adapters above. -/ |
| 95 | set_option linter.style.haveILetI false in |
| 96 | theorem m71InitialGroupsFromOriginal |
| 97 | {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 98 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 99 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [T3Space M] |
| 100 | [SecondCountableTopology M] [CompactSpace M] [SimplyConnectedSpace M] |
| 101 | {N : NormalizedInitialMetric (M := M)} |
| 102 | (G : RepairedGlobalFlowData N) : |
| 103 | ∀ x : (G.certificate.flow.slice 0).carrier, |
| 104 | IsFiniteFreeProductCyclic |
| 105 | (FundamentalGroup (G.certificate.flow.slice 0).carrier x) := by |
| 106 | letI : SimplyConnectedSpace (G.certificate.flow.slice 0).carrier := |
| 107 | m71InitialSliceSimplyConnected G |
| 108 | exact finiteFreeProductCyclic_of_simplyConnected |
| 109 | |
| 110 | theorem m71ContinuationFromTransport |
| 111 | {g₀ : StandardInitialMetric} {D : RepairedSurgeryFlowData.{u} g₀} |
| 112 | {W : RepairedEventChildWitness D.flow} |
| 113 | (ancestry : RepairedFiniteAncestryData D.flow W) |
| 114 | (S : M59IdentificationSystem.{u}) (B : M59HigherBasepointTransportService.{u}) |
| 115 | (initial : M67InitialClassData S ancestry.initial_component (D.flow.metric 0)) |
| 116 | (hM61 : M61WidthTheory.{u} S.quotient) (hM64 : M64ComparisonTheory.{u}) |
| 117 | (hM65 : M65DeformationTheory hM61.toM61RawWidthCore hM64) |
| 118 | (hM58 : RepairedShortLoopTrivialityTheory.{u}) |
| 119 | (hM66 : M66SmoothTimeTheory hM61.toM61RawWidthCore hM58 hM65) |
| 120 | (hM57 : RepairedTransportTheory.{u}) |
| 121 | (G40 : RepairedComparisonHomotopyTheory.{u}) |
| 122 | {K : RepairedComparisonMapData D} (C : RepairedComparisonHomotopyData D K) |
| 123 | (hC : RepairedComparisonProviderRealization G40 D C) |
| 124 | (hcomparison : M67EventComparisonBounds D.flow Set.univ) |
| 125 | (hscalar : M67ScalarLowerBound D.flow Set.univ) |
| 126 | (inputs : ∀ (T : ℝ) (hT : T ∈ D.flow.time_domain) (x : (D.flow.slice T).carrier), |
| 127 | RepairedAncestryTransportInput D W (ancestry.path_for T hT x) K C) : |
| 128 | Nonempty (M71FiniteContinuationService D W ancestry) := by |
| 129 | refine ⟨{ |
| 130 | identification_system := S |
| 131 | basepoint_service := B |
| 132 | initial := initial |
| 133 | hM61 := hM61 |
| 134 | hM64 := hM64 |
| 135 | hM65 := hM65 |
| 136 | hM58 := hM58 |
| 137 | hM66 := hM66 |
| 138 | comparison_bounds := hcomparison |
| 139 | scalar_lower_bound := hscalar |
| 140 | target_cover := ?_ }⟩ |
| 141 | intro T hT |
| 142 | obtain ⟨n, points, hcover⟩ := m56LiteralPathCover ancestry T hT |
| 143 | exact ⟨n, fun i => m71ContinuationPackage ancestry B hM57 G40 C hC T hT |
| 144 | (points i) (inputs T hT (points i)), hcover⟩ |
| 145 | |
| 146 | /- A checked producer adapter for the M59-owned service. The comparison, |
| 147 | width, initial-class data and strict event bounds remain explicit inputs; only the identification |
| 148 | system and coherent basepoint service are selected from the earlier M59 output. |
| 149 | -/ |
| 150 | theorem m71ContinuationFromM59 |
| 151 | {g₀ : StandardInitialMetric} {D : RepairedSurgeryFlowData.{u} g₀} |
| 152 | {W : RepairedEventChildWitness D.flow} |
| 153 | (ancestry : RepairedFiniteAncestryData D.flow W) |
| 154 | (hM59 : M59LoopClassesAndComponentTopologyTheory.{u}) |
| 155 | (initial : M67InitialClassData (Classical.choose hM59) |
| 156 | ancestry.initial_component (D.flow.metric 0)) |
| 157 | (hM61 : M61WidthTheory.{u} (Classical.choose hM59).quotient) |
| 158 | (hM64 : M64ComparisonTheory.{u}) |
| 159 | (hM65 : M65DeformationTheory hM61.toM61RawWidthCore hM64) |
| 160 | (hM58 : RepairedShortLoopTrivialityTheory.{u}) |
| 161 | (hM66 : M66SmoothTimeTheory hM61.toM61RawWidthCore hM58 hM65) |
| 162 | (hM57 : RepairedTransportTheory.{u}) |
| 163 | (G40 : RepairedComparisonHomotopyTheory.{u}) |
| 164 | {K : RepairedComparisonMapData D} |
| 165 | (C : RepairedComparisonHomotopyData D K) |
| 166 | (hC : RepairedComparisonProviderRealization G40 D C) |
| 167 | (hcomparison : M67EventComparisonBounds D.flow Set.univ) |
| 168 | (hscalar : M67ScalarLowerBound D.flow Set.univ) |
| 169 | (inputs : ∀ (T : ℝ) (hT : T ∈ D.flow.time_domain) |
| 170 | (x : (D.flow.slice T).carrier), |
| 171 | RepairedAncestryTransportInput D W |
| 172 | (ancestry.path_for T hT x) K C) : |
| 173 | Nonempty (M71FiniteContinuationService D W ancestry) := by |
| 174 | exact m71ContinuationFromTransport ancestry (Classical.choose hM59) |
| 175 | (Classical.choice (m59BasepointTransport_from_M59 hM59)) initial hM61 hM64 |
| 176 | hM65 hM58 hM66 hM57 G40 C hC hcomparison hscalar inputs |
| 177 | |
| 178 | /-- Assemble M71's global input on the same M52 flow from the constructed |
| 179 | Poincare ancestry and a continuation service on its literal witness/path. |
| 180 | The initial topology comes from the original simply connected manifold. |
| 181 | Comparison geometry remains in the supplied continuation service. -/ |
| 182 | def m71GlobalInputFromPoincareAncestry |
| 183 | {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 184 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 185 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [T3Space M] |
| 186 | [SecondCountableTopology M] [CompactSpace M] [SimplyConnectedSpace M] |
| 187 | {N : NormalizedInitialMetric (M := M)} |
| 188 | (G : RepairedGlobalFlowData N) |
| 189 | (L : RawLocalSurgeryTopologyData G.certificate.flow) |
| 190 | (P : M56PoincareAncestryData (m52CoreFlowData G).flow L) |
| 191 | (Q : M71FiniteContinuationService (m52CoreFlowData G) P.witness P.ancestry) : |
| 192 | M71GlobalExtinctionInput N G where |
| 193 | g₀ := G.certificate.flow.standard_initial |
| 194 | D := m52CoreFlowData G |
| 195 | flow_eq := rfl |
| 196 | W := P.witness |
| 197 | ancestry := P.ancestry |
| 198 | initial_connected := isConnected_univ |
| 199 | initial_group := m71InitialGroupsFromOriginal G |
| 200 | continuation := Q |
| 201 | |
| 202 | end PoincareMT |