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 Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension |
| 2 | import Mathlib.Analysis.Calculus.ContDiff.RCLike |
| 3 | import Mathlib.Topology.Homotopy.Basic |
| 4 | import Mathlib.Tactic.Abel |
| 5 | import Mathlib.Tactic.Linarith |
| 6 | import Mathlib.Tactic.Ring |
| 7 | |
| 8 | /-! |
| 9 | # Supported point corrections and their metric bound |
| 10 | |
| 11 | A smooth cutoff translation corrects a nearby point while remaining close |
| 12 | to the identity in value and differential. A compactness argument on the |
| 13 | coordinate unit sphere gives the corresponding near-unit differential |
| 14 | bound in a continuous family of actual tangent norms. These are the local |
| 15 | point-correction estimates for the quantitative approximation obligation |
| 16 | following Morgan-Tian Claim 18.22, printed p. 433, in the 2026-09-18 SurgeryComparison.Transport |
| 17 | contract. See the derivation |
| 18 | `proof-work/tasks/SurgeryComparison.Transport/derivations/2026-09-20-helper-point-correction.md`. |
| 19 | -/ |
| 20 | |
| 21 | set_option autoImplicit false |
| 22 | |
| 23 | open Function Set Filter Metric |
| 24 | open scoped Topology ContDiff NNReal unitInterval |
| 25 | |
| 26 | namespace PoincareMT.SurgeryComparison.Transport |
| 27 | |
| 28 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 29 | |
| 30 | /-- A translation multiplied by a cutoff, for SurgeryComparison.Transport exact-point correction |
| 31 | following Claim 18.22, p. 433. -/ |
| 32 | def cutoffTranslation (β : E → ℝ) (v : E) (x : E) : E := |
| 33 | x + β x • v |
| 34 | |
| 35 | /-- The correction fixes every point where its cutoff vanishes; SurgeryComparison.Transport |
| 36 | point-correction derivation, Claim 18.22, p. 433. -/ |
| 37 | theorem cutoffTranslation_eq_self {β : E → ℝ} (v : E) {x : E} |
| 38 | (hx : β x = 0) : cutoffTranslation β v x = x := by |
| 39 | simp [cutoffTranslation, hx] |
| 40 | |
| 41 | /-- Outside the cutoff's topological support, the correction agrees |
| 42 | locally with the identity; SurgeryComparison.Transport point correction, Claim 18.22, p. 433. -/ |
| 43 | theorem cutoffTranslation_eventuallyEq {β : E → ℝ} (v : E) {x : E} |
| 44 | (hx : x ∉ tsupport β) : cutoffTranslation β v =ᶠ[𝓝 x] id := by |
| 45 | filter_upwards [(isClosed_tsupport β).isOpen_compl.mem_nhds hx] with y hy |
| 46 | exact cutoffTranslation_eq_self v (image_eq_zero_of_notMem_tsupport hy) |
| 47 | |
| 48 | /-- A cutoff equal to one at the approximate point corrects its value |
| 49 | exactly; SurgeryComparison.Transport point-correction derivation, Claim 18.22, p. 433. -/ |
| 50 | theorem cutoffTranslation_eq_target {β : E → ℝ} {a b : E} |
| 51 | (ha : β a = 1) : cutoffTranslation β (b - a) a = b := by |
| 52 | simp only [cutoffTranslation, ha, one_smul] |
| 53 | abel |
| 54 | |
| 55 | /-- The cutoff translation is continuous jointly in its translation |
| 56 | parameter and point; SurgeryComparison.Transport point correction, Claim 18.22, p. 433. -/ |
| 57 | theorem continuous_cutoffTranslation {β : E → ℝ} (hβ : Continuous β) : |
| 58 | Continuous (fun p : E × E => cutoffTranslation β p.1 p.2) := |
| 59 | continuous_snd.add ((hβ.comp continuous_snd).smul continuous_fst) |
| 60 | |
| 61 | /-- Smoothness of the cutoff gives smoothness of its correction; SurgeryComparison.Transport |
| 62 | point-correction derivation, Claim 18.22, p. 433. -/ |
| 63 | theorem contDiff_cutoffTranslation {β : E → ℝ} {n : ℕ∞} |
| 64 | (hβ : ContDiff ℝ n β) (v : E) : ContDiff ℝ n (cutoffTranslation β v) := |
| 65 | contDiff_id.add (hβ.smul contDiff_const) |
| 66 | |
| 67 | /-- The displacement is bounded by the translation length when the |
| 68 | cutoff takes values in the unit interval; Claim 18.22, p. 433. -/ |
| 69 | theorem dist_cutoffTranslation_self_le {β : E → ℝ} (v x : E) |
| 70 | (hβ0 : 0 ≤ β x) (hβ1 : β x ≤ 1) : |
| 71 | dist (cutoffTranslation β v x) x ≤ ‖v‖ := by |
| 72 | simp only [cutoffTranslation, dist_eq_norm, add_sub_cancel_left, |
| 73 | norm_smul, Real.norm_of_nonneg hβ0] |
| 74 | exact mul_le_of_le_one_left (norm_nonneg v) hβ1 |
| 75 | |
| 76 | /-- The displacement has compact support if the cutoff does; SurgeryComparison.Transport |
| 77 | point-correction derivation, Claim 18.22, p. 433. -/ |
| 78 | theorem hasCompactSupport_cutoffTranslation_sub_id {β : E → ℝ} |
| 79 | (hβ : HasCompactSupport β) (v : E) : |
| 80 | HasCompactSupport (fun x => cutoffTranslation β v x - x) := by |
| 81 | simpa only [Pi.smul_def', cutoffTranslation, add_sub_cancel_left] using |
| 82 | (hβ.smul_right (f' := fun _ => v)) |
| 83 | |
| 84 | /-- The Lipschitz bound for the displacement is the cutoff constant |
| 85 | times the translation length; SurgeryComparison.Transport point correction, Claim 18.22, p. 433. -/ |
| 86 | theorem lipschitzWith_cutoff_displacement {β : E → ℝ} {L : ℝ≥0} |
| 87 | (hβ : LipschitzWith L β) (v : E) : |
| 88 | LipschitzWith (L * ‖v‖₊) (fun x => β x • v) := by |
| 89 | apply LipschitzWith.of_dist_le_mul |
| 90 | intro x y |
| 91 | rw [dist_eq_norm, ← sub_smul, norm_smul] |
| 92 | have hb : ‖β x - β y‖ ≤ (L : ℝ) * dist x y := by |
| 93 | simpa only [← dist_eq_norm] using (hβ.dist_le_mul x y) |
| 94 | calc |
| 95 | ‖β x - β y‖ * ‖v‖ ≤ ((L : ℝ) * dist x y) * ‖v‖ := |
| 96 | mul_le_mul_of_nonneg_right hb (norm_nonneg v) |
| 97 | _ = ((L * ‖v‖₊ : ℝ≥0) : ℝ) * dist x y := by |
| 98 | simp only [NNReal.coe_mul, coe_nnnorm] |
| 99 | ring |
| 100 | |
| 101 | /-- A cutoff translation has Lipschitz factor at most one plus its |
| 102 | displacement's Lipschitz constant; Claim 18.22, p. 433. -/ |
| 103 | theorem lipschitzWith_cutoffTranslation {β : E → ℝ} {L : ℝ≥0} |
| 104 | (hβ : LipschitzWith L β) (v : E) : |
| 105 | LipschitzWith (1 + L * ‖v‖₊) (cutoffTranslation β v) := by |
| 106 | apply LipschitzWith.of_dist_le_mul |
| 107 | intro x y |
| 108 | have hdis := (lipschitzWith_cutoff_displacement hβ v).dist_le_mul x y |
| 109 | have heq : cutoffTranslation β v x - cutoffTranslation β v y = |
| 110 | (x - y) + (β x • v - β y • v) := by |
| 111 | simp only [cutoffTranslation] |
| 112 | abel |
| 113 | rw [dist_eq_norm, heq] |
| 114 | calc |
| 115 | ‖(x - y) + (β x • v - β y • v)‖ ≤ |
| 116 | ‖x - y‖ + ‖β x • v - β y • v‖ := norm_add_le _ _ |
| 117 | _ ≤ dist x y + ((L * ‖v‖₊ : ℝ≥0) : ℝ) * dist x y := by |
| 118 | simpa only [← dist_eq_norm] using (add_le_add le_rfl hdis) |
| 119 | _ = ((1 + L * ‖v‖₊ : ℝ≥0) : ℝ) * dist x y := by |
| 120 | simp only [NNReal.coe_add, NNReal.coe_one] |
| 121 | ring |
| 122 | |
| 123 | /-- The derivative is the identity plus the rank-one cutoff derivative. |
| 124 | Differentiability is explicit before using `fderiv`; Claim 18.22, p. 433. -/ |
| 125 | theorem fderiv_cutoffTranslation {β : E → ℝ} {x : E} |
| 126 | (hβ : DifferentiableAt ℝ β x) (v : E) : |
| 127 | fderiv ℝ (cutoffTranslation β v) x = |
| 128 | ContinuousLinearMap.id ℝ E + (fderiv ℝ β x).smulRight v := by |
| 129 | exact ((hasFDerivAt_id x).add (hβ.hasFDerivAt.smul_const v)).fderiv |
| 130 | |
| 131 | /-- The derivative tends uniformly to the identity with the translation |
| 132 | length when the cutoff is Lipschitz; Claim 18.22, p. 433. -/ |
| 133 | theorem norm_fderiv_cutoffTranslation_sub_id_le {β : E → ℝ} {L : ℝ≥0} |
| 134 | (hL : LipschitzWith L β) {x : E} (hβ : DifferentiableAt ℝ β x) (v : E) : |
| 135 | ‖fderiv ℝ (cutoffTranslation β v) x - ContinuousLinearMap.id ℝ E‖ ≤ |
| 136 | (L : ℝ) * ‖v‖ := by |
| 137 | have hsmul : fderiv ℝ (fun y => β y • v) x = (fderiv ℝ β x).smulRight v := |
| 138 | (hβ.hasFDerivAt.smul_const v).fderiv |
| 139 | rw [fderiv_cutoffTranslation hβ, add_sub_cancel_left, ← hsmul] |
| 140 | exact norm_fderiv_le_of_lipschitz ℝ (lipschitzWith_cutoff_displacement hL v) |
| 141 | |
| 142 | /-- Support inside a smaller ball keeps the entire correction in the |
| 143 | outer ball if the displacement fits in the margin; Claim 18.22, p. 433. -/ |
| 144 | theorem cutoffTranslation_mapsTo_ball {β : E → ℝ} {c v : E} {r R : ℝ} |
| 145 | (hβ0 : ∀ x, 0 ≤ β x) (hβ1 : ∀ x, β x ≤ 1) |
| 146 | (hzero : ∀ x, r ≤ dist x c → β x = 0) (hv : ‖v‖ ≤ R - r) : |
| 147 | MapsTo (cutoffTranslation β v) (ball c R) (ball c R) := by |
| 148 | intro x hx |
| 149 | by_cases hxr : dist x c < r |
| 150 | · have hdist := (dist_triangle (cutoffTranslation β v x) x c).trans |
| 151 | (add_le_add (dist_cutoffTranslation_self_le v x (hβ0 x) (hβ1 x)) le_rfl) |
| 152 | change dist (cutoffTranslation β v x) c < R |
| 153 | linarith |
| 154 | · simpa only [cutoffTranslation_eq_self v (hzero x (le_of_not_gt hxr))] using hx |
| 155 | |
| 156 | /-- Scaling the translation parameter gives a specified homotopy from |
| 157 | the identity to the correction; SurgeryComparison.Transport point correction, Claim 18.22, p. 433. -/ |
| 158 | def cutoffTranslationHomotopy {β : E → ℝ} (hβ : Continuous β) (v : E) : |
| 159 | (ContinuousMap.id E).Homotopy |
| 160 | ⟨cutoffTranslation β v, continuous_id.add (hβ.smul continuous_const)⟩ where |
| 161 | toFun p := cutoffTranslation β ((p.1 : ℝ) • v) p.2 |
| 162 | continuous_toFun := continuous_snd.add |
| 163 | ((hβ.comp continuous_snd).smul |
| 164 | ((continuous_subtype_val.comp continuous_fst).smul continuous_const)) |
| 165 | map_zero_left x := by simp [cutoffTranslation] |
| 166 | map_one_left x := by |
| 167 | change cutoffTranslation β ((1 : ℝ) • v) x = cutoffTranslation β v x |
| 168 | rw [one_smul] |
| 169 | |
| 170 | section MetricBound |
| 171 | |
| 172 | variable [FiniteDimensional ℝ E] |
| 173 | |
| 174 | /-- Continuous point and linear-operator families that equal the identity |
| 175 | at zero have near-unit norm bound uniformly on a compact set. The norm |
| 176 | family is used only on its open coordinate domain. This is the compact |
| 177 | metric-continuity step of the SurgeryComparison.Transport point-correction derivation, following |
| 178 | Claim 18.22, p. 433; the unit-sphere argument also covers dimension zero. -/ |
| 179 | theorem exists_metric_bound_of_continuous_family |
| 180 | {U K : Set E} (hU : IsOpen U) (hK : IsCompact K) (hKU : K ⊆ U) |
| 181 | (N : E × E → ℝ) (hN : ContinuousOn N (U ×ˢ univ)) |
| 182 | (hNpos : ∀ x ∈ K, ∀ w : E, w ≠ 0 → 0 < N (x, w)) |
| 183 | (hNsmul : ∀ x ∈ U, ∀ (c : ℝ) (w : E), N (x, c • w) = |c| * N (x, w)) |
| 184 | (F : E × E → E) (A : E × E → E →L[ℝ] E) |
| 185 | (hF : Continuous F) (hA : Continuous A) |
| 186 | (hF0 : ∀ x ∈ K, F (0, x) = x) |
| 187 | (hA0 : ∀ x ∈ K, A (0, x) = ContinuousLinearMap.id ℝ E) |
| 188 | {η : ℝ} (hη : 0 < η) : |
| 189 | ∃ δ : ℝ, 0 < δ ∧ ∀ v : E, ‖v‖ < δ → ∀ x ∈ K, |
| 190 | F (v, x) ∈ U ∧ ∀ w : E, N (F (v, x), A (v, x) w) ≤ (1 + η) * N (x, w) := by |
| 191 | have hrange : ∀ᶠ v in 𝓝 (0 : E), ∀ x ∈ K, F (v, x) ∈ U := by |
| 192 | apply hK.eventually_forall_of_forall_eventually |
| 193 | intro x hx |
| 194 | exact hF.continuousAt.preimage_mem_nhds |
| 195 | (hU.mem_nhds (by rw [hF0 x hx]; exact hKU hx)) |
| 196 | have hsphere : ∀ᶠ v in 𝓝 (0 : E), ∀ p ∈ K ×ˢ sphere (0 : E) 1, |
| 197 | N (F (v, p.1), A (v, p.1) p.2) < (1 + η) * N p := by |
| 198 | apply (hK.prod (isCompact_sphere (0 : E) 1)).eventually_forall_of_forall_eventually |
| 199 | rintro ⟨x, w⟩ ⟨hx, hw⟩ |
| 200 | have hw_norm : ‖w‖ = 1 := by simpa only [mem_sphere, dist_zero_right] using hw |
| 201 | have hw_ne : w ≠ 0 := by |
| 202 | intro hw0 |
| 203 | simpa only [hw0, norm_zero, zero_ne_one] using hw_norm |
| 204 | have hFx : F (0, x) ∈ U := by rw [hF0 x hx]; exact hKU hx |
| 205 | have hleft : ContinuousAt |
| 206 | (fun p : E × (E × E) => N (F (p.1, p.2.1), A (p.1, p.2.1) p.2.2)) |
| 207 | (0, (x, w)) := |
| 208 | (hN.continuousAt ((hU.prod isOpen_univ).mem_nhds ⟨hFx, mem_univ _⟩)).comp |
| 209 | (f := fun p : E × (E × E) => (F (p.1, p.2.1), A (p.1, p.2.1) p.2.2)) |
| 210 | ((hF.comp (continuous_fst.prodMk continuous_snd.fst)).continuousAt.prodMk |
| 211 | ((hA.comp (continuous_fst.prodMk continuous_snd.fst)).clm_apply |
| 212 | continuous_snd.snd).continuousAt) |
| 213 | have hright : ContinuousAt |
| 214 | (fun p : E × (E × E) => (1 + η) * N p.2) (0, (x, w)) := |
| 215 | continuousAt_const.mul |
| 216 | ((hN.continuousAt ((hU.prod isOpen_univ).mem_nhds |
| 217 | ⟨hKU hx, mem_univ w⟩)).comp |
| 218 | (f := fun p : E × (E × E) => p.2) continuous_snd.continuousAt) |
| 219 | apply hleft.eventually_lt hright |
| 220 | simp only [hF0 x hx, hA0 x hx, ContinuousLinearMap.id_apply] |
| 221 | nlinarith [hNpos x hx w hw_ne] |
| 222 | obtain ⟨δ, hδ, hball⟩ := Metric.mem_nhds_iff.mp (hrange.and hsphere) |
| 223 | refine ⟨δ, hδ, fun v hv x hx => ?_⟩ |
| 224 | have hv' : v ∈ ball (0 : E) δ := by simpa only [mem_ball, dist_zero_right] using hv |
| 225 | obtain ⟨hr, hs⟩ := hball hv' |
| 226 | refine ⟨hr x hx, fun w => ?_⟩ |
| 227 | by_cases hw : w = 0 |
| 228 | · have hzero (y : E) (hy : y ∈ U) : N (y, 0) = 0 := by |
| 229 | simpa only [zero_smul, abs_zero, zero_mul] using hNsmul y hy 0 (0 : E) |
| 230 | simp only [hw, map_zero, hzero _ (hr x hx), hzero _ (hKU hx), mul_zero, le_refl] |
| 231 | · have hn : 0 < ‖w‖ := norm_pos_iff.mpr hw |
| 232 | let z : E := ‖w‖⁻¹ • w |
| 233 | have hz : z ∈ sphere (0 : E) 1 := by |
| 234 | simp only [z, mem_sphere, dist_zero_right, norm_smul, Real.norm_eq_abs, |
| 235 | abs_inv, abs_of_pos hn, inv_mul_cancel₀ hn.ne'] |
| 236 | have hs' := (hs (x, z) ⟨hx, hz⟩).le |
| 237 | have hscale : ‖w‖ • z = w := smul_inv_smul₀ hn.ne' w |
| 238 | calc |
| 239 | N (F (v, x), A (v, x) w) = |
| 240 | ‖w‖ * N (F (v, x), A (v, x) z) := by |
| 241 | conv_lhs => rw [← hscale, map_smul, hNsmul _ (hr x hx), abs_of_pos hn] |
| 242 | _ ≤ ‖w‖ * ((1 + η) * N (x, z)) := mul_le_mul_of_nonneg_left hs' hn.le |
| 243 | _ = (1 + η) * N (x, w) := by |
| 244 | calc |
| 245 | ‖w‖ * ((1 + η) * N (x, z)) = (1 + η) * (‖w‖ * N (x, z)) := by ring |
| 246 | _ = (1 + η) * N (x, w) := by |
| 247 | congr 1 |
| 248 | simpa only [abs_of_pos hn, hscale] using (hNsmul x (hKU hx) ‖w‖ z).symm |
| 249 | |
| 250 | /-- The cutoff translation's differential is near-unit in the actual |
| 251 | continuous tangent norms on a compact coordinate set, uniformly for small |
| 252 | translation parameters. This is the metric step needed for the exact |
| 253 | basepoint correction in Claim 18.22, p. 433. -/ |
| 254 | theorem exists_cutoffTranslation_metric_bound |
| 255 | {U K : Set E} (hU : IsOpen U) (hK : IsCompact K) (hKU : K ⊆ U) |
| 256 | (N : E × E → ℝ) (hN : ContinuousOn N (U ×ˢ univ)) |
| 257 | (hNpos : ∀ x ∈ K, ∀ w : E, w ≠ 0 → 0 < N (x, w)) |
| 258 | (hNsmul : ∀ x ∈ U, ∀ (c : ℝ) (w : E), N (x, c • w) = |c| * N (x, w)) |
| 259 | {β : E → ℝ} (hβ : ContDiff ℝ ∞ β) {η : ℝ} (hη : 0 < η) : |
| 260 | ∃ δ : ℝ, 0 < δ ∧ ∀ v : E, ‖v‖ < δ → ∀ x ∈ K, |
| 261 | cutoffTranslation β v x ∈ U ∧ ∀ w : E, |
| 262 | N (cutoffTranslation β v x, fderiv ℝ (cutoffTranslation β v) x w) ≤ |
| 263 | (1 + η) * N (x, w) := by |
| 264 | let A : E × E → E →L[ℝ] E := fun p => |
| 265 | ContinuousLinearMap.id ℝ E + (fderiv ℝ β p.2).smulRight p.1 |
| 266 | have hA : Continuous A := by |
| 267 | exact continuous_const.add |
| 268 | (((ContinuousLinearMap.smulRightL ℝ E E).continuous.comp |
| 269 | ((hβ.continuous_fderiv (by simp)).comp continuous_snd)).clm_apply continuous_fst) |
| 270 | have hAeq (v x : E) : fderiv ℝ (cutoffTranslation β v) x = A (v, x) := |
| 271 | fderiv_cutoffTranslation ((hβ.differentiable (by simp)) x) v |
| 272 | simpa only [← hAeq] using exists_metric_bound_of_continuous_family hU hK hKU |
| 273 | N hN hNpos hNsmul (fun p => cutoffTranslation β p.1 p.2) A |
| 274 | (continuous_cutoffTranslation hβ.continuous) hA |
| 275 | (fun x _ => by simp [cutoffTranslation]) |
| 276 | (fun x _ => by ext w; simp [A]) hη |
| 277 | |
| 278 | /-- Compact support extends the near-unit metric bound to the whole |
| 279 | coordinate domain, since the correction is locally the identity off its |
| 280 | support. This is the globalization within one chart for Claim 18.22, |
| 281 | p. 433, in the SurgeryComparison.Transport point-correction derivation. -/ |
| 282 | theorem exists_cutoffTranslation_metric_bound_on |
| 283 | {U : Set E} (hU : IsOpen U) |
| 284 | (N : E × E → ℝ) (hN : ContinuousOn N (U ×ˢ univ)) |
| 285 | (hNpos : ∀ x ∈ U, ∀ w : E, w ≠ 0 → 0 < N (x, w)) |
| 286 | (hNsmul : ∀ x ∈ U, ∀ (c : ℝ) (w : E), N (x, c • w) = |c| * N (x, w)) |
| 287 | {β : E → ℝ} (hβ : ContDiff ℝ ∞ β) |
| 288 | (hcβ : HasCompactSupport β) (hsβ : tsupport β ⊆ U) {η : ℝ} (hη : 0 < η) : |
| 289 | ∃ δ : ℝ, 0 < δ ∧ ∀ v : E, ‖v‖ < δ → ∀ x ∈ U, |
| 290 | cutoffTranslation β v x ∈ U ∧ ∀ w : E, |
| 291 | N (cutoffTranslation β v x, fderiv ℝ (cutoffTranslation β v) x w) ≤ |
| 292 | (1 + η) * N (x, w) := by |
| 293 | obtain ⟨δ, hδ, hbound⟩ := exists_cutoffTranslation_metric_bound hU hcβ hsβ |
| 294 | N hN (fun x hx => hNpos x (hsβ hx)) hNsmul hβ hη |
| 295 | refine ⟨δ, hδ, fun v hv x hx => ?_⟩ |
| 296 | by_cases hxs : x ∈ tsupport β |
| 297 | · exact hbound v hv x hxs |
| 298 | · have heq : cutoffTranslation β v x = x := |
| 299 | cutoffTranslation_eq_self v (image_eq_zero_of_notMem_tsupport hxs) |
| 300 | have hderiv : fderiv ℝ (cutoffTranslation β v) x = ContinuousLinearMap.id ℝ E := by |
| 301 | simpa only [fderiv_id] using (cutoffTranslation_eventuallyEq v hxs).fderiv_eq (𝕜 := ℝ) |
| 302 | refine ⟨by simpa only [heq] using hx, fun w => ?_⟩ |
| 303 | rw [heq, hderiv, ContinuousLinearMap.id_apply] |
| 304 | have hnonneg : 0 ≤ N (x, w) := by |
| 305 | by_cases hw : w = 0 |
| 306 | · have hz : N (x, 0) = 0 := by |
| 307 | simpa only [zero_smul, abs_zero, zero_mul] using hNsmul x hx 0 (0 : E) |
| 308 | simp only [hw, hz, le_refl] |
| 309 | · exact (hNpos x hx w hw).le |
| 310 | nlinarith |
| 311 | |
| 312 | /-- Nearby coordinate points can be corrected exactly by a smooth map |
| 313 | whose differential costs at most `1 + η` in the specified tangent norm. |
| 314 | The homotopy and the corrected map preserve the open coordinate domain. |
| 315 | This is the supported coordinate construction in the SurgeryComparison.Transport exact-basepoint |
| 316 | derivation following Claim 18.22, p. 433. -/ |
| 317 | theorem exists_contDiff_pointCorrection_metric |
| 318 | {U : Set E} (hU : IsOpen U) {b : E} (hb : b ∈ U) |
| 319 | (N : E × E → ℝ) (hN : ContinuousOn N (U ×ˢ univ)) |
| 320 | (hNpos : ∀ x ∈ U, ∀ w : E, w ≠ 0 → 0 < N (x, w)) |
| 321 | (hNsmul : ∀ x ∈ U, ∀ (c : ℝ) (w : E), N (x, c • w) = |c| * N (x, w)) |
| 322 | {η : ℝ} (hη : 0 < η) : |
| 323 | ∃ r : ℝ, 0 < r ∧ ∀ a ∈ ball b r, ∃ f : C(E, E), |
| 324 | ContDiff ℝ ∞ f ∧ f a = b ∧ HasCompactSupport (fun x => f x - x) ∧ |
| 325 | (∀ x ∉ U, f x = x) ∧ (∀ x, dist (f x) x ≤ dist a b) ∧ |
| 326 | (∀ x ∈ U, ∀ w : E, N (f x, fderiv ℝ f x w) ≤ (1 + η) * N (x, w)) ∧ |
| 327 | ∃ H : (ContinuousMap.id E).Homotopy f, |
| 328 | (∀ t : unitInterval, MapsTo (fun x => H (t, x)) U U) ∧ |
| 329 | ∃ K : Set E, IsCompact K ∧ K ⊆ U ∧ |
| 330 | ∀ (t : unitInterval) (x : E), x ∉ K → H (t, x) = x := by |
| 331 | obtain ⟨R, hR, hRU⟩ := Metric.nhds_basis_closedBall.mem_iff.mp (hU.mem_nhds hb) |
| 332 | let β : ContDiffBump b := ⟨R / 2, R, half_pos hR, half_lt_self hR⟩ |
| 333 | have hsβ : tsupport (β : E → ℝ) ⊆ U := by |
| 334 | rw [β.tsupport_eq] |
| 335 | exact hRU |
| 336 | obtain ⟨δ, hδ, hbound⟩ := exists_cutoffTranslation_metric_bound_on hU N hN hNpos |
| 337 | hNsmul β.contDiff β.hasCompactSupport hsβ hη |
| 338 | refine ⟨min (R / 2) δ, lt_min (half_pos hR) hδ, fun a ha => ?_⟩ |
| 339 | have ha' : dist a b < min (R / 2) δ := ha |
| 340 | have hv : ‖b - a‖ < δ := by |
| 341 | rw [← dist_eq_norm, dist_comm] |
| 342 | exact ha'.trans_le (min_le_right _ _) |
| 343 | have hβa : β a = 1 := β.one_of_mem_closedBall |
| 344 | (ha'.le.trans (min_le_left _ _)) |
| 345 | let f : C(E, E) := ⟨cutoffTranslation β (b - a), |
| 346 | continuous_id.add (β.continuous.smul continuous_const)⟩ |
| 347 | refine ⟨f, contDiff_cutoffTranslation β.contDiff _, cutoffTranslation_eq_target hβa, |
| 348 | hasCompactSupport_cutoffTranslation_sub_id β.hasCompactSupport _, ?_, ?_, ?_, |
| 349 | ⟨cutoffTranslationHomotopy β.continuous (b - a), ?_, tsupport (β : E → ℝ), |
| 350 | β.hasCompactSupport, hsβ, ?_⟩⟩ |
| 351 | · intro x hx |
| 352 | exact cutoffTranslation_eq_self _ |
| 353 | (image_eq_zero_of_notMem_tsupport (fun h => hx (hsβ h))) |
| 354 | · intro x |
| 355 | change dist (cutoffTranslation β (b - a) x) x ≤ dist a b |
| 356 | simpa only [← dist_eq_norm, dist_comm] using |
| 357 | dist_cutoffTranslation_self_le (b - a) x β.nonneg β.le_one |
| 358 | · intro x hx w |
| 359 | exact (hbound (b - a) hv x hx).2 w |
| 360 | · intro t x hx |
| 361 | have htv : ‖(t : ℝ) • (b - a)‖ < δ := by |
| 362 | apply lt_of_le_of_lt _ hv |
| 363 | rw [norm_smul, Real.norm_of_nonneg t.property.1] |
| 364 | exact mul_le_of_le_one_left (norm_nonneg _) t.property.2 |
| 365 | exact (hbound ((t : ℝ) • (b - a)) htv x hx).1 |
| 366 | · intro t x hx |
| 367 | exact cutoffTranslation_eq_self _ (image_eq_zero_of_notMem_tsupport hx) |
| 368 | |
| 369 | /-- The coordinate correction satisfies the quadratic pullback estimate |
| 370 | for a continuous positive bilinear form. This is the form used by the |
| 371 | explicit Riemannian path-distance bound in SurgeryComparison.Transport, Claim 18.22, p. 433. -/ |
| 372 | theorem exists_contDiff_pointCorrection_inner |
| 373 | {U : Set E} (hU : IsOpen U) {b : E} (hb : b ∈ U) |
| 374 | (B : E → E →L[ℝ] E →L[ℝ] ℝ) (hB : ContinuousOn B U) |
| 375 | (hBpos : ∀ x ∈ U, ∀ w : E, w ≠ 0 → 0 < B x w w) |
| 376 | {η : ℝ} (hη : 0 < η) : |
| 377 | ∃ r : ℝ, 0 < r ∧ ∀ a ∈ ball b r, ∃ f : C(E, E), |
| 378 | ContDiff ℝ ∞ f ∧ f a = b ∧ HasCompactSupport (fun x => f x - x) ∧ |
| 379 | (∀ x ∉ U, f x = x) ∧ (∀ x, dist (f x) x ≤ dist a b) ∧ |
| 380 | (∀ x ∈ U, ∀ w : E, |
| 381 | B (f x) (fderiv ℝ f x w) (fderiv ℝ f x w) ≤ (1 + η) ^ 2 * B x w w) ∧ |
| 382 | ∃ H : (ContinuousMap.id E).Homotopy f, |
| 383 | (∀ t : unitInterval, MapsTo (fun x => H (t, x)) U U) ∧ |
| 384 | ∃ K : Set E, IsCompact K ∧ K ⊆ U ∧ |
| 385 | ∀ (t : unitInterval) (x : E), x ∉ K → H (t, x) = x := by |
| 386 | let N : E × E → ℝ := fun p => Real.sqrt (B p.1 p.2 p.2) |
| 387 | have hN : ContinuousOn N (U ×ˢ univ) := |
| 388 | (((hB.comp continuous_fst.continuousOn (fun _ hp => hp.1)).clm_apply |
| 389 | continuous_snd.continuousOn).clm_apply continuous_snd.continuousOn).sqrt |
| 390 | have hNpos : ∀ x ∈ U, ∀ w : E, w ≠ 0 → 0 < N (x, w) := |
| 391 | fun x hx w hw => Real.sqrt_pos.mpr (hBpos x hx w hw) |
| 392 | have hNsmul : ∀ x ∈ U, ∀ (c : ℝ) (w : E), N (x, c • w) = |c| * N (x, w) := by |
| 393 | intro x _ c w |
| 394 | simp only [N, map_smul, ContinuousLinearMap.smul_apply, smul_eq_mul] |
| 395 | rw [← mul_assoc, ← pow_two, Real.sqrt_mul (sq_nonneg c), Real.sqrt_sq_eq_abs] |
| 396 | obtain ⟨r, hr, hcor⟩ := exists_contDiff_pointCorrection_metric hU hb N hN hNpos hNsmul hη |
| 397 | refine ⟨r, hr, fun a ha => ?_⟩ |
| 398 | obtain ⟨f, hf, hfa, hfc, hfout, hfclose, hfbound, H, hH, hK⟩ := hcor a ha |
| 399 | refine ⟨f, hf, hfa, hfc, hfout, hfclose, ?_, H, hH, hK⟩ |
| 400 | intro x hx w |
| 401 | have hfx : f x ∈ U := by |
| 402 | have hh : H (1, x) ∈ U := hH 1 hx |
| 403 | simpa only [H.apply_one] using hh |
| 404 | have hBnonneg (y : E) (hy : y ∈ U) (z : E) : 0 ≤ B y z z := by |
| 405 | by_cases hz : z = 0 |
| 406 | · simp [hz] |
| 407 | · exact (hBpos y hy z hz).le |
| 408 | have hsq := mul_self_le_mul_self (Real.sqrt_nonneg _) (hfbound x hx w) |
| 409 | dsimp only [N] at hsq |
| 410 | simpa only [← pow_two, mul_pow, |
| 411 | Real.sq_sqrt (hBnonneg (f x) hfx (fderiv ℝ f x w)), |
| 412 | Real.sq_sqrt (hBnonneg x hx w)] using hsq |
| 413 | |
| 414 | end MetricBound |
| 415 | |
| 416 | |
| 417 | end PoincareMT.SurgeryComparison.Transport |