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.Existence.Lifetime.CanonicalGeometry.StrongNeckComparison |
| 2 | |
| 3 | /-! |
| 4 | # Actual covariant component bounds from the frozen neck comparison |
| 5 | |
| 6 | The diagonal inverse Gram at the chosen chart center dominates every |
| 7 | component square. Positivity then extracts each finite derivative level |
| 8 | from the literal frozen sum, on the entire open cylinder. |
| 9 | Source: Morgan--Tian Proposition 9.79(3), p. 234, and Theorem 12.28, |
| 10 | pp. 323-324; cap-persistence-implementation.md, section 3. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff BigOperators |
| 17 | |
| 18 | namespace PoincareMT.M34 |
| 19 | |
| 20 | local notation "E₂" => EuclideanSpace ℝ (Fin 2) |
| 21 | |
| 22 | /-- Every covariant component is controlled by its actual frozen norm |
| 23 | at a chosen chart center, with the rank-dependent diagonal weight. -/ |
| 24 | theorem capPersistence_component_sq_le (q : UnitTwoSphere) (s : ℝ) {r : ℕ} |
| 25 | (T : (Fin r → Fin 3) → ℝ) (a : Fin r → Fin 3) : |
| 26 | (1 / 2 : ℝ) ^ r * T a ^ 2 ≤ |
| 27 | roundCylinderTensorNormSquared 0 (chartAt E₂ q) (chartAt E₂ q q, s) T := by |
| 28 | classical |
| 29 | unfold roundCylinderTensorNormSquared |
| 30 | rw [roundCylinderGram_chart_center_inv (by norm_num : (0 : ℝ) ≠ 1), |
| 31 | diagonal_tensor_contraction] |
| 32 | let d : Fin 3 → ℝ := ![(2 * (1 - (0 : ℝ)))⁻¹, (2 * (1 - (0 : ℝ)))⁻¹, 1] |
| 33 | have hd (i : Fin 3) : (1 / 2 : ℝ) ≤ d i := by fin_cases i <;> norm_num [d] |
| 34 | have hd0 (i : Fin 3) : 0 ≤ d i := (by norm_num : (0 : ℝ) ≤ 1 / 2).trans (hd i) |
| 35 | have hp : (1 / 2 : ℝ) ^ r ≤ ∏ i, d (a i) := by |
| 36 | have hp0 (i : Fin r) (_hi : i ∈ (Finset.univ : Finset (Fin r))) : |
| 37 | (0 : ℝ) ≤ 1 / 2 := by norm_num |
| 38 | simpa only [Finset.prod_const, Finset.card_univ, Fintype.card_fin] using |
| 39 | (Finset.prod_le_prod hp0 (fun i _ => hd (a i))) |
| 40 | exact (mul_le_mul_of_nonneg_right hp (sq_nonneg _)).trans |
| 41 | (Finset.single_le_sum (fun b _ => |
| 42 | mul_nonneg (Finset.prod_nonneg fun i _ => hd0 (b i)) (sq_nonneg _)) |
| 43 | (Finset.mem_univ a)) |
| 44 | |
| 45 | /-- The actual neck comparison bounds every recorded covariant array |
| 46 | through a finite order on the full open old cylinder. -/ |
| 47 | theorem capPersistence_iterated_component_bound {delta : ℝ} {B : RoundCylinderTwoTensor} |
| 48 | (hB : RoundCylinderClose delta 0 B) (N : ℕ) (hN : N ≤ Nat.floor delta⁻¹) |
| 49 | (q : UnitTwoSphere) {s : ℝ} (hs : s ∈ Ioo (-delta⁻¹) delta⁻¹) |
| 50 | (k : ℕ) (hk : k ≤ N) (a : Fin (2 + k) → Fin 3) : |
| 51 | |roundCylinderIteratedDerivative 0 (chartAt E₂ q) B k (chartAt E₂ q q, s) a| ≤ |
| 52 | Real.sqrt (delta ^ 2 / (1 / 2 : ℝ) ^ (2 + N)) := by |
| 53 | obtain ⟨_, b, hb, hbound⟩ := hB |
| 54 | have hterm : roundCylinderTensorNormSquared 0 (chartAt E₂ q) (chartAt E₂ q q, s) |
| 55 | (roundCylinderIteratedDerivative 0 (chartAt E₂ q) B k (chartAt E₂ q q, s)) ≤ |
| 56 | delta ^ 2 := by |
| 57 | apply le_trans (Finset.single_le_sum (fun j _ => |
| 58 | roundCylinderTensorNormSquared_chart_center_nonneg (by norm_num : (0 : ℝ) < 1) |
| 59 | q s (roundCylinderIteratedDerivative 0 (chartAt E₂ q) B j (chartAt E₂ q q, s))) |
| 60 | (Finset.mem_range.mpr (Nat.lt_succ_of_le (hk.trans hN)))) |
| 61 | exact (hbound (q, s) hs).trans hb.le |
| 62 | have hp : 0 < (1 / 2 : ℝ) ^ (2 + N) := pow_pos (by norm_num) _ |
| 63 | have hpow : (1 / 2 : ℝ) ^ (2 + N) ≤ (1 / 2 : ℝ) ^ (2 + k) := |
| 64 | pow_le_pow_of_le_one (by norm_num) (by norm_num) (Nat.add_le_add_left hk 2) |
| 65 | have hsq : (roundCylinderIteratedDerivative 0 (chartAt E₂ q) B k |
| 66 | (chartAt E₂ q q, s) a) ^ 2 ≤ delta ^ 2 / (1 / 2 : ℝ) ^ (2 + N) := by |
| 67 | apply (le_div_iff₀ hp).mpr |
| 68 | rw [mul_comm] |
| 69 | exact (mul_le_mul_of_nonneg_right hpow (sq_nonneg _)).trans |
| 70 | ((capPersistence_component_sq_le q s _ a).trans hterm) |
| 71 | simpa only [Real.sqrt_sq_eq_abs] using Real.sqrt_le_sqrt hsq |
| 72 | |
| 73 | end PoincareMT.M34 |