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.Two.ArcLoop |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Nested.JordanRegions |
| 3 | |
| 4 | /-! The actual nested Jordan region between two confined embedded rays. |
| 5 | Source: MT Claim 19.41, p. 471; short-geodesic-digons derivation, Section 6. |
| 6 | The original closed arc images remain the exact frontier. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | set_option autoImplicit false |
| 10 | |
| 11 | open Set |
| 12 | open scoped Topology |
| 13 | |
| 14 | namespace PoincareMT |
| 15 | |
| 16 | /-- Two embedded arcs in the parent closure, with only their corresponding |
| 17 | endpoint contacts, construct their actual nested bounded Jordan region. |
| 18 | Source: MT Claim 19.41, p. 471; digon derivation, Section 6. -/ |
| 19 | theorem m64Intrinsic_exists_nested_digon_region |
| 20 | {U V : Set AnnulusCoordinates} (hU : IsOpen U) (hV : IsOpen V) |
| 21 | (hpV : IsPreconnected V) (hbV : ¬ Bornology.IsBounded V) |
| 22 | (hUV : Disjoint U V) (hcover : U ∪ V = (frontier U)ᶜ) |
| 23 | (hfront : frontier U = frontier V) |
| 24 | {alpha beta : ℝ → AnnulusCoordinates} {A B : ℝ} (hA : 0 < A) (hB : 0 < B) |
| 25 | (ha : ContinuousOn alpha (Icc 0 A)) (hb : ContinuousOn beta (Icc 0 B)) |
| 26 | (hai : InjOn alpha (Icc 0 A)) (hbi : InjOn beta (Icc 0 B)) |
| 27 | (hbase : beta 0 = alpha 0) (hend : beta B = alpha A) |
| 28 | (hmeet : ∀ s ∈ Icc 0 A, ∀ t ∈ Icc 0 B, |
| 29 | alpha s = beta t → (s = 0 ∧ t = 0) ∨ (s = A ∧ t = B)) |
| 30 | (hconfA : MapsTo alpha (Icc 0 A) (closure U)) |
| 31 | (hconfB : MapsTo beta (Icc 0 B) (closure U)) : |
| 32 | ∃ W Y : Set AnnulusCoordinates, |
| 33 | IsOpen W ∧ IsOpen Y ∧ IsPathConnected W ∧ IsPathConnected Y ∧ |
| 34 | Bornology.IsBounded W ∧ ¬ Bornology.IsBounded Y ∧ Disjoint W Y ∧ |
| 35 | W ∪ Y = (frontier W)ᶜ ∧ |
| 36 | frontier W = alpha '' Icc 0 A ∪ beta '' Icc 0 B ∧ |
| 37 | frontier Y = frontier W ∧ IsCompact (closure W) ∧ |
| 38 | W ⊆ U ∧ closure W ⊆ closure U ∧ closure W ∪ closure Y = univ := by |
| 39 | obtain ⟨loop, hl, he, hi, himage⟩ := m64Intrinsic_exists_simple_loop_between_arcs |
| 40 | hA hB ha hb hai hbi hbase.symm hend.symm hmeet |
| 41 | obtain ⟨W, Y, hW, hY, hpW, hpY, hbW, hbY, hWY, hcW, hfW, hfY, hkW⟩ := |
| 42 | m64Intrinsic_exists_jordan_region (by norm_num : (0 : ℝ) < 2) hl he hi |
| 43 | have hfrontSub : frontier W ⊆ closure U := by |
| 44 | rw [hfW, himage] |
| 45 | exact union_subset (mapsTo_iff_image_subset.mp hconfA) (mapsTo_iff_image_subset.mp hconfB) |
| 46 | have hchild : W ⊆ U := m64Intrinsic_jordan_nested_of_frontier_subset |
| 47 | hU hV hW hY hpV hbW hbV hUV hWY hcover (by simpa only [hfW] using hcW) |
| 48 | hfront hfrontSub |
| 49 | have hclosedCover : closure W ∪ closure Y = univ := by |
| 50 | apply eq_univ_of_forall |
| 51 | intro p |
| 52 | by_cases hp : p ∈ frontier W |
| 53 | · exact Or.inl (frontier_subset_closure hp) |
| 54 | · have hp' : p ∈ W ∪ Y := by |
| 55 | simpa only [hcW, ← hfW, mem_compl_iff] using hp |
| 56 | exact hp'.elim (fun h => Or.inl (subset_closure h)) |
| 57 | (fun h => Or.inr (subset_closure h)) |
| 58 | exact ⟨W, Y, hW, hY, hpW, hpY, hbW, hbY, hWY, |
| 59 | by simpa only [hfW] using hcW, |
| 60 | hfW.trans himage, hfY.trans hfW.symm, hkW, hchild, closure_mono hchild, hclosedCover⟩ |
| 61 | |
| 62 | end PoincareMT |