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.Based |
| 2 | import PoincareLib.Geometry.CurveShortening.Ramp.Geometry |
| 3 | |
| 4 | /-! |
| 5 | # M61 primitive width conclusions |
| 6 | |
| 7 | Family maxima and sphere minima are attained; a loop-class infimum has |
| 8 | epsilon near-minimizers. The chosen quotient labels classes without |
| 9 | restricting their raw competitors. Predecessor services appear only in the |
| 10 | proof entry and checked adapters. Sources: Morgan--Tian Definition 18.17, |
| 11 | p. 430, Lemma 18.10, pp. 424-426, and corrected Corollary 18.28, p. 434; |
| 12 | `reviews/contracts/M61-round1.md` and the M60 sphere-area erratum. |
| 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 | /-- Maximum properties of the actual filling-area function of one family. -/ |
| 29 | structure M61FamilyWidthProperties (g : RiemannianMetric 3 M) |
| 30 | (F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M))) : Prop where |
| 31 | area_continuous : Continuous (fun c => fillingArea g (F c)) |
| 32 | bounded_above : BddAbove (Set.range (fun c => fillingArea g (F c))) |
| 33 | attained : ∃ c, fillingArea g (F c) = m61FamilyWidth g F |
| 34 | nonnegative : 0 ≤ m61FamilyWidth g F |
| 35 | |
| 36 | /-- Infimum properties for all raw free representatives of the anchor. -/ |
| 37 | structure M61FreeClassWidthProperties (g : RiemannianMetric 3 M) |
| 38 | (F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M))) : Prop where |
| 39 | nonempty : (m61FreeClassWidthRange g F).Nonempty |
| 40 | bounded_below : BddBelow (m61FreeClassWidthRange g F) |
| 41 | nonnegative : 0 ≤ m61FreeClassWidth g F |
| 42 | le_member : ∀ G : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)), |
| 43 | M61NullFamily G → F.Homotopic G → m61FreeClassWidth g F ≤ m61FamilyWidth g G |
| 44 | near_minimizer : ∀ epsilon : ℝ, 0 < epsilon → |
| 45 | ∃ G : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)), |
| 46 | M61NullFamily G ∧ F.Homotopic G ∧ |
| 47 | m61FamilyWidth g G < m61FreeClassWidth g F + epsilon |
| 48 | homotopy_invariant : |
| 49 | ∀ G : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)), |
| 50 | M61NullFamily G → F.Homotopic G → |
| 51 | m61FreeClassWidth g F = m61FreeClassWidth g G |
| 52 | |
| 53 | /-- Class labeling is separate from the metric-dependent width estimates. -/ |
| 54 | def M61UniqueClassLabels (q : M59SphereQuotient) (x : M) : Prop := |
| 55 | ∀ F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)), |
| 56 | M61NullFamily F → |
| 57 | ∃! alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) (constantC1Loop x), |
| 58 | M61Represents q x alpha F |
| 59 | |
| 60 | /-- The based notation agrees with every raw anchor representing that class. -/ |
| 61 | structure M61BasedClassWidthProperties (q : M59SphereQuotient) |
| 62 | (g : RiemannianMetric 3 M) (x : M) |
| 63 | (alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) (constantC1Loop x)) : |
| 64 | Prop where |
| 65 | normalized_seed : ∃ Gamma : FreeTwoSphereFamily (M := M), |
| 66 | M59NormalizedAt q x Gamma ∧ familySigmaClass Gamma = ⟨x, alpha⟩ |
| 67 | nonempty : (m61BasedClassWidthRange q g x alpha).Nonempty |
| 68 | bounded_below : BddBelow (m61BasedClassWidthRange q g x alpha) |
| 69 | nonnegative : 0 ≤ m61BasedClassWidth q g x alpha |
| 70 | range_eq_free : ∀ F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)), |
| 71 | M61NullFamily F → M61Represents q x alpha F → |
| 72 | m61BasedClassWidthRange q g x alpha = m61FreeClassWidthRange g F |
| 73 | eq_free : ∀ F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)), |
| 74 | M61NullFamily F → M61Represents q x alpha F → |
| 75 | m61BasedClassWidth q g x alpha = m61FreeClassWidth g F |
| 76 | near_minimizer : ∀ epsilon : ℝ, 0 < epsilon → |
| 77 | ∃ F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)), |
| 78 | M61NullFamily F ∧ M61Represents q x alpha F ∧ |
| 79 | m61FamilyWidth g F < m61BasedClassWidth q g x alpha + epsilon |
| 80 | |
| 81 | end LoopFamilies |
| 82 | |
| 83 | /-- The two generic order/compactness conclusions, with primitive hypotheses. -/ |
| 84 | structure M61RawWidthCore : Prop where |
| 85 | family : ∀ {M : Type u} [TopologicalSpace M] |
| 86 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 87 | [T2Space M] [SecondCountableTopology M] (g : RiemannianMetric 3 M), |
| 88 | IsCompact (Set.univ : Set M) → |
| 89 | ∀ F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)), |
| 90 | M61NullFamily F → M61FamilyWidthProperties g F |
| 91 | free_class : ∀ {M : Type u} [TopologicalSpace M] |
| 92 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 93 | [T2Space M] [SecondCountableTopology M] (g : RiemannianMetric 3 M), |
| 94 | IsCompact (Set.univ : Set M) → |
| 95 | ∀ F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)), |
| 96 | M61NullFamily F → M61FreeClassWidthProperties g F |
| 97 | |
| 98 | /-- The actual least element of the sphere-area range and its geometric map. -/ |
| 99 | structure M61SphereWidthProperties |
| 100 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 101 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 102 | (g : RiemannianMetric n M) : Prop where |
| 103 | positive : 0 < m61SphereWidth g |
| 104 | least : IsLeast (m61SphereAreaRange g) (m61SphereWidth g) |
| 105 | attained : ∃ f : UnitTwoSphere → M, M60BranchedMinimalSphere g f ∧ |
| 106 | ¬ IsNullHomotopicSphere f ∧ m60SphereArea g f = m61SphereWidth g |
| 107 | |
| 108 | /-- The corrected uniform short-loop threshold controls an actual family max. -/ |
| 109 | def M61ShortFamilyWidthClaim : Prop := |
| 110 | ∀ {M : Type u} [TopologicalSpace M] |
| 111 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 112 | [T2Space M] [SecondCountableTopology M] (g : RiemannianMetric 3 M), |
| 113 | IsCompact (Set.univ : Set M) → ∀ eta : ℝ, 0 < eta → |
| 114 | ∃ zeta : ℝ, 0 < zeta ∧ zeta < eta / 2 ∧ |
| 115 | ∀ F : ContinuousMap LoopTwoSphere (C1FreeLoopSpace (M := M)), |
| 116 | M61NullFamily F → (∀ c, freeLoopLength g (F c) < zeta) → |
| 117 | m61FamilyWidth g F < eta |
| 118 | |
| 119 | /-- Complete M61 conclusions indexed only by the chosen primitive quotient. -/ |
| 120 | structure M61WidthTheory (q : M59SphereQuotient) : Prop extends M61RawWidthCore.{u} where |
| 121 | class_labels : ∀ {M : Type u} [TopologicalSpace M] |
| 122 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 123 | [T2Space M] [SecondCountableTopology M], |
| 124 | IsCompact (Set.univ : Set M) → IsConnected (Set.univ : Set M) → |
| 125 | ∀ x : M, Subsingleton (HomotopyGroup.Pi 2 M x) → M61UniqueClassLabels q x |
| 126 | based_class : ∀ {M : Type u} [TopologicalSpace M] |
| 127 | [ChartedSpace LoopAmbient M] [IsManifold (𝓡 3) ∞ M] |
| 128 | [T2Space M] [SecondCountableTopology M] (g : RiemannianMetric 3 M), |
| 129 | IsCompact (Set.univ : Set M) → IsConnected (Set.univ : Set M) → |
| 130 | ∀ x : M, Subsingleton (HomotopyGroup.Pi 2 M x) → |
| 131 | ∀ alpha : HomotopyGroup.Pi 2 (C1FreeLoopSpace (M := M)) (constantC1Loop x), |
| 132 | M61BasedClassWidthProperties q g x alpha |
| 133 | sphere : ∀ {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 134 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 135 | [T2Space M] [SecondCountableTopology M] (g : RiemannianMetric n M), |
| 136 | IsCompact (Set.univ : Set M) → ∀ x : M, |
| 137 | Nontrivial (HomotopyGroup.Pi 2 M x) → M61SphereWidthProperties g |
| 138 | short_family : M61ShortFamilyWidthClaim.{u} |
| 139 | |
| 140 | end PoincareMT |