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.CornerArcStrips |
| 2 | |
| 3 | /-! |
| 4 | # Simultaneous separation of the two boundary strip families |
| 5 | |
| 6 | The actual arc intersection condition excludes the other arc from every |
| 7 | regular interior point. Compact trimmed axes therefore admit one common |
| 8 | positive strip width separating all pairs from different arc families. |
| 9 | |
| 10 | Morgan--Tian context: Proposition 19.35, printed pp. 467-481, including Claim 19.40, |
| 11 | pp. 470-471. These project constructions provide actual fitted boundary pieces and |
| 12 | contacts for the regional Gauss--Bonnet arguments. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Topology |
| 20 | open Poincare.Topology.Plane.Curves |
| 21 | |
| 22 | namespace PoincareMT |
| 23 | |
| 24 | /-- Two arcs meeting only at the two vertices have disjoint regular interior and opposite |
| 25 | closed arc, by injectivity of the first arc. Source: |
| 26 | `proof-work/tasks/M64/reviews/2026-09-27-intrinsic-obstacle-bands-review.md`, round_1, check |
| 27 | 28. -/ |
| 28 | theorem m64Intrinsic_two_arc_interior_disjoint |
| 29 | {alpha beta : ℝ → AnnulusCoordinates} {A B : ℝ} |
| 30 | (hai : InjOn alpha (Icc 0 A)) |
| 31 | (hinter : (alpha '' Icc 0 A) ∩ (beta '' Icc 0 B) ⊆ {alpha 0, alpha A}) : |
| 32 | Disjoint (alpha '' Ioo 0 A) (beta '' Icc 0 B) := by |
| 33 | apply disjoint_left.mpr |
| 34 | rintro p ⟨t, ht, rfl⟩ hp |
| 35 | have hpoint := hinter ⟨⟨t, ⟨ht.1.le, ht.2.le⟩, rfl⟩, hp⟩ |
| 36 | rcases (show alpha t = alpha 0 ∨ alpha t = alpha A by simpa using hpoint) with h0 | hA |
| 37 | · have he := hai ⟨ht.1.le, ht.2.le⟩ ⟨le_rfl, (ht.1.trans ht.2).le⟩ h0 |
| 38 | exact ht.1.ne' he |
| 39 | · have he := hai ⟨ht.1.le, ht.2.le⟩ ⟨(ht.1.trans ht.2).le, le_rfl⟩ hA |
| 40 | exact ht.2.ne he |
| 41 | |
| 42 | /-- The fixed strip maps on disjoint trimmed boundary arcs have a common width preserving |
| 43 | both original bounds and separating the two families. Source: |
| 44 | `proof-work/tasks/M64/reviews/2026-09-27-intrinsic-obstacle-bands-review.md`, round_1, check |
| 45 | 28. -/ |
| 46 | theorem m64Intrinsic_exists_two_arc_strip_width |
| 47 | {ι κ : Type*} [Finite ι] [Finite κ] |
| 48 | (F : ι → OpenPartialHomeomorph (ℝ × ℝ) AnnulusCoordinates) |
| 49 | (G : κ → OpenPartialHomeomorph (ℝ × ℝ) AnnulusCoordinates) |
| 50 | (hFs : ∀ i, ∀ t ∈ Icc (0 : ℝ) 1, (t, (0 : ℝ)) ∈ (F i).source) |
| 51 | (hGs : ∀ j, ∀ t ∈ Icc (0 : ℝ) 1, (t, (0 : ℝ)) ∈ (G j).source) |
| 52 | {alpha beta : ℝ → AnnulusCoordinates} {a b c d rho sigma : ℝ} |
| 53 | (hdisj : Disjoint (alpha '' Icc a b) (beta '' Icc c d)) |
| 54 | (hFa : ∀ i, (fun t => F i (t, 0)) '' Icc (0 : ℝ) 1 ⊆ alpha '' Icc a b) |
| 55 | (hGa : ∀ j, (fun t => G j (t, 0)) '' Icc (0 : ℝ) 1 ⊆ beta '' Icc c d) |
| 56 | (hrho : 0 < rho) (hsigma : 0 < sigma) : |
| 57 | ∃ delta > 0, delta ≤ rho ∧ delta ≤ sigma ∧ |
| 58 | (∀ i, Icc (0 : ℝ) 1 ×ˢ Ioo (-delta) delta ⊆ (F i).source) ∧ |
| 59 | (∀ j, Icc (0 : ℝ) 1 ×ˢ Ioo (-delta) delta ⊆ (G j).source) ∧ |
| 60 | ∀ i j, Disjoint (F i '' (Icc (0 : ℝ) 1 ×ˢ Ioo (-delta) delta)) |
| 61 | (G j '' (Icc (0 : ℝ) 1 ×ˢ Ioo (-delta) delta)) := by |
| 62 | classical |
| 63 | let S : ι ⊕ κ → OpenPartialHomeomorph (ℝ × ℝ) AnnulusCoordinates := Sum.elim F G |
| 64 | let separate : ι ⊕ κ → ι ⊕ κ → Prop |
| 65 | | .inl _, .inr _ => True |
| 66 | | _, _ => False |
| 67 | have hsource : ∀ i, ∀ t ∈ Icc (0 : ℝ) 1, (t, (0 : ℝ)) ∈ (S i).source := by |
| 68 | rintro (i | j) |
| 69 | · exact hFs i |
| 70 | · exact hGs j |
| 71 | have hbase : ∀ i j, separate i j → |
| 72 | Disjoint ((fun t => S i (t, 0)) '' Icc (0 : ℝ) 1) |
| 73 | ((fun t => S j (t, 0)) '' Icc (0 : ℝ) 1) := by |
| 74 | rintro (i | i) (j | j) h |
| 75 | · exact h.elim |
| 76 | · exact hdisj.mono (hFa i) (hGa j) |
| 77 | · exact h.elim |
| 78 | · exact h.elim |
| 79 | obtain ⟨delta, hdelta, _, hsource', hseparate⟩ := |
| 80 | exists_finite_disjoint_strip_width S hsource separate hbase |
| 81 | (fun _ => min rho sigma) (fun _ => lt_min hrho hsigma) |
| 82 | let epsilon := min delta (min rho sigma) |
| 83 | have hepsilon : 0 < epsilon := lt_min hdelta (lt_min hrho hsigma) |
| 84 | have hsub : Icc (0 : ℝ) 1 ×ˢ Ioo (-epsilon) epsilon ⊆ |
| 85 | Icc (0 : ℝ) 1 ×ˢ Ioo (-delta) delta := |
| 86 | prod_mono Subset.rfl (Ioo_subset_Ioo (neg_le_neg (min_le_left _ _)) (min_le_left _ _)) |
| 87 | refine ⟨epsilon, hepsilon, (min_le_right _ _).trans (min_le_left _ _), |
| 88 | (min_le_right _ _).trans (min_le_right _ _), |
| 89 | fun i => hsub.trans (hsource' (.inl i)), |
| 90 | fun j => hsub.trans (hsource' (.inr j)), ?_⟩ |
| 91 | exact fun i j => (hseparate (.inl i) (.inr j) trivial).mono |
| 92 | (image_mono hsub) (image_mono hsub) |
| 93 | |
| 94 | end PoincareMT |