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.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Cylinder.Jets.CylinderJetNorm |
| 3 | |
| 4 | /-! |
| 5 | # Exact inverse-Gram bounds across the longer cylinder time window |
| 6 | |
| 7 | At nonpositive times the literal model's inverse angular weights decrease. |
| 8 | The two retained comparison times zero and minus one half therefore control |
| 9 | every covariant slot over the longer window, with the explicit factor `2^r`. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle BigOperators |
| 16 | |
| 17 | namespace PoincareMT.M35 |
| 18 | |
| 19 | /-- Earlier literal-cylinder time decreases the intrinsic norm of any |
| 20 | fixed covariant tensor, because each inverse-Gram slot weight decreases. -/ |
| 21 | theorem roundCylinderTensorNormSquared_mono_time {u v : ℝ} |
| 22 | (huv : u ≤ v) (hv : v < 1) (q : UnitTwoSphere) (s : ℝ) |
| 23 | {r : ℕ} (T : (Fin r → Fin 3) → ℝ) : |
| 24 | roundCylinderTensorNormSquared u (chartAt (EuclideanSpace ℝ (Fin 2)) q) |
| 25 | (chartAt (EuclideanSpace ℝ (Fin 2)) q q, s) T ≤ |
| 26 | roundCylinderTensorNormSquared v (chartAt (EuclideanSpace ℝ (Fin 2)) q) |
| 27 | (chartAt (EuclideanSpace ℝ (Fin 2)) q q, s) T := by |
| 28 | have hu : u < 1 := huv.trans_lt hv |
| 29 | have hw (a : Fin 3) : |
| 30 | ![(2 * (1 - u))⁻¹, (2 * (1 - u))⁻¹, 1] a ≤ |
| 31 | ![(2 * (1 - v))⁻¹, (2 * (1 - v))⁻¹, 1] a := by |
| 32 | have h := inv_anti₀ (show 0 < 2 * (1 - v) by linarith) |
| 33 | (show 2 * (1 - v) ≤ 2 * (1 - u) by linarith) |
| 34 | fin_cases a |
| 35 | · simpa using h |
| 36 | · simpa using h |
| 37 | · exact le_rfl |
| 38 | rw [roundCylinderTensorNormSquared_center hu, roundCylinderTensorNormSquared_center hv] |
| 39 | apply Finset.sum_le_sum |
| 40 | intro a _ |
| 41 | apply mul_le_mul_of_nonneg_right _ (sq_nonneg (T a)) |
| 42 | exact Finset.prod_le_prod (fun i _ => (roundCylinderInverseWeight_pos hu (a i)).le) |
| 43 | (fun i _ => hw (a i)) |
| 44 | |
| 45 | /-- Comparing the two retained times costs at most a factor two in each |
| 46 | covariant slot, including all derivative slots. -/ |
| 47 | theorem roundCylinderTensorNormSquared_zero_le_half (q : UnitTwoSphere) (s : ℝ) |
| 48 | {r : ℕ} (T : (Fin r → Fin 3) → ℝ) : |
| 49 | roundCylinderTensorNormSquared 0 (chartAt (EuclideanSpace ℝ (Fin 2)) q) |
| 50 | (chartAt (EuclideanSpace ℝ (Fin 2)) q q, s) T ≤ |
| 51 | 2 ^ r * roundCylinderTensorNormSquared (-1 / 2) |
| 52 | (chartAt (EuclideanSpace ℝ (Fin 2)) q) |
| 53 | (chartAt (EuclideanSpace ℝ (Fin 2)) q q, s) T := by |
| 54 | have hw (a : Fin 3) : |
| 55 | ![(2 * (1 - (0 : ℝ)))⁻¹, (2 * (1 - (0 : ℝ)))⁻¹, 1] a ≤ |
| 56 | 2 * ![(2 * (1 - (-1 / 2 : ℝ)))⁻¹, (2 * (1 - (-1 / 2 : ℝ)))⁻¹, 1] a := by |
| 57 | fin_cases a <;> norm_num |
| 58 | rw [roundCylinderTensorNormSquared_center zero_lt_one, |
| 59 | roundCylinderTensorNormSquared_center (by norm_num : (-1 / 2 : ℝ) < 1), |
| 60 | Finset.mul_sum] |
| 61 | apply Finset.sum_le_sum |
| 62 | intro a _ |
| 63 | have hprod := Finset.prod_le_prod |
| 64 | (s := (Finset.univ : Finset (Fin r))) |
| 65 | (fun i _ => (roundCylinderInverseWeight_pos zero_lt_one (a i)).le) |
| 66 | (fun i _ => hw (a i)) |
| 67 | have hprod' : (∏ i : Fin r, ![(2 * (1 - (0 : ℝ)))⁻¹, |
| 68 | (2 * (1 - (0 : ℝ)))⁻¹, 1] (a i)) ≤ |
| 69 | 2 ^ r * ∏ i : Fin r, ![(2 * (1 - (-1 / 2 : ℝ)))⁻¹, |
| 70 | (2 * (1 - (-1 / 2 : ℝ)))⁻¹, 1] (a i) := by |
| 71 | simpa only [Finset.prod_mul_distrib, Finset.prod_const, Finset.card_univ, |
| 72 | Fintype.card_fin] using hprod |
| 73 | simpa only [mul_assoc] using mul_le_mul_of_nonneg_right hprod' (sq_nonneg (T a)) |
| 74 | |
| 75 | /-- The actual squared tensor norm obeys the elementary two-term |
| 76 | estimate, retaining its positive weights in every covariant slot. -/ |
| 77 | theorem roundCylinderTensorNormSquared_linear_le {u : ℝ} (hu : u < 1) |
| 78 | (q : UnitTwoSphere) (s A B : ℝ) {r : ℕ} (T S : (Fin r → Fin 3) → ℝ) : |
| 79 | roundCylinderTensorNormSquared u (chartAt (EuclideanSpace ℝ (Fin 2)) q) |
| 80 | (chartAt (EuclideanSpace ℝ (Fin 2)) q q, s) (fun a => A * T a + B * S a) ≤ |
| 81 | 2 * A ^ 2 * roundCylinderTensorNormSquared u |
| 82 | (chartAt (EuclideanSpace ℝ (Fin 2)) q) |
| 83 | (chartAt (EuclideanSpace ℝ (Fin 2)) q q, s) T + |
| 84 | 2 * B ^ 2 * roundCylinderTensorNormSquared u |
| 85 | (chartAt (EuclideanSpace ℝ (Fin 2)) q) |
| 86 | (chartAt (EuclideanSpace ℝ (Fin 2)) q q, s) S := by |
| 87 | simp only [roundCylinderTensorNormSquared_center hu, Finset.mul_sum, |
| 88 | ← Finset.sum_add_distrib] |
| 89 | apply Finset.sum_le_sum |
| 90 | intro a _ |
| 91 | have hw : 0 ≤ ∏ i, ![(2 * (1 - u))⁻¹, (2 * (1 - u))⁻¹, 1] (a i) := |
| 92 | Finset.prod_nonneg (fun i _ => (roundCylinderInverseWeight_pos hu (a i)).le) |
| 93 | have hsquare : (A * T a + B * S a) ^ 2 ≤ |
| 94 | 2 * A ^ 2 * T a ^ 2 + 2 * B ^ 2 * S a ^ 2 := by |
| 95 | nlinarith only [sq_nonneg (A * T a - B * S a)] |
| 96 | convert mul_le_mul_of_nonneg_left hsquare hw using 1 |
| 97 | ring |
| 98 | |
| 99 | end PoincareMT.M35 |