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.Splitting.ParallelGradient.Noncollapse |
| 2 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Nonflatness |
| 3 | import PoincareLib.Geometry.Riemannian.Splitting.Busemann.Main |
| 4 | |
| 5 | /-! |
| 6 | # An ancient kappa-solution factor from a minimizing line |
| 7 | |
| 8 | The terminal Busemann function constructs the actual fixed surface factor. |
| 9 | Backward nonflatness and noncollapse descent make it an ancient kappa-solution. |
| 10 | Uniqueness of the persistent gradient flow gives one product identification |
| 11 | for the whole ancient interval, preserving metrics and curvature norms. |
| 12 | |
| 13 | References: Morgan--Tian, Proposition 2.3, pp. 21-23, Lemma 2.14, |
| 14 | pp. 28-29, and Definition 9.1, pp. 179-180; Kleiner--Lott (corrected 2013), |
| 15 | Proposition 41.13, p. 2678. |
| 16 | -/ |
| 17 | |
| 18 | noncomputable section |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | open Set TopologicalSpace |
| 23 | open Poincare.Geometry.Manifold.RegularLevel |
| 24 | open scoped Manifold ContDiff Bundle ENNReal |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | namespace PoincareMT.RicciFlow |
| 29 | |
| 30 | open RiemannianMetric |
| 31 | |
| 32 | /-- A specified terminal minimizing line constructs the actual surface |
| 33 | ancient kappa-solution and one product identification for all past times. -/ |
| 34 | theorem exists_ancientKappaSolution_factor_of_minimizing_line |
| 35 | {M : Type u} [TopologicalSpace M] [T3Space M] [ConnectedSpace M] |
| 36 | [MeasurableSpace M] [BorelSpace M] |
| 37 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 38 | (hC : RicciFlowCurvatureTheory.{u}) (F : RicciFlow 3 M (Iic 0)) |
| 39 | (hc : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 40 | (hop : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 41 | {K : ℝ} (hK : 0 ≤ K) |
| 42 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 43 | {κ : ℝ} (hκ : 0 < κ) (hnc : AncientKappaNoncollapsed F κ) |
| 44 | (hscalar : ∃ p, 0 < (F.connection 0).scalarCurvature p) |
| 45 | (γ : ℝ → M) |
| 46 | (hγ : ∀ s t : ℝ, (F.metric 0).edist (γ s) (γ t) = ENNReal.ofReal |s - t|) : |
| 47 | let f := (F.metric 0).busemann γ |
| 48 | letI : SecondCountableTopology M := (F.metric 0).secondCountableTopology |
| 49 | ∃ (hf : ContMDiff (𝓡 3) 𝓘(ℝ, ℝ) ∞ f) |
| 50 | (hu : HasUnitGradient (F.connection 0) f) |
| 51 | (hz : HasZeroHessian (F.connection 0) f), |
| 52 | letI : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)) = 2 + 1) := |
| 53 | ⟨finrank_euclideanSpace_fin⟩ |
| 54 | letI := openLevelSetChartedSpace hf (⊤ : Opens M) |
| 55 | (fun x _ => regular_of_hasUnitGradient hu x) 2 0 |
| 56 | letI := isManifold_openLevelSet hf (⊤ : Opens M) |
| 57 | (fun x _ => regular_of_hasUnitGradient hu x) 2 0 |
| 58 | ∃ hconn : ConnectedSpace (zeroLevelSet f), |
| 59 | letI := hconn |
| 60 | ∃ A : AncientKappaSolution 2 (zeroLevelSet f), |
| 61 | A.flow = F.terminalParallelGradientFactor hC hc hop hK hbound hf hu hz ∧ |
| 62 | A.kappa = κ / 2 ∧ |
| 63 | ∃ e : (zeroLevelSet f × ℝ) ≃ₘ⟮(𝓡 2).prod 𝓘(ℝ, ℝ), 𝓡 3⟯ M, |
| 64 | (∀ z, f (e z) = z.2) ∧ |
| 65 | (∀ (t : ℝ), t ≤ 0 → ∀ (z : zeroLevelSet f × ℝ) |
| 66 | (v w : TangentSpace ((𝓡 2).prod 𝓘(ℝ, ℝ)) z), |
| 67 | (F.metric t).inner (e z) |
| 68 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) e z v) |
| 69 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) e z w) = |
| 70 | (A.flow.metric t).inner z.1 v.1 w.1 + v.2 * w.2) ∧ |
| 71 | (∀ (t : ℝ), t ≤ 0 → ∀ x, |
| 72 | (A.flow.connection t).curvatureTensorNorm (e.symm x).1 = |
| 73 | (F.connection t).curvatureTensorNorm x) := by |
| 74 | let f := (F.metric 0).busemann γ |
| 75 | let : SecondCountableTopology M := (F.metric 0).secondCountableTopology |
| 76 | let : NoncompactSpace M := (F.metric 0).noncompactSpace_of_minimizing_line hγ |
| 77 | have hRic : (F.connection 0).NonnegativeRicciCurvature := by |
| 78 | intro x v |
| 79 | exact ((F.connection 0).ricci_bounds_of_nonnegative_curvatureOperator |
| 80 | (hC.tensor_calculus 3 M (F.metric 0) (F.connection 0)) x (hop 0 le_rfl x) v).1 |
| 81 | obtain ⟨hf, hu, _, hz, _⟩ := (F.metric 0).busemann_parallel_unit_gradient |
| 82 | (F.connection 0) (hc 0 le_rfl) hRic hγ |
| 83 | refine ⟨hf, hu, hz, ?_⟩ |
| 84 | let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin 3)) = 2 + 1) := |
| 85 | ⟨finrank_euclideanSpace_fin⟩ |
| 86 | let hreg := fun x (_ : x ∈ (⊤ : Opens M)) => regular_of_hasUnitGradient hu x |
| 87 | let := openLevelSetChartedSpace hf (⊤ : Opens M) hreg 2 0 |
| 88 | let := isManifold_openLevelSet hf (⊤ : Opens M) hreg 2 0 |
| 89 | have hp := F.ancient_backward_persistence_of_parallel_gradient hC (by norm_num) |
| 90 | hc hop ⟨K, hK, hbound⟩ f hf hu hz |
| 91 | let huall := fun t ht => (hp t ht).2.1 |
| 92 | let hzall := fun t ht => (hp t ht).2.2 |
| 93 | let H := F.terminalParallelGradientFactor hC hc hop hK hbound hf hu hz |
| 94 | obtain ⟨_, hconn, hcomplete, hoperator, hnorm, hpos⟩ := |
| 95 | F.parallelGradientFactor_geometry hf (show (0 : ℝ) ∈ Iic 0 by simp) |
| 96 | huall hzall hc hop hbound |
| 97 | refine ⟨hconn, ?_⟩ |
| 98 | let : ConnectedSpace (zeroLevelSet f) := hconn |
| 99 | have hpast := F.scalarCurvature_positive_somewhere_of_bounded_ancient hC hc hop hK hbound hscalar |
| 100 | have hnonflat : ∀ t ≤ 0, ∃ y, (H.connection t).curvatureTensorNorm y ≠ 0 := by |
| 101 | intro t ht |
| 102 | obtain ⟨x, hx⟩ := hpast t ht |
| 103 | obtain ⟨y, hy⟩ := hpos t ht x hx |
| 104 | refine ⟨y, ?_⟩ |
| 105 | intro hzero |
| 106 | have hb := (H.connection t).abs_scalarCurvature_le_curvatureTensorNorm y |
| 107 | rw [hzero, mul_zero] at hb |
| 108 | exact hy.not_ge ((le_abs_self _).trans hb) |
| 109 | let A : AncientKappaSolution 2 (zeroLevelSet f) := |
| 110 | { flow := H |
| 111 | kappa := κ / 2 |
| 112 | kappa_pos := by positivity |
| 113 | complete := hcomplete |
| 114 | nonnegative_curvature_operator := hoperator |
| 115 | bounded_curvature := fun t ht => ⟨K, hK, fun y => by |
| 116 | have hnonneg : 0 ≤ (H.connection t).curvatureTensorNorm y := Real.sqrt_nonneg _ |
| 117 | rw [abs_of_nonneg hnonneg] |
| 118 | exact hnorm t ht y⟩ |
| 119 | nonflat := hnonflat |
| 120 | noncollapsed := F.terminalParallelGradientFactor_parabolic_noncollapsed |
| 121 | hC hc hop hK hbound hf hu hz hnc } |
| 122 | refine ⟨A, rfl, rfl, ?_⟩ |
| 123 | obtain ⟨_, _, _, Φ, e, h0, hΦ, he, hcoord, _, _, _, _⟩ := |
| 124 | exists_parallelGradient_productIsometry_curvature (n := 2) (hc 0 le_rfl) hf hu hz |
| 125 | have hproduct (t : ℝ) (ht : t ≤ 0) : |
| 126 | (∀ (z : zeroLevelSet f × ℝ) (v w : TangentSpace ((𝓡 2).prod 𝓘(ℝ, ℝ)) z), |
| 127 | (F.metric t).inner (e z) |
| 128 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) e z v) |
| 129 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) e z w) = |
| 130 | (H.metric t).inner z.1 v.1 w.1 + v.2 * w.2) ∧ |
| 131 | (∀ x, (H.connection t).curvatureTensorNorm (e.symm x).1 = |
| 132 | (F.connection t).curvatureTensorNorm x) := by |
| 133 | obtain ⟨_, _, _, Ψ, d, hΨ0, hΨ, hd, _, hm, _, hn, _⟩ := |
| 134 | exists_parallelGradient_productIsometry_curvature (n := 2) |
| 135 | (hc t ht) hf (huall t ht) (hzall t ht) |
| 136 | have hde : d = e := by |
| 137 | apply Diffeomorph.ext |
| 138 | intro z |
| 139 | rw [hd, he] |
| 140 | have hcurve := hΨ (zeroLevelIncl f z.1) |
| 141 | rw [(hp t ht).1] at hcurve |
| 142 | have hsame := isMIntegralCurve_Ioo_eq_of_contMDiff_boundaryless |
| 143 | ((F.connection 0).contMDiff_gradient hf |>.of_le (by simp)) hcurve |
| 144 | (hΦ (zeroLevelIncl f z.1)) |
| 145 | (show Ψ 0 (zeroLevelIncl f z.1) = Φ 0 (zeroLevelIncl f z.1) by rw [hΨ0, h0]) |
| 146 | exact congrFun hsame z.2 |
| 147 | rw [hde] at hm hn |
| 148 | exact ⟨hm, hn⟩ |
| 149 | exact ⟨e, hcoord, fun t ht => (hproduct t ht).1, fun t ht => (hproduct t ht).2⟩ |
| 150 | |
| 151 | end PoincareMT.RicciFlow |