Navier–Stokes: the Lean blow-up proof, cleaned up together
OpenAI's 2026 Lean proofs of blowup for forced Navier–Stokes and Euler, rerun by others, not refereed, no ruling from Clay; cleaned up together: more readable, faster to build

| 1 | import NavierStokes.WeightedQuotients |
| 2 | import NavierStokes.ParametricFlatFactor |
| 3 | |
| 4 | /-! |
| 5 | # Genuine derivative bounds for polynomially weighted Gaussian edges |
| 6 | |
| 7 | The scalar derivative polynomials are the actual ones from `FlatCutoff`. |
| 8 | Compactness bounds the derivatives of the smooth coefficient; the full |
| 9 | Fréchet product rule then gives estimates for all joint derivative tensors. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | open Set Function Filter Polynomial |
| 15 | open scoped BigOperators ContDiff Topology |
| 16 | |
| 17 | namespace NavierStokes.EdgeWeightJets |
| 18 | |
| 19 | theorem nat_le_infty (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 20 | WithTop.coe_le_coe.mpr le_top |
| 21 | |
| 22 | noncomputable def coefficientMass (p : ℝ[X]) : ℝ := |
| 23 | ∑ i ∈ Finset.range (p.natDegree + 1), |p.coeff i| |
| 24 | |
| 25 | theorem coefficientMass_nonneg (p : ℝ[X]) : 0 ≤ coefficientMass p := |
| 26 | Finset.sum_nonneg (fun _ _ => abs_nonneg _) |
| 27 | |
| 28 | theorem polynomial_eval_bound (p : ℝ[X]) {x T : ℝ} (hT : 1 ≤ T) (hx : |x| ≤ T) : |
| 29 | |p.eval x| ≤ coefficientMass p * T ^ p.natDegree := by |
| 30 | rw [Polynomial.eval_eq_sum_range] |
| 31 | calc |
| 32 | _ ≤ ∑ i ∈ Finset.range (p.natDegree + 1), |p.coeff i * x ^ i| := |
| 33 | Finset.abs_sum_le_sum_abs _ _ |
| 34 | _ ≤ ∑ i ∈ Finset.range (p.natDegree + 1), |p.coeff i| * T ^ p.natDegree := by |
| 35 | apply Finset.sum_le_sum |
| 36 | intro i hi |
| 37 | rw [abs_mul, abs_pow] |
| 38 | apply mul_le_mul_of_nonneg_left _ (abs_nonneg _) |
| 39 | exact (pow_le_pow_left₀ (abs_nonneg x) hx i).trans |
| 40 | (pow_le_pow_right₀ hT (Nat.le_of_lt_succ (Finset.mem_range.mp hi))) |
| 41 | _ = _ := by rw [← Finset.sum_mul]; rfl |
| 42 | |
| 43 | noncomputable def jetMass (c : ℝ) (p : ℝ[X]) (n : ℕ) : ℝ := |
| 44 | 1 + ∑ i ∈ Finset.range (n + 1), coefficientMass (FlatCutoff.jetPolynomial c p i) |
| 45 | |
| 46 | noncomputable def jetOrder (c : ℝ) (p : ℝ[X]) (n : ℕ) : ℕ := |
| 47 | ∑ i ∈ Finset.range (n + 1), (FlatCutoff.jetPolynomial c p i).natDegree |
| 48 | |
| 49 | theorem jetMass_pos (c : ℝ) (p : ℝ[X]) (n : ℕ) : 0 < jetMass c p n := by |
| 50 | have hs := Finset.sum_nonneg (s := Finset.range (n + 1)) |
| 51 | (fun i _ => coefficientMass_nonneg (FlatCutoff.jetPolynomial c p i)) |
| 52 | dsimp [jetMass] |
| 53 | linarith |
| 54 | |
| 55 | theorem jetMass_bound (c : ℝ) (p : ℝ[X]) {i n : ℕ} (hi : i ≤ n) : |
| 56 | coefficientMass (FlatCutoff.jetPolynomial c p i) ≤ jetMass c p n := by |
| 57 | have h := Finset.single_le_sum |
| 58 | (fun j _ => coefficientMass_nonneg (FlatCutoff.jetPolynomial c p j)) |
| 59 | (Finset.mem_range.mpr (Nat.lt_succ_of_le hi)) |
| 60 | dsimp [jetMass] |
| 61 | linarith |
| 62 | |
| 63 | theorem jetOrder_bound (c : ℝ) (p : ℝ[X]) {i n : ℕ} (hi : i ≤ n) : |
| 64 | (FlatCutoff.jetPolynomial c p i).natDegree ≤ jetOrder c p n := by |
| 65 | exact Finset.single_le_sum (f := fun k => (FlatCutoff.jetPolynomial c p k).natDegree) |
| 66 | (fun _ _ => Nat.zero_le _) |
| 67 | (Finset.mem_range.mpr (Nat.lt_succ_of_le hi)) |
| 68 | |
| 69 | theorem polynomialEdge_jets_bound {c : ℝ} (hc : 0 < c) (p : ℝ[X]) (n : ℕ) |
| 70 | {d : ℝ} (hd : 0 < d) : |
| 71 | ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ x : ℝ, 0 < x → x ≤ d → |
| 72 | ‖iteratedFDeriv ℝ i (FlatCutoff.polynomialEdge c p) x‖ ≤ |
| 73 | C * FlatCutoff.edge c x / x ^ N := by |
| 74 | let M := jetMass c p n |
| 75 | let N := jetOrder c p n |
| 76 | refine ⟨M * (d + 1) ^ N, mul_pos (jetMass_pos c p n) (pow_pos (by linarith) _), N, ?_⟩ |
| 77 | intro i hi x hx hxd |
| 78 | let T := max 1 x⁻¹ |
| 79 | have hT : 1 ≤ T := le_max_left _ _ |
| 80 | have hxi : |x⁻¹| ≤ T := by rw [abs_of_pos (inv_pos.mpr hx)]; exact le_max_right _ _ |
| 81 | have hscale : T ≤ (d + 1) / x := by |
| 82 | apply max_le |
| 83 | · apply (le_div_iff₀ hx).2 |
| 84 | linarith |
| 85 | · apply (le_div_iff₀ hx).2 |
| 86 | rw [inv_mul_cancel₀ hx.ne'] |
| 87 | linarith |
| 88 | have hpoly : |(FlatCutoff.jetPolynomial c p i).eval x⁻¹| ≤ M * T ^ N := by |
| 89 | exact (polynomial_eval_bound _ hT hxi).trans |
| 90 | (mul_le_mul (jetMass_bound c p hi) |
| 91 | (pow_le_pow_right₀ hT (jetOrder_bound c p hi)) |
| 92 | (pow_nonneg (zero_le_one.trans hT) _) (jetMass_pos c p n).le) |
| 93 | rw [norm_iteratedFDeriv_eq_norm_iteratedDeriv, |
| 94 | FlatCutoff.iteratedDeriv_polynomialEdge hc p i] |
| 95 | simp only [FlatCutoff.polynomialEdge, Real.norm_eq_abs, abs_mul, |
| 96 | abs_of_nonneg (FlatCutoff.edge_nonneg c x)] |
| 97 | calc |
| 98 | _ ≤ (M * T ^ N) * FlatCutoff.edge c x := |
| 99 | mul_le_mul_of_nonneg_right hpoly (FlatCutoff.edge_nonneg c x) |
| 100 | _ ≤ (M * ((d + 1) / x) ^ N) * FlatCutoff.edge c x := by |
| 101 | exact mul_le_mul_of_nonneg_right |
| 102 | (mul_le_mul_of_nonneg_left (pow_le_pow_left₀ (zero_le_one.trans hT) hscale N) |
| 103 | (jetMass_pos c p n).le) (FlatCutoff.edge_nonneg c x) |
| 104 | _ = _ := by rw [div_pow]; ring |
| 105 | |
| 106 | theorem edge_div_pow_eq_polynomial (c : ℝ) (j : ℕ) : |
| 107 | (fun x => FlatCutoff.edge c x / x ^ j) = |
| 108 | FlatCutoff.polynomialEdge c (X ^ j) := by |
| 109 | rw [← FlatCutoff.polynomialEdge_one c, FlatCutoff.polynomialEdge_div_pow] |
| 110 | simp only [one_mul] |
| 111 | |
| 112 | theorem edge_div_pow_jets_bound {c : ℝ} (hc : 0 < c) (j n : ℕ) {d : ℝ} (hd : 0 < d) : |
| 113 | ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ x : ℝ, 0 < x → x ≤ d → |
| 114 | ‖iteratedFDeriv ℝ i (fun x => FlatCutoff.edge c x / x ^ j) x‖ ≤ |
| 115 | C * FlatCutoff.edge c x / x ^ N := by |
| 116 | rw [edge_div_pow_eq_polynomial] |
| 117 | exact polynomialEdge_jets_bound hc (X ^ j) n hd |
| 118 | |
| 119 | section Joint |
| 120 | |
| 121 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 122 | |
| 123 | theorem norm_iteratedFDeriv_snd_le {f : ℝ → ℝ} (hf : ContDiff ℝ ∞ f) |
| 124 | (n : ℕ) (y : E × ℝ) : |
| 125 | ‖iteratedFDeriv ℝ n (fun y : E × ℝ => f y.2) y‖ ≤ ‖iteratedFDeriv ℝ n f y.2‖ := by |
| 126 | let L : E × ℝ →L[ℝ] ℝ := ContinuousLinearMap.snd ℝ E ℝ |
| 127 | change ‖iteratedFDeriv ℝ n (f ∘ L) y‖ ≤ _ |
| 128 | rw [L.iteratedFDeriv_comp_right hf y (nat_le_infty n)] |
| 129 | apply (ContinuousMultilinearMap.norm_compContinuousLinearMap_le _ _).trans |
| 130 | have hprod : (∏ _i : Fin n, ‖L‖) ≤ 1 := by |
| 131 | exact Finset.prod_le_one (fun _ _ => norm_nonneg _) (fun _ _ => ContinuousLinearMap.norm_snd_le _ _ _) |
| 132 | exact (mul_le_mul_of_nonneg_left hprod (norm_nonneg (iteratedFDeriv ℝ n f (L y)))).trans_eq (mul_one _) |
| 133 | |
| 134 | theorem compact_coefficient_jets {F : Type*} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 135 | {B : E × ℝ → F} (hB : ContDiff ℝ ∞ B) {S : Set E} (hS : IsCompact S) |
| 136 | (n : ℕ) (d : ℝ) : |
| 137 | ∃ C : ℝ, 0 < C ∧ ∀ i ≤ n, ∀ p ∈ S, ∀ x ∈ Icc (0 : ℝ) d, |
| 138 | ‖iteratedFDeriv ℝ i B (p, x)‖ ≤ C := by |
| 139 | have hb : ∀ i : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∀ y ∈ S ×ˢ Icc (0 : ℝ) d, |
| 140 | ‖iteratedFDeriv ℝ i B y‖ ≤ C := by |
| 141 | intro i |
| 142 | obtain ⟨C, hC⟩ := (hS.prod isCompact_Icc).exists_bound_of_continuousOn |
| 143 | (hB.continuous_iteratedFDeriv (nat_le_infty i)).continuousOn |
| 144 | exact ⟨max C 0, le_max_right _ _, fun y hy => (hC y hy).trans (le_max_left _ _)⟩ |
| 145 | choose C hC hbound using hb |
| 146 | refine ⟨1 + ∑ i ∈ Finset.range (n + 1), C i, ?_, ?_⟩ |
| 147 | · have hs := Finset.sum_nonneg (s := Finset.range (n + 1)) (fun i _ => hC i) |
| 148 | linarith |
| 149 | · intro i hi p hp x hx |
| 150 | have hs := Finset.single_le_sum (fun i _ => hC i) |
| 151 | (Finset.mem_range.mpr (Nat.lt_succ_of_le hi)) |
| 152 | exact (hbound i (p, x) ⟨hp, hx⟩).trans (by linarith) |
| 153 | |
| 154 | noncomputable def weighted (c : ℝ) (j : ℕ) (B : E × ℝ → ℝ) (y : E × ℝ) : ℝ := |
| 155 | (FlatCutoff.edge c y.2 / y.2 ^ j) * B y |
| 156 | |
| 157 | theorem weighted_contDiff {c : ℝ} (hc : 0 < c) (j : ℕ) {B : E × ℝ → ℝ} |
| 158 | (hB : ContDiff ℝ ∞ B) : ContDiff ℝ ∞ (weighted c j B) := |
| 159 | ((FlatCutoff.edge_div_pow_contDiff hc j).comp contDiff_snd).mul hB |
| 160 | |
| 161 | /-- A bound for every actual joint derivative tensor through a fixed order. |
| 162 | Only smoothness of the coefficient and compactness of the parameter set are |
| 163 | assumed; no weighted derivative estimates are inputs. -/ |
| 164 | theorem edge_mul_iteratedFDeriv_bound {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 165 | {B : E × ℝ → ℝ} (hB : ContDiff ℝ ∞ B) {S : Set E} (hS : IsCompact S) |
| 166 | (n : ℕ) {d : ℝ} (hd : 0 < d) : |
| 167 | ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ p ∈ S, ∀ x : ℝ, 0 < x → x ≤ d → |
| 168 | ‖iteratedFDeriv ℝ i (weighted c j B) (p, x)‖ ≤ |
| 169 | C * FlatCutoff.edge c x / x ^ N := by |
| 170 | obtain ⟨A, hA, N, hweight⟩ := edge_div_pow_jets_bound hc j n hd |
| 171 | obtain ⟨D, hD, hcoef⟩ := compact_coefficient_jets hB hS n d |
| 172 | refine ⟨(2 : ℝ) ^ n * A * D, by positivity, N, ?_⟩ |
| 173 | intro i hi p hp x hx hxd |
| 174 | have he := FlatCutoff.edge_nonneg c x |
| 175 | have hw : ContDiff ℝ ∞ (fun y : E × ℝ => FlatCutoff.edge c y.2 / y.2 ^ j) := |
| 176 | (FlatCutoff.edge_div_pow_contDiff hc j).comp contDiff_snd |
| 177 | have hwbound : ∀ k ≤ i, |
| 178 | ‖iteratedFDeriv ℝ k (fun y : E × ℝ => FlatCutoff.edge c y.2 / y.2 ^ j) (p, x)‖ ≤ |
| 179 | A * FlatCutoff.edge c x / x ^ N := by |
| 180 | intro k hk |
| 181 | exact (norm_iteratedFDeriv_snd_le (FlatCutoff.edge_div_pow_contDiff hc j) k (p, x)).trans |
| 182 | (hweight k (hk.trans hi) x hx hxd) |
| 183 | have hbnd := ParametricKernelBounds.norm_iteratedFDeriv_mul_le_of_bounds hw hB i (p, x) |
| 184 | (by positivity : 0 ≤ A * FlatCutoff.edge c x / x ^ N) hD.le hwbound |
| 185 | (fun k hk => hcoef k (hk.trans hi) p hp x ⟨hx.le, hxd⟩) |
| 186 | have hsum : (∑ k ∈ Finset.range (i + 1), (i.choose k : ℝ)) = (2 : ℝ) ^ i := by |
| 187 | exact_mod_cast Nat.sum_range_choose i |
| 188 | rw [hsum] at hbnd |
| 189 | change ‖iteratedFDeriv ℝ i (fun y => (FlatCutoff.edge c y.2 / y.2 ^ j) * B y) (p, x)‖ ≤ _ |
| 190 | apply hbnd.trans |
| 191 | calc |
| 192 | _ = ((2 : ℝ) ^ i * A * D) * FlatCutoff.edge c x / x ^ N := by ring |
| 193 | _ ≤ _ := by |
| 194 | exact div_le_div_of_nonneg_right |
| 195 | (mul_le_mul_of_nonneg_right |
| 196 | (mul_le_mul_of_nonneg_right |
| 197 | (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num : (1 : ℝ) ≤ 2) hi) hA.le) |
| 198 | hD.le) he) (pow_nonneg hx.le N) |
| 199 | |
| 200 | theorem edge_mul_iteratedFDeriv_bound_unit {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 201 | {B : E × ℝ → ℝ} (hB : ContDiff ℝ ∞ B) {S : Set E} (hS : IsCompact S) (n : ℕ) : |
| 202 | ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ p ∈ S, ∀ x ∈ Ioo (0 : ℝ) 1, |
| 203 | ‖iteratedFDeriv ℝ n (fun y : E × ℝ => |
| 204 | (FlatCutoff.edge c y.2 / y.2 ^ j) * B y) (p, x)‖ ≤ |
| 205 | C * FlatCutoff.edge c x / x ^ N := by |
| 206 | obtain ⟨C, hC, N, hbound⟩ := edge_mul_iteratedFDeriv_bound hc j hB hS n (by norm_num : (0 : ℝ) < 1) |
| 207 | exact ⟨C, hC, N, fun p hp x hx => hbound n le_rfl p hp x hx.1 hx.2.le⟩ |
| 208 | |
| 209 | theorem weightedJets_of_isCompact_closure {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 210 | {B : E × ℝ → ℝ} (hB : ContDiff ℝ ∞ B) {U : Set E} (hU : IsCompact (closure U)) : |
| 211 | WeightedQuotients.WeightedJets c U (fun _ => 1) (weighted c j B) := by |
| 212 | apply WeightedQuotients.WeightedJets.of_bounds (fun _ _ => le_rfl) |
| 213 | intro n |
| 214 | obtain ⟨C, hC, N, hbound⟩ := edge_mul_iteratedFDeriv_bound_unit hc j hB hU n |
| 215 | refine ⟨C, hC.le, 0, N, ?_⟩ |
| 216 | intro y hy |
| 217 | unfold weighted |
| 218 | simpa only [pow_zero, mul_one, Prod.eta] using hbound y.1 (subset_closure hy.1) y.2 hy.2 |
| 219 | |
| 220 | theorem edge_div_pow_iteratedFDeriv_zero {c : ℝ} (hc : 0 < c) (j n : ℕ) : |
| 221 | iteratedFDeriv ℝ n (fun x => FlatCutoff.edge c x / x ^ j) 0 = 0 := by |
| 222 | apply norm_eq_zero.mp |
| 223 | rw [norm_iteratedFDeriv_eq_norm_iteratedDeriv, edge_div_pow_eq_polynomial, |
| 224 | FlatCutoff.iteratedDeriv_polynomialEdge hc (X ^ j) n, FlatCutoff.polynomialEdge_zero, norm_zero] |
| 225 | |
| 226 | /-- Every full derivative tensor vanishes on the joining hyperplane. -/ |
| 227 | theorem weighted_iteratedFDeriv_zero {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 228 | {B : E × ℝ → ℝ} (hB : ContDiff ℝ ∞ B) (n : ℕ) (p : E) : |
| 229 | iteratedFDeriv ℝ n (weighted c j B) (p, 0) = 0 := by |
| 230 | have hz (k : ℕ) : iteratedFDeriv ℝ k |
| 231 | (fun y : E × ℝ => FlatCutoff.edge c y.2 / y.2 ^ j) (p, 0) = 0 := by |
| 232 | apply norm_le_zero_iff.mp |
| 233 | have h := norm_iteratedFDeriv_snd_le (FlatCutoff.edge_div_pow_contDiff hc j) k (p, 0) |
| 234 | simpa only [edge_div_pow_iteratedFDeriv_zero hc j k, norm_zero] using h |
| 235 | have hw : ContDiff ℝ ∞ (fun y : E × ℝ => FlatCutoff.edge c y.2 / y.2 ^ j) := |
| 236 | (FlatCutoff.edge_div_pow_contDiff hc j).comp contDiff_snd |
| 237 | have h := norm_iteratedFDeriv_mul_le hw hB (p, 0) (nat_le_infty n) |
| 238 | apply norm_le_zero_iff.mp |
| 239 | unfold weighted |
| 240 | simpa only [hz, norm_zero, mul_zero, zero_mul, Finset.sum_const_zero] using h |
| 241 | |
| 242 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 243 | theorem weighted_of_nonpos (c : ℝ) (j : ℕ) (B : E × ℝ → ℝ) {y : E × ℝ} |
| 244 | (hy : y.2 ≤ 0) : weighted c j B y = 0 := by |
| 245 | simp [weighted, FlatCutoff.edge_of_nonpos c hy] |
| 246 | |
| 247 | end Joint |
| 248 | |
| 249 | section MixedDerivatives |
| 250 | |
| 251 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 252 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 253 | |
| 254 | theorem norm_iteratedFDeriv_comp_linear_le {G : Type*} [NormedAddCommGroup G] [NormedSpace ℝ G] |
| 255 | {f : F → ℝ} (hf : ContDiff ℝ ∞ f) (L : G →L[ℝ] F) (hL : ‖L‖ ≤ 1) |
| 256 | (n : ℕ) (x : G) : |
| 257 | ‖iteratedFDeriv ℝ n (f ∘ L) x‖ ≤ ‖iteratedFDeriv ℝ n f (L x)‖ := by |
| 258 | rw [L.iteratedFDeriv_comp_right hf x (nat_le_infty n)] |
| 259 | apply (ContinuousMultilinearMap.norm_compContinuousLinearMap_le _ _).trans |
| 260 | have hp : (∏ _i : Fin n, ‖L‖) ≤ 1 := |
| 261 | Finset.prod_le_one (fun _ _ => norm_nonneg _) (fun _ _ => hL) |
| 262 | simpa only [mul_one] using mul_le_mul_of_nonneg_left hp (norm_nonneg (iteratedFDeriv ℝ n f (L x))) |
| 263 | |
| 264 | theorem norm_iteratedFDeriv_parameter_le {f : E × ℝ → ℝ} (hf : ContDiff ℝ ∞ f) |
| 265 | (n : ℕ) (p : E) (x : ℝ) : |
| 266 | ‖iteratedFDeriv ℝ n (fun p => f (p, x)) p‖ ≤ ‖iteratedFDeriv ℝ n f (p, x)‖ := by |
| 267 | let L : E →L[ℝ] E × ℝ := (ContinuousLinearMap.id ℝ E).prod 0 |
| 268 | have hL : ‖L‖ ≤ 1 := by |
| 269 | apply ContinuousLinearMap.opNorm_le_bound _ zero_le_one |
| 270 | intro q |
| 271 | simp [L] |
| 272 | let g : E × ℝ → ℝ := fun y => f (y + (0, x)) |
| 273 | have hg : ContDiff ℝ ∞ g := hf.comp (contDiff_id.add contDiff_const) |
| 274 | have h := norm_iteratedFDeriv_comp_linear_le hg L hL n p |
| 275 | have heq : g ∘ L = fun p => f (p, x) := by ext q; simp [g, L] |
| 276 | rw [heq] at h |
| 277 | simpa only [g, iteratedFDeriv_comp_add_right, L, ContinuousLinearMap.prod_apply, |
| 278 | ContinuousLinearMap.id_apply, _root_.zero_apply, Prod.mk_add_mk, add_zero, zero_add] using h |
| 279 | |
| 280 | noncomputable def radialIterate (f : E × ℝ → ℝ) : ℕ → E × ℝ → ℝ |
| 281 | | 0 => f |
| 282 | | n + 1 => fun y => fderiv ℝ (radialIterate f n) y (0, 1) |
| 283 | |
| 284 | theorem radialIterate_contDiff {f : E × ℝ → ℝ} (hf : ContDiff ℝ ∞ f) (n : ℕ) : |
| 285 | ContDiff ℝ ∞ (radialIterate f n) := by |
| 286 | induction n with |
| 287 | | zero => exact hf |
| 288 | | succ n ih => |
| 289 | exact (ih.fderiv_right (by simp)).clm_apply contDiff_const |
| 290 | |
| 291 | theorem deriv_slice {f : E × ℝ → ℝ} (hf : ContDiff ℝ ∞ f) (p : E) (x : ℝ) : |
| 292 | deriv (fun t => f (p, t)) x = fderiv ℝ f (p, x) (0, 1) := by |
| 293 | have hpair : HasDerivAt (fun t : ℝ => (p, t)) (0, 1) x := |
| 294 | (hasDerivAt_const x p).prodMk (hasDerivAt_id x) |
| 295 | exact ((hf.differentiable (by simp) (p, x)).hasFDerivAt.comp_hasDerivAt x hpair).deriv |
| 296 | |
| 297 | theorem radialIterate_eq {f : E × ℝ → ℝ} (hf : ContDiff ℝ ∞ f) (n : ℕ) (p : E) (x : ℝ) : |
| 298 | radialIterate f n (p, x) = iteratedDeriv n (fun t => f (p, t)) x := by |
| 299 | induction n generalizing x with |
| 300 | | zero => rfl |
| 301 | | succ n ih => |
| 302 | rw [iteratedDeriv_succ] |
| 303 | have heq : iteratedDeriv n (fun t => f (p, t)) = fun t => radialIterate f n (p, t) := |
| 304 | funext (fun t => (ih t).symm) |
| 305 | rw [heq, deriv_slice (radialIterate_contDiff hf n)] |
| 306 | rfl |
| 307 | |
| 308 | theorem norm_radialIterate_le {f : E × ℝ → ℝ} (hf : ContDiff ℝ ∞ f) |
| 309 | (n m : ℕ) (y : E × ℝ) : |
| 310 | ‖iteratedFDeriv ℝ m (radialIterate f n) y‖ ≤ ‖iteratedFDeriv ℝ (m + n) f y‖ := by |
| 311 | induction n generalizing m with |
| 312 | | zero => simp [radialIterate] |
| 313 | | succ n ih => |
| 314 | have h := norm_iteratedFDeriv_clm_apply_const |
| 315 | (c := ((0 : E), (1 : ℝ))) |
| 316 | (((radialIterate_contDiff hf n).fderiv_right (by simp)).contDiffAt (x := y)) |
| 317 | (nat_le_infty m) |
| 318 | have hn : ‖((0 : E), (1 : ℝ))‖ = 1 := by simp |
| 319 | rw [hn, one_mul, norm_iteratedFDeriv_fderiv] at h |
| 320 | have hi := ih (m + 1) |
| 321 | rw [show m + 1 + n = m + (n + 1) by omega] at hi |
| 322 | exact h.trans hi |
| 323 | |
| 324 | /-- The left side contains the actual nested radial and parameter derivatives, |
| 325 | and is controlled by the full joint tensor of total order. -/ |
| 326 | theorem norm_mixed_derivatives_le {f : E × ℝ → ℝ} (hf : ContDiff ℝ ∞ f) |
| 327 | (m n : ℕ) (p : E) (x : ℝ) : |
| 328 | ‖iteratedFDeriv ℝ m (fun q => iteratedDeriv n (fun t => f (q, t)) x) p‖ ≤ |
| 329 | ‖iteratedFDeriv ℝ (m + n) f (p, x)‖ := by |
| 330 | have heq : (fun q => iteratedDeriv n (fun t => f (q, t)) x) = |
| 331 | fun q => radialIterate f n (q, x) := funext (fun q => (radialIterate_eq hf n q x).symm) |
| 332 | rw [heq] |
| 333 | exact (norm_iteratedFDeriv_parameter_le (radialIterate_contDiff hf n) m p x).trans |
| 334 | (norm_radialIterate_le hf n m (p, x)) |
| 335 | |
| 336 | theorem edge_mul_mixed_derivatives_bound {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 337 | {B : E × ℝ → ℝ} (hB : ContDiff ℝ ∞ B) {S : Set E} (hS : IsCompact S) |
| 338 | (k : ℕ) {d : ℝ} (hd : 0 < d) : |
| 339 | ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ m n : ℕ, m + n ≤ k → ∀ p ∈ S, |
| 340 | ∀ x : ℝ, 0 < x → x ≤ d → |
| 341 | ‖iteratedFDeriv ℝ m (fun q => iteratedDeriv n |
| 342 | (fun t => weighted c j B (q, t)) x) p‖ ≤ C * FlatCutoff.edge c x / x ^ N := by |
| 343 | obtain ⟨C, hC, N, hbound⟩ := edge_mul_iteratedFDeriv_bound hc j hB hS k hd |
| 344 | exact ⟨C, hC, N, fun m n hmn p hp x hx hxd => |
| 345 | (norm_mixed_derivatives_le (weighted_contDiff hc j hB) m n p x).trans |
| 346 | (hbound (m + n) hmn p hp x hx hxd)⟩ |
| 347 | |
| 348 | end MixedDerivatives |
| 349 | |
| 350 | section VectorCoefficients |
| 351 | |
| 352 | variable {E F : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 353 | [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 354 | |
| 355 | theorem compact_coefficient_jets_on {B : E × ℝ → F} {V : Set (E × ℝ)} |
| 356 | (hV : IsOpen V) (hB : ContDiffOn ℝ ∞ B V) {S : Set E} (hS : IsCompact S) |
| 357 | (n : ℕ) (d : ℝ) (hSV : S ×ˢ Icc (0 : ℝ) d ⊆ V) : |
| 358 | ∃ C : ℝ, 0 < C ∧ ∀ i ≤ n, ∀ p ∈ S, ∀ x ∈ Icc (0 : ℝ) d, |
| 359 | ‖iteratedFDeriv ℝ i B (p, x)‖ ≤ C := by |
| 360 | have hb : ∀ i : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∀ y ∈ S ×ˢ Icc (0 : ℝ) d, |
| 361 | ‖iteratedFDeriv ℝ i B y‖ ≤ C := by |
| 362 | intro i |
| 363 | have hcont : ContinuousOn (iteratedFDeriv ℝ i B) V := by |
| 364 | intro y hy |
| 365 | have hi : ContDiffAt ℝ ∞ (iteratedFDeriv ℝ i B) y := |
| 366 | (hB.contDiffAt (hV.mem_nhds hy)).iteratedFDeriv_right |
| 367 | (WithTop.coe_le_coe.mpr le_top) |
| 368 | exact hi.continuousAt.continuousWithinAt |
| 369 | obtain ⟨C, hC⟩ := (hS.prod isCompact_Icc).exists_bound_of_continuousOn (hcont.mono hSV) |
| 370 | exact ⟨max C 0, le_max_right _ _, fun y hy => (hC y hy).trans (le_max_left _ _)⟩ |
| 371 | choose C hC hbound using hb |
| 372 | refine ⟨1 + ∑ i ∈ Finset.range (n + 1), C i, ?_, ?_⟩ |
| 373 | · have hs := Finset.sum_nonneg (s := Finset.range (n + 1)) (fun i _ => hC i) |
| 374 | linarith |
| 375 | · intro i hi p hp x hx |
| 376 | have hs := Finset.single_le_sum (fun i _ => hC i) |
| 377 | (Finset.mem_range.mpr (Nat.lt_succ_of_le hi)) |
| 378 | exact (hbound i (p, x) ⟨hp, hx⟩).trans (by linarith) |
| 379 | |
| 380 | /-- The vector-valued local version needs only genuine smoothness on an open |
| 381 | neighborhood of the compact parameter-coordinate region. -/ |
| 382 | theorem edge_smul_iteratedFDeriv_bound_on {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 383 | {B : E × ℝ → F} {V : Set (E × ℝ)} (hV : IsOpen V) (hB : ContDiffOn ℝ ∞ B V) |
| 384 | {S : Set E} (hS : IsCompact S) (n : ℕ) {d : ℝ} (hd : 0 < d) |
| 385 | (hSV : S ×ˢ Icc (0 : ℝ) d ⊆ V) : |
| 386 | ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ p ∈ S, ∀ x : ℝ, 0 < x → x ≤ d → |
| 387 | ‖iteratedFDeriv ℝ i (fun y : E × ℝ => |
| 388 | (FlatCutoff.edge c y.2 / y.2 ^ j) • B y) (p, x)‖ ≤ |
| 389 | C * FlatCutoff.edge c x / x ^ N := by |
| 390 | obtain ⟨A, hA, N, hweight⟩ := edge_div_pow_jets_bound hc j n hd |
| 391 | obtain ⟨D, hD, hcoef⟩ := compact_coefficient_jets_on hV hB hS n d hSV |
| 392 | refine ⟨(2 : ℝ) ^ n * A * D, by positivity, N, ?_⟩ |
| 393 | intro i hi p hp x hx hxd |
| 394 | have he := FlatCutoff.edge_nonneg c x |
| 395 | have hy : (p, x) ∈ V := hSV ⟨hp, hx.le, hxd⟩ |
| 396 | have hw : ContDiff ℝ ∞ (fun y : E × ℝ => FlatCutoff.edge c y.2 / y.2 ^ j) := |
| 397 | (FlatCutoff.edge_div_pow_contDiff hc j).comp contDiff_snd |
| 398 | have hwbound : ∀ k ≤ i, |
| 399 | ‖iteratedFDeriv ℝ k (fun y : E × ℝ => FlatCutoff.edge c y.2 / y.2 ^ j) (p, x)‖ ≤ |
| 400 | A * FlatCutoff.edge c x / x ^ N := by |
| 401 | intro k hk |
| 402 | exact (norm_iteratedFDeriv_snd_le (FlatCutoff.edge_div_pow_contDiff hc j) k (p, x)).trans |
| 403 | (hweight k (hk.trans hi) x hx hxd) |
| 404 | have hprod := norm_iteratedFDerivWithin_smul_le hw.contDiffOn hB hV.uniqueDiffOn hy (nat_le_infty i) |
| 405 | simp only [iteratedFDerivWithin_of_isOpen _ hV hy] at hprod |
| 406 | apply hprod.trans |
| 407 | calc |
| 408 | _ ≤ ∑ k ∈ Finset.range (i + 1), (i.choose k : ℝ) * |
| 409 | (A * FlatCutoff.edge c x / x ^ N) * D := by |
| 410 | apply Finset.sum_le_sum |
| 411 | intro k hk |
| 412 | have hki : k ≤ i := Nat.le_of_lt_succ (Finset.mem_range.mp hk) |
| 413 | exact mul_le_mul |
| 414 | (mul_le_mul_of_nonneg_left (hwbound k hki) (Nat.cast_nonneg _)) |
| 415 | (hcoef (i - k) ((Nat.sub_le i k).trans hi) p hp x ⟨hx.le, hxd⟩) |
| 416 | (norm_nonneg _) (by positivity) |
| 417 | _ = ((2 : ℝ) ^ i * A * D) * FlatCutoff.edge c x / x ^ N := by |
| 418 | rw [← Finset.sum_mul, ← Finset.sum_mul] |
| 419 | have hsum : (∑ k ∈ Finset.range (i + 1), (i.choose k : ℝ)) = (2 : ℝ) ^ i := by |
| 420 | exact_mod_cast Nat.sum_range_choose i |
| 421 | rw [hsum] |
| 422 | ring |
| 423 | _ ≤ _ := by |
| 424 | exact div_le_div_of_nonneg_right |
| 425 | (mul_le_mul_of_nonneg_right |
| 426 | (mul_le_mul_of_nonneg_right |
| 427 | (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num : (1 : ℝ) ≤ 2) hi) hA.le) |
| 428 | hD.le) he) (pow_nonneg hx.le N) |
| 429 | |
| 430 | theorem edge_smul_iteratedFDeriv_bound {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 431 | {B : E × ℝ → F} (hB : ContDiff ℝ ∞ B) {S : Set E} (hS : IsCompact S) |
| 432 | (n : ℕ) {d : ℝ} (hd : 0 < d) : |
| 433 | ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ p ∈ S, ∀ x : ℝ, 0 < x → x ≤ d → |
| 434 | ‖iteratedFDeriv ℝ i (fun y : E × ℝ => |
| 435 | (FlatCutoff.edge c y.2 / y.2 ^ j) • B y) (p, x)‖ ≤ |
| 436 | C * FlatCutoff.edge c x / x ^ N := |
| 437 | edge_smul_iteratedFDeriv_bound_on hc j isOpen_univ hB.contDiffOn hS n hd (subset_univ _) |
| 438 | |
| 439 | theorem edge_mul_iteratedFDeriv_bound_on {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 440 | {B : E × ℝ → ℝ} {V : Set (E × ℝ)} (hV : IsOpen V) (hB : ContDiffOn ℝ ∞ B V) |
| 441 | {S : Set E} (hS : IsCompact S) (n : ℕ) {d : ℝ} (hd : 0 < d) |
| 442 | (hSV : S ×ˢ Icc (0 : ℝ) d ⊆ V) : |
| 443 | ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ p ∈ S, ∀ x : ℝ, 0 < x → x ≤ d → |
| 444 | ‖iteratedFDeriv ℝ i (weighted c j B) (p, x)‖ ≤ |
| 445 | C * FlatCutoff.edge c x / x ^ N := by |
| 446 | unfold weighted |
| 447 | simpa only [smul_eq_mul] using |
| 448 | edge_smul_iteratedFDeriv_bound_on hc j hV hB hS n hd hSV |
| 449 | |
| 450 | end VectorCoefficients |
| 451 | |
| 452 | section Products |
| 453 | |
| 454 | variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 455 | |
| 456 | theorem edge_mul_edge (c d x : ℝ) : |
| 457 | FlatCutoff.edge c x * FlatCutoff.edge d x = FlatCutoff.edge (c + d) x := by |
| 458 | by_cases hx : x ≤ 0 |
| 459 | · simp [FlatCutoff.edge_of_nonpos _ hx] |
| 460 | · have hp := lt_of_not_ge hx |
| 461 | rw [FlatCutoff.edge_of_pos c hp, FlatCutoff.edge_of_pos d hp, |
| 462 | FlatCutoff.edge_of_pos (c + d) hp, ← Real.exp_add] |
| 463 | congr 1 |
| 464 | ring |
| 465 | |
| 466 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 467 | theorem weighted_mul (c d : ℝ) (j k : ℕ) (B D : E × ℝ → ℝ) : |
| 468 | (fun y => weighted c j B y * weighted d k D y) = |
| 469 | weighted (c + d) (j + k) (fun y => B y * D y) := by |
| 470 | funext y |
| 471 | simp only [weighted, pow_add] |
| 472 | rw [show (FlatCutoff.edge c y.2 / y.2 ^ j * B y) * |
| 473 | (FlatCutoff.edge d y.2 / y.2 ^ k * D y) = |
| 474 | (FlatCutoff.edge c y.2 * FlatCutoff.edge d y.2) / |
| 475 | (y.2 ^ j * y.2 ^ k) * (B y * D y) by ring] |
| 476 | rw [edge_mul_edge] |
| 477 | |
| 478 | theorem weighted_mul_iteratedFDeriv_bound {c d : ℝ} (hc : 0 < c) (hd : 0 < d) |
| 479 | (j k : ℕ) {B D : E × ℝ → ℝ} (hB : ContDiff ℝ ∞ B) (hD : ContDiff ℝ ∞ D) |
| 480 | {S : Set E} (hS : IsCompact S) (n : ℕ) {a : ℝ} (ha : 0 < a) : |
| 481 | ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ p ∈ S, ∀ x : ℝ, 0 < x → x ≤ a → |
| 482 | ‖iteratedFDeriv ℝ i (fun y => weighted c j B y * weighted d k D y) (p, x)‖ ≤ |
| 483 | C * FlatCutoff.edge (c + d) x / x ^ N := by |
| 484 | rw [weighted_mul] |
| 485 | exact edge_mul_iteratedFDeriv_bound (add_pos hc hd) (j + k) (hB.mul hD) hS n ha |
| 486 | |
| 487 | /-- Any fixed nonnegative power of the radial coordinate can be retained |
| 488 | inside the actual smooth coefficient. Inverse powers are already arbitrary. -/ |
| 489 | theorem radial_power_iteratedFDeriv_bound {c : ℝ} (hc : 0 < c) (j k : ℕ) |
| 490 | {B : E × ℝ → ℝ} (hB : ContDiff ℝ ∞ B) {S : Set E} (hS : IsCompact S) |
| 491 | (n : ℕ) {d : ℝ} (hd : 0 < d) : |
| 492 | ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ p ∈ S, ∀ x : ℝ, 0 < x → x ≤ d → |
| 493 | ‖iteratedFDeriv ℝ i (fun y : E × ℝ => |
| 494 | (FlatCutoff.edge c y.2 / y.2 ^ j) * (y.2 ^ k * B y)) (p, x)‖ ≤ |
| 495 | C * FlatCutoff.edge c x / x ^ N := |
| 496 | edge_mul_iteratedFDeriv_bound hc j ((contDiff_snd.pow k).mul hB) hS n hd |
| 497 | |
| 498 | theorem edge_pow (c x : ℝ) {k : ℕ} (hk : 0 < k) : |
| 499 | FlatCutoff.edge c x ^ k = FlatCutoff.edge ((k : ℝ) * c) x := by |
| 500 | by_cases hx : x ≤ 0 |
| 501 | · simp [FlatCutoff.edge_of_nonpos _ hx, hk.ne'] |
| 502 | · have hp := lt_of_not_ge hx |
| 503 | rw [FlatCutoff.edge_of_pos c hp, FlatCutoff.edge_of_pos ((k : ℝ) * c) hp, |
| 504 | ← Real.exp_nat_mul] |
| 505 | congr 1 |
| 506 | ring |
| 507 | |
| 508 | omit [NormedAddCommGroup E] [NormedSpace ℝ E] in |
| 509 | theorem weighted_pow (c : ℝ) (j : ℕ) (B : E × ℝ → ℝ) {k : ℕ} (hk : 0 < k) : |
| 510 | (fun y => weighted c j B y ^ k) = |
| 511 | weighted ((k : ℝ) * c) (j * k) (fun y => B y ^ k) := by |
| 512 | funext y |
| 513 | simp only [weighted, mul_pow, div_pow, edge_pow c y.2 hk, pow_mul] |
| 514 | |
| 515 | theorem weighted_pow_iteratedFDeriv_bound {c : ℝ} (hc : 0 < c) (j : ℕ) |
| 516 | {B : E × ℝ → ℝ} (hB : ContDiff ℝ ∞ B) {S : Set E} (hS : IsCompact S) |
| 517 | {k : ℕ} (hk : 0 < k) (n : ℕ) {d : ℝ} (hd : 0 < d) : |
| 518 | ∃ C : ℝ, 0 < C ∧ ∃ N : ℕ, ∀ i ≤ n, ∀ p ∈ S, ∀ x : ℝ, 0 < x → x ≤ d → |
| 519 | ‖iteratedFDeriv ℝ i (fun y => weighted c j B y ^ k) (p, x)‖ ≤ |
| 520 | C * FlatCutoff.edge ((k : ℝ) * c) x / x ^ N := by |
| 521 | rw [weighted_pow c j B hk] |
| 522 | exact edge_mul_iteratedFDeriv_bound (mul_pos (Nat.cast_pos.mpr hk) hc) |
| 523 | (j * k) (hB.pow k) hS n hd |
| 524 | |
| 525 | end Products |
| 526 | |
| 527 | end NavierStokes.EdgeWeightJets |