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.Three.ArcCoordinateParents |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Marked.RegionTriangulation |
| 3 | |
| 4 | /-! A triangulation retaining the two corners and the original straight join. |
| 5 | Source: MT Claim 19.40, pp. 470-471; combined-boundary-collar derivation, |
| 6 | Section 9. The actual collar supplies the whole construction. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | set_option autoImplicit false |
| 10 | set_option backward.isDefEq.respectTransparency false |
| 11 | |
| 12 | open Set |
| 13 | open scoped Topology |
| 14 | open PoincareMT.Topology.Surface |
| 15 | |
| 16 | namespace PoincareMT.M64IntrinsicThreeArcCollar |
| 17 | |
| 18 | /-- The constructed original collar supplies one complete smooth triangulation with all |
| 19 | three original distinguished boundary vertices. Source: MT Claim 19.40; |
| 20 | combined-boundary-collar derivation, Section 9. Construction: |
| 21 | proof-work/tasks/M64/derivations/2026-09-27-combined-boundary-collar.md, Section 9. -/ |
| 22 | theorem exists_triangulation |
| 23 | {gamma : Bool → ℝ → AnnulusCoordinates} {sigma : ℝ → AnnulusCoordinates} |
| 24 | {T b : Bool → ℝ} {S : ℝ} {U : Set AnnulusCoordinates} |
| 25 | {C : M64IntrinsicThreeArcCaps gamma sigma T S U} |
| 26 | (D : M64IntrinsicThreeArcCollar C b) |
| 27 | (hU : IsOpen U) (hcompact : IsCompact (closure U)) |
| 28 | (hfront : frontier U = gamma false '' Icc 0 (T false) ∪ |
| 29 | gamma true '' Icc 0 (T true) ∪ sigma '' Icc 0 S) : |
| 30 | ∃ R : M64IntrinsicCoordinateTriangulation (closure U), |
| 31 | ∃ v0 vj v1 : Euler.CoordinateVertex R.coordinates R.basis, |
| 32 | v0.1 = gamma false 0 ∧ vj.1 = gamma false (T false) ∧ v1.1 = gamma true (T true) := by |
| 33 | classical |
| 34 | obtain ⟨_, F, basis, hF, hFi, hsource, hparents, hcover⟩ := |
| 35 | D.exists_coordinate_parents hU hcompact hfront |
| 36 | let marks : Finset AnnulusCoordinates := |
| 37 | {gamma false 0, gamma false (T false), gamma true (T true)} |
| 38 | have hT (e : Bool) : 0 < T e := (D.joined.attachment e).1.trans (D.joined.attachment e).2 |
| 39 | have hmarks : (marks : Set AnnulusCoordinates) ⊆ closure U := by |
| 40 | intro p hp |
| 41 | apply frontier_subset_closure |
| 42 | rw [hfront] |
| 43 | simp only [marks, Finset.mem_coe, Finset.mem_insert, Finset.mem_singleton] at hp |
| 44 | rcases hp with rfl | rfl | rfl |
| 45 | · exact Or.inl (Or.inl ⟨0, ⟨le_rfl, (hT false).le⟩, rfl⟩) |
| 46 | · exact Or.inl (Or.inl ⟨T false, ⟨(hT false).le, le_rfl⟩, rfl⟩) |
| 47 | · exact Or.inl (Or.inr ⟨T true, ⟨(hT true).le, le_rfl⟩, rfl⟩) |
| 48 | obtain ⟨R, hvertices⟩ := m64Intrinsic_exists_marked_region_triangulation |
| 49 | F basis hF hFi hsource hparents hcover marks hmarks |
| 50 | obtain ⟨v0, hv0⟩ := hvertices (gamma false 0) (by simp [marks]) |
| 51 | obtain ⟨vj, hvj⟩ := hvertices (gamma false (T false)) (by simp [marks]) |
| 52 | obtain ⟨v1, hv1⟩ := hvertices (gamma true (T true)) (by simp [marks]) |
| 53 | exact ⟨R, v0, vj, v1, hv0, hvj, hv1⟩ |
| 54 | |
| 55 | end PoincareMT.M64IntrinsicThreeArcCollar |