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.Neck.NeckBoundaryVolume |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Volume.LossData |
| 3 | |
| 4 | /-! |
| 5 | Adapted from Mapher `PoincareMT/Proofs/M49/RetainedBoundaryVolume.lean` at |
| 6 | revision `f927d9e1f0810042766d3b5f64d3f4da02ee93cc`. |
| 7 | |
| 8 | # Zero volume of the retained boundary on both sides |
| 9 | |
| 10 | Morgan-Tian Lemma 17.12, p. 410, and Theorem 15.9, pp. 363-366. |
| 11 | The literal pre-frontier is a finite union of inverse central spheres. |
| 12 | Their images under the actual limit and retention maps are null. |
| 13 | Only within-set smoothness is used on the closed retained region. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set MeasureTheory |
| 19 | open scoped Manifold ContDiff |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.SurgeryVolume |
| 24 | |
| 25 | variable {g₀ : StandardInitialMetric} {K : MetricSurgeryConstants} {P : SurgeryParameters} |
| 26 | {slice : ℝ → GeneralizedSliceCarrier.{u}} |
| 27 | {metric : ∀ t, RiemannianMetric 3 (slice t).carrier} {T : ℝ} |
| 28 | |
| 29 | /-- The actual retained pre-frontier has null terminal image |
| 30 | (MT Lemma 17.12, p. 410; M49 derivation 25). -/ |
| 31 | theorem event_terminal_boundary_volume_eq_zero |
| 32 | (E : SurgeryEventData g₀ K P slice metric T) : |
| 33 | calibratedMetricVolume E.limit_metric |
| 34 | (E.limit_identify.map '' frontier E.retained_pre) = 0 := by |
| 35 | rw [E.pre_boundary, image_iUnion] |
| 36 | apply measure_iUnion_null |
| 37 | intro i |
| 38 | have hnull : calibratedMetricVolume E.limit_metric (E.necks i).neck.central_sphere = 0 := by |
| 39 | simpa only [image_id] using calibratedMetricVolume_image_central_sphere_eq_zero |
| 40 | E.limit_metric (E.necks i).neck (f := id) mdifferentiableOn_id |
| 41 | apply measure_mono_null _ hnull |
| 42 | rintro _ ⟨_, ⟨z, hz, rfl⟩, rfl⟩ |
| 43 | simpa only [E.limit_identify.right_inverse (mem_univ z)] using hz |
| 44 | |
| 45 | /-- The actual retained pre-frontier has null post-surgery image |
| 46 | (MT Lemma 17.12, p. 410; M49 derivation 25). -/ |
| 47 | theorem event_post_boundary_volume_eq_zero |
| 48 | (E : SurgeryEventData g₀ K P slice metric T) : |
| 49 | calibratedMetricVolume (metric T) |
| 50 | (E.retention.map '' frontier E.retained_pre) = 0 := by |
| 51 | have hclosed := E.retained_pre_compact.isClosed |
| 52 | rw [E.pre_boundary, image_iUnion] |
| 53 | apply measure_iUnion_null |
| 54 | intro i |
| 55 | rw [image_image] |
| 56 | apply calibratedMetricVolume_image_central_sphere_eq_zero (metric T) (E.necks i).neck |
| 57 | apply (E.retention.map_smooth.mdifferentiableOn (by simp)).comp |
| 58 | ((E.limit_identify.inverse_smooth.mdifferentiableOn (by simp)).mono (subset_univ _)) |
| 59 | intro x hx |
| 60 | apply hclosed.frontier_subset |
| 61 | rw [E.pre_boundary] |
| 62 | exact mem_iUnion.mpr ⟨i, x, hx, rfl⟩ |
| 63 | |
| 64 | end PoincareMT.SurgeryVolume |