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.CapGeometry.BoundedPullbackJets |
| 3 | import PoincareLib.Geometry.RicciFlow.Surgery.StandardCap.Uniqueness.Blowup.Neck.Jets.SelectedNeckJets |
| 4 | |
| 5 | /-! |
| 6 | # Actual selected metric errors at full-end preferred centers |
| 7 | |
| 8 | Morgan-Tian Theorem 12.28, pp. 323-324. The selected ambient metric |
| 9 | errors vanish after pullback whenever the preferred coordinate jets |
| 10 | are bounded. The source centers need no interior limiting point. |
| 11 | -/ |
| 12 | |
| 13 | set_option autoImplicit false |
| 14 | |
| 15 | open Set Filter |
| 16 | open scoped Manifold ContDiff Bundle BigOperators Topology |
| 17 | |
| 18 | namespace PoincareMT.M35.OrdinaryRealization |
| 19 | |
| 20 | local notation "E2" => EuclideanSpace ℝ (Fin 2) |
| 21 | local notation "E3" => EuclideanSpace ℝ (Fin 3) |
| 22 | |
| 23 | /-- Theorem 12.28: actual selected coefficient errors converge at |
| 24 | arbitrary interior neck centers with bounded coordinate jets and |
| 25 | images in one retained compact ambient chart. -/ |
| 26 | theorem blowupSequence_neck_coefficient_error_jets_of_bounded |
| 27 | (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 | (U : Set RoundCylinderSpace) (_hU : IsOpen U) |
| 39 | (_hc : ContMDiffOn ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ coordinate U) |
| 40 | (q : ℕ → UnitTwoSphere) (s : ℕ → ℝ) (_hp : ∀ k, (q k, s k) ∈ U) |
| 41 | (c : L.limit.sliceCarrier.carrier) |
| 42 | (_hcseq : ∀ k, coordinate (q k, s k) ∈ (extChartAt (𝓡 3) c).source) |
| 43 | (j : ℕ) (K : Set (ℝ × E3)) (_hK : IsCompact K) |
| 44 | (_hKU : K ⊆ {p | p ∈ blowupMetricChartDomain L.limit c ∧ |
| 45 | (extChartAt (𝓡 3) c).symm p.2 ∈ L.exhaustion.space j}) |
| 46 | (sigma : ℕ → ℕ) (_hsigma : Tendsto sigma atTop atTop) (u : ℕ → ℝ) |
| 47 | (_hpoints : ∀ k, (u k, extChartAt (𝓡 3) c (coordinate (q k, s k))) ∈ K) |
| 48 | (r : ℕ) (a b : Fin 3) |
| 49 | (_hjets : HasUniformJetBoundsAt (r + 1) |
| 50 | (fun (k : ℕ) (y : RoundCylinderCoordinates) => |
| 51 | extChartAt (𝓡 3) c (coordinate ((chartAt E2 (q k)).symm y.1, y.2))) |
| 52 | (fun k => (0, s k))), |
| 53 | let F (k : ℕ) (z : L.limit.sliceCarrier.carrier) := |
| 54 | ((L.embedding (sigma k)).forward 0 |
| 55 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos (sigma k)).le, le_rfl⟩ z).val |
| 56 | let Q (k : ℕ) := (blowupSequence P E t x ht hR).scale (L.subsequence (sigma k)) |
| 57 | Tendsto (fun k => iteratedFDeriv ℝ r (fun y : RoundCylinderCoordinates => |
| 58 | roundCylinderTensorCoefficient (fun z v w => Q k * |
| 59 | roundCylinderPullback (E.flow.metric (t (L.subsequence (sigma k)) + u k / Q k)) |
| 60 | (F k ∘ coordinate) z v w) (chartAt E2 (q k)) y a b - |
| 61 | roundCylinderTensorCoefficient |
| 62 | (roundCylinderPullback (L.limit.flow.metric (u k)) coordinate) |
| 63 | (chartAt E2 (q k)) y a b) (0, s k)) atTop (𝓝 0) := by |
| 64 | let : TopologicalSpace L.limit.carrier.carrier := L.limit.carrier.topologicalSpace |
| 65 | let : ChartedSpace E3 L.limit.carrier.carrier := L.limit.carrier.chartedSpace |
| 66 | have : IsManifold (𝓡 3) ∞ L.limit.carrier.carrier := L.limit.carrier.isManifold |
| 67 | intro coordinate U hU hcoord q s hp c hcseq j K hK hKU sigma hsigma u hpoints r a b hjets |
| 68 | let F (k : ℕ) (z : L.limit.sliceCarrier.carrier) := |
| 69 | ((L.embedding (sigma k)).forward 0 |
| 70 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos (sigma k)).le, le_rfl⟩ z).val |
| 71 | let Q (k : ℕ) := (blowupSequence P E t x ht hR).scale (L.subsequence (sigma k)) |
| 72 | let H : RoundCylinderSpace → E3 := extChartAt (𝓡 3) c ∘ coordinate |
| 73 | let psi (k : ℕ) (y : RoundCylinderCoordinates) := H ((chartAt E2 (q k)).symm y.1, y.2) |
| 74 | let A (k : ℕ) (y : E3) (i j : Fin 3) := |
| 75 | fixedCylinderMetricCoefficient E.flow.base.flow L.limit.sliceCarrier |
| 76 | (t (L.subsequence (sigma k))) (Q k) (F k) c i j (u k, y) - |
| 77 | FlowCarrier.coordinateCoefficient L.limit.carrier c |
| 78 | (fun s z v w => (L.limit.flow.metric s).inner z v w) i j (u k, y) |
| 79 | have hcenter (k : ℕ) : (chartAt E2 (q k)).symm 0 = q k := by |
| 80 | have h := (chartAt E2 (q k)).left_inv (mem_chart_source E2 (q k)) |
| 81 | rwa [sphere_chart_center] at h |
| 82 | have hpsicenter (k : ℕ) : psi k (0, s k) = H (q k, s k) := by |
| 83 | simp only [psi, hcenter] |
| 84 | have hpsi (k : ℕ) : ContDiffAt ℝ ∞ (psi k) (0, s k) := by |
| 85 | have hchart : coordinate (q k, s k) ∈ (chartAt E3 c).source := by |
| 86 | rw [← extChartAt_source (I := 𝓡 3)] |
| 87 | exact hcseq k |
| 88 | have hh := (contMDiffAt_extChartAt' (I := 𝓡 3) (n := ∞) hchart).comp (q k, s k) |
| 89 | (hcoord.contMDiffAt (hU.mem_nhds (hp k))) |
| 90 | have hh' : ContMDiffAt ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ H |
| 91 | ((chartAt E2 (q k)).symm 0, s k) := by |
| 92 | rw [hcenter] |
| 93 | exact hh |
| 94 | exact (hh'.comp (0, s k) (preferredCylinderChart_contMDiff (q k) (0, s k))).contDiffAt |
| 95 | have hcontrol (i j' : Fin 3) : |
| 96 | (∀ᶠ k in atTop, ContDiffAt ℝ ∞ (fun y => A k y i j') (H (q k, s k))) ∧ |
| 97 | ∀ m : ℕ, Tendsto (fun k => iteratedFDeriv ℝ m (fun y => A k y i j') (H (q k, s k))) |
| 98 | atTop (𝓝 0) := |
| 99 | blowupSequence_spatial_error_jets P E t x ht hR L c j i j' K hK hKU sigma hsigma |
| 100 | (fun k => (u k, H (q k, s k))) hpoints |
| 101 | have hlim := cylinder_pullback_jet_difference_tendsto_zero_of_bounded psi |
| 102 | (fun k => (0, s k)) (roundCylinderCoordinateBasis a) (roundCylinderCoordinateBasis b) |
| 103 | A r hpsi hjets |
| 104 | (fun i j' => by simpa only [hpsicenter] using (hcontrol i j').1) |
| 105 | (fun m _ i j' => by simpa only [hpsicenter] using (hcontrol i j').2 m) |
| 106 | apply hlim.congr' |
| 107 | filter_upwards [hsigma.eventually (eventually_ge_atTop j)] with k hk |
| 108 | have hzeroTime : (0 : ℝ) ∈ Icc (-L.exhaustion.time (sigma k)) 0 := |
| 109 | ⟨neg_nonpos.mpr (L.exhaustion.time_pos (sigma k)).le, le_rfl⟩ |
| 110 | have htime : t (L.subsequence (sigma k)) + 0 / Q k ∈ Ico 0 E.flow.base.lifetime := |
| 111 | ((L.embedding (sigma k)).forward 0 hzeroTime L.limit.base).property |
| 112 | have hF : ContMDiffOn (𝓡 3) (𝓡 3) ∞ (F k) (L.exhaustion.space (sigma k)) := |
| 113 | (sliceDiffeomorph htime).contMDiff.comp_contMDiffOn |
| 114 | ((L.embedding (sigma k)).forward_smooth 0 hzeroTime) |
| 115 | let pref (y : RoundCylinderCoordinates) := ((chartAt E2 (q k)).symm y.1, y.2) |
| 116 | let phi : RoundCylinderCoordinates → L.limit.sliceCarrier.carrier := coordinate ∘ pref |
| 117 | have hpref : pref (0, s k) = (q k, s k) := by simp only [pref, hcenter] |
| 118 | have hphiCenter : phi (0, s k) = coordinate (q k, s k) := congrArg coordinate hpref |
| 119 | have hcoordAt : ContMDiffAt ((𝓡 2).prod 𝓘(ℝ, ℝ)) (𝓡 3) ∞ coordinate (pref (0, s k)) := |
| 120 | hpref.symm ▸ hcoord.contMDiffAt (hU.mem_nhds (hp k)) |
| 121 | have hphi : ContMDiffAt 𝓘(ℝ, RoundCylinderCoordinates) (𝓡 3) ∞ phi (0, s k) := |
| 122 | hcoordAt.comp (0, s k) (preferredCylinderChart_contMDiff (q k) (0, s k)) |
| 123 | have hyj : coordinate (q k, s k) ∈ L.exhaustion.space j := by |
| 124 | have hy := (hKU (hpoints k)).2 |
| 125 | rwa [(extChartAt (𝓡 3) c).left_inv (hcseq k)] at hy |
| 126 | have hnearU := (preferredCylinderChart_contMDiff (q k) (0, s k)).continuousAt.preimage_mem_nhds |
| 127 | (hU.mem_nhds (by |
| 128 | change pref (0, s k) ∈ U |
| 129 | rw [hpref] |
| 130 | exact hp k)) |
| 131 | have hnearC := hphi.continuousAt.preimage_mem_nhds |
| 132 | ((isOpen_extChartAt_source (I := 𝓡 3) c).mem_nhds (hphiCenter.symm ▸ hcseq k)) |
| 133 | have hnearF := hphi.continuousAt.preimage_mem_nhds |
| 134 | ((L.exhaustion.space_open (sigma k)).mem_nhds |
| 135 | (hphiCenter.symm ▸ L.exhaustion.space_increasing hk hyj)) |
| 136 | have hgerm : (fun y : RoundCylinderCoordinates => |
| 137 | roundCylinderTensorCoefficient (fun z v w => Q k * |
| 138 | roundCylinderPullback (E.flow.metric (t (L.subsequence (sigma k)) + u k / Q k)) |
| 139 | (F k ∘ coordinate) z v w) (chartAt E2 (q k)) y a b - |
| 140 | roundCylinderTensorCoefficient (roundCylinderPullback (L.limit.flow.metric (u k)) coordinate) |
| 141 | (chartAt E2 (q k)) y a b) =ᶠ[𝓝 (0, s k)] |
| 142 | (fun y => ∑ i : Fin 3, ∑ j' : Fin 3, A k (psi k y) i j' * |
| 143 | (fderiv ℝ (psi k) y (roundCylinderCoordinateBasis a)) i * |
| 144 | (fderiv ℝ (psi k) y (roundCylinderCoordinateBasis b)) j') := by |
| 145 | filter_upwards [hnearU, hnearC, hnearF] with y hyU hyC hyF |
| 146 | have hco := hcoord.contMDiffAt (hU.mem_nhds hyU) |
| 147 | have hfo := hF.contMDiffAt ((L.exhaustion.space_open (sigma k)).mem_nhds hyF) |
| 148 | have hfirst := roundCylinderPullback_coefficient_eq_chart_sum |
| 149 | (E.flow.metric (t (L.subsequence (sigma k)) + u k / Q k)) (F k) coordinate |
| 150 | (q k) c y a b hyC hfo hco |
| 151 | have hsecond := roundCylinderPullback_coefficient_eq_chart_sum |
| 152 | (L.limit.flow.metric (u k)) id coordinate (q k) c y a b hyC contMDiffAt_id hco |
| 153 | have hcoef (i j' : Fin 3) : A k (psi k y) i j' = |
| 154 | Q k * (E.flow.metric (t (L.subsequence (sigma k)) + u k / Q k)).pullbackCoefficients |
| 155 | (F k ∘ (extChartAt (𝓡 3) c).symm) (psi k y) |
| 156 | (EuclideanSpace.basisFun (Fin 3) ℝ i) (EuclideanSpace.basisFun (Fin 3) ℝ j') - |
| 157 | (L.limit.flow.metric (u k)).pullbackCoefficients (extChartAt (𝓡 3) c).symm (psi k y) |
| 158 | (EuclideanSpace.basisFun (Fin 3) ℝ i) (EuclideanSpace.basisFun (Fin 3) ℝ j') := by |
| 159 | have hinv : (extChartAt (𝓡 3) c).symm (psi k y) = phi y := |
| 160 | (extChartAt (𝓡 3) c).left_inv hyC |
| 161 | have hfixed := fixedCylinderMetricCoefficient_eq_pullback |
| 162 | E.flow.base.flow L.limit.sliceCarrier |
| 163 | (t (L.subsequence (sigma k))) (Q k) (F k) c i j' (u k, psi k y) |
| 164 | ((extChartAt (𝓡 3) c).map_source hyC) (hinv.symm ▸ hfo) |
| 165 | exact congrArg (fun z : ℝ => z - |
| 166 | (L.limit.flow.metric (u k)).pullbackCoefficients (extChartAt (𝓡 3) c).symm (psi k y) |
| 167 | (EuclideanSpace.basisFun (Fin 3) ℝ i) (EuclideanSpace.basisFun (Fin 3) ℝ j')) hfixed |
| 168 | change Q k * roundCylinderTensorCoefficient |
| 169 | (roundCylinderPullback (E.flow.metric (t (L.subsequence (sigma k)) + u k / Q k)) |
| 170 | (F k ∘ coordinate)) (chartAt E2 (q k)) y a b - |
| 171 | roundCylinderTensorCoefficient |
| 172 | (roundCylinderPullback (L.limit.flow.metric (u k)) coordinate) |
| 173 | (chartAt E2 (q k)) y a b = _ |
| 174 | refine (congrArg₂ (fun v w : ℝ => Q k * v - w) hfirst hsecond).trans ?_ |
| 175 | simp_rw [hcoef] |
| 176 | simp only [Finset.mul_sum, sub_mul, Finset.sum_sub_distrib, mul_assoc, |
| 177 | psi, H, Function.comp_def, id_eq] |
| 178 | rfl |
| 179 | exact ((hgerm.iteratedFDeriv ℝ r).eq_of_nhds).symm |
| 180 | |
| 181 | end PoincareMT.M35.OrdinaryRealization |