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.Surgery.StandardCap.Uniqueness.Imports |
| 2 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Sequences.BlowupSequence |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.OrdinaryRealization.EvenImmersion |
| 4 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Cylinder.Geometry.PolarCoordinates |
| 5 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Cylinder.Geometry.CylinderImmersion |
| 6 | |
| 7 | /-! |
| 8 | # Excluding the exceptional projective-plane product on the actual limit |
| 9 | |
| 10 | Morgan-Tian Theorem 12.28, pp. 323-324, and Corollary 9.94. The compact |
| 11 | central projective plane lies in a single actual exhaustion member. |
| 12 | Its product cover followed by the time-zero cylinder and polar coordinates |
| 13 | would be an even immersion near the unit sphere in R3, which is impossible. |
| 14 | -/ |
| 15 | |
| 16 | set_option autoImplicit false |
| 17 | |
| 18 | open Set Filter |
| 19 | open scoped Manifold ContDiff Bundle Topology |
| 20 | |
| 21 | namespace PoincareMT.M35.OrdinaryRealization |
| 22 | |
| 23 | /-- Theorem 12.28: an actual cylinder into the ordinary cap cannot |
| 24 | contain the central surface of a locally diffeomorphic antipodal product |
| 25 | cover. The whole product need not be contained in the cylinder source. -/ |
| 26 | theorem cylinder_excludes_antipodal_product {J : Set ℝ} |
| 27 | (F : RicciFlow 3 StandardCapSpace J) |
| 28 | {C : GeneralizedSliceCarrier} {a Q : ℝ} {I : Set ℝ} {U : Set C.carrier} |
| 29 | (e : GeneralizedFlowCylinder (generalizedFlow F) C a Q I U) |
| 30 | (hU : IsOpen U) (s : ℝ) (hs : s ∈ I) |
| 31 | (c : StandardCylinderSpace → C.carrier) |
| 32 | (hc : IsLocalDiffeomorph ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ c) |
| 33 | (heven : ∀ p : StandardCylinderSpace, c (-p.1, p.2) = c p) |
| 34 | (hcentral : ∀ q : UnitTwoSphere, c (q, 0) ∈ U) : False := by |
| 35 | obtain ⟨v₀, hv₀⟩ := exists_norm_eq StandardCapSpace (by norm_num : (0 : ℝ) ≤ 1) |
| 36 | let q₀ : UnitTwoSphere := |
| 37 | ⟨v₀, by simpa only [Metric.mem_sphere, dist_zero_right] using hv₀⟩ |
| 38 | have htime : a + s / Q ∈ J := (e.forward s hs (c (q₀, 0))).property |
| 39 | let d := sliceDiffeomorph htime |
| 40 | let f₀ : C.carrier → StandardCapSpace := d ∘ e.forward s hs |
| 41 | have hf₀ : ContMDiffOn (𝓡 3) (𝓡 3) ∞ f₀ U := |
| 42 | d.contMDiff.comp_contMDiffOn (e.forward_smooth s hs) |
| 43 | have hinj₀ (z : C.carrier) (hz : z ∈ U) : |
| 44 | Function.Injective (mfderiv (𝓡 3) (𝓡 3) f₀ z) := by |
| 45 | have hreg := (e.forward_smooth s hs).contMDiffAt (hU.mem_nhds hz) |
| 46 | have hf := hreg.mdifferentiableAt (by simp) |
| 47 | rw [mfderiv_comp z (d.contMDiff.mdifferentiable (by simp) _) hf] |
| 48 | exact (d.mfderivToContinuousLinearEquiv (by simp) _).injective.comp |
| 49 | (e.mfderiv_injective hU s hs hz) |
| 50 | let f : StandardCapSpace → StandardCapSpace := (f₀ ∘ c) ∘ spherePolarMap q₀ |
| 51 | have hvalid (x : StandardCapSpace) (hx : x ∈ Metric.sphere (0 : StandardCapSpace) 1) : |
| 52 | c (spherePolarMap q₀ x) ∈ U := by |
| 53 | rw [spherePolarMap_sphere q₀ (⟨x, hx⟩ : UnitTwoSphere)] |
| 54 | exact hcentral ⟨x, hx⟩ |
| 55 | have hsmooth (x : StandardCapSpace) (hx : x ∈ Metric.sphere (0 : StandardCapSpace) 1) : |
| 56 | ContDiffAt ℝ 1 f x := by |
| 57 | have hx0 : x ≠ 0 := by intro hz; simp [hz] at hx |
| 58 | have ho := hf₀.contMDiffAt (hU.mem_nhds (hvalid x hx)) |
| 59 | have hcomp := (ho.comp (spherePolarMap q₀ x) (hc.contMDiff _)).comp x |
| 60 | (spherePolarMap_contMDiffAt q₀ hx0) |
| 61 | exact contMDiffAt_iff_contDiffAt.mp (hcomp.of_le (by simp)) |
| 62 | have hfeven (x : StandardCapSpace) : f (-x) = f x := by |
| 63 | by_cases hx : x = 0 |
| 64 | · simp only [hx, neg_zero] |
| 65 | · change f₀ (c (spherePolarMap q₀ (-x))) = f₀ (c (spherePolarMap q₀ x)) |
| 66 | rw [spherePolarMap_neg q₀ hx, heven] |
| 67 | obtain ⟨x, hx, hsingular⟩ := exists_singular_derivative_of_even f hsmooth hfeven |
| 68 | apply hsingular |
| 69 | have hx0 : x ≠ 0 := by intro hz; simp [hz] at hx |
| 70 | have ho := (hf₀.contMDiffAt (hU.mem_nhds (hvalid x hx))).mdifferentiableAt (by simp) |
| 71 | have hp := (spherePolarMap_contMDiffAt q₀ hx0).mdifferentiableAt (by simp) |
| 72 | have hc' := hc.mdifferentiable (by simp) (spherePolarMap q₀ x) |
| 73 | rw [← mfderiv_eq_fderiv] |
| 74 | rw [mfderiv_comp x (ho.comp _ hc') hp, |
| 75 | mfderiv_comp (spherePolarMap q₀ x) ho hc'] |
| 76 | exact ((hinj₀ _ (hvalid x hx)).comp |
| 77 | ((hc (spherePolarMap q₀ x)).mfderivToContinuousLinearEquiv (by simp)).injective).comp |
| 78 | (spherePolarMap_mfderiv_injective q₀ hx0) |
| 79 | |
| 80 | /-- Theorem 12.28: the actual selected blowup limit has no local |
| 81 | product cover identifying the sphere antipodes while fixing the line. |
| 82 | Compactness is used only for the central covered sphere. -/ |
| 83 | theorem blowupSequence_limit_no_antipodal_product (P : M35StandardCapPredecessors) |
| 84 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 85 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 86 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 87 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 88 | {J : Set ℝ} (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) J) |
| 89 | (c : StandardCylinderSpace → L.limit.sliceCarrier.carrier) |
| 90 | (hc : IsLocalDiffeomorph ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ c) |
| 91 | (heven : ∀ p : StandardCylinderSpace, c (-p.1, p.2) = c p) : False := by |
| 92 | have hcompact : IsCompact (range (fun q : UnitTwoSphere => c (q, 0))) := |
| 93 | isCompact_range (hc.contMDiff.continuous.comp (continuous_id.prodMk continuous_const)) |
| 94 | obtain ⟨k, hk⟩ := hcompact.elim_directed_cover L.exhaustion.space |
| 95 | L.exhaustion.space_open (by rw [L.exhaustion.space_covers]; exact subset_univ _) |
| 96 | (fun i j => ⟨max i j, L.exhaustion.space_increasing (le_max_left _ _), |
| 97 | L.exhaustion.space_increasing (le_max_right _ _)⟩) |
| 98 | exact cylinder_excludes_antipodal_product E.flow.base.flow (L.embedding k) |
| 99 | (L.exhaustion.space_open k) 0 ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ |
| 100 | c hc heven (fun q => hk (mem_range_self q)) |
| 101 | |
| 102 | end PoincareMT.M35.OrdinaryRealization |