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.Statement |
| 2 | import PoincareLib.Geometry.RicciFlow.MetricComparison |
| 3 | import PoincareLib.Geometry.Riemannian.Curvature.NormBounds |
| 4 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Volume.MeasureComparison |
| 5 | import PoincareLib.Geometry.RicciFlow.AncientKappa.Asymptotic.Compactness.Calibration |
| 6 | import PoincareLib.Geometry.Riemannian.Comparison.Volume.Model |
| 7 | import PoincareLib.Geometry.Riemannian.Compactness.IntrinsicMetric |
| 8 | |
| 9 | /-! |
| 10 | # Sub-Euclidean volume on a uniform earlier slice |
| 11 | |
| 12 | Local curvature control compares volumes on the fixed terminal ball. Ancient |
| 13 | ball monotonicity places the earlier unit ball inside that region. A uniform |
| 14 | small time displacement retains a strict gap below Euclidean ball volume. |
| 15 | |
| 16 | Reference: Morgan--Tian, Proposition 5.14 and Lemma 9.65, pp. 90-91, 225-227. |
| 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 | variable {M : Type} [TopologicalSpace M] |
| 28 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 29 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 30 | [SecondCountableTopology M] [ConnectedSpace M] |
| 31 | |
| 32 | /-- Local control on a terminal ball bounds the volume of the same-radius |
| 33 | earlier ball. No terminal extension of the flow is used. -/ |
| 34 | theorem m23_earlier_ball_volume_le_exp_mul_terminal_ball |
| 35 | (P : M23NormalizedKappaCompactnessPredecessors) (K : AncientKappaSolution 3 M) |
| 36 | (p : M) {δ B r : ℝ} (hδ : 0 ≤ δ) |
| 37 | (hbound : ∀ t ∈ Icc (-δ) 0, ∀ x ∈ (K.flow.metric 0).ball p r, |
| 38 | (K.flow.connection t).curvatureTensorNorm x ≤ B) : |
| 39 | calibratedMetricVolume (K.flow.metric (-δ)) ((K.flow.metric (-δ)).ball p r) ≤ |
| 40 | ENNReal.ofReal (Real.exp (27 * B * δ)) ^ 3 * |
| 41 | calibratedMetricVolume (K.flow.metric 0) ((K.flow.metric 0).ball p r) := by |
| 42 | let U := (K.flow.metric 0).ball p r |
| 43 | let c := Real.exp (27 * B * δ) |
| 44 | have hc : 0 < c := Real.exp_pos _ |
| 45 | have hzero : (0 : ℝ) ∈ Icc (-δ) 0 := ⟨by linarith, le_rfl⟩ |
| 46 | have hearly : -δ ∈ Icc (-δ) 0 := ⟨le_rfl, neg_nonpos.mpr hδ⟩ |
| 47 | have hRic (t : ℝ) (ht : t ∈ Icc (-δ) 0) (x : M) (hx : x ∈ U) |
| 48 | (v : TangentSpace (𝓡 3) x) : |
| 49 | |(K.flow.connection t).ricci x v v| ≤ (27 * B) * (K.flow.metric t).inner x v v := by |
| 50 | have h := (K.flow.connection t).abs_ricci_quadratic_le_curvatureTensorNorm x v |
| 51 | have hv : 0 ≤ (K.flow.metric t).inner x v v := by |
| 52 | by_cases hv : v = 0 |
| 53 | · subst v; simp |
| 54 | · exact ((K.flow.metric t).pos x v hv).le |
| 55 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 3) x) = 3 := finrank_euclideanSpace_fin |
| 56 | simp only [Fintype.card_fin, hdim] at h |
| 57 | norm_num at h |
| 58 | exact h.trans (mul_le_mul_of_nonneg_right |
| 59 | (mul_le_mul_of_nonneg_left (hbound t ht x hx) (by norm_num)) hv) |
| 60 | have hbackward (x : M) (hx : x ∈ U) (v : TangentSpace (𝓡 3) x) : |
| 61 | (K.flow.metric (-δ)).tangentNorm x v ≤ c * (K.flow.metric 0).tangentNorm x v := by |
| 62 | simpa only [sub_zero, abs_neg, abs_of_nonneg hδ] using |
| 63 | K.flow.tangentNorm_le_exp_of_ricci_bound (convex_Icc (-δ) 0) (fun _ ht => ht.2) |
| 64 | x v (27 * B) (fun t ht => hRic t ht x hx v) hzero hearly |
| 65 | have hU : IsOpen U := by |
| 66 | let := (K.flow.metric 0).toMetricSpace |
| 67 | rw [show U = Metric.ball p r from ((K.flow.metric 0).toMetricSpace_ball p r).symm] |
| 68 | exact Metric.isOpen_ball |
| 69 | have hvol := (K.flow.metric 0).volumeMeasure_image_le_of_tangentNorm_le |
| 70 | (K.flow.metric (-δ)) (OpenPartialHomeomorph.refl M) hU (subset_univ U) |
| 71 | contMDiffOn_id hc (by |
| 72 | intro x hx v |
| 73 | change (K.flow.metric (-δ)).tangentNorm x (mfderiv (𝓡 3) (𝓡 3) id x v) ≤ _ |
| 74 | rw [mfderiv_id] |
| 75 | exact hbackward x hx v) |
| 76 | hU.measurableSet (Subset.refl U) |
| 77 | change (K.flow.metric (-δ)).volumeMeasure (id '' U) ≤ _ at hvol |
| 78 | rw [image_id] at hvol |
| 79 | rw [calibratedMetricVolume_eq_volumeMeasure, calibratedMetricVolume_eq_volumeMeasure] |
| 80 | exact (measure_mono (P.ball_monotone M K (-δ) 0 (neg_nonpos.mpr hδ) le_rfl p r)).trans hvol |
| 81 | |
| 82 | private theorem exists_small_time_volume_inflation {B : ℝ} (hB : 0 ≤ B) : |
| 83 | ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ Real.exp (27 * B * δ) ^ 3 ≤ 3 / 2 := by |
| 84 | have hlog : 0 < Real.log (3 / 2 : ℝ) := Real.log_pos (by norm_num) |
| 85 | let δ : ℝ := min (1 / 2) (Real.log (3 / 2) / (81 * (B + 1))) |
| 86 | have hδ : 0 < δ := by dsimp only [δ]; positivity |
| 87 | have hδ1 : δ < 1 := lt_of_le_of_lt (min_le_left _ _) (by norm_num) |
| 88 | have hproduct : δ * (81 * (B + 1)) ≤ Real.log (3 / 2) := |
| 89 | (le_div_iff₀ (by positivity : 0 < 81 * (B + 1))).mp (min_le_right _ _) |
| 90 | have hexponent : 81 * B * δ ≤ Real.log (3 / 2) := by nlinarith |
| 91 | refine ⟨δ, hδ, hδ1, ?_⟩ |
| 92 | calc |
| 93 | Real.exp (27 * B * δ) ^ 3 = Real.exp (81 * B * δ) := by |
| 94 | rw [← Real.exp_nat_mul] |
| 95 | congr 1 |
| 96 | ring |
| 97 | _ ≤ Real.exp (Real.log (3 / 2)) := Real.exp_le_exp.mpr hexponent |
| 98 | _ = 3 / 2 := Real.exp_log (by norm_num) |
| 99 | |
| 100 | namespace AncientKappaSequence |
| 101 | |
| 102 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 103 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 104 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 105 | |
| 106 | local instance earlierVolumeCarrierConnected (D : FlowCarrier 3) : ConnectedSpace D.carrier := |
| 107 | connectedSpace_iff_univ.mpr D.connected |
| 108 | |
| 109 | variable (C : ℕ → FlowCarrier.{0} 3) |
| 110 | (K : ∀ k, AncientKappaSolution 3 (C k).carrier) (p : ∀ k, (C k).carrier) |
| 111 | |
| 112 | /-- A uniform whole-past unit-ball curvature bound retains a uniform volume |
| 113 | upper bound on one earlier slice, with inflation at most three halves. -/ |
| 114 | theorem exists_earlier_unit_ball_volume_upper_bound |
| 115 | (P : M23NormalizedKappaCompactnessPredecessors) {B ν : ℝ} (hB : 0 ≤ B) |
| 116 | (hbound : ∀ k t, t ≤ 0 → ∀ x ∈ ((K k).flow.metric 0).ball (p k) 1, |
| 117 | |((K k).flow.connection t).curvatureTensorNorm x| ≤ B) |
| 118 | (hvolume : ∀ k, calibratedMetricVolume ((K k).flow.metric 0) |
| 119 | (((K k).flow.metric 0).ball (p k) 1) ≤ ENNReal.ofReal ν) : |
| 120 | ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ ∀ k, |
| 121 | calibratedMetricVolume ((K k).flow.metric (-δ)) |
| 122 | (((K k).flow.metric (-δ)).ball (p k) 1) ≤ ENNReal.ofReal ((3 / 2) * ν) := by |
| 123 | obtain ⟨δ, hδ, hδ1, hfactor⟩ := exists_small_time_volume_inflation hB |
| 124 | refine ⟨δ, hδ, hδ1, fun k => ?_⟩ |
| 125 | have htransfer := m23_earlier_ball_volume_le_exp_mul_terminal_ball P (K k) (p k) hδ.le |
| 126 | (r := 1) (B := B) (fun t ht x hx => (le_abs_self _).trans (hbound k t ht.2 x hx)) |
| 127 | have hfactor' : ENNReal.ofReal (Real.exp (27 * B * δ)) ^ 3 ≤ ENNReal.ofReal (3 / 2 : ℝ) := by |
| 128 | rw [← ENNReal.ofReal_pow (Real.exp_nonneg _)] |
| 129 | exact ENNReal.ofReal_le_ofReal hfactor |
| 130 | apply htransfer.trans |
| 131 | calc |
| 132 | _ ≤ ENNReal.ofReal (3 / 2 : ℝ) * ENNReal.ofReal ν := mul_le_mul' hfactor' (hvolume k) |
| 133 | _ = ENNReal.ofReal ((3 / 2) * ν) := (ENNReal.ofReal_mul (by norm_num)).symm |
| 134 | |
| 135 | /-- Exact half-Euclidean terminal unit volume remains at most three quarters |
| 136 | of Euclidean unit volume on a uniform earlier slice. -/ |
| 137 | theorem exists_earlier_half_euclidean_unit_ball_volume_bound |
| 138 | (P : M23NormalizedKappaCompactnessPredecessors) {B : ℝ} (hB : 0 ≤ B) |
| 139 | (hbound : ∀ k t, t ≤ 0 → ∀ x ∈ ((K k).flow.metric 0).ball (p k) 1, |
| 140 | |((K k).flow.connection t).curvatureTensorNorm x| ≤ B) |
| 141 | (hvolume : ∀ k, calibratedMetricVolume ((K k).flow.metric 0) |
| 142 | (((K k).flow.metric 0).ball (p k) 1) = |
| 143 | ENNReal.ofReal (RiemannianMetric.euclideanUnitBallVolume 3 / 2)) : |
| 144 | ∃ δ : ℝ, 0 < δ ∧ δ < 1 ∧ ∀ k, |
| 145 | calibratedMetricVolume ((K k).flow.metric (-δ)) |
| 146 | (((K k).flow.metric (-δ)).ball (p k) 1) ≤ |
| 147 | ENNReal.ofReal ((3 / 4) * RiemannianMetric.euclideanUnitBallVolume 3) := by |
| 148 | obtain ⟨δ, hδ, hδ1, hvol⟩ := exists_earlier_unit_ball_volume_upper_bound |
| 149 | C K p P hB hbound (fun k => (hvolume k).le) |
| 150 | refine ⟨δ, hδ, hδ1, fun k => ?_⟩ |
| 151 | convert hvol k using 1 |
| 152 | congr 1 |
| 153 | ring |
| 154 | |
| 155 | end AncientKappaSequence |
| 156 | end PoincareMT |