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.Components |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Noncollapse |
| 3 | |
| 4 | /-! |
| 5 | # Selecting positive volume ratios from failure of volume decay |
| 6 | |
| 7 | Bishop--Gromov reduces all positive radii to a diagonal sequence of diverging |
| 8 | radii. This is the subsequence step in Kleiner--Lott, Corollary 44.1, |
| 9 | pp. 2682--2683. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.RiemannianMetric |
| 21 | |
| 22 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 23 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 24 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 25 | |
| 26 | /-- Failure of eventual upper volume bounds at every fixed radius gives a |
| 27 | single subsequence with eventual lower bounds at every fixed positive radius. -/ |
| 28 | theorem exists_subsequence_ball_volume_lower_bound_of_frequently |
| 29 | {n : ℕ} (hn : 1 ≤ n) (C : ℕ → FlowCarrier.{u} n) |
| 30 | (g : ∀ k, RiemannianMetric n (C k).carrier) |
| 31 | (D : ∀ k, LeviCivitaData (g k)) |
| 32 | (hcomplete : ∀ᶠ k in atTop, MetricComplete (g k)) |
| 33 | (hRic : ∀ᶠ k in atTop, ∀ x : (C k).carrier, ∀ v : TangentSpace (𝓡 n) x, |
| 34 | 0 ≤ (D k).ricci x v v) |
| 35 | (p : ∀ k, (C k).carrier) {ν : ℝ} (hν : 0 ≤ ν) |
| 36 | (hfailure : ∀ R : ℝ, 0 < R → ∃ᶠ k in atTop, |
| 37 | ENNReal.ofReal (ν * R ^ n) ≤ (g k).volumeMeasure ((g k).ball (p k) R)) : |
| 38 | ∃ σ : ℕ → ℕ, StrictMono σ ∧ ∀ r : ℝ, 0 < r → ∀ᶠ k in atTop, |
| 39 | ENNReal.ofReal (ν * r ^ n) ≤ |
| 40 | (g (σ k)).volumeMeasure ((g (σ k)).ball (p (σ k)) r) := by |
| 41 | obtain ⟨σ, hσ, hvolume⟩ := extraction_forall_of_frequently |
| 42 | (fun j : ℕ => ((hfailure ((j : ℝ) + 1) (by positivity)).and_eventually |
| 43 | hcomplete).and_eventually hRic) |
| 44 | refine ⟨σ, hσ, ?_⟩ |
| 45 | intro r hr |
| 46 | filter_upwards [tendsto_natCast_atTop_atTop.eventually_ge_atTop r] with k hk |
| 47 | have hR : 0 < (k : ℝ) + 1 := by positivity |
| 48 | have hbig : ν ≤ |
| 49 | ((g (σ k)).volumeMeasure ((g (σ k)).ball (p (σ k)) ((k : ℝ) + 1))).toReal / |
| 50 | ((k : ℝ) + 1) ^ n := by |
| 51 | apply (le_div_iff₀ (pow_pos hR n)).mpr |
| 52 | have h := ENNReal.toReal_mono |
| 53 | ((g (σ k)).ball_volume_ne_top_of_metricComplete (hvolume k).1.2 _ _) |
| 54 | (hvolume k).1.1 |
| 55 | simpa only [ENNReal.toReal_ofReal (mul_nonneg hν (pow_nonneg hR.le n))] using h |
| 56 | have hratio := (g (σ k)).antitoneOn_ball_volume_div_pow (D (σ k)) hn |
| 57 | (hvolume k).1.2 (hvolume k).2 (p (σ k)) hr hR (by linarith : r ≤ (k : ℝ) + 1) |
| 58 | have hsmall := (le_div_iff₀ (pow_pos hr n)).mp (hbig.trans hratio) |
| 59 | exact (ENNReal.ofReal_le_ofReal hsmall).trans_eq |
| 60 | (ENNReal.ofReal_toReal |
| 61 | ((g (σ k)).ball_volume_ne_top_of_metricComplete (hvolume k).1.2 _ _)) |
| 62 | |
| 63 | end PoincareMT.RiemannianMetric |