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.Continuation.Construction.Terminal.Extinction.EmptyTail |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.Splice.Geometry |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.RegularHistory |
| 4 | |
| 5 | /-! |
| 6 | # Compact geometry and event times of the permanent empty continuation |
| 7 | |
| 8 | The old geometry is retained literally before the terminal time. Afterwards |
| 9 | every slice is empty. The final old surgery-free slab confines the entire |
| 10 | old event set to a compact included prefix. |
| 11 | Source: Morgan--Tian, Definition 15.8, p. 362, and Section 17.2, p. 409. |
| 12 | -/ |
| 13 | |
| 14 | noncomputable section |
| 15 | set_option autoImplicit false |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open Set |
| 19 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 20 | |
| 21 | universe u |
| 22 | |
| 23 | namespace PoincareMT.Surgery.Extinction |
| 24 | |
| 25 | variable {F : SurgeryFlowData.{u}} {T : ℝ} (I : RepairedContinuationInput F T) |
| 26 | |
| 27 | def connection (t : ℝ) : LeviCivitaData (metric F T t) := |
| 28 | Splice.connection F T (emptyCarrier (F.slice 0)) (emptyFlow (F.metric 0) T) t |
| 29 | |
| 30 | include I |
| 31 | |
| 32 | theorem slices_compact (t : ℝ) (ht : 0 ≤ t) : IsCompact (univ : Set (slice F T t).carrier) := by |
| 33 | by_cases h : t < T |
| 34 | · have htF : t ∈ F.time_domain := I.time_domain_eq ▸ (show t ∈ Ico 0 T from ⟨ht, h⟩) |
| 35 | exact SurgeryEventRebuild.relabel |
| 36 | (C := fun p => IsCompact (univ : Set p.1.carrier)) |
| 37 | (Splice.family_before F T (emptyCarrier (F.slice 0)) (emptyFlow (F.metric 0) T) h).symm |
| 38 | (F.slices_compact t htF) |
| 39 | · let := slice_empty_after F T (le_of_not_gt h) |
| 40 | exact isCompact_univ |
| 41 | |
| 42 | theorem no_two_sided_projective_plane (t : ℝ) (ht : 0 ≤ t) : |
| 43 | SurgeryNoTwoSidedProjectivePlane (slice F T t) := by |
| 44 | by_cases h : t < T |
| 45 | · have htF : t ∈ F.time_domain := I.time_domain_eq ▸ (show t ∈ Ico 0 T from ⟨ht, h⟩) |
| 46 | simpa only [slice, Splice.slice, Splice.family, if_pos h] using |
| 47 | F.no_two_sided_projective_plane t htF |
| 48 | · let := slice_empty_after F T (le_of_not_gt h) |
| 49 | rintro ⟨f, _⟩ |
| 50 | exact isEmptyElim (f (Classical.arbitrary RealProjectiveTwo, ⟨0, by norm_num⟩)) |
| 51 | |
| 52 | theorem initial_nonempty : Nonempty (slice F T 0).carrier := by |
| 53 | obtain ⟨x⟩ := F.initial_nonempty |
| 54 | exact ⟨Splice.identifyBefore F T (emptyCarrier (F.slice 0)) |
| 55 | (emptyFlow (F.metric 0) T) 0 I.terminal_pos x⟩ |
| 56 | |
| 57 | theorem initial_normalized : ∀ x : (slice F T 0).carrier, |
| 58 | (connection (F := F) (T := T) 0).curvatureTensorNorm x ≤ 1 ∧ |
| 59 | ∀ r : ℝ, 0 < r → r ≤ 1 → |
| 60 | ENNReal.ofReal (euclideanUnitBallLebesgueVolume.toReal * r ^ 3 / 2) ≤ |
| 61 | calibratedMetricVolume (metric F T 0) ((metric F T 0).ball x r) := by |
| 62 | have hcopy (p q : SurgeryEventRebuild.SliceMetric.{u}) (h : p = q) |
| 63 | (D : LeviCivitaData p.2) |
| 64 | (hD : ∀ x : p.1.carrier, D.curvatureTensorNorm x ≤ 1 ∧ |
| 65 | ∀ r : ℝ, 0 < r → r ≤ 1 → |
| 66 | ENNReal.ofReal (euclideanUnitBallLebesgueVolume.toReal * r ^ 3 / 2) ≤ |
| 67 | calibratedMetricVolume p.2 (p.2.ball x r)) : |
| 68 | ∀ x : q.1.carrier, |
| 69 | (SurgeryEventRebuild.relabel (C := fun z => LeviCivitaData z.2) h D).curvatureTensorNorm x ≤ 1 ∧ |
| 70 | ∀ r : ℝ, 0 < r → r ≤ 1 → |
| 71 | ENNReal.ofReal (euclideanUnitBallLebesgueVolume.toReal * r ^ 3 / 2) ≤ |
| 72 | calibratedMetricVolume q.2 (q.2.ball x r) := by |
| 73 | subst q |
| 74 | exact hD |
| 75 | unfold connection Splice.connection |
| 76 | rw [dif_pos I.terminal_pos] |
| 77 | exact hcopy ⟨F.slice 0, F.metric 0⟩ _ |
| 78 | (Splice.family_before F T (emptyCarrier (F.slice 0)) |
| 79 | (emptyFlow (F.metric 0) T) I.terminal_pos).symm (F.connection 0) F.initial_normalized |
| 80 | |
| 81 | theorem surgery_times_finite : F.surgery_times.Finite := by |
| 82 | apply I.last_slab.initial_events_finite.subset |
| 83 | intro t ht |
| 84 | exact ⟨ht, I.time_domain_eq ▸ F.surgery_times_subset ht⟩ |
| 85 | |
| 86 | omit I in |
| 87 | theorem event_time_old (U : ℝ) (hU : U ∈ Splice.eventTimes F T) |
| 88 | [Nonempty (slice F T U).carrier] : U ∈ F.surgery_times := by |
| 89 | rcases mem_insert_iff.mp hU with hEq | hold |
| 90 | · subst U |
| 91 | let := slice_empty_after F T le_rfl |
| 92 | obtain ⟨x⟩ := (inferInstance : Nonempty (slice F T T).carrier) |
| 93 | exact isEmptyElim x |
| 94 | · exact hold |
| 95 | |
| 96 | theorem vanishing_time_eq (U : ℝ) (hU : U ∈ Splice.eventTimes F T) |
| 97 | [IsEmpty (slice F T U).carrier] : U = T := by |
| 98 | rcases mem_insert_iff.mp hU with hEq | hold |
| 99 | · exact hEq |
| 100 | · have hUF := F.surgery_times_subset hold |
| 101 | have hUT : U < T := (I.time_domain_eq ▸ hUF).2 |
| 102 | obtain ⟨x⟩ := I.slices_nonempty U hUF |
| 103 | have y : (slice F T U).carrier := Splice.identifyBefore F T (emptyCarrier (F.slice 0)) |
| 104 | (emptyFlow (F.metric 0) T) U hUT x |
| 105 | exact isEmptyElim y |
| 106 | |
| 107 | end PoincareMT.Surgery.Extinction |