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.Straight.JoinNeighborhood |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Continuous.GraphRelativeCover |
| 3 | |
| 4 | /-! Relative coverage at the actual regular straight join of two smooth arcs. |
| 5 | |
| 6 | Morgan--Tian context: Claim 19.40, printed pp. 470-471, within Proposition 19.35, |
| 7 | pp. 467-481. These project constructions supply the actual collar and straight-join |
| 8 | geometry for the regional Gauss--Bonnet argument. |
| 9 | -/ |
| 10 | |
| 11 | noncomputable section |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set Filter |
| 15 | open scoped Topology ContDiff |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | /-- The actual joined arcs construct the continuous graph needed for relative coverage. The |
| 20 | fitted set's local frontier is the only remaining input; no smooth extension through the |
| 21 | joined curve is assumed. Source: |
| 22 | `proof-work/tasks/M64/derivations/2026-09-27-minimal-contact-regularity.md`, Section 12. -/ |
| 23 | theorem m64Intrinsic_exists_straight_join_relative_cover |
| 24 | {alpha beta : ℝ → AnnulusCoordinates} |
| 25 | (ha : ContDiff ℝ ∞ alpha) (hb : ContDiff ℝ ∞ beta) |
| 26 | {a A B b c : ℝ} (haA : a < A) (hBb : B < b) (hc : 0 < c) |
| 27 | (hai : InjOn alpha (Icc a A)) (hbi : InjOn beta (Icc B b)) |
| 28 | (hend : alpha A = beta B) (hreg : deriv alpha A ≠ 0) |
| 29 | (htan : deriv beta B = c • deriv alpha A) |
| 30 | {D U V : Set AnnulusCoordinates} (hD : IsCompact D) (hpD : alpha A ∉ D) |
| 31 | (hU : IsOpen U) (hV : IsOpen V) (hd : Disjoint U V) |
| 32 | (hfU : frontier U = (alpha '' Icc a A ∪ beta '' Icc B b) ∪ D) |
| 33 | (hfV : frontier V = frontier U) |
| 34 | {K : Set AnnulusCoordinates} (hK : IsClosed K) |
| 35 | (hKregular : closure (interior K) = K) (hKsub : K ⊆ closure U) |
| 36 | (hpK : alpha A ∈ K) {N : Set AnnulusCoordinates} (hN : N ∈ 𝓝 (alpha A)) |
| 37 | (hfrontK : N ∩ frontier K ⊆ frontier U) : |
| 38 | ∃ W : Set AnnulusCoordinates, IsOpen W ∧ alpha A ∈ W ∧ W ∩ closure U ⊆ K := by |
| 39 | obtain ⟨L, h, X, W, _, hX, hh, _, hW, hpW, hgraph⟩ := |
| 40 | m64Intrinsic_exists_straight_join_graph_neighborhood ha hb haA hBb hc hai hbi |
| 41 | hend hreg htan hD hpD |
| 42 | have hpfront : alpha A ∈ frontier U := by |
| 43 | rw [hfU] |
| 44 | exact Or.inl (Or.inl (mem_image_of_mem alpha (right_mem_Icc.mpr haA.le))) |
| 45 | apply m64Intrinsic_exists_continuous_graph_relative_cover L hX hh hU hV hd hfV |
| 46 | hW hpW hpfront _ hK hKregular hKsub hpK hN hfrontK |
| 47 | intro z hz |
| 48 | simpa only [hfU] using hgraph z hz |
| 49 | |
| 50 | end PoincareMT |