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.Path.Theory |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Transport.ComponentRestriction |
| 3 | |
| 4 | set_option autoImplicit false |
| 5 | |
| 6 | open scoped Manifold ContDiff Bundle Topology |
| 7 | |
| 8 | universe u |
| 9 | |
| 10 | namespace PoincareMT |
| 11 | |
| 12 | /-- The actual ordinary slab flow pulled back to the selected component at its |
| 13 | left endpoint. -/ |
| 14 | noncomputable def repairedRegularFlow |
| 15 | {g₀ : StandardInitialMetric} |
| 16 | (D : RepairedSurgeryFlowData.{u} g₀) |
| 17 | {W : RepairedEventChildWitness D.flow} |
| 18 | {T : ℝ} (P : RepairedComponentPath D.flow T W) |
| 19 | {a b : ℝ} (ha : 0 ≤ a) (hab : a < b) (hb : b ≤ T) |
| 20 | (hJ : Disjoint D.flow.surgery_times (Set.Ioc a b)) : |
| 21 | RicciFlow 3 |
| 22 | (P.component ⟨a, ⟨ha, hab.le.trans hb⟩⟩).carrier.carrier |
| 23 | (Set.Icc a b) := |
| 24 | selectedComponentRicciFlow |
| 25 | (P.component ⟨a, ⟨ha, hab.le.trans hb⟩⟩) |
| 26 | (D.flow.regular_slabs a b hab |
| 27 | (fun _u hu => P.time_subset |
| 28 | ⟨ha.trans hu.1, hu.2.trans hb⟩) hJ).flow |
| 29 | |
| 30 | @[simp] theorem repairedRegularFlow_metric |
| 31 | {g₀ : StandardInitialMetric} |
| 32 | (D : RepairedSurgeryFlowData.{u} g₀) |
| 33 | {W : RepairedEventChildWitness D.flow} |
| 34 | {T : ℝ} (P : RepairedComponentPath D.flow T W) |
| 35 | {a b : ℝ} (ha : 0 ≤ a) (hab : a < b) (hb : b ≤ T) |
| 36 | (hJ : Disjoint D.flow.surgery_times (Set.Ioc a b)) |
| 37 | (s : Set.Icc a b) (x v w) : |
| 38 | ((repairedRegularFlow D P ha hab hb hJ).metric s.1).inner x v w = |
| 39 | (((D.flow.regular_slabs a b hab |
| 40 | (fun _u hu => P.time_subset |
| 41 | ⟨ha.trans hu.1, hu.2.trans hb⟩) hJ).flow.metric s.1).inner) |
| 42 | ((P.component ⟨a, ⟨ha, hab.le.trans hb⟩⟩).inclusion x) |
| 43 | (mfderiv (𝓡 3) (𝓡 3) |
| 44 | (P.component ⟨a, ⟨ha, hab.le.trans hb⟩⟩).inclusion x v) |
| 45 | (mfderiv (𝓡 3) (𝓡 3) |
| 46 | (P.component ⟨a, ⟨ha, hab.le.trans hb⟩⟩).inclusion x w) := by |
| 47 | rfl |
| 48 | |
| 49 | @[simp] theorem repairedRegularFlow_scalarCurvature |
| 50 | {g₀ : StandardInitialMetric} |
| 51 | (D : RepairedSurgeryFlowData.{u} g₀) |
| 52 | {W : RepairedEventChildWitness D.flow} |
| 53 | {T : ℝ} (P : RepairedComponentPath D.flow T W) |
| 54 | {a b : ℝ} (ha : 0 ≤ a) (hab : a < b) (hb : b ≤ T) |
| 55 | (hJ : Disjoint D.flow.surgery_times (Set.Ioc a b)) |
| 56 | (s : Set.Icc a b) (x) : |
| 57 | ((repairedRegularFlow D P ha hab hb hJ).connection s.1).scalarCurvature x = |
| 58 | ((D.flow.regular_slabs a b hab |
| 59 | (fun _u hu => P.time_subset |
| 60 | ⟨ha.trans hu.1, hu.2.trans hb⟩) hJ).flow.connection s.1).scalarCurvature |
| 61 | ((P.component ⟨a, ⟨ha, hab.le.trans hb⟩⟩).inclusion x) := by |
| 62 | exact selectedComponentRicciFlow_scalarCurvature |
| 63 | (P.component ⟨a, ⟨ha, hab.le.trans hb⟩⟩) |
| 64 | (D.flow.regular_slabs a b hab |
| 65 | (fun _u hu => P.time_subset |
| 66 | ⟨ha.trans hu.1, hu.2.trans hb⟩) hJ).flow s.1 x |
| 67 | |
| 68 | end PoincareMT |