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.Class.Composition |
| 2 | |
| 3 | set_option autoImplicit false |
| 4 | |
| 5 | open scoped Manifold ContDiff Bundle ENNReal Topology unitInterval |
| 6 | |
| 7 | universe u |
| 8 | |
| 9 | namespace PoincareMT |
| 10 | |
| 11 | theorem m67_regular_transport_ambient_in_slab |
| 12 | {F : SurgeryFlowData.{u}} {T : ℝ} {W : RepairedEventChildWitness F} |
| 13 | (P : RepairedComponentPath F T W) |
| 14 | (a b : Set.Icc (0 : ℝ) T) (hab : a.1 < b.1) |
| 15 | (hJ : Disjoint F.surgery_times (Set.Ioc a.1 b.1)) |
| 16 | (s t : Set.Icc (0 : ℝ) T) (hst : s.1 < t.1) |
| 17 | (hK : Disjoint F.surgery_times (Set.Ioc s.1 t.1)) |
| 18 | (hs : s.1 ∈ Set.Icc a.1 b.1) (ht : t.1 ∈ Set.Icc a.1 b.1) |
| 19 | (x : (P.component s).carrier.carrier) : |
| 20 | (P.component t).inclusion (P.regular_transport s t hst hK x) = |
| 21 | (F.regular_slabs a.1 b.1 hab |
| 22 | (fun _u hu => P.time_subset ⟨a.2.1.trans hu.1, hu.2.trans b.2.2⟩) hJ).transport |
| 23 | ⟨s.1, hs⟩ ⟨t.1, ht⟩ ((P.component s).inclusion x) := by |
| 24 | rw [P.regular_transport_ambient] |
| 25 | exact F.slab_transport_coherent s.1 t.1 a.1 b.1 hst _ hK hab _ hJ |
| 26 | s.1 t.1 ⟨le_rfl, hst.le⟩ ⟨hst.le, le_rfl⟩ hs ht _ |
| 27 | |
| 28 | theorem m67_regular_transport_comp |
| 29 | {F : SurgeryFlowData.{u}} {T : ℝ} {W : RepairedEventChildWitness F} |
| 30 | (P : RepairedComponentPath F T W) |
| 31 | (a b c : Set.Icc (0 : ℝ) T) (hab : a.1 < b.1) (hbc : b.1 < c.1) |
| 32 | (hJab : Disjoint F.surgery_times (Set.Ioc a.1 b.1)) |
| 33 | (hJbc : Disjoint F.surgery_times (Set.Ioc b.1 c.1)) |
| 34 | (hJac : Disjoint F.surgery_times (Set.Ioc a.1 c.1)) |
| 35 | (x : (P.component a).carrier.carrier) : |
| 36 | P.regular_transport b c hbc hJbc (P.regular_transport a b hab hJab x) = |
| 37 | P.regular_transport a c (hab.trans hbc) hJac x := by |
| 38 | apply (P.component c).left_inverse.injective |
| 39 | rw [m67_regular_transport_ambient_in_slab P a c (hab.trans hbc) hJac |
| 40 | b c hbc hJbc ⟨hab.le, hbc.le⟩ ⟨(hab.trans hbc).le, le_rfl⟩] |
| 41 | rw [m67_regular_transport_ambient_in_slab P a c (hab.trans hbc) hJac |
| 42 | a b hab hJab ⟨le_rfl, (hab.trans hbc).le⟩ ⟨hab.le, hbc.le⟩] |
| 43 | rw [P.regular_transport_ambient] |
| 44 | simp only [SurgeryRegularSlab.transport, Diffeomorph.symm_apply_apply] |
| 45 | |
| 46 | end PoincareMT |