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.AncientKappa.Basic |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Asymptotic.Compactness.Calibration |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Splitting.TerminalFactor |
| 4 | |
| 5 | /-! |
| 6 | # Noncollapse of a fixed parallel-gradient factor |
| 7 | |
| 8 | The common gradient field fixes the product projection throughout each |
| 9 | parabolic interval. Exact curvature-norm transport and the intrinsic product |
| 10 | volume estimate pass all-scales noncollapse to the actual induced factor, |
| 11 | with constant kappa/2. |
| 12 | |
| 13 | References: Morgan--Tian, Lemma 2.14, pp. 28-29, and Definition 9.1, |
| 14 | pp. 179-180; Kleiner--Lott (corrected 2013), Proposition 41.13, p. 2678. |
| 15 | -/ |
| 16 | |
| 17 | noncomputable section |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set TopologicalSpace |
| 22 | open Poincare.Geometry.Manifold.RegularLevel |
| 23 | open scoped Manifold ContDiff Bundle ENNReal |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | namespace PoincareMT.RicciFlow |
| 28 | |
| 29 | open RiemannianMetric |
| 30 | |
| 31 | /-- Parabolic noncollapse descends to the actual fixed factor of a persistent |
| 32 | parallel unit gradient, with half the ambient constant. -/ |
| 33 | theorem parallelGradientFactor_parabolic_noncollapsed |
| 34 | {n : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] [ConnectedSpace M] |
| 35 | [MeasurableSpace M] [BorelSpace M] |
| 36 | [ChartedSpace (EuclideanSpace ℝ (Fin (n + 1))) M] |
| 37 | [IsManifold (𝓡 (n + 1)) ∞ M] |
| 38 | (F : RicciFlow (n + 1) M (Iic 0)) |
| 39 | (hc : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 40 | {f : M → ℝ} (hf : ContMDiff (𝓡 (n + 1)) 𝓘(ℝ, ℝ) ∞ f) |
| 41 | (hu : ∀ t ≤ 0, HasUnitGradient (F.connection t) f) |
| 42 | (hz : ∀ t ≤ 0, HasZeroHessian (F.connection t) f) |
| 43 | (hp : ∀ t ≤ 0, (F.connection t).gradient f = (F.connection 0).gradient f) |
| 44 | {κ : ℝ} (hκ : AncientKappaNoncollapsed F κ) : |
| 45 | letI : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 46 | ⟨finrank_euclideanSpace_fin⟩ |
| 47 | letI := openLevelSetChartedSpace hf (⊤ : Opens M) |
| 48 | (fun x _ => regular_of_hasUnitGradient (hu 0 le_rfl) x) n 0 |
| 49 | letI := isManifold_openLevelSet hf (⊤ : Opens M) |
| 50 | (fun x _ => regular_of_hasUnitGradient (hu 0 le_rfl) x) n 0 |
| 51 | AncientKappaNoncollapsed |
| 52 | (F.parallelGradientFactor hf (show (0 : ℝ) ∈ Iic 0 by simp) hu hz) (κ / 2) := by |
| 53 | let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 54 | ⟨finrank_euclideanSpace_fin⟩ |
| 55 | let hreg := fun x (_ : x ∈ (⊤ : Opens M)) => regular_of_hasUnitGradient (hu 0 le_rfl) x |
| 56 | let := openLevelSetChartedSpace hf (⊤ : Opens M) hreg n 0 |
| 57 | let := isManifold_openLevelSet hf (⊤ : Opens M) hreg n 0 |
| 58 | let H := F.parallelGradientFactor hf (show (0 : ℝ) ∈ Iic 0 by simp) hu hz |
| 59 | intro r₀ hr₀ t ht y r hr hrr hcurv |
| 60 | obtain ⟨hne, hconn, _, Φ, e, h0, hΦ, he, _, hmetric, _, hnorm, _⟩ := |
| 61 | exists_parallelGradient_productIsometry_curvature (hc t ht) hf (hu t ht) (hz t ht) |
| 62 | let : ConnectedSpace (zeroLevelSet f) := hconn |
| 63 | let : SecondCountableTopology (zeroLevelSet f) := (H.metric t).secondCountableTopology |
| 64 | rw [calibratedMetricVolume_eq_volumeMeasure] |
| 65 | apply volumeMeasure_factor_lower_bound (H.metric t) (F.metric t) e hmetric y r κ hr |
| 66 | rw [← calibratedMetricVolume_eq_volumeMeasure] |
| 67 | apply hκ r₀ hr₀ t ht (e (y, 0)) r hr hrr |
| 68 | intro s hs x hx |
| 69 | have hs0 : s ≤ 0 := hs.2.trans ht |
| 70 | obtain ⟨_, _, _, Ψ, d, hΨ0, hΨ, hd, _, _, _, hdnorm, _⟩ := |
| 71 | exists_parallelGradient_productIsometry_curvature (hc s hs0) hf (hu s hs0) (hz s hs0) |
| 72 | have hgrad : (F.connection s).gradient f = (F.connection t).gradient f := |
| 73 | (hp s hs0).trans (hp t ht).symm |
| 74 | have hde : d = e := by |
| 75 | apply Diffeomorph.ext |
| 76 | intro z |
| 77 | rw [hd, he] |
| 78 | have hcurve := hΨ (zeroLevelIncl f z.1) |
| 79 | rw [hgrad] at hcurve |
| 80 | have hsame := isMIntegralCurve_Ioo_eq_of_contMDiff_boundaryless |
| 81 | ((F.connection t).contMDiff_gradient hf |>.of_le (by simp)) hcurve |
| 82 | (hΦ (zeroLevelIncl f z.1)) (show Ψ 0 (zeroLevelIncl f z.1) = Φ 0 (zeroLevelIncl f z.1) by |
| 83 | rw [hΨ0, h0]) |
| 84 | exact congrFun hsame z.2 |
| 85 | have hproj : (e.symm x).1 ∈ (H.metric t).ball y r := by |
| 86 | have hi := productIsometry_preimage_ball_subset (F.metric t) (H.metric t) |
| 87 | e hmetric y r hr |
| 88 | exact (hi (show e.symm x ∈ e ⁻¹' (F.metric t).ball (e (y, 0)) r by |
| 89 | simpa only [mem_preimage, e.apply_symm_apply] using hx)).1 |
| 90 | rw [← hdnorm x, hde] |
| 91 | exact hcurv s hs (e.symm x).1 hproj |
| 92 | |
| 93 | /-- Terminal parallel-gradient data in a complete bounded nonnegatively |
| 94 | curved ancient flow produce the same parabolically noncollapsed factor. -/ |
| 95 | theorem terminalParallelGradientFactor_parabolic_noncollapsed |
| 96 | {n : ℕ} {M : Type u} [TopologicalSpace M] [T3Space M] [ConnectedSpace M] |
| 97 | [MeasurableSpace M] [BorelSpace M] |
| 98 | [ChartedSpace (EuclideanSpace ℝ (Fin (n + 1))) M] |
| 99 | [IsManifold (𝓡 (n + 1)) ∞ M] |
| 100 | (hC : RicciFlowCurvatureTheory.{u}) (F : RicciFlow (n + 1) M (Iic 0)) |
| 101 | (hc : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 102 | (hop : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 103 | {K : ℝ} (hK : 0 ≤ K) |
| 104 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 105 | {f : M → ℝ} (hf : ContMDiff (𝓡 (n + 1)) 𝓘(ℝ, ℝ) ∞ f) |
| 106 | (hunit : HasUnitGradient (F.connection 0) f) |
| 107 | (hzero : HasZeroHessian (F.connection 0) f) |
| 108 | {κ : ℝ} (hκ : AncientKappaNoncollapsed F κ) : |
| 109 | letI : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 110 | ⟨finrank_euclideanSpace_fin⟩ |
| 111 | letI := openLevelSetChartedSpace hf (⊤ : Opens M) |
| 112 | (fun x _ => regular_of_hasUnitGradient hunit x) n 0 |
| 113 | letI := isManifold_openLevelSet hf (⊤ : Opens M) |
| 114 | (fun x _ => regular_of_hasUnitGradient hunit x) n 0 |
| 115 | AncientKappaNoncollapsed |
| 116 | (F.terminalParallelGradientFactor hC hc hop hK hbound hf hunit hzero) (κ / 2) := by |
| 117 | have hp := F.ancient_backward_persistence_of_parallel_gradient hC (by omega) |
| 118 | hc hop ⟨K, hK, hbound⟩ f hf hunit hzero |
| 119 | exact F.parallelGradientFactor_parabolic_noncollapsed hc hf |
| 120 | (fun t ht => (hp t ht).2.1) (fun t ht => (hp t ht).2.2) |
| 121 | (fun t ht => (hp t ht).1) hκ |
| 122 | |
| 123 | end PoincareMT.RicciFlow |