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.Comparison.ComponentMetric |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Path.InitialClassAdapters |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Class.Topology.Providers |
| 4 | import PoincareLib.Geometry.RicciFlow.Extinction.Global.ContinuationInputs |
| 5 | |
| 6 | /-! |
| 7 | # The fixed initial class on the actual surgery flow |
| 8 | |
| 9 | Apply M02 on M56's one initial component, restrict the actual time-zero |
| 10 | metric, and use one M59 output for both loop identification and basepoint |
| 11 | transport. This construction precedes every target-time choice in M71. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /- |
| 23 | Natural-language theorem: on a surgery flow with the Poincare ancestry |
| 24 | produced by M56, the M02 topology and M59 identification services construct |
| 25 | one initial width class on the literal fixed initial component. Its metric |
| 26 | is the pullback of the flow metric at zero, its second homotopy group is |
| 27 | trivial, and its third class is nonzero at that component's selected point. |
| 28 | No point equality, component metric, or nonzero class is assumed. |
| 29 | |
| 30 | Source: Morgan--Tian Proposition 18.18 and Theorem 18.1, pp. 431--432, |
| 31 | specialized to the simply connected initial manifold; see |
| 32 | `reviews/contracts/2026-09-17-m67-selected-basepoint-round1.md`. |
| 33 | -/ |
| 34 | set_option linter.style.haveILetI false in |
| 35 | theorem m71InitialClassFromAncestry |
| 36 | (P02 : RepairedClosedTopologyProvider.{u}) |
| 37 | (hM59 : M59LoopClassesAndComponentTopologyTheory.{u}) |
| 38 | (F : SurgeryFlowData.{u}) (L : RawLocalSurgeryTopologyData F) |
| 39 | (P : M56PoincareAncestryData F L) : |
| 40 | Nonempty (M67InitialClassData (Classical.choose hM59) |
| 41 | P.ancestry.initial_component (F.metric 0)) := by |
| 42 | let C := P.ancestry.initial_component |
| 43 | letI : SimplyConnectedSpace C.carrier.carrier := |
| 44 | P.component_simply_connected 0 F.zero_mem C |
| 45 | letI : CompactSpace C.carrier.carrier := ⟨C.compact⟩ |
| 46 | obtain ⟨topology⟩ := P02 (M := C.carrier.carrier) |
| 47 | obtain ⟨metric, hpullback⟩ := m39ComponentMetric C (F.metric 0) |
| 48 | exact m67InitialClassFromM02AtSelectedPoint (Classical.choose hM59) |
| 49 | (Classical.choice (m59BasepointTransport_from_M59 hM59)) |
| 50 | C (F.metric 0) metric hpullback topology |
| 51 | |
| 52 | /-- Supply the existing M02 theorem while retaining the caller's one M59 |
| 53 | output and the actual M56 component and time-zero flow metric. -/ |
| 54 | theorem m71InitialClassFromM02M59 |
| 55 | (hM59 : M59LoopClassesAndComponentTopologyTheory.{u}) |
| 56 | (F : SurgeryFlowData.{u}) (L : RawLocalSurgeryTopologyData F) |
| 57 | (P : M56PoincareAncestryData F L) : |
| 58 | Nonempty (M67InitialClassData (Classical.choose hM59) |
| 59 | P.ancestry.initial_component (F.metric 0)) := |
| 60 | m71InitialClassFromAncestry m59ClosedTopologyProvider_from_M02 hM59 F L P |
| 61 | |
| 62 | /-- Construct the fixed initial class before assembling target covers on |
| 63 | the same M56 paths. Only the still-separate comparison inputs are supplied; |
| 64 | their strict event bounds are retained on that flow. Neither initial width |
| 65 | data nor an extinction premise is requested. -/ |
| 66 | theorem m71ContinuationFromInitialTopology |
| 67 | (P02 : RepairedClosedTopologyProvider.{u}) |
| 68 | (hM59 : M59LoopClassesAndComponentTopologyTheory.{u}) |
| 69 | {g₀ : StandardInitialMetric} (D : RepairedSurgeryFlowData.{u} g₀) |
| 70 | (L : RawLocalSurgeryTopologyData D.flow) |
| 71 | (P : M56PoincareAncestryData D.flow L) |
| 72 | (hM61 : M61WidthTheory.{u} (Classical.choose hM59).quotient) |
| 73 | (hM64 : M64ComparisonTheory.{u}) |
| 74 | (hM65 : M65DeformationTheory hM61.toM61RawWidthCore hM64) |
| 75 | (hM58 : RepairedShortLoopTrivialityTheory.{u}) |
| 76 | (hM66 : M66SmoothTimeTheory hM61.toM61RawWidthCore hM58 hM65) |
| 77 | (hM57 : RepairedTransportTheory.{u}) |
| 78 | (G40 : RepairedComparisonHomotopyTheory.{u}) |
| 79 | {K : RepairedComparisonMapData D} |
| 80 | (C : RepairedComparisonHomotopyData D K) |
| 81 | (hC : RepairedComparisonProviderRealization G40 D C) |
| 82 | (hcomparison : M67EventComparisonBounds D.flow Set.univ) |
| 83 | (hscalar : M67ScalarLowerBound D.flow Set.univ) |
| 84 | (inputs : ∀ (T : ℝ) (hT : T ∈ D.flow.time_domain) |
| 85 | (x : (D.flow.slice T).carrier), |
| 86 | RepairedAncestryTransportInput D P.witness |
| 87 | (P.ancestry.path_for T hT x) K C) : |
| 88 | Nonempty (M71FiniteContinuationService D P.witness P.ancestry) := by |
| 89 | obtain ⟨initial⟩ := m71InitialClassFromAncestry P02 hM59 D.flow L P |
| 90 | exact m71ContinuationFromM59 P.ancestry hM59 initial hM61 hM64 hM65 hM58 hM66 |
| 91 | hM57 G40 C hC hcomparison hscalar inputs |
| 92 | |
| 93 | end PoincareMT |