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.Configuration |
| 2 | |
| 3 | /-! |
| 4 | # Restrict the uniform Theorem 8.1 constant |
| 5 | |
| 6 | Morgan--Tian Proposition 16.3 and the completion of Proposition 16.1, |
| 7 | pp. 368 and 394. A canonical-neighborhood constant can be included in the |
| 8 | uniform package before choosing the next surgery radius or a flow. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open Set MeasureTheory |
| 14 | open scoped Manifold ContDiff Bundle ENNReal |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.Proofs.M46 |
| 19 | |
| 20 | /-- Decreasing the positive constant preserves every actual configuration |
| 21 | estimate. All geometric quantifiers remain inside the package. -/ |
| 22 | def restrictUniformConstant {n : ℕ} {taubar l0 V : ℝ} |
| 23 | (U : M15GeneralizedUniformData.{u} n taubar l0 V) |
| 24 | (k : ℝ) (hk : 0 < k) (hkU : k ≤ U.kappa) : |
| 25 | M15GeneralizedUniformData.{u} n taubar l0 V where |
| 26 | taubar_pos := U.taubar_pos |
| 27 | l₀_pos := U.l₀_pos |
| 28 | V_pos := U.V_pos |
| 29 | kappa := k |
| 30 | kappa_pos := hk |
| 31 | estimate := by |
| 32 | intro X _ time I G T x E r J C _ _ _ _ _ B Q |
| 33 | exact (ENNReal.ofReal_le_ofReal |
| 34 | (mul_le_mul_of_nonneg_right hkU (pow_nonneg B.radius_pos.le n))).trans |
| 35 | (U.estimate X time I G T x E r J C B Q) |
| 36 | |
| 37 | /-- Include the canonical-volume constant without changing the order of |
| 38 | the choices in Proposition 16.1. -/ |
| 39 | noncomputable def canonicalUniformData {taubar l0 V : ℝ} |
| 40 | (U : M15GeneralizedUniformData.{u} 3 taubar l0 V) |
| 41 | (kCan : ℝ) (hkCan : 0 < kCan) : |
| 42 | M15GeneralizedUniformData.{u} 3 taubar l0 V := |
| 43 | restrictUniformConstant U (min U.kappa (8 * kCan)) |
| 44 | (lt_min U.kappa_pos (mul_pos (by norm_num) hkCan)) (min_le_left _ _) |
| 45 | |
| 46 | /-- The half-radius loss has already been included in the canonical bound. -/ |
| 47 | theorem configurationKappa_le_canonical {K : MetricSurgeryConstants} |
| 48 | (p : SurgeryParameterPrefix K) {taubar l0 V : ℝ} |
| 49 | (U : M15GeneralizedUniformData.{u} 3 taubar l0 V) |
| 50 | (kCan : ℝ) (hkCan : 0 < kCan) : |
| 51 | configurationKappa p (canonicalUniformData U kCan hkCan) ≤ kCan := by |
| 52 | apply (configurationKappa_le_uniform p _).trans |
| 53 | change min U.kappa (8 * kCan) / 8 ≤ kCan |
| 54 | have h := min_le_right U.kappa (8 * kCan) |
| 55 | linarith |
| 56 | |
| 57 | end PoincareMT.Proofs.M46 |