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.History.OpenSlices |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.Splice.Family |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.Splice.Nonempty |
| 4 | |
| 5 | /-! |
| 6 | # The actual permanent empty ordinary tail |
| 7 | |
| 8 | The empty open submanifold of an old slice supplies a concrete smooth |
| 9 | carrier and metric. Its constant flow exists for all later physical times |
| 10 | and gives the post-terminal family for permanent extinction. |
| 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 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle Topology ENNReal |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.Surgery.Extinction |
| 23 | |
| 24 | def emptyCarrier (S : GeneralizedSliceCarrier.{u}) : GeneralizedSliceCarrier.{u} := |
| 25 | S.openSubset ⊥ |
| 26 | |
| 27 | instance emptyCarrier_isEmpty (S : GeneralizedSliceCarrier.{u}) : |
| 28 | IsEmpty (emptyCarrier S).carrier := |
| 29 | ⟨fun x => x.property⟩ |
| 30 | |
| 31 | def emptyMetric {S : GeneralizedSliceCarrier.{u}} (g : RiemannianMetric 3 S.carrier) : |
| 32 | RiemannianMetric 3 (emptyCarrier S).carrier := S.openSubsetMetric ⊥ g |
| 33 | |
| 34 | def emptyFlow {S : GeneralizedSliceCarrier.{u}} (g : RiemannianMetric 3 S.carrier) (T : ℝ) : |
| 35 | RicciFlow 3 (emptyCarrier S).carrier {t : ℝ | T ≤ t ∧ ENNReal.ofReal t < ⊤} where |
| 36 | metric _ := emptyMetric g |
| 37 | connection _ := (emptyMetric g).leviCivitaData |
| 38 | interval := by |
| 39 | constructor |
| 40 | intro a ha b _ x hx |
| 41 | exact ⟨ha.1.trans hx.1, ENNReal.ofReal_lt_top⟩ |
| 42 | nontrivial := ⟨T, ⟨le_rfl, ENNReal.ofReal_lt_top⟩, |
| 43 | T + 1, ⟨by linarith, ENNReal.ofReal_lt_top⟩, by linarith⟩ |
| 44 | smooth := by intro p _; exact isEmptyElim p.2 |
| 45 | equation _ _ x := isEmptyElim x |
| 46 | |
| 47 | variable (F : SurgeryFlowData.{u}) (T : ℝ) |
| 48 | |
| 49 | def slice (t : ℝ) : GeneralizedSliceCarrier.{u} := |
| 50 | Splice.slice F T (emptyCarrier (F.slice 0)) (emptyFlow (F.metric 0) T) t |
| 51 | |
| 52 | def metric (t : ℝ) : RiemannianMetric 3 (slice F T t).carrier := |
| 53 | Splice.metric F T (emptyCarrier (F.slice 0)) (emptyFlow (F.metric 0) T) t |
| 54 | |
| 55 | theorem slice_empty_after {t : ℝ} (ht : T ≤ t) : IsEmpty (slice F T t).carrier := by |
| 56 | change IsEmpty |
| 57 | (Splice.family F T (emptyCarrier (F.slice 0)) (emptyFlow (F.metric 0) T) t).1.carrier |
| 58 | rw [Splice.family_after F T _ _ ht] |
| 59 | exact emptyCarrier_isEmpty _ |
| 60 | |
| 61 | theorem extinction_permanent (I : RepairedContinuationInput F T) |
| 62 | (s t : ℝ) (hs : 0 ≤ s) (hst : s ≤ t) (he : IsEmpty (slice F T s).carrier) : |
| 63 | IsEmpty (slice F T t).carrier := by |
| 64 | have hTs : T ≤ s := by |
| 65 | by_contra hn |
| 66 | have hsT : s < T := lt_of_not_ge hn |
| 67 | have hsF : s ∈ F.time_domain := I.time_domain_eq ▸ (show s ∈ Ico 0 T from ⟨hs, hsT⟩) |
| 68 | obtain ⟨x⟩ := I.slices_nonempty s hsF |
| 69 | exact he.false |
| 70 | (Splice.identifyBefore F T (emptyCarrier (F.slice 0)) (emptyFlow (F.metric 0) T) s hsT x) |
| 71 | exact slice_empty_after F T (hTs.trans hst) |
| 72 | |
| 73 | end PoincareMT.Surgery.Extinction |