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 | theorem weight_radial_shift_ratio {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 251 | weight ε n m / weight ε (n + 1) m ≤ 80 := by |
| 252 | exact (div_le_iff₀ (weight_pos hε (n + 1) m)).2 (weight_radial_shift hε n m) |
| 253 | |
| 254 | /-- Assigning the output radial shift to a parameter-differentiated factor. -/ |
| 255 | theorem weight_parameter_radial_shift {ε : ℝ} (hε : 0 < ε) (i k : ℕ) : |
| 256 | weight ε i (k + 1) ≤ (80 / ε) * ((i : ℝ) + 1) * weight ε (i + 1) k := by |
| 257 | have hc : 0 ≤ (20 / ε) * ((i : ℝ) + 1) * coreWeight ε (i + 1) k := by |
| 258 | have hcpos := coreWeight_pos hε (i + 1) k |
| 259 | positivity |
| 260 | have hd := mul_le_mul (squareDecay_le_four_succ i) (squareDecay_succ_le k) |
| 261 | (squareDecay_pos (k + 1)).le (mul_nonneg (by norm_num) (squareDecay_pos (i + 1)).le) |
| 262 | rw [weight_eq_core_decay, coreWeight_parameter_shift hε, weight_eq_core_decay] |
| 263 | calc |
| 264 | _ = ((20 / ε) * ((i : ℝ) + 1) * coreWeight ε (i + 1) k) * |
| 265 | (squareDecay i * squareDecay (k + 1)) := by ring |
| 266 | _ ≤ ((20 / ε) * ((i : ℝ) + 1) * coreWeight ε (i + 1) k) * |
| 267 | (4 * squareDecay (i + 1) * squareDecay k) := mul_le_mul_of_nonneg_left hd hc |
| 268 | _ = _ := by ring |
| 269 | |
| 270 | theorem weight_parameter_radial_shift_ratio {ε : ℝ} (hε : 0 < ε) (i k : ℕ) : |
| 271 | weight ε i (k + 1) / weight ε (i + 1) k ≤ (80 / ε) * ((i : ℝ) + 1) := by |
| 272 | exact (div_le_iff₀ (weight_pos hε (i + 1) k)).2 (weight_parameter_radial_shift hε i k) |
| 273 | |
| 274 | /-- The finite weight convolution associated with radial multiplication and |
| 275 | the parameter Leibniz rule. -/ |
| 276 | def productWeightSum (ε : ℝ) (n m : ℕ) : ℝ := |
| 277 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 278 | (m.choose kl.1 : ℝ) * weight ε ij.1 kl.1 * weight ε ij.2 kl.2 |
| 279 | |
| 280 | theorem weight_product_term_le {ε : ℝ} (hε : 0 < ε) (i j k l : ℕ) : |
| 281 | ((k + l).choose k : ℝ) * weight ε i k * weight ε j l ≤ |
| 282 | coreWeight ε (i + j) (k + l) * (squareDecay i * squareDecay j) * |
| 283 | (squareDecay k * squareDecay l) := by |
| 284 | have hd : 0 ≤ squareDecay i * squareDecay j * squareDecay k * squareDecay l := by |
| 285 | exact mul_nonneg (mul_nonneg (mul_nonneg (squareDecay_pos i).le |
| 286 | (squareDecay_pos j).le) (squareDecay_pos k).le) (squareDecay_pos l).le |
| 287 | calc |
| 288 | _ = (((k + l).choose k : ℝ) * coreWeight ε i k * coreWeight ε j l) * |
| 289 | (squareDecay i * squareDecay j * squareDecay k * squareDecay l) := by |
| 290 | rw [weight_eq_core_decay, weight_eq_core_decay] |
| 291 | ring |
| 292 | _ ≤ coreWeight ε (i + j) (k + l) * |
| 293 | (squareDecay i * squareDecay j * squareDecay k * squareDecay l) := |
| 294 | mul_le_mul_of_nonneg_right (coreWeight_product_le hε i j k l) hd |
| 295 | _ = _ := by ring |
| 296 | |
| 297 | /-- The manuscript's uniform algebra constant `64`, with actual finite sums. -/ |
| 298 | theorem productWeightSum_le {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 299 | productWeightSum ε n m ≤ 64 * weight ε n m := by |
| 300 | have hsum : productWeightSum ε n m ≤ |
| 301 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 302 | coreWeight ε n m * (squareDecay ij.1 * squareDecay ij.2) * |
| 303 | (squareDecay kl.1 * squareDecay kl.2) := by |
| 304 | apply Finset.sum_le_sum |
| 305 | intro ij hij |
| 306 | apply Finset.sum_le_sum |
| 307 | intro kl hkl |
| 308 | have h := weight_product_term_le hε ij.1 ij.2 kl.1 kl.2 |
| 309 | rw [mem_antidiagonal.mp hij, mem_antidiagonal.mp hkl] at h |
| 310 | exact h |
| 311 | have hfactor : |
| 312 | (∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 313 | coreWeight ε n m * (squareDecay ij.1 * squareDecay ij.2) * |
| 314 | (squareDecay kl.1 * squareDecay kl.2)) = |
| 315 | coreWeight ε n m * |
| 316 | (∑ ij ∈ antidiagonal n, squareDecay ij.1 * squareDecay ij.2) * |
| 317 | (∑ kl ∈ antidiagonal m, squareDecay kl.1 * squareDecay kl.2) := by |
| 318 | simp only [Finset.mul_sum, Finset.sum_mul] |
| 319 | rw [Finset.sum_comm] |
| 320 | rw [hfactor] at hsum |
| 321 | have hn0 : 0 ≤ ∑ ij ∈ antidiagonal n, squareDecay ij.1 * squareDecay ij.2 := |
| 322 | Finset.sum_nonneg (fun ij _ => mul_nonneg (squareDecay_pos _).le (squareDecay_pos _).le) |
| 323 | have hm0 : 0 ≤ ∑ kl ∈ antidiagonal m, squareDecay kl.1 * squareDecay kl.2 := |
| 324 | Finset.sum_nonneg (fun kl _ => mul_nonneg (squareDecay_pos _).le (squareDecay_pos _).le) |
| 325 | have hprod := mul_le_mul (squareDecay_convolution_le n) (squareDecay_convolution_le m) |
| 326 | hm0 (mul_nonneg (by norm_num) (squareDecay_pos n).le) |
| 327 | calc |
| 328 | _ ≤ coreWeight ε n m * |
| 329 | ((∑ ij ∈ antidiagonal n, squareDecay ij.1 * squareDecay ij.2) * |
| 330 | (∑ kl ∈ antidiagonal m, squareDecay kl.1 * squareDecay kl.2)) := by |
| 331 | simpa only [mul_assoc] using hsum |
| 332 | _ ≤ coreWeight ε n m * ((8 * squareDecay n) * (8 * squareDecay m)) := |
| 333 | mul_le_mul_of_nonneg_left hprod (coreWeight_pos hε n m).le |
| 334 | _ = _ := by rw [weight_eq_core_decay]; ring |
| 335 | |
| 336 | /-- Actual radial convolution with the parameter Leibniz coefficients. -/ |
| 337 | def jetProduct (f g : ℕ → ℕ → ℝ) (n m : ℕ) : ℝ := |
| 338 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 339 | (m.choose kl.1 : ℝ) * f ij.1 kl.1 * g ij.2 kl.2 |
| 340 | |
| 341 | theorem abs_bilinear_term_le (a x y wx wy F G : ℝ) |
| 342 | (ha : 0 ≤ a) (hF : 0 ≤ F) (_hG : 0 ≤ G) (hwx : 0 ≤ wx) (_hwy : 0 ≤ wy) |
| 343 | (hx : |x| ≤ F * wx) (hy : |y| ≤ G * wy) : |
| 344 | |a * x * y| ≤ (F * G) * (a * wx * wy) := by |
| 345 | rw [abs_mul, abs_mul, abs_of_nonneg ha] |
| 346 | calc |
| 347 | a * |x| * |y| = a * (|x| * |y|) := by ring |
| 348 | _ ≤ a * ((F * wx) * (G * wy)) := |
| 349 | mul_le_mul_of_nonneg_left (mul_le_mul hx hy (abs_nonneg y) (mul_nonneg hF hwx)) ha |
| 350 | _ = _ := by ring |
| 351 | |
| 352 | theorem abs_double_sum_le {ι κ : Type*} (s : Finset ι) (t : Finset κ) |
| 353 | (f M : ι → κ → ℝ) (h : ∀ i ∈ s, ∀ k ∈ t, |f i k| ≤ M i k) : |
| 354 | |∑ i ∈ s, ∑ k ∈ t, f i k| ≤ ∑ i ∈ s, ∑ k ∈ t, M i k := by |
| 355 | calc |
| 356 | _ ≤ ∑ i ∈ s, |∑ k ∈ t, f i k| := abs_sum_le_sum_abs _ _ |
| 357 | _ ≤ _ := by |
| 358 | apply Finset.sum_le_sum |
| 359 | intro i hi |
| 360 | exact (abs_sum_le_sum_abs _ _).trans (Finset.sum_le_sum (h i hi)) |
| 361 | |
| 362 | /-- Uniform coefficient product bound, requiring only the actual coefficient |
| 363 | bounds on the two input arrays. -/ |
| 364 | theorem jetProduct_bound {ε F G : ℝ} (hε : 0 < ε) (hF : 0 ≤ F) (hG : 0 ≤ G) |
| 365 | (f g : ℕ → ℕ → ℝ) |
| 366 | (hf : ∀ n m, |f n m| ≤ F * weight ε n m) |
| 367 | (hg : ∀ n m, |g n m| ≤ G * weight ε n m) (n m : ℕ) : |
| 368 | |jetProduct f g n m| ≤ 64 * F * G * weight ε n m := by |
| 369 | have hsum : |jetProduct f g n m| ≤ |
| 370 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 371 | (F * G) * ((m.choose kl.1 : ℝ) * weight ε ij.1 kl.1 * weight ε ij.2 kl.2) := by |
| 372 | apply abs_double_sum_le |
| 373 | intro ij hij kl hkl |
| 374 | exact abs_bilinear_term_le _ _ _ _ _ _ _ (Nat.cast_nonneg _) hF hG |
| 375 | (weight_pos hε _ _).le (weight_pos hε _ _).le (hf _ _) (hg _ _) |
| 376 | have hfactor : |
| 377 | (∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 378 | (F * G) * ((m.choose kl.1 : ℝ) * weight ε ij.1 kl.1 * weight ε ij.2 kl.2)) = |
| 379 | (F * G) * productWeightSum ε n m := by |
| 380 | simp only [productWeightSum, Finset.mul_sum] |
| 381 | rw [hfactor] at hsum |
| 382 | calc |
| 383 | _ ≤ (F * G) * productWeightSum ε n m := hsum |
| 384 | _ ≤ (F * G) * (64 * weight ε n m) := |
| 385 | mul_le_mul_of_nonneg_left (productWeightSum_le hε n m) (mul_nonneg hF hG) |
| 386 | _ = _ := by ring |
| 387 | |
| 388 | def radialDivisor (r n : ℕ) : ℝ := ((n : ℝ) + 1) * ((n : ℝ) + r) |
| 389 | |
| 390 | theorem radialDivisor_pos {r : ℕ} (hr : 1 ≤ r) (n : ℕ) : 0 < radialDivisor r n := by |
| 391 | have hr' : (1 : ℝ) ≤ r := by exact_mod_cast hr |
| 392 | unfold radialDivisor |
| 393 | positivity |
| 394 | |
| 395 | /-- The extra parameter and dot factors fit inside the regular radial divisor. -/ |
| 396 | theorem mixed_factors_le_divisor {r n i j : ℕ} (hr : 1 ≤ r) (hij : i + j = n) : |
| 397 | ((i : ℝ) + 1) * (j : ℝ) ≤ radialDivisor r n := by |
| 398 | have hi : i + 1 ≤ n + 1 := by omega |
| 399 | have hj : j ≤ n + r := by omega |
| 400 | unfold radialDivisor |
| 401 | exact_mod_cast Nat.mul_le_mul hi hj |
| 402 | |
| 403 | def shiftedProductWeightSum (ε : ℝ) (n m : ℕ) : ℝ := |
| 404 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 405 | (m.choose kl.1 : ℝ) * weight ε (ij.1 + 1) kl.1 * weight ε ij.2 kl.2 |
| 406 | |
| 407 | theorem shiftedProductWeightSum_le {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 408 | shiftedProductWeightSum ε n m ≤ 64 * weight ε (n + 1) m := by |
| 409 | have hsub : shiftedProductWeightSum ε n m ≤ productWeightSum ε (n + 1) m := by |
| 410 | unfold productWeightSum |
| 411 | rw [sum_antidiagonal_succ] |
| 412 | change shiftedProductWeightSum ε n m ≤ _ + shiftedProductWeightSum ε n m |
| 413 | apply le_add_of_nonneg_left |
| 414 | apply Finset.sum_nonneg |
| 415 | intro kl hkl |
| 416 | exact mul_nonneg (mul_nonneg (Nat.cast_nonneg _) (weight_pos hε _ _).le) |
| 417 | (weight_pos hε _ _).le |
| 418 | exact hsub.trans (productWeightSum_le hε (n + 1) m) |
| 419 | |
| 420 | /-- A single mixed term after applying the inverse radial divisor. -/ |
| 421 | theorem mixed_weight_term_le {ε : ℝ} (hε : 0 < ε) {r n i j : ℕ} |
| 422 | (hr : 1 ≤ r) (hij : i + j = n) (m k l : ℕ) : |
| 423 | (((m.choose k : ℝ) * j) / radialDivisor r n) * weight ε i (k + 1) * weight ε j l ≤ |
| 424 | (80 / ε) * ((m.choose k : ℝ) * weight ε (i + 1) k * weight ε j l) := by |
| 425 | have hD := radialDivisor_pos hr n |
| 426 | have hcoef : 0 ≤ ((m.choose k : ℝ) * j) / radialDivisor r n := by positivity |
| 427 | have hfactor : (((i : ℝ) + 1) * j) / radialDivisor r n ≤ 1 := by |
| 428 | apply (div_le_iff₀ hD).2 |
| 429 | simpa only [one_mul] using mixed_factors_le_divisor hr hij |
| 430 | have hnonneg : 0 ≤ (80 / ε) * |
| 431 | ((m.choose k : ℝ) * weight ε (i + 1) k * weight ε j l) := by |
| 432 | exact mul_nonneg (by positivity) |
| 433 | (mul_nonneg (mul_nonneg (Nat.cast_nonneg _) (weight_pos hε _ _).le) (weight_pos hε _ _).le) |
| 434 | calc |
| 435 | _ ≤ (((m.choose k : ℝ) * j) / radialDivisor r n) * |
| 436 | ((80 / ε) * ((i : ℝ) + 1) * weight ε (i + 1) k) * weight ε j l := by |
| 437 | exact mul_le_mul_of_nonneg_right |
| 438 | (mul_le_mul_of_nonneg_left (weight_parameter_radial_shift hε i k) hcoef) |
| 439 | (weight_pos hε _ _).le |
| 440 | _ = ((80 / ε) * ((m.choose k : ℝ) * weight ε (i + 1) k * weight ε j l)) * |
| 441 | ((((i : ℝ) + 1) * j) / radialDivisor r n) := by ring |
| 442 | _ ≤ ((80 / ε) * ((m.choose k : ℝ) * weight ε (i + 1) k * weight ε j l)) * 1 := |
| 443 | mul_le_mul_of_nonneg_left hfactor hnonneg |
| 444 | _ = _ := mul_one _ |
| 445 | |
| 446 | def mixedWeightSum (ε : ℝ) (r n m : ℕ) : ℝ := |
| 447 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 448 | (((m.choose kl.1 : ℝ) * ij.2) / radialDivisor r n) * |
| 449 | weight ε ij.1 (kl.1 + 1) * weight ε ij.2 kl.2 |
| 450 | |
| 451 | theorem mixedWeightSum_le {ε : ℝ} (hε : 0 < ε) {r : ℕ} (hr : 1 ≤ r) (n m : ℕ) : |
| 452 | mixedWeightSum ε r n m ≤ (5120 / ε) * weight ε (n + 1) m := by |
| 453 | have hsum : mixedWeightSum ε r n m ≤ |
| 454 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 455 | (80 / ε) * ((m.choose kl.1 : ℝ) * weight ε (ij.1 + 1) kl.1 * weight ε ij.2 kl.2) := by |
| 456 | apply Finset.sum_le_sum |
| 457 | intro ij hij |
| 458 | apply Finset.sum_le_sum |
| 459 | intro kl hkl |
| 460 | exact mixed_weight_term_le hε hr (mem_antidiagonal.mp hij) m kl.1 kl.2 |
| 461 | have hfactor : |
| 462 | (∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 463 | (80 / ε) * ((m.choose kl.1 : ℝ) * weight ε (ij.1 + 1) kl.1 * weight ε ij.2 kl.2)) = |
| 464 | (80 / ε) * shiftedProductWeightSum ε n m := by |
| 465 | simp only [shiftedProductWeightSum, Finset.mul_sum] |
| 466 | rw [hfactor] at hsum |
| 467 | calc |
| 468 | _ ≤ (80 / ε) * shiftedProductWeightSum ε n m := hsum |
| 469 | _ ≤ (80 / ε) * (64 * weight ε (n + 1) m) := |
| 470 | mul_le_mul_of_nonneg_left (shiftedProductWeightSum_le hε n m) (by positivity) |
| 471 | _ = _ := by ring |
| 472 | |
| 473 | /-- The coefficient at radial degree n+1 of J_r((∂η f) D_Y g). |
| 474 | The radial divisor is distributed over its finite convolution sum. -/ |
| 475 | def inverseMixedJet (r : ℕ) (f g : ℕ → ℕ → ℝ) (n m : ℕ) : ℝ := |
| 476 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 477 | (((m.choose kl.1 : ℝ) * ij.2) / radialDivisor r n) * |
| 478 | f ij.1 (kl.1 + 1) * g ij.2 kl.2 |
| 479 | |
| 480 | /-- The mixed derivative is bounded after radial inversion, with explicit |
| 481 | constant 5120/ε. Neither individual derivative is assumed bounded. -/ |
| 482 | theorem inverseMixedJet_bound {ε F G : ℝ} (hε : 0 < ε) (hF : 0 ≤ F) (hG : 0 ≤ G) |
| 483 | {r : ℕ} (hr : 1 ≤ r) (f g : ℕ → ℕ → ℝ) |
| 484 | (hf : ∀ n m, |f n m| ≤ F * weight ε n m) |
| 485 | (hg : ∀ n m, |g n m| ≤ G * weight ε n m) (n m : ℕ) : |
| 486 | |inverseMixedJet r f g n m| ≤ (5120 / ε) * F * G * weight ε (n + 1) m := by |
| 487 | have hD := radialDivisor_pos hr n |
| 488 | have hsum : |inverseMixedJet r f g n m| ≤ |
| 489 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 490 | (F * G) * ((((m.choose kl.1 : ℝ) * ij.2) / radialDivisor r n) * |
| 491 | weight ε ij.1 (kl.1 + 1) * weight ε ij.2 kl.2) := by |
| 492 | apply abs_double_sum_le |
| 493 | intro ij hij kl hkl |
| 494 | exact abs_bilinear_term_le _ _ _ _ _ _ _ (by positivity) hF hG |
| 495 | (weight_pos hε _ _).le (weight_pos hε _ _).le (hf _ _) (hg _ _) |
| 496 | have hfactor : |
| 497 | (∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 498 | (F * G) * ((((m.choose kl.1 : ℝ) * ij.2) / radialDivisor r n) * |
| 499 | weight ε ij.1 (kl.1 + 1) * weight ε ij.2 kl.2)) = |
| 500 | (F * G) * mixedWeightSum ε r n m := by |
| 501 | simp only [mixedWeightSum, Finset.mul_sum] |
| 502 | rw [hfactor] at hsum |
| 503 | calc |
| 504 | _ ≤ (F * G) * mixedWeightSum ε r n m := hsum |
| 505 | _ ≤ (F * G) * ((5120 / ε) * weight ε (n + 1) m) := |
| 506 | mul_le_mul_of_nonneg_left (mixedWeightSum_le hε hr n m) (mul_nonneg hF hG) |
| 507 | _ = _ := by ring |
| 508 | |
| 509 | /-- Coefficients of the radial averaging operator `Bf(Y)=∫₀¹ f(tY)dt`. -/ |
| 510 | def averageJet (f : ℕ → ℕ → ℝ) (n m : ℕ) : ℝ := f n m / ((n : ℝ) + 1) |
| 511 | |
| 512 | /-- Coefficients of the zero-datum primitive. -/ |
| 513 | def primitiveJet (f : ℕ → ℕ → ℝ) : ℕ → ℕ → ℝ |
| 514 | | 0, _ => 0 |
| 515 | | n + 1, m => f n m / ((n : ℝ) + 1) |
| 516 | |
| 517 | /-- Coefficients of the regular zero-datum inverse of `Y f'' + r f'`. -/ |
| 518 | def regularInverseJet (r : ℕ) (f : ℕ → ℕ → ℝ) : ℕ → ℕ → ℝ |
| 519 | | 0, _ => 0 |
| 520 | | n + 1, m => f n m / radialDivisor r n |
| 521 | |
| 522 | /-- The primitive is applied together with the parameter derivative. -/ |
| 523 | def parameterPrimitiveJet (f : ℕ → ℕ → ℝ) : ℕ → ℕ → ℝ |
| 524 | | 0, _ => 0 |
| 525 | | n + 1, m => f n (m + 1) / ((n : ℝ) + 1) |
| 526 | |
| 527 | theorem averageJet_bound {ε F : ℝ} (_hε : 0 < ε) (_hF : 0 ≤ F) |
| 528 | (f : ℕ → ℕ → ℝ) (hf : ∀ n m, |f n m| ≤ F * weight ε n m) (n m : ℕ) : |
| 529 | |averageJet f n m| ≤ F * weight ε n m := by |
| 530 | unfold averageJet |
| 531 | rw [abs_div, abs_of_pos (by positivity : 0 < (n : ℝ) + 1)] |
| 532 | exact (div_le_self (abs_nonneg _) (by |
| 533 | have hn : (0 : ℝ) ≤ n := by positivity |
| 534 | linarith)).trans (hf n m) |
| 535 | |
| 536 | theorem primitiveJet_bound {ε F : ℝ} (hε : 0 < ε) (hF : 0 ≤ F) |
| 537 | (f : ℕ → ℕ → ℝ) (hf : ∀ n m, |f n m| ≤ F * weight ε n m) (n m : ℕ) : |
| 538 | |primitiveJet f n m| ≤ 80 * F * weight ε n m := by |
| 539 | cases n with |
| 540 | | zero => |
| 541 | simpa only [primitiveJet, abs_zero] using |
| 542 | (mul_nonneg (mul_nonneg (by norm_num) hF) (weight_pos hε 0 m).le) |
| 543 | | succ n => |
| 544 | calc |
| 545 | |primitiveJet f (n + 1) m| = |averageJet f n m| := rfl |
| 546 | _ ≤ F * weight ε n m := averageJet_bound hε hF f hf n m |
| 547 | _ ≤ F * (80 * weight ε (n + 1) m) := |
| 548 | mul_le_mul_of_nonneg_left (weight_radial_shift hε n m) hF |
| 549 | _ = _ := by ring |
| 550 | |
| 551 | theorem radialDivisor_ge_one {r : ℕ} (hr : 1 ≤ r) (n : ℕ) : 1 ≤ radialDivisor r n := by |
| 552 | have hn : (0 : ℝ) ≤ n := by positivity |
| 553 | have hr' : (1 : ℝ) ≤ r := by exact_mod_cast hr |
| 554 | have ha : (1 : ℝ) ≤ n + 1 := by linarith |
| 555 | have hb : (1 : ℝ) ≤ n + r := by linarith |
| 556 | simpa only [one_mul, radialDivisor] using |
| 557 | (mul_le_mul ha hb (by norm_num : (0 : ℝ) ≤ 1) (by positivity : 0 ≤ (n : ℝ) + 1)) |
| 558 | |
| 559 | theorem regularInverseJet_bound {ε F : ℝ} (hε : 0 < ε) (hF : 0 ≤ F) |
| 560 | {r : ℕ} (hr : 1 ≤ r) (f : ℕ → ℕ → ℝ) |
| 561 | (hf : ∀ n m, |f n m| ≤ F * weight ε n m) (n m : ℕ) : |
| 562 | |regularInverseJet r f n m| ≤ 80 * F * weight ε n m := by |
| 563 | cases n with |
| 564 | | zero => |
| 565 | simpa only [regularInverseJet, abs_zero] using |
| 566 | (mul_nonneg (mul_nonneg (by norm_num) hF) (weight_pos hε 0 m).le) |
| 567 | | succ n => |
| 568 | rw [regularInverseJet, abs_div, abs_of_pos (radialDivisor_pos hr n)] |
| 569 | calc |
| 570 | |f n m| / radialDivisor r n ≤ |f n m| := |
| 571 | div_le_self (abs_nonneg _) (radialDivisor_ge_one hr n) |
| 572 | _ ≤ F * weight ε n m := hf n m |
| 573 | _ ≤ F * (80 * weight ε (n + 1) m) := |
| 574 | mul_le_mul_of_nonneg_left (weight_radial_shift hε n m) hF |
| 575 | _ = _ := by ring |
| 576 | |
| 577 | theorem parameterPrimitiveJet_bound {ε F : ℝ} (hε : 0 < ε) (hF : 0 ≤ F) |
| 578 | (f : ℕ → ℕ → ℝ) (hf : ∀ n m, |f n m| ≤ F * weight ε n m) (n m : ℕ) : |
| 579 | |parameterPrimitiveJet f n m| ≤ (80 / ε) * F * weight ε n m := by |
| 580 | cases n with |
| 581 | | zero => |
| 582 | simpa only [parameterPrimitiveJet, abs_zero] using |
| 583 | (mul_nonneg (mul_nonneg (show 0 ≤ 80 / ε by positivity) hF) (weight_pos hε 0 m).le) |
| 584 | | succ n => |
| 585 | rw [parameterPrimitiveJet, abs_div, abs_of_pos (by positivity : 0 < (n : ℝ) + 1)] |
| 586 | apply (div_le_iff₀ (by positivity : 0 < (n : ℝ) + 1)).2 |
| 587 | calc |
| 588 | |f n (m + 1)| ≤ F * weight ε n (m + 1) := hf n (m + 1) |
| 589 | _ ≤ F * ((80 / ε) * ((n : ℝ) + 1) * weight ε (n + 1) m) := |
| 590 | mul_le_mul_of_nonneg_left (weight_parameter_radial_shift hε n m) hF |
| 591 | _ = _ := by ring |
| 592 | |
| 593 | /-- Put the already estimated mixed coefficient in its output radial degree. -/ |
| 594 | def regularInverseMixedJet (r : ℕ) (f g : ℕ → ℕ → ℝ) : ℕ → ℕ → ℝ |
| 595 | | 0, _ => 0 |
| 596 | | n + 1, m => inverseMixedJet r f g n m |
| 597 | |
| 598 | theorem regularInverseMixedJet_bound {ε F G : ℝ} |
| 599 | (hε : 0 < ε) (hF : 0 ≤ F) (hG : 0 ≤ G) {r : ℕ} (hr : 1 ≤ r) |
| 600 | (f g : ℕ → ℕ → ℝ) |
| 601 | (hf : ∀ n m, |f n m| ≤ F * weight ε n m) |
| 602 | (hg : ∀ n m, |g n m| ≤ G * weight ε n m) (n m : ℕ) : |
| 603 | |regularInverseMixedJet r f g n m| ≤ (5120 / ε) * F * G * weight ε n m := by |
| 604 | cases n with |
| 605 | | zero => |
| 606 | simpa only [regularInverseMixedJet, abs_zero] using |
| 607 | (mul_nonneg (mul_nonneg (mul_nonneg (show 0 ≤ 5120 / ε by positivity) hF) hG) |
| 608 | (weight_pos hε 0 m).le) |
| 609 | | succ n => exact inverseMixedJet_bound hε hF hG hr f g hf hg n m |
| 610 | |
| 611 | end |
| 612 | |
| 613 | end NavierStokes.AxisWeightEstimates |