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.Topology.Manifold.Poincare.Final.Compatibility.SourceNames |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.Geometry |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.InitialEstimates.Regularity |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Lifetime.CanonicalGeometry.CapPersistenceNormalization |
| 5 | |
| 6 | /-! |
| 7 | # Scalar and diameter bounds on an actual compact component |
| 8 | |
| 9 | The six sectional terms in the three-dimensional scalar trace give the |
| 10 | terminal scalar ratio. The recorded intrinsic diameter controls the actual |
| 11 | ambient metric ball. These are the compact-component bounds in Definition |
| 12 | 9.75, p. 231, used in the first-failure argument, pp. 402-405. |
| 13 | See `proof-work/tasks/M47/derivations/component-estimate.md`, Stage B. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle BigOperators ENNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M47 |
| 24 | |
| 25 | variable {M : Type u} [TopologicalSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 27 | {g : RiemannianMetric 3 M} {D : LeviCivitaData g} |
| 28 | |
| 29 | /-- The six off-diagonal terms of the scalar trace are strict sectional |
| 30 | lower bounds; Morgan--Tian's dimension-three normalization, pp. 5-7. -/ |
| 31 | theorem six_mul_lt_scalar_of_sectional_lower (D : LeviCivitaData g) |
| 32 | (x : M) (k : ℝ) |
| 33 | (hsec : ∀ v w : TangentSpace (𝓡 3) x, |
| 34 | LeviCivitaData.IsOrthonormalPair g x v w → k < D.sectionalCurvature x v w) : |
| 35 | 6 * k < D.scalarCurvature x := by |
| 36 | classical |
| 37 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 3) : M → Type _) := |
| 38 | ⟨g.toRiemannianMetric⟩ |
| 39 | let b := g.orthonormalBasis x |
| 40 | let d := Module.finrank ℝ (TangentSpace (𝓡 3) x) |
| 41 | have hdim : d = 3 := by |
| 42 | change Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)) = 3 |
| 43 | exact finrank_euclideanSpace_fin |
| 44 | have hinner (i j : Fin d) : g.inner x (b i) (b j) = if i = j then 1 else 0 := |
| 45 | b.inner_eq_ite i j |
| 46 | have hstrict (i j : Fin d) (hij : i ≠ j) : |
| 47 | k < D.curvatureTensor x (b i) (b j) (b i) (b j) := by |
| 48 | have horth : LeviCivitaData.IsOrthonormalPair g x (b i) (b j) := by |
| 49 | simp [LeviCivitaData.IsOrthonormalPair, hinner, hij] |
| 50 | have h := hsec (b i) (b j) horth |
| 51 | simpa only [LeviCivitaData.sectionalCurvature, horth.1, horth.2.1, |
| 52 | horth.2.2, mul_one, zero_pow (by norm_num : (2 : ℕ) ≠ 0), sub_zero, div_one] using h |
| 53 | have hle (i j : Fin d) : |
| 54 | (if i = j then 0 else k) ≤ D.curvatureTensor x (b i) (b j) (b i) (b j) := by |
| 55 | by_cases hij : i = j |
| 56 | · subst j |
| 57 | simp [LeviCivitaData.curvatureTensor, M04.curvature_self] |
| 58 | · simpa only [if_neg hij] using (hstrict i j hij).le |
| 59 | have hsum : (∑ i : Fin d, ∑ j : Fin d, if i = j then 0 else k) = 6 * k := by |
| 60 | calc |
| 61 | _ = ∑ i : Fin d, ∑ j : Fin d, (k - if i = j then k else 0) := by |
| 62 | apply Finset.sum_congr rfl |
| 63 | intro i _ |
| 64 | apply Finset.sum_congr rfl |
| 65 | intro j _ |
| 66 | split_ifs <;> ring |
| 67 | _ = _ := by |
| 68 | simp [Finset.sum_sub_distrib, hdim] |
| 69 | ring |
| 70 | let i : Fin d := ⟨0, by omega⟩ |
| 71 | let j : Fin d := ⟨1, by omega⟩ |
| 72 | have hij : i ≠ j := by simp [i, j] |
| 73 | rw [← hsum] |
| 74 | exact Finset.sum_lt_sum (fun a _ => Finset.sum_le_sum (fun c _ => hle a c)) |
| 75 | ⟨i, Finset.mem_univ i, Finset.sum_lt_sum (fun c _ => hle i c) |
| 76 | ⟨j, Finset.mem_univ j, by simpa only [if_neg hij] using hstrict i j hij⟩⟩ |
| 77 | |
| 78 | /-- Every point of the actual C-component has positive scalar curvature; |
| 79 | Definition 9.75, p. 231. -/ |
| 80 | theorem component_scalar_pos {C : ℝ} (N : SingularCComponent g D C) |
| 81 | {x : M} (hx : x ∈ N.carrier) : 0 < D.scalarCurvature x := by |
| 82 | simpa only [mul_zero] using |
| 83 | six_mul_lt_scalar_of_sectional_lower D x 0 (N.positive_sectional x hx) |
| 84 | |
| 85 | /-- Smooth scalar curvature is bounded by its actual compact-component |
| 86 | supremum; Definition 9.75, p. 231. -/ |
| 87 | theorem component_scalar_le_sup {C : ℝ} (N : SingularCComponent g D C) |
| 88 | {x : M} (hx : x ∈ N.carrier) : |
| 89 | D.scalarCurvature x ≤ scalarCurvatureSupOn g D N.carrier := by |
| 90 | have hb : BddAbove (range (fun y : N.carrier => D.scalarCurvature y.1)) := by |
| 91 | apply (N.compact.bddAbove_image |
| 92 | (M34.contMDiff_scalarCurvature D).continuous.continuousOn).mono |
| 93 | rintro _ ⟨y, rfl⟩ |
| 94 | exact mem_image_of_mem _ y.2 |
| 95 | exact le_csSup hb (mem_range.mpr ⟨⟨x, hx⟩, rfl⟩) |
| 96 | |
| 97 | /-- The compact-component sectional bound gives its actual scalar ratio, |
| 98 | with the factor six from the scalar trace; Definition 9.75, p. 231. -/ |
| 99 | theorem component_scalar_ratio {C : ℝ} (N : SingularCComponent g D C) |
| 100 | {x y : M} (hx : x ∈ N.carrier) (hy : y ∈ N.carrier) : |
| 101 | D.scalarCurvature y < (C / 6) * D.scalarCurvature x := by |
| 102 | have htrace := six_mul_lt_scalar_of_sectional_lower D x |
| 103 | (C⁻¹ * scalarCurvatureSupOn g D N.carrier) (N.sectional_lower x hx) |
| 104 | have hscaled := mul_lt_mul_of_pos_left htrace N.constant_pos |
| 105 | have hcancel : C * (6 * (C⁻¹ * scalarCurvatureSupOn g D N.carrier)) = |
| 106 | 6 * scalarCurvatureSupOn g D N.carrier := by |
| 107 | field_simp [N.constant_pos.ne'] |
| 108 | rw [hcancel] at hscaled |
| 109 | have hybound := component_scalar_le_sup N hy |
| 110 | nlinarith |
| 111 | |
| 112 | /-- At scalar Q, the terminal weak-2C component has scalar below CQ/3; |
| 113 | the normalization used in the first-failure argument, pp. 402-405. -/ |
| 114 | theorem twoComponent_scalar_bound {C Q : ℝ} |
| 115 | (N : SingularCComponent g D (2 * C)) {x : M} |
| 116 | (hx : x ∈ N.carrier) (hQ : D.scalarCurvature x = Q) |
| 117 | {y : M} (hy : y ∈ N.carrier) : D.scalarCurvature y < (C / 3) * Q := by |
| 118 | have h := component_scalar_ratio N hx hy |
| 119 | rw [hQ] at h |
| 120 | convert h using 1 |
| 121 | ring |
| 122 | |
| 123 | /-- The frozen scalar-radius infimum is bounded above by each actual |
| 124 | pointwise radius; Definition 9.75, p. 231. -/ |
| 125 | theorem component_diameter_lt {C : ℝ} (N : SingularCComponent g D C) |
| 126 | {x : M} (hx : x ∈ N.carrier) : |
| 127 | intrinsicDiameter g N.carrier < |
| 128 | ENNReal.ofReal (C * D.scalarCurvature x ^ (-1 / 2 : ℝ)) := by |
| 129 | have hb : BddBelow (range (fun y : N.carrier => |
| 130 | D.scalarCurvature y.1 ^ (-1 / 2 : ℝ))) := by |
| 131 | refine ⟨0, ?_⟩ |
| 132 | rintro _ ⟨y, rfl⟩ |
| 133 | exact Real.rpow_nonneg (component_scalar_pos N y.2).le _ |
| 134 | have hi := csInf_le hb (mem_range.mpr ⟨⟨x, hx⟩, rfl⟩) |
| 135 | exact N.diameter_upper.trans_le (ENNReal.ofReal_le_ofReal |
| 136 | (mul_le_mul_of_nonneg_left hi N.constant_pos.le)) |
| 137 | |
| 138 | /-- The actual C-component lies in the metric ball controlled by its |
| 139 | intrinsic diameter and any base scalar; Definition 9.75, p. 231. -/ |
| 140 | theorem component_subset_ball {C : ℝ} (N : SingularCComponent g D C) |
| 141 | {x : M} (hx : x ∈ N.carrier) : |
| 142 | N.carrier ⊆ g.ball x (C * D.scalarCurvature x ^ (-1 / 2 : ℝ)) := by |
| 143 | intro y hy |
| 144 | exact ((edist_le_intrinsicEDist N.carrier x y).trans |
| 145 | (intrinsicEDist_le_intrinsicDiameter hx hy)).trans_lt (component_diameter_lt N hx) |
| 146 | |
| 147 | end PoincareMT.M47 |