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.Continuation.Construction.Splice.Family |
| 2 | |
| 3 | /-! |
| 4 | # Coherence of ordinary transports after a restart |
| 5 | |
| 6 | On either side of the new event, every closed slab uses the same old |
| 7 | transport or the same fixed-carrier identification. Slabs on opposite sides |
| 8 | cannot overlap. Source: Morgan--Tian, Definition 15.8, p. 362. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.Surgery.Splice |
| 20 | |
| 21 | variable (F : SurgeryFlowData.{u}) (T : ℝ) (C : GeneralizedSliceCarrier.{u}) |
| 22 | {B : ℝ≥0∞} (R : RicciFlow 3 C.carrier {t : ℝ | T ≤ t ∧ ENNReal.ofReal t < B}) |
| 23 | |
| 24 | theorem regularSlab_transport_coherent (hF : F.time_domain = Set.Ico 0 T) |
| 25 | (a b c d : ℝ) (hab : a < b) |
| 26 | (hJ : Set.Icc a b ⊆ {t : ℝ | 0 ≤ t ∧ ENNReal.ofReal t < B}) |
| 27 | (hfree : Disjoint (eventTimes F T) (Set.Ioc a b)) (hcd : c < d) |
| 28 | (hK : Set.Icc c d ⊆ {t : ℝ | 0 ≤ t ∧ ENNReal.ofReal t < B}) |
| 29 | (hfree' : Disjoint (eventTimes F T) (Set.Ioc c d)) |
| 30 | (s t : ℝ) (hs : s ∈ Set.Icc a b) (ht : t ∈ Set.Icc a b) |
| 31 | (hs' : s ∈ Set.Icc c d) (ht' : t ∈ Set.Icc c d) |
| 32 | (x : (slice F T C R s).carrier) : |
| 33 | (regularSlab F T C R hF hab hJ hfree).transport ⟨s, hs⟩ ⟨t, ht⟩ x = |
| 34 | (regularSlab F T C R hF hcd hK hfree').transport ⟨s, hs'⟩ ⟨t, ht'⟩ x := by |
| 35 | rcases slab_side F T hfree with hb | ha |
| 36 | · rcases slab_side F T hfree' with hd | hc |
| 37 | · have hold : Set.Icc a b ⊆ F.time_domain := by |
| 38 | intro q hq |
| 39 | rw [hF] |
| 40 | exact ⟨(hJ hq).1, hq.2.trans_lt hb⟩ |
| 41 | have hold' : Set.Icc c d ⊆ F.time_domain := by |
| 42 | intro q hq |
| 43 | rw [hF] |
| 44 | exact ⟨(hK hq).1, hq.2.trans_lt hd⟩ |
| 45 | have hfreeold := hfree.mono_left (Set.subset_insert T F.surgery_times) |
| 46 | have hfreeold' := hfree'.mono_left (Set.subset_insert T F.surgery_times) |
| 47 | obtain ⟨y, rfl⟩ := (identifyBefore F T C R s (hs.2.trans_lt hb)).surjective x |
| 48 | exact (regularSlab_transport_before F T C R hF hab hJ hfree hb hold hfreeold |
| 49 | ⟨s, hs⟩ ⟨t, ht⟩ y).trans |
| 50 | ((congrArg (identifyBefore F T C R t (ht.2.trans_lt hb)) |
| 51 | (F.slab_transport_coherent a b c d hab hold hfreeold hcd hold' hfreeold' |
| 52 | s t hs ht hs' ht' y)).trans |
| 53 | (regularSlab_transport_before F T C R hF hcd hK hfree' hd hold' hfreeold' |
| 54 | ⟨s, hs'⟩ ⟨t, ht'⟩ y).symm) |
| 55 | · exact False.elim ((not_lt_of_ge (hc.trans hs'.1)) (hs.2.trans_lt hb)) |
| 56 | · rcases slab_side F T hfree' with hd | hc |
| 57 | · exact False.elim ((not_lt_of_ge (ha.trans hs.1)) (hs'.2.trans_lt hd)) |
| 58 | · obtain ⟨y, rfl⟩ := (identifyAfter F T C R s (ha.trans hs.1)).surjective x |
| 59 | exact (regularSlab_transport_after F T C R hF hab hJ hfree ha |
| 60 | ⟨s, hs⟩ ⟨t, ht⟩ y).trans |
| 61 | (regularSlab_transport_after F T C R hF hcd hK hfree' hc |
| 62 | ⟨s, hs'⟩ ⟨t, ht'⟩ y).symm |
| 63 | |
| 64 | end PoincareMT.Surgery.Splice |