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.CurveShortening.Ramp.Adapters |
| 2 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalEstimates.Smooth.CurvatureBarrier |
| 3 | import PoincareLib.Geometry.CurveShortening.Ramp.LocalEstimates.Bounded.CurvatureFirstJet |
| 4 | import PoincareLib.Geometry.RicciFlow.CurveShortening.Evolution.Theory |
| 5 | |
| 6 | /-! |
| 7 | # Common curvature bounds for actual normal approximants |
| 8 | |
| 9 | An actual uniform initial cap gives one doubled comparison slab. |
| 10 | The half slab includes its final time in the inverse-square-root |
| 11 | first-jet bound. MT2007 Claim 19.1, p. 437 and Lemma 19.24, |
| 12 | pp. 454-455; MT2015Correction Corollary 0.3, pp. 6-7; |
| 13 | `2026-09-22-common-normal-curvature-bounds.md`. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.M63 |
| 24 | |
| 25 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] [T2Space M] |
| 26 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 27 | {a b : ℝ} |
| 28 | |
| 29 | /-- One common short slab bounds the actual curvature of every smooth |
| 30 | approximant, and its half slab has a first-jet norm bound through its |
| 31 | final endpoint. MT2007 Claim 19.1, p. 437; common normal curvature |
| 32 | bounds derivation. No higher initial derivative bound is assumed. -/ |
| 33 | theorem exists_common_normal_curvature_bounds |
| 34 | (F : RicciFlow n M (Icc a b)) |
| 35 | (hcompact : IsCompact (univ : Set M)) |
| 36 | {T : ℝ} (haT : a < T) (hTb : T ≤ b) |
| 37 | (c : ℕ → ℝ → ℝ → M) |
| 38 | (hc : ∀ j, M63SmoothShrinkingCurveOn F (c j) (Icc a T)) |
| 39 | {R0 : ℝ} (hR0 : 0 ≤ R0) |
| 40 | (hinit : ∀ j x, m62CurvatureSquared F (c j) a x ≤ R0) : |
| 41 | ∃ delta : ℝ, 0 < delta ∧ a + 2 * delta ≤ T ∧ |
| 42 | 2 * delta ≤ 1 ∧ ∃ R J : ℝ, 0 ≤ R ∧ 0 ≤ J ∧ |
| 43 | (∀ j t, t ∈ Icc a (a + 2 * delta) → ∀ x, |
| 44 | m62CurvatureSquared F (c j) t x ≤ R) ∧ |
| 45 | (∀ j t, t ∈ Ioc a (a + delta) → ∀ x, |
| 46 | (F.metric t).tangentNorm (c j x t) |
| 47 | (m63CurvatureJet F (c j) 1 t x) ≤ J / Real.sqrt (t - a)) := by |
| 48 | obtain ⟨K0, K1, K2, ⟨h0, h1, h2⟩, hBounds⟩ := M62.exists_ambient_bounds F hcompact |
| 49 | let Q := R0 + 1 |
| 50 | let A := 2 + m62C0 K0 K1 K2 |
| 51 | have hQ : 0 < Q := by dsimp only [Q]; linarith only [hR0] |
| 52 | have hC : 0 ≤ m62C0 K0 K1 K2 := by unfold m62C0; positivity |
| 53 | have hA : 0 < A := by dsimp only [A]; linarith only [hC] |
| 54 | let delta := min ((T - a) / 2) (min (1 / 2) (1 / (4 * A * Q))) |
| 55 | have hdelta : 0 < delta := by |
| 56 | dsimp only [delta] |
| 57 | exact lt_min (div_pos (sub_pos.mpr haT) (by norm_num)) |
| 58 | (lt_min (by norm_num) (one_div_pos.mpr (by positivity))) |
| 59 | have hdeltaT : delta ≤ (T - a) / 2 := min_le_left _ _ |
| 60 | have hdeltaOne : delta ≤ 1 / 2 := (min_le_right _ _).trans (min_le_left _ _) |
| 61 | have hdeltaSmall : delta ≤ 1 / (4 * A * Q) := |
| 62 | (min_le_right _ _).trans (min_le_right _ _) |
| 63 | have hT : a + 2 * delta ≤ T := by linarith only [hdeltaT] |
| 64 | have hone : 2 * delta ≤ 1 := by linarith only [hdeltaOne] |
| 65 | have hshort : A * Q * ((a + 2 * delta) - a) ≤ 1 / 2 := by |
| 66 | have hmul := (le_div_iff₀ (show 0 < 4 * A * Q by positivity)).mp hdeltaSmall |
| 67 | nlinarith only [hmul] |
| 68 | have haD : a < a + 2 * delta := by linarith only [hdelta] |
| 69 | have hsubT : Icc a (a + 2 * delta) ⊆ Icc a T := Icc_subset_Icc_right hT |
| 70 | have hsubF : Icc a (a + 2 * delta) ⊆ Icc a b := |
| 71 | Icc_subset_Icc_right (hT.trans hTb) |
| 72 | let F' := m63RestrictClosedFlow F a (a + 2 * delta) hsubF haD |
| 73 | have hc' (j : ℕ) : M62ShrinkingCurve F' (c j) := |
| 74 | m63SmoothRestriction (hc j) a (a + 2 * delta) hsubT haD |
| 75 | have hBounds' : CurveEvolutionAmbientBounds F' K0 K1 K2 := |
| 76 | m63RestrictAmbientBounds hBounds a (a + 2 * delta) hsubF haD |
| 77 | have hcap (j : ℕ) (t : ℝ) (ht : t ∈ Icc a (a + 2 * delta)) (x : ℝ) : |
| 78 | m62CurvatureSquared F (c j) t x ≤ 2 * Q := by |
| 79 | have hE := M62.curve_estimates F' (c j) (hc' j) h0 h1 h2 hBounds' |
| 80 | have hinitial (y : ℝ) : m62CurvatureSquared F' (c j) a y + 1 ≤ Q := by |
| 81 | change m62CurvatureSquared F (c j) a y + 1 ≤ R0 + 1 |
| 82 | linarith only [hinit j y] |
| 83 | have hbar := m63SmoothCurvatureSquared_shortTime F' (c j) (hc' j) |
| 84 | h0 h1 h2 hE hQ hshort hinitial x t ht |
| 85 | have hbound := hbar.1.trans hbar.2 |
| 86 | change m62CurvatureSquared F (c j) t x + 1 ≤ 2 * Q at hbound |
| 87 | linarith only [hbound] |
| 88 | have hR : 0 ≤ 2 * Q := by positivity |
| 89 | obtain ⟨C0, hC0, hjet⟩ := m63Exists_boundedCurvature_firstJet_bound F' hcompact hR |
| 90 | refine ⟨delta, hdelta, hT, hone, 2 * Q, Real.sqrt C0, hR, |
| 91 | Real.sqrt_nonneg _, hcap, ?_⟩ |
| 92 | intro j t ht x |
| 93 | have ht' : t ∈ Ioo a (a + 2 * delta) := |
| 94 | ⟨ht.1, by linarith only [ht.2, hdelta]⟩ |
| 95 | have htime : t - a ≤ 1 := by linarith only [ht.2, hone, hdelta] |
| 96 | have hbound := hjet (c j) (hc' j) |
| 97 | (fun s hs y => hcap j s (Ioo_subset_Icc_self hs) y) x t ht' htime |
| 98 | change Real.sqrt (m63CurvatureJetSquared F' (c j) 1 t x) ≤ |
| 99 | Real.sqrt C0 / Real.sqrt (t - a) |
| 100 | exact (Real.sqrt_le_sqrt hbound).trans_eq (Real.sqrt_div hC0 _) |
| 101 | |
| 102 | end PoincareMT.M63 |