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.Generalized.OrdinaryCurvature |
| 2 | import PoincareLib.Geometry.RicciFlow.Blowup.Construction.Generalized.OrdinaryNegativeDefect |
| 3 | |
| 4 | /-! |
| 5 | # Curvature readout for arbitrary retained cylinder pullbacks |
| 6 | |
| 7 | Morgan--Tian Definition 3.40, p. 61, and Corollary 11.3, p. 269. |
| 8 | A supplied flow on a fixed manifold may pull back an actual cylinder in |
| 9 | another universe. Local-isometry invariance and positive homothety retain |
| 10 | its scalar curvature, full curvature norm and negative sectional part. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | universe u v |
| 19 | |
| 20 | namespace PoincareMT.M30.Cylinder |
| 21 | |
| 22 | /-- Actual curvature normalization through a retained cylinder map, |
| 23 | allowing independent source and domain universes (Definition 3.40 and |
| 24 | Corollary 11.3, pp. 61 and 269). The supplied connection is preserved. -/ |
| 25 | theorem curvature_of_pullbackFlow |
| 26 | {F : GeneralizedRicciFlowData.{u}} {C : GeneralizedSliceCarrier.{u}} |
| 27 | {origin scale : ℝ} {J : SpacetimeInterval} {U : TopologicalSpace.Opens C.carrier} |
| 28 | (e : GeneralizedFlowCylinder F C origin scale J.domain U) |
| 29 | {Y : Type v} [TopologicalSpace Y] |
| 30 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) Y] [IsManifold (𝓡 3) ∞ Y] |
| 31 | (f : Y → C.carrier) (hf : ContMDiff (𝓡 3) (𝓡 3) ∞ f) |
| 32 | (himage : ∀ x, f x ∈ U) (G : RicciFlow 3 Y J.domain) |
| 33 | (hG : ∀ s (hs : s ∈ J.domain) (x : Y) (v w : TangentSpace (𝓡 3) x), |
| 34 | (G.metric s).inner x v w = e.pullbackInner s hs (f x) |
| 35 | (mfderiv (𝓡 3) (𝓡 3) f x v) (mfderiv (𝓡 3) (𝓡 3) f x w)) |
| 36 | (s : ℝ) (hs : s ∈ J.domain) (x : Y) : |
| 37 | (G.connection s).scalarCurvature x = F.scalar (e.pointMap s hs (f x)) / scale ∧ |
| 38 | (G.connection s).curvatureTensorNorm x = |
| 39 | F.curvatureNorm (e.pointMap s hs (f x)) / scale ∧ |
| 40 | (G.connection s).negativeCurvaturePart x = |
| 41 | (F.connection (e.pointMap s hs (f x)).1).negativeCurvaturePart |
| 42 | (e.pointMap s hs (f x)).2 / scale := by |
| 43 | let q : Y → (F.slice (origin + s / scale)).carrier := e.forward s hs ∘ f |
| 44 | let h := M13.scaleSmoothMetric (F.metric (origin + s / scale)) scale e.scale_pos |
| 45 | let D := M13.scaleLeviCivitaData (F.connection (origin + s / scale)) scale e.scale_pos |
| 46 | have hq : ContMDiff (𝓡 3) (𝓡 3) ∞ q := by |
| 47 | intro y |
| 48 | exact ((e.forward_smooth s hs (f y) (himage y)).contMDiffAt |
| 49 | (U.isOpen.mem_nhds (himage y))).comp y (hf y) |
| 50 | have hmetric : ∀ y ∈ (univ : Set Y), ∀ v w : TangentSpace (𝓡 3) y, |
| 51 | (G.metric s).inner y v w = h.inner (q y) |
| 52 | (mfderiv (𝓡 3) (𝓡 3) q y v) (mfderiv (𝓡 3) (𝓡 3) q y w) := by |
| 53 | intro y _ v w |
| 54 | have hforward := (e.forward_smooth s hs (f y) (himage y)).contMDiffAt |
| 55 | (U.isOpen.mem_nhds (himage y)) |
| 56 | have hderiv := mfderiv_comp y (hforward.mdifferentiableAt (by simp)) |
| 57 | ((hf y).mdifferentiableAt (by simp)) |
| 58 | change mfderiv (𝓡 3) (𝓡 3) q y = _ at hderiv |
| 59 | rw [hG s hs y v w] |
| 60 | change _ = scale * (F.metric (origin + s / scale)).inner (q y) |
| 61 | (mfderiv (𝓡 3) (𝓡 3) q y v) (mfderiv (𝓡 3) (𝓡 3) q y w) |
| 62 | rw [hderiv] |
| 63 | rfl |
| 64 | have hscalar := (G.connection s).scalarCurvature_eq_of_local_isometry D |
| 65 | isOpen_univ hq.contMDiffOn hmetric (mem_univ x) |
| 66 | have hnorm := (G.connection s).curvatureTensorNorm_eq_of_local_isometry D |
| 67 | isOpen_univ hq.contMDiffOn hmetric (mem_univ x) |
| 68 | have hnegative := MetricSurgery.negativeCurvaturePart_eq_of_local_isometry |
| 69 | (G.connection s) D isOpen_univ hq.contMDiffOn hmetric (mem_univ x) |
| 70 | have hhom := M13.identity_metricHomothety |
| 71 | (F.metric (origin + s / scale)) scale e.scale_pos |
| 72 | have hscalarScale := M13.homothety_scalarCurvature_eq |
| 73 | (F.metric (origin + s / scale)) h |
| 74 | (Diffeomorph.refl (𝓡 3) (F.slice (origin + s / scale)).carrier ∞) |
| 75 | scale e.scale_pos hhom (F.connection (origin + s / scale)) D (q x) |
| 76 | have hnormScale := M13.homothety_curvatureTensorNorm_eq |
| 77 | (F.metric (origin + s / scale)) h |
| 78 | (Diffeomorph.refl (𝓡 3) (F.slice (origin + s / scale)).carrier ∞) |
| 79 | scale e.scale_pos hhom (F.connection (origin + s / scale)) D (q x) |
| 80 | have hnegativeScale := MetricSurgery.negativeCurvaturePart_positiveScaling_const |
| 81 | (F.connection (origin + s / scale)) e.scale_pos D (q x) |
| 82 | refine ⟨hscalar.trans hscalarScale, hnorm.trans hnormScale, ?_⟩ |
| 83 | change (G.connection s).negativeCurvaturePart x = |
| 84 | (F.connection (origin + s / scale)).negativeCurvaturePart (q x) / scale |
| 85 | simpa only [div_eq_mul_inv, mul_comm] using hnegative.trans hnegativeScale |
| 86 | |
| 87 | end PoincareMT.M30.Cylinder |