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 | /- |
| 2 | Provenance and modification notice (recorded 2026-09-29). |
| 3 | Notices for the adapted source: |
| 4 | Copyright 2026 The DifferentialGeometry contributors |
| 5 | Source: https://github.com/qinz1yang/differential-geometry |
| 6 | DifferentialGeometry/Analysis/Sobolev/Euclidean/Embedding/MorreySmoothInequality.lean |
| 7 | Comparison revision: 1b535dd102b94cc42b107cca27059687888f08b3. |
| 8 | Changes: Imports, module paths, and namespaces were adapted to the subject-organized PoincareLib library. |
| 9 | License: Apache-2.0. Source licenses and notices are retained under |
| 10 | PoincareConjecture/provenance/2026-09-29/licenses/. |
| 11 | See PoincareConjecture/MODIFICATIONS.md for the reviewed source mapping. |
| 12 | -/ |
| 13 | |
| 14 | import PoincareLib.Analysis.Elliptic.Regularity.Sobolev.Embedding.MorreySmoothHolderBound |
| 15 | |
| 16 | /-! |
| 17 | Adapted from Chow--Liao--Qin, revision `1b535dd102b94cc42b107cca27059687888f08b3`, |
| 18 | `DifferentialGeometry/Analysis/Sobolev/Euclidean/Embedding/MorreySmoothInequality.lean`. |
| 19 | Apache-2.0; see `PoincareConjecture/provenance/2026-09-29/licenses/DifferentialGeometry/LICENSE`. |
| 20 | -/ |
| 21 | |
| 22 | |
| 23 | noncomputable section |
| 24 | |
| 25 | open MeasureTheory Set Filter Topology Metric Function |
| 26 | open scoped ENNReal NNReal |
| 27 | |
| 28 | namespace Poincare |
| 29 | namespace Analysis |
| 30 | namespace Sobolev |
| 31 | namespace EuclideanMorrey |
| 32 | variable {d : ℕ} [NeZero d] |
| 33 | |
| 34 | local notation "E" => EuclideanSpace ℝ (Fin d) |
| 35 | |
| 36 | |
| 37 | theorem smooth_morrey_pair_bound |
| 38 | {d : ℕ} [NeZero d] {p : ℝ} (hp : (d : ℝ) < p) |
| 39 | {x₀ : EuclideanSpace ℝ (Fin d)} {R : ℝ} (hR : 0 < R) |
| 40 | {u : EuclideanSpace ℝ (Fin d) → ℝ} (hu : ContDiff ℝ (⊤ : ℕ∞) u) : |
| 41 | ∃ C : ℝ, 0 ≤ C ∧ |
| 42 | ∀ {x y : EuclideanSpace ℝ (Fin d)}, |
| 43 | x ∈ Metric.ball x₀ (R / 2) → y ∈ Metric.ball x₀ (R / 2) → |
| 44 | ‖u x - u y‖ ≤ C * (dist x y) ^ (1 - (d : ℝ) / p) * |
| 45 | (eLpNorm (fun z => ‖fderiv ℝ u z‖) (ENNReal.ofReal p) |
| 46 | (volume.restrict (Metric.ball x₀ R))).toReal := by |
| 47 | classical |
| 48 | have hd_pos : (0 : ℝ) < d := Nat.cast_pos.mpr (NeZero.pos d) |
| 49 | have hd_one_le : (1 : ℝ) ≤ d := |
| 50 | by exact_mod_cast (Nat.one_le_iff_ne_zero.mpr (NeZero.ne d)) |
| 51 | have hp_pos : 0 < p := lt_trans hd_pos hp |
| 52 | have hp_one : 1 < p := lt_of_le_of_lt hd_one_le hp |
| 53 | have h_exp_pos : 0 < 1 - (d : ℝ) / p := by |
| 54 | rw [sub_pos] |
| 55 | rw [div_lt_one hp_pos] |
| 56 | exact hp |
| 57 | have hC₀_nn : 0 ≤ smoothHolderConst d p := smoothHolderConst_nonneg hp |
| 58 | set C : ℝ := (2 : ℝ) * (2 : ℝ) ^ (1 - (d : ℝ) / p) * smoothHolderConst d p with hC_def |
| 59 | have hC_nn : 0 ≤ C := by |
| 60 | rw [hC_def] |
| 61 | have h2_pow_nn : 0 ≤ (2 : ℝ) ^ (1 - (d : ℝ) / p) := |
| 62 | Real.rpow_nonneg (by norm_num) _ |
| 63 | positivity |
| 64 | refine ⟨C, hC_nn, ?_⟩ |
| 65 | intro x y hx hy |
| 66 | set N : ℝ := (eLpNorm (fun z => ‖fderiv ℝ u z‖) (ENNReal.ofReal p) |
| 67 | (volume.restrict (Metric.ball x₀ R))).toReal with hN_def |
| 68 | have hN_nn : 0 ≤ N := ENNReal.toReal_nonneg |
| 69 | by_cases h_small : dist x y < R / 2 |
| 70 | · by_cases h_zero : dist x y = 0 |
| 71 | · have hxy_eq : x = y := dist_eq_zero.mp h_zero |
| 72 | rw [hxy_eq, sub_self, norm_zero] |
| 73 | have h_zero_pow : (dist y y) ^ (1 - (d : ℝ) / p) = 0 := by |
| 74 | rw [dist_self] |
| 75 | exact Real.zero_rpow h_exp_pos.ne' |
| 76 | rw [h_zero_pow, mul_zero, zero_mul] |
| 77 | · have h_dist_pos : 0 < dist x y := lt_of_le_of_ne dist_nonneg (Ne.symm h_zero) |
| 78 | set m : EuclideanSpace ℝ (Fin d) := (1 / 2 : ℝ) • (x + y) with hm_def |
| 79 | have h_m_minus_x₀ : m - x₀ = (1 / 2 : ℝ) • (x - x₀) + (1 / 2 : ℝ) • (y - x₀) := by |
| 80 | rw [hm_def] |
| 81 | rw [smul_add] |
| 82 | have hx₀_split : x₀ = (1 / 2 : ℝ) • x₀ + (1 / 2 : ℝ) • x₀ := by |
| 83 | rw [← add_smul] |
| 84 | rw [show (1 : ℝ)/2 + 1/2 = 1 from by norm_num, one_smul] |
| 85 | nth_rewrite 1 [hx₀_split] |
| 86 | rw [smul_sub, smul_sub] |
| 87 | abel |
| 88 | have h_m_dist : dist m x₀ < R / 2 := by |
| 89 | have hxR2 : dist x x₀ < R / 2 := by |
| 90 | rw [Metric.mem_ball] at hx |
| 91 | exact hx |
| 92 | have hyR2 : dist y x₀ < R / 2 := by |
| 93 | rw [Metric.mem_ball] at hy |
| 94 | exact hy |
| 95 | have h_mid : dist m x₀ ≤ |
| 96 | (1 / 2 : ℝ) * dist x x₀ + (1 / 2 : ℝ) * dist y x₀ := by |
| 97 | rw [dist_eq_norm, dist_eq_norm, dist_eq_norm, h_m_minus_x₀] |
| 98 | have hsum : ‖(1 / 2 : ℝ) • (x - x₀) + (1 / 2 : ℝ) • (y - x₀)‖ ≤ |
| 99 | ‖(1 / 2 : ℝ) • (x - x₀)‖ + ‖(1 / 2 : ℝ) • (y - x₀)‖ := |
| 100 | norm_add_le _ _ |
| 101 | rw [norm_smul, norm_smul] at hsum |
| 102 | rw [Real.norm_eq_abs, abs_of_pos (by norm_num : (0 : ℝ) < 1 / 2)] at hsum |
| 103 | exact hsum |
| 104 | have h_bound : (1 / 2 : ℝ) * dist x x₀ + (1 / 2 : ℝ) * dist y x₀ < R / 2 := by |
| 105 | have h_x_lt : (1 / 2 : ℝ) * dist x x₀ < (1 / 2 : ℝ) * (R / 2) := |
| 106 | mul_lt_mul_of_pos_left hxR2 (by norm_num : (0 : ℝ) < 1 / 2) |
| 107 | have h_y_lt : (1 / 2 : ℝ) * dist y x₀ < (1 / 2 : ℝ) * (R / 2) := |
| 108 | mul_lt_mul_of_pos_left hyR2 (by norm_num : (0 : ℝ) < 1 / 2) |
| 109 | linarith |
| 110 | linarith |
| 111 | have h_ball_sub : Metric.ball m (dist x y) ⊆ Metric.ball x₀ R := by |
| 112 | intro z hz |
| 113 | rw [Metric.mem_ball] at hz ⊢ |
| 114 | calc dist z x₀ ≤ dist z m + dist m x₀ := dist_triangle z m x₀ |
| 115 | _ < dist x y + R / 2 := add_lt_add hz h_m_dist |
| 116 | _ < R / 2 + R / 2 := by linarith |
| 117 | _ = R := by ring |
| 118 | have h_x_minus_m : x - m = (1 / 2 : ℝ) • (x - y) := by |
| 119 | rw [hm_def, smul_add] |
| 120 | have hx_split : x = (1 / 2 : ℝ) • x + (1 / 2 : ℝ) • x := by |
| 121 | rw [← add_smul] |
| 122 | rw [show (1 : ℝ)/2 + 1/2 = 1 from by norm_num, one_smul] |
| 123 | rw [smul_sub] |
| 124 | nth_rewrite 1 [hx_split] |
| 125 | abel |
| 126 | have h_y_minus_m : y - m = (1 / 2 : ℝ) • (y - x) := by |
| 127 | rw [hm_def, smul_add] |
| 128 | have hy_split : y = (1 / 2 : ℝ) • y + (1 / 2 : ℝ) • y := by |
| 129 | rw [← add_smul] |
| 130 | rw [show (1 : ℝ)/2 + 1/2 = 1 from by norm_num, one_smul] |
| 131 | rw [smul_sub] |
| 132 | nth_rewrite 1 [hy_split] |
| 133 | abel |
| 134 | have h_dx_m : dist x m = dist x y / 2 := by |
| 135 | rw [dist_eq_norm, h_x_minus_m, norm_smul] |
| 136 | rw [Real.norm_eq_abs, abs_of_pos (by norm_num : (0 : ℝ) < 1 / 2)] |
| 137 | rw [← dist_eq_norm]; ring |
| 138 | have h_dy_m : dist y m = dist x y / 2 := by |
| 139 | rw [dist_eq_norm, h_y_minus_m, norm_smul] |
| 140 | rw [Real.norm_eq_abs, abs_of_pos (by norm_num : (0 : ℝ) < 1 / 2)] |
| 141 | rw [show y - x = -(x - y) from by abel, norm_neg] |
| 142 | rw [← dist_eq_norm]; ring |
| 143 | have hx_in : x ∈ Metric.ball m (dist x y) := by |
| 144 | rw [Metric.mem_ball, h_dx_m]; linarith |
| 145 | have hy_in : y ∈ Metric.ball m (dist x y) := by |
| 146 | rw [Metric.mem_ball, h_dy_m]; linarith |
| 147 | have h_at_x := smooth_pointwise_holder_bound_explicit (d := d) hp h_dist_pos hu hx_in |
| 148 | have h_at_y := smooth_pointwise_holder_bound_explicit (d := d) hp h_dist_pos hu hy_in |
| 149 | set N_small : ℝ := (eLpNorm (fun z => ‖fderiv ℝ u z‖) (ENNReal.ofReal p) |
| 150 | (volume.restrict (Metric.ball m (dist x y)))).toReal with hN_small_def |
| 151 | have hN_small_le : N_small ≤ N := by |
| 152 | rw [hN_small_def, hN_def] |
| 153 | exact smooth_grad_eLpNorm_le_of_ball_subset hR hu h_ball_sub |
| 154 | set Mavg : ℝ := ⨍ z in Metric.ball m (dist x y), u z ∂volume with hMavg_def |
| 155 | have h_at_x' : ‖u x - Mavg‖ ≤ |
| 156 | smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N_small := h_at_x |
| 157 | have h_at_y' : ‖u y - Mavg‖ ≤ |
| 158 | smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N_small := h_at_y |
| 159 | have h_triangle : ‖u x - u y‖ ≤ ‖u x - Mavg‖ + ‖u y - Mavg‖ := by |
| 160 | calc ‖u x - u y‖ = ‖(u x - Mavg) - (u y - Mavg)‖ := by ring_nf |
| 161 | _ ≤ ‖u x - Mavg‖ + ‖u y - Mavg‖ := norm_sub_le _ _ |
| 162 | have h_dxy_pow_nn : 0 ≤ dist x y ^ (1 - (d : ℝ) / p) := |
| 163 | Real.rpow_nonneg dist_nonneg _ |
| 164 | have h_step1 : ‖u x - u y‖ ≤ |
| 165 | 2 * (smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N_small) := by |
| 166 | linarith |
| 167 | have h_step2 : 2 * (smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N_small) ≤ |
| 168 | 2 * (smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N) := by |
| 169 | apply mul_le_mul_of_nonneg_left _ (by norm_num : (0 : ℝ) ≤ 2) |
| 170 | apply mul_le_mul_of_nonneg_left hN_small_le |
| 171 | exact mul_nonneg hC₀_nn h_dxy_pow_nn |
| 172 | have h_step3 : 2 * (smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N) ≤ |
| 173 | C * dist x y ^ (1 - (d : ℝ) / p) * N := by |
| 174 | rw [hC_def] |
| 175 | have h_rfl : (2 : ℝ) * (smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N) = |
| 176 | 2 * smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N := by ring |
| 177 | rw [h_rfl] |
| 178 | have h_2_le : (2 : ℝ) * smoothHolderConst d p ≤ |
| 179 | (2 : ℝ) * (2 : ℝ) ^ (1 - (d : ℝ) / p) * smoothHolderConst d p := by |
| 180 | have h_2pow_ge_one : (1 : ℝ) ≤ (2 : ℝ) ^ (1 - (d : ℝ) / p) := |
| 181 | Real.one_le_rpow (by norm_num) h_exp_pos.le |
| 182 | have : (2 : ℝ) ≤ (2 : ℝ) * (2 : ℝ) ^ (1 - (d : ℝ) / p) := by |
| 183 | calc (2 : ℝ) = 2 * 1 := by ring |
| 184 | _ ≤ 2 * (2 : ℝ) ^ (1 - (d : ℝ) / p) := |
| 185 | mul_le_mul_of_nonneg_left h_2pow_ge_one (by norm_num) |
| 186 | exact mul_le_mul_of_nonneg_right this hC₀_nn |
| 187 | have h_factor : |
| 188 | (2 : ℝ) * smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N ≤ |
| 189 | (2 : ℝ) * (2 : ℝ) ^ (1 - (d : ℝ) / p) * smoothHolderConst d p * |
| 190 | dist x y ^ (1 - (d : ℝ) / p) * N := by |
| 191 | have h_inner : |
| 192 | (2 : ℝ) * smoothHolderConst d p * |
| 193 | (dist x y ^ (1 - (d : ℝ) / p) * N) ≤ |
| 194 | (2 : ℝ) * (2 : ℝ) ^ (1 - (d : ℝ) / p) * smoothHolderConst d p * |
| 195 | (dist x y ^ (1 - (d : ℝ) / p) * N) := |
| 196 | mul_le_mul_of_nonneg_right h_2_le (mul_nonneg h_dxy_pow_nn hN_nn) |
| 197 | linarith |
| 198 | exact h_factor |
| 199 | linarith |
| 200 | · have h_large : R / 2 ≤ dist x y := not_lt.mp h_small |
| 201 | have hx_R : x ∈ Metric.ball x₀ R := by |
| 202 | rw [Metric.mem_ball] at hx ⊢ |
| 203 | linarith |
| 204 | have hy_R : y ∈ Metric.ball x₀ R := by |
| 205 | rw [Metric.mem_ball] at hy ⊢ |
| 206 | linarith |
| 207 | have h_at_x := smooth_pointwise_holder_bound_explicit (d := d) hp hR hu hx_R |
| 208 | have h_at_y := smooth_pointwise_holder_bound_explicit (d := d) hp hR hu hy_R |
| 209 | set Mavg : ℝ := ⨍ z in Metric.ball x₀ R, u z ∂volume with hMavg_def |
| 210 | have h_at_x' : ‖u x - Mavg‖ ≤ |
| 211 | smoothHolderConst d p * R ^ (1 - (d : ℝ) / p) * N := h_at_x |
| 212 | have h_at_y' : ‖u y - Mavg‖ ≤ |
| 213 | smoothHolderConst d p * R ^ (1 - (d : ℝ) / p) * N := h_at_y |
| 214 | have h_triangle : ‖u x - u y‖ ≤ ‖u x - Mavg‖ + ‖u y - Mavg‖ := by |
| 215 | calc ‖u x - u y‖ = ‖(u x - Mavg) - (u y - Mavg)‖ := by ring_nf |
| 216 | _ ≤ ‖u x - Mavg‖ + ‖u y - Mavg‖ := norm_sub_le _ _ |
| 217 | have h_R_pow_nn : 0 ≤ R ^ (1 - (d : ℝ) / p) := Real.rpow_nonneg hR.le _ |
| 218 | have h_step1 : ‖u x - u y‖ ≤ |
| 219 | 2 * (smoothHolderConst d p * R ^ (1 - (d : ℝ) / p) * N) := by linarith |
| 220 | have h_R_le_2dxy : R ≤ 2 * dist x y := by linarith |
| 221 | have h_R_rpow_le : R ^ (1 - (d : ℝ) / p) ≤ |
| 222 | (2 : ℝ) ^ (1 - (d : ℝ) / p) * dist x y ^ (1 - (d : ℝ) / p) := by |
| 223 | have h2dxy_nn : 0 ≤ 2 * dist x y := by linarith |
| 224 | have h_le_pow : R ^ (1 - (d : ℝ) / p) ≤ (2 * dist x y) ^ (1 - (d : ℝ) / p) := |
| 225 | Real.rpow_le_rpow hR.le h_R_le_2dxy h_exp_pos.le |
| 226 | rw [Real.mul_rpow (by norm_num : (0 : ℝ) ≤ 2) dist_nonneg] at h_le_pow |
| 227 | exact h_le_pow |
| 228 | have h_step2 : 2 * (smoothHolderConst d p * R ^ (1 - (d : ℝ) / p) * N) ≤ |
| 229 | 2 * (smoothHolderConst d p * |
| 230 | ((2 : ℝ) ^ (1 - (d : ℝ) / p) * dist x y ^ (1 - (d : ℝ) / p)) * N) := by |
| 231 | apply mul_le_mul_of_nonneg_left _ (by norm_num : (0 : ℝ) ≤ 2) |
| 232 | apply mul_le_mul_of_nonneg_right |
| 233 | · exact mul_le_mul_of_nonneg_left h_R_rpow_le hC₀_nn |
| 234 | · exact hN_nn |
| 235 | have h_simp : 2 * (smoothHolderConst d p * |
| 236 | ((2 : ℝ) ^ (1 - (d : ℝ) / p) * dist x y ^ (1 - (d : ℝ) / p)) * N) = |
| 237 | C * dist x y ^ (1 - (d : ℝ) / p) * N := by |
| 238 | rw [hC_def]; ring |
| 239 | linarith |
| 240 | |
| 241 | theorem smooth_morrey_sup_bound |
| 242 | {d : ℕ} [NeZero d] {p : ℝ} (hp : (d : ℝ) < p) |
| 243 | {x₀ : EuclideanSpace ℝ (Fin d)} {R : ℝ} (hR : 0 < R) |
| 244 | {u : EuclideanSpace ℝ (Fin d) → ℝ} (hu : ContDiff ℝ (⊤ : ℕ∞) u) : |
| 245 | ∃ C : ℝ, 0 ≤ C ∧ |
| 246 | ∀ x ∈ Metric.ball x₀ (R / 2), ‖u x‖ ≤ C * ( |
| 247 | (eLpNorm u (ENNReal.ofReal p) (volume.restrict (Metric.ball x₀ R))).toReal + |
| 248 | (eLpNorm (fun z => ‖fderiv ℝ u z‖) (ENNReal.ofReal p) |
| 249 | (volume.restrict (Metric.ball x₀ R))).toReal) := by |
| 250 | classical |
| 251 | have hd_pos : (0 : ℝ) < d := Nat.cast_pos.mpr (NeZero.pos d) |
| 252 | have hd_one_le : (1 : ℝ) ≤ d := |
| 253 | by exact_mod_cast (Nat.one_le_iff_ne_zero.mpr (NeZero.ne d)) |
| 254 | have hp_pos : 0 < p := lt_trans hd_pos hp |
| 255 | have hp_one : 1 < p := lt_of_le_of_lt hd_one_le hp |
| 256 | have h_exp_pos : 0 < 1 - (d : ℝ) / p := by |
| 257 | rw [sub_pos, div_lt_one hp_pos]; exact hp |
| 258 | have hC₀_nn : 0 ≤ smoothHolderConst d p := smoothHolderConst_nonneg hp |
| 259 | have hvol_pos : 0 < (volume (Metric.ball x₀ R)).toReal := |
| 260 | ENNReal.toReal_pos (measure_ball_pos volume x₀ hR).ne' measure_ball_lt_top.ne |
| 261 | set A : ℝ := smoothHolderConst d p * R ^ (1 - (d : ℝ) / p) with hA_def |
| 262 | set Bcoeff : ℝ := ((volume (Metric.ball x₀ R)).toReal) ^ (-(1 / p)) with hBcoeff_def |
| 263 | have hA_nn : 0 ≤ A := by |
| 264 | rw [hA_def] |
| 265 | exact mul_nonneg hC₀_nn (Real.rpow_nonneg hR.le _) |
| 266 | have hBcoeff_nn : 0 ≤ Bcoeff := by |
| 267 | rw [hBcoeff_def] |
| 268 | exact Real.rpow_nonneg ENNReal.toReal_nonneg _ |
| 269 | set C : ℝ := A + Bcoeff with hC_def |
| 270 | have hC_nn : 0 ≤ C := by rw [hC_def]; linarith |
| 271 | refine ⟨C, hC_nn, ?_⟩ |
| 272 | intro x hx |
| 273 | set N_grad : ℝ := (eLpNorm (fun z => ‖fderiv ℝ u z‖) (ENNReal.ofReal p) |
| 274 | (volume.restrict (Metric.ball x₀ R))).toReal with hN_grad_def |
| 275 | set N_u : ℝ := (eLpNorm u (ENNReal.ofReal p) |
| 276 | (volume.restrict (Metric.ball x₀ R))).toReal with hN_u_def |
| 277 | have hN_grad_nn : 0 ≤ N_grad := ENNReal.toReal_nonneg |
| 278 | have hN_u_nn : 0 ≤ N_u := ENNReal.toReal_nonneg |
| 279 | have hx_R : x ∈ Metric.ball x₀ R := by |
| 280 | rw [Metric.mem_ball] at hx ⊢ |
| 281 | linarith |
| 282 | set Mavg : ℝ := ⨍ z in Metric.ball x₀ R, u z ∂volume with hMavg_def |
| 283 | have h_diff_bound := smooth_pointwise_holder_bound_explicit (d := d) hp hR hu hx_R |
| 284 | have h_diff_bound' : ‖u x - Mavg‖ ≤ A * N_grad := by |
| 285 | change ‖u x - ⨍ z in Metric.ball x₀ R, u z ∂volume‖ ≤ |
| 286 | smoothHolderConst d p * R ^ (1 - (d : ℝ) / p) * N_grad |
| 287 | exact h_diff_bound |
| 288 | have h_avg_bound := smooth_norm_average_le (x₀ := x₀) hp_one hR hu |
| 289 | have h_avg_bound' : ‖Mavg‖ ≤ Bcoeff * N_u := by |
| 290 | change ‖⨍ z in Metric.ball x₀ R, u z ∂volume‖ ≤ Bcoeff * N_u |
| 291 | rw [show Bcoeff * N_u = N_u * Bcoeff from by ring] |
| 292 | exact h_avg_bound |
| 293 | have h_split : ‖u x‖ ≤ ‖u x - Mavg‖ + ‖Mavg‖ := by |
| 294 | calc ‖u x‖ = ‖(u x - Mavg) + Mavg‖ := by ring_nf |
| 295 | _ ≤ ‖u x - Mavg‖ + ‖Mavg‖ := norm_add_le _ _ |
| 296 | have h_combined : ‖u x‖ ≤ A * N_grad + Bcoeff * N_u := by linarith |
| 297 | have h_factor : |
| 298 | A * N_grad + Bcoeff * N_u ≤ C * (N_u + N_grad) := by |
| 299 | rw [hC_def] |
| 300 | have h_expand : (A + Bcoeff) * (N_u + N_grad) = |
| 301 | A * N_u + A * N_grad + Bcoeff * N_u + Bcoeff * N_grad := by ring |
| 302 | rw [h_expand] |
| 303 | have h_ANu_nn : 0 ≤ A * N_u := mul_nonneg hA_nn hN_u_nn |
| 304 | have h_BNgrad_nn : 0 ≤ Bcoeff * N_grad := mul_nonneg hBcoeff_nn hN_grad_nn |
| 305 | linarith |
| 306 | linarith |
| 307 | |
| 308 | theorem smooth_morrey_holder_modulus |
| 309 | {d : ℕ} [NeZero d] {p : ℝ} (hp : (d : ℝ) < p) |
| 310 | {x₀ : EuclideanSpace ℝ (Fin d)} {R : ℝ} (hR : 0 < R) |
| 311 | {u : EuclideanSpace ℝ (Fin d) → ℝ} (hu : ContDiff ℝ (⊤ : ℕ∞) u) : |
| 312 | ∃ C : ℝ, 0 ≤ C ∧ |
| 313 | ∀ {x y : EuclideanSpace ℝ (Fin d)}, |
| 314 | x ∈ Metric.ball x₀ (R / 2) → y ∈ Metric.ball x₀ (R / 2) → |
| 315 | ‖u x - u y‖ ≤ C * (dist x y) ^ (1 - (d : ℝ) / p) := by |
| 316 | classical |
| 317 | obtain ⟨C₀, hC₀_nn, hbound⟩ := smooth_morrey_pair_bound (d := d) hp hR hu |
| 318 | set N : ℝ := (eLpNorm (fun z => ‖fderiv ℝ u z‖) (ENNReal.ofReal p) |
| 319 | (volume.restrict (Metric.ball x₀ R))).toReal with hN_def |
| 320 | have hN_nn : 0 ≤ N := ENNReal.toReal_nonneg |
| 321 | refine ⟨C₀ * N, mul_nonneg hC₀_nn hN_nn, ?_⟩ |
| 322 | intro x y hx hy |
| 323 | have h := hbound hx hy |
| 324 | rw [show C₀ * N * dist x y ^ (1 - (d : ℝ) / p) = |
| 325 | C₀ * dist x y ^ (1 - (d : ℝ) / p) * N from by ring] |
| 326 | exact h |
| 327 | |
| 328 | theorem smooth_morrey_pair_bound_uniform |
| 329 | {d : ℕ} [NeZero d] {p : ℝ} (hp : (d : ℝ) < p) |
| 330 | {x₀ : EuclideanSpace ℝ (Fin d)} {R : ℝ} (hR : 0 < R) : |
| 331 | ∃ C : ℝ, 0 ≤ C ∧ |
| 332 | ∀ {u : EuclideanSpace ℝ (Fin d) → ℝ}, ContDiff ℝ (⊤ : ℕ∞) u → |
| 333 | ∀ {x y : EuclideanSpace ℝ (Fin d)}, |
| 334 | x ∈ Metric.ball x₀ (R / 2) → y ∈ Metric.ball x₀ (R / 2) → |
| 335 | ‖u x - u y‖ ≤ C * (dist x y) ^ (1 - (d : ℝ) / p) * |
| 336 | (eLpNorm (fun z => ‖fderiv ℝ u z‖) (ENNReal.ofReal p) |
| 337 | (volume.restrict (Metric.ball x₀ R))).toReal := by |
| 338 | classical |
| 339 | have hd_pos : (0 : ℝ) < d := Nat.cast_pos.mpr (NeZero.pos d) |
| 340 | have hd_one_le : (1 : ℝ) ≤ d := |
| 341 | by exact_mod_cast (Nat.one_le_iff_ne_zero.mpr (NeZero.ne d)) |
| 342 | have hp_pos : 0 < p := lt_trans hd_pos hp |
| 343 | have hp_one : 1 < p := lt_of_le_of_lt hd_one_le hp |
| 344 | have h_exp_pos : 0 < 1 - (d : ℝ) / p := by |
| 345 | rw [sub_pos, div_lt_one hp_pos]; exact hp |
| 346 | have hC₀_nn : 0 ≤ smoothHolderConst d p := smoothHolderConst_nonneg hp |
| 347 | set C : ℝ := (2 : ℝ) * (2 : ℝ) ^ (1 - (d : ℝ) / p) * smoothHolderConst d p with hC_def |
| 348 | have hC_nn : 0 ≤ C := by |
| 349 | rw [hC_def] |
| 350 | have h2_pow_nn : 0 ≤ (2 : ℝ) ^ (1 - (d : ℝ) / p) := |
| 351 | Real.rpow_nonneg (by norm_num) _ |
| 352 | positivity |
| 353 | refine ⟨C, hC_nn, ?_⟩ |
| 354 | intro u hu x y hx hy |
| 355 | set N : ℝ := (eLpNorm (fun z => ‖fderiv ℝ u z‖) (ENNReal.ofReal p) |
| 356 | (volume.restrict (Metric.ball x₀ R))).toReal with hN_def |
| 357 | have hN_nn : 0 ≤ N := ENNReal.toReal_nonneg |
| 358 | by_cases h_small : dist x y < R / 2 |
| 359 | · by_cases h_zero : dist x y = 0 |
| 360 | · have hxy_eq : x = y := dist_eq_zero.mp h_zero |
| 361 | rw [hxy_eq, sub_self, norm_zero] |
| 362 | have h_zero_pow : (dist y y) ^ (1 - (d : ℝ) / p) = 0 := by |
| 363 | rw [dist_self] |
| 364 | exact Real.zero_rpow h_exp_pos.ne' |
| 365 | rw [h_zero_pow, mul_zero, zero_mul] |
| 366 | · have h_dist_pos : 0 < dist x y := lt_of_le_of_ne dist_nonneg (Ne.symm h_zero) |
| 367 | set m : EuclideanSpace ℝ (Fin d) := (1 / 2 : ℝ) • (x + y) with hm_def |
| 368 | have h_m_minus_x₀ : m - x₀ = (1 / 2 : ℝ) • (x - x₀) + (1 / 2 : ℝ) • (y - x₀) := by |
| 369 | rw [hm_def] |
| 370 | rw [smul_add] |
| 371 | have hx₀_split : x₀ = (1 / 2 : ℝ) • x₀ + (1 / 2 : ℝ) • x₀ := by |
| 372 | rw [← add_smul] |
| 373 | rw [show (1 : ℝ)/2 + 1/2 = 1 from by norm_num, one_smul] |
| 374 | nth_rewrite 1 [hx₀_split] |
| 375 | rw [smul_sub, smul_sub] |
| 376 | abel |
| 377 | have h_m_dist : dist m x₀ < R / 2 := by |
| 378 | have hxR2 : dist x x₀ < R / 2 := by rw [Metric.mem_ball] at hx; exact hx |
| 379 | have hyR2 : dist y x₀ < R / 2 := by rw [Metric.mem_ball] at hy; exact hy |
| 380 | have h_mid : dist m x₀ ≤ |
| 381 | (1 / 2 : ℝ) * dist x x₀ + (1 / 2 : ℝ) * dist y x₀ := by |
| 382 | rw [dist_eq_norm, dist_eq_norm, dist_eq_norm, h_m_minus_x₀] |
| 383 | have hsum : ‖(1 / 2 : ℝ) • (x - x₀) + (1 / 2 : ℝ) • (y - x₀)‖ ≤ |
| 384 | ‖(1 / 2 : ℝ) • (x - x₀)‖ + ‖(1 / 2 : ℝ) • (y - x₀)‖ := norm_add_le _ _ |
| 385 | rw [norm_smul, norm_smul] at hsum |
| 386 | rw [Real.norm_eq_abs, abs_of_pos (by norm_num : (0 : ℝ) < 1 / 2)] at hsum |
| 387 | exact hsum |
| 388 | have h_bound : (1 / 2 : ℝ) * dist x x₀ + (1 / 2 : ℝ) * dist y x₀ < R / 2 := by |
| 389 | have h_x_lt : (1 / 2 : ℝ) * dist x x₀ < (1 / 2 : ℝ) * (R / 2) := |
| 390 | mul_lt_mul_of_pos_left hxR2 (by norm_num : (0 : ℝ) < 1 / 2) |
| 391 | have h_y_lt : (1 / 2 : ℝ) * dist y x₀ < (1 / 2 : ℝ) * (R / 2) := |
| 392 | mul_lt_mul_of_pos_left hyR2 (by norm_num : (0 : ℝ) < 1 / 2) |
| 393 | linarith |
| 394 | linarith |
| 395 | have h_ball_sub : Metric.ball m (dist x y) ⊆ Metric.ball x₀ R := by |
| 396 | intro z hz |
| 397 | rw [Metric.mem_ball] at hz ⊢ |
| 398 | calc dist z x₀ ≤ dist z m + dist m x₀ := dist_triangle z m x₀ |
| 399 | _ < dist x y + R / 2 := add_lt_add hz h_m_dist |
| 400 | _ < R / 2 + R / 2 := by linarith |
| 401 | _ = R := by ring |
| 402 | have h_x_minus_m : x - m = (1 / 2 : ℝ) • (x - y) := by |
| 403 | rw [hm_def, smul_add] |
| 404 | have hx_split : x = (1 / 2 : ℝ) • x + (1 / 2 : ℝ) • x := by |
| 405 | rw [← add_smul] |
| 406 | rw [show (1 : ℝ)/2 + 1/2 = 1 from by norm_num, one_smul] |
| 407 | rw [smul_sub] |
| 408 | nth_rewrite 1 [hx_split] |
| 409 | abel |
| 410 | have h_y_minus_m : y - m = (1 / 2 : ℝ) • (y - x) := by |
| 411 | rw [hm_def, smul_add] |
| 412 | have hy_split : y = (1 / 2 : ℝ) • y + (1 / 2 : ℝ) • y := by |
| 413 | rw [← add_smul] |
| 414 | rw [show (1 : ℝ)/2 + 1/2 = 1 from by norm_num, one_smul] |
| 415 | rw [smul_sub] |
| 416 | nth_rewrite 1 [hy_split] |
| 417 | abel |
| 418 | have h_dx_m : dist x m = dist x y / 2 := by |
| 419 | rw [dist_eq_norm, h_x_minus_m, norm_smul] |
| 420 | rw [Real.norm_eq_abs, abs_of_pos (by norm_num : (0 : ℝ) < 1 / 2)] |
| 421 | rw [← dist_eq_norm]; ring |
| 422 | have h_dy_m : dist y m = dist x y / 2 := by |
| 423 | rw [dist_eq_norm, h_y_minus_m, norm_smul] |
| 424 | rw [Real.norm_eq_abs, abs_of_pos (by norm_num : (0 : ℝ) < 1 / 2)] |
| 425 | rw [show y - x = -(x - y) from by abel, norm_neg] |
| 426 | rw [← dist_eq_norm]; ring |
| 427 | have hx_in : x ∈ Metric.ball m (dist x y) := by |
| 428 | rw [Metric.mem_ball, h_dx_m]; linarith |
| 429 | have hy_in : y ∈ Metric.ball m (dist x y) := by |
| 430 | rw [Metric.mem_ball, h_dy_m]; linarith |
| 431 | have h_at_x := smooth_pointwise_holder_bound_explicit (d := d) hp h_dist_pos hu hx_in |
| 432 | have h_at_y := smooth_pointwise_holder_bound_explicit (d := d) hp h_dist_pos hu hy_in |
| 433 | set N_small : ℝ := (eLpNorm (fun z => ‖fderiv ℝ u z‖) (ENNReal.ofReal p) |
| 434 | (volume.restrict (Metric.ball m (dist x y)))).toReal with hN_small_def |
| 435 | have hN_small_le : N_small ≤ N := by |
| 436 | rw [hN_small_def, hN_def] |
| 437 | exact smooth_grad_eLpNorm_le_of_ball_subset hR hu h_ball_sub |
| 438 | set Mavg : ℝ := ⨍ z in Metric.ball m (dist x y), u z ∂volume with hMavg_def |
| 439 | have h_at_x' : ‖u x - Mavg‖ ≤ |
| 440 | smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N_small := h_at_x |
| 441 | have h_at_y' : ‖u y - Mavg‖ ≤ |
| 442 | smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N_small := h_at_y |
| 443 | have h_triangle : ‖u x - u y‖ ≤ ‖u x - Mavg‖ + ‖u y - Mavg‖ := by |
| 444 | calc ‖u x - u y‖ = ‖(u x - Mavg) - (u y - Mavg)‖ := by ring_nf |
| 445 | _ ≤ ‖u x - Mavg‖ + ‖u y - Mavg‖ := norm_sub_le _ _ |
| 446 | have h_dxy_pow_nn : 0 ≤ dist x y ^ (1 - (d : ℝ) / p) := |
| 447 | Real.rpow_nonneg dist_nonneg _ |
| 448 | have h_step1 : ‖u x - u y‖ ≤ |
| 449 | 2 * (smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N_small) := by |
| 450 | linarith |
| 451 | have h_step2 : 2 * (smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N_small) ≤ |
| 452 | 2 * (smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N) := by |
| 453 | apply mul_le_mul_of_nonneg_left _ (by norm_num : (0 : ℝ) ≤ 2) |
| 454 | apply mul_le_mul_of_nonneg_left hN_small_le |
| 455 | exact mul_nonneg hC₀_nn h_dxy_pow_nn |
| 456 | have h_step3 : 2 * (smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N) ≤ |
| 457 | C * dist x y ^ (1 - (d : ℝ) / p) * N := by |
| 458 | rw [hC_def] |
| 459 | have h_rfl : (2 : ℝ) * (smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N) = |
| 460 | 2 * smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N := by ring |
| 461 | rw [h_rfl] |
| 462 | have h_2_le : (2 : ℝ) * smoothHolderConst d p ≤ |
| 463 | (2 : ℝ) * (2 : ℝ) ^ (1 - (d : ℝ) / p) * smoothHolderConst d p := by |
| 464 | have h_2pow_ge_one : (1 : ℝ) ≤ (2 : ℝ) ^ (1 - (d : ℝ) / p) := |
| 465 | Real.one_le_rpow (by norm_num) h_exp_pos.le |
| 466 | have : (2 : ℝ) ≤ (2 : ℝ) * (2 : ℝ) ^ (1 - (d : ℝ) / p) := by |
| 467 | calc (2 : ℝ) = 2 * 1 := by ring |
| 468 | _ ≤ 2 * (2 : ℝ) ^ (1 - (d : ℝ) / p) := |
| 469 | mul_le_mul_of_nonneg_left h_2pow_ge_one (by norm_num) |
| 470 | exact mul_le_mul_of_nonneg_right this hC₀_nn |
| 471 | have h_factor : |
| 472 | (2 : ℝ) * smoothHolderConst d p * dist x y ^ (1 - (d : ℝ) / p) * N ≤ |
| 473 | (2 : ℝ) * (2 : ℝ) ^ (1 - (d : ℝ) / p) * smoothHolderConst d p * |
| 474 | dist x y ^ (1 - (d : ℝ) / p) * N := by |
| 475 | have h_inner : |
| 476 | (2 : ℝ) * smoothHolderConst d p * |
| 477 | (dist x y ^ (1 - (d : ℝ) / p) * N) ≤ |
| 478 | (2 : ℝ) * (2 : ℝ) ^ (1 - (d : ℝ) / p) * smoothHolderConst d p * |
| 479 | (dist x y ^ (1 - (d : ℝ) / p) * N) := |
| 480 | mul_le_mul_of_nonneg_right h_2_le (mul_nonneg h_dxy_pow_nn hN_nn) |
| 481 | linarith |
| 482 | exact h_factor |
| 483 | linarith |
| 484 | · have h_large : R / 2 ≤ dist x y := not_lt.mp h_small |
| 485 | have hx_R : x ∈ Metric.ball x₀ R := by |
| 486 | rw [Metric.mem_ball] at hx ⊢; linarith |
| 487 | have hy_R : y ∈ Metric.ball x₀ R := by |
| 488 | rw [Metric.mem_ball] at hy ⊢; linarith |
| 489 | have h_at_x := smooth_pointwise_holder_bound_explicit (d := d) hp hR hu hx_R |
| 490 | have h_at_y := smooth_pointwise_holder_bound_explicit (d := d) hp hR hu hy_R |
| 491 | set Mavg : ℝ := ⨍ z in Metric.ball x₀ R, u z ∂volume with hMavg_def |
| 492 | have h_at_x' : ‖u x - Mavg‖ ≤ |
| 493 | smoothHolderConst d p * R ^ (1 - (d : ℝ) / p) * N := h_at_x |
| 494 | have h_at_y' : ‖u y - Mavg‖ ≤ |
| 495 | smoothHolderConst d p * R ^ (1 - (d : ℝ) / p) * N := h_at_y |
| 496 | have h_triangle : ‖u x - u y‖ ≤ ‖u x - Mavg‖ + ‖u y - Mavg‖ := by |
| 497 | calc ‖u x - u y‖ = ‖(u x - Mavg) - (u y - Mavg)‖ := by ring_nf |
| 498 | _ ≤ ‖u x - Mavg‖ + ‖u y - Mavg‖ := norm_sub_le _ _ |
| 499 | have h_R_pow_nn : 0 ≤ R ^ (1 - (d : ℝ) / p) := Real.rpow_nonneg hR.le _ |
| 500 | have h_step1 : ‖u x - u y‖ ≤ |
| 501 | 2 * (smoothHolderConst d p * R ^ (1 - (d : ℝ) / p) * N) := by linarith |
| 502 | have h_R_le_2dxy : R ≤ 2 * dist x y := by linarith |
| 503 | have h_R_rpow_le : R ^ (1 - (d : ℝ) / p) ≤ |
| 504 | (2 : ℝ) ^ (1 - (d : ℝ) / p) * dist x y ^ (1 - (d : ℝ) / p) := by |
| 505 | have h2dxy_nn : 0 ≤ 2 * dist x y := by linarith |
| 506 | have h_le_pow : R ^ (1 - (d : ℝ) / p) ≤ (2 * dist x y) ^ (1 - (d : ℝ) / p) := |
| 507 | Real.rpow_le_rpow hR.le h_R_le_2dxy h_exp_pos.le |
| 508 | rw [Real.mul_rpow (by norm_num : (0 : ℝ) ≤ 2) dist_nonneg] at h_le_pow |
| 509 | exact h_le_pow |
| 510 | have h_step2 : 2 * (smoothHolderConst d p * R ^ (1 - (d : ℝ) / p) * N) ≤ |
| 511 | 2 * (smoothHolderConst d p * |
| 512 | ((2 : ℝ) ^ (1 - (d : ℝ) / p) * dist x y ^ (1 - (d : ℝ) / p)) * N) := by |
| 513 | apply mul_le_mul_of_nonneg_left _ (by norm_num : (0 : ℝ) ≤ 2) |
| 514 | apply mul_le_mul_of_nonneg_right |
| 515 | · exact mul_le_mul_of_nonneg_left h_R_rpow_le hC₀_nn |
| 516 | · exact hN_nn |
| 517 | have h_simp : 2 * (smoothHolderConst d p * |
| 518 | ((2 : ℝ) ^ (1 - (d : ℝ) / p) * dist x y ^ (1 - (d : ℝ) / p)) * N) = |
| 519 | C * dist x y ^ (1 - (d : ℝ) / p) * N := by |
| 520 | rw [hC_def]; ring |
| 521 | linarith |
| 522 | |
| 523 | theorem smooth_morrey_sup_bound_uniform |
| 524 | {d : ℕ} [NeZero d] {p : ℝ} (hp : (d : ℝ) < p) |
| 525 | {x₀ : EuclideanSpace ℝ (Fin d)} {R : ℝ} (hR : 0 < R) : |
| 526 | ∃ C : ℝ, 0 ≤ C ∧ |
| 527 | ∀ {u : EuclideanSpace ℝ (Fin d) → ℝ}, ContDiff ℝ (⊤ : ℕ∞) u → |
| 528 | ∀ x ∈ Metric.ball x₀ (R / 2), ‖u x‖ ≤ C * |
| 529 | ((eLpNorm u (ENNReal.ofReal p) (volume.restrict (Metric.ball x₀ R))).toReal + |
| 530 | (eLpNorm (fun z => ‖fderiv ℝ u z‖) (ENNReal.ofReal p) |
| 531 | (volume.restrict (Metric.ball x₀ R))).toReal) := by |
| 532 | classical |
| 533 | have hd_pos : (0 : ℝ) < d := Nat.cast_pos.mpr (NeZero.pos d) |
| 534 | have hd_one_le : (1 : ℝ) ≤ d := |
| 535 | by exact_mod_cast (Nat.one_le_iff_ne_zero.mpr (NeZero.ne d)) |
| 536 | have hp_pos : 0 < p := lt_trans hd_pos hp |
| 537 | have hp_one : 1 < p := lt_of_le_of_lt hd_one_le hp |
| 538 | have h_exp_pos : 0 < 1 - (d : ℝ) / p := by |
| 539 | rw [sub_pos, div_lt_one hp_pos]; exact hp |
| 540 | have hC₀_nn : 0 ≤ smoothHolderConst d p := smoothHolderConst_nonneg hp |
| 541 | have hvol_pos : 0 < (volume (Metric.ball x₀ R)).toReal := |
| 542 | ENNReal.toReal_pos (measure_ball_pos volume x₀ hR).ne' measure_ball_lt_top.ne |
| 543 | set A : ℝ := smoothHolderConst d p * R ^ (1 - (d : ℝ) / p) with hA_def |
| 544 | set Bcoeff : ℝ := ((volume (Metric.ball x₀ R)).toReal) ^ (-(1 / p)) with hBcoeff_def |
| 545 | have hA_nn : 0 ≤ A := by |
| 546 | rw [hA_def] |
| 547 | exact mul_nonneg hC₀_nn (Real.rpow_nonneg hR.le _) |
| 548 | have hBcoeff_nn : 0 ≤ Bcoeff := by |
| 549 | rw [hBcoeff_def] |
| 550 | exact Real.rpow_nonneg ENNReal.toReal_nonneg _ |
| 551 | set C : ℝ := A + Bcoeff with hC_def |
| 552 | have hC_nn : 0 ≤ C := by rw [hC_def]; linarith |
| 553 | refine ⟨C, hC_nn, ?_⟩ |
| 554 | intro u hu x hx |
| 555 | set N_grad : ℝ := (eLpNorm (fun z => ‖fderiv ℝ u z‖) (ENNReal.ofReal p) |
| 556 | (volume.restrict (Metric.ball x₀ R))).toReal with hN_grad_def |
| 557 | set N_u : ℝ := (eLpNorm u (ENNReal.ofReal p) |
| 558 | (volume.restrict (Metric.ball x₀ R))).toReal with hN_u_def |
| 559 | have hN_grad_nn : 0 ≤ N_grad := ENNReal.toReal_nonneg |
| 560 | have hN_u_nn : 0 ≤ N_u := ENNReal.toReal_nonneg |
| 561 | have hx_R : x ∈ Metric.ball x₀ R := by |
| 562 | rw [Metric.mem_ball] at hx ⊢; linarith |
| 563 | set Mavg : ℝ := ⨍ z in Metric.ball x₀ R, u z ∂volume with hMavg_def |
| 564 | have h_diff_bound := smooth_pointwise_holder_bound_explicit (d := d) hp hR hu hx_R |
| 565 | have h_diff_bound' : ‖u x - Mavg‖ ≤ A * N_grad := by |
| 566 | change ‖u x - ⨍ z in Metric.ball x₀ R, u z ∂volume‖ ≤ |
| 567 | smoothHolderConst d p * R ^ (1 - (d : ℝ) / p) * N_grad |
| 568 | exact h_diff_bound |
| 569 | have h_avg_bound := smooth_norm_average_le (x₀ := x₀) hp_one hR hu |
| 570 | have h_avg_bound' : ‖Mavg‖ ≤ Bcoeff * N_u := by |
| 571 | change ‖⨍ z in Metric.ball x₀ R, u z ∂volume‖ ≤ Bcoeff * N_u |
| 572 | rw [show Bcoeff * N_u = N_u * Bcoeff from by ring] |
| 573 | exact h_avg_bound |
| 574 | have h_split : ‖u x‖ ≤ ‖u x - Mavg‖ + ‖Mavg‖ := by |
| 575 | calc ‖u x‖ = ‖(u x - Mavg) + Mavg‖ := by ring_nf |
| 576 | _ ≤ ‖u x - Mavg‖ + ‖Mavg‖ := norm_add_le _ _ |
| 577 | have h_combined : ‖u x‖ ≤ A * N_grad + Bcoeff * N_u := by linarith |
| 578 | have h_factor : |
| 579 | A * N_grad + Bcoeff * N_u ≤ C * (N_u + N_grad) := by |
| 580 | rw [hC_def] |
| 581 | have h_expand : (A + Bcoeff) * (N_u + N_grad) = |
| 582 | A * N_u + A * N_grad + Bcoeff * N_u + Bcoeff * N_grad := by ring |
| 583 | rw [h_expand] |
| 584 | have h_ANu_nn : 0 ≤ A * N_u := mul_nonneg hA_nn hN_u_nn |
| 585 | have h_BNgrad_nn : 0 ≤ Bcoeff * N_grad := mul_nonneg hBcoeff_nn hN_grad_nn |
| 586 | linarith |
| 587 | linarith |
| 588 | |
| 589 | end EuclideanMorrey |
| 590 | end Sobolev |
| 591 | end Analysis |
| 592 | end Poincare |