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.Surgery.Singular.RegularLimit.Reference |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.RegularLimit.ScalarComparison |
| 3 | |
| 4 | /-! |
| 5 | # The open regular region at a singular time |
| 6 | |
| 7 | The literal finite-liminf condition in `SingularTimeReference.regularLimitSet` |
| 8 | implies a uniform scalar bound on an open spatial neighborhood and a final |
| 9 | time interval. In particular the regular set is open, and its points have |
| 10 | eventually bounded absolute scalar curvature. No terminal metric is assumed. |
| 11 | |
| 12 | Source: Morgan--Tian, Lemma 11.21 and Theorem 11.19(1), pp. 279--280. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.SingularTimeAssumptions |
| 23 | |
| 24 | variable {M : Type u} [TopologicalSpace M] |
| 25 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 26 | [IsManifold (𝓡 3) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 27 | [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 28 | {F : GeneralizedRicciFlowData.{u}} {T : ℝ} |
| 29 | |
| 30 | /-- A bounded final time interval supplies the finite-liminf condition. -/ |
| 31 | theorem mem_regularLimitSet_of_scalar_tail (H : SingularTimeAssumptions F T M) |
| 32 | {x : M} {s B : ℝ} (hs : H.reference.tMinus ≤ s) (hsT : s < T) |
| 33 | (hbound : ∀ t ∈ Ico s T, H.reference.scalar t x ≤ B) : |
| 34 | x ∈ H.reference.regularLimitSet := by |
| 35 | refine ⟨B, fun a ha => ?_⟩ |
| 36 | obtain ⟨t, htlo, hthi⟩ := exists_between (max_lt ha hsT) |
| 37 | have hst : s < t := (le_max_right a s).trans_lt htlo |
| 38 | exact ⟨t, (le_max_left a s).trans_lt htlo, ⟨hs.trans hst.le, hthi⟩, |
| 39 | hbound t ⟨hst.le, hthi⟩⟩ |
| 40 | |
| 41 | /-- A finite-liminf point has an open neighborhood with a common scalar bound |
| 42 | throughout one final time interval. -/ |
| 43 | theorem exists_open_uniform_scalar_tail (H : SingularTimeAssumptions F T M) |
| 44 | (P04 : RicciFlowCurvatureTheory.{u}) {x : M} (hx : x ∈ H.reference.regularLimitSet) : |
| 45 | ∃ (s B : ℝ) (U : Set M), H.reference.tMinus < s ∧ s < T ∧ 0 < B ∧ |
| 46 | IsOpen U ∧ x ∈ U ∧ U ⊆ H.reference.regularLimitSet ∧ |
| 47 | ∀ t ∈ Ico s T, ∀ y ∈ U, H.reference.scalar t y ≤ B := by |
| 48 | obtain ⟨L, hL⟩ := hx |
| 49 | let K := max (H.r₀⁻¹ ^ 2) L + 1 |
| 50 | have hrho : 0 < H.r₀⁻¹ ^ 2 := sq_pos_of_pos (inv_pos.mpr H.r₀_pos) |
| 51 | have hrhoK : H.r₀⁻¹ ^ 2 ≤ K := by dsimp [K]; linarith [le_max_left (H.r₀⁻¹ ^ 2) L] |
| 52 | have hLK : L < K := by dsimp [K]; linarith [le_max_right (H.r₀⁻¹ ^ 2) L] |
| 53 | have hK : 0 < K := hrho.trans_le hrhoK |
| 54 | let delta := 1 / (4 * (H.analytic_constant + 1) * K) |
| 55 | have hdelta : 0 < delta := by dsimp [delta]; positivity [H.analytic_constant_pos] |
| 56 | obtain ⟨s, hsnear, hs, hsL⟩ := hL (max H.reference.tMinus (T - delta)) |
| 57 | (max_lt H.reference.tMinus_lt (sub_lt_self T hdelta)) |
| 58 | have hsref : H.reference.tMinus < s := (le_max_left _ _).trans_lt hsnear |
| 59 | have hmargin : T - s < 1 / (4 * (H.analytic_constant + 1) * K) := by |
| 60 | have := (le_max_right H.reference.tMinus (T - delta)).trans_lt hsnear |
| 61 | change T - s < delta |
| 62 | linarith |
| 63 | let U : Set M := {y | H.reference.scalar s y < K} |
| 64 | have hbound : ∀ t ∈ Ico s T, ∀ y ∈ U, H.reference.scalar t y ≤ 2 * K := by |
| 65 | intro t ht y hy |
| 66 | exact (SingularRegularLimit.scalar_lt_two_mul_of_short_tail H.analytic_constant_pos.le |
| 67 | hrho hrhoK ((H.reference_scalar_continuousOn P04 y).mono |
| 68 | (Ico_subset_Ico_left hsref.le)) hy |
| 69 | (fun z hz => H.reference_scalar_derivative_bound y z ⟨hsref.trans hz.1, hz.2⟩) |
| 70 | hmargin t ht).le |
| 71 | refine ⟨s, 2 * K, U, hsref, hs.2, by positivity, |
| 72 | isOpen_lt (H.reference_scalar_continuous P04 s hs) continuous_const, |
| 73 | hsL.trans_lt hLK, ?_, hbound⟩ |
| 74 | intro y hy |
| 75 | exact H.mem_regularLimitSet_of_scalar_tail hsref.le hs.2 (fun t ht => hbound t ht y hy) |
| 76 | |
| 77 | /-- The finite-liminf regular set is open under the original singular-time assumptions. -/ |
| 78 | theorem regularLimitSet_isOpen (H : SingularTimeAssumptions F T M) |
| 79 | (P04 : RicciFlowCurvatureTheory.{u}) : IsOpen H.reference.regularLimitSet := by |
| 80 | rw [isOpen_iff_mem_nhds] |
| 81 | intro x hx |
| 82 | obtain ⟨s, B, U, _, _, _, hU, hxU, hsub, _⟩ := H.exists_open_uniform_scalar_tail P04 hx |
| 83 | exact mem_of_superset (hU.mem_nhds hxU) hsub |
| 84 | |
| 85 | /-- Scalar curvature is eventually bounded in absolute value at every regular point. -/ |
| 86 | theorem regularLimitSet_eventually_bounded (H : SingularTimeAssumptions F T M) |
| 87 | (P04 : RicciFlowCurvatureTheory.{u}) : |
| 88 | ∀ x ∈ H.reference.regularLimitSet, |
| 89 | ∃ B : ℝ, ∃ s : ℝ, H.reference.tMinus ≤ s ∧ s < T ∧ |
| 90 | ∀ t, s < t → t < T → |H.reference.scalar t x| ≤ B := by |
| 91 | intro x hx |
| 92 | obtain ⟨s, B, U, hsref, hsT, _, _, hxU, _, hbound⟩ := |
| 93 | H.exists_open_uniform_scalar_tail P04 hx |
| 94 | obtain ⟨L, hL⟩ := H.reference_scalar_lower_bound |
| 95 | refine ⟨max B (-L), s, hsref.le, hsT, ?_⟩ |
| 96 | intro t hst htT |
| 97 | apply abs_le.mpr |
| 98 | constructor |
| 99 | · have := hL t ⟨hsref.le.trans hst.le, htT⟩ x |
| 100 | linarith [le_max_right B (-L)] |
| 101 | · exact (hbound t ⟨hst.le, htT⟩ x hxU).trans (le_max_left _ _) |
| 102 | |
| 103 | end PoincareMT.SingularTimeAssumptions |