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.StandardCap.Existence.Lifetime.CanonicalGeometry.StrongNeckLocality |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.Analysis.Coordinates.RoundCylinderParametrizedJets |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.Singular.Geometry |
| 4 | |
| 5 | /-! |
| 6 | # Smoothness of actual captured generalized cylinder pullbacks |
| 7 | |
| 8 | The actual forward map composed with the cylinder coordinate gives an |
| 9 | ordinary metric pullback. Its derivative chain rule is precisely the |
| 10 | frozen generalized pullback. Source: Morgan-Tian Theorem 12.28, |
| 11 | pp. 323-324, and the source-smoothness step of the owned derivation. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | namespace PoincareMT.M34 |
| 23 | |
| 24 | /-- A smooth coordinate whose actual image is captured gives the |
| 25 | frozen coefficient smoothness of the generalized pullback at every |
| 26 | included time, including either endpoint. -/ |
| 27 | theorem generalizedCylinderPullback_roundCylinderTensorSmoothOn |
| 28 | {G : GeneralizedRicciFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 29 | {origin scale : ℝ} {K : Set ℝ} {U : Set C.carrier} |
| 30 | (e : GeneralizedFlowCylinder G C origin scale K U) (hU : IsOpen U) |
| 31 | {epsilon : ℝ} {coordinate : RoundCylinderSpace → C.carrier} |
| 32 | (hcoordinate : ContMDiffOn ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ coordinate |
| 33 | (univ ×ˢ Ioo (-epsilon⁻¹) epsilon⁻¹)) |
| 34 | (hcapture : MapsTo coordinate (univ ×ˢ Ioo (-epsilon⁻¹) epsilon⁻¹) U) |
| 35 | {s : ℝ} (hs : s ∈ K) : |
| 36 | RoundCylinderTensorSmoothOn epsilon (generalizedCylinderPullback e coordinate s) := by |
| 37 | have hcomp := (e.forward_smooth s hs).comp hcoordinate hcapture |
| 38 | have hsmooth := roundCylinderTensorSmoothOn_smul_pullback |
| 39 | (G.metric (origin + s / scale)) hcomp scale |
| 40 | apply hsmooth.congr_cylinder |
| 41 | intro z hz v w |
| 42 | have hφ := (hcoordinate.contMDiffAt |
| 43 | ((isOpen_univ.prod isOpen_Ioo).mem_nhds ⟨mem_univ _, hz⟩)).mdifferentiableAt (by simp) |
| 44 | have he := ((e.forward_smooth s hs).contMDiffAt |
| 45 | (hU.mem_nhds (hcapture ⟨mem_univ _, hz⟩))).mdifferentiableAt (by simp) |
| 46 | simp only [generalizedCylinderPullback, dif_pos hs] |
| 47 | change scale * (G.metric (origin + s / scale)).inner (e.forward s hs (coordinate z)) |
| 48 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ((e.forward s hs) ∘ coordinate) z v) |
| 49 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ((e.forward s hs) ∘ coordinate) z w) = |
| 50 | scale * (G.metric (origin + s / scale)).inner (e.forward s hs (coordinate z)) |
| 51 | ((mfderiv (𝓡 3) (𝓡 3) (e.forward s hs) (coordinate z)) |
| 52 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) coordinate z v)) |
| 53 | ((mfderiv (𝓡 3) (𝓡 3) (e.forward s hs) (coordinate z)) |
| 54 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) coordinate z w)) |
| 55 | rw [mfderiv_comp z he hφ] |
| 56 | rfl |
| 57 | |
| 58 | end PoincareMT.M34 |