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.MetricComparison |
| 2 | import PoincareLib.Geometry.Riemannian.Curvature.NormBounds |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Volume.MeasureComparison |
| 4 | |
| 5 | /-! |
| 6 | # A terminal volume bound at an earlier reference time |
| 7 | |
| 8 | Actual Ricci-flow metric comparison contains a terminal ball in a larger |
| 9 | ball at every time in the same finite interval. The identity-map instance |
| 10 | of the existing normalized Hausdorff volume comparison transfers a lower |
| 11 | volume bound with a uniform exponential loss. |
| 12 | |
| 13 | This is Morgan--Tian Lemma 3.15, p. 42, used for the reference-time input |
| 14 | of Proposition 5.14, pp. 90-91, and Corollary 11.3 and Claim 11.5, |
| 15 | pp. 269-270. See the independently reviewed terminal-earlier-volume |
| 16 | derivation. The given flow, metric, connection and included endpoints |
| 17 | are retained. Conversion to the raw Hausdorff convention of M07 is a |
| 18 | separate application of the existing calibration theorem. |
| 19 | -/ |
| 20 | |
| 21 | set_option autoImplicit false |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | |
| 24 | open Set |
| 25 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT.M30 |
| 30 | |
| 31 | /-- A terminal ball-volume lower bound holds on a uniformly enlarged ball |
| 32 | at every time of the actual finite flow (Lemma 3.15, p. 42; Proposition |
| 33 | 5.14, pp. 90-91). The volume is normalized Hausdorff volume, including |
| 34 | when it is infinite; completeness and curvature sign are not assumed. -/ |
| 35 | theorem terminal_ball_volume_lower_bound_at_time |
| 36 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 37 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 38 | [IsManifold (𝓡 n) ∞ M] |
| 39 | [T3Space M] [SecondCountableTopology M] |
| 40 | [MeasurableSpace M] [BorelSpace M] |
| 41 | {T B rho v : ℝ} (G : RicciFlow n M (Icc (-T) 0)) |
| 42 | (hT : 0 < T) (p : M) |
| 43 | (hcurv : ∀ t ∈ Icc (-T) 0, ∀ x : M, |
| 44 | (G.connection t).curvatureTensorNorm x ≤ B) |
| 45 | (hvolume : ENNReal.ofReal v ≤ |
| 46 | (G.metric 0).volumeMeasure ((G.metric 0).ball p rho)) : |
| 47 | let L : ℝ := (n : ℝ) ^ 3 * max B 1 |
| 48 | ∀ s ∈ Icc (-T) 0, |
| 49 | (G.metric 0).ball p rho ⊆ |
| 50 | (G.metric s).ball p (Real.exp (L * T) * rho) ∧ |
| 51 | ENNReal.ofReal (Real.exp (-((n : ℝ) * L * T)) * v) ≤ |
| 52 | (G.metric s).volumeMeasure |
| 53 | ((G.metric s).ball p (Real.exp (L * T) * rho)) := by |
| 54 | dsimp only |
| 55 | let L : ℝ := (n : ℝ) ^ 3 * max B 1 |
| 56 | let E : ℝ := Real.exp (L * T) |
| 57 | have hL : 0 ≤ L := mul_nonneg (by positivity) |
| 58 | (zero_le_one.trans (le_max_right B 1)) |
| 59 | have hE : 0 < E := Real.exp_pos _ |
| 60 | have hzero : (0 : ℝ) ∈ Icc (-T) 0 := ⟨by linarith, le_rfl⟩ |
| 61 | have hRic (t : ℝ) (ht : t ∈ Icc (-T) 0) (x : M) |
| 62 | (w : TangentSpace (𝓡 n) x) : |
| 63 | |(G.connection t).ricci x w w| ≤ L * (G.metric t).inner x w w := by |
| 64 | have hQ : 0 ≤ (G.metric t).inner x w w := by |
| 65 | by_cases hw : w = 0 |
| 66 | · subst w; simp |
| 67 | · exact ((G.metric t).pos x w hw).le |
| 68 | have hnorm := (G.connection t).abs_ricci_quadratic_le_curvatureTensorNorm x w |
| 69 | have hdim : Module.finrank ℝ (TangentSpace (𝓡 n) x) = n := |
| 70 | finrank_euclideanSpace_fin |
| 71 | simp only [Fintype.card_fin, hdim] at hnorm |
| 72 | exact hnorm.trans (mul_le_mul_of_nonneg_right |
| 73 | (mul_le_mul_of_nonneg_left ((hcurv t ht x).trans (le_max_left B 1)) |
| 74 | (by positivity)) hQ) |
| 75 | intro s hs |
| 76 | have hdisplacement : |s| ≤ T := by |
| 77 | rw [abs_of_nonpos hs.2] |
| 78 | linarith [hs.1] |
| 79 | have hexp : Real.exp (L * |s|) ≤ E := |
| 80 | Real.exp_le_exp.mpr (mul_le_mul_of_nonneg_left hdisplacement hL) |
| 81 | have hforward (x : M) (w : TangentSpace (𝓡 n) x) : |
| 82 | (G.metric 0).tangentNorm x w ≤ E * (G.metric s).tangentNorm x w := by |
| 83 | have h := G.tangentNorm_le_exp_of_ricci_bound (convex_Icc (-T) 0) |
| 84 | (Subset.refl _) x w L (fun t ht => hRic t ht x w) hs hzero |
| 85 | simp only [zero_sub, abs_neg] at h |
| 86 | exact h.trans (mul_le_mul_of_nonneg_right hexp (Real.sqrt_nonneg _)) |
| 87 | have hbackward (x : M) (w : TangentSpace (𝓡 n) x) : |
| 88 | (G.metric s).tangentNorm x w ≤ E * (G.metric 0).tangentNorm x w := by |
| 89 | have h := G.tangentNorm_le_exp_of_ricci_bound (convex_Icc (-T) 0) |
| 90 | (Subset.refl _) x w L (fun t ht => hRic t ht x w) hzero hs |
| 91 | simp only [sub_zero] at h |
| 92 | exact h.trans (mul_le_mul_of_nonneg_right hexp (Real.sqrt_nonneg _)) |
| 93 | let U := (G.metric 0).ball p rho |
| 94 | have hsubset : U ⊆ (G.metric s).ball p (E * rho) := |
| 95 | (G.metric 0).ball_subset_ball_of_tangentNorm_le (G.metric s) p rho E hE |
| 96 | (fun x _ w => hbackward x w) |
| 97 | refine ⟨hsubset, ?_⟩ |
| 98 | have hU : IsOpen U := by |
| 99 | let : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 100 | ⟨(G.metric 0).toRiemannianMetric⟩ |
| 101 | let : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 102 | (TangentSpace (𝓡 n) : M → Type _) := |
| 103 | ⟨⟨(G.metric 0).inner, (G.metric 0).toContinuousRiemannianMetric.continuous, |
| 104 | fun _ _ _ => rfl⟩⟩ |
| 105 | let : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 106 | change IsOpen {x : M | edist p x < ENNReal.ofReal rho} |
| 107 | exact isOpen_lt (continuous_const.edist continuous_id) continuous_const |
| 108 | have hvol := (G.metric s).volumeMeasure_image_le_of_tangentNorm_le |
| 109 | (G.metric 0) (OpenPartialHomeomorph.refl M) hU (subset_univ U) |
| 110 | contMDiffOn_id hE (by |
| 111 | intro x _ w |
| 112 | change (G.metric 0).tangentNorm x (mfderiv (𝓡 n) (𝓡 n) id x w) ≤ _ |
| 113 | rw [mfderiv_id] |
| 114 | exact hforward x w) |
| 115 | hU.measurableSet (Subset.refl U) |
| 116 | change (G.metric 0).volumeMeasure (id '' U) ≤ _ at hvol |
| 117 | rw [image_id] at hvol |
| 118 | have htransfer := hvolume.trans |
| 119 | (hvol.trans (mul_le_mul_right (MeasureTheory.measure_mono hsubset) _)) |
| 120 | have hpow0 : ENNReal.ofReal E ^ n ≠ 0 := |
| 121 | pow_ne_zero _ (ENNReal.ofReal_ne_zero_iff.mpr hE) |
| 122 | have hpowtop : ENNReal.ofReal E ^ n ≠ ⊤ := |
| 123 | ENNReal.pow_ne_top ENNReal.ofReal_ne_top |
| 124 | have hdivide := (ENNReal.div_le_iff' hpow0 hpowtop).mpr htransfer |
| 125 | rw [← ENNReal.ofReal_pow hE.le, |
| 126 | ← ENNReal.ofReal_div_of_pos (pow_pos hE n)] at hdivide |
| 127 | have hpower : E ^ n = Real.exp ((n : ℝ) * L * T) := by |
| 128 | dsimp only [E] |
| 129 | rw [← Real.exp_nat_mul] |
| 130 | congr 1 |
| 131 | ring |
| 132 | have hquotient : v / E ^ n = Real.exp (-((n : ℝ) * L * T)) * v := by |
| 133 | rw [hpower, div_eq_mul_inv, ← Real.exp_neg] |
| 134 | exact mul_comm _ _ |
| 135 | rwa [hquotient] at hdivide |
| 136 | |
| 137 | end PoincareMT.M30 |