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.Blowup.Construction.SourceNames |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Controlled.Geometry |
| 3 | import PoincareLib.Geometry.Spacetime.Atlas |
| 4 | import PoincareLib.Geometry.Riemannian.Homothety.Connection.Scaling |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.Metric.Curvature.Conformal.ConformalPinching |
| 6 | |
| 7 | /-! |
| 8 | # Negative-curvature normalization on an ordinary cylinder |
| 9 | |
| 10 | Morgan--Tian Definition 3.40, p. 61, and Corollary 11.3, p. 269, |
| 11 | with the curvature conventions of pp. 5-7. The actual ordinary metric |
| 12 | is the normalized pullback of the generalized metric. Local-isometry |
| 13 | invariance and positive scaling identify the native negative part for |
| 14 | the retained connections at every included time, including endpoints. |
| 15 | -/ |
| 16 | |
| 17 | set_option autoImplicit false |
| 18 | |
| 19 | open Set |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT.M30.Cylinder |
| 25 | |
| 26 | variable {F : GeneralizedRicciFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 27 | {origin scale : ℝ} {J : SpacetimeInterval} |
| 28 | {U : TopologicalSpace.Opens C.carrier} |
| 29 | |
| 30 | /-- The actual ordinary connection has the negative-curvature normalization |
| 31 | of Definition 3.40, p. 61, used in Corollary 11.3, p. 269. This is a |
| 32 | spatial identity on the open source at every included time. -/ |
| 33 | theorem negativeCurvaturePart_of_ordinaryFlow |
| 34 | (e : GeneralizedFlowCylinder F C origin scale J.domain U) |
| 35 | (G : RicciFlow 3 U J.domain) |
| 36 | (hG : ∀ s (hs : s ∈ J.domain) (x : U) (v w : TangentSpace (𝓡 3) x), |
| 37 | (G.metric s).inner x v w = |
| 38 | e.pullbackInner s hs x.val |
| 39 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x v) |
| 40 | (mfderiv (𝓡 3) (𝓡 3) (Subtype.val : U → C.carrier) x w)) |
| 41 | (s : ℝ) (hs : s ∈ J.domain) (x : U) : |
| 42 | (G.connection s).negativeCurvaturePart x = |
| 43 | (F.connection (e.pointMap s hs x.val).1).negativeCurvaturePart |
| 44 | (e.pointMap s hs x.val).2 / scale := by |
| 45 | let f : U → (F.slice (origin + s / scale)).carrier := fun y => e.forward s hs y.val |
| 46 | let h := M13.scaleSmoothMetric (F.metric (origin + s / scale)) scale e.scale_pos |
| 47 | let D := M13.scaleLeviCivitaData (F.connection (origin + s / scale)) scale e.scale_pos |
| 48 | have hf : ContMDiff (𝓡 3) (𝓡 3) ∞ f := by |
| 49 | intro y |
| 50 | exact ((e.forward_smooth s hs y.val y.property).contMDiffAt |
| 51 | (U.isOpen.mem_nhds y.property)).comp y (contMDiff_subtype_val y) |
| 52 | have hmetric : ∀ y ∈ (univ : Set U), ∀ v w : TangentSpace (𝓡 3) y, |
| 53 | (G.metric s).inner y v w = h.inner (f y) |
| 54 | (mfderiv (𝓡 3) (𝓡 3) f y v) (mfderiv (𝓡 3) (𝓡 3) f y w) := by |
| 55 | intro y _ v w |
| 56 | have hforward := (e.forward_smooth s hs y.val y.property).contMDiffAt |
| 57 | (U.isOpen.mem_nhds y.property) |
| 58 | have hder := mfderiv_comp y (hforward.mdifferentiableAt (by simp)) |
| 59 | (contMDiff_subtype_val (n := ∞) y |>.mdifferentiableAt (by simp)) |
| 60 | change mfderiv (𝓡 3) (𝓡 3) f y = _ at hder |
| 61 | rw [hG s hs y v w] |
| 62 | change _ = scale * (F.metric (origin + s / scale)).inner (f y) |
| 63 | (mfderiv (𝓡 3) (𝓡 3) f y v) (mfderiv (𝓡 3) (𝓡 3) f y w) |
| 64 | rw [hder] |
| 65 | rfl |
| 66 | have hlocal := MetricSurgery.negativeCurvaturePart_eq_of_local_isometry |
| 67 | (G.connection s) D isOpen_univ hf.contMDiffOn hmetric (mem_univ x) |
| 68 | have hscale := MetricSurgery.negativeCurvaturePart_positiveScaling_const |
| 69 | (F.connection (origin + s / scale)) e.scale_pos D (f x) |
| 70 | change (G.connection s).negativeCurvaturePart x = |
| 71 | (F.connection (origin + s / scale)).negativeCurvaturePart (f x) / scale |
| 72 | simpa only [div_eq_mul_inv, mul_comm] using hlocal.trans hscale |
| 73 | |
| 74 | end PoincareMT.M30.Cylinder |