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.AncientKappa.Compactness.Statement |
| 2 | import PoincareLib.Analysis.Parabolic.PointPicking |
| 3 | import PoincareLib.Geometry.Riemannian.Compactness.IntrinsicMetric |
| 4 | import PoincareLib.Geometry.Riemannian.Curvature.Scalar.SharpBounds |
| 5 | |
| 6 | /-! |
| 7 | # Finite-radius curvature selection for ancient solutions |
| 8 | |
| 9 | The point selection for Morgan--Tian Corollary 9.62 and Lemma 9.65, |
| 10 | pp. 223-227, retains a prescribed radius around the original basepoint. |
| 11 | The selected curvature-controlled ball has the same growing rescaled radius |
| 12 | as the original high-curvature point, up to a fixed factor. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | private theorem exists_selected_point_in_ball |
| 23 | {X : Type*} [PseudoMetricSpace X] |
| 24 | (R : X → ℝ) (hR : ∀ y, 0 ≤ R y) (hbounded : BddAbove (range R)) |
| 25 | (p x : X) {r : ℝ} (hr : 0 < r) (hx : x ∈ Metric.ball p r) |
| 26 | (hRx : 0 < R x) : |
| 27 | ∃ q : X, ∃ s : ℝ, q ∈ Metric.ball p (2 * r) ∧ |
| 28 | 0 < s ∧ s ≤ r ∧ R x ≤ R q ∧ |
| 29 | s * Real.sqrt (R q) = r * Real.sqrt (R x) / 2 ∧ |
| 30 | Metric.ball q s ⊆ Metric.ball p (2 * r) ∧ |
| 31 | ∀ y ∈ Metric.ball q s, R y ≤ 4 * R q := by |
| 32 | let f : X → ℝ := fun y => Real.sqrt (R y) |
| 33 | let L : ℝ := r * f x / 2 |
| 34 | have hfx : 0 < f x := Real.sqrt_pos.mpr hRx |
| 35 | have hL : 0 < L := by dsimp [L]; positivity |
| 36 | have hbound : BddAbove (f '' (univ : Set X)) := by |
| 37 | obtain ⟨B, hB⟩ := hbounded |
| 38 | refine ⟨Real.sqrt B, ?_⟩ |
| 39 | rintro _ ⟨y, _, rfl⟩ |
| 40 | exact Real.sqrt_le_sqrt (hB (mem_range_self y)) |
| 41 | obtain ⟨q, _, _, hscore, hmargin, hcontrol⟩ := |
| 42 | Poincare.Parabolic.exists_point_with_doubling_bound univ f (dist x) |
| 43 | (fun _ => 0) hbound hL.le (mem_univ x) hfx |
| 44 | have hfq : 0 < f q := hfx.trans_le hscore |
| 45 | let s : ℝ := L / f q |
| 46 | have hs : 0 < s := div_pos hL hfq |
| 47 | have hbudget : dist x q + 2 * s ≤ r := by |
| 48 | have hcancel : 2 * L / f x = r := by |
| 49 | dsimp [L] |
| 50 | field_simp |
| 51 | simpa only [dist_self, zero_add, hcancel, mul_div_assoc] using hmargin |
| 52 | have hpx : dist p x < r := by simpa [dist_comm] using Metric.mem_ball.mp hx |
| 53 | have hq : q ∈ Metric.ball p (2 * r) := by |
| 54 | rw [Metric.mem_ball, dist_comm] |
| 55 | linarith [dist_triangle p x q] |
| 56 | refine ⟨q, s, hq, hs, ?_, ?_, ?_, ?_, ?_⟩ |
| 57 | · linarith [dist_nonneg (x := x) (y := q)] |
| 58 | · exact (Real.sqrt_le_sqrt_iff (hR q)).mp hscore |
| 59 | · dsimp [s, L] |
| 60 | rw [div_mul_cancel₀ _ hfq.ne'] |
| 61 | · intro y hy |
| 62 | have hqy : dist q y < s := by simpa [dist_comm] using Metric.mem_ball.mp hy |
| 63 | rw [Metric.mem_ball, dist_comm] |
| 64 | linarith [dist_triangle p x q, dist_triangle p q y] |
| 65 | · intro y hy |
| 66 | have hqy : dist q y < s := by simpa [dist_comm] using Metric.mem_ball.mp hy |
| 67 | have hfy : f y ≤ 2 * f q := hcontrol y (mem_univ y) le_rfl (by |
| 68 | have htri := dist_triangle x q y |
| 69 | dsimp [s] at hqy |
| 70 | linarith) |
| 71 | have hsq := mul_self_le_mul_self (Real.sqrt_nonneg (R y)) hfy |
| 72 | dsimp [f] at hsq |
| 73 | nlinarith [Real.sq_sqrt (hR y), Real.sq_sqrt (hR q)] |
| 74 | |
| 75 | variable {M : Type} [TopologicalSpace M] |
| 76 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 77 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 78 | [SecondCountableTopology M] [ConnectedSpace M] |
| 79 | |
| 80 | /-- Select a ball near an arbitrary point of an actual ancient solution. |
| 81 | Its scalar bound at the terminal time controls its full curvature throughout |
| 82 | the past, using only the frozen M23 predecessor services. -/ |
| 83 | theorem m23_exists_backward_controlled_point_in_ball |
| 84 | (P : M23NormalizedKappaCompactnessPredecessors) (K : AncientKappaSolution 3 M) |
| 85 | (p x : M) {r : ℝ} (hr : 0 < r) (hx : x ∈ (K.flow.metric 0).ball p r) : |
| 86 | ∃ q : M, ∃ s : ℝ, q ∈ (K.flow.metric 0).ball p (2 * r) ∧ |
| 87 | 0 < s ∧ s ≤ r ∧ |
| 88 | (K.flow.connection 0).scalarCurvature x ≤ (K.flow.connection 0).scalarCurvature q ∧ |
| 89 | s * Real.sqrt ((K.flow.connection 0).scalarCurvature q) = |
| 90 | r * Real.sqrt ((K.flow.connection 0).scalarCurvature x) / 2 ∧ |
| 91 | (K.flow.metric 0).ball q s ⊆ (K.flow.metric 0).ball p (2 * r) ∧ |
| 92 | (∀ y ∈ (K.flow.metric 0).ball q s, |
| 93 | (K.flow.connection 0).scalarCurvature y ≤ 4 * (K.flow.connection 0).scalarCurvature q) ∧ |
| 94 | ∀ t : ℝ, t ≤ 0 → ∀ y ∈ (K.flow.metric 0).ball q s, |
| 95 | |(K.flow.connection t).curvatureTensorNorm y| ≤ |
| 96 | 4 * (K.flow.connection 0).scalarCurvature q := by |
| 97 | let g := K.flow.metric 0 |
| 98 | let R := (K.flow.connection 0).scalarCurvature |
| 99 | let := g.toMetricSpace |
| 100 | have hR (y : M) : 0 ≤ R y := (P.scalar_pos M K 0 le_rfl y).le |
| 101 | have hbounded : BddAbove (range R) := by |
| 102 | obtain ⟨B, _, hB⟩ := K.bounded_curvature 0 le_rfl |
| 103 | refine ⟨3 * B, ?_⟩ |
| 104 | rintro _ ⟨y, rfl⟩ |
| 105 | exact ((K.flow.connection 0).scalarCurvature_le_curvatureTensorNorm_sharp y).trans |
| 106 | (mul_le_mul_of_nonneg_left ((le_abs_self _).trans (hB y)) (by norm_num)) |
| 107 | obtain ⟨q, s, hq, hs, hsr, hRq, hscale, hsubset, hcontrol⟩ := |
| 108 | exists_selected_point_in_ball R hR hbounded p x hr |
| 109 | (by simpa only [g.toMetricSpace_ball] using hx) (P.scalar_pos M K 0 le_rfl x) |
| 110 | simp only [g.toMetricSpace_ball] at hq hsubset hcontrol |
| 111 | refine ⟨q, s, hq, hs, hsr, hRq, hscale, hsubset, hcontrol, ?_⟩ |
| 112 | intro t ht y hy |
| 113 | rw [abs_of_nonneg (show 0 ≤ (K.flow.connection t).curvatureTensorNorm y from |
| 114 | Real.sqrt_nonneg _)] |
| 115 | exact (P.past_norm_le_scalar M K t 0 ht le_rfl y).trans (hcontrol y hy) |
| 116 | |
| 117 | end PoincareMT |