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.Flow.Basic |
| 2 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Cap.LocalCapVolume |
| 3 | import PoincareLib.Geometry.RicciFlow.Volume.Surgery.Measure.LocalIsometryVolume |
| 4 | |
| 5 | /-! |
| 6 | Adapted from Mapher `PoincareMT/Proofs/M49/EventCapVolume.lean` at |
| 7 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 8 | |
| 9 | # Cubic volume bounds for the actual inserted event caps |
| 10 | |
| 11 | Morgan-Tian Theorem 13.2, pp. 332-333, and Lemma 17.12, p. 410. |
| 12 | The actual event embedding preserves the local result's selected |
| 13 | metric and identifies its closed cap with the inserted event cap. |
| 14 | The local uniform bound therefore retains the same cubic scale. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set MeasureTheory |
| 20 | open scoped Manifold ContDiff Bundle ENNReal |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.SurgeryVolume |
| 25 | |
| 26 | /-- The actual event cap has exactly its local-result closed-cap volume |
| 27 | (MT Theorem 13.2, p. 333; Lemma 13.4, pp. 333-334). -/ |
| 28 | theorem event_cap_volume_eq_local |
| 29 | {g₀ : StandardInitialMetric} {K : MetricSurgeryConstants} {P : SurgeryParameters} |
| 30 | {slice : ℝ → GeneralizedSliceCarrier.{u}} |
| 31 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} {T : ℝ} |
| 32 | (E : SurgeryEventData g₀ K P slice metric T) (i : Fin E.cap_count) : |
| 33 | calibratedMetricVolume (metric T) (E.caps i).carrier = |
| 34 | calibratedMetricVolume (E.local_result i).metric |
| 35 | (closure ((E.local_result i).cap_map '' |
| 36 | g₀.metric.ball 0 (g₀.cylindrical_end.radius + 4))) := by |
| 37 | rw [← E.local_cap_image i] |
| 38 | exact calibratedMetricVolume_image_eq_of_injective_isometry |
| 39 | (E.local_result i).metric (metric T) (E.local_embed_smooth i) |
| 40 | (E.local_embed_injective i) (E.local_metric i) isClosed_closure.measurableSet |
| 41 | |
| 42 | /-- Constants selected before every raw event bound each actual inserted |
| 43 | cap by the cube of its height (MT Lemma 17.12, p. 410, with corrected scaling). -/ |
| 44 | theorem exists_uniform_event_cap_volume_bound (g₀ : StandardInitialMetric) : |
| 45 | ∃ Ccap : ℝ, 0 < Ccap ∧ ∀ K : MetricSurgeryConstants, |
| 46 | ∃ d : ℝ, 0 < d ∧ d ≤ K.delta₀ ∧ |
| 47 | ∀ (P : SurgeryParameters) (slice : ℝ → GeneralizedSliceCarrier.{u}) |
| 48 | (metric : ∀ t, RiemannianMetric 3 (slice t).carrier) (T : ℝ) |
| 49 | (E : SurgeryEventData g₀ K P slice metric T), |
| 50 | P.delta T ≤ d → ∀ i : Fin E.cap_count, |
| 51 | calibratedMetricVolume (metric T) (E.caps i).carrier ≤ |
| 52 | ENNReal.ofReal (Ccap * (P.h T) ^ 3) := by |
| 53 | obtain ⟨Ccap, hCcap, hK⟩ := exists_uniform_local_cap_volume_bound.{u} g₀ |
| 54 | refine ⟨Ccap, hCcap, ?_⟩ |
| 55 | intro K |
| 56 | obtain ⟨d, hd, hdK, hbound⟩ := hK K |
| 57 | refine ⟨d, hd, hdK, ?_⟩ |
| 58 | intro P slice metric T E hdelta i |
| 59 | have h := hbound E.terminal E.limit_metric (E.necks i) (E.local_result i) |
| 60 | (by simpa only [E.neck_delta i] using hdelta) |
| 61 | rw [event_cap_volume_eq_local E i] |
| 62 | simpa only [E.neck_scale i] using h |
| 63 | |
| 64 | end PoincareMT.SurgeryVolume |