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 scale bounds for the initial evolving neck |
| 6 | |
| 7 | Morgan-Tian Theorem 12.32, pp. 326-327. The fine original |
| 8 | comparison controls the actual center scalar throughout the closed |
| 9 | initial interval. Its square-root inverse is below two, its shorter |
| 10 | requested patch fits inside the original one, and all required spatial |
| 11 | derivatives remain among the original retained orders. |
| 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 | /-- A uniformly fine actual initial cylinder supplies the exact |
| 22 | scalar and axial-speed bounds used in its time normalization. -/ |
| 23 | theorem exists_initial_axial_scale_control {theta epsilon : ℝ} |
| 24 | (htheta : theta < 1) (he : 0 < epsilon) : |
| 25 | ∃ delta : ℝ, 0 < delta ∧ ∀ d : ℝ, 0 < d → d ≤ delta → |
| 26 | ∀ t ∈ Icc (0 : ℝ) theta, |
| 27 | ∀ (g : RiemannianMetric 3 StandardCapSpace) (D : LeviCivitaData g) |
| 28 | (x : StandardCapSpace) (N : StandardCylinderPatch d⁻¹ x), |
| 29 | RoundCylinderClose d t (roundCylinderPullback g N.coordinate) → |
| 30 | let Q := D.scalarCurvature x |
| 31 | let c := (Real.sqrt Q)⁻¹ |
| 32 | 1 / 2 < Q ∧ Q < 3 / (2 * (1 - theta)) ∧ |
| 33 | 0 < c ∧ c < 2 ∧ c * epsilon⁻¹ ≤ d⁻¹ ∧ ⌊epsilon⁻¹⌋₊ ≤ ⌊d⁻¹⌋₊ := by |
| 34 | obtain ⟨dscalar, hdscalar, hcontrol⟩ := exists_initial_cylinder_scalar_control |
| 35 | htheta (by norm_num : (0 : ℝ) < 1 / 2) |
| 36 | refine ⟨min dscalar (epsilon / 4), lt_min hdscalar (by positivity), ?_⟩ |
| 37 | intro d hd hdd t ht g D x N hclose |
| 38 | obtain ⟨q, hq⟩ := N.center_sphere |
| 39 | have h := hcontrol d hd (hdd.trans (min_le_left _ _)) t ht g D x N q hclose |
| 40 | rw [hq] at h |
| 41 | let Q := D.scalarCurvature x |
| 42 | let c := (Real.sqrt Q)⁻¹ |
| 43 | have hlo : -(1 / 2 : ℝ) < (1 - t) * Q - 1 := (abs_lt.mp h).1 |
| 44 | have hhi : (1 - t) * Q - 1 < 1 / 2 := (abs_lt.mp h).2 |
| 45 | have htone : t < 1 := ht.2.trans_lt htheta |
| 46 | have hQ : 0 < Q := by |
| 47 | have hp : 0 < (1 - t) * Q := by linarith only [hlo] |
| 48 | exact pos_of_mul_pos_right hp (sub_pos.mpr htone).le |
| 49 | have hQlo : 1 / 2 < Q := by |
| 50 | have hmul : (1 - t) * Q ≤ Q := by nlinarith only [ht.1, hQ] |
| 51 | linarith only [hmul, hlo] |
| 52 | have hQhi : Q < 3 / (2 * (1 - theta)) := by |
| 53 | apply (lt_div_iff₀ (mul_pos (by norm_num) (sub_pos.mpr htheta))).mpr |
| 54 | have hmon := mul_le_mul_of_nonneg_right (sub_le_sub_left ht.2 1) hQ.le |
| 55 | nlinarith only [hhi, hmon] |
| 56 | have hc : 0 < c := inv_pos.mpr (Real.sqrt_pos.mpr hQ) |
| 57 | have hunit : Q * c ^ 2 = 1 := by |
| 58 | change Q * ((Real.sqrt Q)⁻¹) ^ 2 = 1 |
| 59 | rw [inv_pow, Real.sq_sqrt hQ.le, mul_inv_cancel₀ hQ.ne'] |
| 60 | have hcsmall : c < 2 := by |
| 61 | have hmul := mul_lt_mul_of_pos_right hQlo (sq_pos_of_pos hc) |
| 62 | rw [hunit] at hmul |
| 63 | nlinarith only [hmul, hc] |
| 64 | have hdsmall : d ≤ epsilon / 4 := hdd.trans (min_le_right _ _) |
| 65 | have hlength : 4 * epsilon⁻¹ ≤ d⁻¹ := by |
| 66 | have hh := inv_anti₀ hd hdsmall |
| 67 | rw [inv_div] at hh |
| 68 | simpa only [div_eq_mul_inv] using hh |
| 69 | have heinv : 0 < epsilon⁻¹ := inv_pos.mpr he |
| 70 | have hfit : c * epsilon⁻¹ ≤ d⁻¹ := by |
| 71 | have hh := mul_lt_mul_of_pos_right hcsmall heinv |
| 72 | linarith only [hh, hlength, heinv] |
| 73 | have horder : epsilon⁻¹ ≤ d⁻¹ := by linarith only [hlength, heinv] |
| 74 | exact ⟨hQlo, hQhi, hc, hcsmall, hfit, Nat.floor_mono horder⟩ |
| 75 | |
| 76 | end PoincareMT.M35 |