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.Harnack.Noncompact.AncientVolume.Differential |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Nonflatness |
| 4 | import PoincareLib.Geometry.RicciFlow.Harnack.Path.Comparison |
| 5 | import PoincareLib.Geometry.Riemannian.Distance.Basic |
| 6 | |
| 7 | /-! |
| 8 | # Scalar positivity for globally bounded ancient flows |
| 9 | |
| 10 | Backward persistence of nonflatness supplies a positive scalar value on a |
| 11 | strictly earlier slice. A smooth path joins that point to any prescribed |
| 12 | point on the chosen slice. Integrating the bounded ancient differential |
| 13 | Harnack estimate along the path gives a strictly positive scalar lower bound. |
| 14 | |
| 15 | Source: Morgan--Tian, Corollary 4.39, printed p. 81, and Theorem 4.40, |
| 16 | printed p. 82. This provides the positivity used in Kleiner--Lott |
| 17 | (corrected 2013), Proposition 41.13, printed p. 2678. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | open Set |
| 24 | open scoped Manifold ContDiff Bundle ENNReal |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | namespace PoincareMT.RicciFlow |
| 29 | |
| 30 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] |
| 31 | [SecondCountableTopology M] [ConnectedSpace M] [NoncompactSpace M] |
| 32 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 33 | |
| 34 | omit [SecondCountableTopology M] [NoncompactSpace M] in |
| 35 | private theorem exists_smooth_path_on_interval |
| 36 | (g : RiemannianMetric n M) (p x : M) {a b : ℝ} (hab : a < b) : |
| 37 | ∃ γ : ℝ → M, γ a = p ∧ γ b = x ∧ |
| 38 | ContMDiff (𝓘(ℝ, ℝ)) (𝓡 n) 1 γ := by |
| 39 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 40 | ⟨g.toRiemannianMetric⟩ |
| 41 | have hfinite : Manifold.riemannianEDist (𝓡 n) p x < ⊤ := |
| 42 | lt_top_iff_ne_top.mpr (g.edist_ne_top p x) |
| 43 | obtain ⟨γ, hγa, hγb, hγ, _⟩ := |
| 44 | Manifold.exists_lt_locally_constant_of_riemannianEDist_lt hfinite hab |
| 45 | exact ⟨γ, hγa, hγb, hγ⟩ |
| 46 | |
| 47 | /-- A nonflat globally bounded ancient flow with nonnegative curvature |
| 48 | operator has positive scalar curvature at every point and every time. -/ |
| 49 | theorem scalarCurvature_pos_of_bounded_ancient |
| 50 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow n M (Iic 0)) |
| 51 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 52 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 53 | {K : ℝ} (hK : 0 ≤ K) |
| 54 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 55 | (hnonflat : ∃ p : M, 0 < (F.connection 0).scalarCurvature p) : |
| 56 | ∀ t ≤ 0, ∀ x : M, 0 < (F.connection t).scalarCurvature x := by |
| 57 | intro t ht x |
| 58 | obtain ⟨p, hp⟩ := F.scalarCurvature_positive_somewhere_of_bounded_ancient |
| 59 | hC hcomplete hoperator hK hbound hnonflat (t - 1) (by linarith) |
| 60 | obtain ⟨γ, hγa, hγb, hγ⟩ := |
| 61 | exists_smooth_path_on_interval (F.metric t) p x (a := t - 1) (b := t) (by linarith) |
| 62 | have hi := Poincare.Geometry.RicciFlow.Harnack.ancient_integrated_of_differential |
| 63 | hC F hoperator (F.ancient_differential_of_bounded_ancient hC hcomplete hoperator hK hbound) |
| 64 | (by linarith : t - 1 < t) ht γ hγ.contMDiffOn hγa hγb |
| 65 | exact (mul_pos hp (Real.exp_pos _)).trans_le hi |
| 66 | |
| 67 | end PoincareMT.RicciFlow |