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.Metric.Profile.ProfileBounds |
| 2 | |
| 3 | /-! |
| 4 | # Packaging uniform surgery constants |
| 5 | |
| 6 | The analytic coefficient and comparison thresholds remain explicit arguments. |
| 7 | The neck cutoff is reduced before any manifold or neck is quantified over. |
| 8 | These are the numeric choices of Morgan--Tian, Theorem 13.2, pp. 332-333. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | namespace PoincareMT.MetricSurgery |
| 14 | |
| 15 | noncomputable def profileConstants (g₀ : StandardInitialMetric) |
| 16 | (q C R upper : ℝ) (comparison : ℝ → ℝ) |
| 17 | (hq : 100 < q) (hC : 100 * q < C) (hR : 0 < R) (hupper : 0 < upper) |
| 18 | (hcomparison : ∀ eta : ℝ, 0 < eta → 0 < comparison eta) : |
| 19 | MetricSurgeryConstants where |
| 20 | C₀ := C |
| 21 | q := q |
| 22 | R₀ := R |
| 23 | delta₀ := (exists_neck_threshold g₀ hupper).choose |
| 24 | C₀_pos := by linarith |
| 25 | C₀_gt_one := by linarith |
| 26 | q_pos := by linarith |
| 27 | q_gt_one := by linarith |
| 28 | R₀_pos := hR |
| 29 | delta₀_pos := (exists_neck_threshold g₀ hupper).choose_spec.1 |
| 30 | delta₀_lt := (exists_neck_threshold g₀ hupper).choose_spec.2.1 |
| 31 | comparison_delta := comparison |
| 32 | comparison_delta_pos := hcomparison |
| 33 | |
| 34 | theorem profileConstants_largeQ (g₀ : StandardInitialMetric) |
| 35 | (q C R upper : ℝ) (comparison : ℝ → ℝ) |
| 36 | (hq : 100 < q) (hC : 100 * q < C) (hR : 0 < R) (hupper : 0 < upper) |
| 37 | (hcomparison : ∀ eta : ℝ, 0 < eta → 0 < comparison eta) |
| 38 | (hA : 100 * (4 + g₀.cylindrical_end.radius) ^ 2 < q) : |
| 39 | SurgeryProfileLargeQ g₀ |
| 40 | (profileConstants g₀ q C R upper comparison hq hC hR hupper hcomparison) := |
| 41 | largeQ_of_bounds g₀ _ hq hA |
| 42 | |
| 43 | theorem profileConstants_dominance (g₀ : StandardInitialMetric) |
| 44 | (q C R upper : ℝ) (comparison : ℝ → ℝ) |
| 45 | (hq : 100 < q) (hC : 100 * q < C) (hR : 0 < R) (hupper : 0 < upper) |
| 46 | (hcomparison : ∀ eta : ℝ, 0 < eta → 0 < comparison eta) : |
| 47 | let K := profileConstants g₀ q C R upper comparison hq hC hR hupper hcomparison |
| 48 | 100 * K.q < K.C₀ := hC |
| 49 | |
| 50 | theorem profileConstants_delta_le (g₀ : StandardInitialMetric) |
| 51 | (q C R upper : ℝ) (comparison : ℝ → ℝ) |
| 52 | (hq : 100 < q) (hC : 100 * q < C) (hR : 0 < R) (hupper : 0 < upper) |
| 53 | (hcomparison : ∀ eta : ℝ, 0 < eta → 0 < comparison eta) : |
| 54 | (profileConstants g₀ q C R upper comparison hq hC hR hupper hcomparison).delta₀ ≤ |
| 55 | upper := |
| 56 | (exists_neck_threshold g₀ hupper).choose_spec.2.2.1 |
| 57 | |
| 58 | theorem profileConstants_cutoff_inside (g₀ : StandardInitialMetric) |
| 59 | (q C R upper : ℝ) (comparison : ℝ → ℝ) |
| 60 | (hq : 100 < q) (hC : 100 * q < C) (hR : 0 < R) (hupper : 0 < upper) |
| 61 | (hcomparison : ∀ eta : ℝ, 0 < eta → 0 < comparison eta) |
| 62 | {epsilon : ℝ} (hepsilon : 0 < epsilon) |
| 63 | (hle : epsilon ≤ |
| 64 | (profileConstants g₀ q C R upper comparison hq hC hR hupper hcomparison).delta₀) : |
| 65 | 4 + g₀.cylindrical_end.radius < epsilon⁻¹ := |
| 66 | (exists_neck_threshold g₀ hupper).choose_spec.2.2.2 epsilon hepsilon hle |
| 67 | |
| 68 | end PoincareMT.MetricSurgery |