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.Flow.StrongBoundary |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.Terminal.Extinction.Event.CanonicalTail |
| 3 | |
| 4 | /-! |
| 5 | # Admissibility of the permanent empty continuation |
| 6 | |
| 7 | Old strong boundary and disappearing-region data are transported through |
| 8 | the actual extension. The terminal vanishing event is restricted to its |
| 9 | canonical tail, which follows from its own uniform scalar lower bound. |
| 10 | Source: Morgan--Tian, Assumptions (5)-(6) and Definition 15.8, pp. 360-362. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.Surgery.Extinction |
| 23 | |
| 24 | variable {F : SurgeryFlowData.{u}} {T : ℝ} (I : RepairedContinuationInput F T) |
| 25 | (V : SurgeryVanishingEventData F.parameters F.slice F.metric T) |
| 26 | (hV : ∀ a b hab hJ hfree, ∀ s t : ℝ, ∀ hs : s ∈ Icc a b, ∀ ht : t ∈ Icc a b, |
| 27 | ∀ hs' : s ∈ Ico V.tMinus T, ∀ ht' : t ∈ Ico V.tMinus T, ∀ x, |
| 28 | (F.regular_slabs a b hab hJ hfree).transport ⟨s, hs⟩ ⟨t, ht⟩ |
| 29 | (V.pre_identify ⟨s, hs'⟩ x) = V.pre_identify ⟨t, ht'⟩ x) |
| 30 | |
| 31 | theorem admissible : SurgeryFlowAdmissible (flow I (canonicalVanishingEvent I V) hV) := by |
| 32 | let V' := canonicalVanishingEvent I V |
| 33 | let E := extension I V' hV |
| 34 | constructor |
| 35 | · intro U hU hne i |
| 36 | let : Nonempty (slice F T U).carrier := hne |
| 37 | have hold := event_time_old U hU |
| 38 | let := I.slices_nonempty U (F.surgery_times_subset hold) |
| 39 | obtain ⟨N⟩ := I.admissible.strong_boundaries U hold i |
| 40 | exact ⟨strongBoundary I V' hV U hold hU i N⟩ |
| 41 | · intro U hU hne t ht x hx |
| 42 | let : Nonempty (slice F T U).carrier := hne |
| 43 | have hold := event_time_old U hU |
| 44 | let := I.slices_nonempty U (F.surgery_times_subset hold) |
| 45 | have hUT : U < T := (I.time_domain_eq ▸ F.surgery_times_subset hold).2 |
| 46 | have htF : t.1 ∈ F.time_domain := I.time_domain_eq ▸ |
| 47 | (show t.1 ∈ Ico 0 T from |
| 48 | ⟨(F.event U hold).tMinus_nonnegative.trans t.2.1, t.2.2.trans hUT⟩) |
| 49 | let e := Splice.identifyBefore F T (emptyCarrier (F.slice 0)) (emptyFlow (F.metric 0) T) |
| 50 | (F.event U hold).tMinus ((F.event U hold).tMinus_lt.trans hUT) |
| 51 | obtain ⟨y, rfl⟩ := e.surjective x |
| 52 | have hy : y ∉ interior (F.event U hold).retained_pre := by |
| 53 | intro hy |
| 54 | apply hx |
| 55 | change e y ∈ interior (Splice.oldEvent F T (emptyCarrier (F.slice 0)) |
| 56 | (emptyFlow (F.metric 0) T) U hold hUT).retained_pre |
| 57 | rw [← Splice.oldEvent_retained_pre_image F T (emptyCarrier (F.slice 0)) |
| 58 | (emptyFlow (F.metric 0) T) U hold hUT] |
| 59 | change e.toHomeomorph y ∈ interior (e.toHomeomorph '' (F.event U hold).retained_pre) |
| 60 | rw [← e.toHomeomorph.image_interior] |
| 61 | exact ⟨y, hy, rfl⟩ |
| 62 | have hc := E.canonical_control_direct t.1 htF ((F.event U hold).pre_identify t y) |
| 63 | F.parameters.epsilon F.parameters.C |
| 64 | (I.admissible.strong_disappearing U hold t ht y hy) |
| 65 | have hp := Splice.oldEvent_pre_identify F T (emptyCarrier (F.slice 0)) |
| 66 | (emptyFlow (F.metric 0) T) U hold hUT t y |
| 67 | exact hp.symm ▸ hc |
| 68 | · intro U hU he t ht x |
| 69 | let : IsEmpty (slice F T U).carrier := he |
| 70 | have hEq := vanishing_time_eq I U hU |
| 71 | subst U |
| 72 | obtain ⟨y, rfl⟩ := (Splice.identifyBefore F T (emptyCarrier (F.slice 0)) |
| 73 | (emptyFlow (F.metric 0) T) V'.tMinus V'.tMinus_lt).surjective x |
| 74 | have htF : t.1 ∈ F.time_domain := I.time_domain_eq ▸ |
| 75 | (show t.1 ∈ Ico 0 T from ⟨V'.tMinus_nonnegative.trans t.2.1, t.2.2⟩) |
| 76 | have hc := E.canonical_control_direct t.1 htF (V'.pre_identify t y) |
| 77 | F.parameters.epsilon F.parameters.C (canonicalVanishingEvent_control I V t ht y) |
| 78 | have hp := Splice.vanishingEvent_pre_identify F T (emptyCarrier (F.slice 0)) |
| 79 | (emptyFlow (F.metric 0) T) V' t y |
| 80 | exact hp.symm ▸ hc |
| 81 | |
| 82 | end PoincareMT.Surgery.Extinction |