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 | /- Adapted from Mapher `PoincareMT/Proofs/M03/ConnectionExistence.lean` at |
| 2 | f927d9e1f0810042766d3b5f64d3f4da02ee93cc. See |
| 3 | `references/ricci-flow/mapher/local-theory/port.json`. -/ |
| 4 | |
| 5 | import PoincareLib.Geometry.RicciFlow.Local.Connection.Koszul |
| 6 | import PoincareLib.Geometry.RicciFlow.Local.Connection.Construction |
| 7 | |
| 8 | /-! |
| 9 | # Existence of Levi-Civita connection data |
| 10 | |
| 11 | Morgan-Tian, Theorem 1.2 and formula (1.1), printed pp. 3-4, supply the |
| 12 | coordinate construction. The conclusion is existence of actual compatible |
| 13 | connection data; it makes no uniqueness claim on irregular sections and |
| 14 | defines no chosen connection. The imported proof is kernel-closed; its |
| 15 | semantic review remains part of the M03 helper review. |
| 16 | -/ |
| 17 | |
| 18 | set_option autoImplicit false |
| 19 | |
| 20 | open scoped Manifold ContDiff |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | namespace PoincareMT |
| 25 | |
| 26 | /-- Every smooth metric has compatible torsion-free connection data. -/ |
| 27 | theorem exists_leviCivitaData {n : ℕ} {M : Type u} |
| 28 | [TopologicalSpace M] [T2Space M] [SecondCountableTopology M] |
| 29 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 30 | (g : RiemannianMetric n M) : Nonempty (LeviCivitaData g) := by |
| 31 | exact RicciFlow.Local.leviCivitaData_nonempty g |
| 32 | |
| 33 | end PoincareMT |