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.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Splitting.MaximumPrinciple.RicciNullity |
| 3 | import PoincareLib.Geometry.RicciFlow.Splitting.PartialTrace.Continuity |
| 4 | |
| 5 | /-! |
| 6 | # Ricci-nullity propagation from nonnegative sectional curvature |
| 7 | |
| 8 | The actual Ricci partial traces are continuous lower-contact heat |
| 9 | supersolutions by the frozen curvature evolution theory. Applying scalar |
| 10 | strong positivity at every finite-dimensional threshold proves spatial |
| 11 | constancy of nullity at positive times and its antitonicity in time. |
| 12 | No rank or earlier-nullity hypothesis is imposed. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.RicciFlow.Splitting |
| 24 | |
| 25 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] [ConnectedSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 27 | {a b : ℝ} |
| 28 | |
| 29 | /-- Nonnegative sectional curvature forces spatially constant Ricci nullity |
| 30 | at every positive time of a connected Ricci-flow slab. -/ |
| 31 | theorem ricciNullity_eq_on_positive_slice |
| 32 | (hC : RicciFlowCurvatureCalculus.{u}) (hab : a < b) |
| 33 | (F : RicciFlow n M (Icc a b)) |
| 34 | (hsec : ∀ t ∈ Icc a b, (F.connection t).NonnegativeSectionalCurvature) |
| 35 | {t : ℝ} (ht : t ∈ Ioc a b) (x y : M) : |
| 36 | ricciNullity (F.connection t) x = ricciNullity (F.connection t) y := by |
| 37 | exact ricciNullity_eq_of_heatLowerContacts isOpen_univ isConnected_univ F.connection F.smooth |
| 38 | (fun r _ => hC.tensor_calculus n M (F.metric r) (F.connection r)) |
| 39 | (fun r hr z _ v => Finset.sum_nonneg fun i _ => |
| 40 | hsec r hr z v ((F.metric r).orthonormalBasis z i)) |
| 41 | (fun k hk => ricciPartialTrace_continuousOn_prod hC hab F hk) |
| 42 | (fun k hk => ricciPartialTrace_heatLowerContacts hC hab F hk |
| 43 | (fun r hr => hsec r ⟨hr.1.le, hr.2.le⟩)) ht (mem_univ x) (mem_univ y) |
| 44 | |
| 45 | /-- Ricci nullity is nonincreasing on the entire closed slab, including its |
| 46 | initial endpoint, under nonnegative sectional curvature. -/ |
| 47 | theorem ricciNullity_antitoneOn |
| 48 | (hC : RicciFlowCurvatureCalculus.{u}) (hab : a < b) |
| 49 | (F : RicciFlow n M (Icc a b)) |
| 50 | (hsec : ∀ t ∈ Icc a b, (F.connection t).NonnegativeSectionalCurvature) |
| 51 | (x : M) : AntitoneOn (fun t => ricciNullity (F.connection t) x) (Icc a b) := by |
| 52 | exact ricciNullity_antitoneOn_of_heatLowerContacts isOpen_univ isConnected_univ F.connection F.smooth |
| 53 | (fun r _ => hC.tensor_calculus n M (F.metric r) (F.connection r)) |
| 54 | (fun r hr z _ v => Finset.sum_nonneg fun i _ => |
| 55 | hsec r hr z v ((F.metric r).orthonormalBasis z i)) |
| 56 | (fun k hk => ricciPartialTrace_continuousOn_prod hC hab F hk) |
| 57 | (fun k hk => ricciPartialTrace_heatLowerContacts hC hab F hk |
| 58 | (fun r hr => hsec r ⟨hr.1.le, hr.2.le⟩)) (mem_univ x) |
| 59 | |
| 60 | end PoincareMT.RicciFlow.Splitting |