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.Operation |
| 2 | |
| 3 | /-! |
| 4 | # Permanent-extinction continuation from an empty controlled core |
| 5 | |
| 6 | The constructed vanishing operation extends the original flow to every |
| 7 | nonnegative time, with no later surgery and no nonempty post-terminal slice. |
| 8 | The event uses the proved fixed-epsilon round sectional positivity theorem. |
| 9 | Source: Morgan--Tian, Definition 15.8 and Theorem 15.9, pp. 361-363, |
| 10 | and Section 17.2, p. 409. |
| 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.RepairedContinuationLimitBridge |
| 23 | |
| 24 | open Surgery.Extinction |
| 25 | |
| 26 | variable {M : Type u} [TopologicalSpace M] |
| 27 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 28 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] [SecondCountableTopology M] |
| 29 | {G : GeneralizedRicciFlowData.{u}} {T : ℝ} {H : SingularTimeAssumptions G T M} |
| 30 | {L : RepairedSingularRegularLimitData H} {N : RepairedHornSelectionData H} |
| 31 | {F : SurgeryFlowData.{u}} {I : RepairedContinuationInput F T} |
| 32 | (B : RepairedContinuationLimitBridge H L N I) |
| 33 | (hempty : I.controlled_core = ∅) |
| 34 | |
| 35 | def extinctionConclusion : RepairedContinuationConclusion I := by |
| 36 | let V := B.vanishingEvent hempty |
| 37 | let V' := canonicalVanishingEvent I V |
| 38 | let hV := B.vanishingEvent_slab_compatibility hempty |
| 39 | let E := B.extinctionExtension hempty |
| 40 | let he := B.extinction_terminal_empty hempty |
| 41 | refine { |
| 42 | extension := E |
| 43 | old_event_data := old_event_preservation I V' hV |
| 44 | end_time := ⊤ |
| 45 | extends_past := ENNReal.ofReal_lt_top |
| 46 | time_domain_eq := rfl |
| 47 | surgery_at_terminal := B.extinction_surgery_at_terminal hempty |
| 48 | terminal_operation := .vanishing he |
| 49 | (B.extinctionOperation hempty) |
| 50 | terminal_nonempty_iff := ?_ |
| 51 | terminal_empty_iff := ⟨fun _ => he, fun _ => hempty⟩ |
| 52 | terminal_empty_end_time_top := fun _ => rfl |
| 53 | post_terminal_interval := post_terminal_interval I V' hV |
| 54 | admissible := admissible I V hV |
| 55 | pinched := pinched I V' hV |
| 56 | extinction_permanent := E.extended.extinction_permanent |
| 57 | no_later_surgery := fun t _ht ht => no_later_surgery I V' hV t ht |
| 58 | finite_end_slab := fun h => (h rfl).elim } |
| 59 | constructor |
| 60 | · intro hcore |
| 61 | rw [hempty] at hcore |
| 62 | exact (hcore.ne_empty rfl).elim |
| 63 | · rintro ⟨x⟩ |
| 64 | exact isEmptyElim x |
| 65 | |
| 66 | @[simp] theorem extinctionConclusion_end_time : |
| 67 | (B.extinctionConclusion hempty).end_time = ⊤ := rfl |
| 68 | |
| 69 | include B hempty in |
| 70 | theorem continuation_of_core_empty : Nonempty (RepairedBranchContinuationData I) := |
| 71 | ⟨⟨B.extinctionConclusion hempty⟩⟩ |
| 72 | |
| 73 | end PoincareMT.RepairedContinuationLimitBridge |