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.Shared.BandJoinFrontier |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Straight.JoinRelativeCover |
| 3 | |
| 4 | /-! |
| 5 | # Actual coverage by separately smooth bands at a straight join |
| 6 | |
| 7 | The common physical cut cancels, and the constructed continuous boundary |
| 8 | graph forces the two regular closed bands to fill the occupied side. |
| 9 | Source: MT Claim 19.40; minimal-contact derivation, Section 12. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Topology ContDiff Manifold |
| 18 | open Poincare.Topology.Plane.Curves PoincareMT.Topology.Surface |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /-- Actual bands on the two smooth pieces cover the closed Jordan region near their regular |
| 23 | straight join. Coverage is deduced from the physical cut intersection and actual frontier, |
| 24 | without a smooth joined arc. Source: |
| 25 | `proof-work/tasks/M64/derivations/2026-09-27-minimal-contact-regularity.md`, Section 12. -/ |
| 26 | theorem m64Intrinsic_straight_join_bands_cover_region |
| 27 | {alpha beta : ℝ → AnnulusCoordinates} |
| 28 | (ha : ContDiff ℝ ∞ alpha) (hb : ContDiff ℝ ∞ beta) |
| 29 | {s A B t c : ℝ} (hsA : s < A) (hBt : B < t) (hc : 0 < c) |
| 30 | (hai : InjOn alpha (Icc s A)) (hbi : InjOn beta (Icc B t)) |
| 31 | (hend : alpha A = beta B) (hreg : deriv alpha A ≠ 0) |
| 32 | (htan : deriv beta B = c • deriv alpha A) |
| 33 | {D U V : Set AnnulusCoordinates} (hD : IsCompact D) (hpD : alpha A ∉ D) |
| 34 | (hU : IsOpen U) (hV : IsOpen V) (hd : Disjoint U V) |
| 35 | (hfU : frontier U = (alpha '' Icc s A ∪ beta '' Icc B t) ∪ D) |
| 36 | (hfV : frontier V = frontier U) |
| 37 | (L L' : (ℝ × ℝ) ≃L[ℝ] AnnulusCoordinates) |
| 38 | {lo lo' : ℝ → ℝ} {a b ua wa ub wb ra r a' b' ua' wa' ub' wb' rb' : ℝ} |
| 39 | (C : ObliqueBandFaces |
| 40 | (collarParameterEquiv.trans L).toHomeomorph.toOpenPartialHomeomorph |
| 41 | lo a b ua wa ub wb ra r) |
| 42 | (C' : ObliqueBandFaces |
| 43 | (collarParameterEquiv.trans L').toHomeomorph.toOpenPartialHomeomorph |
| 44 | lo' a' b' ua' wa' ub' wb' r rb') |
| 45 | {d : AnnulusCoordinates} |
| 46 | (hbase : L (b, lo b) = alpha A) (hbase' : L' (a', lo' a') = alpha A) |
| 47 | (hdir : L (ub, wb) = d) (hdir' : L' (ua', wa') = d) |
| 48 | (hinter : C.carrier ∩ C'.carrier = segment ℝ (alpha A) (alpha A + r • d)) |
| 49 | (hlower : C.lowerArc ⊆ alpha '' Icc s A) (hlower' : C'.lowerArc ⊆ beta '' Icc B t) |
| 50 | (hsub : C.carrier ⊆ closure U) (hsub' : C'.carrier ⊆ closure U) : |
| 51 | ∃ W : Set AnnulusCoordinates, IsOpen W ∧ alpha A ∈ W ∧ |
| 52 | W ∩ closure U ⊆ C.carrier ∪ C'.carrier := by |
| 53 | obtain ⟨N, hN, hpN, hfront⟩ := |
| 54 | m64Intrinsic_exists_shared_band_join_frontier_neighborhood L L' C C' |
| 55 | hbase hbase' hdir hdir' hinter |
| 56 | let K := C.carrier ∪ C'.carrier |
| 57 | have hK : IsClosed K := C.isClosed_carrier.union C'.isClosed_carrier |
| 58 | have hregular : closure (interior K) = K := by |
| 59 | apply subset_antisymm (closure_minimal interior_subset hK) |
| 60 | rintro z (hz | hz) |
| 61 | · rw [← C.closure_interior_carrier] at hz |
| 62 | exact closure_mono (interior_mono (subset_union_left : C.carrier ⊆ K)) hz |
| 63 | · rw [← C'.closure_interior_carrier] at hz |
| 64 | exact closure_mono (interior_mono (subset_union_right : C'.carrier ⊆ K)) hz |
| 65 | have hpK : alpha A ∈ K := by |
| 66 | left |
| 67 | apply C.isClosed_carrier.frontier_subset |
| 68 | apply C.endpointEdge_subset_frontier true |
| 69 | refine ⟨0, by norm_num, ?_⟩ |
| 70 | rw [m64Intrinsic_band_right_endpoint_zero] |
| 71 | exact hbase |
| 72 | apply m64Intrinsic_exists_straight_join_relative_cover ha hb hsA hBt hc hai hbi |
| 73 | hend hreg htan hD hpD hU hV hd hfU hfV hK hregular |
| 74 | (union_subset hsub hsub') hpK (hN.mem_nhds hpN) |
| 75 | intro z hz |
| 76 | rw [hfU] |
| 77 | exact Or.inl ((union_subset_union hlower hlower') (hfront hz)) |
| 78 | |
| 79 | end PoincareMT |