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.Class.Based |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Deformation.Family |
| 3 | |
| 4 | /-! |
| 5 | # M65 primitive loop-family contract |
| 6 | |
| 7 | The input is the raw continuous family in Morgan--Tian Proposition 18.24. |
| 8 | Its class is carried by an actual continuous-map homotopy witness rather than |
| 9 | by a fabricated sphere certificate. The output uses the same raw family and |
| 10 | Ricci-flow slab, and an actual time-indexed family of regular loop families. |
| 11 | |
| 12 | Source: Morgan--Tian Proposition 18.24, Claims 19.23 and 19.25--19.32, |
| 13 | pp. 433--434 and 453--464, with the corrected Section 19.2 estimates. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open scoped Manifold ContDiff Bundle Topology ENNReal intervalIntegral |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | variable {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 26 | |
| 27 | structure M65RawFlowInput (M : Type u) [TopologicalSpace M] |
| 28 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 29 | (t₀ t₁ : ℝ) where |
| 30 | time_ordered : t₀ ≤ t₁ |
| 31 | flow : RicciFlow 3 M (Set.Icc t₀ t₁) |
| 32 | compact : IsCompact (Set.univ : Set M) |
| 33 | hausdorff : T2Space M |
| 34 | second_countable : SecondCountableTopology M |
| 35 | family : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)) |
| 36 | family_null : M61NullFamily family |
| 37 | |
| 38 | structure M65DeformedFamily (M : Type u) [TopologicalSpace M] |
| 39 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 40 | {t₀ t₁ : ℝ} (P : M65RawFlowInput M t₀ t₁) (zeta : ℝ) where |
| 41 | family : Set.Icc t₀ t₁ → |
| 42 | ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)) |
| 43 | family_continuous : Continuous (fun p : Set.Icc t₀ t₁ × LoopTwoSphere => |
| 44 | (family p.1) p.2) |
| 45 | null : ∀ t, M61NullFamily (family t) |
| 46 | free_homotopy_to_initial : ∀ t, P.family.Homotopic (family t) |
| 47 | initial_area_close : ∀ c, |
| 48 | |fillingArea (P.flow.metric t₀) |
| 49 | ((family ⟨t₀, ⟨le_rfl, P.time_ordered⟩⟩) c) - |
| 50 | fillingArea (P.flow.metric t₀) (P.family c)| < zeta |
| 51 | terminal_alternative : ∀ c, |
| 52 | freeLoopLength (P.flow.metric t₁) |
| 53 | ((family ⟨t₁, ⟨P.time_ordered, le_rfl⟩⟩) c) < zeta ∨ |
| 54 | fillingArea (P.flow.metric t₁) |
| 55 | ((family ⟨t₁, ⟨P.time_ordered, le_rfl⟩⟩) c) ≤ |
| 56 | areaComparisonProfile P.flow |
| 57 | (fillingArea (P.flow.metric t₀) |
| 58 | ((family ⟨t₀, ⟨le_rfl, P.time_ordered⟩⟩) c)) t₁ + zeta |
| 59 | |
| 60 | end PoincareMT |