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.Curvature.Calculus |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Splitting.FactorFlow |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Volume.Factor |
| 4 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Volume.FactorRatio |
| 5 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Volume.Noncollapse |
| 6 | |
| 7 | /-! |
| 8 | # Geometry and noncollapse of the ancient factor |
| 9 | |
| 10 | A persistent unit parallel gradient gives a fixed lower-dimensional ancient |
| 11 | Ricci flow. Positive ambient terminal volume supplies a uniform lower bound |
| 12 | for every factor ball at every past time, hence the explicit parabolic |
| 13 | noncollapse needed for dimension reduction. Noncompactness, completeness, |
| 14 | curvature bounds and terminal nonflatness are proved for this same factor. |
| 15 | |
| 16 | Reference: Kleiner--Lott (corrected 2013), Proposition 41.13, p. 2678. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | open Set TopologicalSpace |
| 24 | open Poincare.Geometry.Manifold.RegularLevel |
| 25 | open scoped Manifold ContDiff Bundle ENNReal |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT.RicciFlow |
| 30 | |
| 31 | open RiemannianMetric |
| 32 | |
| 33 | /-- All hypotheses for the lower-dimensional ancient-flow argument, including |
| 34 | an explicit uniform volume constant, hold on the constructed fixed factor. |
| 35 | Persistence of the unit parallel gradient remains the geometric premise. -/ |
| 36 | theorem parallelGradientFactor_ancient_geometry |
| 37 | {n : ℕ} (hn : 0 < n) {M : Type u} |
| 38 | [TopologicalSpace M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 39 | [MeasurableSpace M] [BorelSpace M] |
| 40 | [ChartedSpace (EuclideanSpace ℝ (Fin (n + 1))) M] |
| 41 | [IsManifold (𝓡 (n + 1)) ∞ M] |
| 42 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow (n + 1) M (Iic 0)) |
| 43 | (hc : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 44 | (hop : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 45 | {K : ℝ} (hK : 0 ≤ K) |
| 46 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 47 | {f : M → ℝ} (hf : ContMDiff (𝓡 (n + 1)) 𝓘(ℝ, ℝ) ∞ f) |
| 48 | (hu : ∀ t ≤ 0, HasUnitGradient (F.connection t) f) |
| 49 | (hz : ∀ t ≤ 0, HasZeroHessian (F.connection t) f) |
| 50 | (p : M) (hscalar : 0 < (F.connection 0).scalarCurvature p) |
| 51 | (hvolume : 0 < (F.metric 0).asymptoticVolumeRatio p) : |
| 52 | letI : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 53 | ⟨finrank_euclideanSpace_fin⟩ |
| 54 | letI := openLevelSetChartedSpace hf (⊤ : Opens M) |
| 55 | (fun x _ => regular_of_hasUnitGradient (hu 0 le_rfl) x) n 0 |
| 56 | letI := isManifold_openLevelSet hf (⊤ : Opens M) |
| 57 | (fun x _ => regular_of_hasUnitGradient (hu 0 le_rfl) x) n 0 |
| 58 | let H := F.parallelGradientFactor hf (show (0 : ℝ) ∈ Iic 0 by simp) hu hz |
| 59 | let κ := (F.metric 0).asymptoticVolumeRatio p / 2 ^ (n + 2) |
| 60 | 0 < κ ∧ Nonempty (zeroLevelSet f) ∧ ConnectedSpace (zeroLevelSet f) ∧ |
| 61 | NoncompactSpace (zeroLevelSet f) ∧ |
| 62 | (∀ t ≤ 0, MetricComplete (H.metric t)) ∧ |
| 63 | (∀ t ≤ 0, ∀ y, (H.connection t).NonnegativeCurvatureOperator y) ∧ |
| 64 | (∀ t ≤ 0, ∀ y, (H.connection t).curvatureTensorNorm y ≤ K) ∧ |
| 65 | (∃ y, 0 < (H.connection 0).scalarCurvature y ∧ |
| 66 | 0 < (H.metric 0).asymptoticVolumeRatio y) ∧ |
| 67 | (∀ t ≤ 0, ∀ y, ∀ r : ℝ, 0 < r → |
| 68 | ENNReal.ofReal (κ * r ^ n) ≤ (H.metric t).volumeMeasure ((H.metric t).ball y r)) ∧ |
| 69 | (∀ t ≤ 0, ∀ y, ∀ r : ℝ, 0 < r → |
| 70 | (∀ s ∈ Icc (t - r ^ 2) t, ∀ z ∈ (H.metric t).ball y r, |
| 71 | (H.connection s).curvatureTensorNorm z ≤ r⁻¹ ^ 2) → |
| 72 | ENNReal.ofReal (κ * r ^ n) ≤ (H.metric t).volumeMeasure ((H.metric t).ball y r)) := by |
| 73 | let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 74 | ⟨finrank_euclideanSpace_fin⟩ |
| 75 | let hreg := fun x (_ : x ∈ (⊤ : Opens M)) => regular_of_hasUnitGradient (hu 0 le_rfl) x |
| 76 | let := openLevelSetChartedSpace hf (⊤ : Opens M) hreg n 0 |
| 77 | let := isManifold_openLevelSet hf (⊤ : Opens M) hreg n 0 |
| 78 | let H := F.parallelGradientFactor hf (show (0 : ℝ) ∈ Iic 0 by simp) hu hz |
| 79 | let κ := (F.metric 0).asymptoticVolumeRatio p / 2 ^ (n + 2) |
| 80 | have hκ : 0 < κ := div_pos hvolume (by positivity) |
| 81 | have hRic (t : ℝ) (ht : t ≤ 0) (x : M) (v : TangentSpace (𝓡 (n + 1)) x) : |
| 82 | 0 ≤ (F.connection t).ricci x v v := |
| 83 | ((F.connection t).ricci_bounds_of_nonnegative_curvatureOperator |
| 84 | (hC.tensor_calculus (n + 1) M (F.metric t) (F.connection t)) x (hop t ht x) v).1 |
| 85 | obtain ⟨hne, hconn, hcomplete, hoperator, hnorm, hnonflat⟩ := |
| 86 | F.parallelGradientFactor_geometry hf (show (0 : ℝ) ∈ Iic 0 by simp) |
| 87 | hu hz hc hop hbound |
| 88 | have hnoncompact := noncompact_parallelGradient_factor_of_asymptoticVolumeRatio hn |
| 89 | (hc 0 le_rfl) (hRic 0 le_rfl) hf (hu 0 le_rfl) (hz 0 le_rfl) p hvolume |
| 90 | have hfactorVolume := parallelGradient_factor_volume_bounds_of_asymptoticVolumeRatio hn |
| 91 | (hc 0 le_rfl) (hRic 0 le_rfl) hf (hu 0 le_rfl) (hz 0 le_rfl) p hvolume |
| 92 | have hballs : ∀ t ≤ 0, ∀ y, ∀ r : ℝ, 0 < r → |
| 93 | ENNReal.ofReal (κ * r ^ n) ≤ (H.metric t).volumeMeasure ((H.metric t).ball y r) := by |
| 94 | intro t ht |
| 95 | have ha := F.ancient_ball_volume_lower_bound_of_terminal_asymptoticVolumeRatio |
| 96 | hC hn hc hop hK hbound p hvolume t ht |
| 97 | have hb := parallelGradient_factor_volume_bounds_of_ball_volume_lower_bound hn |
| 98 | (hc t ht) (hRic t ht) hf (hu t ht) (hz t ht) |
| 99 | (div_pos hvolume (by positivity : 0 < (2 : ℝ) ^ (n + 1))) ha |
| 100 | have heq : ((F.metric 0).asymptoticVolumeRatio p / 2 ^ (n + 1)) / 2 = κ := by |
| 101 | dsimp only [κ] |
| 102 | simp only [div_div, show n + 2 = (n + 1) + 1 by omega, pow_succ] |
| 103 | intro y r hr |
| 104 | simpa only [heq, H, parallelGradientFactor] using hb.2.1 y r hr |
| 105 | refine ⟨hκ, hne, hconn, hnoncompact, hcomplete, hoperator, hnorm, ?_, hballs, ?_⟩ |
| 106 | · obtain ⟨y, hy⟩ := hnonflat 0 (by simp) p hscalar |
| 107 | exact ⟨y, hy, hfactorVolume.2.2.2 y⟩ |
| 108 | · intro t ht y r hr _ |
| 109 | exact hballs t ht y r hr |
| 110 | |
| 111 | end PoincareMT.RicciFlow |