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.EmptyTerminalNeck |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Extension.ExtensionCanonical |
| 3 | |
| 4 | /-! |
| 5 | # Admissibility of the permanent empty continuation |
| 6 | |
| 7 | Morgan--Tian Definition 15.8 and Section 17.2, pp. 362 and 409. |
| 8 | Every event is the old event. Its strong boundary, disappearing-region and |
| 9 | vanishing-region controls are transported on their original physical times. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | universe u |
| 19 | |
| 20 | namespace PoincareMT.M51Empty |
| 21 | |
| 22 | variable (F : SurgeryFlowData.{u}) {a : ℝ} (ha : a ∈ F.time_domain) |
| 23 | [IsEmpty (F.slice a).carrier] |
| 24 | |
| 25 | theorem admissible (m13 : GeneralizedParabolicRescalingTheory.{u} 3) |
| 26 | (h : SurgeryFlowAdmissible F) : SurgeryFlowAdmissible (flow F ha) := by |
| 27 | constructor |
| 28 | · intro T hT hNew i |
| 29 | change T ∈ F.surgery_times at hT |
| 30 | let : Nonempty (F.slice T).carrier := by |
| 31 | simpa only [flow, slice, event_clock F ha T hT T le_rfl] using hNew |
| 32 | rcases h.strong_boundaries T hT i with ⟨N⟩ |
| 33 | exact ⟨terminalStrongNeck F ha T hT i N⟩ |
| 34 | · intro T hT hNew t hstart x hx |
| 35 | change T ∈ F.surgery_times at hT |
| 36 | let : Nonempty (F.slice T).carrier := by |
| 37 | simpa only [flow, slice, event_clock F ha T hT T le_rfl] using hNew |
| 38 | let E := F.event T hT |
| 39 | let c := M51EventCopy.identify F.slice (fun s => min s a) E.tMinus |
| 40 | (event_clock F ha T hT _ E.tMinus_lt.le) |
| 41 | have hnot : c.symm x ∉ interior E.retained_pre := by |
| 42 | intro hxold |
| 43 | apply hx |
| 44 | have himage := E.reindexPast_retained_pre_image |
| 45 | (fun s => min s a) (event_clock F ha T hT) |
| 46 | change x ∈ interior (E.reindexPast (fun s => min s a) |
| 47 | (event_clock F ha T hT)).retained_pre |
| 48 | rw [← himage] |
| 49 | change x ∈ interior (c.toHomeomorph '' E.retained_pre) |
| 50 | rw [← c.toHomeomorph.image_interior] |
| 51 | exact ⟨c.symm x, hxold, c.apply_symm_apply x⟩ |
| 52 | have htold : t.1 ∈ F.time_domain := |
| 53 | F.time_domain_interval.out F.zero_mem (F.surgery_times_subset hT) |
| 54 | ⟨E.tMinus_nonnegative.trans t.2.1, t.2.2.le⟩ |
| 55 | have hold := (extension F ha).canonical_control m13 t.1 htold |
| 56 | (E.pre_identify t (c.symm x)) F.parameters.epsilon F.parameters.C |
| 57 | (h.strong_disappearing T hT t hstart (c.symm x) hnot) |
| 58 | have hmap : (extension F ha).identify t.1 htold (E.pre_identify t (c.symm x)) = |
| 59 | ((flow F ha).event T hT).pre_identify t x := by |
| 60 | change identify F ha t.1 htold _ = _ |
| 61 | rw [identify_of_le F ha _ _ (t.2.2.le.trans (F.surgeryTime_le_empty ha hT))] |
| 62 | change M51EventCopy.identify F.slice (fun s => min s a) t.1 |
| 63 | (event_clock F ha T hT _ t.2.2.le) (E.pre_identify t (c.symm x)) = |
| 64 | (E.reindexPast (fun s => min s a) (event_clock F ha T hT)).pre_identify t x |
| 65 | have hm := E.reindexPast_pre_identify_apply |
| 66 | (fun s => min s a) (event_clock F ha T hT) t (c.symm x) |
| 67 | simpa only [c, Diffeomorph.apply_symm_apply] using hm.symm |
| 68 | rw [hmap] at hold |
| 69 | exact hold |
| 70 | · intro T hT hNew t hstart x |
| 71 | change T ∈ F.surgery_times at hT |
| 72 | let : IsEmpty (F.slice T).carrier := by |
| 73 | simpa only [flow, slice, event_clock F ha T hT T le_rfl] using hNew |
| 74 | let E := F.vanishing_event T hT |
| 75 | let c := M51EventCopy.identify F.slice (fun s => min s a) E.tMinus |
| 76 | (event_clock F ha T hT _ E.tMinus_lt.le) |
| 77 | have htold : t.1 ∈ F.time_domain := |
| 78 | F.time_domain_interval.out F.zero_mem (F.surgery_times_subset hT) |
| 79 | ⟨E.tMinus_nonnegative.trans t.2.1, t.2.2.le⟩ |
| 80 | have hold := (extension F ha).canonical_control m13 t.1 htold |
| 81 | (E.pre_identify t (c.symm x)) F.parameters.epsilon F.parameters.C |
| 82 | (h.strong_vanishing T hT t hstart (c.symm x)) |
| 83 | have hmap : (extension F ha).identify t.1 htold (E.pre_identify t (c.symm x)) = |
| 84 | ((flow F ha).vanishing_event T hT).pre_identify t x := by |
| 85 | change identify F ha t.1 htold _ = _ |
| 86 | rw [identify_of_le F ha _ _ (t.2.2.le.trans (F.surgeryTime_le_empty ha hT))] |
| 87 | change M51EventCopy.identify F.slice (fun s => min s a) t.1 |
| 88 | (event_clock F ha T hT _ t.2.2.le) (E.pre_identify t (c.symm x)) = |
| 89 | (E.reindexPast (fun s => min s a) (event_clock F ha T hT)).pre_identify t x |
| 90 | have hm := E.reindexPast_pre_identify_apply |
| 91 | (fun s => min s a) (event_clock F ha T hT) t (c.symm x) |
| 92 | simpa only [c, Diffeomorph.apply_symm_apply] using hm.symm |
| 93 | rw [hmap] at hold |
| 94 | exact hold |
| 95 | |
| 96 | end PoincareMT.M51Empty |