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.Coordinates.CapPersistenceCylinderOrdinaryJets |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Analysis.CanonicalGeometry.NeckCovariantArrayBounds |
| 3 | |
| 4 | /-! |
| 5 | # Direct finite ordinary-to-intrinsic cylinder error at time zero |
| 6 | |
| 7 | The actual finite covariant recurrence and direct model connection |
| 8 | bounds control the frozen tensor error at every height. No compact |
| 9 | height interval or external cylinder model lemma is needed. |
| 10 | Source: Morgan--Tian Proposition 9.79(3), p. 234, and Theorem 12.28, |
| 11 | pp. 323-324; cap-persistence-implementation.md, section 3. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Topology BigOperators |
| 18 | |
| 19 | namespace PoincareMT.M34 |
| 20 | |
| 21 | local notation "E₂" => EuclideanSpace ℝ (Fin 2) |
| 22 | |
| 23 | /-- Finite ordinary coefficient-error jets bound the actual frozen |
| 24 | intrinsic error at a chosen chart center. The common constant precedes |
| 25 | the tensor, center, every real height and requested error size. -/ |
| 26 | theorem capPersistence_exists_intrinsic_error_bound (N : ℕ) : |
| 27 | ∃ C : ℝ, 0 ≤ C ∧ ∀ (B : RoundCylinderTwoTensor) (q : UnitTwoSphere) (s : ℝ), |
| 28 | (∀ a b : Fin 3, ContDiffAt ℝ ∞ (fun y => |
| 29 | roundCylinderTensorCoefficient B (chartAt E₂ q) y a b) (0, s)) → |
| 30 | ∀ A : ℝ, 0 ≤ A → |
| 31 | (∀ j ≤ N, ∀ a b : Fin 3, ‖iteratedFDeriv ℝ j (fun y => |
| 32 | roundCylinderTensorCoefficient B (chartAt E₂ q) y a b - |
| 33 | roundCylinderGram 0 (chartAt E₂ q) y a b) (0, s)‖ ≤ A) → |
| 34 | roundCylinderJetErrorSquared 0 B N (q, s) ≤ C * A ^ 2 := by |
| 35 | obtain ⟨D, hD, hDb⟩ := capPersistence_exists_modelChristoffel_center_jet_bound |
| 36 | (by norm_num : (0 : ℝ) < 1) N |
| 37 | let L : ℝ := max 1 ((∑ i : Fin 3, |
| 38 | ‖ContinuousLinearMap.apply ℝ ℝ (roundCylinderCoordinateBasis i)‖) + |
| 39 | (2 + N : ℕ) * 3 * (2 : ℝ) ^ N * D) |
| 40 | have hL : 1 ≤ L := le_max_left _ _ |
| 41 | let W : ℝ := ∑ k ∈ Finset.range (N + 1), ((3 : ℝ) ^ (2 + k)) ^ 2 |
| 42 | have hW : 0 ≤ W := Finset.sum_nonneg fun k _ => sq_nonneg _ |
| 43 | refine ⟨W * (L ^ N) ^ 2, mul_nonneg hW (sq_nonneg _), ?_⟩ |
| 44 | intro B q s hBs A hA hb |
| 45 | let x : RoundCylinderCoordinates := (0, s) |
| 46 | let T := roundCylinderIteratedDerivative 0 (chartAt E₂ q) B |
| 47 | have hTs (k : ℕ) (_hk : k ≤ N) (a : Fin (2 + k) → Fin 3) : |
| 48 | ContDiffAt ℝ ∞ (fun y => T k y a) x := |
| 49 | capPersistence_iterated_contDiffAt (by norm_num) q hBs k a |
| 50 | have hΓ (j : ℕ) (hj : j ≤ N) (a b d : Fin 3) : |
| 51 | ‖iteratedFDeriv ℝ j (fun y => |
| 52 | roundCylinderChristoffel 0 (chartAt E₂ q) y a b d) x‖ ≤ D := by |
| 53 | simpa only [sphere_chart_center_zero] using hDb q s j hj a b d |
| 54 | have hcomponent (k : ℕ) (hk : k ≤ N) (a : Fin (2 + k) → Fin 3) : |
| 55 | |T k x a| ≤ L ^ N * A := by |
| 56 | have hh := norm_covariantArray_jet_le_of_total_order roundCylinderCoordinateBasis |
| 57 | 2 N x (roundCylinderChristoffel 0 (chartAt E₂ q)) T |
| 58 | (fun i j d => (capPersistence_modelChristoffel_contDiff |
| 59 | (by norm_num : (0 : ℝ) < 1) q i j d).contDiffAt) hTs |
| 60 | (fun _ _ _ => Filter.Eventually.of_forall fun _ => rfl) hD hL hA |
| 61 | (by simpa only [Fintype.card_fin, Nat.cast_ofNat] using (le_max_right 1 _ : _ ≤ L)) |
| 62 | hΓ (fun j hj a => hb j hj (a 0) (a 1)) k 0 (by simpa using hk) a |
| 63 | simpa only [norm_iteratedFDeriv_zero, Real.norm_eq_abs] using |
| 64 | hh.trans (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ hL hk) hA) |
| 65 | have hinv (i j : Fin 3) : |
| 66 | |(roundCylinderGram 0 (chartAt E₂ q) (chartAt E₂ q q, s))⁻¹ i j| ≤ 1 := by |
| 67 | have hh := roundCylinderGram_chart_center_inv_le (by norm_num : (0 : ℝ) < 1) |
| 68 | (show (0 : ℝ) ∈ Icc (0 : ℝ) 0 from ⟨le_rfl, le_rfl⟩) q s i j |
| 69 | have hm : max (1 : ℝ) ((2 * (1 - (0 : ℝ)))⁻¹) = 1 := by norm_num |
| 70 | rwa [hm] at hh |
| 71 | have he := roundCylinderJetErrorSquared_le (B := B) (order := N) (z := (q, s)) |
| 72 | zero_le_one hinv (fun k hk a => by |
| 73 | simpa only [sphere_chart_center_zero] using hcomponent k hk a) |
| 74 | simp only [one_pow, mul_one] at he |
| 75 | calc |
| 76 | _ ≤ ∑ k ∈ Finset.range (N + 1), ((3 : ℝ) ^ (2 + k)) ^ 2 * (L ^ N * A) ^ 2 := he |
| 77 | _ = W * (L ^ N * A) ^ 2 := (Finset.sum_mul ..).symm |
| 78 | _ = _ := by ring |
| 79 | |
| 80 | end PoincareMT.M34 |