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.Curvature.Basic |
| 2 | |
| 3 | /-! |
| 4 | # Three-dimensional Hamilton--Ivey quantities |
| 5 | |
| 6 | These are the library copies of the reviewed frozen definitions. The least |
| 7 | sectional value is taken over actual orthonormal tangent pairs; no curvature |
| 8 | operator or eigenbasis is built into the definition. |
| 9 | -/ |
| 10 | |
| 11 | set_option autoImplicit false |
| 12 | |
| 13 | open scoped Manifold ContDiff Bundle |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | namespace PoincareMT.LeviCivitaData |
| 18 | |
| 19 | variable {M : Type u} [TopologicalSpace M] |
| 20 | [ChartedSpace (EuclideanSpace ℝ (Fin 3)) M] |
| 21 | [IsManifold (𝓡 3) ∞ M] |
| 22 | {g : RiemannianMetric 3 M} |
| 23 | |
| 24 | def IsOrthonormalPair (g : RiemannianMetric 3 M) (x : M) |
| 25 | (u v : TangentSpace (𝓡 3) x) : Prop := |
| 26 | g.inner x u u = 1 ∧ g.inner x v v = 1 ∧ g.inner x u v = 0 |
| 27 | |
| 28 | noncomputable def leastSectionalCurvature (D : LeviCivitaData g) (x : M) : ℝ := |
| 29 | sInf {k : ℝ | ∃ u v : TangentSpace (𝓡 3) x, |
| 30 | IsOrthonormalPair g x u v ∧ k = D.curvatureTensor x u v u v} |
| 31 | |
| 32 | noncomputable def negativeCurvaturePart (D : LeviCivitaData g) (x : M) : ℝ := |
| 33 | max (-D.leastSectionalCurvature x) 0 |
| 34 | |
| 35 | end PoincareMT.LeviCivitaData |