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.Normal.Crossing |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Nested.JordanRegions |
| 3 | |
| 4 | /-! A collision disk on the specified regional circle arc. |
| 5 | Source: MT Lemma 19.46, pp. 475-478; central-regional-descent derivation, |
| 6 | Section 2. First contact and actual nesting determine the required side. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | set_option autoImplicit false |
| 10 | |
| 11 | open Set |
| 12 | open scoped Topology |
| 13 | |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | /-- Embedded confined rays meeting away from the inner circle construct their first-contact |
| 17 | disk on the specified base inside the original parent. Source: MT Lemma 19.46; |
| 18 | central-regional-descent derivation, Section 2. Source: MT Lemma 19.46, pp. 474-478; |
| 19 | `proof-work/tasks/M64/derivations/2026-09-27-central-regional-descent.md`, Section 2. -/ |
| 20 | theorem m64Intrinsic_exists_nested_collision_region |
| 21 | {U V : Set AnnulusCoordinates} (hU : IsOpen U) (hV : IsOpen V) |
| 22 | (hpV : IsPreconnected V) (hbV : ¬ Bornology.IsBounded V) |
| 23 | (hUV : Disjoint U V) (hcover : U ∪ V = (frontier U)ᶜ) |
| 24 | (hfront : frontier U = frontier V) (hsub : closure U ⊆ standardAnnulusDomain) |
| 25 | {alpha beta : ℝ → AnnulusCoordinates} {a b A B : ℝ} |
| 26 | (hab : a < b) (hperiod : b - a < rampPeriod) (hA : 0 < A) (hB : 0 < B) |
| 27 | (ha : Continuous alpha) (hb : Continuous beta) |
| 28 | (hai : InjOn alpha (Icc 0 A)) (hbi : InjOn beta (Icc 0 B)) |
| 29 | (ha0 : alpha 0 = intrinsicAnnulusBoundary 1 a) |
| 30 | (hb0 : beta 0 = intrinsicAnnulusBoundary 1 b) |
| 31 | (haInterior : ∀ s ∈ Ioc 0 A, 1 < ‖alpha s‖) |
| 32 | (hbInterior : ∀ t ∈ Ioc 0 B, 1 < ‖beta t‖) |
| 33 | (hcircle : intrinsicAnnulusBoundary 1 '' Icc a b ⊆ frontier U) |
| 34 | (hconfA : MapsTo alpha (Icc 0 A) (closure U)) |
| 35 | (hconfB : MapsTo beta (Icc 0 B) (closure U)) (hmeet : alpha A = beta B) : |
| 36 | ∃ s t : ℝ, 0 < s ∧ s ≤ A ∧ 0 < t ∧ t ≤ B ∧ alpha s = beta t ∧ |
| 37 | (∀ x ∈ Icc 0 s, ∀ y ∈ Icc 0 t, alpha x = beta y → x = s ∧ y = t) ∧ |
| 38 | ∃ W Y : Set AnnulusCoordinates, |
| 39 | IsOpen W ∧ IsOpen Y ∧ IsPathConnected W ∧ IsPathConnected Y ∧ |
| 40 | Bornology.IsBounded W ∧ ¬ Bornology.IsBounded Y ∧ Disjoint W Y ∧ |
| 41 | W ∪ Y = (frontier W)ᶜ ∧ frontier Y = frontier W ∧ |
| 42 | frontier W = intrinsicAnnulusBoundary 1 '' Icc a b ∪ |
| 43 | (alpha '' Icc 0 s ∪ beta '' Icc 0 t) ∧ |
| 44 | IsCompact (closure W) ∧ W ⊆ U ∧ closure W ⊆ closure U ∧ |
| 45 | closure W ⊆ standardAnnulusDomain := by |
| 46 | have hstart : alpha 0 ≠ beta 0 := by |
| 47 | intro heq |
| 48 | rw [ha0, hb0] at heq |
| 49 | exact hab.ne (m64Intrinsic_boundary_injOn_short_arc hperiod |
| 50 | ⟨le_rfl, hab.le⟩ ⟨hab.le, le_rfl⟩ heq) |
| 51 | have ha0not : alpha 0 ∉ beta '' Icc 0 B := by |
| 52 | rintro ⟨t, ht, heq⟩ |
| 53 | by_cases ht0 : t = 0 |
| 54 | · exact hstart (ht0 ▸ heq.symm) |
| 55 | have hnorm := hbInterior t ⟨lt_of_le_of_ne ht.1 (Ne.symm ht0), ht.2⟩ |
| 56 | rw [heq, ha0, m64Intrinsic_inner_boundary_norm] at hnorm |
| 57 | exact (lt_irrefl (1 : ℝ)) hnorm |
| 58 | have hb0not : beta 0 ∉ alpha '' Icc 0 A := by |
| 59 | rintro ⟨s, hs, heq⟩ |
| 60 | by_cases hs0 : s = 0 |
| 61 | · exact hstart (hs0 ▸ heq) |
| 62 | have hnorm := haInterior s ⟨lt_of_le_of_ne hs.1 (Ne.symm hs0), hs.2⟩ |
| 63 | rw [heq, hb0, m64Intrinsic_inner_boundary_norm] at hnorm |
| 64 | exact (lt_irrefl (1 : ℝ)) hnorm |
| 65 | obtain ⟨s, t, hs, hsA, ht, htB, hst, hfirst⟩ := |
| 66 | m64Intrinsic_exists_first_crossing ha hb ha0not hb0not |
| 67 | ⟨A, ⟨hA.le, le_rfl⟩, B, ⟨hB.le, le_rfl⟩, hmeet⟩ |
| 68 | obtain ⟨s', t', hs', hs's, ht', ht't, hst', W, Y, hW, hY, hpW, hpY, |
| 69 | hbW, hbY, hWY, hcW, hfW, hfY, hkW⟩ := |
| 70 | m64Intrinsic_inward_crossing_region hab hperiod ha hb |
| 71 | (hai.mono (Icc_subset_Icc_right hsA)) (hbi.mono (Icc_subset_Icc_right htB)) |
| 72 | ha0 hb0 (fun x hx => haInterior x ⟨hx.1, hx.2.trans hsA⟩) |
| 73 | (fun y hy => hbInterior y ⟨hy.1, hy.2.trans htB⟩) |
| 74 | ⟨s, ⟨hs.le, le_rfl⟩, t, ⟨ht.le, le_rfl⟩, hst⟩ |
| 75 | obtain ⟨rfl, rfl⟩ := hfirst s' ⟨hs'.le, hs's⟩ t' ⟨ht'.le, ht't⟩ hst' |
| 76 | have hfrontSub : frontier W ⊆ closure U := by |
| 77 | rw [hfW] |
| 78 | refine union_subset (hcircle.trans frontier_subset_closure) (union_subset ?_ ?_) |
| 79 | · rintro z ⟨x, hx, rfl⟩ |
| 80 | exact hconfA ⟨hx.1, hx.2.trans hsA⟩ |
| 81 | · rintro z ⟨y, hy, rfl⟩ |
| 82 | exact hconfB ⟨hy.1, hy.2.trans htB⟩ |
| 83 | have hchild : W ⊆ U := m64Intrinsic_jordan_nested_of_frontier_subset |
| 84 | hU hV hW hY hpV hbW hbV hUV hWY hcover (by simpa only [hfW] using hcW) |
| 85 | hfront hfrontSub |
| 86 | exact ⟨s', t', hs', hsA, ht', htB, hst', hfirst, W, Y, hW, hY, hpW, hpY, hbW, hbY, |
| 87 | hWY, by simpa only [hfW] using hcW, hfY.trans hfW.symm, hfW, hkW, hchild, |
| 88 | closure_mono hchild, (closure_mono hchild).trans hsub⟩ |
| 89 | |
| 90 | end PoincareMT |