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.Soliton.Models.Transport.Canonical |
| 2 | import PoincareLib.Geometry.RicciFlow.Soliton.ThreeDimensional.Models |
| 3 | import PoincareLib.Geometry.Riemannian.Metric.Product.Curvature |
| 4 | import PoincareLib.Geometry.Riemannian.SpaceForm.Sectional |
| 5 | import PoincareLib.Geometry.Riemannian.Curvature.LocalIsometryInvariants |
| 6 | |
| 7 | /-! |
| 8 | # Scalar curvature of the noncompact shrinking models |
| 9 | |
| 10 | Both exact cylinder alternatives have scalar curvature `-1 / t` at every |
| 11 | negative time. This follows from the sphere factor and local metric |
| 12 | transport, independently of curvature-evolution services. |
| 13 | Reference: Morgan--Tian, Theorem 9.42, pp. 206--208. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open Set Poincare.Geometry.Riemannian.SpaceForm |
| 20 | open scoped Manifold ContDiff Bundle Topology |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | private theorem cylinder_sphere_scalar (t : ℝ) (ht : t < 0) (x : UnitTwoSphere) : |
| 27 | (RicciFlow.Splitting.RoundCylinderSurface.sphereConnection t).scalarCurvature x = |
| 28 | -1 / t := by |
| 29 | have hround : (roundSphereMetric 2).leviCivitaData.scalarCurvature x = 2 := by |
| 30 | have h := (roundSphereMetric 2).leviCivitaData.scalarCurvature_of_constant_sectional |
| 31 | x 1 (roundSphereMetric_unit_sectionalCurvature x) |
| 32 | norm_num at h ⊢ |
| 33 | exact h |
| 34 | rw [RicciFlow.Splitting.RoundCylinderSurface.sphereConnection, |
| 35 | rescaledMetric_scalarCurvature, hround, |
| 36 | RicciFlow.Splitting.RoundCylinderSurface.scale, if_pos ht] |
| 37 | field_simp |
| 38 | |
| 39 | namespace SphereLineProductData |
| 40 | |
| 41 | variable {P : Type u} [TopologicalSpace P] |
| 42 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) P] [IsManifold (𝓡 3) ∞ P] |
| 43 | (B : SphereLineProductData (P := P)) |
| 44 | |
| 45 | local instance curvatureSurfaceTopology : TopologicalSpace B.surface := B.surface_topology |
| 46 | local instance curvatureSurfaceChartedSpace : |
| 47 | ChartedSpace (EuclideanSpace ℝ (Fin 2)) B.surface := B.surface_charted |
| 48 | local instance curvatureSurfaceManifold : IsManifold (𝓡 2) ∞ B.surface := B.surface_manifold |
| 49 | local instance curvatureProductChartedSpace : |
| 50 | ChartedSpace (EuclideanSpace ℝ (Fin 3)) (B.surface × ℝ) := B.product_charted |
| 51 | local instance curvatureProductManifold : IsManifold (𝓡 3) ∞ (B.surface × ℝ) := |
| 52 | B.product_manifold |
| 53 | |
| 54 | theorem product_scalarCurvature (t : ℝ) (ht : t < 0) (p : B.surface × ℝ) : |
| 55 | (B.product_connection t).scalarCurvature p = -1 / t := by |
| 56 | let : ChartedSpace (EuclideanSpace ℝ (Fin (2 + 1))) (B.surface × ℝ) := B.product_charted |
| 57 | let : IsManifold (𝓡 (2 + 1)) ∞ (B.surface × ℝ) := B.product_manifold |
| 58 | let g := RicciFlow.Splitting.RoundCylinderSurface.sphereMetric t |
| 59 | let D := RicciFlow.Splitting.RoundCylinderSurface.sphereConnection t |
| 60 | let e := B.canonicalProductDiffeomorph |
| 61 | have hmetric (z : UnitTwoSphere × ℝ) |
| 62 | (v w : TangentSpace ((𝓡 2).prod 𝓘(ℝ, ℝ)) z) : |
| 63 | (B.product_metric t).inner (e z) |
| 64 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) e z v) |
| 65 | (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) e z w) = |
| 66 | g.inner z.1 v.1 w.1 + v.2 * w.2 := by |
| 67 | rw [B.canonicalProductDiffeomorph_inner t ht] |
| 68 | change _ = (rescaledMetric (roundSphereMetric 2) |
| 69 | (RicciFlow.Splitting.RoundCylinderSurface.scale t) |
| 70 | (RicciFlow.Splitting.RoundCylinderSurface.scale_pos t)).inner z.1 v.1 w.1 + _ |
| 71 | rw [rescaledMetric_inner, RicciFlow.Splitting.RoundCylinderSurface.scale, if_pos ht, |
| 72 | roundSphereMetric_inner, RiemannianMetric.euclideanMetric_inner] |
| 73 | have h := g.scalarCurvature_eq_of_line_product (B.product_metric t) D |
| 74 | (B.product_connection t) e hmetric (e.symm p) |
| 75 | rw [e.apply_symm_apply] at h |
| 76 | exact h.trans (cylinder_sphere_scalar t ht (e.symm p).1) |
| 77 | |
| 78 | end SphereLineProductData |
| 79 | |
| 80 | variable {M : Type u} [TopologicalSpace M] |
| 81 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] [IsManifold (𝓡 3) ∞ M] |
| 82 | [MeasurableSpace M] [BorelSpace M] [T2Space M] [T3Space M] |
| 83 | [SecondCountableTopology M] [ConnectedSpace M] |
| 84 | {S : GradientShrinkingSolitonData 3 M} {G : ShrinkingSolitonFlow S} |
| 85 | |
| 86 | theorem SphereLineProductCertificate.scalarCurvature |
| 87 | (C : SphereLineProductCertificate G) (t : ℝ) (ht : t < 0) (p : M) : |
| 88 | (G.flow.connection t).scalarCurvature p = -1 / t := by |
| 89 | let := C.surface_topology |
| 90 | let := C.product_charted |
| 91 | let := C.product_manifold |
| 92 | have h := (G.flow.connection t).scalarCurvature_eq_of_local_isometry |
| 93 | (C.product_connection t) isOpen_univ C.product_equiv.contMDiff.contMDiffOn |
| 94 | (fun x _ => C.flow_isometric_to_product t ht x) (mem_univ p) |
| 95 | exact h.trans (C.toSphereLineProductData.product_scalarCurvature t ht _) |
| 96 | |
| 97 | theorem QuotientSphereLineCertificate.scalarCurvature |
| 98 | (q : QuotientSphereLineCertificate G) (t : ℝ) (ht : t < 0) (p : M) : |
| 99 | (G.flow.connection t).scalarCurvature p = -1 / t := by |
| 100 | let := q.cover_topology |
| 101 | let := q.cover_charted |
| 102 | let := q.cover_manifold |
| 103 | let := q.product.surface_topology |
| 104 | let := q.product.product_charted |
| 105 | let := q.product.product_manifold |
| 106 | let := q.quotient_topology |
| 107 | let := q.quotient_charted |
| 108 | let := q.quotient_manifold |
| 109 | obtain ⟨e, he⟩ := q.flow_isometric_to_quotient |
| 110 | have hflow := (G.flow.connection t).scalarCurvature_eq_of_local_isometry |
| 111 | (q.quotient_connection t) isOpen_univ e.contMDiff.contMDiffOn |
| 112 | (fun x _ => he t ht x) (mem_univ p) |
| 113 | obtain ⟨z, hz⟩ := q.quotient_map_surjective (e p) |
| 114 | have hprod := (q.product.product_connection t).scalarCurvature_eq_of_local_isometry |
| 115 | (q.quotient_connection t) isOpen_univ q.quotient_map_smooth.contMDiffOn |
| 116 | (fun x _ => q.quotient_metric_pullback t ht x) (mem_univ z) |
| 117 | rw [hz] at hprod |
| 118 | exact hflow.trans (hprod.symm.trans (q.product.product_scalarCurvature t ht z)) |
| 119 | |
| 120 | theorem ThreeDimensionalSolitonModel.scalarCurvature_of_noncompact [NoncompactSpace M] |
| 121 | (C : ThreeDimensionalSolitonModel S G) (t : ℝ) (ht : t < 0) (p : M) : |
| 122 | (G.flow.connection t).scalarCurvature p = -1 / t := by |
| 123 | cases C with |
| 124 | | compactRound c => |
| 125 | exact ((not_compactSpace_iff.mpr (inferInstance : NoncompactSpace M)) c.compact).elim |
| 126 | | sphereLine c => exact c.scalarCurvature t ht p |
| 127 | | quotientSphereLine q => exact q.scalarCurvature t ht p |
| 128 | |
| 129 | theorem ThreeDimensionalSolitonModel.scalarCurvature_le_one_of_noncompact |
| 130 | [NoncompactSpace M] (C : ThreeDimensionalSolitonModel S G) |
| 131 | (t : ℝ) (ht : t ∈ Icc (-2 : ℝ) (-1)) (p : M) : |
| 132 | (G.flow.connection t).scalarCurvature p ≤ 1 := by |
| 133 | rw [C.scalarCurvature_of_noncompact t (by linarith [ht.2]) p] |
| 134 | rw [div_le_iff_of_neg (by linarith [ht.2] : t < 0)] |
| 135 | linarith [ht.2] |
| 136 | |
| 137 | end PoincareMT |