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.Volume.Surgery.Evolution.DirectSlabVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Analysis.FiniteJumps |
| 3 | |
| 4 | /-! |
| 5 | Adapted from Mapher `PoincareMT/Proofs/M49/DirectVolumeGrowth.lean` at |
| 6 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 7 | |
| 8 | # Direct volume growth through actual surgery events |
| 9 | |
| 10 | Morgan-Tian Lemma 17.12, p. 410. Direct ordinary comparison and |
| 11 | actual event drops make exponentially weighted volume nonincreasing. |
| 12 | Finite included prefixes give the full exponential estimate without |
| 13 | a parabolic-rescaling service. |
| 14 | See `proof-work/tasks/M49/derivations/30-direct-volume-adapters.md`. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set Filter MeasureTheory |
| 20 | open scoped Topology ENNReal |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.SurgeryVolume |
| 25 | |
| 26 | /-- Actual event drops and pinching imply the full included-interval |
| 27 | volume estimate directly (MT Lemma 17.12, p. 410). -/ |
| 28 | theorem volume_growth_of_event_drops_direct |
| 29 | (F : SurgeryFlowData.{u}) {a b : ℝ} (ha : a ∈ F.time_domain) |
| 30 | (hb : b ∈ F.time_domain) (hab : a ≤ b) |
| 31 | (hpinched : ∀ t ∈ Icc a b, SurgeryPinchedAt (F.connection t) t) |
| 32 | (hdrop : ∀ T ∈ F.surgery_times ∩ Ioc a b, ∃ L : ℝ≥0∞, |
| 33 | Tendsto (fun t => calibratedMetricVolume (F.metric t) univ) |
| 34 | (𝓝[F.time_domain ∩ Iio T] T) (𝓝 L) ∧ |
| 35 | calibratedMetricVolume (F.metric T) univ ≤ L) : |
| 36 | calibratedMetricVolume (F.metric b) univ ≤ |
| 37 | ENNReal.ofReal (Real.exp (6 * (b - a))) * calibratedMetricVolume (F.metric a) univ := by |
| 38 | classical |
| 39 | let V := fun t => calibratedMetricVolume (F.metric t) univ |
| 40 | let w := fun t => ENNReal.ofReal (Real.exp (-(6 * t))) * V t |
| 41 | have hfinite : (F.surgery_times ∩ Ioc a b).Finite := |
| 42 | (surgeryTimes_inter_Icc_finite F ha hb).subset |
| 43 | (inter_subset_inter_right _ Ioc_subset_Icc_self) |
| 44 | let S := hfinite.toFinset |
| 45 | have hmem (t : ℝ) : t ∈ S ↔ t ∈ F.surgery_times ∩ Ioc a b := hfinite.mem_toFinset |
| 46 | have hJ : Icc a b ⊆ F.time_domain := F.time_domain_interval.out ha hb |
| 47 | have hw : w b ≤ w a := by |
| 48 | apply le_of_finite_left_jumps S hab (fun t ht => ((hmem t).mp ht).2) |
| 49 | · intro x hx y hy hxy hdisjoint |
| 50 | have hno : Disjoint F.surgery_times (Ioc x y) := by |
| 51 | apply disjoint_left.mpr |
| 52 | intro z hz hzxy |
| 53 | exact disjoint_left.mp hdisjoint |
| 54 | ((hmem z).mpr ⟨hz, hx.1.trans_lt hzxy.1, hzxy.2.trans hy.2⟩) hzxy |
| 55 | have hxyJ : Icc x y ⊆ Icc a b := fun r hr => |
| 56 | ⟨hx.1.trans hr.1, hr.2.trans hy.2⟩ |
| 57 | have hv := regular_volume_le_exp_mul_direct F hxy (hxyJ.trans hJ) hno |
| 58 | (fun r hr => hpinched r (hxyJ hr)) |
| 59 | have hw' := mul_le_mul_right hv (ENNReal.ofReal (Real.exp (-(6 * y)))) |
| 60 | rw [← mul_assoc, ← ENNReal.ofReal_mul (Real.exp_pos _).le, ← Real.exp_add] at hw' |
| 61 | have he : -(6 * y) + 6 * (y - x) = -(6 * x) := by ring |
| 62 | rw [he] at hw' |
| 63 | exact hw' |
| 64 | · intro T hTS |
| 65 | have hT := (hmem T).mp hTS |
| 66 | obtain ⟨L, hlim, hVT⟩ := hdrop T hT |
| 67 | have hleft : 𝓝[<] T ≤ 𝓝[F.time_domain ∩ Iio T] T := by |
| 68 | rw [← nhdsWithin_Ico_eq_nhdsLT hT.2.1] |
| 69 | apply nhdsWithin_mono |
| 70 | intro t ht |
| 71 | exact ⟨hJ ⟨ht.1, ht.2.le.trans hT.2.2⟩, ht.2⟩ |
| 72 | have hweight : Continuous (fun t : ℝ => ENNReal.ofReal (Real.exp (-(6 * t)))) := |
| 73 | ENNReal.continuous_ofReal.comp |
| 74 | (Real.continuous_exp.comp (continuous_const.mul continuous_id).neg) |
| 75 | refine ⟨ENNReal.ofReal (Real.exp (-(6 * T))) * L, ?_, mul_le_mul_right hVT _⟩ |
| 76 | exact ENNReal.Tendsto.mul |
| 77 | ((hweight.tendsto T).mono_left nhdsWithin_le_nhds) |
| 78 | (Or.inl (ne_of_gt (ENNReal.ofReal_pos.mpr (Real.exp_pos _)))) |
| 79 | (hlim.mono_left hleft) (Or.inr ENNReal.ofReal_ne_top) |
| 80 | calc |
| 81 | V b = ENNReal.ofReal (Real.exp (6 * b)) * w b := by |
| 82 | dsimp [w] |
| 83 | rw [← mul_assoc, ← ENNReal.ofReal_mul (Real.exp_pos _).le, ← Real.exp_add, |
| 84 | add_neg_cancel, Real.exp_zero, ENNReal.ofReal_one, one_mul] |
| 85 | _ ≤ ENNReal.ofReal (Real.exp (6 * b)) * w a := mul_le_mul_right hw _ |
| 86 | _ = _ := by |
| 87 | dsimp [w, V] |
| 88 | rw [← mul_assoc, ← ENNReal.ofReal_mul (Real.exp_pos _).le, ← Real.exp_add] |
| 89 | have he : 6 * b + -(6 * a) = 6 * (b - a) := by ring |
| 90 | rw [he] |
| 91 | |
| 92 | /-- Actual nonempty-event loss records and raw vanishing fields supply |
| 93 | every jump for direct volume growth (MT Lemma 17.12, p. 410). -/ |
| 94 | theorem volume_growth_of_event_losses_direct |
| 95 | (F : SurgeryFlowData.{u}) |
| 96 | (E : ∀ (T : ℝ) (hT : T ∈ F.surgery_times), |
| 97 | ∀ [Nonempty (F.slice T).carrier], RepairedSurgeryEventLossData F T hT) |
| 98 | {a b : ℝ} (ha : a ∈ F.time_domain) (hb : b ∈ F.time_domain) (hab : a ≤ b) |
| 99 | (hpinched : ∀ t ∈ Icc a b, SurgeryPinchedAt (F.connection t) t) : |
| 100 | calibratedMetricVolume (F.metric b) univ ≤ |
| 101 | ENNReal.ofReal (Real.exp (6 * (b - a))) * calibratedMetricVolume (F.metric a) univ := by |
| 102 | apply volume_growth_of_event_drops_direct F ha hb hab hpinched |
| 103 | intro T hT |
| 104 | rcases isEmpty_or_nonempty (F.slice T).carrier with hEmpty | hNonempty |
| 105 | · let := hEmpty |
| 106 | let D := F.vanishing_event T hT.1 |
| 107 | refine ⟨D.left_limit_volume, |
| 108 | D.left_limit_volume_tendsto.mono_left (nhdsWithin_mono _ inter_subset_right), ?_⟩ |
| 109 | rw [univ_eq_empty_iff.mpr hEmpty, measure_empty] |
| 110 | exact bot_le |
| 111 | · let := hNonempty |
| 112 | let D := E T hT.1 |
| 113 | refine ⟨D.left_limit_volume, D.left_limit_volume_tendsto, ?_⟩ |
| 114 | exact (le_add_of_nonneg_right (show (0 : ℝ≥0∞) ≤ D.loss from bot_le)).trans |
| 115 | (D.terminal_volume_drop.trans D.regular_limit_volume_le_left_limit) |
| 116 | |
| 117 | end PoincareMT.SurgeryVolume |