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.Metric.LocalDiffeomorph |
| 2 | import PoincareLib.Geometry.RicciFlow.MetricFamily.Descent |
| 3 | |
| 4 | /-! # Smooth metric families under a fixed local diffeomorphism -/ |
| 5 | |
| 6 | set_option autoImplicit false |
| 7 | open Set |
| 8 | open scoped Manifold ContDiff |
| 9 | |
| 10 | namespace PoincareMT.RiemannianMetric |
| 11 | |
| 12 | theorem IsSmoothFamilyOn.pullbackOfLocalDiffeomorph |
| 13 | {n : ℕ} {M N : Type*} [TopologicalSpace M] [TopologicalSpace N] |
| 14 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] |
| 15 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) N] |
| 16 | [IsManifold (𝓡 n) ∞ M] [IsManifold (𝓡 n) ∞ N] |
| 17 | {g : ℝ → RiemannianMetric n N} {J : Set ℝ} |
| 18 | (hg : IsSmoothFamilyOn g J) (f : M → N) |
| 19 | (hf : IsLocalDiffeomorph (𝓡 n) (𝓡 n) ∞ f) : |
| 20 | IsSmoothFamilyOn (fun t => (g t).pullbackOfLocalDiffeomorph f hf) J := by |
| 21 | rintro ⟨t, x⟩ ⟨ht, _⟩ |
| 22 | exact Poincare.Gluing.inducedForm_family_contMDiffWithinAt hg (hf.contMDiff x) ht |
| 23 | |
| 24 | end PoincareMT.RiemannianMetric |