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.Constructed.NoShortThreeArcRegion |
| 2 | |
| 3 | /-! Translate only the actual last-contact tail parameter. |
| 4 | Source: MT Claim 19.40; normal-collision-transversality derivation, |
| 5 | Sections 12-13. The region, original circle interval and endpoint tangents are preserved. -/ |
| 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 Matrix |
| 13 | |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | /-- An actual short normal-contact region with its tail on `[u,T]` contradicts the public |
| 17 | budget. Translation supplies all zero-based arc data without changing the physical region. |
| 18 | Source: MT Claim 19.40; normal-collision-transversality derivation, Sections 12-13. Source: |
| 19 | MT Claim 19.40, pp. 470-471; |
| 20 | `proof-work/tasks/M64/derivations/2026-09-27-normal-collision-transversality.md`, Sections |
| 21 | 12-13. -/ |
| 22 | theorem m64Intrinsic_translated_last_contact_region_contradiction |
| 23 | (N : IntrinsicAnnulus) {base sigma eta : ℝ → AnnulusCoordinates} |
| 24 | (hb : ContDiff ℝ ∞ base) (hs : ContDiff ℝ ∞ sigma) (he : ContDiff ℝ ∞ eta) |
| 25 | {q S u T c : ℝ} (hq : 0 < q) (hS : 0 < S) (huT : u < T) (hc : 0 < c) |
| 26 | (hbi : InjOn base (Icc 0 q)) (hsi : InjOn sigma (Icc 0 S)) |
| 27 | (hei : InjOn eta (Icc u T)) |
| 28 | (hstart : sigma 0 = base 0) (hend : sigma S = eta T) (hjoin : base q = eta u) |
| 29 | (hregq : deriv base q ≠ 0) (htan : deriv eta u = c • deriv base q) |
| 30 | (hbaseTail : ∀ x ∈ Icc 0 q, ∀ t ∈ Icc u T, base x = eta t → x = q ∧ t = u) |
| 31 | (hbaseSide : ∀ x ∈ Icc 0 q, ∀ s ∈ Icc 0 S, base x = sigma s → x = 0 ∧ s = 0) |
| 32 | (hsideTail : ∀ s ∈ Icc 0 S, ∀ t ∈ Icc u T, sigma s = eta t → s = S ∧ t = T) |
| 33 | (hregular : ∀ t ∈ Ioo 0 q, deriv base t ≠ 0) (hreg0 : deriv base 0 ≠ 0) |
| 34 | (horth : N.metric.inner (base 0) (deriv base 0) (deriv sigma 0) = 0) |
| 35 | (hegeo : N.metric.IsGeodesicOn eta (Icc u T)) |
| 36 | (hsgeo : N.metric.IsGeodesicOn sigma (Icc 0 S)) |
| 37 | (heunit : ∀ t ∈ Icc u T, N.metric.inner (eta t) (deriv eta t) (deriv eta t) = 1) |
| 38 | (hsunit : ∀ t ∈ Icc 0 S, N.metric.inner (sigma t) (deriv sigma t) (deriv sigma t) = 1) |
| 39 | (hind : LinearIndependent ℝ (![-deriv eta T, -deriv sigma S] : |
| 40 | Fin 2 → AnnulusCoordinates)) |
| 41 | {a b : ℝ} (hab : a ≤ b) |
| 42 | (hcircleInj : InjOn (intrinsicAnnulusBoundary 1) (Icc a b)) |
| 43 | (hcircle : base '' Icc 0 q = intrinsicAnnulusBoundary 1 '' Icc a b) |
| 44 | {U V : Set AnnulusCoordinates} (hU : IsOpen U) (hV : IsOpen V) (hUV : Disjoint U V) |
| 45 | (hfront : frontier U = base '' Icc 0 q ∪ (sigma '' Icc 0 S ∪ eta '' Icc u T)) |
| 46 | (hfV : frontier V = frontier U) |
| 47 | (hclosure : closure U ∪ closure V = univ) (hVconn : IsPreconnected V) |
| 48 | (hinward : 0 < inner ℝ (base 0) (deriv sigma 0)) |
| 49 | (hsub : closure U ⊆ standardAnnulusDomain) |
| 50 | {K delta r mu : ℝ} (hK : N.GaussianCurvatureBound K) |
| 51 | (hturn : N.SmallBoundaryTurning delta r) |
| 52 | (harea : intrinsicAnnulusArea N.metric < mu) |
| 53 | (hbudget : max K 0 * mu + delta ≤ Real.pi / 2) |
| 54 | (hperiod : b ≤ a + rampPeriod) |
| 55 | (hshort : intrinsicBoundaryLength N.metric 1 a b ≤ r) : False := by |
| 56 | let tail (t : ℝ) := eta (t + u) |
| 57 | let gamma (e : Bool) := if e then tail else base |
| 58 | let L (e : Bool) := if e then T - u else q |
| 59 | have hparam {t : ℝ} (ht : t ∈ Icc 0 (T - u)) : t + u ∈ Icc u T := |
| 60 | ⟨by linarith [ht.1], by linarith [ht.2]⟩ |
| 61 | have htd (t : ℝ) : deriv tail t = deriv eta (t + u) := by |
| 62 | change deriv (fun t => eta (t + u)) t = _ |
| 63 | rw [deriv_comp_add_const] |
| 64 | have htimage : tail '' Icc 0 (T - u) = eta '' Icc u T := by |
| 65 | change (eta ∘ fun t => t + u) '' Icc 0 (T - u) = _ |
| 66 | rw [image_comp, image_add_const_Icc] |
| 67 | simp only [zero_add, sub_add_cancel] |
| 68 | have htgeo : N.metric.IsGeodesicOn tail (Icc 0 (T - u)) := by |
| 69 | intro t ht |
| 70 | exact hegeo.comp_add u t (hparam ht) |
| 71 | have htunit (t : ℝ) (ht : t ∈ Icc 0 (T - u)) : |
| 72 | N.metric.inner (tail t) (deriv tail t) (deriv tail t) = 1 := by |
| 73 | change N.metric.inner (eta (t + u)) (deriv tail t : AnnulusCoordinates) |
| 74 | (deriv tail t : AnnulusCoordinates) = 1 |
| 75 | rw [htd] |
| 76 | exact heunit (t + u) (hparam ht) |
| 77 | have hg (e : Bool) : ContDiff ℝ ∞ (gamma e) := by |
| 78 | cases e |
| 79 | · exact hb |
| 80 | · exact he.comp (contDiff_id.add contDiff_const) |
| 81 | have hL (e : Bool) : 0 < L e := by |
| 82 | cases e |
| 83 | · exact hq |
| 84 | · exact sub_pos.mpr huT |
| 85 | have hgi (e : Bool) : InjOn (gamma e) (Icc 0 (L e)) := by |
| 86 | cases e |
| 87 | · exact hbi |
| 88 | · intro s hs t ht heq |
| 89 | exact add_right_cancel (hei (hparam hs) (hparam ht) heq) |
| 90 | have hbaseTail' : ∀ x ∈ Icc 0 q, ∀ t ∈ Icc 0 (T - u), |
| 91 | base x = tail t → x = q ∧ t = 0 := by |
| 92 | intro x hx t ht heq |
| 93 | have hh := hbaseTail x hx (t + u) (hparam ht) heq |
| 94 | exact ⟨hh.1, by linarith [hh.2]⟩ |
| 95 | have htailSide : ∀ t ∈ Icc 0 (T - u), ∀ s ∈ Icc 0 S, |
| 96 | tail t = sigma s → t = T - u ∧ s = S := by |
| 97 | intro t ht s hs heq |
| 98 | have hh := hsideTail s hs (t + u) (hparam ht) heq.symm |
| 99 | exact ⟨by linarith [hh.2], hh.1⟩ |
| 100 | have hfront' : frontier U = gamma false '' Icc 0 (L false) ∪ |
| 101 | gamma true '' Icc 0 (L true) ∪ sigma '' Icc 0 S := by |
| 102 | change frontier U = base '' Icc 0 q ∪ tail '' Icc 0 (T - u) ∪ sigma '' Icc 0 S |
| 103 | rw [htimage] |
| 104 | exact hfront.trans (by ac_rfl) |
| 105 | have hind' : LinearIndependent ℝ (![-deriv tail (T - u), -deriv sigma S] : |
| 106 | Fin 2 → AnnulusCoordinates) := by |
| 107 | simpa only [htd, sub_add_cancel] using hind |
| 108 | exact m64Intrinsic_constructed_no_short_three_arc_region N gamma sigma L hg hs hL hS hc |
| 109 | hgi hsi hstart (by simpa only [gamma, tail, L, if_true, sub_add_cancel] using hend) |
| 110 | (by simpa only [gamma, tail, L, if_true, Bool.false_eq_true, if_false, zero_add] using hjoin) |
| 111 | hregq (by simpa only [gamma, L, if_true, Bool.false_eq_true, if_false, htd, zero_add] |
| 112 | using htan) hbaseTail' hbaseSide htailSide hregular hreg0 horth htgeo hsgeo htunit hsunit |
| 113 | hind' hab hcircleInj hcircle hU hV hUV hfront' hfV hclosure hVconn hinward hsub |
| 114 | hK hturn harea hbudget hperiod hshort |
| 115 | |
| 116 | end PoincareMT |