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.Curvature.Integral.Induction.ScaleSlabs |
| 2 | import PoincareLib.Geometry.Curvature.Integral.Induction.AreaGrowth |
| 3 | import PoincareLib.Geometry.Riemannian.Comparison.Volume.ModelBounds |
| 4 | |
| 5 | /-! |
| 6 | # Dimension-only area bounds for regular distance slabs |
| 7 | |
| 8 | The explicit inverse-scale Hessian bound makes the first-variation exponent |
| 9 | independent of the radial scale. The model volume contributes the remaining |
| 10 | power of that scale, yielding a common coefficient in every dimension. |
| 11 | |
| 12 | Reference: Petrunin (2009), Section 4.5, author manuscript pp. 9--12. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.RiemannianMetric |
| 24 | |
| 25 | /-- A coefficient for the areas of the constructed n-dimensional levels, |
| 26 | independent of the ambient manifold and radial scale. -/ |
| 27 | def scaleSlabAreaConstant (n : ℕ) : ℝ := |
| 28 | 96 * euclideanUnitBallVolume (n + 1) * 2 ^ (n + 1) * Real.exp (57 * (n : ℝ)) |
| 29 | |
| 30 | theorem scaleSlabAreaConstant_pos (n : ℕ) : 0 < scaleSlabAreaConstant n := by |
| 31 | unfold scaleSlabAreaConstant |
| 32 | positivity [euclideanUnitBallVolume_pos (n + 1)] |
| 33 | |
| 34 | private theorem modelVolume_two_mul_le (n : ℕ) {r : ℝ} |
| 35 | (hr : 0 < r) (hr1 : r ≤ 1) : |
| 36 | modelVolume (n + 1) 1 (2 * r) ≤ |
| 37 | euclideanUnitBallVolume (n + 1) * 2 ^ (n + 1) * |
| 38 | Real.exp (2 * (n : ℝ)) * r ^ (n + 1) := by |
| 39 | have h := modelVolume_le_exp_mul_zero (n := n + 1) (κ := 1) |
| 40 | zero_le_one (by positivity : 0 ≤ 2 * r) |
| 41 | rw [modelVolume_zero_curvature (by omega : 1 ≤ n + 1)] at h |
| 42 | simp only [Nat.add_sub_cancel, Real.sqrt_one, one_mul] at h |
| 43 | calc |
| 44 | _ ≤ euclideanUnitBallVolume (n + 1) * (2 * r) ^ (n + 1) * |
| 45 | Real.exp ((n : ℝ) * (2 * r)) := h |
| 46 | _ ≤ euclideanUnitBallVolume (n + 1) * (2 * r) ^ (n + 1) * |
| 47 | Real.exp (2 * (n : ℝ)) := by |
| 48 | apply mul_le_mul_of_nonneg_left |
| 49 | (Real.exp_le_exp.mpr (by nlinarith [Nat.cast_nonneg (α := ℝ) n])) |
| 50 | exact mul_nonneg (euclideanUnitBallVolume_nonneg _) (pow_nonneg (by positivity) _) |
| 51 | _ = _ := by rw [mul_pow]; ring |
| 52 | |
| 53 | /-- The coarea seed and scale-dependent exponential have a dimensional bound. -/ |
| 54 | theorem scaleSlabArea_seed_le (n : ℕ) {r : ℝ} |
| 55 | (hr : 0 < r) (hr1 : r ≤ 1) : |
| 56 | 2 * modelVolume (n + 1) 1 (2 * r) / (7 * r / 6 - 55 * r / 48) * |
| 57 | Real.exp (((n : ℝ) * (5 / r) / ((1 : ℝ) / 4) ^ 2) * |
| 58 | (11 * r / 6 - 55 * r / 48)) ≤ scaleSlabAreaConstant n * r ^ n := by |
| 59 | have hexponent : ((n : ℝ) * (5 / r) / ((1 : ℝ) / 4) ^ 2) * |
| 60 | (11 * r / 6 - 55 * r / 48) = 55 * n := by |
| 61 | field_simp |
| 62 | ring |
| 63 | have hseed : 2 * modelVolume (n + 1) 1 (2 * r) / |
| 64 | (7 * r / 6 - 55 * r / 48) = 96 * modelVolume (n + 1) 1 (2 * r) / r := by |
| 65 | field_simp |
| 66 | ring |
| 67 | rw [hexponent, hseed] |
| 68 | calc |
| 69 | _ ≤ 96 * (euclideanUnitBallVolume (n + 1) * 2 ^ (n + 1) * |
| 70 | Real.exp (2 * (n : ℝ)) * r ^ (n + 1)) / r * Real.exp (55 * n) := |
| 71 | mul_le_mul_of_nonneg_right |
| 72 | (div_le_div_of_nonneg_right |
| 73 | (mul_le_mul_of_nonneg_left (modelVolume_two_mul_le n hr hr1) (by norm_num)) hr.le) |
| 74 | (Real.exp_pos _).le |
| 75 | _ = _ := by |
| 76 | unfold scaleSlabAreaConstant |
| 77 | rw [show (57 : ℝ) * n = 2 * n + 55 * n by ring, Real.exp_add, pow_succ] |
| 78 | field_simp |
| 79 | ring |
| 80 | |
| 81 | |
| 82 | private theorem regularLevelArea_le_scaleSlabAreaConstant |
| 83 | {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 84 | [MeasurableSpace M] [BorelSpace M] [T3Space M] [PreconnectedSpace M] |
| 85 | [ChartedSpace (EuclideanSpace ℝ (Fin (n + 1))) M] |
| 86 | [IsManifold (𝓡 (n + 1)) ∞ M] |
| 87 | {g : RiemannianMetric (n + 1) M} (D : LeviCivitaData g) (hc : MetricComplete g) |
| 88 | (hsec : ∀ x : M, ∀ v w : TangentSpace (𝓡 (n + 1)) x, |
| 89 | -1 ≤ D.sectionalCurvature x v w) |
| 90 | {f : M → ℝ} (hf : ContMDiff (𝓡 (n + 1)) 𝓘(ℝ, ℝ) ∞ f) |
| 91 | {r : ℝ} (hr : 0 < r) (hr1 : r ≤ 1) |
| 92 | (hproper : IsProperMap ((Ioo (9 * r / 8) (15 * r / 8)).restrictPreimage f)) |
| 93 | (p : M) |
| 94 | (hspeed : ∀ x : M, f x ∈ Ioo (9 * r / 8) (15 * r / 8) → |
| 95 | (1 : ℝ) / 4 ≤ g.tangentNorm x (g.gradient f x) ∧ |
| 96 | g.tangentNorm x (g.gradient f x) ≤ 2) |
| 97 | (hhess : ∀ x : M, f x ∈ Ioo (9 * r / 8) (15 * r / 8) → |
| 98 | ∀ v : TangentSpace (𝓡 (n + 1)) x, |
| 99 | D.hessian f x v v ≤ (5 / r) * g.inner x v v) |
| 100 | (hball : f ⁻¹' Ioo (9 * r / 8) (15 * r / 8) ⊆ g.ball p (2 * r)) : |
| 101 | ∀ t ∈ Icc (7 * r / 6) (11 * r / 6), |
| 102 | g.regularLevelArea hf t ≤ scaleSlabAreaConstant n * t ^ n := by |
| 103 | have hinside : Icc (55 * r / 48) (11 * r / 6) ⊆ |
| 104 | Ioo (9 * r / 8) (15 * r / 8) := by |
| 105 | intro t ht |
| 106 | constructor <;> linarith [ht.1, ht.2] |
| 107 | have harea := D.regularLevelArea_le_of_gradient_hessian_bounds hc hsec hf |
| 108 | isOpen_Ioo hproper (l := (1 : ℝ) / 4) (L := 2) (H := 5 / r) |
| 109 | (a := 55 * r / 48) (d := 7 * r / 6) (b := 11 * r / 6) |
| 110 | (by norm_num) (by norm_num) (by positivity) |
| 111 | (by linarith) (by linarith) hinside (by positivity : 0 < 2 * r) p |
| 112 | hspeed hhess (fun x hx => hball (hinside hx)) |
| 113 | intro t ht |
| 114 | exact (harea t ht).trans ((scaleSlabArea_seed_le n hr hr1).trans |
| 115 | (mul_le_mul_of_nonneg_left |
| 116 | (pow_le_pow_left₀ hr.le (by linarith [ht.1]) n) |
| 117 | (scaleSlabAreaConstant_pos n).le)) |
| 118 | |
| 119 | /-- The constructed slab has an actual induced area power bound whose |
| 120 | coefficient depends only on dimension, uniformly for all scales at most one. -/ |
| 121 | theorem exists_proper_regular_slab_with_dimensional_area_bound |
| 122 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 123 | [MeasurableSpace M] [BorelSpace M] [T3Space M] [PreconnectedSpace M] |
| 124 | [ChartedSpace (EuclideanSpace ℝ (Fin (n + 1))) M] |
| 125 | [IsManifold (𝓡 (n + 1)) ∞ M] |
| 126 | (g : PoincareMT.RiemannianMetric (n + 1) M) |
| 127 | (D : PoincareMT.LeviCivitaData g) (hc : PoincareMT.MetricComplete g) |
| 128 | (hsec : ∀ x : M, ∀ v w : TangentSpace (𝓡 (n + 1)) x, |
| 129 | -1 ≤ D.sectionalCurvature x v w) |
| 130 | (p : M) {r : ℝ} (hr : 0 < r) (hr1 : r ≤ 1) |
| 131 | (hascent : ∀ y : M, r / 2 < (g.edist p y).toReal → |
| 132 | (g.edist p y).toReal < 3 * r → ∀ s : ℝ, 0 < s → |
| 133 | ∃ z : M, (g.edist y z).toReal < s ∧ |
| 134 | (1 : ℝ) / 2 * (g.edist y z).toReal < |
| 135 | (g.edist p z).toReal - (g.edist p y).toReal) : |
| 136 | ∃ (f : M → ℝ) (hf : ContMDiff (𝓡 (n + 1)) 𝓘(ℝ, ℝ) ∞ f), |
| 137 | IsProperMap ((Ioo (9 * r / 8) (15 * r / 8)).restrictPreimage f) ∧ |
| 138 | (∀ x : M, f x ∈ Ioo (9 * r / 8) (15 * r / 8) → |
| 139 | mfderiv (𝓡 (n + 1)) 𝓘(ℝ, ℝ) f x ≠ 0) ∧ |
| 140 | (∀ x : M, f x ∈ Ioo (9 * r / 8) (15 * r / 8) → |
| 141 | r < (g.edist p x).toReal ∧ (g.edist p x).toReal < 2 * r) ∧ |
| 142 | (∀ x : M, r < (g.edist p x).toReal → (g.edist p x).toReal < 2 * r → |
| 143 | |f x - (g.edist p x).toReal| ≤ r / 65536 ∧ |
| 144 | (1 : ℝ) / 4 ≤ g.tangentNorm x (D.gradient f x) ∧ |
| 145 | g.tangentNorm x (D.gradient f x) ≤ 2 ∧ |
| 146 | ∀ v : TangentSpace (𝓡 (n + 1)) x, |
| 147 | D.hessian f x v v ≤ (5 / r) * g.inner x v v) ∧ |
| 148 | ∀ t ∈ Icc (7 * r / 6) (11 * r / 6), |
| 149 | g.regularLevelArea hf t ≤ |
| 150 | PoincareMT.RiemannianMetric.scaleSlabAreaConstant n * t ^ n := by |
| 151 | obtain ⟨f, hf, hproper, hreg, hband, hbounds⟩ := |
| 152 | g.exists_proper_regular_slab_with_scale_bounds D hc hsec p hr hr1 hascent |
| 153 | refine ⟨f, hf, hproper, hreg, hband, hbounds, ?_⟩ |
| 154 | apply regularLevelArea_le_scaleSlabAreaConstant D hc hsec hf hr hr1 hproper p |
| 155 | · intro x hx |
| 156 | exact ⟨(hbounds x (hband x hx).1 (hband x hx).2).2.1, |
| 157 | (hbounds x (hband x hx).1 (hband x hx).2).2.2.1⟩ |
| 158 | · intro x hx |
| 159 | exact (hbounds x (hband x hx).1 (hband x hx).2).2.2.2 |
| 160 | · intro x hx |
| 161 | let := g.toMetricSpace |
| 162 | rw [← g.toMetricSpace_ball, Metric.mem_ball, dist_comm] |
| 163 | exact (hband x hx).2 |
| 164 | |
| 165 | end PoincareMT.RiemannianMetric |