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.EmptyEventSlabs |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.GlobalSchedule.Empty.EmptyMaximality |
| 3 | |
| 4 | /-! |
| 5 | # The raw permanent empty continuation |
| 6 | |
| 7 | Morgan--Tian Section 17.2, p. 409. The old event set, parameters, model and |
| 8 | local surgery constants are unchanged. Only the time domain is extended; |
| 9 | later empty slices use the included empty carrier as their representative. |
| 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 flow (F : SurgeryFlowData.{u}) {a : ℝ} |
| 22 | (ha : a ∈ F.time_domain) [IsEmpty (F.slice a).carrier] : SurgeryFlowData.{u} where |
| 23 | standard_initial := F.standard_initial |
| 24 | local_constants := F.local_constants |
| 25 | parameters := F.parameters |
| 26 | time_domain := Ici 0 |
| 27 | time_domain_interval := ordConnected_Ici |
| 28 | time_domain_nonnegative := Subset.rfl |
| 29 | zero_mem := by |
| 30 | change (0 : ℝ) ≤ 0 |
| 31 | exact le_rfl |
| 32 | slice := slice F a |
| 33 | metric := metric F a |
| 34 | connection := connection F a |
| 35 | slices_compact := fun t ht => F.slices_compact _ (representative_mem F a ha ht) |
| 36 | no_two_sided_projective_plane := fun t ht => |
| 37 | F.no_two_sided_projective_plane _ (representative_mem F a ha ht) |
| 38 | initial_nonempty := by |
| 39 | have ha0 : 0 ≤ a := F.time_domain_nonnegative ha |
| 40 | simpa only [slice, min_eq_left ha0] using F.initial_nonempty |
| 41 | initial_normalized := by |
| 42 | have ha0 : 0 ≤ a := F.time_domain_nonnegative ha |
| 43 | change ∀ x : (F.slice (min 0 a)).carrier, |
| 44 | (F.connection (min 0 a)).curvatureTensorNorm x ≤ 1 ∧ |
| 45 | ∀ r : ℝ, 0 < r → r ≤ 1 → |
| 46 | ENNReal.ofReal (euclideanUnitBallLebesgueVolume.toReal * r ^ 3 / 2) ≤ |
| 47 | calibratedMetricVolume (F.metric (min 0 a)) ((F.metric (min 0 a)).ball x r) |
| 48 | rw [min_eq_left ha0] |
| 49 | exact F.initial_normalized |
| 50 | surgery_times := F.surgery_times |
| 51 | surgery_times_subset := fun _ ht => F.time_domain_nonnegative (F.surgery_times_subset ht) |
| 52 | zero_not_surgery := F.zero_not_surgery |
| 53 | surgery_times_locally_finite := fun _ _ => |
| 54 | ⟨1, by norm_num, (F.surgeryTimes_finite_of_empty ha).subset inter_subset_left⟩ |
| 55 | regular_slabs := regularSlab F ha |
| 56 | slab_transport_coherent := regularSlab_coherent F ha |
| 57 | event := event F ha |
| 58 | vanishing_event := vanishingEvent F ha |
| 59 | event_slab_compatibility := event_slab_compatibility F ha |
| 60 | vanishing_slab_compatibility := vanishing_slab_compatibility F ha |
| 61 | maximal_intervals := fun p q hp hstart hpq _ hfree _ hend => |
| 62 | maximality F ha p q hp hstart hpq hfree hend |
| 63 | extinction_permanent := fun s t hs _ hst he => empty_forward F a ha hs hst he |
| 64 | |
| 65 | variable (F : SurgeryFlowData.{u}) {a : ℝ} (ha : a ∈ F.time_domain) |
| 66 | [IsEmpty (F.slice a).carrier] |
| 67 | |
| 68 | @[simp] theorem flow_time_domain : (flow F ha).time_domain = Ici 0 := rfl |
| 69 | |
| 70 | @[simp] theorem flow_parameters : (flow F ha).parameters = F.parameters := rfl |
| 71 | |
| 72 | @[simp] theorem flow_surgery_times : (flow F ha).surgery_times = F.surgery_times := rfl |
| 73 | |
| 74 | theorem flow_empty_after {t : ℝ} (ht : a ≤ t) : IsEmpty ((flow F ha).slice t).carrier := |
| 75 | empty_after F a ht |
| 76 | |
| 77 | theorem flow_events_finite : (flow F ha).surgery_times.Finite := |
| 78 | F.surgeryTimes_finite_of_empty ha |
| 79 | |
| 80 | end PoincareMT.M51Empty |