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.Path.Data |
| 2 | import PoincareLib.Geometry.RicciFlow.Extinction.Width.Class.Topology.Providers |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Comparison.Transport.ThirdHomotopy |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | |
| 7 | open scoped Manifold ContDiff Bundle ENNReal Topology unitInterval |
| 8 | |
| 9 | universe u |
| 10 | |
| 11 | namespace PoincareMT |
| 12 | |
| 13 | /-! A class transported by a smooth comparison approximant remains nonzero |
| 14 | after changing from the approximant's image basepoint to the selected target |
| 15 | basepoint. This is the class-level bridge needed before choosing a normalized |
| 16 | post-family from `M59IdentificationCore.regular_representatives`. |
| 17 | |
| 18 | The higher-basepoint service transports homotopy classes, but deliberately |
| 19 | does not transport `FreeTwoSphereFamily` records. The family itself should |
| 20 | therefore be chosen at the final basepoint from the M59 core, rather than |
| 21 | constructed by trying to whisker a C1 family. |
| 22 | -/ |
| 23 | theorem m67_rebased_alpha_nonzero |
| 24 | (S : M59IdentificationSystem.{u}) |
| 25 | (B : M59HigherBasepointTransportService.{u}) |
| 26 | {M N : Type u} |
| 27 | [TopologicalSpace M] [ChartedSpace LoopAmbient M] |
| 28 | [IsManifold (𝓡 3) ∞ M] |
| 29 | [T2Space M] [SecondCountableTopology M] |
| 30 | [TopologicalSpace N] [ChartedSpace LoopAmbient N] |
| 31 | [IsManifold (𝓡 3) ∞ N] |
| 32 | [T2Space N] [SecondCountableTopology N] |
| 33 | (compactM : IsCompact (Set.univ : Set M)) |
| 34 | (connectedM : IsConnected (Set.univ : Set M)) |
| 35 | (compactN : IsCompact (Set.univ : Set N)) |
| 36 | (connectedN : IsConnected (Set.univ : Set N)) |
| 37 | (x : M) (z : N) |
| 38 | (piTwoM : Subsingleton (HomotopyGroup.Pi 2 M x)) |
| 39 | (piTwoN : Subsingleton (HomotopyGroup.Pi 2 N z)) |
| 40 | (f : ContinuousMap M N) |
| 41 | (smooth : ContMDiff (𝓡 3) (𝓡 3) ∞ f) |
| 42 | (L : M59LoopPostcomposition f) |
| 43 | (p : Path (f x) z) |
| 44 | (lp : M59ConstantLoopPath p) |
| 45 | (alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) |
| 46 | (constantC1Loop x)) |
| 47 | (beta : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := N)) |
| 48 | (constantC1Loop z)) |
| 49 | (halpha : (S.core compactM connectedM x piTwoM).pi_two_pi_three alpha ≠ 1) |
| 50 | (hbij : Function.Bijective |
| 51 | (surgeryHomotopyMap (n := 3) f (rfl : f x = f x))) |
| 52 | (hbeta : M59HigherBasepointTransport.map (B.transport 2) lp.loop |
| 53 | (surgeryHomotopyMap (n := 2) L.map |
| 54 | (L.map_based (rfl : f x = f x)) alpha) = beta) : |
| 55 | (S.core compactN connectedN z piTwoN).pi_two_pi_three beta ≠ 1 := by |
| 56 | let piTwoFx : Subsingleton (HomotopyGroup.Pi 2 N (f x)) := |
| 57 | ⟨fun a b => by |
| 58 | apply (m59BasepointTransport_bijective (B.transport 2) p).1 |
| 59 | exact piTwoN.elim _ _⟩ |
| 60 | letI : Subsingleton (HomotopyGroup.Pi 2 N (f x)) := piTwoFx |
| 61 | let CM := S.core compactM connectedM x piTwoM |
| 62 | let CN := S.core compactN connectedN (f x) piTwoFx |
| 63 | let CNz := S.core compactN connectedN z piTwoN |
| 64 | have hα : alpha ≠ 1 := by |
| 65 | intro h |
| 66 | apply halpha |
| 67 | rw [h] |
| 68 | exact CM.pi_two_pi_three.map_one |
| 69 | have hmap_one : surgeryHomotopyMap (n := 3) f (rfl : f x = f x) |
| 70 | (1 : HomotopyGroup.Pi 3 M x) = 1 := by |
| 71 | rw [SurgeryComparison.Topology.surgeryHomotopyMap_eq_postcomp 2 f x] |
| 72 | exact (Poincare.Topology.homotopyGroupPostcomp 2 f x).map_one |
| 73 | have hmap_one' : surgeryHomotopyMap (n := 3) f (rfl : f x = f x) |
| 74 | (CM.pi_two_pi_three 1) = 1 := by |
| 75 | rw [CM.pi_two_pi_three.map_one] |
| 76 | exact hmap_one |
| 77 | have himage : surgeryHomotopyMap (n := 2) L.map |
| 78 | (L.map_based (rfl : f x = f x)) alpha ≠ 1 := by |
| 79 | intro h |
| 80 | have htarget : CN.pi_two_pi_three |
| 81 | (surgeryHomotopyMap (n := 2) L.map |
| 82 | (L.map_based (rfl : f x = f x)) alpha) = 1 := by |
| 83 | rw [h] |
| 84 | exact CN.pi_two_pi_three.map_one |
| 85 | have hnat := S.naturality compactM connectedM compactN connectedN x (f x) |
| 86 | piTwoM piTwoFx f smooth (rfl : f x = f x) L alpha |
| 87 | have hzero : surgeryHomotopyMap (n := 3) f (rfl : f x = f x) |
| 88 | (CM.pi_two_pi_three alpha) = 1 := by |
| 89 | rw [← hnat] |
| 90 | exact htarget |
| 91 | apply hα |
| 92 | apply CM.pi_two_pi_three.injective |
| 93 | apply hbij.1 |
| 94 | exact hzero.trans hmap_one'.symm |
| 95 | have hrebased : beta ≠ 1 := by |
| 96 | intro h |
| 97 | apply m59BasepointTransport_nonzero (B.transport 2) lp.loop himage |
| 98 | rw [hbeta, h] |
| 99 | intro h |
| 100 | apply hrebased |
| 101 | apply CNz.pi_two_pi_three.injective |
| 102 | rw [h] |
| 103 | exact CNz.pi_two_pi_three.map_one.symm |
| 104 | |
| 105 | end PoincareMT |