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.LocalBounds.Sequence |
| 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 | |
| 7 | /-! |
| 8 | # Positive volume ratios on an interior reference slice |
| 9 | |
| 10 | Local metric comparison on a closed ancient time interval moves terminal |
| 11 | volume lower bounds to an earlier slice, with a fixed exponential loss. |
| 12 | This avoids requiring an extension of the source flow beyond time zero. |
| 13 | |
| 14 | Reference: Morgan--Tian Proposition 5.14, pp. 90-91, applied in the |
| 15 | volume-curvature argument of Corollary 9.62, pp. 223-224. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | variable {M : Type} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 29 | [SecondCountableTopology M] [ConnectedSpace M] |
| 30 | |
| 31 | /-- A controlled terminal ball transfers its volume to a larger earlier |
| 32 | ball even when zero is the included endpoint of the flow's time domain. -/ |
| 33 | theorem m23_terminal_ball_volume_le_exp_mul_earlier_ball |
| 34 | (F : RicciFlow 3 M (Iic 0)) (p : M) {δ B r : ℝ} (hδ : 0 ≤ δ) |
| 35 | (hbound : ∀ t ∈ Icc (-δ) 0, ∀ x ∈ (F.metric 0).ball p r, |
| 36 | (F.connection t).curvatureTensorNorm x ≤ B) : |
| 37 | (F.metric 0).volumeMeasure ((F.metric 0).ball p r) ≤ |
| 38 | ENNReal.ofReal (Real.exp (27 * B * δ)) ^ 3 * |
| 39 | (F.metric (-δ)).volumeMeasure |
| 40 | ((F.metric (-δ)).ball p (Real.exp (27 * B * δ) * r)) := by |
| 41 | let U := (F.metric 0).ball p r |
| 42 | let c := Real.exp (27 * B * δ) |
| 43 | have hc : 0 < c := Real.exp_pos _ |
| 44 | have hzero : (0 : ℝ) ∈ Icc (-δ) 0 := ⟨by linarith, le_rfl⟩ |
| 45 | have hearly : -δ ∈ Icc (-δ) 0 := ⟨le_rfl, neg_nonpos.mpr hδ⟩ |
| 46 | have hRic (t : ℝ) (ht : t ∈ Icc (-δ) 0) (x : M) (hx : x ∈ U) |
| 47 | (v : TangentSpace (𝓡 3) x) : |
| 48 | |(F.connection t).ricci x v v| ≤ (27 * B) * (F.metric t).inner x v v := by |
| 49 | have h := (F.connection t).abs_ricci_quadratic_le_curvatureTensorNorm x v |
| 50 | have hv : 0 ≤ (F.metric t).inner x v v := by |
| 51 | by_cases hv : v = 0 |
| 52 | · subst v; simp |
| 53 | · exact ((F.metric t).pos x v hv).le |
| 54 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 3) x) = 3 := finrank_euclideanSpace_fin |
| 55 | simp only [Fintype.card_fin, hdim] at h |
| 56 | norm_num at h |
| 57 | exact h.trans (mul_le_mul_of_nonneg_right |
| 58 | (mul_le_mul_of_nonneg_left (hbound t ht x hx) (by norm_num)) hv) |
| 59 | have hforward (x : M) (hx : x ∈ U) (v : TangentSpace (𝓡 3) x) : |
| 60 | (F.metric 0).tangentNorm x v ≤ c * (F.metric (-δ)).tangentNorm x v := by |
| 61 | simpa only [zero_sub, abs_neg, abs_of_nonneg hδ] using |
| 62 | F.tangentNorm_le_exp_of_ricci_bound (convex_Icc (-δ) 0) (fun _ ht ↦ ht.2) |
| 63 | x v (27 * B) (fun t ht ↦ hRic t ht x hx v) hearly hzero |
| 64 | have hbackward (x : M) (hx : x ∈ U) (v : TangentSpace (𝓡 3) x) : |
| 65 | (F.metric (-δ)).tangentNorm x v ≤ c * (F.metric 0).tangentNorm x v := by |
| 66 | simpa only [sub_zero, abs_neg, abs_of_nonneg hδ] using |
| 67 | F.tangentNorm_le_exp_of_ricci_bound (convex_Icc (-δ) 0) (fun _ ht ↦ ht.2) |
| 68 | x v (27 * B) (fun t ht ↦ hRic t ht x hx v) hzero hearly |
| 69 | have hsubset : U ⊆ (F.metric (-δ)).ball p (c * r) := |
| 70 | (F.metric 0).ball_subset_ball_of_tangentNorm_le (F.metric (-δ)) p r c hc hbackward |
| 71 | have hU : IsOpen U := by |
| 72 | let := (F.metric 0).toMetricSpace |
| 73 | rw [show U = Metric.ball p r from ((F.metric 0).toMetricSpace_ball p r).symm] |
| 74 | exact Metric.isOpen_ball |
| 75 | have hvol := (F.metric (-δ)).volumeMeasure_image_le_of_tangentNorm_le |
| 76 | (F.metric 0) (OpenPartialHomeomorph.refl M) hU (subset_univ U) |
| 77 | contMDiffOn_id hc (by |
| 78 | intro x hx v |
| 79 | change (F.metric 0).tangentNorm x (mfderiv (𝓡 3) (𝓡 3) id x v) ≤ _ |
| 80 | rw [mfderiv_id] |
| 81 | exact hforward x hx v) |
| 82 | hU.measurableSet (Subset.refl U) |
| 83 | change (F.metric 0).volumeMeasure (id '' U) ≤ _ at hvol |
| 84 | rw [image_id] at hvol |
| 85 | exact hvol.trans (mul_le_mul_right (MeasureTheory.measure_mono hsubset) _) |
| 86 | |
| 87 | namespace NormalizedKappaSolutionSequence |
| 88 | |
| 89 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 90 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 91 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 92 | |
| 93 | local instance (C : FlowCarrier 3) : ConnectedSpace C.carrier := |
| 94 | connectedSpace_iff_univ.mpr C.connected |
| 95 | |
| 96 | variable {kappa : ℝ} (S : NormalizedKappaSolutionSequence kappa) |
| 97 | |
| 98 | /-- Positive terminal volume ratios persist on each fixed earlier slice. |
| 99 | The loss depends only on the uniform source curvature bound and the time |
| 100 | displacement, never on the ball radius or the sequence index. -/ |
| 101 | theorem eventually_earlier_ball_volume_lower_bound |
| 102 | {B ν δ : ℝ} (hδ : 0 ≤ δ) |
| 103 | (hbound : ∀ r : ℝ, 0 < r → ∀ᶠ k in atTop, |
| 104 | ∀ t : ℝ, t ≤ 0 → ∀ x ∈ ((S.term k).flow.flow.metric 0).ball (S.term k).base r, |
| 105 | |((S.term k).flow.flow.connection t).curvatureTensorNorm x| ≤ B) |
| 106 | (hvolume : ∀ r : ℝ, 0 < r → ∀ᶠ k in atTop, |
| 107 | ENNReal.ofReal (ν * r ^ 3) ≤ calibratedMetricVolume ((S.term k).flow.flow.metric 0) |
| 108 | (((S.term k).flow.flow.metric 0).ball (S.term k).base r)) : |
| 109 | ∀ r : ℝ, 0 < r → ∀ᶠ k in atTop, |
| 110 | ENNReal.ofReal ((ν / Real.exp (27 * B * δ) ^ 6) * r ^ 3) ≤ |
| 111 | calibratedMetricVolume ((S.term k).flow.flow.metric (-δ)) |
| 112 | (((S.term k).flow.flow.metric (-δ)).ball (S.term k).base r) := by |
| 113 | intro r hr |
| 114 | let c := Real.exp (27 * B * δ) |
| 115 | have hc : 0 < c := Real.exp_pos _ |
| 116 | have hrc : 0 < r / c := div_pos hr hc |
| 117 | filter_upwards [hbound (r / c) hrc, hvolume (r / c) hrc] with k hk hv |
| 118 | have htransfer := m23_terminal_ball_volume_le_exp_mul_earlier_ball |
| 119 | (S.term k).flow.flow (S.term k).base hδ |
| 120 | (r := r / c) (B := B) (fun t ht x hx ↦ (le_abs_self _).trans (hk t ht.2 x hx)) |
| 121 | change ((S.term k).flow.flow.metric 0).volumeMeasure |
| 122 | (((S.term k).flow.flow.metric 0).ball (S.term k).base (r / c)) ≤ |
| 123 | ENNReal.ofReal c ^ 3 * ((S.term k).flow.flow.metric (-δ)).volumeMeasure |
| 124 | (((S.term k).flow.flow.metric (-δ)).ball (S.term k).base (c * (r / c))) at htransfer |
| 125 | rw [mul_div_cancel₀ r hc.ne', ← calibratedMetricVolume_eq_volumeMeasure, |
| 126 | ← calibratedMetricVolume_eq_volumeMeasure] at htransfer |
| 127 | have hpow0 : ENNReal.ofReal c ^ 3 ≠ 0 := pow_ne_zero _ (by positivity) |
| 128 | have hpowtop : ENNReal.ofReal c ^ 3 ≠ ⊤ := ENNReal.pow_ne_top ENNReal.ofReal_ne_top |
| 129 | have hdiv := (ENNReal.div_le_iff' hpow0 hpowtop).mpr (hv.trans htransfer) |
| 130 | rw [← ENNReal.ofReal_pow hc.le, |
| 131 | ← ENNReal.ofReal_div_of_pos (pow_pos hc 3)] at hdiv |
| 132 | have heq : ν * (r / c) ^ 3 / c ^ 3 = (ν / c ^ 6) * r ^ 3 := by |
| 133 | field_simp |
| 134 | rw [heq] at hdiv |
| 135 | exact hdiv |
| 136 | |
| 137 | end NormalizedKappaSolutionSequence |
| 138 | |
| 139 | end PoincareMT |