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.Generalized.Noncollapse.Volume.LocalVolume |
| 2 | import PoincareLib.Geometry.Riemannian.Comparison.Injectivity.Noncollapse |
| 3 | |
| 4 | /-! Adapted from Mapher `PoincareMT/Proofs/M15/Thm1_34_VolumeComparison.lean` at |
| 5 | `0c5d5c4e1ecbc12703b1994e226df1b15d2e8d39`. See the source mapping in |
| 6 | `references/ricci-flow/mapher/noncollapse/import.json`. -/ |
| 7 | |
| 8 | /-! |
| 9 | # Initial small-ball volume for the compact noncollapsing theorem |
| 10 | |
| 11 | Morgan-Tian Theorem 1.34, p. 19, as used in Theorem 8.10, p. 176. |
| 12 | The completed M07 comparison theorem gives a model-volume ratio. A lower |
| 13 | bound for the hyperbolic radial profile makes its radius dependence explicit. |
| 14 | See `references/ricci-flow/mapher/noncollapse/derivations/2026-09-21-initial-small-balls.md`. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set MeasureTheory |
| 20 | open scoped Manifold ContDiff ENNReal |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.RiemannianMetric |
| 25 | |
| 26 | /-- The nonpositive-curvature model ball has at least Euclidean volume. |
| 27 | Source: Morgan-Tian Theorem 1.34, p. 19; this is the model comparison |
| 28 | used in the initial normalization of Theorem 8.10, p. 176. -/ |
| 29 | theorem euclidean_modelVolume_le_modelVolume |
| 30 | {n : ℕ} (hn : 1 ≤ n) {K r : ℝ} (hK : 0 ≤ K) (hr : 0 ≤ r) : |
| 31 | euclideanUnitBallVolume n * r ^ n ≤ modelVolume n K r := by |
| 32 | have hprofile (t : ℝ) (ht : 0 ≤ t) : t ≤ modelS K t := by |
| 33 | by_cases hzero : K = 0 |
| 34 | · simp only [hzero, modelS_zero_curvature, le_refl] |
| 35 | · have hroot : 0 < Real.sqrt K := Real.sqrt_pos.mpr (lt_of_le_of_ne hK (Ne.symm hzero)) |
| 36 | rw [modelS, if_neg hzero, le_div_iff₀ hroot] |
| 37 | simpa only [mul_comm] using |
| 38 | Real.self_le_sinh_iff.mpr (mul_nonneg hroot.le ht) |
| 39 | rw [← modelVolume_zero_curvature hn r] |
| 40 | apply mul_le_mul_of_nonneg_left _ |
| 41 | (mul_nonneg (Nat.cast_nonneg n) (euclideanUnitBallVolume_nonneg n)) |
| 42 | exact intervalIntegral.integral_mono_on hr |
| 43 | (intervalIntegrable_modelS_pow n 0 0 r) (intervalIntegrable_modelS_pow n K 0 r) |
| 44 | (fun t ht => by |
| 45 | simpa only [modelS_zero_curvature] using |
| 46 | pow_le_pow_left₀ ht.1 (hprofile t ht.1) (n - 1)) |
| 47 | |
| 48 | end PoincareMT.RiemannianMetric |
| 49 | |
| 50 | namespace PoincareMT.Generalized.Noncollapse |
| 51 | |
| 52 | /-- Initial unit-ball noncollapse yields an explicit `r^n` lower bound |
| 53 | in the calibrated volume convention. Source: Morgan-Tian Theorems 1.34, |
| 54 | p. 19, and 8.10, p. 176. No connectedness assumption is required. -/ |
| 55 | theorem calibrated_small_ball_lower_bound_of_unit_volume |
| 56 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 57 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 58 | [T3Space M] [SecondCountableTopology M] [MeasurableSpace M] [BorelSpace M] |
| 59 | [CompactSpace M] (g : RiemannianMetric n M) (D : LeviCivitaData g) (p : M) |
| 60 | {K omega r : ℝ} (hn : 1 ≤ n) (hK : 0 ≤ K) (homega : 0 < omega) |
| 61 | (hcurv : ∀ q, D.curvatureTensorNorm q ≤ K) |
| 62 | (hvolume : ENNReal.ofReal omega ≤ calibratedMetricVolume g (g.ball p 1)) |
| 63 | (hr : 0 < r) (hr1 : r ≤ 1) : |
| 64 | ENNReal.ofReal (((RiemannianMetric.euclideanUnitBallVolume n / |
| 65 | RiemannianMetric.modelVolume n K 1) * omega) * r ^ n) ≤ |
| 66 | calibratedMetricVolume g (g.ball p r) := by |
| 67 | rw [calibratedMetricVolume_eq_volumeMeasure] at hvolume ⊢ |
| 68 | have hbound := (g.smallerBall_volume_lower_bound_of_curvatureTensorNorm_le D p |
| 69 | hn hK (by norm_num : (0 : ℝ) < 1) homega isClosed_closure.isCompact |
| 70 | (fun q _ => hcurv q) hvolume hr hr1).2 |
| 71 | apply le_trans (ENNReal.ofReal_le_ofReal _) hbound |
| 72 | have hmodel := RiemannianMetric.euclidean_modelVolume_le_modelVolume hn hK hr.le |
| 73 | have hden := RiemannianMetric.modelVolume_pos hn hK (by norm_num : (0 : ℝ) < 1) |
| 74 | calc |
| 75 | _ = (RiemannianMetric.euclideanUnitBallVolume n * r ^ n / |
| 76 | RiemannianMetric.modelVolume n K 1) * omega := by ring |
| 77 | _ ≤ _ := mul_le_mul_of_nonneg_right (div_le_div_of_nonneg_right hmodel hden.le) homega.le |
| 78 | |
| 79 | end PoincareMT.Generalized.Noncollapse |