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.Surgery.Singular.RegularLimit.RegularSet |
| 2 | import PoincareLib.Geometry.RicciFlow.Pinching.Bounds |
| 3 | import PoincareLib.Geometry.Riemannian.Curvature.ThreeDimensional |
| 4 | import PoincareLib.Geometry.Riemannian.Curvature.LocalIsometry |
| 5 | |
| 6 | /-! |
| 7 | # Full curvature control on the regular region |
| 8 | |
| 9 | The original Hamilton--Ivey hypothesis converts the scalar bounds near regular |
| 10 | points into full curvature bounds, on the actual fixed reference flow. |
| 11 | Source: Morgan--Tian, Lemma 11.21, p. 280, using Theorem 4.32 and |
| 12 | Corollary 4.33, pp. 79--80. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.SingularTimeAssumptions |
| 23 | |
| 24 | variable {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 26 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 27 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 28 | {F : GeneralizedRicciFlowData.{u}} {T : ℝ} |
| 29 | |
| 30 | /-- Hamilton--Ivey controls full curvature on each original generalized slice. -/ |
| 31 | theorem curvature_norm_le_of_scalar_le (H : SingularTimeAssumptions F T M) |
| 32 | (P04 : RicciFlowCurvatureTheory.{u}) {t B : ℝ} (ht : t ∈ F.interval) |
| 33 | (x : (F.slice t).carrier) (hR : (F.connection t).scalarCurvature x ≤ B) : |
| 34 | (F.connection t).curvatureTensorNorm x ≤ 13 * max B (Real.exp 4) := by |
| 35 | obtain ⟨k1, k2, k3, h12, h23, hleast, hscalar, hnorm⟩ := |
| 36 | (F.connection t).three_dimensional_curvature_spectrum |
| 37 | (P04.tensor_calculus 3 (F.slice t).carrier (F.metric t) (F.connection t)) x |
| 38 | have hpinch : 0 < max (-k3) 0 → |
| 39 | 2 * max (-k3) 0 * (Real.log (max (-k3) 0) + Real.log (1 + t) - 3) ≤ |
| 40 | 2 * (k1 + k2 + k3) := by |
| 41 | intro hX |
| 42 | have h := H.hamilton_ivey_pinching ⟨t, x⟩ ht |
| 43 | simpa [LeviCivitaData.negativeCurvaturePart, hleast, hscalar, |
| 44 | GeneralizedRicciFlowData.scalar] using h (by |
| 45 | simpa [LeviCivitaData.negativeCurvaturePart, hleast] using hX) |
| 46 | rw [hscalar] at hR |
| 47 | exact Poincare.fullNorm_le_of_hamiltonIvey (H.interval_nonnegative ht) |
| 48 | h12 h23 rfl hnorm hR hpinch |
| 49 | |
| 50 | /-- Full curvature bounds transport through the actual reference isometries. -/ |
| 51 | theorem reference_curvature_norm_le_of_scalar_le (H : SingularTimeAssumptions F T M) |
| 52 | (P04 : RicciFlowCurvatureTheory.{u}) {t B : ℝ} |
| 53 | (ht : t ∈ Ico H.reference.tMinus T) (x : M) (hR : H.reference.scalar t x ≤ B) : |
| 54 | (H.reference.flow.connection t).curvatureTensorNorm x ≤ 13 * max B (Real.exp 4) := by |
| 55 | rw [(H.reference.flow.connection t).curvatureTensorNorm_eq_of_local_isometry |
| 56 | (F.connection t) isOpen_univ (H.reference.forward_smooth t ht).contMDiffOn |
| 57 | (fun y _ v w => (H.reference.metric_pullback t ht y v w).symm) (mem_univ x)] |
| 58 | apply H.curvature_norm_le_of_scalar_le P04 (H.reference.window_subset ht) |
| 59 | simpa only [H.reference.scalar_pullback, SingularTimeReference.scalar] using hR |
| 60 | |
| 61 | /-- Each regular point has an open neighborhood with bounded full curvature |
| 62 | on one common final time interval. -/ |
| 63 | theorem exists_open_uniform_curvature_tail (H : SingularTimeAssumptions F T M) |
| 64 | (P04 : RicciFlowCurvatureTheory.{u}) {x : M} (hx : x ∈ H.reference.regularLimitSet) : |
| 65 | ∃ (s K : ℝ) (U : Set M), H.reference.tMinus < s ∧ s < T ∧ 0 < K ∧ |
| 66 | IsOpen U ∧ x ∈ U ∧ U ⊆ H.reference.regularLimitSet ∧ |
| 67 | ∀ t ∈ Ico s T, ∀ y ∈ U, |
| 68 | (H.reference.flow.connection t).curvatureTensorNorm y ≤ K := by |
| 69 | obtain ⟨s, B, U, hs, hsT, _, hU, hxU, hsub, hbound⟩ := |
| 70 | H.exists_open_uniform_scalar_tail P04 hx |
| 71 | refine ⟨s, 13 * max B (Real.exp 4), U, hs, hsT, ?_, hU, hxU, hsub, ?_⟩ |
| 72 | · positivity |
| 73 | · intro t ht y hy |
| 74 | exact H.reference_curvature_norm_le_of_scalar_le P04 ⟨hs.le.trans ht.1, ht.2⟩ y |
| 75 | (hbound t ht y hy) |
| 76 | |
| 77 | end PoincareMT.SingularTimeAssumptions |