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.Riemannian.MinimalSurface.Sphere.Analysis.MetricPullbackForm |
| 2 | import PoincareLib.Geometry.Riemannian.MinimalSurface.Sphere.SphereTangent |
| 3 | |
| 4 | /-! |
| 5 | # The actual smooth round sphere metric |
| 6 | |
| 7 | Morgan-Tian Claim 18.12, printed pp. 426-427. The sphere inclusion |
| 8 | pulls back the Euclidean metric to the round metric used in weak |
| 9 | conformality. Centered tangent coordinates are isometric, and the |
| 10 | bilinear pullback is smooth as a bundle section. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open scoped Manifold ContDiff |
| 17 | |
| 18 | noncomputable section |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | private noncomputable def sphereAmbientMetric : RiemannianMetric 3 LoopAmbient := |
| 23 | { riemannianMetricVectorSpace LoopAmbient with |
| 24 | contMDiff := (riemannianMetricVectorSpace LoopAmbient).contMDiff.of_le le_top } |
| 25 | |
| 26 | local instance (p : UnitTwoSphere) : NormedAddCommGroup (TangentSpace (𝓡 2) p) := |
| 27 | inferInstanceAs (NormedAddCommGroup LoopPlane) |
| 28 | |
| 29 | local instance (p : UnitTwoSphere) : InnerProductSpace ℝ (TangentSpace (𝓡 2) p) := |
| 30 | inferInstanceAs (InnerProductSpace ℝ LoopPlane) |
| 31 | |
| 32 | /-- The smooth round metric obtained from the actual Euclidean inclusion. |
| 33 | Source: MT Claim 18.12, pp. 426-427. -/ |
| 34 | noncomputable def m60RoundSphereMetric : RiemannianMetric 2 UnitTwoSphere where |
| 35 | inner := M60.metricPullbackForm (n := 2) sphereAmbientMetric (fun p : UnitTwoSphere => p.1) |
| 36 | symm p v w := by |
| 37 | change m60RoundSphereInner p v w = m60RoundSphereInner p w v |
| 38 | rw [m60RoundSphereInner_eq_inner, m60RoundSphereInner_eq_inner] |
| 39 | exact real_inner_comm _ _ |
| 40 | pos p v hv := by |
| 41 | change 0 < m60RoundSphereInner p v v |
| 42 | rw [m60RoundSphereInner_eq_inner] |
| 43 | exact real_inner_self_pos.mpr hv |
| 44 | isVonNBounded p := by |
| 45 | change Bornology.IsVonNBounded ℝ {v : TangentSpace (𝓡 2) p | |
| 46 | m60RoundSphereInner p v v < 1} |
| 47 | simp_rw [m60RoundSphereInner_eq_inner] |
| 48 | exact (riemannianMetricVectorSpace LoopPlane).isVonNBounded 0 |
| 49 | contMDiff p := by |
| 50 | let : Fact (Module.finrank ℝ LoopAmbient = 2 + 1) := ⟨by simp [LoopAmbient]⟩ |
| 51 | exact M60.metricPullbackForm_contMDiffAt sphereAmbientMetric |
| 52 | ((contMDiff_coe_sphere (n := 2) (m := ∞)) p) |
| 53 | |
| 54 | /-- The constructed round metric has exactly the frozen inner form. |
| 55 | Source: MT Claim 18.12, pp. 426-427. -/ |
| 56 | theorem m60RoundSphereMetric_inner (p : UnitTwoSphere) |
| 57 | (v w : TangentSpace (𝓡 2) p) : |
| 58 | m60RoundSphereMetric.inner p v w = m60RoundSphereInner p v w := rfl |
| 59 | |
| 60 | end PoincareMT |
| 61 | |
| 62 | end |