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.Induction.Noncollapse.StableSet.Seed.CylinderMetricComparison |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.Seed.CylinderImageVolume |
| 3 | |
| 4 | /-! |
| 5 | # The physical comparison seed from a controlled cylinder |
| 6 | |
| 7 | Morgan--Tian Claim 16.27, p. 393. A short interior image of the old |
| 8 | terminal ball has compact regular closure and at least one eighth of |
| 9 | that ball's volume. The full original cylinder remains present when |
| 10 | checking retention at the chosen seed time. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open Set |
| 17 | open scoped Manifold ContDiff Bundle ENNReal |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.Proofs.M46 |
| 22 | |
| 23 | /-- The actual controlled cylinder produces the open, precompact, |
| 24 | regular seed image and its uniform physical volume bound. -/ |
| 25 | theorem controlled_cylinder_seed_image |
| 26 | (P : M44CapPersistencePredecessors.{u}) |
| 27 | {F : SurgeryFlowData.{u}} (hpinch : SurgeryFlowPinched F) |
| 28 | {origin c : ℝ} {U V : Set (F.slice origin).carrier} |
| 29 | (e : SurgeryFlowCylinder F (F.slice origin) origin 1 (Icc c 0) U) |
| 30 | (hU : IsOpen U) (hbase : ∀ h y, y ∈ U → HEq (e.forward 0 h y) y) |
| 31 | {K s volume : ℝ} (hs : s ∈ Ioc c 0) (hshort : 6 * K * (-s) ≤ 1 / 2) |
| 32 | (hRm : ∀ t ht y, y ∈ U → |
| 33 | (F.connection (origin + t / 1)).curvatureTensorNorm (e.forward t ht y) ≤ K) |
| 34 | (hV : IsOpen V) (hcompact : IsCompact (closure V)) (hbuffer : closure V ⊆ U) |
| 35 | (hvolume : ENNReal.ofReal volume ≤ calibratedMetricVolume (F.metric origin) V) : |
| 36 | let A := e.forward s (Ioc_subset_Icc_self hs) '' V |
| 37 | IsOpen A ∧ IsCompact (closure A) ∧ |
| 38 | closure A ⊆ m33RegularRegion F (origin + s / 1) ∧ |
| 39 | ENNReal.ofReal (volume / 8) ≤ calibratedMetricVolume (F.metric (origin + s / 1)) A := by |
| 40 | dsimp only |
| 41 | have hgeometry := cylinder_image_regular_compact_buffer e hU s |
| 42 | (Ioc_subset_Icc_self hs) ⟨c, ⟨le_rfl, hs.1.le.trans hs.2⟩, hs.1⟩ |
| 43 | hV hcompact hbuffer |
| 44 | refine ⟨hgeometry.1, hgeometry.2.1, hgeometry.2.2, ?_⟩ |
| 45 | have hmetric := fun y hy v => (based_cylinder_metric_comparison_two P hpinch e hU hbase |
| 46 | hy v (Ioc_subset_Icc_self hs) hshort (fun t ht => hRm t ht y hy)).1 |
| 47 | have hbound := hvolume.trans (cylinder_image_volume_ge_eighth e hU (F.metric origin) |
| 48 | s (Ioc_subset_Icc_self hs) hmetric hV (subset_closure.trans hbuffer)) |
| 49 | rw [ENNReal.ofReal_div_of_pos (by norm_num : (0 : ℝ) < 8), ENNReal.ofReal_ofNat] |
| 50 | exact (ENNReal.div_le_iff' (by norm_num) (by norm_num)).mpr hbound |
| 51 | |
| 52 | end PoincareMT.Proofs.M46 |