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.Data |
| 2 | import PoincareLib.Geometry.Riemannian.LoopSpace.ShortLoops.Statement |
| 3 | |
| 4 | /-! |
| 5 | # M66 ordinary-slab width comparison |
| 6 | |
| 7 | This file gives the primitive boundary for the smooth-time part of Morgan--Tian |
| 8 | Proposition 18.18. Surgery-time transport and the lower-limit jump belong to |
| 9 | M67. The width is the raw M61 free-class infimum for one fixed loop family |
| 10 | viewed through the Ricci-flow metrics on an ordinary slab. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open scoped Manifold ContDiff Bundle Topology ENNReal intervalIntegral |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT |
| 20 | |
| 21 | variable {M : Type u} [TopologicalSpace M] |
| 22 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 23 | |
| 24 | /-- The nontrivial class and component hypotheses for Proposition 18.18. |
| 25 | |
| 26 | The raw family in `P` is the width anchor. Its nontriviality is stated |
| 27 | directly as a concrete free homotopy relation, avoiding an unconnected |
| 28 | duplicate based-class package. |
| 29 | -/ |
| 30 | structure M66ClassData {t₀ t₁ : ℝ} |
| 31 | (P : M65RawFlowInput M t₀ t₁) where |
| 32 | strict_time : t₀ < t₁ |
| 33 | connected : IsConnected (Set.univ : Set M) |
| 34 | basepoint : M |
| 35 | pi_two_subsingleton : Subsingleton (HomotopyGroup.Pi 2 M basepoint) |
| 36 | /-- The raw nontrivial class boundary used by the M58 short-loop |
| 37 | contradiction. -/ |
| 38 | raw_nontrivial : ¬ P.family.Homotopic (constantLoopFamily basepoint) |
| 39 | scalar_infimum_attained : ∀ t : Set.Icc t₀ t₁, ∃ x : M, |
| 40 | (P.flow.connection t.1).scalarCurvature x = |
| 41 | flowScalarCurvatureInfimum P.flow t.1 |
| 42 | scalar_infimum_continuous : Continuous (fun t : Set.Icc t₀ t₁ => |
| 43 | flowScalarCurvatureInfimum P.flow t.1) |
| 44 | |
| 45 | /-- The free-class width of the displayed family at a slab time. -/ |
| 46 | noncomputable def m66Width {t₀ t₁ : ℝ} |
| 47 | (P : M65RawFlowInput M t₀ t₁) |
| 48 | (t : Set.Icc t₀ t₁) : ℝ := |
| 49 | m61FreeClassWidth (P.flow.metric t.1) P.family |
| 50 | |
| 51 | end PoincareMT |