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 Mathlib.Data.Nat.Choose.Vandermonde |
| 2 | import Mathlib.Data.Nat.Choose.Cast |
| 3 | import Mathlib.Algebra.BigOperators.NatAntidiagonal |
| 4 | import Mathlib.Algebra.BigOperators.Intervals |
| 5 | import Mathlib.Data.Real.Basic |
| 6 | import Mathlib.Tactic.FieldSimp |
| 7 | import Mathlib.Tactic.Linarith |
| 8 | import Mathlib.Tactic.NormNum |
| 9 | import Mathlib.Tactic.Ring |
| 10 | |
| 11 | /-! |
| 12 | # Concrete coefficient estimates for the natural-axis norm |
| 13 | |
| 14 | Products are actual |
| 15 | finite coefficient convolutions with the Leibniz binomial factors. In particular, |
| 16 | the mixed derivative estimate is proved after the radial inverse; no boundedness |
| 17 | of either differentiation operator on its own is assumed. |
| 18 | -/ |
| 19 | |
| 20 | namespace NavierStokes.AxisWeightEstimates |
| 21 | |
| 22 | open scoped BigOperators |
| 23 | open Finset Finset.Nat |
| 24 | |
| 25 | noncomputable section |
| 26 | |
| 27 | /-- The exact coefficient weight printed in the candidate manuscript. -/ |
| 28 | def weight (ε : ℝ) (n m : ℕ) : ℝ := |
| 29 | (1 / 20 : ℝ) ^ n * (ε⁻¹) ^ m * (m.factorial : ℝ) * ((n + m).choose m : ℝ) / |
| 30 | (((n : ℝ) + 1) ^ 2 * ((m : ℝ) + 1) ^ 2) |
| 31 | |
| 32 | /-- The analytic part of the weight, before the two square-decay factors. -/ |
| 33 | def coreWeight (ε : ℝ) (n m : ℕ) : ℝ := |
| 34 | (1 / 20 : ℝ) ^ n * (ε⁻¹) ^ m * (m.factorial : ℝ) * ((n + m).choose m : ℝ) |
| 35 | |
| 36 | def squareDecay (n : ℕ) : ℝ := 1 / ((n : ℝ) + 1) ^ 2 |
| 37 | |
| 38 | theorem weight_eq_core_decay (ε : ℝ) (n m : ℕ) : |
| 39 | weight ε n m = coreWeight ε n m * squareDecay n * squareDecay m := by |
| 40 | unfold weight coreWeight squareDecay |
| 41 | simp only [div_eq_mul_inv, mul_inv_rev] |
| 42 | ring |
| 43 | |
| 44 | theorem squareDecay_pos (n : ℕ) : 0 < squareDecay n := by |
| 45 | unfold squareDecay |
| 46 | positivity |
| 47 | |
| 48 | theorem coreWeight_pos {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 49 | 0 < coreWeight ε n m := by |
| 50 | unfold coreWeight |
| 51 | have hc : 0 < ((n + m).choose m : ℝ) := by |
| 52 | exact_mod_cast Nat.choose_pos (by omega : m ≤ n + m) |
| 53 | positivity |
| 54 | |
| 55 | theorem weight_pos {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : 0 < weight ε n m := by |
| 56 | rw [weight_eq_core_decay] |
| 57 | exact mul_pos (mul_pos (coreWeight_pos hε n m) (squareDecay_pos n)) (squareDecay_pos m) |
| 58 | |
| 59 | theorem squareDecay_succ_le (n : ℕ) : squareDecay (n + 1) ≤ squareDecay n := by |
| 60 | unfold squareDecay |
| 61 | apply one_div_le_one_div_of_le (by positivity) |
| 62 | push_cast |
| 63 | nlinarith [show (0 : ℝ) ≤ n by positivity] |
| 64 | |
| 65 | theorem squareDecay_le_four_succ (n : ℕ) : squareDecay n ≤ 4 * squareDecay (n + 1) := by |
| 66 | unfold squareDecay |
| 67 | have hn : (0 : ℝ) ≤ n := by positivity |
| 68 | have h₁ : (0 : ℝ) < (n : ℝ) + 1 := by positivity |
| 69 | have h₂ : (0 : ℝ) < ((n + 1 : ℕ) : ℝ) + 1 := by positivity |
| 70 | rw [show 4 * (1 / (((n + 1 : ℕ) : ℝ) + 1) ^ 2) = |
| 71 | 4 / (((n + 1 : ℕ) : ℝ) + 1) ^ 2 by ring] |
| 72 | rw [div_le_div_iff₀ (sq_pos_of_pos h₁) (sq_pos_of_pos h₂)] |
| 73 | push_cast |
| 74 | nlinarith |
| 75 | |
| 76 | /-- Elementary telescoping majorant for the square summability estimate. -/ |
| 77 | theorem reciprocal_square_telescope (x : ℝ) (hx : 1 ≤ x) : |
| 78 | 1 / x ^ 2 ≤ 2 / x - 2 / (x + 1) := by |
| 79 | have hx0 : 0 < x := by linarith |
| 80 | have hx1 : 0 < x + 1 := by linarith |
| 81 | have hid : 2 / x - 2 / (x + 1) = 2 / (x * (x + 1)) := by |
| 82 | field_simp; ring |
| 83 | rw [hid, div_le_div_iff₀ (sq_pos_of_pos hx0) (mul_pos hx0 hx1)] |
| 84 | nlinarith |
| 85 | |
| 86 | theorem sum_squareDecay_le (n : ℕ) : |
| 87 | (∑ i ∈ Finset.range (n + 1), squareDecay i) ≤ 2 - 2 / ((n : ℝ) + 2) := by |
| 88 | induction n with |
| 89 | | zero => norm_num [squareDecay] |
| 90 | | succ n ih => |
| 91 | rw [Finset.sum_range_succ] |
| 92 | have hn : (0 : ℝ) ≤ n := by positivity |
| 93 | have htel := reciprocal_square_telescope ((n : ℝ) + 2) (by linarith) |
| 94 | have hid : squareDecay (n + 1) = 1 / ((n : ℝ) + 2) ^ 2 := by |
| 95 | simp [squareDecay, Nat.cast_add, Nat.cast_one] |
| 96 | ring |
| 97 | rw [hid] |
| 98 | push_cast |
| 99 | ring_nf at ih htel ⊢ |
| 100 | linarith |
| 101 | |
| 102 | theorem sum_squareDecay_le_two (n : ℕ) : |
| 103 | (∑ i ∈ Finset.range (n + 1), squareDecay i) ≤ 2 := by |
| 104 | have h := sum_squareDecay_le n |
| 105 | have hp : 0 ≤ 2 / ((n : ℝ) + 2) := by positivity |
| 106 | linarith |
| 107 | |
| 108 | theorem squareDecay_product_le (i j : ℕ) : |
| 109 | squareDecay i * squareDecay j ≤ |
| 110 | 2 * squareDecay (i + j) * (squareDecay i + squareDecay j) := by |
| 111 | have hi : 0 < (i : ℝ) + 1 := by positivity |
| 112 | have hj : 0 < (j : ℝ) + 1 := by positivity |
| 113 | have hij : 0 < ((i + j : ℕ) : ℝ) + 1 := by positivity |
| 114 | have hpoly : (((i + j : ℕ) : ℝ) + 1) ^ 2 ≤ |
| 115 | 2 * (((i : ℝ) + 1) ^ 2 + ((j : ℝ) + 1) ^ 2) := by |
| 116 | push_cast |
| 117 | nlinarith [sq_nonneg ((i : ℝ) - (j : ℝ))] |
| 118 | have hh := div_le_div_of_nonneg_right hpoly (le_of_lt |
| 119 | (mul_pos (mul_pos (sq_pos_of_pos hi) (sq_pos_of_pos hj)) (sq_pos_of_pos hij))) |
| 120 | convert! hh using 1 <;> unfold squareDecay <;> |
| 121 | field_simp [ne_of_gt hi, ne_of_gt hj, ne_of_gt hij] |
| 122 | ring |
| 123 | |
| 124 | /-- The one-dimensional convolution constant is at most eight. -/ |
| 125 | theorem squareDecay_convolution_le (n : ℕ) : |
| 126 | (∑ ij ∈ antidiagonal n, squareDecay ij.1 * squareDecay ij.2) ≤ 8 * squareDecay n := by |
| 127 | have hsum : (∑ ij ∈ antidiagonal n, squareDecay ij.1 * squareDecay ij.2) ≤ |
| 128 | ∑ ij ∈ antidiagonal n, 2 * squareDecay n * (squareDecay ij.1 + squareDecay ij.2) := by |
| 129 | apply Finset.sum_le_sum |
| 130 | intro ij hij |
| 131 | have h := squareDecay_product_le ij.1 ij.2 |
| 132 | rw [mem_antidiagonal.mp hij] at h |
| 133 | exact h |
| 134 | have hfirst : (∑ ij ∈ antidiagonal n, squareDecay ij.1) ≤ 2 := by |
| 135 | rw [sum_antidiagonal_eq_sum_range_succ_mk] |
| 136 | exact sum_squareDecay_le_two n |
| 137 | have hsecond : (∑ ij ∈ antidiagonal n, squareDecay ij.2) ≤ 2 := by |
| 138 | have heq : (∑ ij ∈ antidiagonal n, squareDecay ij.2) = |
| 139 | ∑ ij ∈ antidiagonal n, squareDecay ij.1 := by |
| 140 | simpa only [Prod.fst_swap] using |
| 141 | (sum_antidiagonal_swap (n := n) (f := fun ij => squareDecay ij.1)) |
| 142 | rw [heq] |
| 143 | exact hfirst |
| 144 | rw [← Finset.mul_sum, Finset.sum_add_distrib] at hsum |
| 145 | have hd := (squareDecay_pos n).le |
| 146 | nlinarith |
| 147 | |
| 148 | /-- A term of Vandermonde's sum gives the binomial estimate used in the norm. -/ |
| 149 | theorem choose_product_le (i j k l : ℕ) : |
| 150 | (i + k).choose k * (j + l).choose l ≤ ((i + j) + (k + l)).choose (k + l) := by |
| 151 | have h := Finset.single_le_sum (fun p (_ : p ∈ antidiagonal (k + l)) => |
| 152 | Nat.zero_le ((i + k).choose p.1 * (j + l).choose p.2)) |
| 153 | (show (k, l) ∈ antidiagonal (k + l) from mem_antidiagonal.mpr rfl) |
| 154 | rw [← Nat.add_choose_eq] at h |
| 155 | have hindex : i + k + (j + l) = i + j + (k + l) := by omega |
| 156 | rw [hindex] at h |
| 157 | exact h |
| 158 | |
| 159 | theorem choose_factorials (k l : ℕ) : |
| 160 | ((k + l).choose k : ℝ) * (k.factorial : ℝ) * (l.factorial : ℝ) = |
| 161 | ((k + l).factorial : ℝ) := by |
| 162 | have h := Nat.add_choose_mul_factorial_mul_factorial l k |
| 163 | rw [Nat.add_comm l k, Nat.mul_right_comm] at h |
| 164 | exact_mod_cast h |
| 165 | |
| 166 | /-- The analytic factors respect the Leibniz convolution with constant one. -/ |
| 167 | theorem coreWeight_product_le {ε : ℝ} (hε : 0 < ε) (i j k l : ℕ) : |
| 168 | ((k + l).choose k : ℝ) * coreWeight ε i k * coreWeight ε j l ≤ |
| 169 | coreWeight ε (i + j) (k + l) := by |
| 170 | have hc : ((i + k).choose k : ℝ) * ((j + l).choose l : ℝ) ≤ |
| 171 | (((i + j) + (k + l)).choose (k + l) : ℝ) := by |
| 172 | exact_mod_cast choose_product_le i j k l |
| 173 | have hfac := choose_factorials k l |
| 174 | have hnonneg : 0 ≤ (1 / 20 : ℝ) ^ (i + j) * (ε⁻¹) ^ (k + l) * |
| 175 | ((k + l).factorial : ℝ) := by positivity |
| 176 | calc |
| 177 | _ = ((1 / 20 : ℝ) ^ (i + j) * (ε⁻¹) ^ (k + l) * ((k + l).factorial : ℝ)) * |
| 178 | (((i + k).choose k : ℝ) * ((j + l).choose l : ℝ)) := by |
| 179 | rw [← hfac] |
| 180 | unfold coreWeight |
| 181 | rw [pow_add, pow_add] |
| 182 | ring |
| 183 | _ ≤ _ := mul_le_mul_of_nonneg_left hc hnonneg |
| 184 | |
| 185 | /-- Factorial form used only to prove the exact shift identities. -/ |
| 186 | theorem coreWeight_factorial (ε : ℝ) (n m : ℕ) : |
| 187 | coreWeight ε n m = |
| 188 | (1 / 20 : ℝ) ^ n * (ε⁻¹) ^ m * ((n + m).factorial : ℝ) / (n.factorial : ℝ) := by |
| 189 | have hn : (n.factorial : ℝ) ≠ 0 := by exact_mod_cast Nat.factorial_ne_zero n |
| 190 | have hf : (m.factorial : ℝ) * ((n + m).choose m : ℝ) * (n.factorial : ℝ) = |
| 191 | ((n + m).factorial : ℝ) := by |
| 192 | have h := Nat.add_choose_mul_factorial_mul_factorial n m |
| 193 | exact_mod_cast (by simpa only [mul_comm, mul_left_comm, mul_assoc] using h) |
| 194 | apply (eq_div_iff hn).2 |
| 195 | unfold coreWeight |
| 196 | calc |
| 197 | _ = (1 / 20 : ℝ) ^ n * (ε⁻¹) ^ m * |
| 198 | ((m.factorial : ℝ) * ((n + m).choose m : ℝ) * (n.factorial : ℝ)) := by ring |
| 199 | _ = _ := by rw [hf] |
| 200 | |
| 201 | theorem coreWeight_radial_identity {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 202 | coreWeight ε n m * ((n : ℝ) + m + 1) = |
| 203 | 20 * ((n : ℝ) + 1) * coreWeight ε (n + 1) m := by |
| 204 | rw [coreWeight_factorial, coreWeight_factorial] |
| 205 | have hindex : n + 1 + m = (n + m) + 1 := by omega |
| 206 | rw [hindex, Nat.factorial_succ, Nat.factorial_succ, pow_succ] |
| 207 | push_cast |
| 208 | have hn : (n.factorial : ℝ) ≠ 0 := by exact_mod_cast Nat.factorial_ne_zero n |
| 209 | have hn1 : (n : ℝ) + 1 ≠ 0 := by positivity |
| 210 | field_simp [ne_of_gt hε, hn, hn1] |
| 211 | |
| 212 | theorem coreWeight_radial_le {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 213 | coreWeight ε n m ≤ 20 * coreWeight ε (n + 1) m := by |
| 214 | have hp : 0 < (n : ℝ) + 1 := by positivity |
| 215 | apply (mul_le_mul_iff_left₀ hp).mp |
| 216 | calc |
| 217 | coreWeight ε n m * ((n : ℝ) + 1) ≤ |
| 218 | coreWeight ε n m * ((n : ℝ) + m + 1) := by |
| 219 | exact mul_le_mul_of_nonneg_left (by |
| 220 | have hm : (0 : ℝ) ≤ m := by positivity |
| 221 | linarith) |
| 222 | (coreWeight_pos hε n m).le |
| 223 | _ = 20 * coreWeight ε (n + 1) m * ((n : ℝ) + 1) := by |
| 224 | rw [coreWeight_radial_identity hε] |
| 225 | ring |
| 226 | |
| 227 | theorem coreWeight_parameter_shift {ε : ℝ} (hε : 0 < ε) (i k : ℕ) : |
| 228 | coreWeight ε i (k + 1) = |
| 229 | (20 / ε) * ((i : ℝ) + 1) * coreWeight ε (i + 1) k := by |
| 230 | rw [coreWeight_factorial, coreWeight_factorial] |
| 231 | have hindex : i + 1 + k = i + (k + 1) := by omega |
| 232 | rw [hindex, Nat.factorial_succ, pow_succ, pow_succ] |
| 233 | push_cast |
| 234 | have hi : (i.factorial : ℝ) ≠ 0 := by exact_mod_cast Nat.factorial_ne_zero i |
| 235 | have hi1 : (i : ℝ) + 1 ≠ 0 := by positivity |
| 236 | have he := ne_of_gt hε |
| 237 | field_simp |
| 238 | |
| 239 | /-- A radial shift costs at most the printed factor `4 * 20 = 80`. -/ |
| 240 | theorem weight_radial_shift {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 241 | weight ε n m ≤ 80 * weight ε (n + 1) m := by |
| 242 | rw [weight_eq_core_decay, weight_eq_core_decay] |
| 243 | calc |
| 244 | _ ≤ (20 * coreWeight ε (n + 1) m) * (4 * squareDecay (n + 1)) * squareDecay m := by |
| 245 | apply mul_le_mul_of_nonneg_right _ (squareDecay_pos m).le |
| 246 | exact mul_le_mul (coreWeight_radial_le hε n m) (squareDecay_le_four_succ n) |
| 247 | (squareDecay_pos n).le (mul_nonneg (by norm_num) (coreWeight_pos hε (n + 1) m).le) |
| 248 | _ = _ := by ring |
| 249 | |
| 250 | /-- Assigning the output radial shift to a parameter-differentiated factor. -/ |
| 251 | theorem weight_parameter_radial_shift {ε : ℝ} (hε : 0 < ε) (i k : ℕ) : |
| 252 | weight ε i (k + 1) ≤ (80 / ε) * ((i : ℝ) + 1) * weight ε (i + 1) k := by |
| 253 | have hc : 0 ≤ (20 / ε) * ((i : ℝ) + 1) * coreWeight ε (i + 1) k := by |
| 254 | have hcpos := coreWeight_pos hε (i + 1) k |
| 255 | positivity |
| 256 | have hd := mul_le_mul (squareDecay_le_four_succ i) (squareDecay_succ_le k) |
| 257 | (squareDecay_pos (k + 1)).le (mul_nonneg (by norm_num) (squareDecay_pos (i + 1)).le) |
| 258 | rw [weight_eq_core_decay, coreWeight_parameter_shift hε, weight_eq_core_decay] |
| 259 | calc |
| 260 | _ = ((20 / ε) * ((i : ℝ) + 1) * coreWeight ε (i + 1) k) * |
| 261 | (squareDecay i * squareDecay (k + 1)) := by ring |
| 262 | _ ≤ ((20 / ε) * ((i : ℝ) + 1) * coreWeight ε (i + 1) k) * |
| 263 | (4 * squareDecay (i + 1) * squareDecay k) := mul_le_mul_of_nonneg_left hd hc |
| 264 | _ = _ := by ring |
| 265 | |
| 266 | /-- The finite weight convolution associated with radial multiplication and |
| 267 | the parameter Leibniz rule. -/ |
| 268 | def productWeightSum (ε : ℝ) (n m : ℕ) : ℝ := |
| 269 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 270 | (m.choose kl.1 : ℝ) * weight ε ij.1 kl.1 * weight ε ij.2 kl.2 |
| 271 | |
| 272 | theorem weight_product_term_le {ε : ℝ} (hε : 0 < ε) (i j k l : ℕ) : |
| 273 | ((k + l).choose k : ℝ) * weight ε i k * weight ε j l ≤ |
| 274 | coreWeight ε (i + j) (k + l) * (squareDecay i * squareDecay j) * |
| 275 | (squareDecay k * squareDecay l) := by |
| 276 | have hd : 0 ≤ squareDecay i * squareDecay j * squareDecay k * squareDecay l := by |
| 277 | exact mul_nonneg (mul_nonneg (mul_nonneg (squareDecay_pos i).le |
| 278 | (squareDecay_pos j).le) (squareDecay_pos k).le) (squareDecay_pos l).le |
| 279 | calc |
| 280 | _ = (((k + l).choose k : ℝ) * coreWeight ε i k * coreWeight ε j l) * |
| 281 | (squareDecay i * squareDecay j * squareDecay k * squareDecay l) := by |
| 282 | rw [weight_eq_core_decay, weight_eq_core_decay] |
| 283 | ring |
| 284 | _ ≤ coreWeight ε (i + j) (k + l) * |
| 285 | (squareDecay i * squareDecay j * squareDecay k * squareDecay l) := |
| 286 | mul_le_mul_of_nonneg_right (coreWeight_product_le hε i j k l) hd |
| 287 | _ = _ := by ring |
| 288 | |
| 289 | /-- The manuscript's uniform algebra constant `64`, with actual finite sums. -/ |
| 290 | theorem productWeightSum_le {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 291 | productWeightSum ε n m ≤ 64 * weight ε n m := by |
| 292 | have hsum : productWeightSum ε n m ≤ |
| 293 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 294 | coreWeight ε n m * (squareDecay ij.1 * squareDecay ij.2) * |
| 295 | (squareDecay kl.1 * squareDecay kl.2) := by |
| 296 | apply Finset.sum_le_sum |
| 297 | intro ij hij |
| 298 | apply Finset.sum_le_sum |
| 299 | intro kl hkl |
| 300 | have h := weight_product_term_le hε ij.1 ij.2 kl.1 kl.2 |
| 301 | rw [mem_antidiagonal.mp hij, mem_antidiagonal.mp hkl] at h |
| 302 | exact h |
| 303 | have hfactor : |
| 304 | (∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 305 | coreWeight ε n m * (squareDecay ij.1 * squareDecay ij.2) * |
| 306 | (squareDecay kl.1 * squareDecay kl.2)) = |
| 307 | coreWeight ε n m * |
| 308 | (∑ ij ∈ antidiagonal n, squareDecay ij.1 * squareDecay ij.2) * |
| 309 | (∑ kl ∈ antidiagonal m, squareDecay kl.1 * squareDecay kl.2) := by |
| 310 | simp only [Finset.mul_sum, Finset.sum_mul] |
| 311 | rw [Finset.sum_comm] |
| 312 | rw [hfactor] at hsum |
| 313 | have hn0 : 0 ≤ ∑ ij ∈ antidiagonal n, squareDecay ij.1 * squareDecay ij.2 := |
| 314 | Finset.sum_nonneg (fun ij _ => mul_nonneg (squareDecay_pos _).le (squareDecay_pos _).le) |
| 315 | have hm0 : 0 ≤ ∑ kl ∈ antidiagonal m, squareDecay kl.1 * squareDecay kl.2 := |
| 316 | Finset.sum_nonneg (fun kl _ => mul_nonneg (squareDecay_pos _).le (squareDecay_pos _).le) |
| 317 | have hprod := mul_le_mul (squareDecay_convolution_le n) (squareDecay_convolution_le m) |
| 318 | hm0 (mul_nonneg (by norm_num) (squareDecay_pos n).le) |
| 319 | calc |
| 320 | _ ≤ coreWeight ε n m * |
| 321 | ((∑ ij ∈ antidiagonal n, squareDecay ij.1 * squareDecay ij.2) * |
| 322 | (∑ kl ∈ antidiagonal m, squareDecay kl.1 * squareDecay kl.2)) := by |
| 323 | simpa only [mul_assoc] using hsum |
| 324 | _ ≤ coreWeight ε n m * ((8 * squareDecay n) * (8 * squareDecay m)) := |
| 325 | mul_le_mul_of_nonneg_left hprod (coreWeight_pos hε n m).le |
| 326 | _ = _ := by rw [weight_eq_core_decay]; ring |
| 327 | |
| 328 | /-- Actual radial convolution with the parameter Leibniz coefficients. -/ |
| 329 | def jetProduct (f g : ℕ → ℕ → ℝ) (n m : ℕ) : ℝ := |
| 330 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 331 | (m.choose kl.1 : ℝ) * f ij.1 kl.1 * g ij.2 kl.2 |
| 332 | |
| 333 | theorem abs_bilinear_term_le (a x y wx wy F G : ℝ) |
| 334 | (ha : 0 ≤ a) (hF : 0 ≤ F) (_hG : 0 ≤ G) (hwx : 0 ≤ wx) (_hwy : 0 ≤ wy) |
| 335 | (hx : |x| ≤ F * wx) (hy : |y| ≤ G * wy) : |
| 336 | |a * x * y| ≤ (F * G) * (a * wx * wy) := by |
| 337 | rw [abs_mul, abs_mul, abs_of_nonneg ha] |
| 338 | calc |
| 339 | a * |x| * |y| = a * (|x| * |y|) := by ring |
| 340 | _ ≤ a * ((F * wx) * (G * wy)) := |
| 341 | mul_le_mul_of_nonneg_left (mul_le_mul hx hy (abs_nonneg y) (mul_nonneg hF hwx)) ha |
| 342 | _ = _ := by ring |
| 343 | |
| 344 | theorem abs_double_sum_le {ι κ : Type*} (s : Finset ι) (t : Finset κ) |
| 345 | (f M : ι → κ → ℝ) (h : ∀ i ∈ s, ∀ k ∈ t, |f i k| ≤ M i k) : |
| 346 | |∑ i ∈ s, ∑ k ∈ t, f i k| ≤ ∑ i ∈ s, ∑ k ∈ t, M i k := by |
| 347 | calc |
| 348 | _ ≤ ∑ i ∈ s, |∑ k ∈ t, f i k| := abs_sum_le_sum_abs _ _ |
| 349 | _ ≤ _ := by |
| 350 | apply Finset.sum_le_sum |
| 351 | intro i hi |
| 352 | exact (abs_sum_le_sum_abs _ _).trans (Finset.sum_le_sum (h i hi)) |
| 353 | |
| 354 | /-- Uniform coefficient product bound, requiring only the actual coefficient |
| 355 | bounds on the two input arrays. -/ |
| 356 | theorem jetProduct_bound {ε F G : ℝ} (hε : 0 < ε) (hF : 0 ≤ F) (hG : 0 ≤ G) |
| 357 | (f g : ℕ → ℕ → ℝ) |
| 358 | (hf : ∀ n m, |f n m| ≤ F * weight ε n m) |
| 359 | (hg : ∀ n m, |g n m| ≤ G * weight ε n m) (n m : ℕ) : |
| 360 | |jetProduct f g n m| ≤ 64 * F * G * weight ε n m := by |
| 361 | have hsum : |jetProduct f g n m| ≤ |
| 362 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 363 | (F * G) * ((m.choose kl.1 : ℝ) * weight ε ij.1 kl.1 * weight ε ij.2 kl.2) := by |
| 364 | apply abs_double_sum_le |
| 365 | intro ij hij kl hkl |
| 366 | exact abs_bilinear_term_le _ _ _ _ _ _ _ (Nat.cast_nonneg _) hF hG |
| 367 | (weight_pos hε _ _).le (weight_pos hε _ _).le (hf _ _) (hg _ _) |
| 368 | have hfactor : |
| 369 | (∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 370 | (F * G) * ((m.choose kl.1 : ℝ) * weight ε ij.1 kl.1 * weight ε ij.2 kl.2)) = |
| 371 | (F * G) * productWeightSum ε n m := by |
| 372 | simp only [productWeightSum, Finset.mul_sum] |
| 373 | rw [hfactor] at hsum |
| 374 | calc |
| 375 | _ ≤ (F * G) * productWeightSum ε n m := hsum |
| 376 | _ ≤ (F * G) * (64 * weight ε n m) := |
| 377 | mul_le_mul_of_nonneg_left (productWeightSum_le hε n m) (mul_nonneg hF hG) |
| 378 | _ = _ := by ring |
| 379 | |
| 380 | def radialDivisor (r n : ℕ) : ℝ := ((n : ℝ) + 1) * ((n : ℝ) + r) |
| 381 | |
| 382 | theorem radialDivisor_pos {r : ℕ} (hr : 1 ≤ r) (n : ℕ) : 0 < radialDivisor r n := by |
| 383 | have hr' : (1 : ℝ) ≤ r := by exact_mod_cast hr |
| 384 | unfold radialDivisor |
| 385 | positivity |
| 386 | |
| 387 | /-- The extra parameter and dot factors fit inside the regular radial divisor. -/ |
| 388 | theorem mixed_factors_le_divisor {r n i j : ℕ} (hr : 1 ≤ r) (hij : i + j = n) : |
| 389 | ((i : ℝ) + 1) * (j : ℝ) ≤ radialDivisor r n := by |
| 390 | have hi : i + 1 ≤ n + 1 := by omega |
| 391 | have hj : j ≤ n + r := by omega |
| 392 | unfold radialDivisor |
| 393 | exact_mod_cast Nat.mul_le_mul hi hj |
| 394 | |
| 395 | def shiftedProductWeightSum (ε : ℝ) (n m : ℕ) : ℝ := |
| 396 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 397 | (m.choose kl.1 : ℝ) * weight ε (ij.1 + 1) kl.1 * weight ε ij.2 kl.2 |
| 398 | |
| 399 | theorem shiftedProductWeightSum_le {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 400 | shiftedProductWeightSum ε n m ≤ 64 * weight ε (n + 1) m := by |
| 401 | have hsub : shiftedProductWeightSum ε n m ≤ productWeightSum ε (n + 1) m := by |
| 402 | unfold productWeightSum |
| 403 | rw [sum_antidiagonal_succ] |
| 404 | change shiftedProductWeightSum ε n m ≤ _ + shiftedProductWeightSum ε n m |
| 405 | apply le_add_of_nonneg_left |
| 406 | apply Finset.sum_nonneg |
| 407 | intro kl hkl |
| 408 | exact mul_nonneg (mul_nonneg (Nat.cast_nonneg _) (weight_pos hε _ _).le) |
| 409 | (weight_pos hε _ _).le |
| 410 | exact hsub.trans (productWeightSum_le hε (n + 1) m) |
| 411 | |
| 412 | /-- Coefficients of the zero-datum primitive. -/ |
| 413 | def primitiveJet (f : ℕ → ℕ → ℝ) : ℕ → ℕ → ℝ |
| 414 | | 0, _ => 0 |
| 415 | | n + 1, m => f n m / ((n : ℝ) + 1) |
| 416 | |
| 417 | /-- Coefficients of the regular zero-datum inverse of `Y f'' + r f'`. -/ |
| 418 | def regularInverseJet (r : ℕ) (f : ℕ → ℕ → ℝ) : ℕ → ℕ → ℝ |
| 419 | | 0, _ => 0 |
| 420 | | n + 1, m => f n m / radialDivisor r n |
| 421 | |
| 422 | theorem radialDivisor_ge_one {r : ℕ} (hr : 1 ≤ r) (n : ℕ) : 1 ≤ radialDivisor r n := by |
| 423 | have hn : (0 : ℝ) ≤ n := by positivity |
| 424 | have hr' : (1 : ℝ) ≤ r := by exact_mod_cast hr |
| 425 | have ha : (1 : ℝ) ≤ n + 1 := by linarith |
| 426 | have hb : (1 : ℝ) ≤ n + r := by linarith |
| 427 | simpa only [one_mul, radialDivisor] using |
| 428 | (mul_le_mul ha hb (by norm_num : (0 : ℝ) ≤ 1) (by positivity : 0 ≤ (n : ℝ) + 1)) |
| 429 | |
| 430 | end |
| 431 | |
| 432 | end NavierStokes.AxisWeightEstimates |