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.Surgery.Volume.LossData |
| 2 | import Mathlib.Topology.Order.Compact |
| 3 | |
| 4 | /-! |
| 5 | Adapted from Mapher `PoincareMT/Proofs/M52/Volume.lean` at |
| 6 | `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. Declaration bodies are retained; |
| 7 | see `references/ricci-flow/mapher/surgery-adapters-port.json`. |
| 8 | -/ |
| 9 | |
| 10 | /-! |
| 11 | # M52 volume consequences on the actual raw flow |
| 12 | |
| 13 | These are checked applications of M49's selected certificate. Each helper |
| 14 | keeps the same flow, event losses and scalar volume evolution estimate. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open scoped Manifold ContDiff Bundle ENNReal Topology |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT |
| 24 | |
| 25 | variable {F : SurgeryFlowData.{u}} {C : RepairedVolumeLossControls F} |
| 26 | |
| 27 | /-- Compact-time upper volume bounds from M49's ordinary/event evolution and |
| 28 | finite initial volume. Source: Lemma 17.12, Morgan--Tian, pp. 410--411. -/ |
| 29 | theorem m52VolumeBoundOnCompacts (V : RepairedVolumeLossData F C) |
| 30 | (Kset : Set ℝ) (hK : IsCompact Kset) : |
| 31 | ∃ B : ℝ≥0∞, B ≠ ⊤ ∧ ∀ t ∈ F.time_domain ∩ Kset, |
| 32 | calibratedMetricVolume (F.metric t) Set.univ ≤ B := by |
| 33 | obtain ⟨H, hH⟩ := hK.bddAbove |
| 34 | refine ⟨ENNReal.ofReal (Real.exp (6 * H)) * |
| 35 | calibratedMetricVolume (F.metric 0) Set.univ, |
| 36 | ENNReal.mul_ne_top ENNReal.ofReal_ne_top V.initial_volume_ne_top, ?_⟩ |
| 37 | intro t ht |
| 38 | have hgrowth := V.volume_growth 0 t F.zero_mem ht.1 |
| 39 | (F.time_domain_nonnegative ht.1) |
| 40 | simp only [sub_zero] at hgrowth |
| 41 | refine hgrowth.trans (mul_le_mul_left ?_ _) |
| 42 | exact ENNReal.ofReal_le_ofReal (Real.exp_le_exp.mpr |
| 43 | (mul_le_mul_of_nonneg_left (hH ht.2) (by norm_num))) |
| 44 | |
| 45 | /-- Use the same selected losses on a compact time set. Only cap events |
| 46 | receive the positive uniform bound; a selected zero requires cap count zero. |
| 47 | Source: the corrected Lemma 17.12 loss argument, pp. 410--411. -/ |
| 48 | theorem m52VolumeLossOnCompacts (V : RepairedVolumeLossData F C) |
| 49 | (Kset : Set ℝ) (hK : IsCompact Kset) : |
| 50 | ∃ loss : ∀ (T : ℝ) (_hT : T ∈ F.surgery_times) |
| 51 | [Nonempty (F.slice T).carrier], ℝ≥0∞, |
| 52 | ∃ sigma : ℝ, 0 < sigma ∧ |
| 53 | ∀ T hT [Nonempty (F.slice T).carrier], T ∈ Kset → |
| 54 | (calibratedMetricVolume (F.metric T) Set.univ + loss T hT ≤ |
| 55 | calibratedMetricVolume (F.event T hT).limit_metric Set.univ ∧ |
| 56 | ((loss T hT ≠ 0 ∧ |
| 57 | loss T hT ≤ calibratedMetricVolume (F.event T hT).limit_metric Set.univ) ∨ |
| 58 | (loss T hT = 0 ∧ (F.event T hT).cap_count = 0)) ∧ |
| 59 | (0 < (F.event T hT).cap_count → ENNReal.ofReal sigma ≤ loss T hT)) := by |
| 60 | obtain ⟨H, hH⟩ := hK.bddAbove |
| 61 | obtain ⟨sigma, hpos, hbound⟩ := V.horn_loss_lower_bound (max 0 H) (le_max_left _ _) |
| 62 | refine ⟨fun T hT => (V.event_loss T hT).loss, sigma, hpos, ?_⟩ |
| 63 | intro T hT hN hTK |
| 64 | let W := V.event_loss T hT |
| 65 | refine ⟨W.terminal_volume_drop, ?_, ?_⟩ |
| 66 | · rcases W.event_case with ⟨i, hpositive, _⟩ | ⟨hcap, hzero, _⟩ |
| 67 | · exact Or.inl ⟨ne_of_gt hpositive, |
| 68 | (le_add_left (le_refl W.loss)).trans W.terminal_volume_drop⟩ |
| 69 | · exact Or.inr ⟨hzero, hcap⟩ |
| 70 | · intro hcap |
| 71 | exact (hbound T hT |
| 72 | ⟨F.time_domain_nonnegative (F.surgery_times_subset hT), |
| 73 | (hH hTK).trans (le_max_right _ _)⟩ hcap).1 |
| 74 | |
| 75 | /-- Convert M49's horizon component count into M52's compact-set form. |
| 76 | Empty post-slices use the vanishing branch; nonempty ones use cap count zero. |
| 77 | Source: the component bookkeeping in Lemma 17.12, pp. 410--411. -/ |
| 78 | theorem m52ComponentEventCountOnCompacts (V : RepairedVolumeLossData F C) |
| 79 | (Kset : Set ℝ) (hK : IsCompact Kset) : |
| 80 | ∃ n : ℕ, ∀ S : Finset ℝ, |
| 81 | (↑S : Set ℝ) ⊆ {T ∈ F.surgery_times ∩ Kset | |
| 82 | ∀ (hT : T ∈ F.surgery_times) (hN : Nonempty (F.slice T).carrier), |
| 83 | letI := hN |
| 84 | (F.event T hT).cap_count = 0} → S.card ≤ n := by |
| 85 | classical |
| 86 | obtain ⟨H, hH⟩ := hK.bddAbove |
| 87 | obtain ⟨n, hcount⟩ := V.component_event_count_bound (max 0 H) (le_max_left _ _) |
| 88 | refine ⟨n, ?_⟩ |
| 89 | intro S hS |
| 90 | apply hcount S |
| 91 | intro T hT |
| 92 | obtain ⟨⟨hevent, hTK⟩, hcap⟩ := hS hT |
| 93 | refine ⟨⟨hevent, F.time_domain_nonnegative (F.surgery_times_subset hevent), |
| 94 | (hH hTK).trans (le_max_right _ _)⟩, hevent, ?_⟩ |
| 95 | by_cases hN : Nonempty (F.slice T).carrier |
| 96 | · exact Or.inr ⟨hN, hcap hevent hN⟩ |
| 97 | · exact Or.inl (not_nonempty_iff.mp hN) |
| 98 | |
| 99 | /-- Restrict the actual M49 evolution estimate to a compact set; the produced |
| 100 | constant six is independent of that set. Source: Lemma 17.12, pp. 410--411. -/ |
| 101 | theorem m52VolumeGrowthOnCompacts (V : RepairedVolumeLossData F C) |
| 102 | (Kset : Set ℝ) (_hK : IsCompact Kset) : |
| 103 | ∃ B : ℝ, 0 ≤ B ∧ ∀ a b : ℝ, |
| 104 | a ∈ F.time_domain ∩ Kset → b ∈ F.time_domain ∩ Kset → a ≤ b → |
| 105 | calibratedMetricVolume (F.metric b) Set.univ ≤ |
| 106 | ENNReal.ofReal (Real.exp (B * (b - a))) * |
| 107 | calibratedMetricVolume (F.metric a) Set.univ := by |
| 108 | exact ⟨6, by norm_num, fun a b ha hb hab => V.volume_growth a b ha.1 hb.1 hab⟩ |
| 109 | |
| 110 | end PoincareMT |