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.FiniteRadius |
| 2 | import PoincareLib.Geometry.RicciFlow.Compactness.Convergence.Volume.Spheres |
| 3 | import PoincareLib.Geometry.Riemannian.Comparison.Volume.Rigidity.MaximalBalls |
| 4 | |
| 5 | /-! |
| 6 | # Half-Euclidean radii at collapsing basepoints |
| 7 | |
| 8 | Unbounded scalar curvature on a fixed source ball forces its calibrated |
| 9 | volume to zero. The Euclidean center density and continuity of complete |
| 10 | ball volumes then select exact half-Euclidean radii tending to zero. |
| 11 | No compactness or noncompactness assumption on the source carriers is added. |
| 12 | |
| 13 | Reference: Morgan--Tian, Lemma 9.65 and Claim 9.66, pp. 225-227; |
| 14 | the direct-basepoint correction in the M23 complete contract review. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | |
| 20 | open Set Filter |
| 21 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | namespace RiemannianMetric |
| 26 | |
| 27 | variable {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 28 | [MeasurableSpace M] [BorelSpace M] [T3Space M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 30 | |
| 31 | /-- A complete ball with sub-Euclidean volume ratio contains a smaller ball |
| 32 | with any prescribed intermediate ratio between it and the center density. -/ |
| 33 | theorem exists_radius_calibrated_volume_eq |
| 34 | (g : RiemannianMetric n M) (hc : MetricComplete g) (p : M) |
| 35 | {r c : ℝ} (hr : 0 < r) (_hcpos : 0 < c) |
| 36 | (hcω : c < euclideanUnitBallVolume n) |
| 37 | (hvolume : calibratedMetricVolume g (g.ball p r) < ENNReal.ofReal (c * r ^ n)) : |
| 38 | ∃ ρ : ℝ, 0 < ρ ∧ ρ < r ∧ |
| 39 | calibratedMetricVolume g (g.ball p ρ) = ENNReal.ofReal (c * ρ ^ n) := by |
| 40 | let f : ℝ → ℝ := fun s => (g.volumeMeasure (g.ball p s)).toReal / s ^ n |
| 41 | have hnear : ∀ᶠ s in 𝓝[>] (0 : ℝ), c < f s := |
| 42 | (g.tendsto_ball_volume_div_pow_at_zero p).eventually (eventually_gt_nhds hcω) |
| 43 | have hevent : ∀ᶠ s in 𝓝[>] (0 : ℝ), 0 < s ∧ s < r ∧ c < f s := by |
| 44 | filter_upwards [self_mem_nhdsWithin, |
| 45 | (eventually_lt_nhds hr).filter_mono nhdsWithin_le_nhds, hnear] with s hs hsr hfs |
| 46 | exact ⟨hs, hsr, hfs⟩ |
| 47 | obtain ⟨s, hs0, hsr, hfs⟩ := hevent.exists |
| 48 | have hfr : f r < c := by |
| 49 | rw [calibratedMetricVolume_eq_volumeMeasure] at hvolume |
| 50 | have hv := (ENNReal.lt_ofReal_iff_toReal_lt |
| 51 | (g.ball_volume_ne_top_of_metricComplete hc p r)).mp hvolume |
| 52 | exact (div_lt_iff₀ (pow_pos hr n)).mpr hv |
| 53 | have hcont : ContinuousOn f (Icc s r) := by |
| 54 | intro a ha |
| 55 | have ha0 : 0 < a := hs0.trans_le ha.1 |
| 56 | exact ((g.continuousAt_ball_volume_toReal_of_metricComplete hc p ha0).div |
| 57 | (continuousAt_id.pow n) (pow_ne_zero n ha0.ne')).continuousWithinAt |
| 58 | obtain ⟨ρ, hρ, heq⟩ := intermediate_value_Icc' hsr.le hcont ⟨hfr.le, hfs.le⟩ |
| 59 | have hρ0 : 0 < ρ := hs0.trans_le hρ.1 |
| 60 | have hρr : ρ < r := lt_of_le_of_ne hρ.2 (by |
| 61 | intro h |
| 62 | exact hfr.ne (h ▸ heq)) |
| 63 | refine ⟨ρ, hρ0, hρr, ?_⟩ |
| 64 | rw [calibratedMetricVolume_eq_volumeMeasure, |
| 65 | ← ENNReal.ofReal_toReal (g.ball_volume_ne_top_of_metricComplete hc p ρ)] |
| 66 | exact congrArg ENNReal.ofReal ((div_eq_iff (pow_ne_zero n hρ0.ne')).mp heq) |
| 67 | |
| 68 | end RiemannianMetric |
| 69 | |
| 70 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.measurableSpace |
| 71 | FlowCarrier.borelSpace FlowCarrier.chartedSpace FlowCarrier.isManifold |
| 72 | FlowCarrier.t2Space FlowCarrier.t3Space FlowCarrier.secondCountable |
| 73 | |
| 74 | local instance baseRadiusCarrierConnected (C : FlowCarrier.{0} 3) : |
| 75 | ConnectedSpace C.carrier := connectedSpace_iff_univ.mpr C.connected |
| 76 | |
| 77 | /-- Failure of a fixed-radius scalar bound collapses the actual calibrated |
| 78 | base-ball volumes along the same chosen sequence. -/ |
| 79 | theorem m23_tendsto_base_ball_volume_zero_of_unbounded_scalar |
| 80 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 81 | (C : ℕ → FlowCarrier.{0} 3) (K : ∀ k, AncientKappaSolution 3 (C k).carrier) |
| 82 | {κ : ℝ} (hκ : 0 < κ) (hkappa : ∀ k, (K k).kappa = κ) |
| 83 | (p x : ∀ k, (C k).carrier) {r : ℝ} (hr : 0 < r) |
| 84 | (hx : ∀ k, x k ∈ ((K k).flow.metric 0).ball (p k) r) |
| 85 | (hscale : Tendsto (fun k => r ^ 2 * ((K k).flow.connection 0).scalarCurvature (x k)) |
| 86 | atTop atTop) : |
| 87 | Tendsto (fun k => calibratedMetricVolume ((K k).flow.metric 0) |
| 88 | (((K k).flow.metric 0).ball (p k) r)) atTop (𝓝 0) := by |
| 89 | have hfinite (k : ℕ) : calibratedMetricVolume ((K k).flow.metric 0) |
| 90 | (((K k).flow.metric 0).ball (p k) r) ≠ ⊤ := by |
| 91 | rw [calibratedMetricVolume_eq_volumeMeasure] |
| 92 | exact ((K k).flow.metric 0).ball_volume_ne_top_of_metricComplete |
| 93 | ((K k).complete 0 le_rfl) (p k) r |
| 94 | apply (ENNReal.tendsto_toReal_zero_iff hfinite).mp |
| 95 | apply tendsto_order.mpr |
| 96 | constructor |
| 97 | · intro a ha |
| 98 | exact Filter.Eventually.of_forall (fun _ => ha.trans_le ENNReal.toReal_nonneg) |
| 99 | · intro ε hε |
| 100 | obtain ⟨A, hA, hbound⟩ := m23_exists_curvature_bound_of_volume_lower_bound |
| 101 | P hκ (div_pos hε (pow_pos hr 3)) |
| 102 | filter_upwards [hscale.eventually_gt_atTop A] with k hk |
| 103 | by_contra hn |
| 104 | have hvol : ENNReal.ofReal ((ε / r ^ 3) * r ^ 3) ≤ |
| 105 | calibratedMetricVolume ((K k).flow.metric 0) |
| 106 | (((K k).flow.metric 0).ball (p k) r) := by |
| 107 | rw [div_mul_cancel₀ ε (pow_ne_zero 3 hr.ne')] |
| 108 | exact (ENNReal.ofReal_le_ofReal (le_of_not_gt hn)).trans_eq |
| 109 | (ENNReal.ofReal_toReal (hfinite k)) |
| 110 | exact hk.not_ge (hbound (C k) (K k) (hkappa k) (p k) (x k) r hr (hx k) hvol) |
| 111 | |
| 112 | /-- Collapsing source balls admit exact half-Euclidean smaller radii after |
| 113 | one finite shift, and those radii tend to zero. -/ |
| 114 | theorem m23_exists_half_euclidean_radii_of_volume_collapse |
| 115 | (C : ℕ → FlowCarrier.{0} 3) (K : ∀ k, AncientKappaSolution 3 (C k).carrier) |
| 116 | (p : ∀ k, (C k).carrier) {r : ℝ} (hr : 0 < r) |
| 117 | (hvolume : Tendsto (fun k => calibratedMetricVolume ((K k).flow.metric 0) |
| 118 | (((K k).flow.metric 0).ball (p k) r)) atTop (𝓝 0)) : |
| 119 | ∃ N : ℕ, ∃ ρ : ℕ → ℝ, |
| 120 | (∀ k, 0 < ρ k ∧ ρ k < r ∧ |
| 121 | calibratedMetricVolume ((K (k + N)).flow.metric 0) |
| 122 | (((K (k + N)).flow.metric 0).ball (p (k + N)) (ρ k)) = |
| 123 | ENNReal.ofReal ((RiemannianMetric.euclideanUnitBallVolume 3 / 2) * ρ k ^ 3)) ∧ |
| 124 | Tendsto ρ atTop (𝓝 0) := by |
| 125 | let c : ℝ := RiemannianMetric.euclideanUnitBallVolume 3 / 2 |
| 126 | have hc : 0 < c := half_pos (RiemannianMetric.euclideanUnitBallVolume_pos 3) |
| 127 | have hcω : c < RiemannianMetric.euclideanUnitBallVolume 3 := |
| 128 | half_lt_self (RiemannianMetric.euclideanUnitBallVolume_pos 3) |
| 129 | obtain ⟨N, hN⟩ := eventually_atTop.mp |
| 130 | (hvolume.eventually (eventually_lt_nhds |
| 131 | (ENNReal.ofReal_pos.mpr (mul_pos hc (pow_pos hr 3))))) |
| 132 | have hexists (k : ℕ) : ∃ ρ : ℝ, 0 < ρ ∧ ρ < r ∧ |
| 133 | calibratedMetricVolume ((K (k + N)).flow.metric 0) |
| 134 | (((K (k + N)).flow.metric 0).ball (p (k + N)) ρ) = |
| 135 | ENNReal.ofReal (c * ρ ^ 3) := |
| 136 | ((K (k + N)).flow.metric 0).exists_radius_calibrated_volume_eq |
| 137 | ((K (k + N)).complete 0 le_rfl) (p (k + N)) hr hc hcω |
| 138 | (hN (k + N) (Nat.le_add_left N k)) |
| 139 | choose ρ hρ0 hρr hρvol using hexists |
| 140 | refine ⟨N, ρ, fun k => ⟨hρ0 k, hρr k, hρvol k⟩, ?_⟩ |
| 141 | have htail := hvolume.comp (tendsto_add_atTop_nat N) |
| 142 | apply tendsto_order.mpr |
| 143 | constructor |
| 144 | · intro a ha |
| 145 | exact Filter.Eventually.of_forall (fun k => ha.trans (hρ0 k)) |
| 146 | · intro ε hε |
| 147 | filter_upwards [htail.eventually (eventually_lt_nhds |
| 148 | (ENNReal.ofReal_pos.mpr (mul_pos hc (pow_pos hε 3))))] with k hk |
| 149 | by_contra hn |
| 150 | have hle : ENNReal.ofReal (c * ε ^ 3) ≤ ENNReal.ofReal (c * ρ k ^ 3) := |
| 151 | ENNReal.ofReal_le_ofReal (mul_le_mul_of_nonneg_left |
| 152 | (pow_le_pow_left₀ hε.le (le_of_not_gt hn) 3) hc.le) |
| 153 | rw [← hρvol k] at hle |
| 154 | have hsub : ((K (k + N)).flow.metric 0).ball (p (k + N)) (ρ k) ⊆ |
| 155 | ((K (k + N)).flow.metric 0).ball (p (k + N)) r := by |
| 156 | intro x hx |
| 157 | exact lt_of_lt_of_le hx (ENNReal.ofReal_le_ofReal (hρr k).le) |
| 158 | exact hk.not_ge (hle.trans (MeasureTheory.measure_mono hsub)) |
| 159 | |
| 160 | namespace NormalizedKappaSolutionSequence |
| 161 | |
| 162 | /-- Failure of the frozen local estimate selects actual normalized source |
| 163 | terms and shrinking half-Euclidean radii at their original basepoints. -/ |
| 164 | theorem exists_half_euclidean_radii_of_not_localCurvatureEstimate |
| 165 | {κ : ℝ} (S : NormalizedKappaSolutionSequence κ) |
| 166 | (P : M23NormalizedKappaCompactnessPredecessors) |
| 167 | (hn : ¬ M23LocalCurvatureEstimate S) : |
| 168 | ∃ (j : ℕ → ℕ) (ρ : ℕ → ℝ), |
| 169 | (∀ k, 0 < ρ k ∧ |
| 170 | calibratedMetricVolume ((S.term (j k)).flow.flow.metric 0) |
| 171 | (((S.term (j k)).flow.flow.metric 0).ball (S.term (j k)).base (ρ k)) = |
| 172 | ENNReal.ofReal ((RiemannianMetric.euclideanUnitBallVolume 3 / 2) * ρ k ^ 3)) ∧ |
| 173 | Tendsto ρ atTop (𝓝 0) := by |
| 174 | classical |
| 175 | have hbad : ∃ r : ℝ, 0 < r ∧ ∀ A : ℝ, 0 ≤ A → |
| 176 | ∃ k : ℕ, ∃ x : (S.term k).carrier.carrier, |
| 177 | x ∈ ((S.term k).flow.flow.metric 0).ball (S.term k).base r ∧ |
| 178 | A < ((S.term k).flow.flow.connection 0).scalarCurvature x := by |
| 179 | simpa only [M23LocalCurvatureEstimate, FlowCarrier.metricBall, not_forall, not_exists, not_and, |
| 180 | not_le, exists_prop] using hn |
| 181 | obtain ⟨r, hr, hbad⟩ := hbad |
| 182 | choose j x hx hscalar using fun k : ℕ => hbad ((k : ℝ) / r ^ 2) (by positivity) |
| 183 | have hscale : Tendsto |
| 184 | (fun k => r ^ 2 * ((S.term (j k)).flow.flow.connection 0).scalarCurvature (x k)) |
| 185 | atTop atTop := by |
| 186 | apply tendsto_atTop_mono _ tendsto_natCast_atTop_atTop |
| 187 | intro k |
| 188 | have h := (div_lt_iff₀ (pow_pos hr 2)).mp (hscalar k) |
| 189 | nlinarith |
| 190 | have hvolume := m23_tendsto_base_ball_volume_zero_of_unbounded_scalar P |
| 191 | (fun k => (S.term (j k)).carrier) (fun k => (S.term (j k)).flow) |
| 192 | S.kappa_pos (fun k => (S.term (j k)).kappa_eq) |
| 193 | (fun k => (S.term (j k)).base) x hr hx hscale |
| 194 | obtain ⟨N, ρ, hρ, hρlim⟩ := m23_exists_half_euclidean_radii_of_volume_collapse |
| 195 | (fun k => (S.term (j k)).carrier) (fun k => (S.term (j k)).flow) |
| 196 | (fun k => (S.term (j k)).base) hr hvolume |
| 197 | exact ⟨fun k => j (k + N), ρ, fun k => ⟨(hρ k).1, (hρ k).2.2⟩, hρlim⟩ |
| 198 | |
| 199 | end NormalizedKappaSolutionSequence |
| 200 | |
| 201 | end PoincareMT |