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.Generalized.BoundedDistance.GeometryImports |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Cone.Ends.TerminalHomothetic |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.ScalarRatio.Cone.RadialRegularity |
| 4 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.ScalarRatio.Cone.RadialGradient |
| 5 | |
| 6 | /-! |
| 7 | # A locally Lipschitz quadratic potential gives the finite-time obstruction |
| 8 | |
| 9 | Regularity and the actual gradient construct the smooth homothetic field |
| 10 | from the potential's geodesic identity on the same carrier and metric. |
| 11 | Source: Kleiner--Lott corrected 2013, Lemma 41.4, pp. 2674-2676; |
| 12 | Morgan--Tian Proposition 4.22; M28 derivations 110 and 148. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle Topology NNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M28 |
| 24 | |
| 25 | variable {M : Type u} [TopologicalSpace M] [T2Space M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | |
| 28 | /-- A locally Lipschitz, geodesically quadratic actual terminal potential |
| 29 | contradicts positive scalar in the same finite backward flow. Smoothness |
| 30 | and the homothetic field are conclusions of the lower regularity theorems, |
| 31 | not additional premises. Derivation 148. -/ |
| 32 | theorem no_positive_terminal_scalar_of_quadratic_potential |
| 33 | (P : RicciFlowCurvatureTheory.{u}) {a b : ℝ} (hab : a < b) |
| 34 | (F : RicciFlow 3 M (Icc a b)) |
| 35 | (hoperator : ∀ t ∈ Icc a b, ∀ x, |
| 36 | (F.connection t).NonnegativeCurvatureOperator x) |
| 37 | (f : M → ℝ) |
| 38 | (hLip : ∀ p : M, ∃ U ∈ 𝓝 (extChartAt (𝓡 3) p p), ∃ C : ℝ≥0, |
| 39 | LipschitzOnWith C (f ∘ (extChartAt (𝓡 3) p).symm) U) |
| 40 | (hquad : ∀ (γ : ℝ → M) (epsilon : ℝ), 0 < epsilon → |
| 41 | (F.metric b).IsGeodesicOn γ (Ioo (-epsilon) (1 + epsilon)) → |
| 42 | ∀ t ∈ Icc (0 : ℝ) 1, |
| 43 | f (γ t) = (1 - t) * f (γ 0) + t * f (γ 1) - t * (1 - t) * |
| 44 | (F.metric b).tangentNorm (γ 0) |
| 45 | (mfderiv 𝓘(ℝ, ℝ) (𝓡 3) γ 0 1) ^ 2 / 2) |
| 46 | (p : M) (hscalar : 0 < (F.connection b).scalarCurvature p) : False := by |
| 47 | have hf := (F.metric b).contMDiff_of_locally_lipschitz_geodesic_quadratic f hLip hquad |
| 48 | obtain ⟨hZsmooth, hZ⟩ := |
| 49 | (F.connection b).gradient_homothetic_of_geodesic_quadratic hf hquad |
| 50 | exact no_positive_terminal_scalar_of_homothetic_field P hab F hoperator |
| 51 | ((F.connection b).gradient f) hZsmooth hZ p hscalar |
| 52 | |
| 53 | end PoincareMT.M28 |