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.Induction.Noncollapse.Assembly.RegularRegion |
| 2 | import PoincareLib.Geometry.RicciFlow.ReducedGeometry.ReducedVolume.Minimum.Compactness.ScalarBound |
| 3 | |
| 4 | /-! |
| 5 | # The scalar trace of an actual noncollapse test |
| 6 | |
| 7 | Morgan--Tian Proposition 16.3, p. 368. The public test bounds the full |
| 8 | curvature norm, rather than the scalar curvature. Its actual zero-time |
| 9 | identity gives the scalar trace bound with the fixed factor nine. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle ENNReal |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M10 |
| 20 | export PoincareMT.ReducedVolume (abs_scalarCurvature_le) |
| 21 | end PoincareMT.M10 |
| 22 | |
| 23 | namespace PoincareMT.Proofs.M46 |
| 24 | |
| 25 | /-- The literal based cylinder transfers the zero-time curvature bound |
| 26 | to the physical terminal ball. -/ |
| 27 | theorem NoncollapseTest.terminal_curvature {F : SurgeryFlowData.{u}} |
| 28 | {O : SurgeryObservation F} (D : NoncollapseTest F O) |
| 29 | {y : (F.slice D.time).carrier} (hy : y ∈ (F.metric D.time).ball D.center D.radius) : |
| 30 | (F.connection D.time).curvatureTensorNorm y ≤ D.radius⁻¹ ^ 2 := by |
| 31 | have hzero : (0 : ℝ) ∈ Icc (-D.radius ^ 2) 0 := ⟨by nlinarith [sq_nonneg D.radius], le_rfl⟩ |
| 32 | have h := D.curvature 0 hzero y hy |
| 33 | have hp : (⟨D.time + 0 / 1, D.cylinder.forward 0 hzero y⟩ : |
| 34 | (t : ℝ) × (F.slice t).carrier) = ⟨D.time, y⟩ := |
| 35 | Sigma.ext (by simp) (D.based hzero y hy) |
| 36 | have hnorm := congrArg (fun p : (t : ℝ) × (F.slice t).carrier => |
| 37 | (F.connection p.1).curvatureTensorNorm p.2) hp |
| 38 | exact hnorm ▸ h |
| 39 | |
| 40 | /-- The coarse scalar trace is uniform at the tested center. -/ |
| 41 | theorem NoncollapseTest.center_scalar_le {F : SurgeryFlowData.{u}} |
| 42 | {O : SurgeryObservation F} (D : NoncollapseTest F O) : |
| 43 | (F.connection D.time).scalarCurvature D.center ≤ 9 * D.radius⁻¹ ^ 2 := by |
| 44 | have hcenter : D.center ∈ (F.metric D.time).ball D.center D.radius := by |
| 45 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : (F.slice D.time).carrier → Type _) := |
| 46 | ⟨(F.metric D.time).toRiemannianMetric⟩ |
| 47 | change Manifold.riemannianEDist (𝓡 3) D.center D.center < ENNReal.ofReal D.radius |
| 48 | simpa only [Manifold.riemannianEDist_self] using |
| 49 | ENNReal.ofReal_pos.mpr D.radius_pos |
| 50 | have htrace := (le_abs_self _).trans |
| 51 | (M10.abs_scalarCurvature_le (F.metric D.time) (F.connection D.time) D.center) |
| 52 | norm_num only [Nat.cast_ofNat, show (3 : ℝ) ^ 2 = 9 by norm_num] at htrace |
| 53 | exact htrace.trans (mul_le_mul_of_nonneg_left (D.terminal_curvature hcenter) (by norm_num)) |
| 54 | |
| 55 | /-- The neck's exact scalar normalization gives the radius hypothesis |
| 56 | of the imported coordinate-patch volume estimate. -/ |
| 57 | theorem canonicalNeck_scale_of_scalar_bound |
| 58 | {M : Type*} [TopologicalSpace M] [MeasurableSpace M] [BorelSpace M] |
| 59 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 60 | {g : RiemannianMetric 3 M} (N : EpsilonNeck g) {s : ℝ} (hs : 0 < s) |
| 61 | (hscalar : N.connection.scalarCurvature N.center ≤ 9 * s⁻¹ ^ 2) : |
| 62 | s ≤ 3 * N.scale := by |
| 63 | have hscale := N.scale_pos |
| 64 | have hnormalize : N.scale⁻¹ ^ 2 = N.connection.scalarCurvature N.center := by |
| 65 | rw [N.scale_eq_scalar, inv_pow, |
| 66 | ← Real.rpow_mul_natCast N.scalar_center_pos.le (-1 / 2) 2] |
| 67 | norm_num [Real.rpow_neg_one] |
| 68 | rw [← hnormalize] at hscalar |
| 69 | have hscaled := mul_le_mul_of_nonneg_right hscalar (sq_nonneg (s * N.scale)) |
| 70 | field_simp [hs.ne', hscale.ne'] at hscaled |
| 71 | nlinarith |
| 72 | |
| 73 | end PoincareMT.Proofs.M46 |