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.SmoothTime.Comparison |
| 2 | |
| 3 | /-! Restricting the ordinary slab in the width comparison, MT Proposition 18.18. -/ |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | open scoped Manifold ContDiff Bundle Topology ENNReal intervalIntegral |
| 7 | universe u |
| 8 | namespace PoincareMT |
| 9 | |
| 10 | variable {M : Type u} [TopologicalSpace M] |
| 11 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 12 | |
| 13 | /-- Restriction preserves the total metric and connection representatives. -/ |
| 14 | def m66RestrictInput {a b : ℝ} (P : M65RawFlowInput M a b) |
| 15 | (t s : Set.Icc a b) (hts : t.1 < s.1) : M65RawFlowInput M t.1 s.1 where |
| 16 | time_ordered := hts.le |
| 17 | flow := { |
| 18 | metric := P.flow.metric |
| 19 | connection := P.flow.connection |
| 20 | interval := Set.ordConnected_Icc |
| 21 | nontrivial := ⟨t, ⟨le_rfl, hts.le⟩, s, ⟨hts.le, le_rfl⟩, ne_of_lt hts⟩ |
| 22 | smooth := P.flow.smooth.mono (Set.prod_mono (Set.Icc_subset_Icc t.2.1 s.2.2) |
| 23 | (Set.Subset.refl _)) |
| 24 | equation := fun v hv x u w => |
| 25 | (P.flow.equation v ⟨t.2.1.trans hv.1, hv.2.trans s.2.2⟩ x u w).mono |
| 26 | (Set.Icc_subset_Icc t.2.1 s.2.2) } |
| 27 | compact := P.compact |
| 28 | hausdorff := P.hausdorff |
| 29 | second_countable := P.second_countable |
| 30 | family := P.family |
| 31 | family_null := P.family_null |
| 32 | |
| 33 | /-- Integrating-factor comparison between any two times of the slab. -/ |
| 34 | theorem m66_subslab_comparison |
| 35 | (hM61 : M61RawWidthCore.{u}) |
| 36 | (hM58 : RepairedShortLoopTrivialityTheory.{u}) |
| 37 | {hM64 : M64ComparisonTheory.{u}} |
| 38 | (hM65 : M65DeformationTheory hM61 hM64) |
| 39 | {a b : ℝ} (P : M65RawFlowInput M a b) (C : M66ClassData P) |
| 40 | (t s : Set.Icc a b) (hts : t.1 < s.1) : |
| 41 | m66Width P s ≤ |
| 42 | Real.exp (-(∫ v in t.1..s.1, flowScalarCurvatureInfimum P.flow v / 2)) * |
| 43 | (m66Width P t - 2 * Real.pi * |
| 44 | (∫ v in t.1..s.1, Real.exp |
| 45 | (∫ x in t.1..v, flowScalarCurvatureInfimum P.flow x / 2))) := |
| 46 | m66_endpoint_comparison hM61 hM58 hM65 |
| 47 | (m66RestrictInput P t s hts) C.connected C.basepoint |
| 48 | C.pi_two_subsingleton C.raw_nontrivial |
| 49 | |
| 50 | end PoincareMT |