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.SourceNames |
| 3 | import PoincareLib.Geometry.RicciFlow.Generalized.BoundedDistance.Cone.Geometry.OperatorRicci |
| 4 | import PoincareLib.Geometry.RicciFlow.Splitting.NullSectionEnergy |
| 5 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.ScalarRatio.Cone.HomotheticField |
| 6 | |
| 7 | /-! |
| 8 | # A homothetic terminal field forces Ricci flatness on a finite flow |
| 9 | |
| 10 | The same smooth field supplies terminal nullity, and the included-time |
| 11 | Ricci evolution forces its covariant derivatives to be null. No ancient |
| 12 | extension or completeness is needed. |
| 13 | Source: Morgan--Tian Proposition 4.22; M28 derivations 110 and 148. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Filter |
| 20 | open scoped Manifold ContDiff Bundle Topology BigOperators |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M28 |
| 25 | |
| 26 | variable {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | |
| 29 | /-- The actual finite-time terminal Ricci tensor vanishes when the |
| 30 | terminal compatible connection has a smooth field with derivative Id. |
| 31 | The field may vanish and the carrier may be incomplete. Derivation 148. -/ |
| 32 | theorem terminal_ricci_eq_zero_of_homothetic_field |
| 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 | (Z : (x : M) → TangentSpace (𝓡 3) x) |
| 38 | (hZsmooth : ContMDiff (𝓡 3) ((𝓡 3).prod (𝓡 3)) ∞ (T% Z)) |
| 39 | (hZ : ∀ x, ∀ v : TangentSpace (𝓡 3) x, (F.connection b).connection Z x v = v) : |
| 40 | ∀ x, ∀ v w : TangentSpace (𝓡 3) x, (F.connection b).ricci x v w = 0 := by |
| 41 | let D := F.connection b |
| 42 | have hD : D.CurvatureTensorCalculus := P.tensor_calculus 3 M (F.metric b) D |
| 43 | have hconst : ∀ x, ∀ v : TangentSpace (𝓡 3) x, D.connection Z x v = (1 : ℝ) • v := by |
| 44 | simpa only [one_smul] using hZ |
| 45 | have hnull (y : M) : D.ricci y (Z y) (Z y) = 0 := by |
| 46 | unfold LeviCivitaData.ricci |
| 47 | apply Finset.sum_eq_zero |
| 48 | intro i _ |
| 49 | rw [M04.curvatureTensor_swap_last, |
| 50 | D.curvatureTensor_eq_zero_of_constant_covariantDerivative hD Z hZsmooth 1 hconst, |
| 51 | neg_zero] |
| 52 | have hsec : ∀ t ∈ Icc a b, (F.connection t).NonnegativeSectionalCurvature := by |
| 53 | intro t ht x v w |
| 54 | exact (F.connection t).sectional_nonneg_of_nonnegative_operator_m28 x (hoperator t ht x) v w |
| 55 | intro x v w |
| 56 | have h := RicciFlow.Splitting.ricci_connection_eq_zero_of_terminal_null |
| 57 | P hab F hsec Z (hZsmooth x) (Eventually.of_forall hnull) v w |
| 58 | simpa only [hZ] using h |
| 59 | |
| 60 | /-- A positive terminal scalar contradicts an actual smooth homothetic |
| 61 | field on a finite nonnegatively curved backward flow. Derivation 148. -/ |
| 62 | theorem no_positive_terminal_scalar_of_homothetic_field |
| 63 | (P : RicciFlowCurvatureTheory.{u}) {a b : ℝ} (hab : a < b) |
| 64 | (F : RicciFlow 3 M (Icc a b)) |
| 65 | (hoperator : ∀ t ∈ Icc a b, ∀ x, |
| 66 | (F.connection t).NonnegativeCurvatureOperator x) |
| 67 | (Z : (x : M) → TangentSpace (𝓡 3) x) |
| 68 | (hZsmooth : ContMDiff (𝓡 3) ((𝓡 3).prod (𝓡 3)) ∞ (T% Z)) |
| 69 | (hZ : ∀ x, ∀ v : TangentSpace (𝓡 3) x, (F.connection b).connection Z x v = v) |
| 70 | (p : M) (hscalar : 0 < (F.connection b).scalarCurvature p) : False := by |
| 71 | have hric := terminal_ricci_eq_zero_of_homothetic_field P hab F hoperator Z hZsmooth hZ p |
| 72 | have hzero : (F.connection b).scalarCurvature p = 0 := by |
| 73 | unfold LeviCivitaData.scalarCurvature |
| 74 | exact Finset.sum_eq_zero fun i _ => hric _ _ |
| 75 | exact (ne_of_gt hscalar) hzero |
| 76 | |
| 77 | end PoincareMT.M28 |