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.Deformation.SmoothTimeData |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Class.Theory |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Deformation.Theory |
| 4 | import PoincareLib.Geometry.Riemannian.LoopSpace.ShortLoops.Theory |
| 5 | |
| 6 | /-! |
| 7 | # M66 Proposition 18.18 on an ordinary slab |
| 8 | |
| 9 | Natural-language theorem statement: let a compact connected smooth |
| 10 | three-manifold carry a Ricci flow on `[t₀,t₁]`, and let a displayed raw family |
| 11 | of null C1 loops be nontrivial under free homotopy to the selected constant |
| 12 | family while based `pi₂` is trivial. M59 supplies the later identification |
| 13 | with the source's based `pi₃` class. Using the M61 free-class width and the M65 deformation |
| 14 | on this same flow, the width obeys the forward difference inequality |
| 15 | |
| 16 | `D⁺W(t) ≤ -2*pi - (R_min(t)/2) * W(t)` |
| 17 | |
| 18 | and is continuous at every time in the surgery-free slab. This node owns only |
| 19 | the smooth-time argument. M67 owns the lower-limit inequality at a surgery |
| 20 | time and the finite surgery-piece assembly. |
| 21 | |
| 22 | Source: Morgan--Tian Proposition 18.18, printed pp. 431--432, |
| 23 | `references/derived/MT2007.txt:21104-21114`; its ordinary-slab reduction uses |
| 24 | Proposition 18.24, printed pp. 433--434, and Claims 18.21--18.22 |
| 25 | (`21164-21226`). The |
| 26 | corrected raw width interface is M61, and the deformation predecessor is M65. |
| 27 | -/ |
| 28 | |
| 29 | set_option autoImplicit false |
| 30 | |
| 31 | open scoped Manifold ContDiff Bundle Topology ENNReal intervalIntegral |
| 32 | |
| 33 | universe u |
| 34 | |
| 35 | namespace PoincareMT |
| 36 | |
| 37 | variable {M : Type u} [TopologicalSpace M] |
| 38 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 39 | |
| 40 | /-- Applied M61 width and M65 deformation objects for the same slab. -/ |
| 41 | structure M66Predecessors {t₀ t₁ : ℝ} |
| 42 | (hM61 : M61RawWidthCore.{u}) |
| 43 | {hM64 : M64ComparisonTheory.{u}} |
| 44 | (hM65 : M65DeformationTheory hM61 hM64) |
| 45 | (P : M65RawFlowInput M t₀ t₁) |
| 46 | (C : M66ClassData P) where |
| 47 | width : ∀ t : Set.Icc t₀ t₁, |
| 48 | M61FreeClassWidthProperties (P.flow.metric t.1) P.family |
| 49 | deformation : ∀ {a b : ℝ} (Q : M65RawFlowInput M a b), |
| 50 | Nonempty (M65Conclusion M Q |
| 51 | (m65PredecessorsFromServices hM61 hM64 Q)) |
| 52 | short_loop : RepairedShortLoopTrivialityTheory.{u} |
| 53 | /-- The M58 raw-family threshold is applied to this slab's connected |
| 54 | manifold and chosen basepoint, so the short-loop predecessor is visible in |
| 55 | the M66 contract rather than being a nominal service parameter. -/ |
| 56 | short_loop_application : ∀ t : Set.Icc t₀ t₁, ∃ ζ : ℝ, 0 < ζ ∧ |
| 57 | ∀ source : ContinuousMap LoopTwoSphere |
| 58 | (C1FreeLoopSpace (M := M)), |
| 59 | (∀ c, IsNullHomotopicLoop (source c)) → |
| 60 | (∀ c, freeLoopLength (P.flow.metric t.1) (source c) < ζ) → |
| 61 | source.Homotopic (constantLoopFamily C.basepoint) |
| 62 | |
| 63 | /-- The smooth-time conclusions of Proposition 18.18, indexed by the actual |
| 64 | M61/M65 predecessor objects used on the displayed slab. -/ |
| 65 | structure M66Conclusion {t₀ t₁ : ℝ} |
| 66 | (hM61 : M61RawWidthCore.{u}) |
| 67 | {hM64 : M64ComparisonTheory.{u}} |
| 68 | (hM65 : M65DeformationTheory hM61 hM64) |
| 69 | (P : M65RawFlowInput M t₀ t₁) |
| 70 | (C : M66ClassData P) |
| 71 | (H : M66Predecessors hM61 hM65 P C) where |
| 72 | width_nonnegative : ∀ t : Set.Icc t₀ t₁, 0 ≤ m66Width P t |
| 73 | forward_difference_bound : ∀ t : Set.Icc t₀ t₁, |
| 74 | t.1 < t₁ → ∀ epsilon : ℝ, 0 < epsilon → ∃ delta : ℝ, 0 < delta ∧ |
| 75 | ∀ s : Set.Icc t₀ t₁, t.1 < s.1 → s.1 < t.1 + delta → |
| 76 | (m66Width P s - m66Width P t) / (s.1 - t.1) ≤ |
| 77 | -2 * Real.pi - |
| 78 | flowScalarCurvatureInfimum P.flow t.1 / 2 * m66Width P t + |
| 79 | epsilon |
| 80 | continuous_at : ∀ t : Set.Icc t₀ t₁, |
| 81 | ContinuousAt (fun s : Set.Icc t₀ t₁ => m66Width P s) t |
| 82 | |
| 83 | set_option linter.style.haveILetI false |
| 84 | /-- Apply the actual M61 width service and M65 deformation service on one |
| 85 | ordinary slab. -/ |
| 86 | theorem m66PredecessorsFromServices |
| 87 | (hM61 : M61RawWidthCore.{u}) |
| 88 | (hM58 : RepairedShortLoopTrivialityTheory.{u}) |
| 89 | {hM64 : M64ComparisonTheory.{u}} |
| 90 | (hM65 : M65DeformationTheory hM61 hM64) |
| 91 | {t₀ t₁ : ℝ} (P : M65RawFlowInput M t₀ t₁) |
| 92 | (C : M66ClassData P) : M66Predecessors hM61 hM65 P C := by |
| 93 | letI : T2Space M := P.hausdorff |
| 94 | letI : SecondCountableTopology M := P.second_countable |
| 95 | have short_loop_application : ∀ t : Set.Icc t₀ t₁, ∃ ζ : ℝ, 0 < ζ ∧ |
| 96 | ∀ source : ContinuousMap LoopTwoSphere |
| 97 | (C1FreeLoopSpace (M := M)), |
| 98 | (∀ c, IsNullHomotopicLoop (source c)) → |
| 99 | (∀ c, freeLoopLength (P.flow.metric t.1) (source c) < ζ) → |
| 100 | source.Homotopic (constantLoopFamily C.basepoint) := by |
| 101 | intro t |
| 102 | exact hM58.short_loop.raw_short_loop_family_trivial |
| 103 | (P.flow.metric t.1) P.compact C.connected C.basepoint |
| 104 | C.pi_two_subsingleton |
| 105 | refine |
| 106 | { width := fun t => hM61.free_class (P.flow.metric t.1) P.compact |
| 107 | P.family P.family_null |
| 108 | deformation := fun Q => hM65 M Q |
| 109 | short_loop := hM58 |
| 110 | short_loop_application := short_loop_application } |
| 111 | |
| 112 | def M66SmoothTimeTheory |
| 113 | (hM61 : M61RawWidthCore.{u}) |
| 114 | (hM58 : RepairedShortLoopTrivialityTheory.{u}) |
| 115 | {hM64 : M64ComparisonTheory.{u}} |
| 116 | (hM65 : M65DeformationTheory hM61 hM64) : Prop := |
| 117 | ∀ (M : Type u) [TopologicalSpace M] |
| 118 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 119 | {t₀ t₁ : ℝ} (P : M65RawFlowInput M t₀ t₁) |
| 120 | (C : M66ClassData P), |
| 121 | Nonempty (M66Conclusion hM61 hM65 P C |
| 122 | (m66PredecessorsFromServices hM61 hM58 hM65 P C)) |
| 123 | |
| 124 | end PoincareMT |