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.Splitting.ParallelGradient.Volume |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Noncollapse |
| 3 | |
| 4 | /-! |
| 5 | # Noncompactness of the positive-volume factor |
| 6 | |
| 7 | The actual induced factor has a positive lower-dimensional volume bound. |
| 8 | Its total volume would be finite if it were compact, contradicting this bound |
| 9 | at large radii. This verifies the noncompactness premise for dimension reduction. |
| 10 | |
| 11 | Reference: Kleiner--Lott, Proposition 41.13, p. 2678 (corrected 2013). |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter MeasureTheory TopologicalSpace |
| 18 | open Poincare.Geometry.Manifold.RegularLevel |
| 19 | open scoped Manifold ContDiff Topology |
| 20 | |
| 21 | namespace PoincareMT.RiemannianMetric |
| 22 | |
| 23 | /-- Positive power-law ball growth is incompatible with a compact manifold. -/ |
| 24 | theorem noncompactSpace_of_ball_volume_lower_bound |
| 25 | {n : ℕ} {M : Type*} [TopologicalSpace M] [T3Space M] |
| 26 | [MeasurableSpace M] [BorelSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 28 | (g : RiemannianMetric n M) (hn : 0 < n) (p : M) |
| 29 | {κ : ℝ} (hκ : 0 < κ) |
| 30 | (hvolume : ∀ r : ℝ, 0 < r → ENNReal.ofReal (κ * r ^ n) ≤ |
| 31 | g.volumeMeasure (g.ball p r)) : NoncompactSpace M := by |
| 32 | apply not_compactSpace_iff.mp |
| 33 | intro hcompact |
| 34 | let : CompactSpace M := hcompact |
| 35 | have hfinite : g.volumeMeasure univ ≠ ⊤ := |
| 36 | (g.volumeMeasure_lt_top_of_isCompact isCompact_univ).ne |
| 37 | have htendsto : Tendsto (fun r : ℝ => κ * r ^ n) atTop atTop := |
| 38 | Tendsto.const_mul_atTop hκ (tendsto_pow_atTop hn.ne') |
| 39 | obtain ⟨r, hr, hlarge⟩ := ((eventually_gt_atTop (0 : ℝ)).and |
| 40 | (htendsto.eventually_gt_atTop (g.volumeMeasure univ).toReal)).exists |
| 41 | have hsmall := ENNReal.toReal_mono hfinite |
| 42 | ((hvolume r hr).trans (measure_mono (subset_univ _))) |
| 43 | rw [ENNReal.toReal_ofReal (mul_nonneg hκ.le (pow_nonneg hr.le n))] at hsmall |
| 44 | exact (not_le_of_gt hlarge) hsmall |
| 45 | |
| 46 | /-- Positive ambient asymptotic volume makes the actual parallel-gradient |
| 47 | zero-level factor noncompact in every positive factor dimension. -/ |
| 48 | theorem noncompact_parallelGradient_factor_of_asymptoticVolumeRatio |
| 49 | {n : ℕ} (hn : 0 < n) {M : Type*} |
| 50 | [TopologicalSpace M] [T3Space M] [ConnectedSpace M] [SecondCountableTopology M] |
| 51 | [MeasurableSpace M] [BorelSpace M] |
| 52 | [ChartedSpace (EuclideanSpace ℝ (Fin (n + 1))) M] |
| 53 | [IsManifold (𝓡 (n + 1)) ∞ M] |
| 54 | {g : RiemannianMetric (n + 1) M} {D : LeviCivitaData g} |
| 55 | (hc : MetricComplete g) |
| 56 | (hRic : ∀ x : M, ∀ v : TangentSpace (𝓡 (n + 1)) x, 0 ≤ D.ricci x v v) |
| 57 | {f : M → ℝ} (hf : ContMDiff (𝓡 (n + 1)) 𝓘(ℝ, ℝ) ∞ f) |
| 58 | (hu : HasUnitGradient D f) (hz : HasZeroHessian D f) |
| 59 | (p : M) (hvolume : 0 < g.asymptoticVolumeRatio p) : |
| 60 | NoncompactSpace (zeroLevelSet f) := by |
| 61 | let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 62 | ⟨finrank_euclideanSpace_fin⟩ |
| 63 | let hreg := fun x (_ : x ∈ (⊤ : Opens M)) => regular_of_hasUnitGradient hu x |
| 64 | let := openLevelSetChartedSpace hf (⊤ : Opens M) hreg n 0 |
| 65 | let := isManifold_openLevelSet hf (⊤ : Opens M) hreg n 0 |
| 66 | let h := regularLevelMetric hf (⊤ : Opens M) hreg 0 g |
| 67 | obtain ⟨hne, _, _, Φ, e, _, _, _, _, _, _, hlower⟩ := |
| 68 | exists_parallelGradient_volumeSplitting hc hf hu hz |
| 69 | let κ := g.asymptoticVolumeRatio p / 2 ^ (n + 1) |
| 70 | have hκ : 0 < κ := div_pos hvolume (by positivity) |
| 71 | have hfactor : ∀ y r, 0 < r → |
| 72 | ENNReal.ofReal ((κ / 2) * r ^ n) ≤ h.volumeMeasure (h.ball y r) := by |
| 73 | apply hlower κ hκ |
| 74 | intro y r hr |
| 75 | exact g.ball_volume_lower_bound_of_asymptoticVolumeRatio D (by omega) hc hRic |
| 76 | p (e (y, 0)) (g.edist_ne_top p (e (y, 0))) hvolume.le hr le_rfl |
| 77 | exact h.noncompactSpace_of_ball_volume_lower_bound hn (Classical.choice hne) |
| 78 | (div_pos hκ (by norm_num)) (hfactor _) |
| 79 | |
| 80 | end PoincareMT.RiemannianMetric |