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.Persistence.Geometry.SectionalPolarization |
| 2 | |
| 3 | /-! |
| 4 | # The algebraic curvature form of a symmetric bilinear form |
| 5 | |
| 6 | The Gram expression is a four-linear curvature form. Together with |
| 7 | orthonormal-plane polarization it identifies the curvature-one model |
| 8 | of Morgan--Tian, Definition 9.76; see M44 derivation 28. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | -- The four-linear codomain requires nested module instances. |
| 13 | set_option maxSynthPendingDepth 8 |
| 14 | |
| 15 | namespace PoincareMT.M44 |
| 16 | |
| 17 | variable {E : Type*} [AddCommGroup E] [Module ℝ E] |
| 18 | |
| 19 | /-- The Gram curvature form associated with a bilinear form, with the |
| 20 | positive-sphere sign convention of Morgan--Tian pp. 5-7. -/ |
| 21 | def metricCurvatureForm (B : E →ₗ[ℝ] E →ₗ[ℝ] ℝ) : |
| 22 | E →ₗ[ℝ] E →ₗ[ℝ] E →ₗ[ℝ] E →ₗ[ℝ] ℝ where |
| 23 | toFun a := |
| 24 | { toFun := fun b => |
| 25 | { toFun := fun c => (B a c) • B b - (B b c) • B a |
| 26 | map_add' := by |
| 27 | intro c d |
| 28 | ext z |
| 29 | simp only [map_add, LinearMap.sub_apply, LinearMap.smul_apply, |
| 30 | LinearMap.add_apply, smul_eq_mul] |
| 31 | ring |
| 32 | map_smul' := by |
| 33 | intro r c |
| 34 | ext z |
| 35 | simp only [map_smul, LinearMap.sub_apply, LinearMap.smul_apply, |
| 36 | smul_eq_mul, RingHom.id_apply] |
| 37 | ring } |
| 38 | map_add' := by |
| 39 | intro b c |
| 40 | ext d z |
| 41 | simp only [map_add, LinearMap.coe_mk, AddHom.coe_mk, LinearMap.sub_apply, |
| 42 | LinearMap.smul_apply, LinearMap.add_apply, smul_eq_mul] |
| 43 | ring |
| 44 | map_smul' := by |
| 45 | intro r b |
| 46 | ext d z |
| 47 | simp only [map_smul, LinearMap.coe_mk, AddHom.coe_mk, LinearMap.sub_apply, |
| 48 | LinearMap.smul_apply, smul_eq_mul, RingHom.id_apply] |
| 49 | ring } |
| 50 | map_add' := by |
| 51 | intro a b |
| 52 | ext c d z |
| 53 | simp only [map_add, LinearMap.coe_mk, AddHom.coe_mk, LinearMap.sub_apply, |
| 54 | LinearMap.smul_apply, LinearMap.add_apply, smul_eq_mul] |
| 55 | ring |
| 56 | map_smul' := by |
| 57 | intro r a |
| 58 | ext b c d |
| 59 | simp only [map_smul, LinearMap.coe_mk, AddHom.coe_mk, LinearMap.sub_apply, |
| 60 | LinearMap.smul_apply, smul_eq_mul, RingHom.id_apply] |
| 61 | ring |
| 62 | |
| 63 | /-- Evaluation of the Gram curvature form. Source: Morgan--Tian pp. 5-7. -/ |
| 64 | theorem metricCurvatureForm_apply (B : E →ₗ[ℝ] E →ₗ[ℝ] ℝ) (a b c d : E) : |
| 65 | metricCurvatureForm B a b c d = B a c * B b d - B b c * B a d := rfl |
| 66 | |
| 67 | end PoincareMT.M44 |