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.Neck.Geometry.SelectedNeckComparison |
| 3 | |
| 4 | /-! |
| 5 | # Selected neck comparison with the limit neck's fixed scale |
| 6 | |
| 7 | Morgan-Tian Definition 9.72 and Theorem 12.28, pp. 323-324. |
| 8 | The cap boundary neck need not have unit scalar at its center. Its |
| 9 | fixed positive normalization multiplies both actual pullback families |
| 10 | and their coefficient errors. The comparison remains on a strictly |
| 11 | retained cylinder and on the stated compact time slab. |
| 12 | -/ |
| 13 | |
| 14 | set_option autoImplicit false |
| 15 | |
| 16 | open Set Filter |
| 17 | open scoped Manifold ContDiff Bundle Topology |
| 18 | |
| 19 | namespace PoincareMT.M35.OrdinaryRealization |
| 20 | |
| 21 | local notation "E2" => EuclideanSpace ℝ (Fin 2) |
| 22 | local notation "E3" => EuclideanSpace ℝ (Fin 3) |
| 23 | |
| 24 | /-- Theorem 12.28: a fixed positive normalization of a finer limit |
| 25 | neck transfers to the actual selected ordinary metrics, with the same |
| 26 | normalization multiplying the blowup scale. -/ |
| 27 | theorem blowupSequence_scaled_neck_family_close (P : M35StandardCapPredecessors) |
| 28 | {g₀ : StandardInitialMetric} (E : RepairedStandardCapExistenceData g₀) |
| 29 | (t : ℕ → ℝ) (x : ℕ → StandardCapSpace) |
| 30 | (ht : ∀ k, t k ∈ Ico 0 E.flow.base.lifetime) |
| 31 | (hR : Tendsto (fun k => (E.flow.connection (t k)).scalarCurvature (x k)) atTop atTop) |
| 32 | (L : GeneralizedBlowupConvergence (blowupSequence P E t x ht hR) |
| 33 | (blowupBackwardInterval ⊤)) : |
| 34 | letI : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 35 | letI : ChartedSpace E3 L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 36 | letI : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 37 | ∀ (coordinate : RoundCylinderSpace → L.limit.sliceCarrier.carrier) |
| 38 | (delta epsilon S : ℝ) (_hd : 0 < delta) (_he : 0 < epsilon) (_hS : 0 < S) |
| 39 | (_hde : delta ≤ epsilon / 4) |
| 40 | (_hcoord : ContMDiffOn ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ coordinate |
| 41 | (univ ×ˢ Ioo (-delta⁻¹) delta⁻¹)) |
| 42 | (j : ℕ) (_hspace : MapsTo coordinate (univ ×ˢ Ioo (-delta⁻¹) delta⁻¹) |
| 43 | (L.exhaustion.space j)) |
| 44 | (I J : Set ℝ) (_hJ : IsCompact J) (_hJt : J ⊆ Iic 0) (_hIJ : I ⊆ J) |
| 45 | (_hC : RoundCylinderFamilyClose delta I |
| 46 | (fun u z v w => S * roundCylinderPullback (L.limit.flow.metric u) coordinate z v w)), |
| 47 | let F (k : ℕ) (z : L.limit.sliceCarrier.carrier) := |
| 48 | ((L.embedding k).forward 0 |
| 49 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 50 | let Q (k : ℕ) := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 51 | ∃ N : ℕ, ∀ k ≥ N, RoundCylinderFamilyClose epsilon I |
| 52 | (fun u z v w => (S * Q k) * |
| 53 | roundCylinderPullback (E.flow.metric (t (L.subsequence k) + u / Q k)) |
| 54 | (F k ∘ coordinate) z v w) := by |
| 55 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 56 | let : ChartedSpace E3 L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 57 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 58 | intro coordinate delta epsilon S hd he hS hde hcoord j hspace I J hJ hJt hIJ hC |
| 59 | let F (k : ℕ) (z : L.limit.sliceCarrier.carrier) := |
| 60 | ((L.embedding k).forward 0 |
| 61 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ z).val |
| 62 | let Q (k : ℕ) := (blowupSequence P E t x ht hR).scale (L.subsequence k) |
| 63 | let B (k : ℕ) (u : ℝ) : RoundCylinderTwoTensor := fun z v w => (S * Q k) * |
| 64 | roundCylinderPullback (E.flow.metric (t (L.subsequence k) + u / Q k)) |
| 65 | (F k ∘ coordinate) z v w |
| 66 | let C (u : ℝ) : RoundCylinderTwoTensor := fun z v w => |
| 67 | S * roundCylinderPullback (L.limit.flow.metric u) coordinate z v w |
| 68 | have hinv : epsilon⁻¹ < delta⁻¹ := inv_strictAnti₀ hd (by linarith) |
| 69 | have hinside : (univ : Set UnitTwoSphere) ×ˢ Icc (-epsilon⁻¹) epsilon⁻¹ ⊆ |
| 70 | univ ×ˢ Ioo (-delta⁻¹) delta⁻¹ := by |
| 71 | intro z hz |
| 72 | exact ⟨mem_univ _, (neg_lt_neg hinv).trans_le hz.2.1, hz.2.2.trans_lt hinv⟩ |
| 73 | have hsmooth (k : ℕ) (hk : j ≤ k) (u A : ℝ) : |
| 74 | RoundCylinderTensorSmoothOn delta (fun z v w => A * |
| 75 | roundCylinderPullback (E.flow.metric (t (L.subsequence k) + u / Q k)) |
| 76 | (F k ∘ coordinate) z v w) := by |
| 77 | have htime : t (L.subsequence k) + 0 / Q k ∈ Ico 0 E.flow.base.lifetime := |
| 78 | ((L.embedding k).forward 0 |
| 79 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩ L.limit.base).property |
| 80 | have hF : ContMDiffOn (𝓡 3) (𝓡 3) ∞ (F k) (L.exhaustion.space k) := |
| 81 | (sliceDiffeomorph htime).contMDiff.comp_contMDiffOn |
| 82 | ((L.embedding k).forward_smooth 0 |
| 83 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos k).le, le_rfl⟩) |
| 84 | exact roundCylinderPullback_scaled_smoothOn _ _ delta A |
| 85 | (hF.comp hcoord (fun z hz => L.exhaustion.space_increasing hk (hspace hz))) |
| 86 | have hsmoothAt (D : RoundCylinderTwoTensor) (hD : RoundCylinderTensorSmoothOn delta D) |
| 87 | (q : UnitTwoSphere) (s : ℝ) (hs : s ∈ Icc (-epsilon⁻¹) epsilon⁻¹) (a b : Fin 3) : |
| 88 | ContDiffAt ℝ ∞ (fun y => roundCylinderTensorCoefficient D |
| 89 | (chartAt E2 q) y a b) (0, s) := by |
| 90 | apply (hD q a b).contDiffAt |
| 91 | apply ((chartAt E2 q).open_target.prod isOpen_Ioo).mem_nhds |
| 92 | exact ⟨by rw [sphere_chart_target]; trivial, |
| 93 | (neg_lt_neg hinv).trans_le hs.1, hs.2.trans_lt hinv⟩ |
| 94 | have hCsmooth (u A : ℝ) : RoundCylinderTensorSmoothOn delta |
| 95 | (fun z v w => A * roundCylinderPullback (L.limit.flow.metric u) coordinate z v w) := |
| 96 | roundCylinderPullback_scaled_smoothOn (L.limit.flow.metric u) coordinate delta A hcoord |
| 97 | obtain ⟨N, hN⟩ := cylinder_jet_difference_uniform ⌊epsilon⁻¹⌋₊ J hJ |
| 98 | (fun u hu => (hJt hu).trans_lt zero_lt_one) epsilon⁻¹ |
| 99 | (fun k => B (k + j)) (fun _ => C) |
| 100 | (fun k u _ => hsmoothAt _ (hsmooth (k + j) (Nat.le_add_left _ _) u (S * Q (k + j)))) |
| 101 | (fun _ u _ => hsmoothAt _ (hCsmooth u S)) (by |
| 102 | intro r _ a b eta heta |
| 103 | obtain ⟨K, hK⟩ := blowupSequence_neck_coefficient_jets_uniform P E t x ht hR L |
| 104 | coordinate (univ ×ˢ Ioo (-delta⁻¹) delta⁻¹) (isOpen_univ.prod isOpen_Ioo) |
| 105 | hcoord epsilon⁻¹ hinside j (fun q s hs => hspace (hinside ⟨mem_univ q, hs⟩)) |
| 106 | J hJ hJt r a b (eta / S) (div_pos heta hS) |
| 107 | refine ⟨K, ?_⟩ |
| 108 | intro k hk u hu q s hs |
| 109 | have hbase := hK (k + j) (hk.trans (Nat.le_add_right _ _)) u hu q s hs |
| 110 | let f (y : RoundCylinderCoordinates) := |
| 111 | roundCylinderTensorCoefficient (fun z v w => Q (k + j) * |
| 112 | roundCylinderPullback (E.flow.metric (t (L.subsequence (k + j)) + u / Q (k + j))) |
| 113 | (F (k + j) ∘ coordinate) z v w) (chartAt E2 q) y a b - |
| 114 | roundCylinderTensorCoefficient |
| 115 | (roundCylinderPullback (L.limit.flow.metric u) coordinate) (chartAt E2 q) y a b |
| 116 | have hf : ContDiffAt ℝ r f (0, s) := by |
| 117 | have hfirst := hsmoothAt _ (hsmooth (k + j) (Nat.le_add_left _ _) u (Q (k + j))) |
| 118 | q s hs a b |
| 119 | have hsecond := hsmoothAt _ (hCsmooth u 1) q s hs a b |
| 120 | simp only [one_mul] at hsecond |
| 121 | exact (hfirst.sub hsecond).of_le (by norm_cast; exact le_top) |
| 122 | have heq : (fun y => roundCylinderTensorCoefficient (B (k + j) u) |
| 123 | (chartAt E2 q) y a b - roundCylinderTensorCoefficient (C u) |
| 124 | (chartAt E2 q) y a b) = S • f := by |
| 125 | funext y |
| 126 | change (S * Q (k + j)) * _ - S * _ = S * (Q (k + j) * _ - _) |
| 127 | dsimp only [roundCylinderTensorCoefficient] |
| 128 | ring |
| 129 | rw [heq, iteratedFDeriv_const_smul_apply hf, norm_smul, Real.norm_eq_abs, |
| 130 | abs_of_pos hS] |
| 131 | simpa only [mul_comm] using (lt_div_iff₀ hS).mp hbase) |
| 132 | (epsilon ^ 2 / 8) (by positivity) |
| 133 | refine ⟨N + j, fun k hk => ?_⟩ |
| 134 | have hjk : j ≤ k := by omega |
| 135 | have hkj : N ≤ k - j := by omega |
| 136 | apply hC.perturb_of_jet_difference_le (eta := epsilon ^ 2 / 8) hd (by linarith) |
| 137 | (fun u hu => (hJt (hIJ hu)).trans_lt zero_lt_one) |
| 138 | · intro u _ q a b |
| 139 | exact (hsmooth k hjk u (S * Q k) q a b).mono |
| 140 | (prod_mono subset_rfl (Ioo_subset_Ioo (neg_le_neg hinv.le) hinv.le)) |
| 141 | · have hsq := pow_le_pow_left₀ hd.le hde 2 |
| 142 | nlinarith [sq_pos_of_pos he] |
| 143 | · intro u hu z hz |
| 144 | have h := (hN (k - j) hkj u (hIJ hu) z ⟨hz.1.le, hz.2.le⟩).le |
| 145 | simpa only [Nat.sub_add_cancel hjk] using h |
| 146 | |
| 147 | end PoincareMT.M35.OrdinaryRealization |