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.GlobalSchedule.Empty.EmptyRawFlow |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.GlobalSchedule.Empty.EmptyRetained |
| 3 | |
| 4 | /-! |
| 5 | # Preserving the original flow in the permanent empty continuation |
| 6 | |
| 7 | Morgan--Tian Section 17.2, p. 409. The complete extension keeps every old |
| 8 | ordinary transport and both kinds of surgery event, including the actual |
| 9 | retained regions and retention maps. Its domain is all nonnegative time. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M51Empty |
| 20 | |
| 21 | noncomputable def extension (F : SurgeryFlowData.{u}) {a : ℝ} |
| 22 | (ha : a ∈ F.time_domain) [IsEmpty (F.slice a).carrier] : SurgeryFlowExtension F where |
| 23 | extended := flow F ha |
| 24 | old_times := F.time_domain_nonnegative |
| 25 | standard_initial_eq := rfl |
| 26 | local_constants_eq := rfl |
| 27 | parameters_eq := rfl |
| 28 | identify := identify F ha |
| 29 | metric_pullback := identify_metric_pullback F ha |
| 30 | old_surgery_times := fun _ _ => Iff.rfl |
| 31 | ordinary_compatibility := fun p q hpq hJ hfree hJ' _ s t x => |
| 32 | identify_ordinary_compatibility F ha p q hpq hJ hfree hJ' s t x |
| 33 | old_event_reference := fun _ _ _ _ _ => rfl |
| 34 | old_retained_post := by |
| 35 | intro T hT _ hOld hNew |
| 36 | let : Nonempty (slice F a T).carrier := hNew |
| 37 | exact event_retained_post F ha T hT |
| 38 | old_retained_pre := by |
| 39 | intro T hT _ hOld hNew t ht _ |
| 40 | let : Nonempty (slice F a T).carrier := hNew |
| 41 | exact event_retained_pre F ha T hT t ht |
| 42 | old_retention := by |
| 43 | intro T hT _ hOld hNew t ht _ x _ |
| 44 | let : Nonempty (slice F a T).carrier := hNew |
| 45 | exact event_retention F ha T hT t ht x |
| 46 | old_vanishing_reference := fun _ _ _ _ _ => rfl |
| 47 | |
| 48 | @[simp] theorem extension_time_domain (F : SurgeryFlowData.{u}) {a : ℝ} |
| 49 | (ha : a ∈ F.time_domain) [IsEmpty (F.slice a).carrier] : |
| 50 | (extension F ha).extended.time_domain = Ici 0 := rfl |
| 51 | |
| 52 | end PoincareMT.M51Empty |