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.ReducedGeometry.ReducedVolume.Exponential.Coordinates.ExponentialSlice |
| 2 | import Mathlib.Geometry.Manifold.Diffeomorph |
| 3 | |
| 4 | /-! |
| 5 | # The global diffeomorphism of an everywhere regular exponential slice |
| 6 | |
| 7 | The total forward and inverse maps are the frozen exponential chart maps. |
| 8 | When both canonical domains are the whole spaces, their existing smoothness |
| 9 | and inverse laws give a global diffeomorphism without any new choice. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | |
| 14 | open Set |
| 15 | open scoped Manifold ContDiff Bundle Topology |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | namespace PoincareMT.ReducedVolume |
| 20 | |
| 21 | variable {n : ℕ} {M : Type u} [TopologicalSpace M] |
| 22 | [ChartedSpace (EuclideanSpace ℝ (Fin n)) M] [IsManifold (𝓡 n) ∞ M] |
| 23 | {J : Set ℝ} {F : RicciFlow n M J} {T τmax : ℝ} {p : M} |
| 24 | |
| 25 | /-- A full canonical regular slice is the actual global smooth exponential equivalence. -/ |
| 26 | noncomputable def exponentialSliceDiffeomorph (G : LExponentialGeometry F T τmax p) (τ : ℝ) |
| 27 | (hsource : (exponentialSliceChart G τ).source = univ) |
| 28 | (htarget : (exponentialSliceChart G τ).target = univ) : |
| 29 | Diffeomorph (𝓡 n) (𝓡 n) (EuclideanSpace ℝ (Fin n)) M ∞ where |
| 30 | toEquiv := |
| 31 | { toFun := exponentialSliceChart G τ |
| 32 | invFun := (exponentialSliceChart G τ).symm |
| 33 | left_inv := fun x ↦ (exponentialSliceChart G τ).left_inv (hsource.symm ▸ mem_univ x) |
| 34 | right_inv := fun q ↦ (exponentialSliceChart G τ).right_inv (htarget.symm ▸ mem_univ q) } |
| 35 | contMDiff_toFun := by |
| 36 | apply contMDiffOn_univ.mp |
| 37 | have h := exponentialSliceChart_contMDiffOn G τ |
| 38 | rwa [hsource] at h |
| 39 | contMDiff_invFun := by |
| 40 | apply contMDiffOn_univ.mp |
| 41 | have h := exponentialSliceChart_symm_contMDiffOn G τ |
| 42 | rwa [htarget] at h |
| 43 | |
| 44 | end PoincareMT.ReducedVolume |