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.Riemannian.MinimalSurface.Sphere.Analysis.Logarithm.Laplacian |
| 2 | import PoincareLib.Geometry.RicciFlow.Area.MinimalSphere.Round.Green |
| 3 | import PoincareLib.Geometry.RicciFlow.Area.MinimalSphere.Round.Volume |
| 4 | import PoincareLib.Geometry.Riemannian.Measure.LocalFinite |
| 5 | |
| 6 | /-! |
| 7 | # Integrating the regularized curvature inequality |
| 8 | |
| 9 | Morgan-Tian Claim 18.12, printed pp. 426-427, regularized curvature |
| 10 | derivation. This analytic reduction retains the geometric differential |
| 11 | inequality as an explicit hypothesis. Every integral is genuinely integrable. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open MeasureTheory Filter |
| 18 | open scoped Manifold ContDiff |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /-- A regular-locus curvature differential inequality gives the required |
| 23 | 4*pi integral bound on the unit round sphere. Source: MT Claim 18.12, |
| 24 | pp. 426-427, regularized curvature derivation. -/ |
| 25 | theorem m60RoundSphere_curvature_integral_of_differential_inequality |
| 26 | (D : LeviCivitaData m60RoundSphereMetric) {q k : UnitTwoSphere → ℝ} |
| 27 | (hq : ContMDiff (𝓡 2) 𝓘(ℝ, ℝ) ∞ q) (hnonneg : ∀ p, 0 ≤ q p) |
| 28 | (hpos : ∀ᵐ p ∂m60RoundSphereMetric.volumeMeasure, 0 < q p) |
| 29 | (hk : Integrable k m60RoundSphereMetric.volumeMeasure) |
| 30 | (hreg : ∀ p, 0 < q p → |
| 31 | M04.scalarGradientSq m60RoundSphereMetric q p / q p + 2 * q p - |
| 32 | 2 * q p * k p ≤ D.laplacian q p) : |
| 33 | 4 * Real.pi ≤ ∫ p, k p ∂m60RoundSphereMetric.volumeMeasure := by |
| 34 | rw [← m60RoundSphereMetric_volume_univ] |
| 35 | apply M60.measure_le_integral_of_regularized_ratios hq.continuous.aemeasurable hpos hk |
| 36 | intro ε he |
| 37 | let r : UnitTwoSphere → ℝ := fun p => q p / (q p + ε) |
| 38 | have hden (p : UnitTwoSphere) : 0 < q p + ε := |
| 39 | add_pos_of_nonneg_of_pos (hnonneg p) he |
| 40 | have hr : Continuous r := hq.continuous.div (hq.continuous.add continuous_const) |
| 41 | (fun p => (hden p).ne') |
| 42 | have hr0 (p : UnitTwoSphere) : 0 ≤ r p := div_nonneg (hnonneg p) (hden p).le |
| 43 | have hr1 (p : UnitTwoSphere) : r p ≤ 1 := |
| 44 | (div_le_one (hden p)).mpr (le_add_of_nonneg_right he.le) |
| 45 | have hri : Integrable r m60RoundSphereMetric.volumeMeasure := |
| 46 | hr.integrable_of_hasCompactSupport (HasCompactSupport.of_compactSpace _) |
| 47 | have hki : Integrable (fun p => r p * k p) m60RoundSphereMetric.volumeMeasure := |
| 48 | hk.bdd_mul hr.aestronglyMeasurable (Eventually.of_forall fun p => by |
| 49 | rw [Real.norm_of_nonneg (hr0 p)] |
| 50 | exact hr1 p) |
| 51 | have hlog : ContMDiff (𝓡 2) 𝓘(ℝ, ℝ) ∞ (fun p => Real.log (q p + ε)) := by |
| 52 | intro p |
| 53 | exact (Real.contDiffAt_log.mpr (hden p).ne').contMDiffAt.comp p |
| 54 | ((hq p).add contMDiffAt_const) |
| 55 | obtain ⟨hLi, hL0⟩ := m60RoundSphere_integral_laplacian D _ hlog |
| 56 | have hi := integral_mono ((hri.const_mul 2).sub (hki.const_mul 2)) hLi |
| 57 | (fun p => show 2 * r p - 2 * (r p * k p) ≤ |
| 58 | D.laplacian (fun y => Real.log (q y + ε)) p from by |
| 59 | convert! M60.laplacian_log_add_lower_bound D hq hnonneg hreg he p using 1 |
| 60 | dsimp [r] |
| 61 | ring) |
| 62 | simp only [Pi.sub_apply] at hi |
| 63 | rw [integral_sub (hri.const_mul 2) (hki.const_mul 2), |
| 64 | integral_const_mul, integral_const_mul, hL0] at hi |
| 65 | change (∫ p, r p ∂m60RoundSphereMetric.volumeMeasure) ≤ |
| 66 | ∫ p, r p * k p ∂m60RoundSphereMetric.volumeMeasure |
| 67 | linarith |
| 68 | |
| 69 | end PoincareMT |