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.RicciFlow.Extinction.Width.Transport.Rebasing.SphereTransport |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Class.IdentificationTheory |
| 3 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Class.Based |
| 4 | |
| 5 | /-! |
| 6 | # Representation under smooth maps and basepoint transport |
| 7 | |
| 8 | The normalized-family certificates identify the cube classes, while sphere |
| 9 | homotopy extension realizes the retained M59 basepoint service by free |
| 10 | homotopy. Together these prove the family-level transport in Morgan--Tian, |
| 11 | Claim 18.21, pp. 431--432 (`references/derived/MT2007.txt:21171-21189`). |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff Bundle Topology unitInterval |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | variable {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 24 | |
| 25 | theorem m67_normalized_family_pole |
| 26 | (q : M59SphereQuotient) (x : M) (Gamma : FreeTwoSphereFamily (M := M)) |
| 27 | (h : M59NormalizedAt q x Gamma) : |
| 28 | m59FamilyMap Gamma q.pole = constantC1Loop x := by |
| 29 | let z : Fin 2 → I := fun _ => 0 |
| 30 | have hz : z ∈ Cube.boundary (Fin 2) := ⟨0, Or.inl rfl⟩ |
| 31 | have heq := Gamma.class_certificate.family_agreement z |
| 32 | rw [h.2, q.boundary_collapsed z hz] at heq |
| 33 | exact heq.symm.trans ((Gamma.class_certificate.boundary_const z hz).trans |
| 34 | (congrArg constantC1Loop h.1)) |
| 35 | |
| 36 | theorem m67_normalized_family_class |
| 37 | (q : M59SphereQuotient) (x : M) (Gamma : FreeTwoSphereFamily (M := M)) |
| 38 | (h : M59NormalizedAt q x Gamma) |
| 39 | (alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) (constantC1Loop x)) |
| 40 | (ha : familySigmaClass Gamma = ⟨x, alpha⟩) : |
| 41 | Quotient.mk' (m67SphereGenLoop q (m59FamilyMap Gamma) (constantC1Loop x) |
| 42 | (m67_normalized_family_pole q x Gamma h)) = alpha := by |
| 43 | have hx := h.1 |
| 44 | subst x |
| 45 | have halpha : Gamma.homotopy_class = alpha := |
| 46 | eq_of_heq (Sigma.mk.inj_iff.mp ha).2 |
| 47 | rw [← halpha, Gamma.class_certificate.class_eq] |
| 48 | apply congrArg Quotient.mk' |
| 49 | apply GenLoop.ext |
| 50 | intro z |
| 51 | change Gamma.family (q.map z) = Gamma.class_certificate.cube_representative z |
| 52 | rw [Gamma.class_certificate.family_agreement, h.2] |
| 53 | |
| 54 | /-- Every family representing a based class also represents its transported |
| 55 | class after moving the basepoint along an actual loop-space path. -/ |
| 56 | theorem m67_represents_rebase |
| 57 | (B : M59HigherBasepointTransportService.{u}) (q : M59SphereQuotient) |
| 58 | (x y : M) (C : M59IdentificationCore q y) |
| 59 | (alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) (constantC1Loop x)) |
| 60 | (p : Path (constantC1Loop x) (constantC1Loop y)) |
| 61 | (F : C(LoopTwoSphere, C1FreeLoopSpace (M := M))) |
| 62 | (hF : M61Represents q x alpha F) : |
| 63 | M61Represents q y (M59HigherBasepointTransport.map (B.transport 2) p alpha) F := by |
| 64 | obtain ⟨Gamma, hGamma, ha, hFGamma⟩ := hF |
| 65 | obtain ⟨G, hG, hhom, hclass⟩ := m67_sphere_free_transport B q |
| 66 | (m59FamilyMap Gamma) (m67_normalized_family_pole q x Gamma hGamma) p |
| 67 | rw [m67_normalized_family_class q x Gamma hGamma alpha ha] at hclass |
| 68 | obtain ⟨Delta, hDelta, hDeltaClass⟩ := C.regular_representatives |
| 69 | (M59HigherBasepointTransport.map (B.transport 2) p alpha) |
| 70 | refine ⟨Delta, hDelta, hDeltaClass, hFGamma.trans (hhom.trans ?_)⟩ |
| 71 | apply m67_sphere_homotopic_of_class_eq q G (m59FamilyMap Delta) |
| 72 | (constantC1Loop y) hG (m67_normalized_family_pole q y Delta hDelta) |
| 73 | exact hclass.symm.trans |
| 74 | (m67_normalized_family_class q y Delta hDelta _ hDeltaClass).symm |
| 75 | |
| 76 | theorem m67_represents_postcomposition |
| 77 | (S : M59IdentificationSystem.{u}) |
| 78 | {N : Type u} [TopologicalSpace N] |
| 79 | [ChartedSpace LoopAmbient N] [IsManifold (𝓡 3) ∞ N] |
| 80 | (f : C(M, N)) (hsmooth : ContMDiff (𝓡 3) (𝓡 3) ∞ f) |
| 81 | (L : M59LoopPostcomposition f) (x : M) |
| 82 | (alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) (constantC1Loop x)) |
| 83 | (F : C(LoopTwoSphere, C1FreeLoopSpace (M := M))) |
| 84 | (hF : M61Represents S.quotient x alpha F) : |
| 85 | M61Represents S.quotient (f x) |
| 86 | (surgeryHomotopyMap L.map (L.map_based (rfl : f x = f x)) alpha) |
| 87 | (L.map.comp F) := by |
| 88 | obtain ⟨Gamma, hGamma, ha, hFGamma⟩ := hF |
| 89 | have hx := hGamma.1 |
| 90 | subst x |
| 91 | have halpha : Gamma.homotopy_class = alpha := |
| 92 | eq_of_heq (Sigma.mk.inj_iff.mp ha).2 |
| 93 | subst alpha |
| 94 | obtain ⟨Delta, hfamily, hparameter, hclass⟩ := |
| 95 | S.regular_postcomposition f hsmooth L Gamma |
| 96 | have hbase : Delta.basepoint = f Gamma.basepoint := congrArg Sigma.fst hclass |
| 97 | have hmap : m59FamilyMap Delta = L.map.comp (m59FamilyMap Gamma) := by |
| 98 | ext c |
| 99 | exact hfamily c |
| 100 | refine ⟨Delta, ⟨hbase, hparameter.trans hGamma.2⟩, hclass, ?_⟩ |
| 101 | rw [hmap] |
| 102 | exact (ContinuousMap.Homotopic.refl L.map).comp hFGamma |
| 103 | |
| 104 | /-- The family-level event obligation follows from smooth postcomposition |
| 105 | and the geometric basepoint transport forced by universal naturality. -/ |
| 106 | theorem m67_represents_postcomposition_rebase |
| 107 | (S : M59IdentificationSystem.{u}) (B : M59HigherBasepointTransportService.{u}) |
| 108 | {N : Type u} [TopologicalSpace N] |
| 109 | [ChartedSpace LoopAmbient N] [IsManifold (𝓡 3) ∞ N] |
| 110 | (f : C(M, N)) (hsmooth : ContMDiff (𝓡 3) (𝓡 3) ∞ f) |
| 111 | (L : M59LoopPostcomposition f) (x : M) (y : N) |
| 112 | (C : M59IdentificationCore S.quotient y) |
| 113 | (alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) (constantC1Loop x)) |
| 114 | (p : Path (constantC1Loop (f x)) (constantC1Loop y)) |
| 115 | (F : C(LoopTwoSphere, C1FreeLoopSpace (M := M))) |
| 116 | (hF : M61Represents S.quotient x alpha F) : |
| 117 | M61Represents S.quotient y |
| 118 | (M59HigherBasepointTransport.map (B.transport 2) p |
| 119 | (surgeryHomotopyMap L.map (L.map_based (rfl : f x = f x)) alpha)) |
| 120 | (L.map.comp F) := |
| 121 | m67_represents_rebase B S.quotient (f x) y C _ p _ |
| 122 | (m67_represents_postcomposition S f hsmooth L x alpha F hF) |
| 123 | |
| 124 | end PoincareMT |