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.Triangle.CollarBands |
| 2 | import PoincareLib.Geometry.CurveShortening.Comparison.IntrinsicComparison.Three.ArcBandCompatibility |
| 3 | |
| 4 | /-! Canonical contacts of every actual original triangle band face. |
| 5 | Source: MT Claim 19.40; normal-collision-transversality derivation, Section 8. -/ |
| 6 | |
| 7 | noncomputable section |
| 8 | set_option autoImplicit false |
| 9 | set_option backward.isDefEq.respectTransparency false |
| 10 | |
| 11 | open Set |
| 12 | open PoincareMT.Topology.Surface |
| 13 | |
| 14 | namespace PoincareMT.M64IntrinsicTriangleCollar |
| 15 | |
| 16 | /-- All distinct band faces of the original triangle collar have canonical contacts, using |
| 17 | actual same-chain cuts and cross-chain disjointness. Source: MT Claim 19.40; |
| 18 | normal-collision-transversality derivation, Section 8. Project construction: |
| 19 | `proof-work/tasks/M64/derivations/2026-09-27-normal-collision-transversality.md`, Section 8. -/ |
| 20 | theorem band_faces_canonical |
| 21 | {base alpha beta : ℝ → AnnulusCoordinates} {D A B : ℝ} {U : Set AnnulusCoordinates} |
| 22 | {C : M64IntrinsicTriangleCaps base alpha beta D A B U} (P : M64IntrinsicTriangleCollar C) |
| 23 | (p q : (i : P.BandIndex) × (Fin (P.bandData i).band.interface.count × Bool)) |
| 24 | (hpq : p ≠ q) : |
| 25 | CoordinateTriangleBoundaryIntersection ((P.bandData p.1).band.faceCoordinates p.2) |
| 26 | ((P.bandData q.1).band.faceCoordinates q.2) ((P.bandData p.1).band.faceBasis p.2) |
| 27 | ((P.bandData q.1).band.faceBasis q.2) := by |
| 28 | have h01 (i : Fin P.baseArc.chain.count) (j : Fin P.firstSide.chain.count) : |
| 29 | Disjoint (P.baseArc.chain.band i).carrier (P.firstSide.chain.band j).carrier := |
| 30 | P.base_first.mono (fun _ hp => mem_iUnion.mpr ⟨i, hp⟩) |
| 31 | (fun _ hp => mem_iUnion.mpr ⟨j, hp⟩) |
| 32 | have h02 (i : Fin P.baseArc.chain.count) (j : Fin P.secondSide.chain.count) : |
| 33 | Disjoint (P.baseArc.chain.band i).carrier (P.secondSide.chain.band j).carrier := |
| 34 | P.base_second.mono (fun _ hp => mem_iUnion.mpr ⟨i, hp⟩) |
| 35 | (fun _ hp => mem_iUnion.mpr ⟨j, hp⟩) |
| 36 | have h12 (i : Fin P.firstSide.chain.count) (j : Fin P.secondSide.chain.count) : |
| 37 | Disjoint (P.firstSide.chain.band i).carrier (P.secondSide.chain.band j).carrier := |
| 38 | P.first_second.mono (fun _ hp => mem_iUnion.mpr ⟨i, hp⟩) |
| 39 | (fun _ hp => mem_iUnion.mpr ⟨j, hp⟩) |
| 40 | rcases p with ⟨i | (i | i), p⟩ |
| 41 | · rcases q with ⟨j | (j | j), q⟩ |
| 42 | · exact P.baseArc.chain.faces_canonical ⟨i, p⟩ ⟨j, q⟩ |
| 43 | (fun h => hpq (by cases h; rfl)) |
| 44 | · exact M64IntrinsicLinearBandData.faces_canonical_of_disjoint |
| 45 | (.ofChain P.baseArc.chain i) (.ofChain P.firstSide.chain j) (h01 i j) p q |
| 46 | · exact M64IntrinsicLinearBandData.faces_canonical_of_disjoint |
| 47 | (.ofChain P.baseArc.chain i) (.ofChain P.secondSide.chain j) (h02 i j) p q |
| 48 | · rcases q with ⟨j | (j | j), q⟩ |
| 49 | · exact M64IntrinsicLinearBandData.faces_canonical_of_disjoint |
| 50 | (.ofChain P.firstSide.chain i) (.ofChain P.baseArc.chain j) (h01 j i).symm p q |
| 51 | · exact P.firstSide.chain.faces_canonical ⟨i, p⟩ ⟨j, q⟩ |
| 52 | (fun h => hpq (by cases h; rfl)) |
| 53 | · exact M64IntrinsicLinearBandData.faces_canonical_of_disjoint |
| 54 | (.ofChain P.firstSide.chain i) (.ofChain P.secondSide.chain j) (h12 i j) p q |
| 55 | · rcases q with ⟨j | (j | j), q⟩ |
| 56 | · exact M64IntrinsicLinearBandData.faces_canonical_of_disjoint |
| 57 | (.ofChain P.secondSide.chain i) (.ofChain P.baseArc.chain j) (h02 j i).symm p q |
| 58 | · exact M64IntrinsicLinearBandData.faces_canonical_of_disjoint |
| 59 | (.ofChain P.secondSide.chain i) (.ofChain P.firstSide.chain j) (h12 j i).symm p q |
| 60 | · exact P.secondSide.chain.faces_canonical ⟨i, p⟩ ⟨j, q⟩ |
| 61 | (fun h => hpq (by cases h; rfl)) |
| 62 | |
| 63 | end PoincareMT.M64IntrinsicTriangleCollar |