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.StructuralData |
| 2 | import PoincareLib.Geometry.RicciFlow.Rescaling.Theory |
| 3 | import PoincareLib.Geometry.RicciFlow.Harnack.Regularity |
| 4 | |
| 5 | /-! |
| 6 | # Scalar normalization of ancient kappa-solutions |
| 7 | |
| 8 | Positive parabolic rescaling preserves the all-scale noncollapsing condition |
| 9 | and normalizes scalar curvature at any specified ancient point and time. |
| 10 | See Morgan--Tian, Definition 3.40, p. 61, and Definitions 9.1--9.2, pp. 179--180. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 23 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 24 | [IsManifold (𝓡 n) ∞ M] [MeasurableSpace M] [BorelSpace M] |
| 25 | [T2Space M] [T3Space M] [SecondCountableTopology M] [ConnectedSpace M] |
| 26 | |
| 27 | private theorem noncollapsed_of_rescaling |
| 28 | (K : AncientKappaSolution n M) (G : RicciFlow n M (Iic 0)) |
| 29 | (Q b : ℝ) (hQ : 0 < Q) (hb : b ≤ 0) |
| 30 | (hcal : ∀ s : ℝ, MetricHomothetyCalculus (K.flow.metric (b + s / Q)) |
| 31 | (G.metric s) (Diffeomorph.refl (𝓡 n) M ∞) Q) : |
| 32 | AncientKappaNoncollapsed G K.kappa := by |
| 33 | intro r₀ hr₀ t ht p r hr hrr₀ hcurv |
| 34 | have hq : 0 < Real.sqrt Q := Real.sqrt_pos.mpr hQ |
| 35 | have hr' : 0 < r / Real.sqrt Q := div_pos hr hq |
| 36 | have ht' : b + t / Q ≤ 0 := add_nonpos hb (div_nonpos_of_nonpos_of_nonneg ht hQ.le) |
| 37 | have hrad : (r / Real.sqrt Q) ^ 2 = r ^ 2 / Q := by |
| 38 | rw [div_pow, Real.sq_sqrt hQ.le] |
| 39 | have hball : (K.flow.metric (b + t / Q)).ball p (r / Real.sqrt Q) = |
| 40 | (G.metric t).ball p r := by |
| 41 | have h := (hcal t).ball_image p (r / Real.sqrt Q) |
| 42 | simpa only [Diffeomorph.coe_refl, id_eq, image_id, mul_div_cancel₀ r hq.ne'] using h |
| 43 | have hnorm : ∀ s : ℝ, ∀ x : M, |
| 44 | (G.connection s).curvatureTensorNorm x = |
| 45 | (K.flow.connection (b + s / Q)).curvatureTensorNorm x / Q := by |
| 46 | intro s x |
| 47 | simpa only [Diffeomorph.coe_refl, id_eq] using |
| 48 | (hcal s).curvature_norm_eq (K.flow.connection (b + s / Q)) (G.connection s) x |
| 49 | have hcurv' : ∀ s ∈ Ioc (b + t / Q - (r / Real.sqrt Q) ^ 2) (b + t / Q), |
| 50 | ∀ x ∈ (K.flow.metric (b + t / Q)).ball p (r / Real.sqrt Q), |
| 51 | |(K.flow.connection s).curvatureTensorNorm x| ≤ (r / Real.sqrt Q)⁻¹ ^ 2 := by |
| 52 | intro s hs x hx |
| 53 | have htime : Q * (s - b) ∈ Ioc (t - r ^ 2) t := by |
| 54 | rw [hrad] at hs |
| 55 | constructor |
| 56 | · have := mul_lt_mul_of_pos_left hs.1 hQ |
| 57 | field_simp at this |
| 58 | nlinarith |
| 59 | · have := mul_le_mul_of_nonneg_left hs.2 hQ.le |
| 60 | field_simp at this |
| 61 | nlinarith |
| 62 | have h := hcurv (Q * (s - b)) htime x (hball ▸ hx) |
| 63 | have htime' : b + Q * (s - b) / Q = s := by field_simp; ring |
| 64 | rw [hnorm, htime', abs_div, abs_of_pos hQ] at h |
| 65 | have hbound := (div_le_iff₀ hQ).mp h |
| 66 | have hradius : r⁻¹ ^ 2 * Q = (r / Real.sqrt Q)⁻¹ ^ 2 := by |
| 67 | rw [inv_div, div_pow, Real.sq_sqrt hQ.le] |
| 68 | simp only [div_eq_mul_inv, inv_pow] |
| 69 | ring |
| 70 | exact hradius ▸ hbound |
| 71 | have hvol := K.noncollapsed (r / Real.sqrt Q) hr' (b + t / Q) ht' p |
| 72 | (r / Real.sqrt Q) hr' le_rfl hcurv' |
| 73 | have hvolume : calibratedMetricVolume (G.metric t) ((G.metric t).ball p r) = |
| 74 | ENNReal.ofReal (Real.rpow Q ((n : ℝ) / 2)) * |
| 75 | calibratedMetricVolume (K.flow.metric (b + t / Q)) |
| 76 | ((K.flow.metric (b + t / Q)).ball p (r / Real.sqrt Q)) := by |
| 77 | have h := (hcal t).volume_image |
| 78 | ((K.flow.metric (b + t / Q)).ball p (r / Real.sqrt Q)) |
| 79 | simpa only [Diffeomorph.coe_refl, image_id, hball] using h |
| 80 | have hpow : Real.rpow Q ((n : ℝ) / 2) = (Real.sqrt Q) ^ n := by |
| 81 | rw [Real.sqrt_eq_rpow, ← Real.rpow_natCast, ← Real.rpow_mul hQ.le] |
| 82 | congr 1 |
| 83 | ring |
| 84 | have hscale : Real.rpow Q ((n : ℝ) / 2) * (K.kappa * (r / Real.sqrt Q) ^ n) = |
| 85 | K.kappa * r ^ n := by |
| 86 | rw [hpow, div_pow] |
| 87 | field_simp |
| 88 | rw [hvolume] |
| 89 | calc |
| 90 | ENNReal.ofReal (K.kappa * r ^ n) = |
| 91 | ENNReal.ofReal (Real.rpow Q ((n : ℝ) / 2)) * |
| 92 | ENNReal.ofReal (K.kappa * (r / Real.sqrt Q) ^ n) := by |
| 93 | have hcoeff : 0 ≤ Real.rpow Q ((n : ℝ) / 2) := Real.rpow_nonneg hQ.le _ |
| 94 | rw [← ENNReal.ofReal_mul hcoeff, hscale] |
| 95 | _ ≤ _ := by gcongr |
| 96 | |
| 97 | /-- The M13 rescaling service constructs the same-carrier scalar normalization. -/ |
| 98 | noncomputable def ancientKappaNormalization |
| 99 | (hM13 : GeneralizedParabolicRescalingTheory.{u} n) |
| 100 | (K : AncientKappaSolution n M) (p : M) (b : ℝ) (hb : b ≤ 0) |
| 101 | (hscalar : 0 < (K.flow.connection b).scalarCurvature p) : |
| 102 | AncientKappaNormalization K p b := by |
| 103 | let Q := (K.flow.connection b).scalarCurvature p |
| 104 | have hQ : 0 < Q := hscalar |
| 105 | let I : SpacetimeInterval := ⟨Iic 0, ordConnected_Iic, |
| 106 | ⟨-1, by norm_num, 0, by simp, by norm_num⟩⟩ |
| 107 | let R := Classical.choice (hM13.ordinary_flow M I K.flow Q hQ b) |
| 108 | have hsub : Iic 0 ⊆ (parabolicInterval Q hQ b I).domain := by |
| 109 | intro s hs |
| 110 | rw [mem_parabolicInterval_iff] |
| 111 | exact add_nonpos hb (div_nonpos_of_nonpos_of_nonneg hs hQ.le) |
| 112 | let G := Poincare.Geometry.RicciFlow.Harnack.restrictFlow R.flow hsub |
| 113 | ordConnected_Iic (show (Iic (0 : ℝ)).Nontrivial from I.nontrivial) |
| 114 | have hcal : ∀ s : ℝ, MetricHomothetyCalculus (K.flow.metric (b + s / Q)) |
| 115 | (G.metric s) (Diffeomorph.refl (𝓡 n) M ∞) Q := R.metric_calculus |
| 116 | have htime : ∀ s : ℝ, s ≤ 0 → b + s / Q ≤ 0 := |
| 117 | fun s hs ↦ add_nonpos hb (div_nonpos_of_nonpos_of_nonneg hs hQ.le) |
| 118 | have hnorm : ∀ s : ℝ, ∀ x : M, |
| 119 | (G.connection s).curvatureTensorNorm x = |
| 120 | (K.flow.connection (b + s / Q)).curvatureTensorNorm x / Q := by |
| 121 | intro s x |
| 122 | simpa only [Diffeomorph.coe_refl, id_eq] using |
| 123 | (hcal s).curvature_norm_eq (K.flow.connection (b + s / Q)) (G.connection s) x |
| 124 | have hscal : ∀ s : ℝ, ∀ x : M, |
| 125 | (G.connection s).scalarCurvature x = |
| 126 | (K.flow.connection (b + s / Q)).scalarCurvature x / Q := by |
| 127 | intro s x |
| 128 | simpa only [Diffeomorph.coe_refl, id_eq] using |
| 129 | (hcal s).scalar_eq (K.flow.connection (b + s / Q)) (G.connection s) x |
| 130 | let target : AncientKappaSolution n M := { |
| 131 | flow := G |
| 132 | kappa := K.kappa |
| 133 | kappa_pos := K.kappa_pos |
| 134 | complete := fun s hs ↦ (hcal s).complete_iff.mpr (K.complete _ (htime s hs)) |
| 135 | nonnegative_curvature_operator := by |
| 136 | intro s hs x |
| 137 | simpa only [Diffeomorph.coe_refl, id_eq] using |
| 138 | ((hcal s).nonnegative_operator_iff (K.flow.connection (b + s / Q)) |
| 139 | (G.connection s) x).mpr (K.nonnegative_curvature_operator _ (htime s hs) x) |
| 140 | bounded_curvature := by |
| 141 | intro s hs |
| 142 | obtain ⟨C, hC, hbound⟩ := K.bounded_curvature _ (htime s hs) |
| 143 | refine ⟨C / Q, div_nonneg hC hQ.le, fun x ↦ ?_⟩ |
| 144 | rw [hnorm, abs_div, abs_of_pos hQ] |
| 145 | exact div_le_div_of_nonneg_right (hbound x) hQ.le |
| 146 | nonflat := by |
| 147 | intro s hs |
| 148 | obtain ⟨x, hx⟩ := K.nonflat _ (htime s hs) |
| 149 | exact ⟨x, by rw [hnorm]; exact div_ne_zero hx hQ.ne'⟩ |
| 150 | noncollapsed := noncollapsed_of_rescaling K G Q b hQ hb hcal } |
| 151 | exact { |
| 152 | scale := Q |
| 153 | scale_eq := rfl |
| 154 | scale_pos := hQ |
| 155 | target := target |
| 156 | target_kappa := rfl |
| 157 | metric_eq := R.metric_eq |
| 158 | scalar_eq := fun s _ x ↦ hscal s x |
| 159 | curvature_norm_eq := fun s _ x ↦ hnorm s x |
| 160 | normalized_scalar := by |
| 161 | change (G.connection 0).scalarCurvature p = 1 |
| 162 | rw [hscal, zero_div, add_zero] |
| 163 | exact div_self hQ.ne' } |
| 164 | |
| 165 | end PoincareMT |