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.Regular.WidthComparison |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Transport.Regular.MetricCalibration |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Transport.Regular.ScalarInfimum |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | |
| 7 | open scoped Manifold ContDiff Bundle Topology |
| 8 | |
| 9 | universe u |
| 10 | |
| 11 | namespace PoincareMT |
| 12 | |
| 13 | /-- The fixed-carrier M66 width equals the transported based width at every |
| 14 | time of an actual ordinary slab, including its left endpoint. -/ |
| 15 | theorem m67_regular_width_agreement |
| 16 | {g₀ : StandardInitialMetric} (D : RepairedSurgeryFlowData.{u} g₀) |
| 17 | {W : RepairedEventChildWitness D.flow} {T : ℝ} |
| 18 | (P : RepairedComponentPath D.flow T W) |
| 19 | (S : M59IdentificationSystem.{u}) (B : M59HigherBasepointTransportService.{u}) |
| 20 | (hM61 : M61WidthTheory.{u} S.quotient) |
| 21 | (slice : ∀ s, M67WidthSlice S.quotient (P.component s)) |
| 22 | (hambient : ∀ s, (slice s).ambient_metric = D.flow.metric s.1) |
| 23 | (hclass : ∀ (a b : Set.Icc (0 : ℝ) T) (hab : a.1 < b.1) |
| 24 | (hJ : Disjoint D.flow.surgery_times (Set.Ioc a.1 b.1)), |
| 25 | M67AlphaTransport B (P.component a).basepoint (P.component b).basepoint |
| 26 | (repairedDiffeomorphContinuousMap (P.regular_transport a b hab hJ)) |
| 27 | (slice a).alpha (slice b).alpha) |
| 28 | {a b : ℝ} (ha : 0 ≤ a) (hab : a < b) (hb : b ≤ T) |
| 29 | (hJ : Disjoint D.flow.surgery_times (Set.Ioc a b)) |
| 30 | (s : Set.Icc a b) : |
| 31 | m61BasedClassWidth S.quotient |
| 32 | (slice ⟨s.1, ha.trans s.2.1, s.2.2.trans hb⟩).metric |
| 33 | (P.component ⟨s.1, ha.trans s.2.1, s.2.2.trans hb⟩).basepoint |
| 34 | (slice ⟨s.1, ha.trans s.2.1, s.2.2.trans hb⟩).alpha = |
| 35 | m66Width (m67RegularInputOfSlice |
| 36 | (P.component ⟨a, ha, hab.le.trans hb⟩) |
| 37 | (slice ⟨a, ha, hab.le.trans hb⟩) hab |
| 38 | (repairedRegularFlow D P ha hab hb hJ)) s := by |
| 39 | let aI : Set.Icc (0 : ℝ) T := ⟨a, ha, hab.le.trans hb⟩ |
| 40 | let sI : Set.Icc (0 : ℝ) T := ⟨s.1, ha.trans s.2.1, s.2.2.trans hb⟩ |
| 41 | let F := repairedRegularFlow D P ha hab hb hJ |
| 42 | have hmetric (t : Set.Icc (0 : ℝ) T) (x v w) : |
| 43 | (D.flow.metric t.1).inner ((P.component t).inclusion x) |
| 44 | (mfderiv (𝓡 3) (𝓡 3) (P.component t).inclusion x v) |
| 45 | (mfderiv (𝓡 3) (𝓡 3) (P.component t).inclusion x w) = |
| 46 | (slice t).metric.inner x v w := by |
| 47 | rw [← hambient t] |
| 48 | exact (slice t).metric_pullback x v w |
| 49 | have hfree := (hM61.based_class (F.metric s.1) (P.component aI).compact |
| 50 | (P.component aI).connected (P.component aI).basepoint |
| 51 | (slice aI).pi_two_trivial (slice aI).alpha).eq_free |
| 52 | (slice aI).family (slice aI).family_null (slice aI).represents |
| 53 | change m61BasedClassWidth S.quotient (slice sI).metric (P.component sI).basepoint |
| 54 | (slice sI).alpha = m61FreeClassWidth (F.metric s.1) (slice aI).family |
| 55 | rw [← hfree] |
| 56 | by_cases has : a < s.1 |
| 57 | · have hJs : Disjoint D.flow.surgery_times (Set.Ioc a s.1) := |
| 58 | hJ.mono_right (show Set.Ioc a s.1 ⊆ Set.Ioc a b from |
| 59 | fun _ hu => ⟨hu.1, hu.2.trans s.2.2⟩) |
| 60 | exact m67_based_width_eq_of_diffeomorph S B hM61 (F.metric s.1) (slice sI).metric |
| 61 | (P.component aI).compact (P.component sI).compact |
| 62 | (P.component aI).connected (P.component sI).connected |
| 63 | (P.component aI).basepoint (P.component sI).basepoint |
| 64 | (slice aI).pi_two_trivial (slice sI).pi_two_trivial |
| 65 | (P.regular_transport aI sI has hJs) |
| 66 | (m67_regular_flow_metric_at D P ha hab hb hJ s has hJs |
| 67 | (slice sI).metric (hmetric sI)) |
| 68 | (slice aI).alpha (slice sI).alpha (hclass aI sI has hJs) |
| 69 | · have hsa : s.1 = a := le_antisymm (le_of_not_gt has) s.2.1 |
| 70 | have hsI : sI = aI := Subtype.ext hsa |
| 71 | rw [hsI, hsa] |
| 72 | apply m67_based_width_eq_of_diffeomorph S B hM61 (F.metric a) (slice aI).metric |
| 73 | (P.component aI).compact (P.component aI).compact |
| 74 | (P.component aI).connected (P.component aI).connected |
| 75 | (P.component aI).basepoint (P.component aI).basepoint |
| 76 | (slice aI).pi_two_trivial (slice aI).pi_two_trivial |
| 77 | (Diffeomorph.refl (𝓡 3) (P.component aI).carrier.carrier ∞) |
| 78 | _ (slice aI).alpha (slice aI).alpha |
| 79 | (m67_alpha_transport_refl B (P.component aI).basepoint (slice aI).alpha) |
| 80 | intro x v w |
| 81 | change (F.metric a).inner x v w = (slice aI).metric.inner x |
| 82 | (mfderiv (𝓡 3) (𝓡 3) id x v) (mfderiv (𝓡 3) (𝓡 3) id x w) |
| 83 | rw [mfderiv_id] |
| 84 | exact m67_regular_flow_initial_metric D P ha hab hb hJ (slice aI).metric |
| 85 | (hmetric aI) x v w |
| 86 | |
| 87 | end PoincareMT |