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.ParallelLimit |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.AncientVolume.Splitting.TerminalFactor |
| 4 | |
| 5 | /-! |
| 6 | # Dimension reduction for bounded ancient flows |
| 7 | |
| 8 | The spatial line limit and backward persistence construct a lower-dimensional |
| 9 | ancient flow satisfying the same geometric hypotheses and positive asymptotic |
| 10 | volume ratio. The noncollapse constant is constructed from the terminal volume |
| 11 | ratio of the line limit. |
| 12 | |
| 13 | Reference: Kleiner--Lott (corrected 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 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 32 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 33 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 34 | |
| 35 | /-- An unbounded spatial scalar ratio and positive asymptotic volume construct |
| 36 | an actual complete nonflat ancient factor in one lower dimension. -/ |
| 37 | theorem exists_lower_dimensional_ancient_flow_of_unbounded_scalar_ratio |
| 38 | {m : ℕ} (hm : 0 < m) {M : Type u} |
| 39 | [TopologicalSpace M] [T3Space M] [SecondCountableTopology M] |
| 40 | [ConnectedSpace M] [NoncompactSpace M] [MeasurableSpace M] [BorelSpace M] |
| 41 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) M] [IsManifold (𝓡 (m + 1)) ∞ M] |
| 42 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow (m + 1) M (Iic 0)) |
| 43 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 44 | (hoperator : ∀ 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 | {κ : ℝ} (hκ : 0 < κ) |
| 48 | (hnoncollapse : ∀ t ≤ 0, ∀ x : M, ∀ r : ℝ, 0 < r → |
| 49 | (∀ s ∈ Icc (t - r ^ 2) t, ∀ y ∈ (F.metric t).ball x r, |
| 50 | (F.connection s).curvatureTensorNorm y ≤ r⁻¹ ^ 2) → |
| 51 | ENNReal.ofReal (κ * r ^ (m + 1)) ≤ |
| 52 | (F.metric t).volumeMeasure ((F.metric t).ball x r)) |
| 53 | {t₀ t₁ : ℝ} (ht₀ : t₀ < 0) (ht₁ : t₁ ≤ 0) (htimeOrder : t₀ ≤ t₁) |
| 54 | (p : M) (hvolume : 0 < (F.metric t₁).asymptoticVolumeRatio p) |
| 55 | (hunbounded : ¬ BddAbove (range (fun x => |
| 56 | ((F.metric t₀).edist p x).toReal ^ 2 * (F.connection t₀).scalarCurvature x))) : |
| 57 | ∃ C : FlowCarrier.{u} m, NoncompactSpace C.carrier ∧ |
| 58 | ∃ H : RicciFlow m C.carrier (Iic 0), ∃ base : C.carrier, ∃ κ' : ℝ, |
| 59 | 0 < κ' ∧ |
| 60 | (∀ t ≤ 0, C.metricComplete (H.metric t)) ∧ |
| 61 | (∀ t ≤ 0, ∀ x, (H.connection t).NonnegativeCurvatureOperator x) ∧ |
| 62 | (∀ t ≤ 0, ∀ x, |
| 63 | (H.connection t).curvatureTensorNorm x ≤ 4 * (((m + 1 : ℕ) : ℝ)) ^ 2) ∧ |
| 64 | 0 < (H.connection 0).scalarCurvature base ∧ |
| 65 | 0 < (H.metric 0).asymptoticVolumeRatio base ∧ |
| 66 | (∀ t ≤ 0, ∀ x, ∀ r : ℝ, 0 < r → |
| 67 | ENNReal.ofReal (κ' * r ^ m) ≤ (H.metric t).volumeMeasure ((H.metric t).ball x r)) ∧ |
| 68 | (∀ t ≤ 0, ∀ x, ∀ r : ℝ, 0 < r → |
| 69 | (∀ s ∈ Icc (t - r ^ 2) t, ∀ y ∈ (H.metric t).ball x r, |
| 70 | (H.connection s).curvatureTensorNorm y ≤ r⁻¹ ^ 2) → |
| 71 | ENNReal.ofReal (κ' * r ^ m) ≤ (H.metric t).volumeMeasure ((H.metric t).ball x r)) := by |
| 72 | obtain ⟨C, δ, hδ, _, G, base, hc, hop, hb, hs, hv, |
| 73 | _, f, _, _, _, hf, hu, hz, _⟩ := |
| 74 | exists_nonflat_ancient_limit_with_terminal_parallel_gradient hm hC F |
| 75 | hcomplete hoperator hK hbound hκ hnoncollapse ht₀ ht₁ htimeOrder p hvolume hunbounded |
| 76 | let : ConnectedSpace C.carrier := connectedSpace_iff_univ.mpr C.connected |
| 77 | let Ganc : RicciFlow (m + 1) C.carrier (Iic 0) := |
| 78 | Poincare.Geometry.RicciFlow.Harnack.restrictFlow G |
| 79 | (fun _ ht => ht.trans_lt hδ) ordConnected_Iic |
| 80 | ⟨-1, by norm_num, 0, by norm_num, by norm_num⟩ |
| 81 | have hcAnc : ∀ t ≤ 0, MetricComplete (Ganc.metric t) := |
| 82 | fun t ht => hc t (ht.trans_lt hδ) |
| 83 | have hopAnc : ∀ t ≤ 0, ∀ x, (Ganc.connection t).NonnegativeCurvatureOperator x := |
| 84 | fun t ht => hop t (ht.trans_lt hδ) |
| 85 | have hbAnc : ∀ t ≤ 0, ∀ x, |
| 86 | (Ganc.connection t).curvatureTensorNorm x ≤ 4 * (((m + 1 : ℕ) : ℝ)) ^ 2 := |
| 87 | fun t ht => hb t (ht.trans_lt hδ) |
| 88 | have hB : 0 ≤ 4 * (((m + 1 : ℕ) : ℝ)) ^ 2 := by positivity |
| 89 | let : Fact (Module.finrank ℝ (EuclideanSpace ℝ (Fin (m + 1))) = m + 1) := |
| 90 | ⟨finrank_euclideanSpace_fin⟩ |
| 91 | let := openLevelSetChartedSpace hf (⊤ : Opens C.carrier) |
| 92 | (fun x _ => regular_of_hasUnitGradient hu x) m 0 |
| 93 | let := isManifold_openLevelSet hf (⊤ : Opens C.carrier) |
| 94 | (fun x _ => regular_of_hasUnitGradient hu x) m 0 |
| 95 | let H := Ganc.terminalParallelGradientFactor hC hcAnc hopAnc hB hbAnc hf hu hz |
| 96 | obtain ⟨hk, _, hconn, hnc, hcomp, hcurv, hnorm, |
| 97 | ⟨y, hscalar, hvolume⟩, hballs, hparabolic⟩ := |
| 98 | Ganc.terminalParallelGradientFactor_ancient_geometry hC hcAnc hopAnc hB hbAnc |
| 99 | hf hu hz hm base hs hv |
| 100 | let : ConnectedSpace (zeroLevelSet f) := hconn |
| 101 | let D : FlowCarrier.{u} m := FlowCarrier.ofConnectedManifold m (zeroLevelSet f) |
| 102 | exact ⟨D, hnc, H, y, (Ganc.metric 0).asymptoticVolumeRatio base / 2 ^ (m + 2), |
| 103 | hk, hcomp, hcurv, hnorm, hscalar, hvolume, hballs, hparabolic⟩ |
| 104 | |
| 105 | end PoincareMT.RicciFlow |