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.Manifold.Transport |
| 2 | import Mathlib.Topology.Homeomorph.Lemmas |
| 3 | |
| 4 | /-! # Smooth manifold structures under universe lifting -/ |
| 5 | |
| 6 | open scoped Manifold ContDiff |
| 7 | |
| 8 | universe v u |
| 9 | |
| 10 | namespace Poincare.Manifold |
| 11 | |
| 12 | /-- The original atlas transported by `ULift.up`. -/ |
| 13 | @[instance_reducible] |
| 14 | def uliftChartedSpace (H : Type*) [TopologicalSpace H] |
| 15 | (M : Type u) [TopologicalSpace M] [ChartedSpace H M] : |
| 16 | ChartedSpace H (ULift.{v} M) := |
| 17 | HomeomorphTransport.chartedSpace (H := H) Homeomorph.ulift.symm |
| 18 | |
| 19 | variable {𝕜 E H : Type*} [NontriviallyNormedField 𝕜] [NormedAddCommGroup E] |
| 20 | [NormedSpace 𝕜 E] [TopologicalSpace H] (I : ModelWithCorners 𝕜 E H) |
| 21 | (M : Type u) [TopologicalSpace M] [ChartedSpace H M] [IsManifold I ∞ M] |
| 22 | |
| 23 | /-- The lifted atlas is smooth without an additional smoothness premise. -/ |
| 24 | theorem uliftIsManifold : |
| 25 | letI : ChartedSpace H (ULift.{v} M) := uliftChartedSpace H M |
| 26 | IsManifold I ∞ (ULift.{v} M) := by |
| 27 | let : ChartedSpace H (ULift.{v} M) := uliftChartedSpace H M |
| 28 | exact HomeomorphTransport.isManifold Homeomorph.ulift.symm I ∞ |
| 29 | |
| 30 | /-- `ULift.down` is a diffeomorphism for the transported atlas. -/ |
| 31 | def uliftDiffeomorph : |
| 32 | letI : ChartedSpace H (ULift.{v} M) := uliftChartedSpace H M |
| 33 | Diffeomorph I I (ULift.{v} M) M ∞ := by |
| 34 | letI : ChartedSpace H (ULift.{v} M) := uliftChartedSpace H M |
| 35 | exact (HomeomorphTransport.diffeomorph Homeomorph.ulift.symm I ∞).symm |
| 36 | |
| 37 | @[simp] theorem uliftDiffeomorph_apply (x : ULift.{v} M) : |
| 38 | letI : ChartedSpace H (ULift.{v} M) := uliftChartedSpace H M |
| 39 | uliftDiffeomorph I M x = x.down := rfl |
| 40 | |
| 41 | @[simp] theorem uliftDiffeomorph_symm_apply (x : M) : |
| 42 | letI : ChartedSpace H (ULift.{v} M) := uliftChartedSpace H M |
| 43 | (uliftDiffeomorph I M).symm x = ULift.up.{v} x := rfl |
| 44 | |
| 45 | theorem uliftDiffeomorph_toEquiv : |
| 46 | letI : ChartedSpace H (ULift.{v} M) := uliftChartedSpace H M |
| 47 | (uliftDiffeomorph I M).toEquiv = Equiv.ulift.{v, u} := rfl |
| 48 | |
| 49 | end Poincare.Manifold |