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.CurveShortening.Comparison.AnnularEvolution.Boundary.Metric.RowFrame |
| 2 | import PoincareLib.Geometry.Riemannian.Coordinates.Exponential.Jacobi.Coefficients |
| 3 | |
| 4 | /-! The actual connection of a locally realized chart metric is the |
| 5 | Christoffel coefficient in the minimum's coordinate equation. |
| 6 | Source: MT Lemma 19.15, pp. 447-449; M64 finite collar derivation. -/ |
| 7 | |
| 8 | noncomputable section |
| 9 | set_option autoImplicit false |
| 10 | set_option warningAsError true |
| 11 | set_option backward.isDefEq.respectTransparency false |
| 12 | |
| 13 | open Filter |
| 14 | open scoped Topology |
| 15 | |
| 16 | namespace PoincareMT.M64 |
| 17 | |
| 18 | variable {n : ℕ} |
| 19 | |
| 20 | local notation "E" => EuclideanSpace ℝ (Fin n) |
| 21 | |
| 22 | /-- Agreement of the actual metric germ identifies its connection coefficient with the |
| 23 | original local Christoffel coefficient. Source: Morgan--Tian (2007), Lemma 19.15, pp. |
| 24 | 447-449; project derivations |
| 25 | `proof-work/tasks/M64/derivations/2026-09-26-finite-boundary-collar.md` and |
| 26 | `proof-work/tasks/M64/derivations/2026-09-26-periodic-finite-collar.md`. -/ |
| 27 | theorem connectionCoefficient_eq_of_metric_germ |
| 28 | {g : RiemannianMetric n E} (D : LeviCivitaData g) |
| 29 | {B : E → E →L[ℝ] E →L[ℝ] ℝ} {q : E} |
| 30 | (hB : g.euclideanCoefficients =ᶠ[𝓝 q] B) : |
| 31 | M65Gauss.connectionCoefficient D q = CoordinateExponential.christoffelBilinear B q := by |
| 32 | apply ContinuousLinearMap.ext |
| 33 | intro u |
| 34 | apply ContinuousLinearMap.ext |
| 35 | intro v |
| 36 | change D.connection (fun _ : E => v) q u = _ |
| 37 | rw [D.connection_const_eq_inverse, hB.self_of_nhds, hB.fderiv_eq] |
| 38 | rfl |
| 39 | |
| 40 | end PoincareMT.M64 |