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.Topology.ComponentData |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Ancestry.GroupEffects |
| 3 | import Mathlib.Topology.Homotopy.Contractible |
| 4 | import Mathlib.GroupTheory.Coprod.Basic |
| 5 | |
| 6 | /-! |
| 7 | # M59 topology statements on primitive manifolds |
| 8 | |
| 9 | These are separate conclusions of the single M59 theorem. Its outer proof |
| 10 | boundary receives the applied M02 topology provider once; callers of these |
| 11 | claims supply only the displayed manifold properties. |
| 12 | |
| 13 | Morgan--Tian Claims 18.19--18.20, printed p. 431, give the group obstruction |
| 14 | and finite fundamental group. The finite-cover discussion there and after |
| 15 | Proposition 18.9, printed p. 424, gives the homotopy-sphere cover. The latter |
| 16 | discussion also supplies the noncompact Hurewicz--Whitehead argument. |
| 17 | See `reviews/contracts/M59-round1.md` for the source and errata review. |
| 18 | -/ |
| 19 | |
| 20 | set_option autoImplicit false |
| 21 | |
| 22 | open scoped Manifold ContDiff Topology |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT |
| 27 | |
| 28 | /-- Claim 18.20: a closed connected smooth three-manifold with infinite cyclic |
| 29 | fundamental group, or a free product of two nontrivial groups, has nontrivial |
| 30 | pi2. The groups in the two-factor obstruction need not be finite or cyclic. |
| 31 | Source: Morgan--Tian printed p. 431, `MT2007.txt:21129-21133`. -/ |
| 32 | def M59ClosedPiTwoObstructionClaim : Prop := |
| 33 | ∀ {M : Type u} [TopologicalSpace M] |
| 34 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 35 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [SecondCountableTopology M] |
| 36 | (_compact : IsCompact (Set.univ : Set M)) |
| 37 | (_connected : IsConnected (Set.univ : Set M)) (x : M), |
| 38 | (Nonempty (FundamentalGroup M x ≃* Multiplicative ℤ) → |
| 39 | Nontrivial (HomotopyGroup.Pi 2 M x)) ∧ |
| 40 | (∀ (G H : Type u) [Group G] [Group H] [Nontrivial G] [Nontrivial H], |
| 41 | Nonempty (FundamentalGroup M x ≃* Monoid.Coprod G H) → |
| 42 | Nontrivial (HomotopyGroup.Pi 2 M x)) |
| 43 | |
| 44 | /-- Claims 18.19--18.20: pi2-vanishing makes a finite free product of finite |
| 45 | and infinite cyclic fundamental-group factors finite. Trivial factors may be |
| 46 | discarded; at most one nontrivial finite factor remains. |
| 47 | Source: Morgan--Tian printed p. 431, `MT2007.txt:21124-21140`. -/ |
| 48 | def M59FiniteFundamentalGroupClaim : Prop := |
| 49 | ∀ {M : Type u} [TopologicalSpace M] |
| 50 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 51 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [SecondCountableTopology M] |
| 52 | (_compact : IsCompact (Set.univ : Set M)) |
| 53 | (_connected : IsConnected (Set.univ : Set M)) |
| 54 | (x : M) (_pi_two_trivial : Subsingleton (HomotopyGroup.Pi 2 M x)) |
| 55 | (_fundamental_type : IsFiniteFreeProductCyclic (FundamentalGroup M x)), |
| 56 | Finite (FundamentalGroup M x) |
| 57 | |
| 58 | /-- A closed connected smooth three-manifold with finite fundamental group |
| 59 | has an actual pointed finite smooth universal cover homotopy equivalent to S3. |
| 60 | The induced pi3 equivalence uses the covering projection. M02's chosen-point |
| 61 | conclusions must be transported to the specified lift during the proof. |
| 62 | Source: Morgan--Tian printed pp. 424 and 431, |
| 63 | `MT2007.txt:20792-20800,21134-21140`. -/ |
| 64 | def M59ClosedFiniteCoverClaim : Prop := |
| 65 | ∀ {M : Type u} [TopologicalSpace M] |
| 66 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 67 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [SecondCountableTopology M] |
| 68 | (_compact : IsCompact (Set.univ : Set M)) |
| 69 | (_connected : IsConnected (Set.univ : Set M)) |
| 70 | (x : M) (_finite : Finite (FundamentalGroup M x)), |
| 71 | Nonempty (M59PointedFiniteSmoothUniversalCover x) |
| 72 | |
| 73 | /-- A noncompact simply connected smooth three-manifold with trivial based |
| 74 | pi2 is contractible. The smooth model has no boundary; Hausdorffness and |
| 75 | second countability are explicit. This is a homotopy conclusion, not a claim |
| 76 | of a homeomorphism with Euclidean space. |
| 77 | Source: Morgan--Tian Proposition 18.9 discussion, printed p. 424, |
| 78 | `MT2007.txt:20792-20800`. -/ |
| 79 | def M59NoncompactContractibilityClaim : Prop := |
| 80 | ∀ {M : Type u} [TopologicalSpace M] |
| 81 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 82 | [IsManifold (𝓡 3) ∞ M] [T2Space M] [SecondCountableTopology M] |
| 83 | [SimplyConnectedSpace M] |
| 84 | (_noncompact : ¬ IsCompact (Set.univ : Set M)) |
| 85 | (x : M) (_pi_two_trivial : Subsingleton (HomotopyGroup.Pi 2 M x)), |
| 86 | ContractibleSpace M |
| 87 | |
| 88 | end PoincareMT |