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.Thin.GraphBands |
| 2 | |
| 3 | /-! Fitted bands can be rebuilt with independently prescribed small cuts |
| 4 | inside a fixed actual band. Source: MT Claim 19.40; |
| 5 | joined-orientation derivation, Section 6. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | set_option autoImplicit false |
| 9 | set_option backward.isDefEq.respectTransparency false |
| 10 | |
| 11 | open Set |
| 12 | open scoped Topology ContDiff Manifold |
| 13 | open Poincare.Topology.Plane.Curves PoincareMT.Topology.Surface |
| 14 | |
| 15 | namespace PoincareMT |
| 16 | |
| 17 | /-- The positive minimum of the actual band height permits every sufficiently small |
| 18 | independent pair of endpoint lengths inside the original carrier. Source: |
| 19 | `proof-work/tasks/M64/derivations/2026-09-27-joined-orientation-and-attachments.md`, Section |
| 20 | 6. -/ |
| 21 | theorem m64Intrinsic_exists_nested_graph_bands |
| 22 | (L : (ℝ × ℝ) ≃L[ℝ] AnnulusCoordinates) |
| 23 | {f : ℝ → ℝ} {a b ua wa ub wb ra rb : ℝ} (hab : a < b) |
| 24 | (B : ObliqueBandFaces |
| 25 | (collarParameterEquiv.trans L).toHomeomorph.toOpenPartialHomeomorph |
| 26 | f a b ua wa ub wb ra rb) : |
| 27 | ∃ cutoff > 0, ∀ sa ∈ Ioo (0 : ℝ) cutoff, ∀ sb ∈ Ioo (0 : ℝ) cutoff, |
| 28 | ∃ C : ObliqueBandFaces |
| 29 | (collarParameterEquiv.trans L).toHomeomorph.toOpenPartialHomeomorph |
| 30 | f a b ua wa ub wb sa sb, |
| 31 | C.cuts.left = B.cuts.left ∧ C.cuts.right = B.cuts.right ∧ |
| 32 | (∀ q, C.coordinates q = B.coordinates q) ∧ |
| 33 | C.lowerArc = B.lowerArc ∧ C.band ⊆ B.band ∧ C.carrier ⊆ B.carrier ∧ |
| 34 | C.leftCut = segment ℝ (L (a, f a)) (L (a, f a) + sa • L (ua, wa)) ∧ |
| 35 | C.rightCut = segment ℝ (L (b, f b)) (L (b, f b) + sb • L (ub, wb)) := by |
| 36 | obtain ⟨t, ht, hmin⟩ := isCompact_Icc.exists_isMinOn |
| 37 | (nonempty_Icc.mpr (show (0 : ℝ) ≤ 1 by norm_num)) B.continuousOn_height |
| 38 | obtain ⟨cutoff, hcutoff, hbands⟩ := m64Intrinsic_exists_thin_graph_bands L |
| 39 | B.open_domain B.smooth_lower hab B.interval_subset B.cuts (B.height_pos ht) |
| 40 | let S := B.cuts.linearCoordinates L B.open_domain B.smooth_lower |
| 41 | have hBcoordinates (q : AnnulusCoordinates) : B.coordinates q = S (collarParameterEquiv q) := by |
| 42 | change L (collarParameterEquiv (collarParameterEquiv.symm |
| 43 | (B.cuts.coordinates B.open_domain B.smooth_lower (collarParameterEquiv q)))) = _ |
| 44 | rw [collarParameterEquiv.apply_symm_apply] |
| 45 | rfl |
| 46 | refine ⟨cutoff, hcutoff, ?_⟩ |
| 47 | intro sa hsa sb hsb |
| 48 | obtain ⟨C, hleft, hright, hcoordinates, hheight, hcarrier, hcutA, hcutB⟩ := |
| 49 | hbands sa hsa sb hsb |
| 50 | have hsame (q : AnnulusCoordinates) : C.coordinates q = B.coordinates q := |
| 51 | (hcoordinates q).trans (hBcoordinates q).symm |
| 52 | have hband : C.band ⊆ B.band := by |
| 53 | intro q hq |
| 54 | rw [C.band_eq_subgraph] at hq |
| 55 | rw [B.band_eq_subgraph] |
| 56 | exact ⟨hq.1, hq.2.1, |
| 57 | (hq.2.2.trans_lt (hheight _ hq.1)).le.trans (hmin hq.1)⟩ |
| 58 | refine ⟨C, hleft, hright, hsame, rfl, hband, ?_, hcutA, hcutB⟩ |
| 59 | rw [hcarrier, B.carrier_eq_image] |
| 60 | rintro p ⟨q, hq, rfl⟩ |
| 61 | refine ⟨collarParameterEquiv.symm q, ?_, ?_⟩ |
| 62 | · rw [B.band_eq_subgraph] |
| 63 | simp only [mem_ofPred_eq, collarParameterEquiv.apply_symm_apply] |
| 64 | exact ⟨hq.1, hq.2.1, (hq.2.2.trans_lt (hheight q.1 hq.1)).le.trans (hmin hq.1)⟩ |
| 65 | · rw [hBcoordinates, collarParameterEquiv.apply_symm_apply] |
| 66 | |
| 67 | end PoincareMT |