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.CapGeometry.RadialCylinderTensor |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.VanishingMetricErrorJets |
| 4 | |
| 5 | /-! |
| 6 | # Frozen cylinder errors from actual radial-profile errors |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. The literal radial-annulus |
| 9 | tensor has one angular profile and one constant speed. Vanishing finite |
| 10 | profile jets control its actual coefficient errors in every preferred |
| 11 | chart, and hence the full frozen covariant jet norm. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT.M35 |
| 21 | |
| 22 | local notation "V" => RoundCylinderCoordinates |
| 23 | |
| 24 | /-- Theorem 12.32: angular-profile and speed convergence control the |
| 25 | literal frozen error, uniformly with respect to varying sphere centers. -/ |
| 26 | theorem radialCylinderTensor_jetError_tendsto_zero |
| 27 | (A : ℕ → ℝ → ℝ) (b s : ℕ → ℝ) (s₀ : ℝ) (q : ℕ → UnitTwoSphere) |
| 28 | (order : ℕ) (hs : Tendsto s atTop (𝓝 s₀)) (hb : Tendsto b atTop (𝓝 1)) |
| 29 | (hA : ∀ k, ContDiffAt ℝ ∞ (A k) (s k)) |
| 30 | (hjet : ∀ r ≤ order, Tendsto |
| 31 | (fun k => iteratedFDeriv ℝ r (fun y => A k y - 2) (s k)) atTop (𝓝 0)) : |
| 32 | Tendsto (fun k => roundCylinderJetErrorSquared 0 (radialCylinderTensor (A k) (b k)) |
| 33 | order (q k, s k)) atTop (𝓝 0) := by |
| 34 | let p (k : ℕ) : V := (0, s k) |
| 35 | let p₀ : V := (0, s₀) |
| 36 | have hp : Tendsto p atTop (𝓝 p₀) := tendsto_const_nhds.prodMk_nhds hs |
| 37 | have hfixed (h : V → ℝ) (hh : ContDiff ℝ ∞ h) (r : ℕ) : |
| 38 | HasUniformJetBoundsAt r (fun _ : ℕ => h) p := by |
| 39 | intro j _hj |
| 40 | have hc := (hh.contDiffAt.continuousAt_iteratedFDeriv |
| 41 | (by exact_mod_cast le_top (a := (j : ℕ∞)))).tendsto.comp hp |
| 42 | obtain ⟨C, hC⟩ := (Metric.isBounded_range_of_tendsto _ hc).exists_norm_le |
| 43 | exact ⟨C, fun k => hC _ (mem_range_self k)⟩ |
| 44 | let angular (i j : Fin 3) (y : V) := |
| 45 | (roundCylinderGram 0 (chartAt (EuclideanSpace ℝ (Fin 2)) (q 0)) y i j - |
| 46 | (roundCylinderCoordinateBasis i).2 * (roundCylinderCoordinateBasis j).2) / 2 |
| 47 | have hang (i j : Fin 3) : ContDiff ℝ ∞ (angular i j) := |
| 48 | ((contDiff_roundCylinderGram 0 (q 0) i j).sub contDiff_const).div_const 2 |
| 49 | let F k (y : V) := A k y.2 - 2 |
| 50 | have hF (k : ℕ) : ContDiffAt ℝ ∞ (F k) (p k) := |
| 51 | ((hA k).comp (p k) contDiffAt_snd).sub contDiffAt_const |
| 52 | have hFjet (r : ℕ) (hr : r ≤ order) : Tendsto |
| 53 | (fun k => iteratedFDeriv ℝ r (F k) (p k)) atTop (𝓝 0) := by |
| 54 | change Tendsto (fun k => iteratedFDeriv ℝ r |
| 55 | ((fun y => A k y - 2) ∘ (Prod.snd : V → ℝ)) (p k)) atTop (𝓝 0) |
| 56 | apply jet_comp_tendsto_zero_of_bounded (hfixed (Prod.snd : V → ℝ) contDiff_snd r) |
| 57 | (Eventually.of_forall fun _ => contDiffAt_snd) |
| 58 | (Eventually.of_forall fun k => (hA k).sub contDiffAt_const) |
| 59 | exact fun j hj => hjet j (hj.trans hr) |
| 60 | have hbzero : Tendsto (fun k => b k ^ 2 - 1) atTop (𝓝 0) := by |
| 61 | simpa only [one_pow, sub_self] using (hb.pow 2).sub_const 1 |
| 62 | have hcjet (r : ℕ) : Tendsto |
| 63 | (fun k => iteratedFDeriv ℝ r (fun _ : V => b k ^ 2 - 1) (p k)) atTop (𝓝 0) := by |
| 64 | cases r with |
| 65 | | zero => |
| 66 | have h := ((continuousMultilinearCurryFin0 ℝ V ℝ).symm.continuous.tendsto 0).comp |
| 67 | hbzero |
| 68 | simpa only [iteratedFDeriv_zero_eq_comp, Function.comp_def, map_zero] using h |
| 69 | | succ r => |
| 70 | simpa only [iteratedFDeriv_succ_const, Pi.zero_apply] using tendsto_const_nhds |
| 71 | have herr (r : ℕ) (hr : r ≤ order) (i j : Fin 3) : Tendsto |
| 72 | (fun k => iteratedFDeriv ℝ r (fun y => |
| 73 | roundCylinderTensorCoefficient (radialCylinderTensor (A k) (b k)) |
| 74 | (chartAt (EuclideanSpace ℝ (Fin 2)) (q k)) y i j - |
| 75 | roundCylinderGram 0 (chartAt (EuclideanSpace ℝ (Fin 2)) (q k)) y i j) (p k)) |
| 76 | atTop (𝓝 0) := by |
| 77 | let c := (roundCylinderCoordinateBasis i).2 * (roundCylinderCoordinateBasis j).2 |
| 78 | have h1 := jet_bilinear_tendsto_zero_of_bounded (ContinuousLinearMap.mul ℝ ℝ) |
| 79 | (fun l hl => hFjet l (hl.trans hr)) (hfixed (angular i j) (hang i j) r) |
| 80 | (Eventually.of_forall hF) (Eventually.of_forall fun _ => (hang i j).contDiffAt) |
| 81 | have h2 := jet_bilinear_tendsto_zero_of_bounded (ContinuousLinearMap.mul ℝ ℝ) |
| 82 | (fun l _ => hcjet l) (hfixed (fun _ : V => c) contDiff_const r) |
| 83 | (Eventually.of_forall fun _ => contDiffAt_const) |
| 84 | (Eventually.of_forall fun _ => contDiffAt_const) |
| 85 | have hsum := h1.add h2 |
| 86 | simp only [add_zero] at hsum |
| 87 | apply hsum.congr' |
| 88 | filter_upwards [] with k |
| 89 | have heq : (fun y : V => |
| 90 | roundCylinderTensorCoefficient (radialCylinderTensor (A k) (b k)) |
| 91 | (chartAt (EuclideanSpace ℝ (Fin 2)) (q k)) y i j - |
| 92 | roundCylinderGram 0 (chartAt (EuclideanSpace ℝ (Fin 2)) (q k)) y i j) = |
| 93 | (fun y => F k y * angular i j y + (b k ^ 2 - 1) * c) := by |
| 94 | funext y |
| 95 | have h := radialCylinderTensor_coefficient_error (A k) (b k) (q k) (q 0) y i j |
| 96 | simpa only [F, angular, c, mul_assoc] using h |
| 97 | rw [heq] |
| 98 | have horder : (r : ℕ∞ω) ≤ ∞ := by exact_mod_cast le_top (a := (r : ℕ∞)) |
| 99 | exact (fun_iteratedFDeriv_add_apply |
| 100 | (((hF k).mul (hang i j).contDiffAt).of_le horder) |
| 101 | ((contDiffAt_const (c := (b k ^ 2 - 1) * c)).of_le horder)).symm |
| 102 | have h := roundCylinderJetDifferenceSquared_tendsto_zero order |
| 103 | (fun _ => 0) (fun _ => zero_lt_one) 0 zero_lt_one tendsto_const_nhds q |
| 104 | (fun k => radialCylinderTensor (A k) (b k)) (fun _ => RoundCylinderMetric) |
| 105 | s s₀ hs (fun k i j => radialCylinderTensor_coefficient_contDiffAt (b k) (q k) (hA k) i j) |
| 106 | (fun k i j => (contDiff_roundCylinderGram 0 (q k) i j).contDiffAt) herr |
| 107 | simpa only [RoundCylinderMetric, roundCylinderJetDifferenceSquared_model] using h |
| 108 | |
| 109 | end PoincareMT.M35 |