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.AxisCoefficientSpace |
| 2 | import Mathlib.Analysis.Normed.Operator.Bilinear |
| 3 | import Mathlib.Analysis.Calculus.Deriv.Mul |
| 4 | import Mathlib.Analysis.Calculus.Deriv.Add |
| 5 | import Mathlib.Tactic.Ring |
| 6 | |
| 7 | /-! |
| 8 | # Actual bounded operators on the compatible natural-axis coefficient space |
| 9 | |
| 10 | The numerical bounds come from `AxisWeightEstimates`. This module additionally |
| 11 | proves compatibility of the output jets, so its operators act on actual smooth |
| 12 | coefficient functions in the complete space, not just unrelated arrays. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | namespace NavierStokes.AxisOperators |
| 18 | |
| 19 | open Finset Finset.Nat Set |
| 20 | open AxisWeightEstimates AxisCoefficientSpace |
| 21 | open scoped BigOperators Topology BoundedContinuousFunction |
| 22 | |
| 23 | private local instance (I : Window) (ε : ℝ) : NormedAddCommGroup (AxisSpace I ε) := inferInstance |
| 24 | private local instance (I : Window) (ε : ℝ) : NormedSpace ℝ (AxisSpace I ε) := inferInstance |
| 25 | |
| 26 | /-- The finite Leibniz sum for one parameter derivative order. -/ |
| 27 | def leibnizSum (f g : ℕ → ℝ) (m : ℕ) : ℝ := |
| 28 | ∑ kl ∈ antidiagonal m, (m.choose kl.1 : ℝ) * f kl.1 * g kl.2 |
| 29 | |
| 30 | theorem leibniz_boundary (f g : ℕ → ℝ) (m : ℕ) : |
| 31 | (∑ kl ∈ antidiagonal m, (m.choose kl.1 : ℝ) * f kl.1 * g (kl.2 + 1)) = |
| 32 | f 0 * g (m + 1) + |
| 33 | ∑ kl ∈ antidiagonal m, (m.choose (kl.1 + 1) : ℝ) * f (kl.1 + 1) * g kl.2 := by |
| 34 | cases m with |
| 35 | | zero => simp |
| 36 | | succ m => |
| 37 | conv_lhs => rw [sum_antidiagonal_succ] |
| 38 | conv_rhs => rhs; rw [sum_antidiagonal_succ'] |
| 39 | simp |
| 40 | |
| 41 | /-- Pascal's identity is exactly the derivative recurrence for the Leibniz sum. -/ |
| 42 | theorem leibnizSum_succ (f g : ℕ → ℝ) (m : ℕ) : |
| 43 | leibnizSum f g (m + 1) = |
| 44 | leibnizSum (fun k => f (k + 1)) g m + |
| 45 | leibnizSum f (fun l => g (l + 1)) m := by |
| 46 | unfold leibnizSum |
| 47 | rw [sum_antidiagonal_succ] |
| 48 | simp only [Nat.choose_zero_right, Nat.cast_one, one_mul, |
| 49 | Nat.choose_succ_succ', Nat.cast_add, add_mul, Finset.sum_add_distrib] |
| 50 | rw [leibniz_boundary] |
| 51 | ring |
| 52 | |
| 53 | theorem continuousOn_leibnizSum (I : Window) (f g : ℕ → ℝ → ℝ) |
| 54 | (hf : ∀ k, ContinuousOn (f k) I.interval) |
| 55 | (hg : ∀ k, ContinuousOn (g k) I.interval) (m : ℕ) : |
| 56 | ContinuousOn (fun x => leibnizSum (fun k => f k x) (fun k => g k x) m) I.interval := by |
| 57 | apply continuousOn_finsetSum |
| 58 | intro kl hkl |
| 59 | exact (continuousOn_const.mul (hf kl.1)).mul (hg kl.2) |
| 60 | |
| 61 | /-- Genuine first derivatives of the finite Leibniz sum reproduce the next jet. -/ |
| 62 | theorem hasDerivWithinAt_leibnizSum (I : Window) (f g : ℕ → ℝ → ℝ) |
| 63 | (hf : ∀ k x, x ∈ I.interval → HasDerivWithinAt (f k) (f (k + 1) x) I.interval x) |
| 64 | (hg : ∀ k x, x ∈ I.interval → HasDerivWithinAt (g k) (g (k + 1) x) I.interval x) |
| 65 | (m : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 66 | HasDerivWithinAt |
| 67 | (fun y => leibnizSum (fun k => f k y) (fun k => g k y) m) |
| 68 | (leibnizSum (fun k => f k x) (fun k => g k x) (m + 1)) I.interval x := by |
| 69 | have h := HasDerivWithinAt.fun_sum (u := antidiagonal m) (fun kl _ => |
| 70 | (((hf kl.1 x hx).const_mul (m.choose kl.1 : ℝ)).fun_mul (hg kl.2 x hx))) |
| 71 | convert! h using 1 |
| 72 | rw [leibnizSum_succ] |
| 73 | unfold leibnizSum |
| 74 | simp only [← Finset.sum_add_distrib] |
| 75 | |
| 76 | /-- Actual compatible input jets, with the indices in coefficient-first order. -/ |
| 77 | abbrev inputJet (I : Window) (ε : ℝ) (A : AxisSpace I ε) (n m : ℕ) : ℝ → ℝ := |
| 78 | jet I (weight ε) A.1 n m |
| 79 | |
| 80 | theorem inputJet_bound (I : Window) {ε : ℝ} (hε : 0 < ε) (A : AxisSpace I ε) |
| 81 | (n m : ℕ) (x : ℝ) : |
| 82 | |inputJet I ε A n m x| ≤ ‖A‖ * weight ε n m := by |
| 83 | simpa only [abs_of_pos (weight_pos hε n m), mul_comm] using |
| 84 | abs_jet_le I (weight ε) A n m x |
| 85 | |
| 86 | /-- Product jets are finite radial convolutions of the actual Leibniz sums. -/ |
| 87 | def productFamily (I : Window) (ε : ℝ) (A B : AxisSpace I ε) (n m : ℕ) (x : ℝ) : ℝ := |
| 88 | jetProduct (fun i k => inputJet I ε A i k x) (fun j l => inputJet I ε B j l x) n m |
| 89 | |
| 90 | theorem productFamily_eq (I : Window) (ε : ℝ) (A B : AxisSpace I ε) |
| 91 | (n m : ℕ) (x : ℝ) : |
| 92 | productFamily I ε A B n m x = |
| 93 | ∑ ij ∈ antidiagonal n, |
| 94 | leibnizSum (fun k => inputJet I ε A ij.1 k x) |
| 95 | (fun l => inputJet I ε B ij.2 l x) m := rfl |
| 96 | |
| 97 | theorem productFamily_continuous (I : Window) (ε : ℝ) (A B : AxisSpace I ε) (n m : ℕ) : |
| 98 | ContinuousOn (productFamily I ε A B n m) I.interval := by |
| 99 | change ContinuousOn (fun x => ∑ ij ∈ antidiagonal n, |
| 100 | leibnizSum (fun k => inputJet I ε A ij.1 k x) (fun l => inputJet I ε B ij.2 l x) m) I.interval |
| 101 | apply continuousOn_finsetSum |
| 102 | intro ij hij |
| 103 | exact continuousOn_leibnizSum I _ _ |
| 104 | (fun k => (continuous_jet I (weight ε) A.1 ij.1 k).continuousOn) |
| 105 | (fun l => (continuous_jet I (weight ε) B.1 ij.2 l).continuousOn) m |
| 106 | |
| 107 | theorem productFamily_deriv (I : Window) (ε : ℝ) (A B : AxisSpace I ε) |
| 108 | (n m : ℕ) (x : ℝ) (hx : x ∈ I.interval) : |
| 109 | HasDerivWithinAt (productFamily I ε A B n m) |
| 110 | (productFamily I ε A B n (m + 1) x) I.interval x := by |
| 111 | exact HasDerivWithinAt.fun_sum (u := antidiagonal n) (fun ij _ => |
| 112 | hasDerivWithinAt_leibnizSum I _ _ |
| 113 | (fun k y hy => hasDerivWithinAt_jet I (weight ε) A ij.1 k hy) |
| 114 | (fun l y hy => hasDerivWithinAt_jet I (weight ε) B ij.2 l hy) m hx) |
| 115 | |
| 116 | theorem productFamily_bound (I : Window) {ε : ℝ} (hε : 0 < ε) (A B : AxisSpace I ε) |
| 117 | (n m : ℕ) (x : ℝ) : |
| 118 | |productFamily I ε A B n m x| ≤ (64 * ‖A‖ * ‖B‖) * weight ε n m := |
| 119 | jetProduct_bound hε (norm_nonneg A) (norm_nonneg B) _ _ |
| 120 | (fun i k => inputJet_bound I hε A i k x) |
| 121 | (fun j l => inputJet_bound I hε B j l x) n m |
| 122 | |
| 123 | /-- Data for a genuine linear operation on compatible coefficient jets. -/ |
| 124 | structure BoundedLinearJetFamily (I : Window) (ε : ℝ) where |
| 125 | value : AxisSpace I ε → ℕ → ℕ → ℝ → ℝ |
| 126 | boundConstant : ℝ |
| 127 | bound_nonneg : 0 ≤ boundConstant |
| 128 | cont : ∀ A n m, ContinuousOn (value A n m) I.interval |
| 129 | deriv : ∀ A n m x, x ∈ I.interval → |
| 130 | HasDerivWithinAt (value A n m) (value A n (m + 1) x) I.interval x |
| 131 | add : ∀ A B n m x, value (A + B) n m x = value A n m x + value B n m x |
| 132 | smul : ∀ c A n m x, value (c • A) n m x = c * value A n m x |
| 133 | bound : ∀ A n m x, x ∈ I.interval → |
| 134 | |value A n m x| ≤ (boundConstant * ‖A‖) * weight ε n m |
| 135 | |
| 136 | def linearValue (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 137 | (F : BoundedLinearJetFamily I ε) (A : AxisSpace I ε) : AxisSpace I ε := |
| 138 | ofJetFamily I (weight ε) (weight_pos hε) (F.value A) (F.cont A) (F.deriv A) |
| 139 | (F.boundConstant * ‖A‖) (mul_nonneg F.bound_nonneg (norm_nonneg A)) (F.bound A) |
| 140 | |
| 141 | theorem jet_linearValue (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 142 | (F : BoundedLinearJetFamily I ε) (A : AxisSpace I ε) (n m : ℕ) |
| 143 | {x : ℝ} (hx : x ∈ I.interval) : |
| 144 | inputJet I ε (linearValue I hε F A) n m x = F.value A n m x := by |
| 145 | unfold linearValue inputJet |
| 146 | apply jet_ofJetFamily |
| 147 | exact hx |
| 148 | |
| 149 | theorem norm_linearValue_le (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 150 | (F : BoundedLinearJetFamily I ε) (A : AxisSpace I ε) : |
| 151 | ‖linearValue I hε F A‖ ≤ F.boundConstant * ‖A‖ := by |
| 152 | unfold linearValue |
| 153 | apply norm_ofJetFamily_le |
| 154 | |
| 155 | def linearValueMap (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 156 | (F : BoundedLinearJetFamily I ε) : AxisSpace I ε →ₗ[ℝ] AxisSpace I ε where |
| 157 | toFun := linearValue I hε F |
| 158 | map_add' := by |
| 159 | intro A B |
| 160 | apply coefficient_ext I (weight ε) (fun n m => (weight_pos hε n m).ne') |
| 161 | intro n x hx |
| 162 | change inputJet I ε (linearValue I hε F (A + B)) n 0 x = |
| 163 | inputJet I ε (linearValue I hε F A + linearValue I hε F B) n 0 x |
| 164 | simp only [inputJet, Submodule.coe_add, jet_add] |
| 165 | change inputJet I ε (linearValue I hε F (A + B)) n 0 x = |
| 166 | inputJet I ε (linearValue I hε F A) n 0 x + inputJet I ε (linearValue I hε F B) n 0 x |
| 167 | rw [jet_linearValue I hε F (A + B) n 0 hx, |
| 168 | jet_linearValue I hε F A n 0 hx, jet_linearValue I hε F B n 0 hx] |
| 169 | exact F.add A B n 0 x |
| 170 | map_smul' := by |
| 171 | intro c A |
| 172 | apply coefficient_ext I (weight ε) (fun n m => (weight_pos hε n m).ne') |
| 173 | intro n x hx |
| 174 | change inputJet I ε (linearValue I hε F (c • A)) n 0 x = |
| 175 | inputJet I ε (c • linearValue I hε F A) n 0 x |
| 176 | simp only [inputJet, Submodule.coe_smul, jet_smul] |
| 177 | change inputJet I ε (linearValue I hε F (c • A)) n 0 x = |
| 178 | c * inputJet I ε (linearValue I hε F A) n 0 x |
| 179 | rw [jet_linearValue I hε F (c • A) n 0 hx, jet_linearValue I hε F A n 0 hx] |
| 180 | exact F.smul c A n 0 x |
| 181 | |
| 182 | def linearLift (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 183 | (F : BoundedLinearJetFamily I ε) : AxisSpace I ε →L[ℝ] AxisSpace I ε := |
| 184 | (linearValueMap I hε F).mkContinuous F.boundConstant (norm_linearValue_le I hε F) |
| 185 | |
| 186 | theorem jet_linearLift (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 187 | (F : BoundedLinearJetFamily I ε) (A : AxisSpace I ε) (n m : ℕ) |
| 188 | {x : ℝ} (hx : x ∈ I.interval) : |
| 189 | inputJet I ε (linearLift I hε F A) n m x = F.value A n m x := |
| 190 | jet_linearValue I hε F A n m hx |
| 191 | |
| 192 | theorem norm_linearLift_le (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 193 | (F : BoundedLinearJetFamily I ε) : ‖linearLift I hε F‖ ≤ F.boundConstant := |
| 194 | LinearMap.mkContinuous_norm_le _ F.bound_nonneg _ |
| 195 | |
| 196 | /-- Data for a genuine bilinear operation, including its derivative compatibility. -/ |
| 197 | structure BoundedBilinearJetFamily (I : Window) (ε : ℝ) where |
| 198 | value : AxisSpace I ε → AxisSpace I ε → ℕ → ℕ → ℝ → ℝ |
| 199 | boundConstant : ℝ |
| 200 | bound_nonneg : 0 ≤ boundConstant |
| 201 | cont : ∀ A B n m, ContinuousOn (value A B n m) I.interval |
| 202 | deriv : ∀ A B n m x, x ∈ I.interval → |
| 203 | HasDerivWithinAt (value A B n m) (value A B n (m + 1) x) I.interval x |
| 204 | add_left : ∀ A B C n m x, value (A + B) C n m x = value A C n m x + value B C n m x |
| 205 | smul_left : ∀ c A B n m x, value (c • A) B n m x = c * value A B n m x |
| 206 | add_right : ∀ A B C n m x, value A (B + C) n m x = value A B n m x + value A C n m x |
| 207 | smul_right : ∀ c A B n m x, value A (c • B) n m x = c * value A B n m x |
| 208 | bound : ∀ A B n m x, x ∈ I.interval → |
| 209 | |value A B n m x| ≤ (boundConstant * ‖A‖ * ‖B‖) * weight ε n m |
| 210 | |
| 211 | def bilinearValue (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 212 | (F : BoundedBilinearJetFamily I ε) (A B : AxisSpace I ε) : AxisSpace I ε := |
| 213 | ofJetFamily I (weight ε) (weight_pos hε) (F.value A B) (F.cont A B) (F.deriv A B) |
| 214 | (F.boundConstant * ‖A‖ * ‖B‖) |
| 215 | (mul_nonneg (mul_nonneg F.bound_nonneg (norm_nonneg A)) (norm_nonneg B)) (F.bound A B) |
| 216 | |
| 217 | theorem jet_bilinearValue (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 218 | (F : BoundedBilinearJetFamily I ε) (A B : AxisSpace I ε) (n m : ℕ) |
| 219 | {x : ℝ} (hx : x ∈ I.interval) : |
| 220 | inputJet I ε (bilinearValue I hε F A B) n m x = F.value A B n m x := by |
| 221 | unfold bilinearValue inputJet |
| 222 | apply jet_ofJetFamily |
| 223 | exact hx |
| 224 | |
| 225 | theorem norm_bilinearValue_le (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 226 | (F : BoundedBilinearJetFamily I ε) (A B : AxisSpace I ε) : |
| 227 | ‖bilinearValue I hε F A B‖ ≤ F.boundConstant * ‖A‖ * ‖B‖ := by |
| 228 | unfold bilinearValue |
| 229 | apply norm_ofJetFamily_le |
| 230 | |
| 231 | def bilinearValueMap (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 232 | (F : BoundedBilinearJetFamily I ε) : AxisSpace I ε →ₗ[ℝ] AxisSpace I ε →ₗ[ℝ] AxisSpace I ε := |
| 233 | LinearMap.mk₂ ℝ (bilinearValue I hε F) |
| 234 | (by |
| 235 | intro A B C |
| 236 | apply coefficient_ext I (weight ε) (fun n m => (weight_pos hε n m).ne') |
| 237 | intro n x hx |
| 238 | simp only [coefficient, Submodule.coe_add, jet_add] |
| 239 | change inputJet I ε (bilinearValue I hε F (A + B) C) n 0 x = |
| 240 | inputJet I ε (bilinearValue I hε F A C) n 0 x + |
| 241 | inputJet I ε (bilinearValue I hε F B C) n 0 x |
| 242 | rw [jet_bilinearValue I hε F (A + B) C n 0 hx, |
| 243 | jet_bilinearValue I hε F A C n 0 hx, jet_bilinearValue I hε F B C n 0 hx] |
| 244 | exact F.add_left A B C n 0 x) |
| 245 | (by |
| 246 | intro c A B |
| 247 | apply coefficient_ext I (weight ε) (fun n m => (weight_pos hε n m).ne') |
| 248 | intro n x hx |
| 249 | simp only [coefficient, Submodule.coe_smul, jet_smul] |
| 250 | change inputJet I ε (bilinearValue I hε F (c • A) B) n 0 x = |
| 251 | c * inputJet I ε (bilinearValue I hε F A B) n 0 x |
| 252 | rw [jet_bilinearValue I hε F (c • A) B n 0 hx, jet_bilinearValue I hε F A B n 0 hx] |
| 253 | exact F.smul_left c A B n 0 x) |
| 254 | (by |
| 255 | intro A B C |
| 256 | apply coefficient_ext I (weight ε) (fun n m => (weight_pos hε n m).ne') |
| 257 | intro n x hx |
| 258 | simp only [coefficient, Submodule.coe_add, jet_add] |
| 259 | change inputJet I ε (bilinearValue I hε F A (B + C)) n 0 x = |
| 260 | inputJet I ε (bilinearValue I hε F A B) n 0 x + |
| 261 | inputJet I ε (bilinearValue I hε F A C) n 0 x |
| 262 | rw [jet_bilinearValue I hε F A (B + C) n 0 hx, |
| 263 | jet_bilinearValue I hε F A B n 0 hx, jet_bilinearValue I hε F A C n 0 hx] |
| 264 | exact F.add_right A B C n 0 x) |
| 265 | (by |
| 266 | intro c A B |
| 267 | apply coefficient_ext I (weight ε) (fun n m => (weight_pos hε n m).ne') |
| 268 | intro n x hx |
| 269 | simp only [coefficient, Submodule.coe_smul, jet_smul] |
| 270 | change inputJet I ε (bilinearValue I hε F A (c • B)) n 0 x = |
| 271 | c * inputJet I ε (bilinearValue I hε F A B) n 0 x |
| 272 | rw [jet_bilinearValue I hε F A (c • B) n 0 hx, jet_bilinearValue I hε F A B n 0 hx] |
| 273 | exact F.smul_right c A B n 0 x) |
| 274 | |
| 275 | def bilinearLift (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 276 | (F : BoundedBilinearJetFamily I ε) : |
| 277 | AxisSpace I ε →L[ℝ] AxisSpace I ε →L[ℝ] AxisSpace I ε := |
| 278 | (bilinearValueMap I hε F).mkContinuous₂ F.boundConstant (norm_bilinearValue_le I hε F) |
| 279 | |
| 280 | theorem jet_bilinearLift (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 281 | (F : BoundedBilinearJetFamily I ε) (A B : AxisSpace I ε) (n m : ℕ) |
| 282 | {x : ℝ} (hx : x ∈ I.interval) : |
| 283 | inputJet I ε (bilinearLift I hε F A B) n m x = F.value A B n m x := |
| 284 | jet_bilinearValue I hε F A B n m hx |
| 285 | |
| 286 | theorem norm_bilinearLift_le (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 287 | (F : BoundedBilinearJetFamily I ε) : ‖bilinearLift I hε F‖ ≤ F.boundConstant := |
| 288 | LinearMap.mkContinuous₂_norm_le _ F.bound_nonneg _ |
| 289 | |
| 290 | def productData (I : Window) {ε : ℝ} (hε : 0 < ε) : BoundedBilinearJetFamily I ε where |
| 291 | value := productFamily I ε |
| 292 | boundConstant := 64 |
| 293 | bound_nonneg := by norm_num |
| 294 | cont := productFamily_continuous I ε |
| 295 | deriv := productFamily_deriv I ε |
| 296 | add_left := by |
| 297 | intro A B C n m x |
| 298 | simp only [productFamily, jetProduct, inputJet, Submodule.coe_add, jet_add, |
| 299 | add_mul, mul_add, Finset.sum_add_distrib] |
| 300 | smul_left := by |
| 301 | intro c A B n m x |
| 302 | simp only [productFamily, jetProduct, inputJet, Submodule.coe_smul, jet_smul, |
| 303 | Finset.mul_sum] |
| 304 | apply Finset.sum_congr rfl |
| 305 | intro ij hij |
| 306 | apply Finset.sum_congr rfl |
| 307 | intro kl hkl |
| 308 | ring |
| 309 | add_right := by |
| 310 | intro A B C n m x |
| 311 | simp only [productFamily, jetProduct, inputJet, Submodule.coe_add, jet_add, mul_add, Finset.sum_add_distrib] |
| 312 | smul_right := by |
| 313 | intro c A B n m x |
| 314 | simp only [productFamily, jetProduct, inputJet, Submodule.coe_smul, jet_smul, |
| 315 | Finset.mul_sum] |
| 316 | apply Finset.sum_congr rfl |
| 317 | intro ij hij |
| 318 | apply Finset.sum_congr rfl |
| 319 | intro kl hkl |
| 320 | ring |
| 321 | bound := by |
| 322 | intro A B n m x hx |
| 323 | exact productFamily_bound I hε A B n m x |
| 324 | |
| 325 | /-- Actual continuous bilinear multiplication of coefficient functions. -/ |
| 326 | def product (I : Window) {ε : ℝ} (hε : 0 < ε) : |
| 327 | AxisSpace I ε →L[ℝ] AxisSpace I ε →L[ℝ] AxisSpace I ε := |
| 328 | bilinearLift I hε (productData I hε) |
| 329 | |
| 330 | theorem norm_product_le (I : Window) {ε : ℝ} (hε : 0 < ε) : ‖product I hε‖ ≤ 64 := |
| 331 | norm_bilinearLift_le I hε (productData I hε) |
| 332 | |
| 333 | theorem jet_product (I : Window) {ε : ℝ} (hε : 0 < ε) (A B : AxisSpace I ε) |
| 334 | (n m : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 335 | inputJet I ε (product I hε A B) n m x = |
| 336 | jetProduct (fun i k => inputJet I ε A i k x) (fun j l => inputJet I ε B j l x) n m := |
| 337 | jet_bilinearLift I hε (productData I hε) A B n m hx |
| 338 | |
| 339 | theorem coefficient_product (I : Window) {ε : ℝ} (hε : 0 < ε) (A B : AxisSpace I ε) |
| 340 | (n : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 341 | coefficient I (weight ε) (product I hε A B) n x = |
| 342 | ∑ ij ∈ antidiagonal n, |
| 343 | coefficient I (weight ε) A ij.1 x * coefficient I (weight ε) B ij.2 x := by |
| 344 | simpa only [jetProduct, antidiagonal_zero, Finset.sum_singleton, Prod.fst, Prod.snd, |
| 345 | Nat.choose_zero_right, Nat.cast_one, one_mul, coefficient] using jet_product I hε A B n 0 hx |
| 346 | |
| 347 | /-- A scalar multiple of a shifted coefficient/derivative row. This generic |
| 348 | construction is instantiated below with explicit verified weight bounds. -/ |
| 349 | def rowData (I : Window) {ε : ℝ} (hε : 0 < ε) (c : ℕ → ℝ) (source : ℕ → ℕ) |
| 350 | (offset : ℕ) (K : ℝ) (hK : 0 ≤ K) |
| 351 | (hweight : ∀ n m, |c n| * weight ε (source n) (offset + m) ≤ K * weight ε n m) : |
| 352 | BoundedLinearJetFamily I ε where |
| 353 | value := fun A n m x => c n * inputJet I ε A (source n) (offset + m) x |
| 354 | boundConstant := K |
| 355 | bound_nonneg := hK |
| 356 | cont := by |
| 357 | intro A n m |
| 358 | exact continuousOn_const.mul (continuous_jet I (weight ε) A.1 (source n) (offset + m)).continuousOn |
| 359 | deriv := by |
| 360 | intro A n m x hx |
| 361 | simpa only [Nat.add_assoc] using |
| 362 | (hasDerivWithinAt_jet I (weight ε) A (source n) (offset + m) hx).const_mul (c n) |
| 363 | add := by |
| 364 | intro A B n m x |
| 365 | simp only [inputJet, Submodule.coe_add, jet_add, mul_add] |
| 366 | smul := by |
| 367 | intro a A n m x |
| 368 | simp only [inputJet, Submodule.coe_smul, jet_smul] |
| 369 | ring |
| 370 | bound := by |
| 371 | intro A n m x hx |
| 372 | rw [abs_mul] |
| 373 | calc |
| 374 | _ ≤ |c n| * (‖A‖ * weight ε (source n) (offset + m)) := |
| 375 | mul_le_mul_of_nonneg_left (inputJet_bound I hε A _ _ x) (abs_nonneg _) |
| 376 | _ = ‖A‖ * (|c n| * weight ε (source n) (offset + m)) := by ring |
| 377 | _ ≤ ‖A‖ * (K * weight ε n m) := mul_le_mul_of_nonneg_left (hweight n m) (norm_nonneg A) |
| 378 | _ = _ := by ring |
| 379 | |
| 380 | def primitiveScale : ℕ → ℝ |
| 381 | | 0 => 0 |
| 382 | | n + 1 => 1 / ((n : ℝ) + 1) |
| 383 | |
| 384 | def inverseScale (r : ℕ) : ℕ → ℝ |
| 385 | | 0 => 0 |
| 386 | | n + 1 => 1 / radialDivisor r n |
| 387 | |
| 388 | def multiplyYScale : ℕ → ℝ |
| 389 | | 0 => 0 |
| 390 | | _ + 1 => 1 |
| 391 | |
| 392 | theorem average_row_bound {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 393 | |1 / ((n : ℝ) + 1)| * weight ε n (0 + m) ≤ 1 * weight ε n m := by |
| 394 | rw [Nat.zero_add, one_mul, abs_of_pos (by positivity : 0 < 1 / ((n : ℝ) + 1))] |
| 395 | have hden : (1 : ℝ) ≤ n + 1 := by |
| 396 | have hn : (0 : ℝ) ≤ n := by positivity |
| 397 | linarith |
| 398 | simpa only [one_div, div_eq_mul_inv, one_mul, mul_comm] using div_le_self (weight_pos hε n m).le hden |
| 399 | |
| 400 | theorem primitive_row_bound {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 401 | |primitiveScale n| * weight ε n.pred (0 + m) ≤ 80 * weight ε n m := by |
| 402 | cases n with |
| 403 | | zero => |
| 404 | simp only [primitiveScale, abs_zero, zero_mul] |
| 405 | exact mul_nonneg (by norm_num) (weight_pos hε 0 m).le |
| 406 | | succ n => |
| 407 | simp only [primitiveScale, Nat.pred_succ, Nat.zero_add] |
| 408 | simpa only [Nat.zero_add, one_mul] using |
| 409 | (average_row_bound hε n m).trans (by simpa only [one_mul] using weight_radial_shift hε n m) |
| 410 | |
| 411 | theorem inverse_row_bound {ε : ℝ} (hε : 0 < ε) {r : ℕ} (hr : 1 ≤ r) (n m : ℕ) : |
| 412 | |inverseScale r n| * weight ε n.pred (0 + m) ≤ 80 * weight ε n m := by |
| 413 | cases n with |
| 414 | | zero => |
| 415 | simp only [inverseScale, abs_zero, zero_mul] |
| 416 | exact mul_nonneg (by norm_num) (weight_pos hε 0 m).le |
| 417 | | succ n => |
| 418 | rw [inverseScale, Nat.pred_succ, Nat.zero_add, |
| 419 | abs_of_pos (one_div_pos.mpr (radialDivisor_pos hr n))] |
| 420 | have hdiv := div_le_self (weight_pos hε n m).le (radialDivisor_ge_one hr n) |
| 421 | have hsmall : (1 / radialDivisor r n) * weight ε n m ≤ weight ε n m := by |
| 422 | simpa only [one_div, div_eq_mul_inv, one_mul, mul_comm] using hdiv |
| 423 | exact hsmall.trans (weight_radial_shift hε n m) |
| 424 | |
| 425 | theorem parameter_primitive_row_bound {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 426 | |primitiveScale n| * weight ε n.pred (1 + m) ≤ (80 / ε) * weight ε n m := by |
| 427 | cases n with |
| 428 | | zero => |
| 429 | simp only [primitiveScale, abs_zero, zero_mul] |
| 430 | exact mul_nonneg (by positivity) (weight_pos hε 0 m).le |
| 431 | | succ n => |
| 432 | rw [primitiveScale, Nat.pred_succ, abs_of_pos (by positivity : 0 < 1 / ((n : ℝ) + 1))] |
| 433 | have hdiv : weight ε n (m + 1) / ((n : ℝ) + 1) ≤ (80 / ε) * weight ε (n + 1) m := by |
| 434 | apply (div_le_iff₀ (by positivity : 0 < (n : ℝ) + 1)).2 |
| 435 | convert! weight_parameter_radial_shift hε n m using 1 ; ring |
| 436 | simpa only [Nat.add_comm 1 m, one_div, div_eq_mul_inv, one_mul, mul_comm] using hdiv |
| 437 | |
| 438 | theorem multiplyY_row_bound {ε : ℝ} (hε : 0 < ε) (n m : ℕ) : |
| 439 | |multiplyYScale n| * weight ε n.pred (0 + m) ≤ 80 * weight ε n m := by |
| 440 | cases n with |
| 441 | | zero => |
| 442 | simp only [multiplyYScale, abs_zero, zero_mul] |
| 443 | exact mul_nonneg (by norm_num) (weight_pos hε 0 m).le |
| 444 | | succ n => |
| 445 | simpa only [multiplyYScale, abs_one, one_mul, Nat.pred_succ, Nat.zero_add] using |
| 446 | weight_radial_shift hε n m |
| 447 | |
| 448 | def averageData (I : Window) {ε : ℝ} (hε : 0 < ε) : BoundedLinearJetFamily I ε := |
| 449 | rowData I hε (fun n => 1 / ((n : ℝ) + 1)) id 0 1 (by norm_num) (average_row_bound hε) |
| 450 | |
| 451 | def primitiveData (I : Window) {ε : ℝ} (hε : 0 < ε) : BoundedLinearJetFamily I ε := |
| 452 | rowData I hε primitiveScale Nat.pred 0 80 (by norm_num) (primitive_row_bound hε) |
| 453 | |
| 454 | def inverseData (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) : |
| 455 | BoundedLinearJetFamily I ε := |
| 456 | rowData I hε (inverseScale r) Nat.pred 0 80 (by norm_num) (inverse_row_bound hε hr) |
| 457 | |
| 458 | def parameterPrimitiveData (I : Window) {ε : ℝ} (hε : 0 < ε) : BoundedLinearJetFamily I ε := |
| 459 | rowData I hε primitiveScale Nat.pred 1 (80 / ε) (by positivity) (parameter_primitive_row_bound hε) |
| 460 | |
| 461 | def multiplyYData (I : Window) {ε : ℝ} (hε : 0 < ε) : BoundedLinearJetFamily I ε := |
| 462 | rowData I hε multiplyYScale Nat.pred 0 80 (by norm_num) (multiplyY_row_bound hε) |
| 463 | |
| 464 | def average (I : Window) {ε : ℝ} (hε : 0 < ε) : AxisSpace I ε →L[ℝ] AxisSpace I ε := |
| 465 | linearLift I hε (averageData I hε) |
| 466 | |
| 467 | def primitive (I : Window) {ε : ℝ} (hε : 0 < ε) : AxisSpace I ε →L[ℝ] AxisSpace I ε := |
| 468 | linearLift I hε (primitiveData I hε) |
| 469 | |
| 470 | def regularInverse (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) : |
| 471 | AxisSpace I ε →L[ℝ] AxisSpace I ε := linearLift I hε (inverseData I hε r hr) |
| 472 | |
| 473 | def parameterPrimitive (I : Window) {ε : ℝ} (hε : 0 < ε) : AxisSpace I ε →L[ℝ] AxisSpace I ε := |
| 474 | linearLift I hε (parameterPrimitiveData I hε) |
| 475 | |
| 476 | def mulY (I : Window) {ε : ℝ} (hε : 0 < ε) : AxisSpace I ε →L[ℝ] AxisSpace I ε := |
| 477 | linearLift I hε (multiplyYData I hε) |
| 478 | |
| 479 | theorem norm_average_le (I : Window) {ε : ℝ} (hε : 0 < ε) : ‖average I hε‖ ≤ 1 := |
| 480 | norm_linearLift_le I hε (averageData I hε) |
| 481 | |
| 482 | theorem norm_primitive_le (I : Window) {ε : ℝ} (hε : 0 < ε) : ‖primitive I hε‖ ≤ 80 := |
| 483 | norm_linearLift_le I hε (primitiveData I hε) |
| 484 | |
| 485 | theorem norm_regularInverse_le (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) : |
| 486 | ‖regularInverse I hε r hr‖ ≤ 80 := norm_linearLift_le I hε (inverseData I hε r hr) |
| 487 | |
| 488 | theorem norm_parameterPrimitive_le (I : Window) {ε : ℝ} (hε : 0 < ε) : |
| 489 | ‖parameterPrimitive I hε‖ ≤ 80 / ε := norm_linearLift_le I hε (parameterPrimitiveData I hε) |
| 490 | |
| 491 | theorem norm_mulY_le (I : Window) {ε : ℝ} (hε : 0 < ε) : ‖mulY I hε‖ ≤ 80 := |
| 492 | norm_linearLift_le I hε (multiplyYData I hε) |
| 493 | |
| 494 | theorem jet_regularInverse_zero (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 495 | (A : AxisSpace I ε) (m : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 496 | inputJet I ε (regularInverse I hε r hr A) 0 m x = 0 := by |
| 497 | change inputJet I ε (linearLift I hε (inverseData I hε r hr) A) 0 m x = 0 |
| 498 | rw [jet_linearLift I hε (inverseData I hε r hr) A 0 m hx] |
| 499 | exact zero_mul _ |
| 500 | |
| 501 | theorem jet_regularInverse_succ (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 502 | (A : AxisSpace I ε) (n m : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 503 | inputJet I ε (regularInverse I hε r hr A) (n + 1) m x = |
| 504 | inputJet I ε A n m x / radialDivisor r n := by |
| 505 | change inputJet I ε (linearLift I hε (inverseData I hε r hr) A) (n + 1) m x = _ |
| 506 | rw [jet_linearLift I hε (inverseData I hε r hr) A (n + 1) m hx] |
| 507 | simp only [inverseData, rowData, inverseScale, Nat.pred_succ, Nat.zero_add] |
| 508 | ring |
| 509 | |
| 510 | /-- A radial inverse applied to a finite product with a fixed parameter shift |
| 511 | on the first factor and radial multiplier `d` on the second. -/ |
| 512 | def differentialFamily (I : Window) (ε : ℝ) (r p : ℕ) (d : ℕ → ℝ) |
| 513 | (A B : AxisSpace I ε) : ℕ → ℕ → ℝ → ℝ |
| 514 | | 0, _, _ => 0 |
| 515 | | n + 1, m, x => |
| 516 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 517 | ((d ij.2 / radialDivisor r n) * (m.choose kl.1 : ℝ)) * |
| 518 | inputJet I ε A ij.1 (p + kl.1) x * inputJet I ε B ij.2 kl.2 x |
| 519 | |
| 520 | theorem differentialFamily_succ_eq (I : Window) (ε : ℝ) (r p : ℕ) (d : ℕ → ℝ) |
| 521 | (A B : AxisSpace I ε) (n m : ℕ) (x : ℝ) : |
| 522 | differentialFamily I ε r p d A B (n + 1) m x = |
| 523 | ∑ ij ∈ antidiagonal n, (d ij.2 / radialDivisor r n) * |
| 524 | leibnizSum (fun k => inputJet I ε A ij.1 (p + k) x) |
| 525 | (fun l => inputJet I ε B ij.2 l x) m := by |
| 526 | simp only [differentialFamily, leibnizSum, Finset.mul_sum, mul_assoc] |
| 527 | |
| 528 | theorem differentialFamily_continuous (I : Window) (ε : ℝ) (r p : ℕ) (d : ℕ → ℝ) |
| 529 | (A B : AxisSpace I ε) (n m : ℕ) : |
| 530 | ContinuousOn (differentialFamily I ε r p d A B n m) I.interval := by |
| 531 | cases n with |
| 532 | | zero => exact continuousOn_const |
| 533 | | succ n => |
| 534 | simp_rw [show differentialFamily I ε r p d A B (n + 1) m = _ from |
| 535 | funext (differentialFamily_succ_eq I ε r p d A B n m)] |
| 536 | apply continuousOn_finsetSum |
| 537 | intro ij hij |
| 538 | apply continuousOn_const.mul |
| 539 | exact continuousOn_leibnizSum I _ _ |
| 540 | (fun k => (continuous_jet I (weight ε) A.1 ij.1 (p + k)).continuousOn) |
| 541 | (fun l => (continuous_jet I (weight ε) B.1 ij.2 l).continuousOn) m |
| 542 | |
| 543 | theorem differentialFamily_deriv (I : Window) (ε : ℝ) (r p : ℕ) (d : ℕ → ℝ) |
| 544 | (A B : AxisSpace I ε) (n m : ℕ) (x : ℝ) (hx : x ∈ I.interval) : |
| 545 | HasDerivWithinAt (differentialFamily I ε r p d A B n m) |
| 546 | (differentialFamily I ε r p d A B n (m + 1) x) I.interval x := by |
| 547 | cases n with |
| 548 | | zero => exact hasDerivWithinAt_const x I.interval 0 |
| 549 | | succ n => |
| 550 | have h := HasDerivWithinAt.fun_sum (u := antidiagonal n) (fun ij _ => |
| 551 | (hasDerivWithinAt_leibnizSum I _ _ |
| 552 | (fun k y hy => by |
| 553 | simpa only [Nat.add_assoc] using |
| 554 | hasDerivWithinAt_jet I (weight ε) A ij.1 (p + k) hy) |
| 555 | (fun l y hy => hasDerivWithinAt_jet I (weight ε) B ij.2 l hy) m hx).const_mul |
| 556 | (d ij.2 / radialDivisor r n)) |
| 557 | convert! h using 1 |
| 558 | · funext y |
| 559 | exact differentialFamily_succ_eq I ε r p d A B n m y |
| 560 | · exact differentialFamily_succ_eq I ε r p d A B n (m + 1) x |
| 561 | |
| 562 | theorem shifted_kernel_weight_le (D d a b C w w' v : ℝ) |
| 563 | (hD : 0 < D) (hd : 0 ≤ d) (ha : 0 ≤ a) (_hb : 0 ≤ b) (hC : 0 ≤ C) |
| 564 | (hw' : 0 ≤ w') (hv : 0 ≤ v) (hshift : w ≤ C * b * w') (hfactor : b * d ≤ D) : |
| 565 | ((d / D) * a) * w * v ≤ C * (a * w' * v) := by |
| 566 | have hratio : b * d / D ≤ 1 := (div_le_iff₀ hD).2 (by simpa using hfactor) |
| 567 | have hcoef : 0 ≤ (d / D) * a := mul_nonneg (div_nonneg hd hD.le) ha |
| 568 | calc |
| 569 | _ ≤ ((d / D) * a) * (C * b * w') * v := |
| 570 | mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_left hshift hcoef) hv |
| 571 | _ = (C * (a * w' * v)) * (b * d / D) := by ring |
| 572 | _ ≤ (C * (a * w' * v)) * 1 := |
| 573 | mul_le_mul_of_nonneg_left hratio (mul_nonneg hC (mul_nonneg (mul_nonneg ha hw') hv)) |
| 574 | _ = _ := mul_one _ |
| 575 | |
| 576 | /-- The mixed estimate is proved with the derivative shift and the radial |
| 577 | inverse together; the separate derivative need not be bounded. -/ |
| 578 | theorem differentialFamily_bound (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 579 | (r p : ℕ) (hr : 1 ≤ r) (d b : ℕ → ℝ) (C : ℝ) |
| 580 | (hd : ∀ j, 0 ≤ d j) (hb : ∀ i, 0 ≤ b i) (hC : 0 ≤ C) |
| 581 | (hshift : ∀ i k, weight ε i (p + k) ≤ C * b i * weight ε (i + 1) k) |
| 582 | (hfactor : ∀ n i j, i + j = n → b i * d j ≤ radialDivisor r n) |
| 583 | (A B : AxisSpace I ε) (n m : ℕ) (x : ℝ) : |
| 584 | |differentialFamily I ε r p d A B n m x| ≤ |
| 585 | ((64 * C) * ‖A‖ * ‖B‖) * weight ε n m := by |
| 586 | cases n with |
| 587 | | zero => |
| 588 | simp only [differentialFamily, abs_zero] |
| 589 | exact mul_nonneg (mul_nonneg (mul_nonneg (mul_nonneg (by norm_num) hC) |
| 590 | (norm_nonneg A)) (norm_nonneg B)) (weight_pos hε 0 m).le |
| 591 | | succ n => |
| 592 | have hD := radialDivisor_pos hr n |
| 593 | have hsum : |differentialFamily I ε r p d A B (n + 1) m x| ≤ |
| 594 | ∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 595 | (‖A‖ * ‖B‖) * (C * ((m.choose kl.1 : ℝ) * |
| 596 | weight ε (ij.1 + 1) kl.1 * weight ε ij.2 kl.2)) := by |
| 597 | apply abs_double_sum_le |
| 598 | intro ij hij kl hkl |
| 599 | have hcoef : 0 ≤ (d ij.2 / radialDivisor r n) * (m.choose kl.1 : ℝ) := |
| 600 | mul_nonneg (div_nonneg (hd _) hD.le) (Nat.cast_nonneg _) |
| 601 | have habs := abs_bilinear_term_le _ _ _ _ _ ‖A‖ ‖B‖ hcoef (norm_nonneg A) (norm_nonneg B) |
| 602 | (weight_pos hε _ _).le (weight_pos hε _ _).le |
| 603 | (inputJet_bound I hε A ij.1 (p + kl.1) x) (inputJet_bound I hε B ij.2 kl.2 x) |
| 604 | have hw := shifted_kernel_weight_le (radialDivisor r n) (d ij.2) |
| 605 | (m.choose kl.1 : ℝ) (b ij.1) C (weight ε ij.1 (p + kl.1)) |
| 606 | (weight ε (ij.1 + 1) kl.1) (weight ε ij.2 kl.2) hD (hd ij.2) (Nat.cast_nonneg _) |
| 607 | (hb ij.1) hC (weight_pos hε (ij.1 + 1) kl.1).le (weight_pos hε ij.2 kl.2).le |
| 608 | (hshift ij.1 kl.1) (hfactor n ij.1 ij.2 (mem_antidiagonal.mp hij)) |
| 609 | exact habs.trans (mul_le_mul_of_nonneg_left hw (mul_nonneg (norm_nonneg A) (norm_nonneg B))) |
| 610 | have heq : |
| 611 | (∑ ij ∈ antidiagonal n, ∑ kl ∈ antidiagonal m, |
| 612 | (‖A‖ * ‖B‖) * (C * ((m.choose kl.1 : ℝ) * |
| 613 | weight ε (ij.1 + 1) kl.1 * weight ε ij.2 kl.2))) = |
| 614 | ((‖A‖ * ‖B‖) * C) * shiftedProductWeightSum ε n m := by |
| 615 | simp only [shiftedProductWeightSum, Finset.mul_sum, mul_assoc] |
| 616 | rw [heq] at hsum |
| 617 | calc |
| 618 | _ ≤ ((‖A‖ * ‖B‖) * C) * shiftedProductWeightSum ε n m := hsum |
| 619 | _ ≤ ((‖A‖ * ‖B‖) * C) * (64 * weight ε (n + 1) m) := |
| 620 | mul_le_mul_of_nonneg_left (shiftedProductWeightSum_le hε n m) |
| 621 | (mul_nonneg (mul_nonneg (norm_nonneg A) (norm_nonneg B)) hC) |
| 622 | _ = _ := by ring |
| 623 | |
| 624 | def differentialData (I : Window) {ε : ℝ} (hε : 0 < ε) |
| 625 | (r p : ℕ) (hr : 1 ≤ r) (d b : ℕ → ℝ) (C : ℝ) |
| 626 | (hd : ∀ j, 0 ≤ d j) (hb : ∀ i, 0 ≤ b i) (hC : 0 ≤ C) |
| 627 | (hshift : ∀ i k, weight ε i (p + k) ≤ C * b i * weight ε (i + 1) k) |
| 628 | (hfactor : ∀ n i j, i + j = n → b i * d j ≤ radialDivisor r n) : |
| 629 | BoundedBilinearJetFamily I ε where |
| 630 | value := differentialFamily I ε r p d |
| 631 | boundConstant := 64 * C |
| 632 | bound_nonneg := mul_nonneg (by norm_num) hC |
| 633 | cont := differentialFamily_continuous I ε r p d |
| 634 | deriv := differentialFamily_deriv I ε r p d |
| 635 | add_left := by |
| 636 | intro A B E n m x |
| 637 | cases n <;> simp only [differentialFamily, inputJet, Submodule.coe_add, jet_add, |
| 638 | add_mul, mul_add, Finset.sum_add_distrib, zero_add] |
| 639 | smul_left := by |
| 640 | intro c A B n m x |
| 641 | cases n with |
| 642 | | zero => simp [differentialFamily] |
| 643 | | succ n => |
| 644 | simp only [differentialFamily, inputJet, Submodule.coe_smul, jet_smul, Finset.mul_sum] |
| 645 | apply Finset.sum_congr rfl |
| 646 | intro ij hij |
| 647 | apply Finset.sum_congr rfl |
| 648 | intro kl hkl |
| 649 | ring |
| 650 | add_right := by |
| 651 | intro A B E n m x |
| 652 | cases n <;> simp only [differentialFamily, inputJet, Submodule.coe_add, jet_add, mul_add, Finset.sum_add_distrib, zero_add] |
| 653 | smul_right := by |
| 654 | intro c A B n m x |
| 655 | cases n with |
| 656 | | zero => simp [differentialFamily] |
| 657 | | succ n => |
| 658 | simp only [differentialFamily, inputJet, Submodule.coe_smul, jet_smul, Finset.mul_sum] |
| 659 | apply Finset.sum_congr rfl |
| 660 | intro ij hij |
| 661 | apply Finset.sum_congr rfl |
| 662 | intro kl hkl |
| 663 | ring |
| 664 | bound := fun A B n m x _ => differentialFamily_bound I hε r p hr d b C hd hb hC hshift hfactor A B n m x |
| 665 | |
| 666 | theorem radial_index_le_divisor {r : ℕ} (hr : 1 ≤ r) (n : ℕ) : |
| 667 | (n : ℝ) + 1 ≤ radialDivisor r n := by |
| 668 | have hn : (0 : ℝ) ≤ n := by positivity |
| 669 | have hr' : (1 : ℝ) ≤ r := by exact_mod_cast hr |
| 670 | have h : (1 : ℝ) ≤ n + r := by linarith |
| 671 | simpa only [mul_one, radialDivisor] using |
| 672 | mul_le_mul_of_nonneg_left h (show 0 ≤ (n : ℝ) + 1 by positivity) |
| 673 | |
| 674 | def inverseMixedData (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) : |
| 675 | BoundedBilinearJetFamily I ε := |
| 676 | differentialData I hε r 1 hr (fun j => (j : ℝ)) (fun i => (i : ℝ) + 1) (80 / ε) |
| 677 | (fun j => Nat.cast_nonneg j) (fun i => by positivity) (by positivity) |
| 678 | (fun i k => by simpa only [Nat.add_comm 1 k] using weight_parameter_radial_shift hε i k) |
| 679 | (fun n i j hij => mixed_factors_le_divisor hr hij) |
| 680 | |
| 681 | def inverseParamProductData (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) : |
| 682 | BoundedBilinearJetFamily I ε := |
| 683 | differentialData I hε r 1 hr (fun _ => 1) (fun i => (i : ℝ) + 1) (80 / ε) |
| 684 | (fun _ => by norm_num) (fun i => by positivity) (by positivity) |
| 685 | (fun i k => by simpa only [Nat.add_comm 1 k] using weight_parameter_radial_shift hε i k) |
| 686 | (by |
| 687 | intro n i j hij |
| 688 | have hi : (i : ℝ) + 1 ≤ (n : ℝ) + 1 := by |
| 689 | exact_mod_cast Nat.succ_le_succ (show i ≤ n by omega) |
| 690 | simpa only [mul_one] using hi.trans (radial_index_le_divisor hr n)) |
| 691 | |
| 692 | def inverseDotProductData (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) : |
| 693 | BoundedBilinearJetFamily I ε := |
| 694 | differentialData I hε r 0 hr (fun j => (j : ℝ)) (fun _ => 1) 80 |
| 695 | (fun j => Nat.cast_nonneg j) (fun _ => by norm_num) (by norm_num) |
| 696 | (fun i k => by simpa only [Nat.zero_add, mul_one] using weight_radial_shift hε i k) |
| 697 | (by |
| 698 | intro n i j hij |
| 699 | have hj : (j : ℝ) ≤ (n : ℝ) + 1 := by |
| 700 | exact_mod_cast (show j ≤ n + 1 by omega) |
| 701 | simpa only [one_mul] using hj.trans (radial_index_le_divisor hr n)) |
| 702 | |
| 703 | /-- `J_r ((∂η f) D_Y g)`, formed and estimated without either unbounded |
| 704 | derivative as a standalone operator on the coefficient space. -/ |
| 705 | def inverseMixed (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) : |
| 706 | AxisSpace I ε →L[ℝ] AxisSpace I ε →L[ℝ] AxisSpace I ε := |
| 707 | bilinearLift I hε (inverseMixedData I hε r hr) |
| 708 | |
| 709 | /-- `J_r ((∂η f) g)` with the parameter derivative on the first argument. -/ |
| 710 | def inverseParamProduct (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) : |
| 711 | AxisSpace I ε →L[ℝ] AxisSpace I ε →L[ℝ] AxisSpace I ε := |
| 712 | bilinearLift I hε (inverseParamProductData I hε r hr) |
| 713 | |
| 714 | /-- `J_r (f D_Y g)` with the radial dot on the second argument. -/ |
| 715 | def inverseDotProduct (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) : |
| 716 | AxisSpace I ε →L[ℝ] AxisSpace I ε →L[ℝ] AxisSpace I ε := |
| 717 | bilinearLift I hε (inverseDotProductData I hε r hr) |
| 718 | |
| 719 | theorem norm_inverseMixed_le (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) : |
| 720 | ‖inverseMixed I hε r hr‖ ≤ 5120 / ε := by |
| 721 | have h := norm_bilinearLift_le I hε (inverseMixedData I hε r hr) |
| 722 | change ‖inverseMixed I hε r hr‖ ≤ 64 * (80 / ε) at h |
| 723 | convert! h using 1 ; ring |
| 724 | |
| 725 | theorem norm_inverseParamProduct_le (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) : |
| 726 | ‖inverseParamProduct I hε r hr‖ ≤ 5120 / ε := by |
| 727 | have h := norm_bilinearLift_le I hε (inverseParamProductData I hε r hr) |
| 728 | change ‖inverseParamProduct I hε r hr‖ ≤ 64 * (80 / ε) at h |
| 729 | convert! h using 1 ; ring |
| 730 | |
| 731 | theorem norm_inverseDotProduct_le (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) : |
| 732 | ‖inverseDotProduct I hε r hr‖ ≤ 5120 := by |
| 733 | have h := norm_bilinearLift_le I hε (inverseDotProductData I hε r hr) |
| 734 | change ‖inverseDotProduct I hε r hr‖ ≤ 64 * 80 at h |
| 735 | norm_num at h ⊢ |
| 736 | exact h |
| 737 | |
| 738 | theorem jet_inverseMixed (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 739 | (A B : AxisSpace I ε) (n m : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 740 | inputJet I ε (inverseMixed I hε r hr A B) n m x = |
| 741 | differentialFamily I ε r 1 (fun j => (j : ℝ)) A B n m x := |
| 742 | jet_bilinearLift I hε (inverseMixedData I hε r hr) A B n m hx |
| 743 | |
| 744 | theorem jet_inverseParamProduct (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 745 | (A B : AxisSpace I ε) (n m : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 746 | inputJet I ε (inverseParamProduct I hε r hr A B) n m x = |
| 747 | differentialFamily I ε r 1 (fun _ => 1) A B n m x := |
| 748 | jet_bilinearLift I hε (inverseParamProductData I hε r hr) A B n m hx |
| 749 | |
| 750 | theorem jet_inverseDotProduct (I : Window) {ε : ℝ} (hε : 0 < ε) (r : ℕ) (hr : 1 ≤ r) |
| 751 | (A B : AxisSpace I ε) (n m : ℕ) {x : ℝ} (hx : x ∈ I.interval) : |
| 752 | inputJet I ε (inverseDotProduct I hε r hr A B) n m x = |
| 753 | differentialFamily I ε r 0 (fun j => (j : ℝ)) A B n m x := |
| 754 | jet_bilinearLift I hε (inverseDotProductData I hε r hr) A B n m hx |
| 755 | |
| 756 | end NavierStokes.AxisOperators |
| 757 | |
| 758 | end |