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.AreaGrowth |
| 2 | |
| 3 | /-! |
| 4 | # Common geometric parameters for the annular scalar estimate |
| 5 | |
| 6 | The actual area-growth estimate, a positive lower gradient bound and an upper |
| 7 | Hessian bound construct one parameter controlling the three geometric inputs |
| 8 | to the regular-level induction. Reference: Petrunin (2009), Section 4.5, |
| 9 | author manuscript pp. 10--12. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.LeviCivitaData |
| 20 | |
| 21 | /-- A single explicit constant supplies the area, normalized Hessian and |
| 22 | gradient-speed bounds used by the annular scalar estimate. -/ |
| 23 | theorem regularLevel_annular_bounds_of_gradient_hessian_bounds |
| 24 | {m : ℕ} {M : Type*} [TopologicalSpace M] |
| 25 | [MeasurableSpace M] [BorelSpace M] [T3Space M] [PreconnectedSpace M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 2))) M] |
| 27 | [IsManifold (𝓡 (m + 2)) ∞ M] |
| 28 | {g : RiemannianMetric (m + 2) M} |
| 29 | (D : LeviCivitaData g) (hc : MetricComplete g) |
| 30 | (hsec : ∀ x (v w : TangentSpace (𝓡 (m + 2)) x), |
| 31 | -1 ≤ D.sectionalCurvature x v w) |
| 32 | {f : M → ℝ} (hf : ContMDiff (𝓡 (m + 2)) 𝓘(ℝ, ℝ) ∞ f) |
| 33 | {I : Set ℝ} (hI : IsOpen I) (hproper : IsProperMap (I.restrictPreimage f)) |
| 34 | {l H a₀ a b R : ℝ} (hl : 0 < l) (hH : 0 ≤ H) |
| 35 | (ha : 0 < a) (ha₀a : a₀ < a) (hab : a < b) |
| 36 | (hslab : Icc a₀ (3 * b / 2) ⊆ I) (hR : 0 < R) (p : M) |
| 37 | (hspeed : ∀ x : M, f x ∈ I → |
| 38 | l ≤ g.tangentNorm x (g.gradient f x) ∧ |
| 39 | g.tangentNorm x (g.gradient f x) ≤ 1) |
| 40 | (hhess : ∀ x : M, f x ∈ I → ∀ v : TangentSpace (𝓡 (m + 2)) x, |
| 41 | D.hessian f x v v ≤ H * g.inner x v v) |
| 42 | (hball : f ⁻¹' Icc a₀ (3 * b / 2) ⊆ g.ball p R) : |
| 43 | let C := RiemannianMetric.modelVolume (m + 2) 1 R / (a - a₀) * |
| 44 | Real.exp ((((m + 1 : ℕ) : ℝ) * H / l ^ 2) * (3 * b / 2 - a₀)) |
| 45 | let α := max 1 (max (1 / l) (max ((H / l) * (3 * b / 2)) (C / a ^ (m + 1)))) |
| 46 | 0 < α ∧ |
| 47 | (∀ t ∈ Icc a (3 * b / 2), g.regularLevelArea hf t ≤ α * t ^ (m + 1)) ∧ |
| 48 | (∀ t ∈ Icc a (3 * b / 2), ∀ x, f x = t → |
| 49 | ∀ v : TangentSpace (𝓡 (m + 2)) x, |
| 50 | g.inner x (D.gradient f x) v = 0 → |
| 51 | D.hessian f x v v / Real.sqrt (D.levelQ f x) ≤ (α / t) * g.inner x v v) ∧ |
| 52 | ∀ x ∈ f ⁻¹' Icc a (3 * b / 2), |
| 53 | 1 / α ≤ g.tangentNorm x (g.gradient f x) ∧ |
| 54 | g.tangentNorm x (g.gradient f x) ≤ 1 := by |
| 55 | let C := RiemannianMetric.modelVolume (m + 2) 1 R / (a - a₀) * |
| 56 | Real.exp ((((m + 1 : ℕ) : ℝ) * H / l ^ 2) * (3 * b / 2 - a₀)) |
| 57 | let α := max 1 (max (1 / l) (max ((H / l) * (3 * b / 2)) (C / a ^ (m + 1)))) |
| 58 | have hα : 0 < α := zero_lt_one.trans_le (le_max_left _ _) |
| 59 | have hlα : 1 / l ≤ α := (le_max_left _ _).trans (le_max_right _ _) |
| 60 | have hHα : (H / l) * (3 * b / 2) ≤ α := |
| 61 | (le_max_left _ _).trans ((le_max_right _ _).trans (le_max_right _ _)) |
| 62 | have hCα : C / a ^ (m + 1) ≤ α := |
| 63 | (le_max_right _ _).trans ((le_max_right _ _).trans (le_max_right _ _)) |
| 64 | have hinside : Icc a (3 * b / 2) ⊆ I := |
| 65 | fun t ht => hslab ⟨ha₀a.le.trans ht.1, ht.2⟩ |
| 66 | have harea : ∀ t ∈ Icc a (3 * b / 2), g.regularLevelArea hf t ≤ C := by |
| 67 | simpa only [one_mul] using D.regularLevelArea_le_of_gradient_hessian_bounds |
| 68 | hc hsec hf hI hproper hl (show (0 : ℝ) ≤ 1 by norm_num) hH ha₀a |
| 69 | (show a ≤ 3 * b / 2 by linarith) hslab hR p hspeed hhess hball |
| 70 | refine ⟨hα, ?_, ?_, ?_⟩ |
| 71 | · intro t ht |
| 72 | have hC : C ≤ α * a ^ (m + 1) := (div_le_iff₀ (pow_pos ha _)).mp hCα |
| 73 | exact (harea t ht).trans (hC.trans |
| 74 | (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ ha.le ht.1 _) hα.le)) |
| 75 | · intro t ht x hxt v _ |
| 76 | have hx : f x ∈ I := hxt ▸ hinside ht |
| 77 | have hs : l ≤ Real.sqrt (D.levelQ f x) := (hspeed x hx).1 |
| 78 | have hspos : 0 < Real.sqrt (D.levelQ f x) := hl.trans_le hs |
| 79 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 (m + 2)) : M → Type _) := |
| 80 | ⟨g.toRiemannianMetric⟩ |
| 81 | have hv : 0 ≤ g.inner x v v := by |
| 82 | change 0 ≤ inner ℝ v v |
| 83 | exact real_inner_self_nonneg |
| 84 | have hHt : H / l ≤ α / t := (le_div_iff₀ (ha.trans_le ht.1)).mpr |
| 85 | ((mul_le_mul_of_nonneg_left ht.2 (div_nonneg hH hl.le)).trans hHα) |
| 86 | calc |
| 87 | D.hessian f x v v / Real.sqrt (D.levelQ f x) ≤ |
| 88 | (H * g.inner x v v) / Real.sqrt (D.levelQ f x) := |
| 89 | div_le_div_of_nonneg_right (hhess x hx v) hspos.le |
| 90 | _ ≤ (H * g.inner x v v) / l := |
| 91 | div_le_div_of_nonneg_left (mul_nonneg hH hv) hl hs |
| 92 | _ = (H / l) * g.inner x v v := by ring |
| 93 | _ ≤ (α / t) * g.inner x v v := mul_le_mul_of_nonneg_right hHt hv |
| 94 | · intro x hx |
| 95 | exact ⟨((one_div_le hl hα).mp hlα).trans (hspeed x (hinside hx)).1, |
| 96 | (hspeed x (hinside hx)).2⟩ |
| 97 | |
| 98 | end PoincareMT.LeviCivitaData |