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.Extinction.Width.Class.MinimalSphere |
| 3 | import PoincareLib.Topology.Manifold.EmbeddedSphere.Basic |
| 4 | |
| 5 | /-! |
| 6 | # M61 actual free-family and sphere-area infima |
| 7 | |
| 8 | Morgan--Tian Definition 18.17, p. 430, ranges over all continuous sphere |
| 9 | families of null C1 loops. The based representation relation below labels |
| 10 | those raw competitors; it does not require them to be normalized families. |
| 11 | The separate sphere infimum is Lemma 18.10, pp. 424-426. See |
| 12 | `reviews/contracts/M61-round1.md` for the source and legacy-width distinction. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open scoped Manifold ContDiff Bundle |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT |
| 22 | |
| 23 | section LoopFamilies |
| 24 | |
| 25 | variable {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 27 | |
| 28 | /-- A property of the displayed continuous family, with no based condition. -/ |
| 29 | def M61NullFamily (F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M))) : |
| 30 | Prop := |
| 31 | ∀ c, IsNullHomotopicLoop (F c) |
| 32 | |
| 33 | /-- The actual supremum of the filling areas in a continuous sphere family. -/ |
| 34 | noncomputable def m61FamilyWidth (g : RiemannianMetric 3 M) |
| 35 | (F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M))) : ℝ := |
| 36 | sSup (Set.range (fun c => fillingArea g (F c))) |
| 37 | |
| 38 | /-- All raw null families in the same free homotopy class as the anchor. -/ |
| 39 | def m61FreeClassWidthRange (g : RiemannianMetric 3 M) |
| 40 | (F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M))) : Set ℝ := |
| 41 | {w | ∃ G : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)), |
| 42 | M61NullFamily G ∧ F.Homotopic G ∧ m61FamilyWidth g G = w} |
| 43 | |
| 44 | /-- Definition 18.17's infimum over all free representatives. -/ |
| 45 | noncomputable def m61FreeClassWidth (g : RiemannianMetric 3 M) |
| 46 | (F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M))) : ℝ := |
| 47 | sInf (m61FreeClassWidthRange g F) |
| 48 | |
| 49 | /-- A normalized seed labels a raw free family at the fixed quotient and point. |
| 50 | The raw family itself has no constant-member or extra-regularity condition. -/ |
| 51 | def M61Represents (q : M59SphereQuotient) (x : M) |
| 52 | (alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) (constantC1Loop x)) |
| 53 | (F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M))) : Prop := |
| 54 | ∃ Gamma : FreeTwoSphereFamily (M := M), |
| 55 | M59NormalizedAt q x Gamma ∧ familySigmaClass Gamma = ⟨x, alpha⟩ ∧ |
| 56 | F.Homotopic (m59FamilyMap Gamma) |
| 57 | |
| 58 | /-- Every raw null representative of the specified based class is admissible. -/ |
| 59 | def m61BasedClassWidthRange (q : M59SphereQuotient) (g : RiemannianMetric 3 M) |
| 60 | (x : M) |
| 61 | (alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) (constantC1Loop x)) : |
| 62 | Set ℝ := |
| 63 | {w | ∃ F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)), |
| 64 | M61NullFamily F ∧ M61Represents q x alpha F ∧ m61FamilyWidth g F = w} |
| 65 | |
| 66 | /-- The based notation for the same unrestricted free-class infimum. -/ |
| 67 | noncomputable def m61BasedClassWidth (q : M59SphereQuotient) |
| 68 | (g : RiemannianMetric 3 M) (x : M) |
| 69 | (alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) (constantC1Loop x)) : ℝ := |
| 70 | sInf (m61BasedClassWidthRange q g x alpha) |
| 71 | |
| 72 | end LoopFamilies |
| 73 | |
| 74 | section Spheres |
| 75 | |
| 76 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 77 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 78 | |
| 79 | /-- Areas of all C1 non-null sphere maps, across all nontrivial free classes. -/ |
| 80 | def m61SphereAreaRange (g : RiemannianMetric n M) : Set ℝ := |
| 81 | {a | ∃ f : UnitTwoSphere → M, ContMDiff (𝓡 2) (𝓡 n) 1 f ∧ |
| 82 | ¬ IsNullHomotopicSphere f ∧ m60SphereArea g f = a} |
| 83 | |
| 84 | /-- The least-sphere invariant W2, distinct from the loop-family width. -/ |
| 85 | noncomputable def m61SphereWidth (g : RiemannianMetric n M) : ℝ := |
| 86 | sInf (m61SphereAreaRange g) |
| 87 | |
| 88 | end Spheres |
| 89 | |
| 90 | end PoincareMT |