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.Cover |
| 2 | import PoincareLib.Geometry.RicciFlow.CanonicalNeighborhood.Neck.Convergence.ParameterRegularity |
| 3 | import PoincareLib.Geometry.RicciFlow.Compactness.Ancient.CompactEmbedding |
| 4 | |
| 5 | /-! |
| 6 | # Retained local covering maps on compact cylinder slabs |
| 7 | |
| 8 | Smooth pointed convergence preserves the regularity of a cylinder covering. |
| 9 | The selected maps remain exactly two-to-one on each compact antipodal slab. |
| 10 | -/ |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle Topology |
| 17 | |
| 18 | namespace PoincareMT |
| 19 | |
| 20 | attribute [local instance] FlowCarrier.topologicalSpace FlowCarrier.chartedSpace |
| 21 | FlowCarrier.isManifold FlowCarrier.t3Space |
| 22 | normedAddCommGroupTangentSpaceVectorSpace normedSpaceTangentSpaceVectorSpace |
| 23 | |
| 24 | namespace PointedGeometricConvergence |
| 25 | |
| 26 | /-- Local diffeomorphism regularity suffices for every canonical sphere-chart |
| 27 | parametrization, with a common eventual threshold on each compact set. -/ |
| 28 | theorem eventually_cylinderCover_parametrizations_regular |
| 29 | {a b : ℝ} {S : PointedFlowSequence 3 a b} |
| 30 | (G : PointedGeometricConvergence S) (hzero : a < 0 ∧ 0 < b) |
| 31 | (Φ : RoundCylinderSpace → G.limitCarrier.carrier) |
| 32 | (hΦ : IsLocalDiffeomorph ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ Φ) |
| 33 | {K : Set RoundCylinderCoordinates} (hK : IsCompact K) : |
| 34 | ∀ᶠ i in atTop, ∀ q : UnitTwoSphere, |
| 35 | ∃ U : Set RoundCylinderCoordinates, IsOpen U ∧ K ⊆ U ∧ |
| 36 | ContMDiffOn 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) ∞ |
| 37 | (fun y => ((G.embedding i).toFun |
| 38 | (0, Φ ((chartAt (EuclideanSpace ℝ (Fin 2)) q).symm y.1, y.2))).2) U ∧ |
| 39 | ∀ y ∈ U, (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) |
| 40 | (fun z => ((G.embedding i).toFun |
| 41 | (0, Φ ((chartAt (EuclideanSpace ℝ (Fin 2)) q).symm z.1, z.2))).2) y).IsInvertible := by |
| 42 | have hcompact : IsCompact (univ ×ˢ (Prod.snd '' K) : Set RoundCylinderSpace) := |
| 43 | isCompact_univ.prod (hK.image continuous_snd) |
| 44 | obtain ⟨j, hj⟩ := G.exists_exhaustion_superset (hcompact.image hΦ.contMDiff.continuous) |
| 45 | filter_upwards [eventually_ge_atTop j] with i hji q |
| 46 | let c : RoundCylinderCoordinates → RoundCylinderSpace := |
| 47 | fun y => ((chartAt (EuclideanSpace ℝ (Fin 2)) q).symm y.1, y.2) |
| 48 | let f : RoundCylinderCoordinates → G.limitCarrier.carrier := Φ ∘ c |
| 49 | let e : G.limitCarrier.carrier → (S.carrier (G.subsequence i)).carrier := |
| 50 | fun x => ((G.embedding i).toFun (0, x)).2 |
| 51 | let U := f ⁻¹' G.exhaustion j |
| 52 | have hf : ContMDiff 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) ∞ f := |
| 53 | hΦ.contMDiff.comp (cylinderChart_symm_smooth q) |
| 54 | have hU : IsOpen U := (G.exhaustion_open j).preimage hf.continuous |
| 55 | have hKU : K ⊆ U := by |
| 56 | intro y hy |
| 57 | exact hj (mem_image_of_mem Φ ⟨mem_univ _, mem_image_of_mem Prod.snd hy⟩) |
| 58 | have hmem (y : RoundCylinderCoordinates) (hy : y ∈ U) : f y ∈ G.exhaustion i := |
| 59 | G.exhaustion_monotone hji hy |
| 60 | have he (y : RoundCylinderCoordinates) (hy : y ∈ U) : |
| 61 | ContMDiffAt (𝓡 3) (𝓡 3) ∞ e (f y) := |
| 62 | (G.embedding i).spatialMap_contMDiffAt (G.exhaustion_open i) hzero (hmem y hy) |
| 63 | refine ⟨U, hU, hKU, ?_, ?_⟩ |
| 64 | · intro y hy |
| 65 | exact ((he y hy).comp y (hf y)).contMDiffWithinAt |
| 66 | · intro y hy |
| 67 | have hi : (mfderiv (𝓡 3) (𝓡 3) e (f y)).IsInvertible := by |
| 68 | have hb := (G.embedding i).spatialMap_mfderiv_bijective |
| 69 | (G.exhaustion_open i) hzero (hmem y hy) |
| 70 | let L : EuclideanSpace ℝ (Fin 3) ≃L[ℝ] EuclideanSpace ℝ (Fin 3) := |
| 71 | ContinuousLinearEquiv.ofBijective (mfderiv (𝓡 3) (𝓡 3) e (f y)) |
| 72 | (LinearMap.ker_eq_bot.mpr hb.1) (LinearMap.range_eq_top.mpr hb.2) |
| 73 | exact ⟨L, rfl⟩ |
| 74 | have hΦi : (mfderiv ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) Φ (c y)).IsInvertible := |
| 75 | ⟨(hΦ (c y)).mfderivToContinuousLinearEquiv (by simp), rfl⟩ |
| 76 | change (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (e ∘ f) y).IsInvertible |
| 77 | rw [mfderiv_comp y ((he y hy).mdifferentiableAt (by simp)) |
| 78 | ((hf y).mdifferentiableAt (by simp))] |
| 79 | apply hi.comp |
| 80 | change (mfderiv 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) (Φ ∘ c) y).IsInvertible |
| 81 | rw [mfderiv_comp y (hΦ.mdifferentiable (by simp) (c y)) |
| 82 | ((cylinderChart_symm_smooth q y).mdifferentiableAt (by simp))] |
| 83 | exact hΦi.comp (cylinderChart_symm_isInvertible_mfderiv q y) |
| 84 | |
| 85 | end PointedGeometricConvergence |
| 86 | |
| 87 | namespace AncientPointedGeometricConvergence |
| 88 | |
| 89 | /-- The actual retained maps are local diffeomorphisms throughout each fixed |
| 90 | open cylinder slab, without injectivity of the limit covering map. -/ |
| 91 | theorem eventually_cylinderCover_slab_regular |
| 92 | {C : ℕ → FlowCarrier.{0} 3} {g : ∀ k, ℝ → (C k).metric} |
| 93 | {p : ∀ k, (C k).carrier} {T : ℝ} |
| 94 | (G : AncientPointedGeometricConvergence C g p T) |
| 95 | (Φ : RoundCylinderSpace → G.limitCarrier.carrier) |
| 96 | (hΦ : IsLocalDiffeomorph ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ Φ) |
| 97 | (a b : ℝ) : |
| 98 | ∀ᶠ i in atTop, |
| 99 | IsLocalDiffeomorphOn ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ |
| 100 | (G.embedding i ∘ Φ) (univ ×ˢ Ioo a b) := by |
| 101 | obtain ⟨j, hj⟩ := G.exists_exhaustion_superset |
| 102 | ((isCompact_univ.prod (isCompact_Icc : IsCompact (Icc a b))).image |
| 103 | hΦ.contMDiff.continuous) |
| 104 | have hmono : Monotone G.exhaustion := monotone_nat_of_le_succ G.exhaustion_increasing |
| 105 | filter_upwards [eventually_ge_atTop j] with i hji |
| 106 | intro z |
| 107 | have hz : Φ z ∈ G.exhaustion i := hmono hji |
| 108 | (hj (mem_image_of_mem Φ ⟨mem_univ _, z.property.2.1.le, z.property.2.2.le⟩)) |
| 109 | exact (hΦ z).comp (𝓡 3) (C (G.subsequence i)).carrier |
| 110 | (G.embedding_smooth i ⟨Φ z, hz⟩) |
| 111 | |
| 112 | /-- Original spatial embeddings preserve the two antipodal sheets on every |
| 113 | fixed closed slab. No replacement subsequence or maps are chosen. -/ |
| 114 | theorem eventually_cylinderCover_antipodal_fibers |
| 115 | {C : ℕ → FlowCarrier.{0} 3} {g : ∀ k, ℝ → (C k).metric} |
| 116 | {p : ∀ k, (C k).carrier} {T : ℝ} |
| 117 | (G : AncientPointedGeometricConvergence C g p T) |
| 118 | (Φ : RoundCylinderSpace → G.limitCarrier.carrier) |
| 119 | (hΦ : Continuous Φ) |
| 120 | (hfiber : ∀ z w, Φ z = Φ w ↔ w = z ∨ w = (-z.1, z.2)) |
| 121 | (a b : ℝ) : |
| 122 | ∀ᶠ i in atTop, ∀ z ∈ univ ×ˢ Icc a b, ∀ w ∈ univ ×ˢ Icc a b, |
| 123 | G.embedding i (Φ z) = G.embedding i (Φ w) ↔ w = z ∨ w = (-z.1, z.2) := by |
| 124 | obtain ⟨j, hj⟩ := G.exists_exhaustion_superset |
| 125 | ((isCompact_univ.prod (isCompact_Icc : IsCompact (Icc a b))).image hΦ) |
| 126 | have hmono : Monotone G.exhaustion := monotone_nat_of_le_succ G.exhaustion_increasing |
| 127 | filter_upwards [eventually_ge_atTop j] with i hji z hz w hw |
| 128 | have hz' := hmono hji (hj (mem_image_of_mem Φ hz)) |
| 129 | have hw' := hmono hji (hj (mem_image_of_mem Φ hw)) |
| 130 | constructor |
| 131 | · intro heq |
| 132 | have heq' : (⟨Φ z, hz'⟩ : G.exhaustion i) = ⟨Φ w, hw'⟩ := |
| 133 | (G.embedding_open i).injective heq |
| 134 | exact (hfiber z w).mp (congrArg Subtype.val heq') |
| 135 | · intro h |
| 136 | exact congrArg (G.embedding i) ((hfiber z w).mpr h) |
| 137 | |
| 138 | end AncientPointedGeometricConvergence |
| 139 | |
| 140 | end PoincareMT |