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.IntrinsicCollarJets |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.CapGeometry.RadialCylinderJets |
| 4 | |
| 5 | /-! |
| 6 | # Actual angular-profile jets in the literal annulus coordinate |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327. Translation to a diverging true |
| 9 | radial center costs no derivatives. The fixed axial speed contributes |
| 10 | its literal power, so actual intrinsic profile jets give the frozen |
| 11 | cylinder jet error even when the center tends to infinity. |
| 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.Uniqueness |
| 21 | |
| 22 | /-- Theorem 12.32: actual intrinsic angular jets control the literal |
| 23 | frozen cylinder error at a moving annulus point and sphere chart. -/ |
| 24 | theorem intrinsic_annulus_jetError_tendsto_zero |
| 25 | (g : ℕ → RiemannianMetric 3 StandardCapSpace) |
| 26 | (hrotation : ∀ k, ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 27 | ∀ x u v : StandardCapSpace, |
| 28 | (g k).inner (standardRotation A x) |
| 29 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 30 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = (g k).inner x u v) |
| 31 | (hcomplete : ∀ k, MetricComplete (g k)) (a b s : ℕ → ℝ) |
| 32 | (s₀ : ℝ) (q : ℕ → UnitTwoSphere) (order : ℕ) |
| 33 | (hb : Tendsto b atTop (𝓝 1)) (hs : Tendsto s atTop (𝓝 s₀)) |
| 34 | (hjet : ∀ m : ℕ, Tendsto (fun k => iteratedDeriv m |
| 35 | (fun r => intrinsicWarpingRadius (g k) (hrotation k) (hcomplete k) r ^ 2) |
| 36 | (a k + b k * s k)) atTop (𝓝 (if m = 0 then 2 else 0))) : |
| 37 | Tendsto (fun k => roundCylinderJetErrorSquared 0 |
| 38 | (radialCylinderTensor |
| 39 | (fun u => intrinsicWarpingRadius (g k) (hrotation k) (hcomplete k) |
| 40 | (a k + b k * u) ^ 2) (b k)) order (q k, s k)) atTop (𝓝 0) := by |
| 41 | let A k r := intrinsicWarpingRadius (g k) (hrotation k) (hcomplete k) r ^ 2 |
| 42 | let B k u := A k (a k + b k * u) |
| 43 | have hA (k : ℕ) : ContDiff ℝ ∞ (A k) := |
| 44 | (intrinsicWarpingRadius_contDiff (g k) (hrotation k) (hcomplete k)).pow 2 |
| 45 | have hB (k : ℕ) : ContDiff ℝ ∞ (B k) := |
| 46 | (hA k).comp (contDiff_const.add (contDiff_const.mul contDiff_id)) |
| 47 | have hformula (m k : ℕ) : iteratedDeriv m (B k) (s k) = |
| 48 | b k ^ m * iteratedDeriv m (A k) (a k + b k * s k) := by |
| 49 | have hm : (m : ℕ∞ω) ≤ ∞ := by exact_mod_cast le_top (a := (m : ℕ∞)) |
| 50 | have hc : ContDiff ℝ m (fun u => A k (a k + u)) := |
| 51 | ((hA k).comp (contDiff_const.add contDiff_id)).of_le hm |
| 52 | have h := congrFun (iteratedDeriv_comp_const_mul hc (b k)) (s k) |
| 53 | rw [iteratedDeriv_comp_const_add] at h |
| 54 | exact h |
| 55 | have hBjet (m : ℕ) : Tendsto (fun k => iteratedDeriv m (B k) (s k)) |
| 56 | atTop (𝓝 (if m = 0 then 2 else 0)) := by |
| 57 | simp_rw [hformula] |
| 58 | simpa only [one_pow, one_mul] using (hb.pow m).mul (hjet m) |
| 59 | have herr (m : ℕ) : Tendsto |
| 60 | (fun k => iteratedDeriv m (fun u => B k u - 2) (s k)) atTop (𝓝 0) := by |
| 61 | have hm : (m : ℕ∞ω) ≤ ∞ := by exact_mod_cast le_top (a := (m : ℕ∞)) |
| 62 | have heq (k : ℕ) : iteratedDeriv m (fun u => B k u - 2) (s k) = |
| 63 | iteratedDeriv m (B k) (s k) - (if m = 0 then 2 else 0) := by |
| 64 | rw [iteratedDeriv_fun_sub ((hB k).contDiffAt.of_le hm) contDiffAt_const, |
| 65 | iteratedDeriv_const] |
| 66 | simp_rw [heq] |
| 67 | simpa only [sub_self] using (hBjet m).sub_const (if m = 0 then 2 else 0) |
| 68 | apply radialCylinderTensor_jetError_tendsto_zero B b s s₀ q order hs hb |
| 69 | (fun k => (hB k).contDiffAt) |
| 70 | intro m _hm |
| 71 | have h := ((ContinuousMultilinearMap.piFieldEquiv ℝ (Fin m) ℝ).continuous.tendsto 0).comp |
| 72 | (herr m) |
| 73 | simpa only [iteratedFDeriv_eq_equiv_comp, Function.comp_def, map_zero] using h |
| 74 | |
| 75 | end PoincareMT.M35.Uniqueness |