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.Concentration.RadiusSelection |
| 2 | import PoincareLib.Geometry.Riemannian.Distance.Smoothing.Directional.MovingAnnularStability |
| 3 | |
| 4 | /-! |
| 5 | # Bad-ascent radii at moving centers |
| 6 | |
| 7 | Uniform ascent on fixed annuli about converging centers controls the supremum |
| 8 | of their actual bad-point distances. This is the moving-center form of the |
| 9 | radius convergence step in Petrunin (2009), Section 3.7, manuscript p. 7. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set Filter Topology |
| 17 | open Poincare.GromovHausdorff Poincare.CurvatureIntegral |
| 18 | open scoped Manifold ContDiff Bundle |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.RiemannianMetric |
| 23 | |
| 24 | theorem tendsto_badAscentRadius_zero_of_moving_centers |
| 25 | {n : ℕ} {M : ℕ → Type u} [∀ j, TopologicalSpace (M j)] |
| 26 | [∀ j, T3Space (M j)] [∀ j, PreconnectedSpace (M j)] |
| 27 | [∀ j, ChartedSpace (EuclideanSpace ℝ (Fin n)) (M j)] |
| 28 | [∀ j, IsManifold (𝓡 n) ∞ (M j)] |
| 29 | (g : ∀ j, PoincareMT.RiemannianMetric n (M j)) |
| 30 | (D : ∀ j, PoincareMT.LeviCivitaData (g j)) |
| 31 | (hc : ∀ j, PoincareMT.MetricComplete (g j)) |
| 32 | (hsec : ∀ j (x : M j) (v w : TangentSpace (𝓡 n) x), |
| 33 | -1 ≤ (D j).sectionalCurvature x v w) |
| 34 | (p : ∀ j, M j) {Y : BasedMetricSpaceBundle.{u}} [ProperSpace Y.carrier] |
| 35 | {L : ℝ} (hL : 0 < L) (δ : ℕ → ℝ) |
| 36 | (hδ : Tendsto δ atTop (𝓝 0)) (hpos : ∀ j, 0 < L + δ j) |
| 37 | (S : VaryingRealizationSequence |
| 38 | (fun j => (ballModel ((g j).toBasedMetricSpace (p j)) |
| 39 | (L + δ j) (hpos j)).toBasedMetricSpaceBundle) |
| 40 | (ballModel Y L hL).toBasedMetricSpaceBundle) |
| 41 | (u : ∀ j, (ballModel ((g j).toBasedMetricSpace (p j)) |
| 42 | (L + δ j) (hpos j)).carrier) |
| 43 | (u₀ : (ballModel Y L hL).carrier) (hu : S.PointConverges u u₀) |
| 44 | {b c c' : ℝ} (hb : 0 < b) (hcc' : c < c') |
| 45 | (hroom : dist Y.base u₀.val + 2 * b < L) |
| 46 | (hascent : ∀ y : Y.carrier, 0 < dist u₀.val y → dist u₀.val y ≤ b → |
| 47 | HasLocalDistanceAscent c' u₀.val y) : |
| 48 | Tendsto (fun j => letI := (g j).toMetricSpace; badAscentRadius c b (u j).val) |
| 49 | atTop (𝓝 0) := by |
| 50 | apply Metric.tendsto_nhds.mpr |
| 51 | intro ε hε |
| 52 | have hsource := eventually_annular_distance_ascent_of_moving_centers |
| 53 | g D hc (K := 1) zero_le_one hsec p hL δ hδ hpos S u u₀ hu |
| 54 | (half_pos hε) hb hcc' hroom |
| 55 | (fun y hy hyb => hascent y ((half_pos hε).trans_le hy) hyb) |
| 56 | filter_upwards [hsource] with j hj |
| 57 | let := (g j).toMetricSpace |
| 58 | change dist (badAscentRadius c b (u j).val) 0 < ε |
| 59 | rw [Real.dist_eq, sub_zero, abs_of_nonneg (badAscentRadius_nonneg c b (u j).val)] |
| 60 | have hbound : badAscentRadius c b (u j).val ≤ ε / 2 := |
| 61 | badAscentRadius_le_of_annular_ascent (half_pos hε).le |
| 62 | (fun y hy hyb => hj y hy.le hyb) |
| 63 | exact hbound.trans_lt (half_lt_self hε) |
| 64 | |
| 65 | end PoincareMT.RiemannianMetric |