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.Riemannian.LoopSpace.Width |
| 2 | |
| 3 | /-! |
| 4 | # M59 loop-class models and actual postcomposition |
| 5 | |
| 6 | These primitive objects use the existing C1 loop topology and the actual cube |
| 7 | representatives of homotopy groups. One common cube-to-sphere quotient fixes |
| 8 | the parameter used by every normalized regular family. Relative squares have |
| 9 | three sides at a fixed constant loop and the fourth in the constant-loop |
| 10 | subspace, as in Perelman III, Section 1. |
| 11 | |
| 12 | Source: Morgan--Tian Claim 18.16 and Definition 18.17, printed p. 430; |
| 13 | `references/derived/MT2007.txt:21046-21079` and |
| 14 | `references/derived/PerelmanIII.txt:34-40`. Smooth postcomposition carries the |
| 15 | whole loop extension; a merely Lipschitz map does not supply this C1 operation. |
| 16 | See `reviews/errata/2026-09-10-surgery-extinction-audit.md:68-85`. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open scoped Manifold ContDiff Bundle Topology ENNReal unitInterval |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | namespace PoincareMT |
| 26 | |
| 27 | /-- A fixed cube-to-sphere parameter, collapsing exactly the cube boundary. -/ |
| 28 | structure M59SphereQuotient where |
| 29 | map : ContinuousMap (Fin 2 → I) LoopTwoSphere |
| 30 | pole : LoopTwoSphere |
| 31 | surjective : Function.Surjective map |
| 32 | boundary_collapsed : ∀ y ∈ Cube.boundary (Fin 2), map y = pole |
| 33 | exact_fibers : ∀ y z, map y = map z ↔ |
| 34 | y = z ∨ (y ∈ Cube.boundary (Fin 2) ∧ z ∈ Cube.boundary (Fin 2)) |
| 35 | |
| 36 | section Carrier |
| 37 | |
| 38 | variable {M : Type u} [TopologicalSpace M] |
| 39 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 40 | |
| 41 | /-- The actual continuous sphere map displayed by a regular family. -/ |
| 42 | def m59FamilyMap (Gamma : FreeTwoSphereFamily (M := M)) : |
| 43 | ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)) := |
| 44 | ⟨Gamma.family, Gamma.continuous⟩ |
| 45 | |
| 46 | /-- Fix both the chosen point and the common sphere parameter. -/ |
| 47 | def M59NormalizedAt (q : M59SphereQuotient) (x : M) |
| 48 | (Gamma : FreeTwoSphereFamily (M := M)) : Prop := |
| 49 | Gamma.basepoint = x ∧ Gamma.class_certificate.sphere_parameter = q.map |
| 50 | |
| 51 | /-- The pointed relative square for the pair of free loops and constant loops. |
| 52 | Three edges are fixed at `x`; the remaining edge consists of constant loops. -/ |
| 53 | def M59RelativeLoopCubeAt (x : M) |
| 54 | (F : ContinuousMap (Fin 2 → I) (C1FreeLoopSpace (M := M))) : Prop := |
| 55 | (∀ z, z 0 = 0 ∨ z 1 = 0 ∨ z 1 = 1 → F z = constantC1Loop x) ∧ |
| 56 | ∀ z, z 0 = 1 → ∃ p : M, F z = constantC1Loop p |
| 57 | |
| 58 | end Carrier |
| 59 | |
| 60 | section Postcomposition |
| 61 | |
| 62 | variable {M N : Type u} |
| 63 | [TopologicalSpace M] [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 64 | [TopologicalSpace N] [ChartedSpace LoopAmbient N] [IsManifold (𝓡 3) ∞ N] |
| 65 | |
| 66 | /-- Actual continuous postcomposition on the carried C1 loop extensions. |
| 67 | The existence conclusion takes smoothness of `f` as a separate primitive input. -/ |
| 68 | structure M59LoopPostcomposition (f : ContinuousMap M N) where |
| 69 | map : ContinuousMap (C1FreeLoopSpace (M := M)) (C1FreeLoopSpace (M := N)) |
| 70 | extension_agreement : ∀ gamma z, (map gamma).extension z = f (gamma.extension z) |
| 71 | maps_constant : ∀ p : M, map (constantC1Loop p) = constantC1Loop (f p) |
| 72 | |
| 73 | /-- The chosen point equality gives the corresponding based loop-map equality. -/ |
| 74 | theorem M59LoopPostcomposition.map_based {f : ContinuousMap M N} |
| 75 | (L : M59LoopPostcomposition f) {x : M} {y : N} (based : f x = y) : |
| 76 | L.map (constantC1Loop x) = constantC1Loop y := |
| 77 | (L.maps_constant x).trans (congrArg constantC1Loop based) |
| 78 | |
| 79 | end Postcomposition |
| 80 | |
| 81 | end PoincareMT |