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 Mathlib.Geometry.Manifold.LocalDiffeomorph |
| 2 | import Mathlib.Topology.Homotopy.Lifting |
| 3 | |
| 4 | /-! |
| 5 | # Smooth lifts through an actual covering |
| 6 | |
| 7 | Local smooth inverses upgrade continuous lifts to smooth lifts, retaining |
| 8 | the supplied atlases and projection. A simply connected source then has a |
| 9 | smooth lift through a smooth covering with any prescribed basepoint lift. |
| 10 | This is the sphere-lifting step used in Morgan--Tian Claims 9.45 and 11.7, |
| 11 | pp. 208-209 and 270-271. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Manifold |
| 17 | open scoped Topology ContDiff |
| 18 | |
| 19 | namespace PoincareMT.M30 |
| 20 | |
| 21 | variable {k : Type*} [NontriviallyNormedField k] |
| 22 | {E : Type*} [NormedAddCommGroup E] [NormedSpace k E] |
| 23 | {F : Type*} [NormedAddCommGroup F] [NormedSpace k F] |
| 24 | {G : Type*} [NormedAddCommGroup G] [NormedSpace k G] |
| 25 | {H : Type*} [TopologicalSpace H] |
| 26 | {H' : Type*} [TopologicalSpace H'] |
| 27 | {H'' : Type*} [TopologicalSpace H''] |
| 28 | {I : ModelWithCorners k E H} {J : ModelWithCorners k F H'} |
| 29 | {K : ModelWithCorners k G H''} |
| 30 | {A : Type*} [TopologicalSpace A] [ChartedSpace H A] |
| 31 | {X : Type*} [TopologicalSpace X] [ChartedSpace H' X] |
| 32 | {Y : Type*} [TopologicalSpace Y] [ChartedSpace H'' Y] |
| 33 | {r : WithTop ℕ∞} |
| 34 | |
| 35 | /-- A continuous lift through a local diffeomorphism has the same |
| 36 | regularity as its projection, on the supplied source and cover atlases. -/ |
| 37 | theorem contMDiff_of_continuous_lift {p : X → Y} {f : A → X} |
| 38 | (hp : IsLocalDiffeomorph J K r p) (hf : Continuous f) |
| 39 | (hpf : ContMDiff I K r (p ∘ f)) : ContMDiff I J r f := by |
| 40 | intro a |
| 41 | let h := hp (f a) |
| 42 | have hs := h.localInverse_contMDiffAt.comp a (hpf a) |
| 43 | apply hs.congr_of_eventuallyEq |
| 44 | filter_upwards [hf.continuousAt.preimage_mem_nhds |
| 45 | (h.localInverse.open_target.mem_nhds h.localInverse_mem_target)] with b hb |
| 46 | exact (h.localInverse_left_inv hb).symm |
| 47 | |
| 48 | /-- A smooth map from a simply connected, locally path-connected source |
| 49 | has a smooth lift through a smooth covering, with the prescribed basepoint. -/ |
| 50 | theorem exists_contMDiff_covering_lift |
| 51 | [SimplyConnectedSpace A] [LocallyPathConnectedSpace A] |
| 52 | {p : X → Y} (hp : IsCoveringMap p) |
| 53 | (hps : IsLocalDiffeomorph J K r p) {f : A → Y} |
| 54 | (hf : ContMDiff I K r f) (a : A) (x : X) (hx : p x = f a) : |
| 55 | ∃ F : A → X, ContMDiff I J r F ∧ F a = x ∧ p ∘ F = f := by |
| 56 | obtain ⟨F, ⟨hbase, hcomp⟩, _⟩ := |
| 57 | hp.existsUnique_continuousMap_lifts ⟨f, hf.continuous⟩ a x hx |
| 58 | refine ⟨F, contMDiff_of_continuous_lift hps F.continuous ?_, hbase, hcomp⟩ |
| 59 | rw [hcomp] |
| 60 | exact hf |
| 61 | |
| 62 | end PoincareMT.M30 |