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 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.UniquenessData |
| 4 | |
| 5 | /-! |
| 6 | # Actual scalar normalization outside a compact set on the initial slab |
| 7 | |
| 8 | Morgan-Tian Theorem 12.32, pp. 326-327, initial-neck alternative. |
| 9 | The public M34 asymptotic certificate supplies one spatial patch for |
| 10 | the full closed time interval. The checked local scalar trace then |
| 11 | controls the actual original-flow scalar uniformly on that interval. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M35 |
| 20 | |
| 21 | /-- Theorem 12.32: throughout a fixed closed initial slab, the |
| 22 | actual scalar normalization approaches the cylindrical one uniformly |
| 23 | outside a single compact subset of the original space. -/ |
| 24 | theorem exists_initial_slab_scalar_control {g₀ : StandardInitialMetric} |
| 25 | (E : RepairedStandardCapExistenceData g₀) {theta eta : ℝ} |
| 26 | (htheta : theta ∈ Ico 0 E.flow.base.lifetime) (heta : 0 < eta) : |
| 27 | ∃ K : Set StandardCapSpace, IsCompact K ∧ |
| 28 | ∀ x ∉ K, ∀ t ∈ Icc 0 theta, |
| 29 | |(1 - t) * (E.flow.connection t).scalarCurvature x - 1| < eta := by |
| 30 | have hthetaone : theta < 1 := E.lifetime_one ▸ htheta.2 |
| 31 | obtain ⟨delta, hdelta, hcontrol⟩ := exists_initial_cylinder_scalar_control hthetaone heta |
| 32 | obtain ⟨A⟩ := E.asymptotic theta htheta delta hdelta |
| 33 | refine ⟨A.compact_set, A.compact, ?_⟩ |
| 34 | intro x hx t ht |
| 35 | obtain ⟨N, hN⟩ := A.patches x hx |
| 36 | obtain ⟨q, hq⟩ := N.center_sphere |
| 37 | have hfamily : RoundCylinderFamilyClose delta (Icc 0 theta) |
| 38 | (fun u => roundCylinderPullback (E.flow.metric u) N.coordinate) := by |
| 39 | simpa only [StandardSpacetimeCylinderClose, div_one, zero_add, one_mul] using hN |
| 40 | obtain ⟨hsmooth, bound, hbound, hjet⟩ := hfamily |
| 41 | have hscalar := hcontrol delta hdelta le_rfl t ht (E.flow.metric t) |
| 42 | (E.flow.connection t) x N q ⟨hsmooth t ht, bound, hbound, hjet t ht⟩ |
| 43 | simpa only [hq] using hscalar |
| 44 | |
| 45 | /-- The same closed-slab comparison gives a positive actual |
| 46 | scalar floor and finite upper bound, including time zero. -/ |
| 47 | theorem exists_initial_slab_scalar_bounds {g₀ : StandardInitialMetric} |
| 48 | (E : RepairedStandardCapExistenceData g₀) {theta : ℝ} |
| 49 | (htheta : theta ∈ Ico 0 E.flow.base.lifetime) : |
| 50 | ∃ K : Set StandardCapSpace, IsCompact K ∧ |
| 51 | ∀ x ∉ K, ∀ t ∈ Icc 0 theta, |
| 52 | 1 / 2 < (E.flow.connection t).scalarCurvature x ∧ |
| 53 | (E.flow.connection t).scalarCurvature x < 3 / (2 * (1 - theta)) := by |
| 54 | obtain ⟨K, hK, hscalar⟩ := exists_initial_slab_scalar_control E htheta |
| 55 | (by norm_num : (0 : ℝ) < 1 / 2) |
| 56 | refine ⟨K, hK, ?_⟩ |
| 57 | intro x hx t ht |
| 58 | have h := abs_lt.mp (hscalar x hx t ht) |
| 59 | have hthetaone : theta < 1 := E.lifetime_one ▸ htheta.2 |
| 60 | have htone : t < 1 := ht.2.trans_lt hthetaone |
| 61 | have hR : 0 < (E.flow.connection t).scalarCurvature x := by |
| 62 | have hh : 0 < (1 - t) * (E.flow.connection t).scalarCurvature x := by |
| 63 | linarith only [h.1] |
| 64 | exact pos_of_mul_pos_right hh (sub_pos.mpr htone).le |
| 65 | have htR := mul_nonneg ht.1 hR.le |
| 66 | refine ⟨by nlinarith only [h.1, htR], ?_⟩ |
| 67 | apply (lt_div_iff₀ (mul_pos (by norm_num) (sub_pos.mpr hthetaone))).mpr |
| 68 | have hmon := mul_le_mul_of_nonneg_right (sub_le_sub_left ht.2 1) hR.le |
| 69 | nlinarith only [h.2, hmon] |
| 70 | |
| 71 | end PoincareMT.M35 |