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.AncientKappa.Compactness.Boundedness.Projective.Regularity |
| 2 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Projective |
| 3 | import Mathlib.Topology.Homeomorph.Lemmas |
| 4 | |
| 5 | /-! |
| 6 | # Actual projective central sections |
| 7 | |
| 8 | The exact antipodal fibers give a homeomorphism from the standard projective |
| 9 | plane onto the actual central image. Compactness of the sphere supplies the |
| 10 | inverse continuity, without an orientability assumption on the source. |
| 11 | -/ |
| 12 | |
| 13 | noncomputable section |
| 14 | set_option autoImplicit false |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open Set Filter |
| 18 | open scoped Manifold ContDiff Bundle Topology |
| 19 | |
| 20 | namespace PoincareMT |
| 21 | |
| 22 | /-- A continuous map with precisely antipodal fibers has an actual embedded |
| 23 | projective plane as its image. -/ |
| 24 | theorem exists_projectiveCentralSection_homeomorph |
| 25 | {M : Type*} [TopologicalSpace M] [T2Space M] |
| 26 | (f : UnitTwoSphere → M) (hf : Continuous f) |
| 27 | (hfiber : ∀ x y, f x = f y ↔ y = x ∨ y = -x) : |
| 28 | ∃ e : RealProjectiveTwo ≃ₜ Set.range f, |
| 29 | ∀ x : UnitTwoSphere, (e (Quotient.mk realProjectiveTwoSetoid x)).val = f x := by |
| 30 | have hrespect : ∀ x y, realProjectiveTwoSetoid x y → |
| 31 | (⟨f x, mem_range_self x⟩ : Set.range f) = ⟨f y, mem_range_self y⟩ := by |
| 32 | intro x y hxy |
| 33 | apply Subtype.ext |
| 34 | apply (hfiber x y).mpr |
| 35 | rcases hxy with hxy | hxy |
| 36 | · exact Or.inl hxy.symm |
| 37 | · right |
| 38 | rw [hxy] |
| 39 | simp |
| 40 | let F : RealProjectiveTwo → Set.range f := |
| 41 | Quotient.lift (fun x => (⟨f x, mem_range_self x⟩ : Set.range f)) hrespect |
| 42 | have hF : Continuous F := (hf.subtype_mk fun x => mem_range_self x).quotient_lift hrespect |
| 43 | have hbij : Function.Bijective F := by |
| 44 | constructor |
| 45 | · intro a b hab |
| 46 | induction a using Quotient.inductionOn with | h x => |
| 47 | induction b using Quotient.inductionOn with | h y => |
| 48 | apply Quotient.sound |
| 49 | have hxy : f x = f y := congrArg Subtype.val hab |
| 50 | rcases (hfiber x y).mp hxy with hxy | hxy |
| 51 | · exact Or.inl hxy.symm |
| 52 | · right |
| 53 | rw [hxy] |
| 54 | simp |
| 55 | · rintro ⟨y, x, rfl⟩ |
| 56 | exact ⟨Quotient.mk realProjectiveTwoSetoid x, rfl⟩ |
| 57 | let e := (Equiv.ofBijective F hbij).toHomeomorphOfContinuousClosed hF hF.isClosedMap |
| 58 | exact ⟨e, fun x => rfl⟩ |
| 59 | |
| 60 | namespace AncientPointedGeometricConvergence |
| 61 | |
| 62 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 63 | FlowCarrier.isManifold FlowCarrier.t2Space FlowCarrier.t3Space |
| 64 | |
| 65 | /-- The central sections in the original selected sources are homeomorphic |
| 66 | to the projective plane through their actual antipodal coordinate maps. -/ |
| 67 | theorem eventually_projectiveCentralSection_homeomorph |
| 68 | {C : ℕ → FlowCarrier.{0} 3} {g : ∀ k, ℝ → (C k).metric} |
| 69 | {p : ∀ k, (C k).carrier} {T : ℝ} |
| 70 | (G : AncientPointedGeometricConvergence C g p T) |
| 71 | (Φ : RoundCylinderSpace → G.limitCarrier.carrier) |
| 72 | (hΦ : IsLocalDiffeomorph ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ Φ) |
| 73 | (hfiber : ∀ z w, Φ z = Φ w ↔ w = z ∨ w = (-z.1, z.2)) : |
| 74 | ∀ᶠ i in atTop, |
| 75 | ∃ e : RealProjectiveTwo ≃ₜ Set.range (fun x : UnitTwoSphere => G.embedding i (Φ (x, 0))), |
| 76 | ∀ x : UnitTwoSphere, |
| 77 | (e (Quotient.mk realProjectiveTwoSetoid x)).val = G.embedding i (Φ (x, 0)) := by |
| 78 | filter_upwards [G.eventually_cylinderCover_slab_regular Φ hΦ (-1) 1, |
| 79 | G.eventually_cylinderCover_antipodal_fibers Φ hΦ.contMDiff.continuous hfiber (-1) 1] |
| 80 | with i hlocal hfibers |
| 81 | let f : UnitTwoSphere → (C (G.subsequence i)).carrier := |
| 82 | fun x => G.embedding i (Φ (x, 0)) |
| 83 | have hzero (x : UnitTwoSphere) : (x, (0 : ℝ)) ∈ univ ×ˢ Ioo (-1) 1 := |
| 84 | ⟨mem_univ _, by norm_num⟩ |
| 85 | have hf : ContMDiff (𝓡 2) (𝓡 3) ∞ f := by |
| 86 | intro x |
| 87 | have he : ContMDiffAt ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ |
| 88 | (G.embedding i ∘ Φ) (x, 0) := |
| 89 | (hlocal ⟨(x, 0), hzero x⟩).contMDiffAt |
| 90 | have hpair : ContMDiffAt (𝓡 2) ((𝓡 2).prod 𝓘(ℝ, ℝ)) ∞ |
| 91 | (fun y : UnitTwoSphere => (y, (0 : ℝ))) x := |
| 92 | contMDiffAt_id.prodMk contMDiffAt_const |
| 93 | change ContMDiffAt (𝓡 2) (𝓡 3) ∞ |
| 94 | ((G.embedding i ∘ Φ) ∘ fun y : UnitTwoSphere => (y, (0 : ℝ))) x |
| 95 | exact he.comp x hpair |
| 96 | apply exists_projectiveCentralSection_homeomorph f hf.continuous |
| 97 | intro x y |
| 98 | have h := hfibers (x, 0) ⟨mem_univ _, by norm_num⟩ |
| 99 | (y, 0) ⟨mem_univ _, by norm_num⟩ |
| 100 | simpa only [Prod.mk.injEq, and_true] using h |
| 101 | |
| 102 | end AncientPointedGeometricConvergence |
| 103 | |
| 104 | end PoincareMT |