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.Selection |
| 2 | |
| 3 | /-! |
| 4 | # Calibrated volume at curvature-selected centers |
| 5 | |
| 6 | The recentering step of Morgan--Tian Corollary 9.62, pp. 223-224, uses |
| 7 | finite-radius Bishop--Gromov comparison on the actual input solution. |
| 8 | It provides the positive volume ratios required by the blow-up argument |
| 9 | for Lemma 9.65, pp. 225-227. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 16 | |
| 17 | namespace PoincareMT |
| 18 | |
| 19 | variable {M : Type} [TopologicalSpace M] |
| 20 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 21 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 22 | [SecondCountableTopology M] [ConnectedSpace M] |
| 23 | |
| 24 | /-- A radius-`r` volume lower bound propagates to every radius at most `3*r` |
| 25 | at any center within `2*r`, with the dimension-three factor `27`. -/ |
| 26 | theorem m23_recentered_volume_lower_bound |
| 27 | (P : M23NormalizedKappaCompactnessPredecessors) (K : AncientKappaSolution 3 M) |
| 28 | (p q : M) {r ν : ℝ} (hr : 0 < r) (hν : 0 ≤ ν) |
| 29 | (hq : q ∈ (K.flow.metric 0).ball p (2 * r)) |
| 30 | (hvolume : ENNReal.ofReal (ν * r ^ 3) ≤ |
| 31 | calibratedMetricVolume (K.flow.metric 0) ((K.flow.metric 0).ball p r)) : |
| 32 | ∀ a : ℝ, 0 < a → a ≤ 3 * r → |
| 33 | ENNReal.ofReal ((ν / 27) * a ^ 3) ≤ |
| 34 | calibratedMetricVolume (K.flow.metric 0) ((K.flow.metric 0).ball q a) := by |
| 35 | let g := K.flow.metric 0 |
| 36 | let := g.toMetricSpace |
| 37 | have hqdist : dist p q < 2 * r := by |
| 38 | rw [← g.toMetricSpace_ball, Metric.mem_ball, dist_comm] at hq |
| 39 | exact hq |
| 40 | have hsubset : g.ball p r ⊆ g.ball q (3 * r) := by |
| 41 | rw [← g.toMetricSpace_ball, ← g.toMetricSpace_ball] |
| 42 | intro y hy |
| 43 | have hpy : dist p y < r := by |
| 44 | rw [dist_comm] |
| 45 | exact Metric.mem_ball.mp hy |
| 46 | rw [Metric.mem_ball, dist_comm] |
| 47 | linarith [dist_triangle q p y, dist_comm q p] |
| 48 | have hlarge : ENNReal.ofReal (ν * r ^ 3) ≤ |
| 49 | calibratedMetricVolume g (g.ball q (3 * r)) := |
| 50 | hvolume.trans (MeasureTheory.measure_mono hsubset) |
| 51 | have hratio : ENNReal.ofReal (ν / 27) ≤ |
| 52 | metricBallVolumeRatio g q ⟨3 * r, by positivity⟩ := by |
| 53 | have h := ENNReal.div_le_div_right hlarge (ENNReal.ofReal (3 * r) ^ 3) |
| 54 | have hcancel : ν * r ^ 3 / (3 * r) ^ 3 = ν / 27 := by |
| 55 | field_simp |
| 56 | ring |
| 57 | rw [← ENNReal.ofReal_pow (by positivity : 0 ≤ 3 * r), |
| 58 | ← ENNReal.ofReal_div_of_pos (by positivity : 0 < (3 * r) ^ 3), hcancel] at h |
| 59 | simpa only [metricBallVolumeRatio, ENNReal.ofReal_pow (by positivity : 0 ≤ 3 * r)] using h |
| 60 | intro a ha har |
| 61 | have hsmall : ENNReal.ofReal (ν / 27) ≤ metricBallVolumeRatio g q ⟨a, ha⟩ := |
| 62 | hratio.trans (P.ratio_antitone M K 0 le_rfl q |
| 63 | (show (⟨a, ha⟩ : PositiveRadius) ≤ ⟨3 * r, by positivity⟩ from har)) |
| 64 | have hden0 : ENNReal.ofReal a ^ 3 ≠ 0 := pow_ne_zero _ (by positivity) |
| 65 | have hdentop : ENNReal.ofReal a ^ 3 ≠ ⊤ := ENNReal.pow_ne_top ENNReal.ofReal_ne_top |
| 66 | have h := (ENNReal.le_div_iff_mul_le (Or.inl hden0) (Or.inl hdentop)).mp hsmall |
| 67 | rw [ENNReal.ofReal_mul (div_nonneg hν (by norm_num : (0 : ℝ) ≤ 27)), |
| 68 | ENNReal.ofReal_pow ha.le] |
| 69 | exact h |
| 70 | |
| 71 | /-- The finite-radius volume-curvature contradiction starts with a selected |
| 72 | ball carrying both its whole-past curvature bound and all smaller positive |
| 73 | volume ratios at the same selected center. -/ |
| 74 | theorem m23_exists_backward_controlled_point_with_volume |
| 75 | (P : M23NormalizedKappaCompactnessPredecessors) (K : AncientKappaSolution 3 M) |
| 76 | (p x : M) {r ν : ℝ} (hr : 0 < r) (hν : 0 ≤ ν) |
| 77 | (hx : x ∈ (K.flow.metric 0).ball p r) |
| 78 | (hvolume : ENNReal.ofReal (ν * r ^ 3) ≤ |
| 79 | calibratedMetricVolume (K.flow.metric 0) ((K.flow.metric 0).ball p r)) : |
| 80 | ∃ q : M, ∃ s : ℝ, q ∈ (K.flow.metric 0).ball p (2 * r) ∧ |
| 81 | 0 < s ∧ s ≤ r ∧ |
| 82 | (K.flow.connection 0).scalarCurvature x ≤ (K.flow.connection 0).scalarCurvature q ∧ |
| 83 | s * Real.sqrt ((K.flow.connection 0).scalarCurvature q) = |
| 84 | r * Real.sqrt ((K.flow.connection 0).scalarCurvature x) / 2 ∧ |
| 85 | (∀ t : ℝ, t ≤ 0 → ∀ y ∈ (K.flow.metric 0).ball q s, |
| 86 | |(K.flow.connection t).curvatureTensorNorm y| ≤ |
| 87 | 4 * (K.flow.connection 0).scalarCurvature q) ∧ |
| 88 | ∀ a : ℝ, 0 < a → a ≤ 3 * r → |
| 89 | ENNReal.ofReal ((ν / 27) * a ^ 3) ≤ |
| 90 | calibratedMetricVolume (K.flow.metric 0) ((K.flow.metric 0).ball q a) := by |
| 91 | obtain ⟨q, s, hq, hs, hsr, hR, hscale, _, _, hbound⟩ := |
| 92 | m23_exists_backward_controlled_point_in_ball P K p x hr hx |
| 93 | exact ⟨q, s, hq, hs, hsr, hR, hscale, hbound, |
| 94 | m23_recentered_volume_lower_bound P K p q hr hν hq hvolume⟩ |
| 95 | |
| 96 | end PoincareMT |