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.Backward |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Splitting.AncientFactor |
| 4 | |
| 5 | /-! |
| 6 | # The ancient factor of a terminal parallel gradient |
| 7 | |
| 8 | The terminal unit-gradient and zero-Hessian identities suffice to construct |
| 9 | one fixed lower-dimensional ancient flow. Backward persistence supplies its |
| 10 | past metric and connection identities; the factor geometry and explicit |
| 11 | volume constant then follow from the actual ambient terminal volume ratio. |
| 12 | |
| 13 | Reference: Kleiner--Lott (2013), Proposition 41.13, p. 2678. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option maxSynthPendingDepth 8 |
| 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 | variable {n : ℕ} {M : Type u} |
| 32 | [TopologicalSpace M] [T3Space M] [ConnectedSpace M] |
| 33 | [ChartedSpace (EuclideanSpace ℝ (Fin (n + 1))) M] |
| 34 | [IsManifold (𝓡 (n + 1)) ∞ M] |
| 35 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow (n + 1) M (Iic 0)) |
| 36 | (hc : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 37 | (hop : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 38 | {K : ℝ} (hK : 0 ≤ K) |
| 39 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 40 | {f : M → ℝ} (hf : ContMDiff (𝓡 (n + 1)) 𝓘(ℝ, ℝ) ∞ f) |
| 41 | (hunit : HasUnitGradient (F.connection 0) f) |
| 42 | (hzero : HasZeroHessian (F.connection 0) f) |
| 43 | |
| 44 | /-- The fixed zero level carries a constructed ancient factor flow, using |
| 45 | only the terminal parallel-gradient data of the original ancient flow. -/ |
| 46 | def terminalParallelGradientFactor : |
| 47 | letI : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 48 | ⟨finrank_euclideanSpace_fin⟩ |
| 49 | letI := openLevelSetChartedSpace hf (⊤ : Opens M) |
| 50 | (fun x _ => regular_of_hasUnitGradient hunit x) n 0 |
| 51 | letI := isManifold_openLevelSet hf (⊤ : Opens M) |
| 52 | (fun x _ => regular_of_hasUnitGradient hunit x) n 0 |
| 53 | RicciFlow n (zeroLevelSet f) (Iic 0) := by |
| 54 | let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 55 | ⟨finrank_euclideanSpace_fin⟩ |
| 56 | let := openLevelSetChartedSpace hf (⊤ : Opens M) |
| 57 | (fun x _ => regular_of_hasUnitGradient hunit x) n 0 |
| 58 | let := isManifold_openLevelSet hf (⊤ : Opens M) |
| 59 | (fun x _ => regular_of_hasUnitGradient hunit x) n 0 |
| 60 | have hp := F.ancient_backward_persistence_of_parallel_gradient hC (by omega) |
| 61 | hc hop ⟨K, hK, hbound⟩ f hf hunit hzero |
| 62 | exact F.parallelGradientFactor hf (show (0 : ℝ) ∈ Iic 0 by simp) |
| 63 | (fun t ht => (hp t ht).2.1) (fun t ht => (hp t ht).2.2) |
| 64 | |
| 65 | /-- The factor constructed solely from terminal data satisfies the complete |
| 66 | bounded ancient-flow hypotheses, terminal nonflatness, positive volume ratio, |
| 67 | and an explicit uniform parabolic noncollapse bound. -/ |
| 68 | theorem terminalParallelGradientFactor_ancient_geometry |
| 69 | [SecondCountableTopology M] [MeasurableSpace M] [BorelSpace M] |
| 70 | (hn : 0 < n) (p : M) |
| 71 | (hscalar : 0 < (F.connection 0).scalarCurvature p) |
| 72 | (hvolume : 0 < (F.metric 0).asymptoticVolumeRatio p) : |
| 73 | letI : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 74 | ⟨finrank_euclideanSpace_fin⟩ |
| 75 | letI := openLevelSetChartedSpace hf (⊤ : Opens M) |
| 76 | (fun x _ => regular_of_hasUnitGradient hunit x) n 0 |
| 77 | letI := isManifold_openLevelSet hf (⊤ : Opens M) |
| 78 | (fun x _ => regular_of_hasUnitGradient hunit x) n 0 |
| 79 | let H := F.terminalParallelGradientFactor hC hc hop hK hbound hf hunit hzero |
| 80 | let κ := (F.metric 0).asymptoticVolumeRatio p / 2 ^ (n + 2) |
| 81 | 0 < κ ∧ Nonempty (zeroLevelSet f) ∧ ConnectedSpace (zeroLevelSet f) ∧ |
| 82 | NoncompactSpace (zeroLevelSet f) ∧ |
| 83 | (∀ t ≤ 0, MetricComplete (H.metric t)) ∧ |
| 84 | (∀ t ≤ 0, ∀ y, (H.connection t).NonnegativeCurvatureOperator y) ∧ |
| 85 | (∀ t ≤ 0, ∀ y, (H.connection t).curvatureTensorNorm y ≤ K) ∧ |
| 86 | (∃ y, 0 < (H.connection 0).scalarCurvature y ∧ |
| 87 | 0 < (H.metric 0).asymptoticVolumeRatio y) ∧ |
| 88 | (∀ t ≤ 0, ∀ y, ∀ r : ℝ, 0 < r → |
| 89 | ENNReal.ofReal (κ * r ^ n) ≤ (H.metric t).volumeMeasure ((H.metric t).ball y r)) ∧ |
| 90 | (∀ t ≤ 0, ∀ y, ∀ r : ℝ, 0 < r → |
| 91 | (∀ s ∈ Icc (t - r ^ 2) t, ∀ z ∈ (H.metric t).ball y r, |
| 92 | (H.connection s).curvatureTensorNorm z ≤ r⁻¹ ^ 2) → |
| 93 | ENNReal.ofReal (κ * r ^ n) ≤ (H.metric t).volumeMeasure ((H.metric t).ball y r)) := by |
| 94 | let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (n + 1))) = n + 1) := |
| 95 | ⟨finrank_euclideanSpace_fin⟩ |
| 96 | let := openLevelSetChartedSpace hf (⊤ : Opens M) |
| 97 | (fun x _ => regular_of_hasUnitGradient hunit x) n 0 |
| 98 | let := isManifold_openLevelSet hf (⊤ : Opens M) |
| 99 | (fun x _ => regular_of_hasUnitGradient hunit x) n 0 |
| 100 | have hp := F.ancient_backward_persistence_of_parallel_gradient hC (by omega) |
| 101 | hc hop ⟨K, hK, hbound⟩ f hf hunit hzero |
| 102 | exact F.parallelGradientFactor_ancient_geometry hn hC hc hop hK hbound hf |
| 103 | (fun t ht => (hp t ht).2.1) (fun t ht => (hp t ht).2.2) p hscalar hvolume |
| 104 | |
| 105 | end PoincareMT.RicciFlow |