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.Width.Transport.BasedEventTransport |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Path.Data |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Class.IdentificationAdapters |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | |
| 7 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 8 | |
| 9 | universe u |
| 10 | |
| 11 | namespace PoincareMT |
| 12 | |
| 13 | /-! The width estimate for one surgery event, with the family rebasing witness |
| 14 | isolated as an explicit input. -/ |
| 15 | theorem m67_event_based_width_transport |
| 16 | {g₀ : StandardInitialMetric} |
| 17 | {D : RepairedSurgeryFlowData.{u} g₀} |
| 18 | {W : RepairedEventChildWitness D.flow} |
| 19 | {T : ℝ} {P : RepairedComponentPath D.flow T W} |
| 20 | {K : RepairedComparisonMapData D} |
| 21 | {C : RepairedComparisonHomotopyData D K} |
| 22 | {H : RepairedAncestryTransportInput D W P K C} |
| 23 | (B : M59HigherBasepointTransportService) |
| 24 | (A : RepairedAncestryTransportData D W P K C H B) |
| 25 | {q : M59SphereQuotient} |
| 26 | {S : Set.Icc (0 : ℝ) T} |
| 27 | {s : Set.Icc (0 : ℝ) T} |
| 28 | {hS : S.1 ∈ D.flow.surgery_times} |
| 29 | {hpost : Nonempty (D.flow.slice S.1).carrier} |
| 30 | {hdelta : D.flow.parameters.delta S.1 < |
| 31 | repairedComparisonDeltaBound D.flow.local_constants} |
| 32 | {hh : D.flow.parameters.h S.1 < |
| 33 | repairedComparisonHeightBound D.flow.local_constants} |
| 34 | {eta : ℝ} (heta : 0 < eta) |
| 35 | (E : M67EventTransport B A q S s hS hpost hdelta hh eta heta) |
| 36 | (hM61 : M61WidthTheory.{u} q) |
| 37 | (hrebased : ∀ (F : ContinuousMap LoopTwoSphere |
| 38 | (C1FreeLoopSpace (M := (P.component s).carrier.carrier))), |
| 39 | M61NullFamily F → |
| 40 | M61Represents q (P.component s).basepoint E.pre.alpha F → |
| 41 | ∃ G : ContinuousMap LoopTwoSphere |
| 42 | (C1FreeLoopSpace (M := (H.event_input S hS hpost).child.carrier.carrier)), |
| 43 | M61NullFamily G ∧ |
| 44 | M61Represents q (H.event_input S hS hpost).child.basepoint |
| 45 | E.post.alpha G ∧ |
| 46 | G.Homotopic (E.loop.map.comp F)) : |
| 47 | m61BasedClassWidth q E.post.metric |
| 48 | (H.event_input S hS hpost).child.basepoint E.post.alpha ≤ |
| 49 | (1 + eta) ^ 2 * |
| 50 | m61BasedClassWidth q E.pre.metric (P.component s).basepoint E.pre.alpha := by |
| 51 | let hpre_props : M61BasedClassWidthProperties q E.pre.metric |
| 52 | (P.component s).basepoint E.pre.alpha := |
| 53 | hM61.based_class (M := (P.component s).carrier.carrier) E.pre.metric |
| 54 | (P.component s).compact |
| 55 | (P.component s).connected (P.component s).basepoint |
| 56 | E.pre.pi_two_trivial E.pre.alpha |
| 57 | let hpost_props : M61BasedClassWidthProperties q E.post.metric |
| 58 | (H.event_input S hS hpost).child.basepoint E.post.alpha := |
| 59 | hM61.based_class |
| 60 | (M := (H.event_input S hS hpost).child.carrier.carrier) E.post.metric |
| 61 | (H.event_input S hS hpost).child.compact |
| 62 | (H.event_input S hS hpost).child.connected |
| 63 | (H.event_input S hS hpost).child.basepoint E.post.pi_two_trivial |
| 64 | E.post.alpha |
| 65 | let hfamily : ∀ F : ContinuousMap LoopTwoSphere |
| 66 | (C1FreeLoopSpace (M := (P.component s).carrier.carrier)), |
| 67 | M61NullFamily F → M61FamilyWidthProperties E.pre.metric F := by |
| 68 | intro F hF |
| 69 | exact hM61.toM61RawWidthCore.family E.pre.metric |
| 70 | (P.component s).compact F hF |
| 71 | let hpostfree : ∀ F : ContinuousMap LoopTwoSphere |
| 72 | (C1FreeLoopSpace (M := (P.component s).carrier.carrier)), |
| 73 | M61NullFamily F → |
| 74 | M61FreeClassWidthProperties E.post.metric (E.loop.map.comp F) := by |
| 75 | intro F hF |
| 76 | exact hM61.toM61RawWidthCore.free_class E.post.metric |
| 77 | (H.event_input S hS hpost).child.compact (E.loop.map.comp F) (by |
| 78 | intro c |
| 79 | exact E.null_transport (F c) (hF c)) |
| 80 | exact m67_based_width_transport_of_rebased_family |
| 81 | (q := q) E.pre.metric E.post.metric (P.component s).basepoint |
| 82 | (H.event_input S hS hpost).child.basepoint |
| 83 | E.pre.alpha E.post.alpha E.f E.loop hpre_props hpost_props hfamily hpostfree |
| 84 | (fun F hF => by |
| 85 | intro c |
| 86 | exact E.null_transport (F c) (hF c)) |
| 87 | hrebased eta heta (fun _F _hF => E.filling_transport) |
| 88 | |
| 89 | /-! The same event estimate with the family bridge stated as a direct |
| 90 | representation predicate on representatives of the pre-surgery class. -/ |
| 91 | theorem m67_event_based_width_transport_of_represented_family |
| 92 | {g₀ : StandardInitialMetric} |
| 93 | {D : RepairedSurgeryFlowData.{u} g₀} |
| 94 | {W : RepairedEventChildWitness D.flow} |
| 95 | {T : ℝ} {P : RepairedComponentPath D.flow T W} |
| 96 | {K : RepairedComparisonMapData D} |
| 97 | {C : RepairedComparisonHomotopyData D K} |
| 98 | {H : RepairedAncestryTransportInput D W P K C} |
| 99 | (B : M59HigherBasepointTransportService) |
| 100 | (A : RepairedAncestryTransportData D W P K C H B) |
| 101 | (Syst : M59IdentificationSystem.{u}) |
| 102 | {S : Set.Icc (0 : ℝ) T} |
| 103 | {s : Set.Icc (0 : ℝ) T} |
| 104 | {hS : S.1 ∈ D.flow.surgery_times} |
| 105 | {hpost : Nonempty (D.flow.slice S.1).carrier} |
| 106 | {hdelta : D.flow.parameters.delta S.1 < |
| 107 | repairedComparisonDeltaBound D.flow.local_constants} |
| 108 | {hh : D.flow.parameters.h S.1 < |
| 109 | repairedComparisonHeightBound D.flow.local_constants} |
| 110 | {eta : ℝ} (heta : 0 < eta) |
| 111 | (E : M67EventTransport B A Syst.quotient S s hS hpost hdelta hh eta heta) |
| 112 | (hM61 : M61WidthTheory.{u} Syst.quotient) |
| 113 | (hrepresented : ∀ (F : ContinuousMap LoopTwoSphere |
| 114 | (C1FreeLoopSpace (M := (P.component s).carrier.carrier))), |
| 115 | M61NullFamily F → |
| 116 | M61Represents Syst.quotient (P.component s).basepoint E.pre.alpha F → |
| 117 | M61Represents Syst.quotient |
| 118 | (H.event_input S hS hpost).child.basepoint E.post.alpha |
| 119 | (E.loop.map.comp F)) : |
| 120 | m61BasedClassWidth Syst.quotient E.post.metric |
| 121 | (H.event_input S hS hpost).child.basepoint E.post.alpha ≤ |
| 122 | (1 + eta) ^ 2 * |
| 123 | m61BasedClassWidth Syst.quotient E.pre.metric |
| 124 | (P.component s).basepoint E.pre.alpha := by |
| 125 | apply m67_event_based_width_transport B A heta E hM61 |
| 126 | intro F hF hFrep |
| 127 | refine ⟨E.post.family, E.post.family_null, E.post.represents, ?_⟩ |
| 128 | exact (m61Represents_iff_homotopic |
| 129 | (Syst.core (H.event_input S hS hpost).child.compact |
| 130 | (H.event_input S hS hpost).child.connected |
| 131 | (H.event_input S hS hpost).child.basepoint E.post.pi_two_trivial) |
| 132 | E.post.represents (E.loop.map.comp F)).mp (hrepresented F hF hFrep) |
| 133 | |
| 134 | /-- The surgery-event width estimate supplied by the reviewed event transport |
| 135 | contract, including its family-level representation transport. -/ |
| 136 | theorem m67_event_based_width_transport_of_event |
| 137 | {g₀ : StandardInitialMetric} |
| 138 | {D : RepairedSurgeryFlowData.{u} g₀} |
| 139 | {W : RepairedEventChildWitness D.flow} |
| 140 | {T : ℝ} {P : RepairedComponentPath D.flow T W} |
| 141 | {K : RepairedComparisonMapData D} |
| 142 | {C : RepairedComparisonHomotopyData D K} |
| 143 | {H : RepairedAncestryTransportInput D W P K C} |
| 144 | (B : M59HigherBasepointTransportService) |
| 145 | (A : RepairedAncestryTransportData D W P K C H B) |
| 146 | (Syst : M59IdentificationSystem.{u}) |
| 147 | {S : Set.Icc (0 : ℝ) T} |
| 148 | {s : Set.Icc (0 : ℝ) T} |
| 149 | {hS : S.1 ∈ D.flow.surgery_times} |
| 150 | {hpost : Nonempty (D.flow.slice S.1).carrier} |
| 151 | {hdelta : D.flow.parameters.delta S.1 < |
| 152 | repairedComparisonDeltaBound D.flow.local_constants} |
| 153 | {hh : D.flow.parameters.h S.1 < |
| 154 | repairedComparisonHeightBound D.flow.local_constants} |
| 155 | {eta : ℝ} (heta : 0 < eta) |
| 156 | (E : M67EventTransport B A Syst.quotient S s hS hpost hdelta hh eta heta) |
| 157 | (hM61 : M61WidthTheory.{u} Syst.quotient) : |
| 158 | m61BasedClassWidth Syst.quotient E.post.metric |
| 159 | (H.event_input S hS hpost).child.basepoint E.post.alpha ≤ |
| 160 | (1 + eta) ^ 2 * |
| 161 | m61BasedClassWidth Syst.quotient E.pre.metric |
| 162 | (P.component s).basepoint E.pre.alpha := by |
| 163 | exact m67_event_based_width_transport_of_represented_family B A Syst heta E |
| 164 | hM61 E.represents_transport |
| 165 | |
| 166 | end PoincareMT |