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.Area.MinimalSphere.Round.Metric |
| 2 | import PoincareLib.Geometry.Riemannian.Measure.Green.CompactSupport |
| 3 | |
| 4 | /-! |
| 5 | # Integrating a smooth round Laplacian |
| 6 | |
| 7 | Morgan-Tian Claim 18.12, printed pp. 426-427. M07's actual Green |
| 8 | identity with the constant test function gives a zero integral for |
| 9 | the Laplacian of every smooth function on the closed round sphere. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open MeasureTheory |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | /-- A smooth round-sphere Laplacian is genuinely integrable and has |
| 21 | zero integral. Source: MT Claim 18.12, pp. 426-427, regularized curvature |
| 22 | derivation using the actual Green identity. -/ |
| 23 | theorem m60RoundSphere_integral_laplacian (D : LeviCivitaData m60RoundSphereMetric) |
| 24 | (φ : UnitTwoSphere → ℝ) (hφ : ContMDiff (𝓡 2) 𝓘(ℝ, ℝ) ∞ φ) : |
| 25 | Integrable (D.laplacian φ) m60RoundSphereMetric.volumeMeasure ∧ |
| 26 | (∫ p, D.laplacian φ p ∂m60RoundSphereMetric.volumeMeasure) = 0 := by |
| 27 | have hi := D.integrable_mul_laplacian (contMDiff_const (c := (1 : ℝ))) hφ |
| 28 | (HasCompactSupport.of_compactSpace _) |
| 29 | have hg := D.integral_mul_laplacian_of_sigmaCompact (contMDiff_const (c := (1 : ℝ))) hφ |
| 30 | (HasCompactSupport.of_compactSpace _) |
| 31 | have hgrad (p : UnitTwoSphere) : D.gradient (fun _ => (1 : ℝ)) p = 0 := by |
| 32 | simp [LeviCivitaData.gradient, mvfderiv_const] |
| 33 | simp only [one_mul] at hi hg |
| 34 | refine ⟨hi, ?_⟩ |
| 35 | simpa only [hgrad, map_zero, zero_apply, integral_zero, neg_zero] using hg |
| 36 | |
| 37 | end PoincareMT |