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.Events |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Transport.Assembly.Path |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Transport.Assembly.EventEstimate |
| 4 | |
| 5 | /-! |
| 6 | # Surgery-time width transport |
| 7 | |
| 8 | The specified initial class is transported along the finite component |
| 9 | chronology. Actual regular slabs supply the M66 estimates, and smooth M57 |
| 10 | approximants with explicit filling transport supply the surgery lower limit. |
| 11 | The post-event width is right continuous without assuming left continuity. |
| 12 | |
| 13 | Morgan--Tian, Proposition 18.18 and Claims 18.21--18.22, pp. 431--432. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | theorem m67_surgery_width_theory : M67SurgeryWidthTheory.{u} := by |
| 25 | intro g₀ D W T P hcomparison hscalar K C H B A S initial hM61 hM64 hM65 hM58 hM66 |
| 26 | classical |
| 27 | obtain ⟨cls⟩ := m67_class_path_exists H B A S initial hcomparison |
| 28 | let slice := m67SliceFamily S initial cls.datum |
| 29 | have hambient := m67SliceFamily_ambient_metric S initial cls.datum |
| 30 | have hclass : ∀ (a b : Set.Icc (0 : ℝ) T) (hab : a.1 < b.1) |
| 31 | (hJ : Disjoint D.flow.surgery_times (Set.Ioc a.1 b.1)), |
| 32 | M67AlphaTransport B (P.component a).basepoint (P.component b).basepoint |
| 33 | (repairedDiffeomorphContinuousMap (P.regular_transport a b hab hJ)) |
| 34 | (slice a).alpha (slice b).alpha := by |
| 35 | intro a b hab hJ |
| 36 | change M67AlphaTransport B _ _ _ |
| 37 | (m67SliceFamily S initial cls.datum a).alpha |
| 38 | (m67SliceFamily S initial cls.datum b).alpha |
| 39 | rw [cls.slice_alpha a, cls.slice_alpha b] |
| 40 | exact cls.regular_transport a b hab hJ |
| 41 | let X := m67ChangingWidthPathOfSlices D W P K C H B A S hM61 hM65 hM58 hM66 |
| 42 | hscalar slice hambient hclass (m67ClassPathEventFamily cls) |
| 43 | refine ⟨⟨X, { |
| 44 | estimate := ?_ |
| 45 | class_coherence := ?_ |
| 46 | initial_metric_eq := ?_ |
| 47 | initial_class_eq := ?_ |
| 48 | identification_eq := ?_ }⟩⟩ |
| 49 | · apply m67_conclusion_of_event_width_calibration S X hM61 hcomparison |
| 50 | intro t ht hp hd hh eta heta s hnear hbefore hafter hJ |
| 51 | obtain ⟨hpre, hpost⟩ := m67ClassPathEventFamily_slices cls t ht hp hd hh eta heta |
| 52 | s hnear hbefore hafter hJ |
| 53 | constructor |
| 54 | · change m61BasedClassWidth S.quotient |
| 55 | ((m67ClassPathEventFamily cls t ht hp hd hh eta heta).transport |
| 56 | s hnear hbefore hafter hJ).pre.metric (P.component s).basepoint |
| 57 | ((m67ClassPathEventFamily cls t ht hp hd hh eta heta).transport |
| 58 | s hnear hbefore hafter hJ).pre.alpha = _ |
| 59 | rw [hpre] |
| 60 | rfl |
| 61 | · change m61BasedClassWidth S.quotient |
| 62 | ((m67ClassPathEventFamily cls t ht hp hd hh eta heta).transport |
| 63 | s hnear hbefore hafter hJ).post.metric (H.event_input t ht hp).child.basepoint |
| 64 | ((m67ClassPathEventFamily cls t ht hp hd hh eta heta).transport |
| 65 | s hnear hbefore hafter hJ).post.alpha = _ |
| 66 | rw [hpost] |
| 67 | exact m67EventPostSlice_based_width H t ht hp (slice t) |
| 68 | · constructor |
| 69 | · intro a b ha hab hb hJ |
| 70 | exact hclass _ _ hab hJ |
| 71 | · intro t ht hp hd hh eta heta s hnear hbefore hafter hJ |
| 72 | obtain ⟨hpre, hpost⟩ := m67ClassPathEventFamily_slices cls t ht hp hd hh eta heta |
| 73 | s hnear hbefore hafter hJ |
| 74 | refine ⟨?_, ?_, ?_⟩ |
| 75 | · change HEq ((m67ClassPathEventFamily cls t ht hp hd hh eta heta).transport |
| 76 | s hnear hbefore hafter hJ).pre.alpha (slice s).alpha |
| 77 | rw [hpre] |
| 78 | · change HEq ((m67ClassPathEventFamily cls t ht hp hd hh eta heta).transport |
| 79 | s hnear hbefore hafter hJ).post.alpha (slice t).alpha |
| 80 | rw [hpost] |
| 81 | exact m67EventPostSlice_alpha_heq H t ht hp (slice t) |
| 82 | · exact ((m67ClassPathEventFamily cls t ht hp hd hh eta heta).transport |
| 83 | s hnear hbefore hafter hJ).class_transport |
| 84 | · change (m67SliceFamily S initial cls.datum (m67InitialTime P)).metric = _ |
| 85 | rw [m67SliceFamily_initial] |
| 86 | rfl |
| 87 | · change (m67SliceFamily S initial cls.datum (m67InitialTime P)).alpha = _ |
| 88 | rw [m67SliceFamily_initial] |
| 89 | rfl |
| 90 | · exact m67SliceFamily_identification S initial cls.datum |
| 91 | |
| 92 | end PoincareMT |