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.EmptyEvents |
| 2 | |
| 3 | /-! |
| 4 | # The actual old retained-region maps in the empty continuation |
| 5 | |
| 6 | The copied pre-identification square identifies the event's reference |
| 7 | carrier, so the retained sets and retention map are the original ones |
| 8 | transported through equality of time labels. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.M51Empty |
| 20 | |
| 21 | variable (F : SurgeryFlowData.{u}) {a : ℝ} (ha : a ∈ F.time_domain) |
| 22 | [IsEmpty (F.slice a).carrier] (T : ℝ) (hT : T ∈ F.surgery_times) |
| 23 | [Nonempty (F.slice T).carrier] [Nonempty (slice F a T).carrier] |
| 24 | |
| 25 | theorem event_reference_inverse (t : Ico (F.event T hT).tMinus T) |
| 26 | (ht : t.1 ∈ F.time_domain) (x : (F.slice (F.event T hT).tMinus).carrier) : |
| 27 | ((event F ha T hT).pre_identify t).symm |
| 28 | (identify F ha t.1 ht ((F.event T hT).pre_identify t x)) = |
| 29 | M51EventCopy.identify F.slice (fun s => min s a) (F.event T hT).tMinus |
| 30 | (event_clock F ha T hT _ (F.event T hT).tMinus_lt.le) x := by |
| 31 | rw [identify_of_le F ha t.1 ht (t.2.2.le.trans (F.surgeryTime_le_empty ha hT))] |
| 32 | change (((F.event T hT).reindexPast (fun s => min s a) |
| 33 | (event_clock F ha T hT)).pre_identify t).symm _ = _ |
| 34 | have h := (F.event T hT).reindexPast_pre_identify_apply |
| 35 | (fun s => min s a) (event_clock F ha T hT) t x |
| 36 | exact (congrArg (((F.event T hT).reindexPast (fun s => min s a) |
| 37 | (event_clock F ha T hT)).pre_identify t).symm h.symm).trans |
| 38 | (Diffeomorph.symm_apply_apply _ _) |
| 39 | |
| 40 | theorem event_retained_post : |
| 41 | identify F ha T (F.surgery_times_subset hT) '' (F.event T hT).retained_post = |
| 42 | (event F ha T hT).retained_post := by |
| 43 | rw [identify_of_le F ha T (F.surgery_times_subset hT) (F.surgeryTime_le_empty ha hT)] |
| 44 | exact (F.event T hT).reindexPast_retained_post_image |
| 45 | (fun s => min s a) (event_clock F ha T hT) |
| 46 | |
| 47 | theorem event_retained_pre (t : Ico (F.event T hT).tMinus T) |
| 48 | (ht : t.1 ∈ F.time_domain) : |
| 49 | (fun x => ((event F ha T hT).pre_identify t).symm |
| 50 | (identify F ha t.1 ht ((F.event T hT).pre_identify t x))) '' |
| 51 | (F.event T hT).retained_pre = (event F ha T hT).retained_pre := by |
| 52 | have heq : (fun x => ((event F ha T hT).pre_identify t).symm |
| 53 | (identify F ha t.1 ht ((F.event T hT).pre_identify t x))) = |
| 54 | M51EventCopy.identify F.slice (fun s => min s a) (F.event T hT).tMinus |
| 55 | (event_clock F ha T hT _ (F.event T hT).tMinus_lt.le) := |
| 56 | funext (event_reference_inverse F ha T hT t ht) |
| 57 | rw [heq] |
| 58 | exact (F.event T hT).reindexPast_retained_pre_image |
| 59 | (fun s => min s a) (event_clock F ha T hT) |
| 60 | |
| 61 | theorem event_retention (t : Ico (F.event T hT).tMinus T) |
| 62 | (ht : t.1 ∈ F.time_domain) (x : (F.slice (F.event T hT).tMinus).carrier) : |
| 63 | identify F ha T (F.surgery_times_subset hT) ((F.event T hT).retention.map x) = |
| 64 | (event F ha T hT).retention.map |
| 65 | (((event F ha T hT).pre_identify t).symm |
| 66 | (identify F ha t.1 ht ((F.event T hT).pre_identify t x))) := by |
| 67 | rw [event_reference_inverse F ha T hT t ht x, |
| 68 | identify_of_le F ha T (F.surgery_times_subset hT) (F.surgeryTime_le_empty ha hT)] |
| 69 | exact ((F.event T hT).reindexPast_retention_map |
| 70 | (fun s => min s a) (event_clock F ha T hT) x).symm |
| 71 | |
| 72 | end PoincareMT.M51Empty |