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.Measure.CalibratedVolume |
| 3 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Analysis.ExponentialLeftLimit |
| 4 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Event.RegularLimitVolume |
| 5 | |
| 6 | /-! |
| 7 | Adapted from Mapher `PoincareMT/Proofs/M49/DirectLeftLimitVolume.lean` at |
| 8 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 9 | |
| 10 | # Direct comparison with the pre-surgery scalar left limit |
| 11 | |
| 12 | Morgan-Tian Lemma 17.12, p. 410, with Theorem 11.19(1), p. 279, |
| 13 | and Lemma 11.21, p. 280. Direct transport of the actual predecessor |
| 14 | metrics gives a finite scalar left limit and bounds the regular-limit |
| 15 | volume by it, without a parabolic-rescaling service. |
| 16 | See `proof-work/tasks/M49/derivations/30-direct-volume-adapters.md`. |
| 17 | -/ |
| 18 | |
| 19 | set_option autoImplicit false |
| 20 | |
| 21 | open Set Filter |
| 22 | open scoped Topology ENNReal |
| 23 | |
| 24 | universe u |
| 25 | |
| 26 | namespace PoincareMT.SurgeryVolume |
| 27 | |
| 28 | /-- Actual pre-surgery total volume has a finite within-domain left |
| 29 | limit, by direct ordinary comparison (MT Lemma 17.12, p. 410). -/ |
| 30 | theorem preEvent_exists_finite_left_limit_direct |
| 31 | (F : SurgeryFlowData.{u}) (T : ℝ) (hT : T ∈ F.surgery_times) |
| 32 | [Nonempty (F.slice T).carrier] |
| 33 | (hpinched : ∀ t ∈ Ico (F.event T hT).tMinus T, SurgeryPinchedAt (F.connection t) t) : |
| 34 | ∃ L : ℝ≥0∞, L ≠ ⊤ ∧ |
| 35 | Tendsto (fun t => calibratedMetricVolume (F.metric t) univ) |
| 36 | (𝓝[F.time_domain ∩ Iio T] T) (𝓝 L) := by |
| 37 | have hstart : (F.event T hT).tMinus ∈ F.time_domain := |
| 38 | nonemptyEventPreInterval F T hT ⟨le_rfl, (F.event T hT).tMinus_lt⟩ |
| 39 | obtain ⟨L, hL, hlim⟩ := ENNReal.exists_finite_left_limit_of_exp_growth |
| 40 | (F.event T hT).tMinus_lt (sliceVolume_lt_top F hstart).ne |
| 41 | (fun s hs t ht hst => preEvent_volume_le_exp_mul_direct F T hT hpinched hs ht hst) |
| 42 | exact ⟨L, hL, hlim.mono_left (nhdsWithin_mono _ inter_subset_right)⟩ |
| 43 | |
| 44 | /-- Regular-limit volume is at most the scalar left limit of actual |
| 45 | slice volume (MT Theorem 11.19(1), p. 279; Lemma 17.12, p. 410). -/ |
| 46 | theorem event_regular_limit_volume_le_left_limit_direct |
| 47 | (F : SurgeryFlowData.{u}) (T : ℝ) (hT : T ∈ F.surgery_times) |
| 48 | [Nonempty (F.slice T).carrier] {L : ℝ≥0∞} |
| 49 | (hlim : Tendsto (fun t => calibratedMetricVolume (F.metric t) univ) |
| 50 | (𝓝[F.time_domain ∩ Iio T] T) (𝓝 L)) : |
| 51 | calibratedMetricVolume (F.event T hT).limit_metric univ ≤ L := by |
| 52 | let E := F.event T hT |
| 53 | have hleft : 𝓝[<] T ≤ 𝓝[F.time_domain ∩ Iio T] T := by |
| 54 | rw [← nhdsWithin_Ico_eq_nhdsLT E.tMinus_lt] |
| 55 | apply nhdsWithin_mono |
| 56 | exact fun _ ht => ⟨nonemptyEventPreInterval F T hT ht, ht.2⟩ |
| 57 | have heq : (fun t => calibratedMetricVolume (E.pre_flow.metric t) univ) =ᶠ[𝓝[<] T] |
| 58 | (fun t => calibratedMetricVolume (F.metric t) univ) := by |
| 59 | filter_upwards [Ioo_mem_nhdsLT E.tMinus_lt] with t ht |
| 60 | let rt : Ico E.tMinus T := ⟨t, ⟨ht.1.le, ht.2⟩⟩ |
| 61 | apply (volume_univ_eq_of_metric_isometry_direct (E.pre_flow.metric t) |
| 62 | (F.metric t) (E.pre_identify rt) _).symm |
| 63 | intro x a b |
| 64 | simpa only [one_mul] using E.pre_metric rt x a b |
| 65 | have hfixed := (hlim.mono_left hleft).congr' heq.symm |
| 66 | exact (event_regular_limit_volume_le_liminf E).trans_eq hfixed.liminf_eq |
| 67 | |
| 68 | end PoincareMT.SurgeryVolume |