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.Global.SelectedCertificate |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Ancestry.Path |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Contradiction.Data |
| 4 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Path.InitialClass |
| 5 | import PoincareLib.Topology.Manifold.ConnectedSum.Reconstruction.Extinction |
| 6 | |
| 7 | /-! |
| 8 | # M71 fixed-initial-class extinction boundary |
| 9 | |
| 10 | The current M67 interface starts at zero. This conditional Poincare-branch |
| 11 | application fixes one actual initial component, metric, and nonzero class before |
| 12 | choosing any |
| 13 | target time. Paths are normalized to that same initial component and cover |
| 14 | the surviving target slice. M67 supplies class coherence; checked M69 adapters |
| 15 | construct the ledger and the full [0,T] comparison input. |
| 16 | |
| 17 | The declared endpoints are simply connected, so Proposition 18.9 is used here |
| 18 | with T1 = 0. The general finite-pi1 late-start and W2 route is an out-of-scope |
| 19 | auxiliary, not an unfilled M71 premise. |
| 20 | |
| 21 | Source: Morgan--Tian Theorem 18.1, Proposition 18.9 and Claims 18.19-18.20, |
| 22 | printed pp. 415, 421-422 and 431-432; see the source-alignment contract in |
| 23 | `reviews/contracts/2026-09-16-m71-fixed-class-round1.md` and the first-empty correction in |
| 24 | `reviews/errata/2026-09-16-m71-first-empty-policy.md`. |
| 25 | -/ |
| 26 | |
| 27 | set_option autoImplicit false |
| 28 | |
| 29 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 30 | |
| 31 | universe u |
| 32 | |
| 33 | namespace PoincareMT |
| 34 | |
| 35 | /-- Actual comparison data for the literal M56 path to a terminal point. |
| 36 | M56 supplies the same selected initial component, including its basepoint, |
| 37 | for every such path. -/ |
| 38 | structure M71ComponentContinuationData |
| 39 | {g₀ : StandardInitialMetric} |
| 40 | (D : RepairedSurgeryFlowData.{u} g₀) |
| 41 | (W : RepairedEventChildWitness D.flow) |
| 42 | (ancestry : RepairedFiniteAncestryData D.flow W) |
| 43 | (B : M59HigherBasepointTransportService) |
| 44 | (T : ℝ) (hT : T ∈ D.flow.time_domain) where |
| 45 | terminal_point : (D.flow.slice T).carrier |
| 46 | K : RepairedComparisonMapData D |
| 47 | C : RepairedComparisonHomotopyData D K |
| 48 | H : RepairedAncestryTransportInput D W |
| 49 | (ancestry.path_for T hT terminal_point) K C |
| 50 | A : RepairedAncestryTransportData D W |
| 51 | (ancestry.path_for T hT terminal_point) K C H B |
| 52 | |
| 53 | /-- The path in a continuation package is the literal ancestry path selected |
| 54 | for its terminal point; no re-based path is admitted at this boundary. -/ |
| 55 | abbrev M71ComponentContinuationData.P |
| 56 | {g₀ : StandardInitialMetric} |
| 57 | {D : RepairedSurgeryFlowData.{u} g₀} |
| 58 | {W : RepairedEventChildWitness D.flow} |
| 59 | {ancestry : RepairedFiniteAncestryData D.flow W} |
| 60 | {B : M59HigherBasepointTransportService} |
| 61 | {T : ℝ} {hT : T ∈ D.flow.time_domain} |
| 62 | (J : M71ComponentContinuationData D W ancestry B T hT) : |
| 63 | RepairedComponentPath D.flow T W := |
| 64 | ancestry.path_for T hT J.terminal_point |
| 65 | |
| 66 | /-- Fixed starting data and finite ancestry for every surviving target slice. |
| 67 | The sole initial class and strict event bounds occur before the target-time |
| 68 | quantifier. Components that disappear need not have a path to every later time. -/ |
| 69 | structure M71FiniteContinuationService |
| 70 | {g₀ : StandardInitialMetric} |
| 71 | (D : RepairedSurgeryFlowData.{u} g₀) |
| 72 | (W : RepairedEventChildWitness D.flow) |
| 73 | (ancestry : RepairedFiniteAncestryData D.flow W) where |
| 74 | identification_system : M59IdentificationSystem.{u} |
| 75 | basepoint_service : M59HigherBasepointTransportService |
| 76 | initial : M67InitialClassData identification_system ancestry.initial_component |
| 77 | (D.flow.metric 0) |
| 78 | hM61 : M61WidthTheory.{u} identification_system.quotient |
| 79 | hM64 : M64ComparisonTheory.{u} |
| 80 | hM65 : M65DeformationTheory hM61.toM61RawWidthCore hM64 |
| 81 | hM58 : RepairedShortLoopTrivialityTheory.{u} |
| 82 | hM66 : M66SmoothTimeTheory hM61.toM61RawWidthCore hM58 hM65 |
| 83 | comparison_bounds : M67EventComparisonBounds D.flow Set.univ |
| 84 | scalar_lower_bound : M67ScalarLowerBound D.flow Set.univ |
| 85 | target_cover : |
| 86 | ∀ (T : ℝ) (hT : T ∈ D.flow.time_domain), |
| 87 | ∃ n : ℕ, |
| 88 | ∃ packages : Fin n → |
| 89 | M71ComponentContinuationData D W ancestry basepoint_service T hT, |
| 90 | ∀ x : (D.flow.slice T).carrier, |
| 91 | ∃ i : Fin n, |
| 92 | x ∈ Set.range |
| 93 | ((packages i).P.component |
| 94 | ⟨T, ⟨D.flow.time_domain_nonnegative hT, le_rfl⟩⟩).inclusion |
| 95 | |
| 96 | /-- Primitive input for the global extinction theorem. The equality identifies |
| 97 | the repaired flow used by M56/M70 with the exact M52 certificate flow. -/ |
| 98 | structure M71GlobalExtinctionInput |
| 99 | {M : Type u} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 100 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 101 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [T3Space M] |
| 102 | [SecondCountableTopology M] [CompactSpace M] |
| 103 | (N : NormalizedInitialMetric (M := M)) |
| 104 | (G : RepairedGlobalFlowData N) where |
| 105 | g₀ : StandardInitialMetric |
| 106 | D : RepairedSurgeryFlowData.{u} g₀ |
| 107 | flow_eq : D.flow = G.certificate.flow |
| 108 | W : RepairedEventChildWitness D.flow |
| 109 | ancestry : RepairedFiniteAncestryData D.flow W |
| 110 | initial_connected : IsConnected (Set.univ : Set M) |
| 111 | initial_group : ∀ x : (D.flow.slice 0).carrier, |
| 112 | IsFiniteFreeProductCyclic (FundamentalGroup (D.flow.slice 0).carrier x) |
| 113 | continuation : M71FiniteContinuationService D W ancestry |
| 114 | |
| 115 | end PoincareMT |