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.InitialEstimates.EndTranslation |
| 2 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.JetBounds.CurvatureNaturality |
| 3 | import PoincareLib.Geometry.Riemannian.Curvature.LocalIsometryInvariants |
| 4 | |
| 5 | /-! |
| 6 | # Curvature transport along an arbitrary cylindrical end |
| 7 | |
| 8 | Morgan-Tian Lemma 12.3, pp. 294-295. The actual local end translations |
| 9 | preserve scalar curvature and the geometric norm of every iterated |
| 10 | covariant curvature derivative. In particular every positive-height |
| 11 | value agrees with a value on the compact height-one sphere. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | namespace PoincareMT.M34 |
| 19 | |
| 20 | variable {g : RiemannianMetric 3 StandardCapSpace} |
| 21 | |
| 22 | set_option backward.isDefEq.respectTransparency false in |
| 23 | /-- Every covariant curvature derivative norm is constant along an axial |
| 24 | line of the supplied positive end (Lemma 12.3, pp. 294-295). -/ |
| 25 | theorem end_curvatureDerivativeNorm_translate (D : LeviCivitaData g) |
| 26 | (e : StandardCylindricalEnd g) (s : ℝ) {z : StandardCylinderSpace} |
| 27 | (hz : 0 < z.2) (hsz : 0 < z.2 + s) (k : ℕ) : |
| 28 | D.curvatureDerivativeNorm k (e.coordinate z) = |
| 29 | D.curvatureDerivativeNorm k (e.coordinate (z.1, z.2 + s)) := by |
| 30 | obtain ⟨U, hU, hzU, hf, hmetric⟩ := endAxialTranslation_local_isometry e s hz hsz |
| 31 | have hinv : ∀ x ∈ U, (mfderiv (𝓡 3) (𝓡 3) (endAxialTranslation e s) x).IsInvertible := by |
| 32 | intro x hx |
| 33 | have hbij := g.mfderiv_bijective_of_pullback_eq g x |
| 34 | (fun u v => (hmetric x hx u v).symm) |
| 35 | let L : StandardCapSpace →L[ℝ] StandardCapSpace := |
| 36 | mfderiv (𝓡 3) (𝓡 3) (endAxialTranslation e s) x |
| 37 | change L.IsInvertible |
| 38 | exact ⟨ContinuousLinearEquiv.ofBijective L (LinearMap.ker_eq_bot.mpr hbij.1) |
| 39 | (LinearMap.range_eq_top.mpr hbij.2), rfl⟩ |
| 40 | have h := D.curvatureDerivativeNorm_eq_pullback D hU hf hinv hmetric k hzU |
| 41 | simpa only [endAxialTranslation_coordinate e s hz.le] using h |
| 42 | |
| 43 | /-- Scalar curvature is constant along an axial line of the supplied |
| 44 | positive end (Lemma 12.3, pp. 294-295). -/ |
| 45 | theorem end_scalarCurvature_translate (D : LeviCivitaData g) |
| 46 | (e : StandardCylindricalEnd g) (s : ℝ) {z : StandardCylinderSpace} |
| 47 | (hz : 0 < z.2) (hsz : 0 < z.2 + s) : |
| 48 | D.scalarCurvature (e.coordinate z) = |
| 49 | D.scalarCurvature (e.coordinate (z.1, z.2 + s)) := by |
| 50 | obtain ⟨U, hU, hzU, hf, hmetric⟩ := endAxialTranslation_local_isometry e s hz hsz |
| 51 | have h := D.scalarCurvature_eq_of_local_isometry D hU hf hmetric hzU |
| 52 | simpa only [endAxialTranslation_coordinate e s hz.le] using h |
| 53 | |
| 54 | end PoincareMT.M34 |