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.CurveShortening.Comparison.IntrinsicComparison.Double.CollisionFocusing |
| 2 | |
| 3 | /-! Two-radius focusing for collision bases of length at most 2q. |
| 4 | Source: MT Claim 19.43, pp. 472-473; central-regional-descent derivation, |
| 5 | Section 6. The final radius remains q/10 for the global cyclic estimate. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | set_option autoImplicit false |
| 9 | set_option backward.isDefEq.respectTransparency false |
| 10 | |
| 11 | open Set |
| 12 | open scoped Topology ContDiff Manifold |
| 13 | |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | /-- A collision base of length at most 2q first focuses at q+h and then at q/10. The |
| 17 | original turning bound is used at scale r>=2q. Source: MT Claim 19.43; |
| 18 | central-regional-descent derivation, Section 6. Source/construction: |
| 19 | proof-work/tasks/M64/derivations/2026-09-27-central-regional-descent.md, Section 6. -/ |
| 20 | theorem m64Intrinsic_normal_collision_wide_focusing |
| 21 | (N : IntrinsicAnnulus) {alpha beta : ℝ → AnnulusCoordinates} |
| 22 | (ha : ContDiff ℝ ∞ alpha) (hb : ContDiff ℝ ∞ beta) |
| 23 | {a b A B r q h : ℝ} (hab : a < b) (hA : 0 < A) (hB : 0 < B) |
| 24 | (hai : InjOn alpha (Icc 0 A)) (hbi : InjOn beta (Icc 0 B)) |
| 25 | (ha0 : alpha 0 = intrinsicAnnulusBoundary 1 a) |
| 26 | (hb0 : beta 0 = intrinsicAnnulusBoundary 1 b) (hmeet : alpha A = beta B) |
| 27 | (hsides : ∀ s ∈ Icc 0 A, ∀ t ∈ Icc 0 B, alpha s = beta t → s = A ∧ t = B) |
| 28 | (horthA : N.metric.inner (intrinsicAnnulusBoundary 1 a) |
| 29 | (deriv (intrinsicAnnulusBoundary 1) a) (deriv alpha 0) = 0) |
| 30 | (horthB : N.metric.inner (intrinsicAnnulusBoundary 1 b) |
| 31 | (deriv (intrinsicAnnulusBoundary 1) b) (deriv beta 0) = 0) |
| 32 | (hgeoA : N.metric.IsGeodesicOn alpha (Icc 0 A)) |
| 33 | (hgeoB : N.metric.IsGeodesicOn beta (Icc 0 B)) |
| 34 | (hunitA : ∀ t ∈ Icc 0 A, N.metric.inner (alpha t) (deriv alpha t) (deriv alpha t) = 1) |
| 35 | (hunitB : ∀ t ∈ Icc 0 B, N.metric.inner (beta t) (deriv beta t) (deriv beta t) = 1) |
| 36 | (haInterior : ∀ t ∈ Ioc 0 A, 1 < ‖alpha t‖) |
| 37 | (hbInterior : ∀ t ∈ Ioc 0 B, 1 < ‖beta t‖) |
| 38 | (hinwardA : 0 < inner ℝ (intrinsicAnnulusBoundary 1 a) (deriv alpha 0)) |
| 39 | (hinwardB : 0 < inner ℝ (intrinsicAnnulusBoundary 1 b) (deriv beta 0)) |
| 40 | (hperiod : b - a < rampPeriod) (hshort : intrinsicBoundaryLength N.metric 1 a b ≤ 2 * q) |
| 41 | (hq : 0 < q) (hqr : 2 * q ≤ r) (hAh : A ≤ h) (hBh : B ≤ h) (hhq : h ≤ q / 100) |
| 42 | {U V : Set AnnulusCoordinates} (hU : IsOpen U) (hV : IsOpen V) |
| 43 | (hpV : IsPreconnected V) (hbV : ¬ Bornology.IsBounded V) (hUV : Disjoint U V) |
| 44 | (hcover : U ∪ V = (frontier U)ᶜ) (hfV : frontier V = frontier U) |
| 45 | (hfront : frontier U = intrinsicAnnulusBoundary 1 '' Icc a b ∪ |
| 46 | (alpha '' Icc 0 A ∪ beta '' Icc 0 B)) |
| 47 | (hsub : closure U ⊆ standardAnnulusDomain) |
| 48 | {K delta mu : ℝ} (hK : N.GaussianCurvatureBound K) |
| 49 | (hdelta : 0 < delta) (hdeltaSmall : delta < 1 / 100) (hturn : N.SmallBoundaryTurning delta r) |
| 50 | (harea : intrinsicAnnulusArea N.metric < mu) |
| 51 | (hbudget : max K 0 * mu + delta ≤ Real.pi / 2) |
| 52 | (hmodel : Real.sqrt (max K 1) * q ≤ 1 / 2) : |
| 53 | intrinsicBoundaryLength N.metric 1 a b < 101 * q / 5000 ∧ |
| 54 | intrinsicBoundaryLength N.metric 1 a b / 2 + max A B < 201 * q / 10000 ∧ |
| 55 | Real.cos (Real.sqrt (max K 1) * (q / 10)) * intrinsicBoundaryLength N.metric 1 a b ≤ |
| 56 | (Real.sin (Real.sqrt (max K 1) * (q / 10)) / Real.sqrt (max K 1)) * |
| 57 | intrinsicGeodesicCurvatureIntegral N.metric N.connection 1 a b := by |
| 58 | have hkappa : 0 < Real.sqrt (max K 1) := |
| 59 | Real.sqrt_pos.mpr (zero_lt_one.trans_le (le_max_right K 1)) |
| 60 | have hh : 0 < h := hA.trans_le hAh |
| 61 | have hmax : max A B ≤ h := max_le hAh hBh |
| 62 | have hR0 : 0 < q + h := by positivity |
| 63 | have hR0bound : q + h ≤ 101 * q / 100 := by linarith only [hhq] |
| 64 | have hangle0 : Real.sqrt (max K 1) * (q + h) ≤ Real.pi / 4 := by |
| 65 | have hs := mul_le_mul_of_nonneg_left hhq hkappa.le |
| 66 | nlinarith only [hs, hmodel, Real.pi_gt_three] |
| 67 | have hradius0 : intrinsicBoundaryLength N.metric 1 a b / 2 + max A B ≤ q + h := by |
| 68 | linarith only [hshort, hmax] |
| 69 | have hfocus0 := (m64Intrinsic_normal_collision_focusing N ha hb hab hA hB hai hbi ha0 hb0 |
| 70 | hmeet hsides horthA horthB hgeoA hgeoB hunitA hunitB haInterior hbInterior hinwardA hinwardB |
| 71 | hperiod (hshort.trans hqr) hU hV hpV hbV hUV hcover hfV hfront hsub hK hdelta hturn |
| 72 | harea hbudget hradius0 hangle0).2 |
| 73 | have hturnLocal := hturn a b hab.le (by linarith only [hperiod]) (hshort.trans hqr) |
| 74 | have hlen : intrinsicBoundaryLength N.metric 1 a b < 101 * q / 5000 := by |
| 75 | have ht := hfocus0.trans_lt (mul_lt_mul_of_pos_left hturnLocal |
| 76 | (mul_pos (by norm_num : (0 : ℝ) < 2) hR0)) |
| 77 | have hd := mul_lt_mul_of_pos_left hdeltaSmall |
| 78 | (mul_pos (by norm_num : (0 : ℝ) < 2) hR0) |
| 79 | nlinarith only [ht, hd, hR0bound] |
| 80 | have hradius : intrinsicBoundaryLength N.metric 1 a b / 2 + max A B < 201 * q / 10000 := by |
| 81 | linarith only [hlen, hmax, hhq] |
| 82 | have hradius' : intrinsicBoundaryLength N.metric 1 a b / 2 + max A B ≤ q / 10 := by |
| 83 | linarith only [hradius, hq] |
| 84 | have hangle : Real.sqrt (max K 1) * (q / 10) ≤ Real.pi / 4 := by |
| 85 | nlinarith only [hmodel, Real.pi_gt_three] |
| 86 | exact ⟨hlen, hradius, (m64Intrinsic_normal_collision_focusing N ha hb hab hA hB hai hbi |
| 87 | ha0 hb0 hmeet hsides horthA horthB hgeoA hgeoB hunitA hunitB haInterior hbInterior |
| 88 | hinwardA hinwardB hperiod (hshort.trans hqr) hU hV hpV hbV hUV hcover hfV hfront hsub |
| 89 | hK hdelta hturn harea hbudget hradius' hangle).1⟩ |
| 90 | |
| 91 | end PoincareMT |