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.ScalarOperators.ConnectionIndependence |
| 2 | |
| 3 | /-! Connection compatibility for the preserved Mapher M35 import. -/ |
| 4 | |
| 5 | set_option autoImplicit false |
| 6 | |
| 7 | open scoped Manifold ContDiff Bundle BigOperators |
| 8 | |
| 9 | universe u |
| 10 | |
| 11 | /- The source calls this theorem through dot notation with its two |
| 12 | differentiability proofs explicit. Keep that exact application shape while |
| 13 | forwarding to the Horizon local-theory implementation. -/ |
| 14 | namespace PoincareMT.LeviCivitaData |
| 15 | theorem horizon_mvfderiv_inner_explicit |
| 16 | {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 17 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 18 | {g : RiemannianMetric n M} (D : LeviCivitaData g) |
| 19 | (X Y Z : (x : M) → TangentSpace (𝓡 n) x) {x : M} |
| 20 | (hY : MDifferentiableAt (𝓡 n) |
| 21 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) (T% Y) x) |
| 22 | (hZ : MDifferentiableAt (𝓡 n) |
| 23 | ((𝓡 n).prod 𝓘(ℝ, EuclideanSpace ℝ (Fin n))) (T% Z) x) : |
| 24 | mvfderiv (𝓡 n) (fun y ↦ g.inner y (Y y) (Z y)) x (X x) = |
| 25 | g.inner x (D.connection Y x (X x)) (Z x) + |
| 26 | g.inner x (Y x) (D.connection Z x (X x)) := |
| 27 | PoincareMT.LeviCivitaData.localTheory_mvfderiv_inner D X Y Z hY hZ |
| 28 | end PoincareMT.LeviCivitaData |