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.AncientRescaledLimit |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Noncompact.CurvatureControl.Cylinders.Expanding.SmallLimit |
| 4 | |
| 5 | /-! |
| 6 | # Selected ancient rescaling limits across source universes |
| 7 | |
| 8 | Spatial selection and bounded ancient scalar monotonicity give expanding |
| 9 | normalized cylinders in the original manifold. Explicit parabolic noncollapse |
| 10 | supplies their volume bound. The actual smooth shrinking construction then |
| 11 | produces a complete, nonflat ancient limit using curvature theory only in the |
| 12 | original source universe. The selected centers and rescalings are retained. |
| 13 | |
| 14 | References: Kleiner--Lott (corrected 2013), Proposition 41.13, p. 2678, |
| 15 | Corollary 44.1, pp. 2682--2683, and Appendix E, pp. 2848--2849. |
| 16 | The spatial selection in Proposition 41.13 cites Hamilton, Lemma 22.2. |
| 17 | -/ |
| 18 | |
| 19 | noncomputable section |
| 20 | set_option autoImplicit false |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | open Set Filter |
| 24 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 25 | |
| 26 | universe u |
| 27 | |
| 28 | namespace PoincareMT.RicciFlow |
| 29 | |
| 30 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 31 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 32 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 33 | attribute [local instance] smallCarrier smallChartedSpace smallIsManifold |
| 34 | |
| 35 | set_option maxHeartbeats 600000 in |
| 36 | /-- An original bounded ancient flow in any source universe, with explicit |
| 37 | parabolic noncollapse and unbounded distance-squared scalar curvature, produces |
| 38 | a complete nonflat ancient limit of the actual shrunk selected rescalings. |
| 39 | Only the source-universe curvature theory is an input. -/ |
| 40 | theorem exists_nonflat_small_ancient_rescaled_limit_of_unbounded_scalar_ratio |
| 41 | {m : ℕ} (hm : 0 < m) {M : Type u} |
| 42 | [TopologicalSpace M] [T3Space M] [SecondCountableTopology M] |
| 43 | [ConnectedSpace M] [NoncompactSpace M] [MeasurableSpace M] [BorelSpace M] |
| 44 | [ChartedSpace (EuclideanSpace ℝ (Fin (m + 1))) M] [IsManifold (𝓡 (m + 1)) ∞ M] |
| 45 | (hC : RicciFlowCurvatureCalculus.{u}) (F : RicciFlow (m + 1) M (Iic 0)) |
| 46 | (hcomplete : ∀ t ≤ 0, MetricComplete (F.metric t)) |
| 47 | (hoperator : ∀ t ≤ 0, ∀ x, (F.connection t).NonnegativeCurvatureOperator x) |
| 48 | {K : ℝ} (hK : 0 ≤ K) |
| 49 | (hbound : ∀ t ≤ 0, ∀ x, (F.connection t).curvatureTensorNorm x ≤ K) |
| 50 | {κ : ℝ} (hκ : 0 < κ) |
| 51 | (hnoncollapse : ∀ t ≤ 0, ∀ x : M, ∀ r : ℝ, 0 < r → |
| 52 | (∀ s ∈ Icc (t - r ^ 2) t, ∀ y ∈ (F.metric t).ball x r, |
| 53 | (F.connection s).curvatureTensorNorm y ≤ r⁻¹ ^ 2) → |
| 54 | ENNReal.ofReal (κ * r ^ (m + 1)) ≤ |
| 55 | (F.metric t).volumeMeasure ((F.metric t).ball x r)) |
| 56 | (t₀ : ℝ) (ht₀ : t₀ < 0) (p : M) |
| 57 | (hunbounded : ¬ BddAbove (range (fun x => |
| 58 | ((F.metric t₀).edist p x).toReal ^ 2 * (F.connection t₀).scalarCurvature x))) : |
| 59 | ∃ (q : ℕ → M) (r : ℕ → ℝ) |
| 60 | (hQ : ∀ i, 0 < (F.connection t₀).scalarCurvature (q i)), |
| 61 | let Q := fun i => (F.connection t₀).scalarCurvature (q i) |
| 62 | let L := fun i => r i * Real.sqrt (Q i) |
| 63 | let H := fun i => F.interiorAncientRescaleAt (Q i) (hQ i) t₀ |
| 64 | (∀ i, 0 < r i ∧ |
| 65 | (∀ x ∈ (F.metric t₀).ball (q i) (r i), |
| 66 | (F.connection t₀).scalarCurvature x ≤ 4 * Q i) ∧ |
| 67 | ∀ s ≤ t₀, ∀ x ∈ (F.metric t₀).ball (q i) (r i), |
| 68 | (F.connection s).curvatureTensorNorm x ≤ |
| 69 | 4 * (((m + 1 : ℕ) : ℝ)) ^ 2 * Q i) ∧ |
| 70 | Tendsto (fun i => ((F.metric t₀).edist p (q i)).toReal) atTop atTop ∧ |
| 71 | Tendsto r atTop atTop ∧ Tendsto L atTop atTop ∧ |
| 72 | Tendsto (fun i => ((F.metric t₀).edist p (q i)).toReal * Real.sqrt (Q i)) |
| 73 | atTop atTop ∧ |
| 74 | Tendsto (fun i => r i / ((F.metric t₀).edist p (q i)).toReal) atTop (𝓝 0) ∧ |
| 75 | BddAbove (range Q) ∧ |
| 76 | (∀ i s, s ∈ Iio (-t₀ * Q i) → t₀ + s / Q i < 0) ∧ |
| 77 | (∀ i a, Icc a 0 ⊆ interior (Iio (-t₀ * Q i))) ∧ |
| 78 | (∀ i s, s ∈ Iio (-t₀ * Q i) → MetricComplete ((H i).metric s)) ∧ |
| 79 | (∀ i s, s ∈ Iio (-t₀ * Q i) → ∀ x, |
| 80 | ((H i).connection s).NonnegativeCurvatureOperator x) ∧ |
| 81 | (∀ i s, s ≤ 0 → ∀ x ∈ ((H i).metric 0).ball (q i) (L i), |
| 82 | ((H i).connection s).scalarCurvature x ≤ 4) ∧ |
| 83 | (∀ i, ((H i).connection 0).scalarCurvature (q i) = 1) ∧ |
| 84 | ∃ ν : ℝ, 0 < ν ∧ |
| 85 | (∀ᶠ i in atTop, ENNReal.ofReal ν ≤ |
| 86 | ((H i).metric 0).volumeMeasure (((H i).metric 0).ball (q i) 1)) ∧ |
| 87 | ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ |
| 88 | ∃ G : AncientPointedGeometricConvergence |
| 89 | (fun _ => (FlowCarrier.ofConnectedManifold (m + 1) M).shrink) |
| 90 | (fun i t => (H i).shrink.metric (t - δ)) |
| 91 | (fun i => equivShrink M (q i)) δ, |
| 92 | (∀ t ∈ Iio δ, G.limitCarrier.metricComplete (G.limitFlow.metric t)) ∧ |
| 93 | (0 < (G.limitFlow.connection 0).curvatureTensorNorm G.base ∧ |
| 94 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 95 | (G.limitFlow.connection t).curvatureTensorNorm x ≤ |
| 96 | 4 * (((m + 1 : ℕ) : ℝ)) ^ 2) ∧ |
| 97 | (∀ t ∈ Iio δ, ∀ x : G.limitCarrier.carrier, |
| 98 | (G.limitFlow.connection t).NonnegativeCurvatureOperator x)) := by |
| 99 | obtain ⟨q, r, hcontrol, hd, hr, hL, hdQ, hratio, hQbound⟩ := |
| 100 | F.exists_escaping_backward_curvature_controlled_sequence hC hcomplete hoperator |
| 101 | hK hbound ht₀.le p hunbounded |
| 102 | have hQ (i : ℕ) : 0 < (F.connection t₀).scalarCurvature (q i) := (hcontrol i).1 |
| 103 | let Q := fun i => (F.connection t₀).scalarCurvature (q i) |
| 104 | let L := fun i => r i * Real.sqrt (Q i) |
| 105 | let H := fun i => F.interiorAncientRescaleAt (Q i) (hQ i) t₀ |
| 106 | have htime (i : ℕ) (s : ℝ) (hs : s ∈ Iio (-t₀ * Q i)) : t₀ + s / Q i < 0 := by |
| 107 | have h := (div_lt_iff₀ (hQ i)).mpr hs |
| 108 | linarith |
| 109 | have hwindow (i : ℕ) (a : ℝ) : Icc a 0 ⊆ interior (Iio (-t₀ * Q i)) := by |
| 110 | rw [isOpen_Iio.interior_eq] |
| 111 | intro s hs |
| 112 | exact hs.2.trans_lt (mul_pos (neg_pos.mpr ht₀) (hQ i)) |
| 113 | have hcompleteH (i : ℕ) (s : ℝ) (hs : s ∈ Iio (-t₀ * Q i)) : |
| 114 | MetricComplete ((H i).metric s) := by |
| 115 | apply F.parabolicRescale_metricComplete |
| 116 | exact hcomplete _ (htime i s hs).le |
| 117 | have hoperatorH (i : ℕ) (s : ℝ) (hs : s ∈ Iio (-t₀ * Q i)) (x : M) : |
| 118 | ((H i).connection s).NonnegativeCurvatureOperator x := by |
| 119 | apply F.parabolicRescale_nonnegativeCurvatureOperator |
| 120 | exact hoperator _ (htime i s hs).le x |
| 121 | have hball (i : ℕ) : ((H i).metric 0).ball (q i) (L i) = |
| 122 | (F.metric t₀).ball (q i) (r i) := by |
| 123 | change (rescaledMetric (F.metric (t₀ + 0 / Q i)) (Q i) (hQ i)).ball (q i) (L i) = _ |
| 124 | rw [rescaledMetric_ball_allDimensions, zero_div, add_zero] |
| 125 | dsimp only [L] |
| 126 | rw [mul_div_cancel_right₀ _ (Real.sqrt_pos.mpr (hQ i)).ne'] |
| 127 | have hscalarH (i : ℕ) (s : ℝ) (hs : s ≤ 0) (x : M) |
| 128 | (hx : x ∈ ((H i).metric 0).ball (q i) (L i)) : |
| 129 | ((H i).connection s).scalarCurvature x ≤ 4 := by |
| 130 | have hst : t₀ + s / Q i ≤ t₀ := |
| 131 | add_le_of_nonpos_right (div_nonpos_of_nonpos_of_nonneg hs (hQ i).le) |
| 132 | have hscalar := ((F.scalarCurvature_monotoneOn_of_bounded_ancient hC hcomplete |
| 133 | hoperator hK hbound x) (hst.trans ht₀.le) ht₀.le hst).trans |
| 134 | ((hcontrol i).2.2.1 x ((hball i) ▸ hx)) |
| 135 | dsimp only [H, interiorAncientRescaleAt] |
| 136 | rw [parabolicRescale_scalarCurvature] |
| 137 | have h := mul_le_mul_of_nonneg_left hscalar (inv_nonneg.mpr (hQ i).le) |
| 138 | calc |
| 139 | _ ≤ (Q i)⁻¹ * (4 * Q i) := h |
| 140 | _ = 4 * ((Q i)⁻¹ * Q i) := by ring |
| 141 | _ = 4 := by rw [inv_mul_cancel₀ (hQ i).ne', mul_one] |
| 142 | have hnormalize (i : ℕ) : ((H i).connection 0).scalarCurvature (q i) = 1 := by |
| 143 | dsimp only [H, interiorAncientRescaleAt] |
| 144 | rw [parabolicRescale_scalarCurvature, zero_div, add_zero] |
| 145 | exact inv_mul_cancel₀ (hQ i).ne' |
| 146 | let η : ℝ := (2 * (((m + 1 : ℕ) : ℝ)))⁻¹ |
| 147 | have hn : (1 : ℝ) ≤ ((m + 1 : ℕ) : ℝ) := by exact_mod_cast Nat.succ_le_succ (Nat.zero_le m) |
| 148 | have hη : 0 < η := by dsimp [η]; positivity |
| 149 | have hηone : η ≤ 1 := by |
| 150 | dsimp [η] |
| 151 | exact (inv_le_one₀ (by positivity)).mpr (by linarith) |
| 152 | have hscale : 4 * (((m + 1 : ℕ) : ℝ)) ^ 2 ≤ η⁻¹ ^ 2 := by |
| 153 | dsimp [η] |
| 154 | rw [inv_inv] |
| 155 | nlinarith |
| 156 | let ν := κ * η ^ (m + 1) |
| 157 | have hν : 0 < ν := mul_pos hκ (pow_pos hη _) |
| 158 | have hvolume : ∀ᶠ i in atTop, ENNReal.ofReal ν ≤ |
| 159 | ((H i).metric 0).volumeMeasure (((H i).metric 0).ball (q i) 1) := by |
| 160 | filter_upwards [hL.eventually_ge_atTop η] with i hi |
| 161 | have hsmall := rescaled_ball_volume_lower_bound_of_backward_curvature_bound |
| 162 | F hnoncollapse (Q i) (hQ i) t₀ ht₀.le (q i) hη hi hscale (hcontrol i).2.2.2 |
| 163 | exact hsmall.trans (MeasureTheory.measure_mono |
| 164 | (fun _ hx => lt_of_lt_of_le hx (ENNReal.ofReal_le_ofReal hηone))) |
| 165 | let A : ℕ → ℝ := fun i => (i : ℝ) + 1 |
| 166 | have hA : Tendsto A atTop atTop := tendsto_atTop_mono |
| 167 | (fun i => show (i : ℝ) ≤ A i by dsimp [A]; linarith) tendsto_natCast_atTop_atTop |
| 168 | obtain ⟨δ, hδ, hδone, G, hGcomplete, hnonflat, hGnorm, hGoperator⟩ := |
| 169 | exists_nonflat_ancient_limit_of_small_expanding_cylinders hC hm |
| 170 | (fun _ => FlowCarrier.ofConnectedManifold (m + 1) M) |
| 171 | (fun i => Iio (-t₀ * Q i)) H q A L hA hL (fun i => hwindow i (-A i)) |
| 172 | (fun i s hs => hcompleteH i s (interior_subset (hwindow i (-A i) hs))) |
| 173 | (fun i s hs => hoperatorH i s (interior_subset (hwindow i (-A i) hs))) |
| 174 | (fun i s hs => hscalarH i s hs.2) hnormalize hν hvolume |
| 175 | refine ⟨q, r, hQ, (fun i => (hcontrol i).2), hd, hr, hL, hdQ, hratio, hQbound, |
| 176 | htime, hwindow, hcompleteH, hoperatorH, hscalarH, hnormalize, |
| 177 | ν, hν, hvolume, δ, hδ, hδone, G, hGcomplete, hnonflat, ?_, hGoperator⟩ |
| 178 | intro t ht x |
| 179 | exact (hGnorm t ht x).trans_eq (mul_comm _ _) |
| 180 | |
| 181 | end PoincareMT.RicciFlow |