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.Compactness.Normalized |
| 2 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Asymptotic.Compactness.Calibration |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.Restriction |
| 4 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Volume.AtPoint |
| 5 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Curvature.Uniform |
| 6 | import PoincareLib.Geometry.RicciFlow.Compactness.Embedding.TimeIndependent |
| 7 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.Source |
| 8 | |
| 9 | /-! |
| 10 | # Preservation of the original parabolic noncollapse constant |
| 11 | |
| 12 | Strict curvature control on smaller parabolic balls transfers to the original |
| 13 | source embeddings. Ball-volume convergence and the increasing-radius limit |
| 14 | retain the original kappa constant on the same complete ancient limit. |
| 15 | |
| 16 | Reference: Morgan--Tian, Theorem 9.64, pp. 225/229. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | open Set Filter MeasureTheory |
| 23 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 24 | |
| 25 | namespace PoincareMT |
| 26 | |
| 27 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 28 | FlowCarrier.isManifold FlowCarrier.measurableSpace FlowCarrier.borelSpace |
| 29 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 30 | |
| 31 | namespace PointedGeometricConvergence |
| 32 | |
| 33 | variable {n : ℕ} {T' T : ℝ} {S : PointedFlowSequence n T' T} |
| 34 | (G : PointedGeometricConvergence S) |
| 35 | |
| 36 | /-- A parabolic limit bound gives the source bound at every smaller radius, |
| 37 | using time independence of the same spatial embedding. -/ |
| 38 | theorem eventually_source_parabolic_curvature_bound |
| 39 | {t r ρ : ℝ} (htime : Icc (t - r ^ 2) t ⊆ Ioo T' T) |
| 40 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metricAt t)) |
| 41 | (p : G.limitCarrier.carrier) (hρ : 0 < ρ) (hρr : ρ < r) |
| 42 | (hcurv : ∀ s ∈ Ioc (t - r ^ 2) t, ∀ x ∈ (G.limitFlow.metricAt t).ball p r, |
| 43 | |(G.limitFlow.flow.connection s).curvatureTensorNorm x| ≤ r⁻¹ ^ 2) : |
| 44 | ∀ᶠ k in atTop, ∀ s ∈ Ioc (t - ρ ^ 2) t, |
| 45 | ∀ x ∈ ((S.flow (G.subsequence k)).metricAt t).ball |
| 46 | ((G.embedding k).toFun (t, p)).2 ρ, |
| 47 | |((S.flow (G.subsequence k)).flow.connection s).curvatureTensorNorm x| ≤ ρ⁻¹ ^ 2 := by |
| 48 | let g := G.limitFlow.metricAt t |
| 49 | let : EMetricSpace G.limitCarrier.carrier := G.limitCarrier.metricEMetricSpace g |
| 50 | have ht : t ∈ Ioo T' T := htime ⟨by nlinarith [sq_nonneg r], le_rfl⟩ |
| 51 | obtain ⟨a, hρa, har⟩ := exists_between hρr |
| 52 | have hr : 0 < r := hρ.trans hρr |
| 53 | let C := a / ρ |
| 54 | have hC : 1 < C := (one_lt_div hρ).mpr hρa |
| 55 | have hCr : C * ρ = a := div_mul_cancel₀ a hρ.ne' |
| 56 | let A := closure (g.ball p a) |
| 57 | have hA : IsCompact A := g.isCompact_closure_ball_of_metricComplete hcomplete p a |
| 58 | have hAr : A ⊆ g.ball p r := by |
| 59 | intro x hx |
| 60 | have hd : edist p x ≤ ENNReal.ofReal a := |
| 61 | closure_minimal (fun _ hy => le_of_lt hy) |
| 62 | (isClosed_le (continuous_const.edist continuous_id) continuous_const) hx |
| 63 | exact hd.trans_lt ((ENNReal.ofReal_lt_ofReal_iff hr).mpr har) |
| 64 | have htimes : Icc (t - ρ ^ 2) t ⊆ Ioc (t - r ^ 2) t := by |
| 65 | intro s hs |
| 66 | exact ⟨by nlinarith [hs.1], hs.2⟩ |
| 67 | have hrad : r⁻¹ ^ 2 < ρ⁻¹ ^ 2 := by |
| 68 | have hi := (inv_lt_inv₀ hr hρ).mpr hρr |
| 69 | nlinarith [inv_pos.mpr hρ, inv_pos.mpr hr] |
| 70 | have hbounds := G.eventually_curvatureTensorNorm_lt_on_compact (isCompact_Icc.prod hA) |
| 71 | (fun z hz => htime ⟨(htimes hz.1).1.le, (htimes hz.1).2⟩) |
| 72 | (fun z hz => (le_abs_self _).trans |
| 73 | (hcurv z.1 (htimes hz.1) z.2 (hAr hz.2)) |>.trans_lt hrad) |
| 74 | obtain ⟨j, hj⟩ := G.exists_exhaustion_superset hA |
| 75 | filter_upwards [hbounds, G.eventually_source_ball_subset_image_ball_at |
| 76 | ht hcomplete p hρ hC, eventually_ge_atTop j] with k hk hcover hjk s hs x hx |
| 77 | obtain ⟨y, hy, rfl⟩ := hcover hx |
| 78 | rw [hCr] at hy |
| 79 | have hyA : y ∈ A := subset_closure hy |
| 80 | have hs' : s ∈ Icc (t - ρ ^ 2) t := ⟨hs.1.le, hs.2⟩ |
| 81 | have hsI : s ∈ Ioo T' T := htime ⟨(htimes hs').1.le, hs.2⟩ |
| 82 | change |((S.flow (G.subsequence k)).flow.connection s).curvatureTensorNorm |
| 83 | ((G.embedding k).toFun (t, y)).2| ≤ ρ⁻¹ ^ 2 |
| 84 | rw [← (G.embedding k).spatial_eq_of_mem hsI ht |
| 85 | (G.exhaustion_monotone hjk (hj hyA))] |
| 86 | rw [abs_of_nonneg (show 0 ≤ ((S.flow (G.subsequence k)).flow.connection s).curvatureTensorNorm |
| 87 | ((G.embedding k).toFun (s, y)).2 from Real.sqrt_nonneg _)] |
| 88 | exact (hk (s, y) ⟨hs', hyA⟩).le |
| 89 | |
| 90 | /-- Parabolic noncollapse passes to a complete pointed limit without changing |
| 91 | its constant. The full closed parabolic time interval is interior. -/ |
| 92 | theorem ball_volume_lower_bound_of_eventually_parabolic_noncollapse |
| 93 | {t r : ℝ} (htime : Icc (t - r ^ 2) t ⊆ Ioo T' T) |
| 94 | (hcomplete : G.limitCarrier.metricComplete (G.limitFlow.metricAt t)) |
| 95 | (p : G.limitCarrier.carrier) (hr : 0 < r) (κ : ℝ) |
| 96 | (hsource : ∀ ρ : ℝ, 0 < ρ → ρ < r → ∀ᶠ k in atTop, |
| 97 | (∀ s ∈ Ioc (t - ρ ^ 2) t, |
| 98 | ∀ x ∈ ((S.flow (G.subsequence k)).metricAt t).ball |
| 99 | ((G.embedding k).toFun (t, p)).2 ρ, |
| 100 | |((S.flow (G.subsequence k)).flow.connection s).curvatureTensorNorm x| ≤ ρ⁻¹ ^ 2) → |
| 101 | ENNReal.ofReal (κ * ρ ^ n) ≤ ((S.flow (G.subsequence k)).metricAt t).volumeMeasure |
| 102 | (((S.flow (G.subsequence k)).metricAt t).ball ((G.embedding k).toFun (t, p)).2 ρ)) |
| 103 | (hcurv : ∀ s ∈ Ioc (t - r ^ 2) t, ∀ x ∈ (G.limitFlow.metricAt t).ball p r, |
| 104 | |(G.limitFlow.flow.connection s).curvatureTensorNorm x| ≤ r⁻¹ ^ 2) : |
| 105 | ENNReal.ofReal (κ * r ^ n) ≤ |
| 106 | (G.limitFlow.metricAt t).volumeMeasure ((G.limitFlow.metricAt t).ball p r) := by |
| 107 | have ht : t ∈ Ioo T' T := htime ⟨by nlinarith [sq_nonneg r], le_rfl⟩ |
| 108 | have hsmall (ρ : ℝ) (hρ : 0 < ρ) (hρr : ρ < r) : |
| 109 | ENNReal.ofReal (κ * ρ ^ n) ≤ |
| 110 | (G.limitFlow.metricAt t).volumeMeasure ((G.limitFlow.metricAt t).ball p r) := by |
| 111 | have hevent := (hsource ρ hρ hρr).mp |
| 112 | ((G.eventually_source_parabolic_curvature_bound htime hcomplete p hρ hρr hcurv).mono |
| 113 | fun _ hk hnoncollapse => hnoncollapse hk) |
| 114 | have hv := ge_of_tendsto (G.tendsto_volumeMeasure_ball_at ht hcomplete p hρ) hevent |
| 115 | exact hv.trans (measure_mono (fun _ hx => |
| 116 | hx.trans_le (ENNReal.ofReal_le_ofReal hρr.le))) |
| 117 | apply le_of_tendsto (f := fun ρ : ℝ => ENNReal.ofReal (κ * ρ ^ n)) |
| 118 | (x := 𝓝[<] r) |
| 119 | ((ENNReal.continuous_ofReal.comp (continuous_const.mul (continuous_id.pow n))).continuousAt.tendsto.mono_left |
| 120 | nhdsWithin_le_nhds) |
| 121 | filter_upwards [self_mem_nhdsWithin, |
| 122 | (eventually_gt_nhds hr).filter_mono nhdsWithin_le_nhds] with ρ hρr hρ |
| 123 | exact hsmall ρ hρ hρr |
| 124 | |
| 125 | end PointedGeometricConvergence |
| 126 | |
| 127 | namespace NormalizedKappaSolutionSequence |
| 128 | |
| 129 | local instance parabolicFlowCarrierConnected (C : FlowCarrier 3) : ConnectedSpace C.carrier := |
| 130 | connectedSpace_iff_univ.mpr C.connected |
| 131 | |
| 132 | variable {kappa : ℝ} (S : NormalizedKappaSolutionSequence kappa) |
| 133 | |
| 134 | /-- The same shifted ancient limit retains the original normalized sequence's |
| 135 | parabolic noncollapse constant on every interior slice. -/ |
| 136 | theorem interiorLimit_noncollapsed_ball |
| 137 | (G : AncientPointedGeometricConvergence (fun k => (S.term k).carrier) |
| 138 | (fun k t => (S.term k).flow.flow.metric (t - 1)) (fun k => (S.term k).base) 1) |
| 139 | (hcomplete : ∀ t : ℝ, t < 1 → G.limitCarrier.metricComplete (G.limitFlow.metric t)) |
| 140 | {t r : ℝ} (ht : t < 1) (p : G.limitCarrier.carrier) (hr : 0 < r) |
| 141 | (hcurv : ∀ s ∈ Ioc (t - r ^ 2) t, ∀ x ∈ (G.limitFlow.metric t).ball p r, |
| 142 | |(G.limitFlow.connection s).curvatureTensorNorm x| ≤ r⁻¹ ^ 2) : |
| 143 | ENNReal.ofReal (kappa * r ^ 3) ≤ calibratedMetricVolume (G.limitFlow.metric t) |
| 144 | ((G.limitFlow.metric t).ball p r) := by |
| 145 | let F (k : ℕ) : RicciFlow 3 (S.term k).carrier.carrier |
| 146 | ((fun t : ℝ => t - 1) ⁻¹' Iic 0) := |
| 147 | (S.term k).flow.flow.bufferedExpandingFlow 1 |
| 148 | obtain ⟨a, b, ha, hb, hb1, hwindow⟩ := exists_ancient_window_of_isCompact |
| 149 | (by norm_num : (0 : ℝ) < 1) isCompact_Icc |
| 150 | (show Icc (t - r ^ 2) t ⊆ Iio 1 from fun s hs => hs.2.trans_lt ht) |
| 151 | have hsub : ∀ k : ℕ, Ioo a b ⊆ (fun u : ℝ => u - 1) ⁻¹' Iic 0 := by |
| 152 | intro k u hu |
| 153 | change u - 1 ≤ 0 |
| 154 | linarith [hu.2] |
| 155 | let W := G.window F (ha.trans hb) hb1.le 0 hsub |
| 156 | rw [calibratedMetricVolume_eq_volumeMeasure] |
| 157 | apply W.ball_volume_lower_bound_of_eventually_parabolic_noncollapse |
| 158 | hwindow (hcomplete t ht) p hr kappa ?_ hcurv |
| 159 | intro ρ hρ _ |
| 160 | refine Eventually.of_forall fun k hk => ?_ |
| 161 | let B := S.term (G.subsequence (k + 0)) |
| 162 | have hnc := B.flow.noncollapsed ρ hρ (t - 1) (by linarith) |
| 163 | (G.embedding (k + 0) p) ρ hρ le_rfl (by |
| 164 | intro s hs x hx |
| 165 | have hs' : s + 1 ∈ Ioc (t - ρ ^ 2) t := ⟨by linarith [hs.1], by linarith [hs.2]⟩ |
| 166 | have hbound := hk (s + 1) hs' x hx |
| 167 | change |(B.flow.flow.connection (s + 1 - 1)).curvatureTensorNorm x| ≤ ρ⁻¹ ^ 2 at hbound |
| 168 | have hshift : s + 1 - 1 = s := by ring |
| 169 | rw [hshift] at hbound |
| 170 | exact hbound) |
| 171 | rw [B.kappa_eq, calibratedMetricVolume_eq_volumeMeasure] at hnc |
| 172 | exact hnc |
| 173 | |
| 174 | end NormalizedKappaSolutionSequence |
| 175 | |
| 176 | end PoincareMT |