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 | # Compatibility of copied surgery events with ordinary slabs |
| 5 | |
| 6 | The copied event pre-identifications and ordinary transports preserve the |
| 7 | same worldlines. If the tested slab crosses the empty time it has no |
| 8 | points; otherwise the actual old compatibility gives the equality. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | |
| 14 | open Set |
| 15 | |
| 16 | universe u |
| 17 | |
| 18 | namespace PoincareMT.M51Empty |
| 19 | |
| 20 | variable (F : SurgeryFlowData.{u}) {a : ℝ} (ha : a ∈ F.time_domain) |
| 21 | [IsEmpty (F.slice a).carrier] |
| 22 | |
| 23 | theorem event_slab_compatibility (T : ℝ) (hT : T ∈ F.surgery_times) |
| 24 | [Nonempty (slice F a T).carrier] (p q : ℝ) (hpq : p < q) |
| 25 | (hJ : Icc p q ⊆ Ici 0) (hfree : Disjoint F.surgery_times (Ioc p q)) |
| 26 | (s t : ℝ) (hs : s ∈ Icc p q) (ht : t ∈ Icc p q) |
| 27 | (hs' : s ∈ Ico (event F ha T hT).tMinus T) |
| 28 | (ht' : t ∈ Ico (event F ha T hT).tMinus T) |
| 29 | (x : (slice F a (event F ha T hT).tMinus).carrier) : |
| 30 | (regularSlab F ha p q hpq hJ hfree).transport ⟨s, hs⟩ ⟨t, ht⟩ |
| 31 | ((event F ha T hT).pre_identify ⟨s, hs'⟩ x) = |
| 32 | (event F ha T hT).pre_identify ⟨t, ht'⟩ x := by |
| 33 | let : Nonempty (F.slice T).carrier := by |
| 34 | simpa only [slice, event_clock F ha T hT T le_rfl] using |
| 35 | (inferInstance : Nonempty (slice F a T).carrier) |
| 36 | let E := F.event T hT |
| 37 | let c := M51EventCopy.identify F.slice (fun z => min z a) E.tMinus |
| 38 | (event_clock F ha T hT E.tMinus E.tMinus_lt.le) |
| 39 | let y := c.symm x |
| 40 | have hy : HEq x y := (M51EventCopy.identify_symm_apply_heq F.slice |
| 41 | (fun z => min z a) E.tMinus |
| 42 | (event_clock F ha T hT E.tMinus E.tMinus_lt.le) x).symm |
| 43 | have hqa := regularSlab_end_le F ha p q hpq hJ hfree hs |
| 44 | ((event F ha T hT).pre_identify ⟨s, hs'⟩ x) |
| 45 | have hOld : Icc p q ⊆ F.time_domain := fun z hz => |
| 46 | F.time_domain_interval.out F.zero_mem ha ⟨hJ hz, hz.2.trans hqa⟩ |
| 47 | have hleft := regularSlab_transport_heq F ha p q hpq hJ hfree hqa hOld |
| 48 | ⟨s, hs⟩ ⟨t, ht⟩ (event_pre_identify_heq F ha T hT ⟨s, hs'⟩ hy) |
| 49 | have hmiddle := F.event_slab_compatibility T hT p q hpq hOld hfree |
| 50 | s t hs ht hs' ht' y |
| 51 | have hright := event_pre_identify_heq F ha T hT ⟨t, ht'⟩ hy |
| 52 | exact eq_of_heq ((hleft.trans (heq_of_eq hmiddle)).trans hright.symm) |
| 53 | |
| 54 | theorem vanishing_slab_compatibility (T : ℝ) (hT : T ∈ F.surgery_times) |
| 55 | [IsEmpty (slice F a T).carrier] (p q : ℝ) (hpq : p < q) |
| 56 | (hJ : Icc p q ⊆ Ici 0) (hfree : Disjoint F.surgery_times (Ioc p q)) |
| 57 | (s t : ℝ) (hs : s ∈ Icc p q) (ht : t ∈ Icc p q) |
| 58 | (hs' : s ∈ Ico (vanishingEvent F ha T hT).tMinus T) |
| 59 | (ht' : t ∈ Ico (vanishingEvent F ha T hT).tMinus T) |
| 60 | (x : (slice F a (vanishingEvent F ha T hT).tMinus).carrier) : |
| 61 | (regularSlab F ha p q hpq hJ hfree).transport ⟨s, hs⟩ ⟨t, ht⟩ |
| 62 | ((vanishingEvent F ha T hT).pre_identify ⟨s, hs'⟩ x) = |
| 63 | (vanishingEvent F ha T hT).pre_identify ⟨t, ht'⟩ x := by |
| 64 | let : IsEmpty (F.slice T).carrier := by |
| 65 | simpa only [slice, event_clock F ha T hT T le_rfl] using |
| 66 | (inferInstance : IsEmpty (slice F a T).carrier) |
| 67 | let E := F.vanishing_event T hT |
| 68 | let c := M51EventCopy.identify F.slice (fun z => min z a) E.tMinus |
| 69 | (event_clock F ha T hT E.tMinus E.tMinus_lt.le) |
| 70 | let y := c.symm x |
| 71 | have hy : HEq x y := (M51EventCopy.identify_symm_apply_heq F.slice |
| 72 | (fun z => min z a) E.tMinus |
| 73 | (event_clock F ha T hT E.tMinus E.tMinus_lt.le) x).symm |
| 74 | have hqa := regularSlab_end_le F ha p q hpq hJ hfree hs |
| 75 | ((vanishingEvent F ha T hT).pre_identify ⟨s, hs'⟩ x) |
| 76 | have hOld : Icc p q ⊆ F.time_domain := fun z hz => |
| 77 | F.time_domain_interval.out F.zero_mem ha ⟨hJ hz, hz.2.trans hqa⟩ |
| 78 | have hleft := regularSlab_transport_heq F ha p q hpq hJ hfree hqa hOld |
| 79 | ⟨s, hs⟩ ⟨t, ht⟩ (vanishingEvent_pre_identify_heq F ha T hT ⟨s, hs'⟩ hy) |
| 80 | have hmiddle := F.vanishing_slab_compatibility T hT p q hpq hOld hfree |
| 81 | s t hs ht hs' ht' y |
| 82 | have hright := vanishingEvent_pre_identify_heq F ha T hT ⟨t, ht'⟩ hy |
| 83 | exact eq_of_heq ((hleft.trans (heq_of_eq hmiddle)).trans hright.symm) |
| 84 | |
| 85 | end PoincareMT.M51Empty |