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.Assembly.Estimates |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Transport.EventBasedWidth |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Transport.Chronology.Preterminal |
| 4 | |
| 5 | /-! The surgery estimate in Morgan--Tian Claim 18.21, pp. 431--432, |
| 6 | assembled on a uniform left neighborhood of each actual event. -/ |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | |
| 10 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 11 | |
| 12 | universe u |
| 13 | |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | variable |
| 17 | {g₀ : StandardInitialMetric} |
| 18 | {D : RepairedSurgeryFlowData.{u} g₀} |
| 19 | {W : RepairedEventChildWitness D.flow} |
| 20 | {T : ℝ} {P : RepairedComponentPath D.flow T W} |
| 21 | {K : RepairedComparisonMapData D} |
| 22 | {C : RepairedComparisonHomotopyData D K} |
| 23 | {H : RepairedAncestryTransportInput D W P K C} |
| 24 | {B : M59HigherBasepointTransportService} |
| 25 | {A : RepairedAncestryTransportData D W P K C H B} |
| 26 | {hM61 : M61RawWidthCore.{u}} |
| 27 | {hM64 : M64ComparisonTheory.{u}} |
| 28 | {hM65 : M65DeformationTheory hM61 hM64} |
| 29 | (Syst : M59IdentificationSystem.{u}) |
| 30 | (X : M67ChangingWidthPath D W P K C H B A Syst.quotient hM61 hM65) |
| 31 | (hwidth : M61WidthTheory.{u} Syst.quotient) |
| 32 | (hcomparison : M67EventComparisonBounds D.flow (Set.Icc 0 T)) |
| 33 | (hwidth_eq : ∀ (s : Set.Icc (0 : ℝ) T) |
| 34 | (hs : s.1 ∈ D.flow.surgery_times) |
| 35 | (hpost : Nonempty (D.flow.slice s.1).carrier) |
| 36 | (hd : D.flow.parameters.delta s.1 < repairedComparisonDeltaBound D.flow.local_constants) |
| 37 | (hh : D.flow.parameters.h s.1 < repairedComparisonHeightBound D.flow.local_constants) |
| 38 | (eta : ℝ) (heta : 0 < eta) (t : Set.Icc (0 : ℝ) T) |
| 39 | (hnear : s.1 - (X.event_transport s hs hpost hd hh eta heta).delta < t.1) |
| 40 | (hbefore : t.1 < s.1) |
| 41 | (hafter : (D.flow.event s.1 hs).tMinus < t.1) |
| 42 | (hJ : Disjoint D.flow.surgery_times (Set.Ioc (D.flow.event s.1 hs).tMinus t.1)), |
| 43 | let E := (X.event_transport s hs hpost hd hh eta heta).transport |
| 44 | t hnear hbefore hafter hJ |
| 45 | m61BasedClassWidth Syst.quotient E.pre.metric (P.component t).basepoint E.pre.alpha = |
| 46 | X.width t ∧ |
| 47 | m61BasedClassWidth Syst.quotient E.post.metric |
| 48 | (H.event_input s hs hpost).child.basepoint E.post.alpha = X.width s) |
| 49 | |
| 50 | include hwidth hcomparison hwidth_eq |
| 51 | |
| 52 | /-- The event comparison holds on a genuine left neighborhood. Its radius |
| 53 | also places every time inside the actual surgery-free preterminal interval. -/ |
| 54 | theorem m67_event_factor_bounds |
| 55 | (s : Set.Icc (0 : ℝ) T) (hs : s.1 ∈ (↑P.surgery_times : Set ℝ)) |
| 56 | (eta : ℝ) (heta : 0 < eta) : |
| 57 | ∃ delta : ℝ, 0 < delta ∧ |
| 58 | ∀ t : Set.Icc (0 : ℝ) T, s.1 - delta < t.1 → t.1 < s.1 → |
| 59 | X.width s ≤ (1 + eta) ^ 2 * X.width t := by |
| 60 | have hsFlow : s.1 ∈ D.flow.surgery_times := by |
| 61 | rw [P.surgery_times_eq] at hs |
| 62 | exact hs.1 |
| 63 | let hpost : Nonempty (D.flow.slice s.1).carrier := |
| 64 | ⟨(P.component s).inclusion (P.component s).basepoint⟩ |
| 65 | obtain ⟨hd, hh⟩ := hcomparison s.1 s.2 hsFlow |
| 66 | let family := X.event_transport s hsFlow hpost hd hh eta heta |
| 67 | let before := (D.flow.event s.1 hsFlow).tMinus |
| 68 | have hbefore : before < s.1 := (D.flow.event s.1 hsFlow).tMinus_lt |
| 69 | let delta := min family.delta (s.1 - before) |
| 70 | have hdelta : 0 < delta := lt_min family.delta_pos (sub_pos.mpr hbefore) |
| 71 | refine ⟨delta, hdelta, ?_⟩ |
| 72 | intro t hnear hlt |
| 73 | have hnear' : s.1 - family.delta < t.1 := by |
| 74 | have h := min_le_left family.delta (s.1 - before) |
| 75 | dsimp only [delta] at hnear |
| 76 | linarith |
| 77 | have hafter : before < t.1 := by |
| 78 | have h := min_le_right family.delta (s.1 - before) |
| 79 | dsimp only [delta] at hnear |
| 80 | linarith |
| 81 | have hfree := m67_event_preterminal_surgery_free D.flow hsFlow |
| 82 | have hJ : Disjoint D.flow.surgery_times (Set.Ioc before t.1) := by |
| 83 | apply hfree.mono_right |
| 84 | intro u hu |
| 85 | exact ⟨hu.1, hu.2.trans_lt hlt⟩ |
| 86 | let E := family.transport t hnear' hlt hafter hJ |
| 87 | have hbound := m67_event_based_width_transport_of_event B A Syst heta E hwidth |
| 88 | obtain ⟨hpre, hpost'⟩ := hwidth_eq s hsFlow hpost hd hh eta heta t hnear' hlt hafter hJ |
| 89 | change m61BasedClassWidth Syst.quotient E.pre.metric (P.component t).basepoint |
| 90 | E.pre.alpha = X.width t at hpre |
| 91 | change m61BasedClassWidth Syst.quotient E.post.metric |
| 92 | (H.event_input s hsFlow hpost).child.basepoint E.post.alpha = X.width s at hpost' |
| 93 | rwa [hpre, hpost'] at hbound |
| 94 | |
| 95 | /-- Calibrated surgery transports and the supplied ordinary M66 pieces |
| 96 | complete every analytic clause of the changing-width conclusion. -/ |
| 97 | theorem m67_conclusion_of_event_width_calibration : M67Conclusion X := |
| 98 | m67_conclusion_of_event_factor_bounds X hwidth |
| 99 | (m67_event_factor_bounds Syst X hwidth hcomparison hwidth_eq) |
| 100 | |
| 101 | end PoincareMT |