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.ParabolicRescaling |
| 2 | import PoincareLib.Geometry.RicciFlow.Generalized.ReducedGeometry.SourceNames.ParabolicRescaling |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Persistence.SourceNames.Homothety |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.Seed.CylinderTail |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.StableSet.Seed.CylinderMetricComparison |
| 6 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.Noncollapse.RegularSpacetime |
| 7 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.SliceGeometry.GeneralizedSlices |
| 8 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.History.Transport.SurgeryCylinderRestriction |
| 9 | import PoincareLib.Geometry.RicciFlow.Surgery.Induction.EpochExtension.History.Transport.GuardedCylinders |
| 10 | |
| 11 | /-! |
| 12 | # The same physical seed cylinder in the realized history |
| 13 | |
| 14 | Morgan--Tian Claim 16.27, p. 393. The short delay is strictly inside |
| 15 | the original cylinder. Every point, including its left endpoint, is |
| 16 | therefore retained at a surgery and belongs to the actual regular |
| 17 | history. The history package preserves the actual point maps and |
| 18 | pullback metrics; M13 identifies the scalar curvature on that map. |
| 19 | -/ |
| 20 | |
| 21 | set_option autoImplicit false |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | |
| 24 | open Set |
| 25 | open scoped Manifold ContDiff Bundle |
| 26 | |
| 27 | universe u |
| 28 | |
| 29 | namespace PoincareMT.M13 |
| 30 | export PoincareMT.EpochExtension.SliceGeometry (originalSlice_scalar) |
| 31 | end PoincareMT.M13 |
| 32 | |
| 33 | namespace PoincareMT.Proofs.M46 |
| 34 | |
| 35 | variable {F : SurgeryFlowData.{u}} {window : M33RegularHistoryWindow F} |
| 36 | |
| 37 | /-- Restrict the longer cylinder only after using its earlier points |
| 38 | to prove regularity of the entire closed seed interval. -/ |
| 39 | theorem exists_realized_seed_cylinder (R : M46RegularSpacetimeData window) |
| 40 | {C : GeneralizedSliceCarrier.{u}} {origin d duration : ℝ} |
| 41 | (hd : 0 < d) (hduration : d < duration) |
| 42 | {J : SpacetimeInterval} (hJ : J.domain = Icc (-d) 0) |
| 43 | {U : TopologicalSpace.Opens C.carrier} |
| 44 | (e : SurgeryFlowCylinder F C origin 1 (Icc (-duration) 0) U) |
| 45 | (htime : ∀ s ∈ J.domain, origin + s / 1 ∈ R.history.generalized.interval) : |
| 46 | ∃ lifted : GeneralizedFlowCylinder R.history.generalized C origin 1 J.domain U, |
| 47 | (∀ s hs x, x ∈ U → |
| 48 | R.history.history.forward (origin + s / 1) (htime s hs) |
| 49 | (lifted.forward s hs x) = e.forward s |
| 50 | (show s ∈ Icc (-duration) 0 from by |
| 51 | have h := hJ ▸ hs; exact ⟨by linarith [h.1], h.2⟩) x) ∧ |
| 52 | (∀ s hs x, x ∈ U → ∀ v w : TangentSpace (𝓡 3) x, |
| 53 | lifted.pullbackInner s hs x v w = e.pullbackInner s |
| 54 | (show s ∈ Icc (-duration) 0 from by |
| 55 | have h := hJ ▸ hs; exact ⟨by linarith [h.1], h.2⟩) x v w) := by |
| 56 | have hsub : J.domain ⊆ Icc (-duration) 0 := by |
| 57 | rw [hJ] |
| 58 | exact Icc_subset_Icc (by linarith) le_rfl |
| 59 | let short := e.restrict hsub J.ordConnected (Subset.refl (U : Set C.carrier)) |
| 60 | have hregular (s : ℝ) (hs : s ∈ J.domain) : |
| 61 | short.forward s hs '' U ⊆ m33RegularRegion F (origin + s / 1) := by |
| 62 | have hsJ : s ∈ Icc (-d) 0 := hJ ▸ hs |
| 63 | exact e.regular_image_of_earlier (hsub hs) |
| 64 | ⟨-duration, ⟨le_rfl, by linarith⟩, by linarith [hsJ.1]⟩ |
| 65 | exact R.history.cylinders_from_surgery C origin 1 J.domain U U.isOpen htime short hregular |
| 66 | |
| 67 | /-- Scalar curvature on the lifted point is exactly scalar curvature |
| 68 | at its actual physical image; the selected history is unchanged. -/ |
| 69 | theorem realized_seed_cylinder_scalar (P : M46Predecessors.{u}) |
| 70 | (R : M46RegularSpacetimeData window) |
| 71 | {C : GeneralizedSliceCarrier.{u}} {origin : ℝ} {J : SpacetimeInterval} |
| 72 | {U : TopologicalSpace.Opens C.carrier} |
| 73 | (e : GeneralizedFlowCylinder R.history.generalized C origin 1 J.domain U) |
| 74 | (s : ℝ) (hs : s ∈ J.domain) (htime : origin + s / 1 ∈ R.history.generalized.interval) |
| 75 | (x : U) : |
| 76 | horizontalScalarCurvature R.geometry.toLGeometry.leafwise (e.pointMap s hs x.val) = |
| 77 | (F.connection (origin + s / 1)).scalarCurvature |
| 78 | (R.history.history.forward (origin + s / 1) htime (e.forward s hs x.val)) := by |
| 79 | change horizontalScalarCurvature R.geometry.leafwise |
| 80 | (⟨origin + s / 1, e.forward s hs x.val⟩ : R.history.generalized.point) = _ |
| 81 | rw [M13.originalSlice_scalar R.geometry P.m13, |
| 82 | ← R.history.scalar_pullback (origin + s / 1) htime] |
| 83 | |
| 84 | end PoincareMT.Proofs.M46 |