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.Harnack.Noncompact.CurvatureControl.Cylinders.Scalar |
| 2 | |
| 3 | /-! |
| 4 | # Expanding cylinders from unbounded time-weighted scalar curvature |
| 5 | |
| 6 | Apply fixed-cylinder point selection with increasing dimensionless radius |
| 7 | and duration. The selected curvature dominates the square of that radius, |
| 8 | so each fixed normalized ball eventually lies in a source unit ball. |
| 9 | |
| 10 | This is the point-selection step of Kleiner--Lott, Corollary 45.1(a), |
| 11 | equations (45.7)--(45.10), pp. 2684--2685. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.RicciFlow |
| 23 | |
| 24 | /-- Unbounded time-weighted scalar curvature on a finite slab supplies |
| 25 | expanding terminal cylinders whose fixed normalized radii shrink to zero |
| 26 | in the original metric. -/ |
| 27 | theorem exists_expanding_cylinders_of_unbounded_time_scalar |
| 28 | {m : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) M] |
| 30 | [IsManifold (𝓡 (m + 1)) ∞ M] {J : Set ℝ} |
| 31 | (hC : RicciFlowCurvatureTheory.{u}) (hm : 0 < m) |
| 32 | (F : RicciFlow (m + 1) M J) {a b : ℝ} (hab : a < b) |
| 33 | (hJ : Icc a b ⊆ interior J) |
| 34 | (hcomplete : ∀ t ∈ Icc a b, MetricComplete (F.metric t)) |
| 35 | (hoperator : ∀ t ∈ Icc a b, ∀ x : M, |
| 36 | (F.connection t).NonnegativeCurvatureOperator x) |
| 37 | (hbad : ∀ K : ℝ, ∃ t ∈ Ioc a b, ∃ x : M, |
| 38 | K < (t - a) * (F.connection t).scalarCurvature x) : |
| 39 | ∃ (p : ℕ → M) (τ Q A : ℕ → ℝ), |
| 40 | Tendsto A atTop atTop ∧ (∀ k, 0 < A k) ∧ (∀ k, 0 < Q k) ∧ |
| 41 | (∀ k, Icc (τ k + (-A k) / Q k) (τ k) ⊆ Icc a b) ∧ |
| 42 | (∀ k, τ k ∈ Icc a b) ∧ |
| 43 | (∀ k, (F.connection (τ k)).scalarCurvature (p k) = Q k) ∧ |
| 44 | (∀ k, ∀ t ∈ Icc (τ k + (-A k) / Q k) (τ k), |
| 45 | ∀ x ∈ (F.metric (τ k)).ball (p k) (A k / Real.sqrt (Q k)), |
| 46 | (F.connection t).scalarCurvature x ≤ 4 * Q k) ∧ |
| 47 | (∀ r : ℝ, 0 < r → ∀ᶠ k in atTop, r / Real.sqrt (Q k) ≤ 1) := by |
| 48 | classical |
| 49 | let A : ℕ → ℝ := fun k => (k : ℝ) + 1 |
| 50 | have hA (k : ℕ) : 0 < A k := by dsimp only [A]; positivity |
| 51 | have hchoose (k : ℕ) : ∃ τ ∈ Icc a b, ∃ p : M, ∃ Q : ℝ, |
| 52 | (64 * (((m + 1 : ℕ) : ℝ) + 8) * A k) ^ 2 < Q ∧ |
| 53 | 0 < Q ∧ (F.connection τ).scalarCurvature p = Q ∧ |
| 54 | 2 * A k ≤ Q * (τ - a) ∧ |
| 55 | ∀ t ∈ Icc (τ - A k / Q) τ, ∀ x : M, |
| 56 | (F.metric τ).edist p x ≤ ENNReal.ofReal (A k / Real.sqrt Q) → |
| 57 | (F.connection t).scalarCurvature x ≤ 4 * Q := by |
| 58 | let D := (64 * (((m + 1 : ℕ) : ℝ) + 8) * A k) ^ 2 |
| 59 | obtain ⟨t, ht, x, hx⟩ := hbad (max (D * (b - a)) (2 * A k)) |
| 60 | have hthreshold : 2 * A k ≤ (F.connection t).scalarCurvature x * (t - a) := by |
| 61 | have := (le_max_right (D * (b - a)) (2 * A k)).trans_lt hx |
| 62 | nlinarith |
| 63 | have hR : 0 < (F.connection t).scalarCurvature x := by |
| 64 | nlinarith [hA k, ht.1] |
| 65 | have hlarge : D < (F.connection t).scalarCurvature x := by |
| 66 | have := (le_max_left (D * (b - a)) (2 * A k)).trans_lt hx |
| 67 | nlinarith [ht.2] |
| 68 | obtain ⟨τ, hτ, p, _, Q, hQeq, hQ, hQR, hQt, hcyl⟩ := |
| 69 | F.exists_scalarCurvature_large_cylinder hC hm hJ hcomplete hoperator x |
| 70 | (r := 1) zero_lt_one (hA k) ⟨ht.1.le, ht.2⟩ |
| 71 | (by |
| 72 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 (m + 1)) : M → Type _) := |
| 73 | ⟨(F.metric t).toRiemannianMetric⟩ |
| 74 | have hself : (F.metric t).edist x x = 0 := Manifold.riemannianEDist_self |
| 75 | rw [hself] |
| 76 | exact bot_le) |
| 77 | (by simpa only [div_one] using hlarge) hthreshold |
| 78 | exact ⟨τ, ⟨hτ.1, hτ.2.trans ht.2⟩, p, Q, |
| 79 | hlarge.trans_le hQR, hQ, hQeq.symm, hQt, hcyl⟩ |
| 80 | choose τ hτ p Q hlarge hQ hnormalize hthreshold hcylinder using hchoose |
| 81 | have hsub (k : ℕ) : Icc (τ k + (-A k) / Q k) (τ k) ⊆ Icc a b := by |
| 82 | have hback : A k / Q k ≤ τ k - a := by |
| 83 | apply (div_le_iff₀ (hQ k)).mpr |
| 84 | nlinarith [hthreshold k, hA k] |
| 85 | intro t ht |
| 86 | constructor |
| 87 | · rw [neg_div] at ht |
| 88 | linarith [ht.1] |
| 89 | · exact ht.2.trans (hτ k).2 |
| 90 | have hAtop : Tendsto A atTop atTop := tendsto_atTop_add_const_right _ 1 |
| 91 | tendsto_natCast_atTop_atTop |
| 92 | refine ⟨p, τ, Q, A, hAtop, hA, hQ, hsub, hτ, hnormalize, ?_, ?_⟩ |
| 93 | · intro k t ht x hx |
| 94 | apply hcylinder k t (by simpa only [neg_div, sub_eq_add_neg] using ht) x |
| 95 | exact (show (F.metric (τ k)).edist (p k) x < _ from hx).le |
| 96 | · intro r hr |
| 97 | filter_upwards [hAtop.eventually_ge_atTop r] with k hk |
| 98 | have hscale : A k < Real.sqrt (Q k) := by |
| 99 | have hfactor : 1 ≤ 64 * (((m + 1 : ℕ) : ℝ) + 8) := by |
| 100 | nlinarith [Nat.cast_nonneg (α := ℝ) (m + 1)] |
| 101 | have hmul : A k ≤ 64 * (((m + 1 : ℕ) : ℝ) + 8) * A k := |
| 102 | le_mul_of_one_le_left (hA k).le hfactor |
| 103 | have hsquare := Real.sq_sqrt (hQ k).le |
| 104 | nlinarith [hlarge k, Real.sqrt_nonneg (Q k), hA k] |
| 105 | apply (div_le_iff₀ (Real.sqrt_pos.mpr (hQ k))).mpr |
| 106 | simpa only [one_mul] using hk.trans hscale.le |
| 107 | |
| 108 | end PoincareMT.RicciFlow |