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.IntrinsicRadialVariation |
| 3 | |
| 4 | /-! |
| 5 | # The actual cylindrical angular coefficient throughout a bounded collar |
| 6 | |
| 7 | Morgan-Tian Theorem 12.32, pp. 326-327. Concavity propagates the actual |
| 8 | scalar-normalized central orbit-radius limit across any fixed intrinsic |
| 9 | collar. The evaluation radius may move arbitrarily within that collar. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | namespace PoincareMT.M35.Uniqueness |
| 19 | |
| 20 | /-- Theorem 12.32: the actual squared angular coefficient has the |
| 21 | same cylindrical limit at every moving radius in a bounded collar. -/ |
| 22 | theorem intrinsic_collar_orbit_sq_tendsto_two |
| 23 | (g : ℕ → RiemannianMetric 3 StandardCapSpace) |
| 24 | (hrotation : ∀ k, ∀ A : Matrix.specialOrthogonalGroup (Fin 3) ℝ, |
| 25 | ∀ x u v : StandardCapSpace, |
| 26 | (g k).inner (standardRotation A x) |
| 27 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x u) |
| 28 | (mfderiv (𝓡 3) (𝓡 3) (standardRotation A) x v) = (g k).inner x u v) |
| 29 | (hcomplete : ∀ k, MetricComplete (g k)) (D : ∀ k, LeviCivitaData (g k)) |
| 30 | (hsec : ∀ k, (D k).NonnegativeSectionalCurvature) |
| 31 | (a b : ℕ → ℝ) (ha : Tendsto a atTop atTop) |
| 32 | (hcenter : Tendsto (fun k => |
| 33 | intrinsicWarpingRadius (g k) (hrotation k) (hcomplete k) (a k) ^ 2) atTop (𝓝 2)) |
| 34 | {L : ℝ} (hL : 0 ≤ L) (hcollar : ∀ᶠ k in atTop, |b k - a k| ≤ L) : |
| 35 | Tendsto (fun k => intrinsicWarpingRadius (g k) (hrotation k) (hcomplete k) (b k) ^ 2) |
| 36 | atTop (𝓝 2) := by |
| 37 | let f k := intrinsicWarpingRadius (g k) (hrotation k) (hcomplete k) |
| 38 | have hroot : Tendsto (fun k => f k (a k)) atTop (𝓝 (Real.sqrt 2)) := by |
| 39 | have h := (Real.continuous_sqrt.tendsto 2).comp hcenter |
| 40 | apply h.congr' |
| 41 | filter_upwards [ha.eventually (eventually_gt_atTop 0)] with k hk |
| 42 | exact Real.sqrt_sq (intrinsicWarpingRadius_pos (g k) (hrotation k) (hcomplete k) hk).le |
| 43 | have hratio : Tendsto (fun k => f k (a k) / a k) atTop (𝓝 0) := hroot.div_atTop ha |
| 44 | have hbound : ∀ᶠ k in atTop, |f k (b k) - f k (a k)| ≤ f k (a k) / a k * L := by |
| 45 | filter_upwards [ha.eventually (eventually_gt_atTop (L + 1)), hcollar] with k hk hc |
| 46 | have hak : 0 < a k := lt_trans (by positivity : (0 : ℝ) < L + 1) hk |
| 47 | have hbk : 0 < b k := by linarith [(abs_le.mp hc).1] |
| 48 | exact (intrinsicWarpingRadius_anchored_variation (g k) (hrotation k) (hcomplete k) |
| 49 | (D k) (hsec k) hak hbk).trans (mul_le_mul_of_nonneg_left hc |
| 50 | (div_nonneg (intrinsicWarpingRadius_pos (g k) (hrotation k) (hcomplete k) hak).le hak.le)) |
| 51 | have hdiff : Tendsto (fun k => f k (b k) - f k (a k)) atTop (𝓝 0) := by |
| 52 | apply squeeze_zero_norm' (by simpa only [Real.norm_eq_abs] using hbound) |
| 53 | simpa only [zero_mul] using hratio.mul_const L |
| 54 | have hf : Tendsto (fun k => f k (b k)) atTop (𝓝 (Real.sqrt 2)) := by |
| 55 | simpa only [sub_add_cancel, zero_add] using hdiff.add hroot |
| 56 | simpa only [Real.sq_sqrt (by norm_num : (0 : ℝ) ≤ 2)] using hf.pow 2 |
| 57 | |
| 58 | end PoincareMT.M35.Uniqueness |