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.Riemannian.Comparison.Volume.Precompact |
| 2 | import PoincareLib.Geometry.Riemannian.Compactness.IntrinsicMetric |
| 3 | import PoincareLib.Geometry.Riemannian.Curvature.Bounds.Ricci |
| 4 | |
| 5 | /-! |
| 6 | # Absolute model-volume bounds |
| 7 | |
| 8 | The small-radius volume ratio tends to one. Relative Bishop--Gromov |
| 9 | monotonicity therefore bounds every complete ball by its model volume. |
| 10 | This bounds the constant scalar shift in the concentration step supporting |
| 11 | Petrunin, Section 4.6, author manuscript pp. 12--14. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter MeasureTheory |
| 18 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 19 | |
| 20 | namespace PoincareMT.RiemannianMetric |
| 21 | |
| 22 | /-- Nonnegative model curvature parameter gives increasing model-ball volume |
| 23 | as the nonnegative radius grows. -/ |
| 24 | theorem modelVolume_mono_radius (n : ℕ) {κ r R : ℝ} |
| 25 | (hκ : 0 ≤ κ) (hr : 0 ≤ r) (hrR : r ≤ R) : |
| 26 | modelVolume n κ r ≤ modelVolume n κ R := by |
| 27 | apply mul_le_mul_of_nonneg_left _ |
| 28 | (mul_nonneg (Nat.cast_nonneg n) (euclideanUnitBallVolume_nonneg n)) |
| 29 | apply intervalIntegral.integral_mono_interval le_rfl hr hrR _ |
| 30 | (intervalIntegrable_modelS_pow n κ 0 R) |
| 31 | filter_upwards [ae_restrict_mem measurableSet_Ioc] with t ht |
| 32 | exact pow_nonneg (modelS_nonneg hκ ht.1.le) _ |
| 33 | |
| 34 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 35 | [MeasurableSpace M] [BorelSpace M] [T3Space M] |
| 36 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 37 | [PreconnectedSpace M] |
| 38 | |
| 39 | /-- A complete manifold with Ricci at least `-(n-1)κ g` has at most the |
| 40 | corresponding model-ball volume. -/ |
| 41 | theorem volumeMeasure_real_ball_le_modelVolume_of_ricci_lower_bound |
| 42 | (g : RiemannianMetric n M) (p : M) (hn : 1 ≤ n) |
| 43 | {κ : ℝ} (hκ : 0 ≤ κ) (hcomplete : MetricComplete g) (D : LeviCivitaData g) |
| 44 | (hRic : ∀ x (v : TangentSpace (𝓡 n) x), |
| 45 | -(((n : ℝ) - 1) * κ) * g.inner x v v ≤ D.ricci x v v) |
| 46 | {r : ℝ} (hr : 0 < r) : |
| 47 | g.volumeMeasure.real (g.ball p r) ≤ modelVolume n κ r := by |
| 48 | let : MetricSpace M := g.toMetricSpace |
| 49 | let : ProperSpace M := g.properSpace_toMetricSpace hcomplete |
| 50 | let : SecondCountableTopology M := g.secondCountableTopology |
| 51 | have hcompact : IsCompact (closure (g.ball p (r + 1))) := by |
| 52 | rw [← g.toMetricSpace_ball] |
| 53 | exact (isCompact_closedBall p (r + 1)).of_isClosed_subset |
| 54 | isClosed_closure Metric.closure_ball_subset_closedBall |
| 55 | obtain ⟨hmono, hlim⟩ := g.relativeVolumeComparison_of_precompact_ball p hn |
| 56 | (show 0 < r + 1 by linarith) hκ hcompact D (fun x _ => hRic x) |
| 57 | have hratio : g.volumeMeasure (g.ball p r) / ENNReal.ofReal (modelVolume n κ r) ≤ 1 := by |
| 58 | apply ge_of_tendsto hlim |
| 59 | filter_upwards [Ioo_mem_nhdsGT hr] with s hs |
| 60 | exact hmono ⟨hs.1, by linarith [hs.2]⟩ ⟨hr, by linarith⟩ hs.2.le |
| 61 | have hpos := modelVolume_pos hn hκ hr |
| 62 | have hvol := mul_le_mul' hratio (le_refl (ENNReal.ofReal (modelVolume n κ r))) |
| 63 | rw [ENNReal.div_mul_cancel (ENNReal.ofReal_pos.mpr hpos).ne' |
| 64 | ENNReal.ofReal_ne_top, one_mul] at hvol |
| 65 | simpa only [Measure.real, ENNReal.toReal_ofReal hpos.le] using |
| 66 | ENNReal.toReal_mono ENNReal.ofReal_ne_top hvol |
| 67 | |
| 68 | /-- Sectional curvature at least `-1` gives the universal hyperbolic |
| 69 | model-ball volume bound. -/ |
| 70 | theorem volumeMeasure_real_ball_le_modelVolume_of_sectional_lower_bound |
| 71 | (g : RiemannianMetric n M) (p : M) (hn : 1 ≤ n) |
| 72 | (hcomplete : MetricComplete g) (D : LeviCivitaData g) |
| 73 | (hsec : ∀ x (v w : TangentSpace (𝓡 n) x), -1 ≤ D.sectionalCurvature x v w) |
| 74 | {r : ℝ} (hr : 0 < r) : |
| 75 | g.volumeMeasure.real (g.ball p r) ≤ modelVolume n 1 r := by |
| 76 | exact g.volumeMeasure_real_ball_le_modelVolume_of_ricci_lower_bound p hn (by norm_num) |
| 77 | hcomplete D |
| 78 | (fun x v => D.ricci_quadratic_lower_bound_of_sectionalCurvature_lower_bound |
| 79 | x 1 (hsec x) v) hr |
| 80 | |
| 81 | end PoincareMT.RiemannianMetric |