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.InitialMetric.Completeness |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.InitialMetric.Rotations |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.InitialMetric.CylindricalEnd |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Existence.InitialMetric.Curvature |
| 5 | |
| 6 | /-! |
| 7 | # Existence of a standard initial metric |
| 8 | |
| 9 | Morgan-Tian Definition 12.1 and Lemma 12.2, printed pp. 293-295. The |
| 10 | normalized smooth concave profile gives a complete rotational metric |
| 11 | with a round tip, nonnegative sectional curvature, and an exact radius |
| 12 | sqrt(2) cylindrical end with a smooth boundary collar. All fields below |
| 13 | are proved against the frozen StandardInitialMetric structure. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | namespace PoincareMT.M34 |
| 19 | |
| 20 | /-- The complete standard initial metric associated to a normalized |
| 21 | positive cutoff parameter (Definition 12.1 and Lemma 12.2, pp. 293-295). -/ |
| 22 | noncomputable def standardInitialMetricOfParameter (a : ℝ) (ha : 0 < a) |
| 23 | (hapi : a ≤ Real.pi / 2) (hn : capProfile a Real.pi = Real.sqrt 2) : |
| 24 | StandardInitialMetric where |
| 25 | metric := capRiemannianMetric a ha hapi |
| 26 | connection := capLeviCivitaData a ha hapi |
| 27 | complete := capRiemannianMetric_complete ha hapi |
| 28 | nonnegative_sectional := capNonnegativeSectionalCurvature ha hapi (capLeviCivitaData a ha hapi) |
| 29 | rotation_invariant := capRiemannianMetric_rotation_invariant a ha hapi |
| 30 | cylindrical_end := capCylindricalEnd ha hapi hn |
| 31 | tip_sectional_curvature := capTipSectionalCurvature ha hapi (capLeviCivitaData a ha hapi) |
| 32 | |
| 33 | /-- A standard initial metric exists, with every geometric field |
| 34 | constructed rather than supplied (Morgan-Tian Lemma 12.2, pp. 294-295). -/ |
| 35 | theorem standardInitialMetric_exists : Nonempty StandardInitialMetric := by |
| 36 | obtain ⟨a, ha, hn⟩ := exists_capProfile_normalized |
| 37 | exact ⟨standardInitialMetricOfParameter a ha.1 ha.2.le hn⟩ |
| 38 | |
| 39 | end PoincareMT.M34 |