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.Induction.Noncollapse.Compat.GeneralizedEquation |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.Predecessors |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Continuation.Construction.RegularHistory |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.Spacetime.GeneralizedRicci |
| 5 | |
| 6 | /-! |
| 7 | # The actual regular history for Proposition 16.1 |
| 8 | |
| 9 | M33 constructs the history and M11/M12 realize its own boxes. Included |
| 10 | closed windows need no preterminal slab or maximal-domain equality. |
| 11 | Source: Morgan--Tian Proposition 14.12, p. 350, and the use of the smooth |
| 12 | part in the completion of Proposition 16.1, pp. 393-394. |
| 13 | -/ |
| 14 | |
| 15 | set_option autoImplicit false |
| 16 | |
| 17 | open Set |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | namespace PoincareMT.Proofs.M12 |
| 22 | export PoincareMT.EpochExtension.Spacetime (FlowBoxRicciGeometry) |
| 23 | end PoincareMT.Proofs.M12 |
| 24 | namespace PoincareMT.Proofs.M12 |
| 25 | export PoincareMT.EpochExtension.Spacetime (flowBoxRicciGeometry) |
| 26 | end PoincareMT.Proofs.M12 |
| 27 | |
| 28 | namespace PoincareMT |
| 29 | |
| 30 | structure M46RegularSpacetimeData {F : SurgeryFlowData.{u}} |
| 31 | (W : M33RegularHistoryWindow F) where |
| 32 | history : M33RegularHistoryData W |
| 33 | geometry : Proofs.M12.FlowBoxRicciGeometry history.generalized |
| 34 | |
| 35 | theorem M46Predecessors.regularSpacetime (P : M46Predecessors.{u}) |
| 36 | {F : SurgeryFlowData.{u}} (W : M33RegularHistoryWindow F) : |
| 37 | Nonempty (M46RegularSpacetimeData W) := by |
| 38 | obtain ⟨H⟩ := P.regular_history F W |
| 39 | obtain ⟨G⟩ := Proofs.M12.flowBoxRicciGeometry H.generalized P.m11 P.m12 |
| 40 | exact ⟨⟨H, G⟩⟩ |
| 41 | |
| 42 | theorem M46Predecessors.closedRegularSpacetime (P : M46Predecessors.{u}) |
| 43 | (F : SurgeryFlowData.{u}) (T : ℝ) (hT : 0 < T) (hTF : T ∈ F.time_domain) |
| 44 | (x : (F.slice T).carrier) : |
| 45 | Nonempty (M46RegularSpacetimeData (F.closedRegularHistoryWindow T hT hTF ⟨x⟩)) := |
| 46 | P.regularSpacetime _ |
| 47 | |
| 48 | /-- A positive-radius closed test cylinder already has positive terminal time. -/ |
| 49 | theorem SurgeryFlowCylinder.test_time_pos |
| 50 | {F : SurgeryFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 51 | {T r : ℝ} {U : Set C.carrier} (hr : 0 < r) |
| 52 | (e : SurgeryFlowCylinder F C T 1 (Icc (-r ^ 2) 0) U) : 0 < T := by |
| 53 | have ht := F.time_domain_nonnegative (e.time_subset |
| 54 | ⟨-r ^ 2, ⟨le_rfl, neg_nonpos.mpr (sq_nonneg r)⟩, rfl⟩) |
| 55 | simp only [div_one, mem_Ici] at ht |
| 56 | nlinarith [sq_pos_of_pos hr] |
| 57 | |
| 58 | end PoincareMT |