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.ReducedGeometry.ReducedVolume.Basic |
| 2 | import Mathlib.Analysis.SpecialFunctions.Gaussian.FourierTransform |
| 3 | |
| 4 | /-! |
| 5 | # The unnormalized source Gaussian |
| 6 | |
| 7 | The source comparison in Morgan-Tian Proposition 6.78 is |
| 8 | `2^n exp(-|Z|^2)`. Its actual Euclidean integral equals the book's |
| 9 | unnormalized reduced volume, including in dimension zero. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open MeasureTheory |
| 15 | |
| 16 | namespace PoincareMT.ReducedVolume |
| 17 | |
| 18 | /-- The real Gaussian in the actual Euclidean model is integrable in every dimension. -/ |
| 19 | theorem euclideanGaussian_integrable (n : ℕ) : |
| 20 | Integrable (fun Z : EuclideanSpace ℝ (Fin n) ↦ Real.exp (-‖Z‖ ^ 2)) := by |
| 21 | have hc := GaussianFourier.integrable_cexp_neg_mul_sq_norm_add_of_euclideanSpace |
| 22 | (ι := Fin n) (b := 1) (by norm_num) 0 0 |
| 23 | simpa only [zero_mul, add_zero, neg_one_mul, ← Complex.ofReal_pow, |
| 24 | ← Complex.ofReal_neg, RCLike.re_eq_complex_re, Complex.exp_ofReal_re] using hc.re |
| 25 | |
| 26 | /-- The precise source-space majorant used by the unnormalized reduced volume is integrable. -/ |
| 27 | theorem sourceGaussian_integrable (n : ℕ) : |
| 28 | Integrable (fun Z : EuclideanSpace ℝ (Fin n) ↦ (2 : ℝ) ^ n * Real.exp (-‖Z‖ ^ 2)) := |
| 29 | (euclideanGaussian_integrable n).const_mul _ |
| 30 | |
| 31 | /-- The source Gaussian is strictly positive, including on the zero-dimensional model. -/ |
| 32 | theorem sourceGaussian_pos (n : ℕ) (Z : EuclideanSpace ℝ (Fin n)) : |
| 33 | 0 < (2 : ℝ) ^ n * Real.exp (-‖Z‖ ^ 2) := |
| 34 | mul_pos (pow_pos (by norm_num) n) (Real.exp_pos _) |
| 35 | |
| 36 | /-- The source Gaussian has exactly Morgan-Tian's unnormalized Euclidean mass. -/ |
| 37 | theorem integral_sourceGaussian (n : ℕ) : |
| 38 | (∫ Z : EuclideanSpace ℝ (Fin n), (2 : ℝ) ^ n * Real.exp (-‖Z‖ ^ 2)) = |
| 39 | euclideanReducedVolume n := by |
| 40 | have hgauss : (∫ Z : EuclideanSpace ℝ (Fin n), Real.exp (-‖Z‖ ^ 2)) = |
| 41 | Real.pi ^ ((n : ℝ) / 2) := by |
| 42 | simpa only [neg_one_mul, div_one, finrank_euclideanSpace, Fintype.card_fin] using |
| 43 | (GaussianFourier.integral_rexp_neg_mul_sq_norm (V := EuclideanSpace ℝ (Fin n)) |
| 44 | (b := 1) (by norm_num)) |
| 45 | have hfour : (4 : ℝ) ^ ((n : ℝ) / 2) = (2 : ℝ) ^ n := by |
| 46 | rw [show (4 : ℝ) = (2 : ℝ) ^ (2 : ℝ) by norm_num, |
| 47 | ← Real.rpow_mul (by norm_num), show (2 : ℝ) * ((n : ℝ) / 2) = (n : ℝ) by ring, |
| 48 | Real.rpow_natCast] |
| 49 | rw [integral_const_mul, hgauss] |
| 50 | delta euclideanReducedVolume |
| 51 | rw [Real.rpow_eq_pow, Real.mul_rpow (by norm_num) Real.pi_pos.le, hfour] |
| 52 | |
| 53 | end PoincareMT.ReducedVolume |