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.InitialNeckScalar |
| 3 | |
| 4 | /-! |
| 5 | # Actual center scalar convergence for the initial affine clock |
| 6 | |
| 7 | Morgan-Tian Theorem 12.32, pp. 326-327. Uniform scalar control on |
| 8 | the original closed cylinder slab applies to every sequence of fine |
| 9 | patches and moving center times. The actual center scalar consequently |
| 10 | determines the limiting axial speed and normalized time interval. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | namespace PoincareMT.M35 |
| 19 | |
| 20 | /-- The actual center scalar has the prescribed relative limit |
| 21 | under fine original-patch comparison, uniformly in the closed slab. -/ |
| 22 | theorem initial_cylinder_center_normalization_tendsto |
| 23 | {theta : ℝ} (htheta : theta < 1) (delta t : ℕ → ℝ) |
| 24 | (g : ℕ → RiemannianMetric 3 StandardCapSpace) (D : ∀ k, LeviCivitaData (g k)) |
| 25 | (x : ℕ → StandardCapSpace) (N : ∀ k, StandardCylinderPatch (delta k)⁻¹ (x k)) |
| 26 | (hd : ∀ k, 0 < delta k) (ht : ∀ k, t k ∈ Icc 0 theta) |
| 27 | (hclose : ∀ k, RoundCylinderClose (delta k) (t k) |
| 28 | (roundCylinderPullback (g k) (N k).coordinate)) |
| 29 | (hdlim : Tendsto delta atTop (𝓝 0)) : |
| 30 | Tendsto (fun k => (1 - t k) * (D k).scalarCurvature (x k)) atTop (𝓝 1) := by |
| 31 | apply Metric.tendsto_atTop.mpr |
| 32 | intro eta heta |
| 33 | obtain ⟨d, hdpos, hcontrol⟩ := exists_initial_cylinder_scalar_control htheta heta |
| 34 | obtain ⟨n, hn⟩ := eventually_atTop.mp |
| 35 | (hdlim.eventually (eventually_le_nhds hdpos)) |
| 36 | refine ⟨n, fun k hk => ?_⟩ |
| 37 | obtain ⟨q, hq⟩ := (N k).center_sphere |
| 38 | have h := hcontrol (delta k) (hd k) (hn k hk) (t k) (ht k) |
| 39 | (g k) (D k) (x k) (N k) q (hclose k) |
| 40 | simpa only [Real.dist_eq, hq] using h |
| 41 | |
| 42 | /-- Converging original center times determine the literal |
| 43 | scalar limit used by both the spatial and temporal normalizations. -/ |
| 44 | theorem initial_cylinder_center_scalar_tendsto |
| 45 | {theta : ℝ} (htheta : theta < 1) (delta t : ℕ → ℝ) |
| 46 | (g : ℕ → RiemannianMetric 3 StandardCapSpace) (D : ∀ k, LeviCivitaData (g k)) |
| 47 | (x : ℕ → StandardCapSpace) (N : ∀ k, StandardCylinderPatch (delta k)⁻¹ (x k)) |
| 48 | (hd : ∀ k, 0 < delta k) (ht : ∀ k, t k ∈ Icc 0 theta) |
| 49 | (hclose : ∀ k, RoundCylinderClose (delta k) (t k) |
| 50 | (roundCylinderPullback (g k) (N k).coordinate)) |
| 51 | (hdlim : Tendsto delta atTop (𝓝 0)) {t₀ : ℝ} (ht₀ : t₀ < 1) |
| 52 | (htlim : Tendsto t atTop (𝓝 t₀)) : |
| 53 | Tendsto (fun k => (D k).scalarCurvature (x k)) atTop (𝓝 (1 / (1 - t₀))) := by |
| 54 | have hnormal := initial_cylinder_center_normalization_tendsto htheta delta t g D x N |
| 55 | hd ht hclose hdlim |
| 56 | have hdiv := hnormal.div ((tendsto_const_nhds (x := (1 : ℝ))).sub htlim) |
| 57 | (sub_pos.mpr ht₀).ne' |
| 58 | apply hdiv.congr' |
| 59 | apply Eventually.of_forall |
| 60 | intro k |
| 61 | exact mul_div_cancel_left₀ ((D k).scalarCurvature (x k)) |
| 62 | (sub_pos.mpr ((ht k).2.trans_lt htheta)).ne' |
| 63 | |
| 64 | /-- The actual affine clock stays throughout the same original |
| 65 | closed initial interval, and its model error is independent of clock time. -/ |
| 66 | theorem initial_affine_clock {theta t Q u : ℝ} (ht : t ∈ Icc 0 theta) (hQ : 0 < Q) |
| 67 | (hu : u ∈ Icc (-t * Q) 0) : |
| 68 | t + u / Q ∈ Icc 0 theta ∧ |
| 69 | Q * (1 - (t + u / Q)) - (1 - u) = (1 - t) * Q - 1 := by |
| 70 | have hlo : -t ≤ u / Q := (le_div_iff₀ hQ).mpr (by nlinarith only [hu.1]) |
| 71 | have hhi : u / Q ≤ 0 := div_nonpos_of_nonpos_of_nonneg hu.2 hQ.le |
| 72 | refine ⟨⟨by linarith only [hlo], by linarith only [hhi, ht.2]⟩, ?_⟩ |
| 73 | field_simp [hQ.ne'] |
| 74 | ring |
| 75 | |
| 76 | end PoincareMT.M35 |