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.Persistence.Removal.Neck.NeckBuffer |
| 2 | |
| 3 | /-! |
| 4 | # Uniform containment in a later neck |
| 5 | |
| 6 | A central-scalar bound in birth-height units makes the neck's |
| 7 | ambient buffer larger than any prescribed normalized diameter. |
| 8 | The cutoff is independent of the actual physical birth height. |
| 9 | Morgan--Tian, Claim 16.10, pp. 374-375; M44 derivation 72. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Topology ENNReal |
| 17 | |
| 18 | namespace PoincareMT.M44 |
| 19 | |
| 20 | local notation "E" => EuclideanSpace ℝ (Fin 3) |
| 21 | |
| 22 | /-- A fixed cutoff makes the actual neck buffer dominate a |
| 23 | prescribed diameter in birth-height units. Source: Claim 16.10, |
| 24 | pp. 374-375; M44 derivation 72. -/ |
| 25 | theorem exists_neck_containment_cutoff {K D : ℝ} (hK : 0 < K) (hD : 0 < D) : |
| 26 | ∃ epsilon0 : ℝ, 0 < epsilon0 ∧ |
| 27 | ∀ {M : Type*} [TopologicalSpace M] [ChartedSpace E M] |
| 28 | [IsManifold (𝓡 3) ∞ M] [T2Space M] |
| 29 | {g : RiemannianMetric 3 M} (N : EpsilonNeck g), N.epsilon ≤ epsilon0 → |
| 30 | ∀ h : ℝ, 0 < h → N.connection.scalarCurvature N.center * h ^ 2 ≤ K → |
| 31 | ∀ p ∈ N.central_sphere, g.ball p (h * D) ⊆ N.carrier := by |
| 32 | have hsqrt : 0 < Real.sqrt (2 * K) := Real.sqrt_pos.mpr (by positivity) |
| 33 | refine ⟨min (1 / 12) (1 / (4 * D * Real.sqrt (2 * K))), |
| 34 | lt_min (by norm_num) (by positivity), ?_⟩ |
| 35 | intro M _ _ _ _ g N hsmall h hh hscale p hp |
| 36 | have heps := hsmall.trans (min_le_left _ _) |
| 37 | have hsize := hsmall.trans (min_le_right _ _) |
| 38 | let c := (1 - 6 * N.epsilon) / N.connection.scalarCurvature N.center |
| 39 | have hc : 0 < c := div_pos (by linarith) N.scalar_center_pos |
| 40 | have hsquare : (h / Real.sqrt (2 * K)) ^ 2 ≤ c := by |
| 41 | rw [div_pow, Real.sq_sqrt (by positivity : 0 ≤ 2 * K)] |
| 42 | change h ^ 2 / (2 * K) ≤ (1 - 6 * N.epsilon) / N.connection.scalarCurvature N.center |
| 43 | rw [div_le_div_iff₀ (by positivity : 0 < 2 * K) N.scalar_center_pos] |
| 44 | have hprod := mul_nonneg hK.le (show 0 ≤ 1 / 2 - 6 * N.epsilon by linarith) |
| 45 | nlinarith |
| 46 | have hsqrtc : h / Real.sqrt (2 * K) ≤ Real.sqrt c := by |
| 47 | nlinarith [Real.sq_sqrt hc.le, Real.sqrt_nonneg c, div_pos hh hsqrt] |
| 48 | have hinv : 4 * D * Real.sqrt (2 * K) ≤ N.epsilon⁻¹ := by |
| 49 | have hmul := (le_div_iff₀ (by positivity : 0 < 4 * D * Real.sqrt (2 * K))).mp hsize |
| 50 | rw [inv_eq_one_div, le_div_iff₀ N.epsilon_pos] |
| 51 | nlinarith |
| 52 | have hwidth : 2 * D * Real.sqrt (2 * K) ≤ N.epsilon⁻¹ / 2 := by linarith |
| 53 | have hradius : h * D < Real.sqrt c * (N.epsilon⁻¹ / 2) := by |
| 54 | calc |
| 55 | h * D < 2 * h * D := by nlinarith [mul_pos hh hD] |
| 56 | _ = (h / Real.sqrt (2 * K)) * (2 * D * Real.sqrt (2 * K)) := by |
| 57 | field_simp |
| 58 | _ ≤ Real.sqrt c * (N.epsilon⁻¹ / 2) := |
| 59 | mul_le_mul hsqrtc hwidth (by positivity) (Real.sqrt_nonneg c) |
| 60 | intro y hy |
| 61 | apply neck_ball_subset_carrier N heps hp |
| 62 | exact hy.trans_le (ENNReal.ofReal_le_ofReal hradius.le) |
| 63 | |
| 64 | end PoincareMT.M44 |