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.Basic |
| 2 | import Mathlib.Geometry.Manifold.Riemannian.Basic |
| 3 | import PoincareLib.Geometry.RicciFlow.Basic |
| 4 | |
| 5 | /-! Transport of the selected Riemannian metric to its induced emetric. -/ |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | |
| 9 | open scoped Manifold ContDiff Bundle |
| 10 | |
| 11 | namespace Poincare.Geometry.RicciFlow.Harnack |
| 12 | |
| 13 | open PoincareMT |
| 14 | |
| 15 | theorem metric_edist_transport |
| 16 | {n : ℕ} {M : Type*} [TopologicalSpace M] |
| 17 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 18 | [IsManifold (𝓡 n) ∞ M] [T3Space M] |
| 19 | (g : RiemannianMetric n M) (x y : M) : |
| 20 | letI : Bundle.RiemannianBundle (TangentSpace (𝓡 n) : M → Type _) := |
| 21 | ⟨g.toRiemannianMetric⟩ |
| 22 | letI : IsContinuousRiemannianBundle (EuclideanSpace ℝ (Fin n)) |
| 23 | (TangentSpace (𝓡 n) : M → Type _) := |
| 24 | ⟨⟨g.inner, g.toContinuousRiemannianMetric.continuous, fun _ _ _ ↦ rfl⟩⟩ |
| 25 | letI : EMetricSpace M := EMetricSpace.ofRiemannianMetric (𝓡 n) M |
| 26 | edist x y = g.edist x y := by |
| 27 | rfl |
| 28 | |
| 29 | end Poincare.Geometry.RicciFlow.Harnack |