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.Class.Identification |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Comparison.Basic |
| 3 | |
| 4 | /-! |
| 5 | # Path-aware higher homotopy transport |
| 6 | |
| 7 | The ancestry and surgery interfaces select arbitrary points in the relevant |
| 8 | components. A diffeomorphism therefore supplies a path from the transported |
| 9 | point to the selected target point, not generally an equality. This file |
| 10 | records the missing higher basepoint service without introducing an abstract |
| 11 | equivalence as an oracle: the induced map is always the quotient map of an |
| 12 | explicit `GenLoop` whiskering operation, together with its quotient-respect, |
| 13 | path-coherence, group, and continuous-map naturality laws. |
| 14 | |
| 15 | M59's complete theorem exports existence of this service; its single |
| 16 | admission owns the whiskering construction and laws. Keeping it |
| 17 | as a named service makes that obligation visible to M57/M67/M69 and prevents |
| 18 | point equalities or algebraically twisted transports from being smuggled into |
| 19 | their contracts. |
| 20 | -/ |
| 21 | |
| 22 | set_option autoImplicit false |
| 23 | |
| 24 | open scoped Manifold ContDiff Bundle ENNReal Topology unitInterval |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | namespace PoincareMT |
| 29 | |
| 30 | structure M59GenLoopWhisker (X : Type u) [TopologicalSpace X] (n : ℕ) where |
| 31 | whisker : ∀ {x y : X}, Path x y → |
| 32 | GenLoop (Fin n) X x → GenLoop (Fin n) X y |
| 33 | respects_homotopy : ∀ {x y : X} (p : Path x y) |
| 34 | {a b : GenLoop (Fin n) X x}, |
| 35 | GenLoop.Homotopic a b → |
| 36 | GenLoop.Homotopic (whisker p a) (whisker p b) |
| 37 | |
| 38 | namespace M59GenLoopWhisker |
| 39 | |
| 40 | def map {X : Type u} [TopologicalSpace X] {n : ℕ} |
| 41 | (W : M59GenLoopWhisker X n) {x y : X} (p : Path x y) : |
| 42 | HomotopyGroup.Pi n X x → HomotopyGroup.Pi n X y := |
| 43 | Quotient.map (W.whisker p) (by |
| 44 | intro a b h |
| 45 | exact W.respects_homotopy p h) |
| 46 | |
| 47 | end M59GenLoopWhisker |
| 48 | |
| 49 | /-- |
| 50 | The path transport laws required by the later width and surgery nodes. The map |
| 51 | is definitionally induced by `M59GenLoopWhisker.map`; no free `MulEquiv` or |
| 52 | arbitrary homotopy-group function is accepted here. The identity and |
| 53 | multiplication fields make the map a group homomorphism at the dimensions used |
| 54 | later, while the reverse-path field supplies its inverse. |
| 55 | -/ |
| 56 | structure M59HigherBasepointTransport (X : Type u) [TopologicalSpace X] |
| 57 | (n : ℕ) where |
| 58 | whisker : M59GenLoopWhisker X n |
| 59 | map_refl : ∀ {x : X} (a : HomotopyGroup.Pi n X x), |
| 60 | M59GenLoopWhisker.map whisker (Path.refl x) a = a |
| 61 | map_trans : ∀ {x y z : X} (p : Path x y) (q : Path y z) |
| 62 | (a : HomotopyGroup.Pi n X x), |
| 63 | M59GenLoopWhisker.map whisker (p.trans q) a = |
| 64 | M59GenLoopWhisker.map whisker q |
| 65 | (M59GenLoopWhisker.map whisker p a) |
| 66 | map_left_inverse : ∀ {x y : X} (p : Path x y) |
| 67 | (a : HomotopyGroup.Pi n X x), |
| 68 | M59GenLoopWhisker.map whisker p.symm |
| 69 | (M59GenLoopWhisker.map whisker p a) = a |
| 70 | map_one : ∀ {x y : X} (p : Path x y) [Nonempty (Fin n)], |
| 71 | M59GenLoopWhisker.map whisker p (1 : HomotopyGroup.Pi n X x) = 1 |
| 72 | map_mul : ∀ {x y : X} (p : Path x y) [Nonempty (Fin n)] |
| 73 | (a b : HomotopyGroup.Pi n X x), |
| 74 | M59GenLoopWhisker.map whisker p (a * b) = |
| 75 | M59GenLoopWhisker.map whisker p a * |
| 76 | M59GenLoopWhisker.map whisker p b |
| 77 | |
| 78 | namespace M59HigherBasepointTransport |
| 79 | |
| 80 | abbrev map {X : Type u} [TopologicalSpace X] {n : ℕ} |
| 81 | (B : M59HigherBasepointTransport X n) {x y : X} |
| 82 | (p : Path x y) : HomotopyGroup.Pi n X x → HomotopyGroup.Pi n X y := |
| 83 | M59GenLoopWhisker.map B.whisker p |
| 84 | |
| 85 | end M59HigherBasepointTransport |
| 86 | |
| 87 | /-- One coherent higher-basepoint service, usable at both pi2 and pi3. -/ |
| 88 | structure M59HigherBasepointTransportService where |
| 89 | transport : ∀ (n : ℕ) {X : Type u} [TopologicalSpace X], |
| 90 | M59HigherBasepointTransport X n |
| 91 | naturality : |
| 92 | ∀ (n : ℕ) {X Y : Type u} [TopologicalSpace X] [TopologicalSpace Y] |
| 93 | (f : ContinuousMap X Y) {x y : X} (p : Path x y) |
| 94 | (a : HomotopyGroup.Pi n X x), |
| 95 | M59HigherBasepointTransport.map |
| 96 | (transport n (X := Y)) (p.map f.continuous) |
| 97 | (surgeryHomotopyMap (n := n) f (rfl : f x = f x) a) = |
| 98 | surgeryHomotopyMap (n := n) f (rfl : f y = f y) |
| 99 | (M59HigherBasepointTransport.map |
| 100 | (transport n (X := X)) p a) |
| 101 | |
| 102 | /-! A path of constant C1 loops must be tied pointwise to the original point |
| 103 | path. This keeps the loop-space basepoint change semantic rather than letting |
| 104 | the caller provide an unrelated path between constant loops. -/ |
| 105 | structure M59ConstantLoopPath {M : Type u} [TopologicalSpace M] |
| 106 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 107 | {x y : M} (p : Path x y) where |
| 108 | loop : Path (constantC1Loop x) (constantC1Loop y) |
| 109 | pointwise : ∀ (t : I) (z : LoopCircle), loop t z = p t |
| 110 | |
| 111 | end PoincareMT |