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.Restriction |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.SmoothTime.Analysis.Profile |
| 3 | |
| 4 | /-! |
| 5 | # Forward width estimate |
| 6 | |
| 7 | The ordinary-slab part of Morgan--Tian Proposition 18.18, pp. 431--432, |
| 8 | by differentiating the comparison from Proposition 18.24, pp. 433--434. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | open scoped Manifold ContDiff Bundle Topology ENNReal intervalIntegral |
| 13 | universe u |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | variable {M : Type u} [TopologicalSpace M] |
| 17 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 18 | |
| 19 | /-- The exact forward difference estimate on the fixed ordinary slab. -/ |
| 20 | theorem m66_forward_difference_bound |
| 21 | (hM61 : M61RawWidthCore.{u}) |
| 22 | (hM58 : RepairedShortLoopTrivialityTheory.{u}) |
| 23 | {hM64 : M64ComparisonTheory.{u}} |
| 24 | (hM65 : M65DeformationTheory hM61 hM64) |
| 25 | {a b : ℝ} (P : M65RawFlowInput M a b) (C : M66ClassData P) |
| 26 | (t : Set.Icc a b) (_ht : t.1 < b) |
| 27 | (epsilon : ℝ) (hepsilon : 0 < epsilon) : |
| 28 | ∃ delta : ℝ, 0 < delta ∧ |
| 29 | ∀ s : Set.Icc a b, t.1 < s.1 → s.1 < t.1 + delta → |
| 30 | (m66Width P s - m66Width P t) / (s.1 - t.1) ≤ |
| 31 | -2 * Real.pi - |
| 32 | flowScalarCurvatureInfimum P.flow t.1 / 2 * m66Width P t + epsilon := by |
| 33 | have hr : ContinuousOn (flowScalarCurvatureInfimum P.flow) (Set.Icc a b) := |
| 34 | continuousOn_iff_continuous_domRestrict.mpr C.scalar_infimum_continuous |
| 35 | obtain ⟨delta, hdelta, hprofile⟩ := smoothWidthProfile_forward_bound |
| 36 | (w := m66Width P t) t.2.2 |
| 37 | (hr.mono (Set.Icc_subset_Icc t.2.1 le_rfl)) hepsilon |
| 38 | refine ⟨delta, hdelta, ?_⟩ |
| 39 | intro s hts hsdelta |
| 40 | have hcomp := m66_subslab_comparison hM61 hM58 hM65 P C t s hts |
| 41 | change m66Width P s ≤ smoothWidthProfile |
| 42 | (flowScalarCurvatureInfimum P.flow) t.1 (m66Width P t) s.1 at hcomp |
| 43 | exact (div_le_div_of_nonneg_right (sub_le_sub_right hcomp _) (sub_pos.mpr hts).le).trans |
| 44 | (hprofile s.1 ⟨hts.le, s.2.2⟩ hts hsdelta) |
| 45 | |
| 46 | end PoincareMT |