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.SmoothFourierData |
| 2 | import NavierStokes.TransportPrimitive |
| 3 | import Mathlib.Analysis.Calculus.SmoothSeries |
| 4 | |
| 5 | /-! |
| 6 | # The actual smooth torus inverse with an external real parameter |
| 7 | |
| 8 | The coefficients are the integrals of the given function. Local uniform |
| 9 | decay is obtained from genuine derivatives on compact parameter intervals. |
| 10 | -/ |
| 11 | |
| 12 | noncomputable section |
| 13 | |
| 14 | namespace NavierStokes.ParametricTorusInverse |
| 15 | |
| 16 | open Set Filter MeasureTheory |
| 17 | open TorusInverse |
| 18 | open scoped Topology ContDiff BigOperators |
| 19 | |
| 20 | abbrev Point := ℝ × Plane |
| 21 | abbrev Source := Point → ℂ |
| 22 | |
| 23 | noncomputable def slice (f : Source) (p : ℝ) : Plane → ℂ := fun Y => f (p, Y) |
| 24 | |
| 25 | def Periodic (f : Source) : Prop := ∀ p, SmoothFourierData.UnitPeriodic (slice f p) |
| 26 | |
| 27 | noncomputable def parameterPartial (f : Source) (z : Point) : ℂ := |
| 28 | fderiv ℝ f z (1, 0) |
| 29 | |
| 30 | noncomputable def torusXPartial (f : Source) (z : Point) : ℂ := |
| 31 | fderiv ℝ f z (0, (1, 0)) |
| 32 | |
| 33 | noncomputable def parameterJet (n : ℕ) (f : Source) : Source := parameterPartial^[n] f |
| 34 | |
| 35 | noncomputable def torusXJet : ℕ → Source → Source |
| 36 | | 0, f => f |
| 37 | | n + 1, f => torusXPartial (torusXJet n f) |
| 38 | |
| 39 | noncomputable def swapTorus (f : Source) : Source := fun z => f (z.1, (z.2.2, z.2.1)) |
| 40 | |
| 41 | noncomputable def coefficient (f : Source) (p : ℝ) (k : Frequency) : ℂ := |
| 42 | SmoothFourierData.coefficient (slice f p) k |
| 43 | |
| 44 | noncomputable def mean (f : Source) (p : ℝ) : ℂ := coefficient f p 0 |
| 45 | |
| 46 | def ZeroMean (f : Source) : Prop := ∀ p, mean f p = 0 |
| 47 | |
| 48 | noncomputable def inverse (d : Direction) (f : Source) (z : Point) : ℂ := |
| 49 | directionalInverse d (coefficient f z.1) z.2 |
| 50 | |
| 51 | noncomputable def iterateInverse (d : Direction) (n : ℕ) (f : Source) : Source := |
| 52 | (inverse d)^[n] f |
| 53 | |
| 54 | theorem mean_eq_integral (f : Source) (p : ℝ) : |
| 55 | mean f p = ∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, f (p, (x, y)) := |
| 56 | SmoothFourierData.coefficient_zero_eq_integral _ |
| 57 | |
| 58 | theorem slice_smooth {f : Source} (hf : ContDiff ℝ ∞ f) (p : ℝ) : |
| 59 | ContDiff ℝ ∞ (slice f p) := |
| 60 | hf.comp (contDiff_const.prodMk contDiff_id) |
| 61 | |
| 62 | theorem fixedPartial_smooth {f : Source} (hf : ContDiff ℝ ∞ f) (v : Point) : |
| 63 | ContDiff ℝ ∞ (fun z => fderiv ℝ f z v) := |
| 64 | (ContinuousLinearMap.apply ℝ ℂ v).contDiff.comp (hf.fderiv_right (by simp)) |
| 65 | |
| 66 | theorem parameterPartial_smooth {f : Source} (hf : ContDiff ℝ ∞ f) : |
| 67 | ContDiff ℝ ∞ (parameterPartial f) := fixedPartial_smooth hf (1, 0) |
| 68 | |
| 69 | theorem torusXPartial_smooth {f : Source} (hf : ContDiff ℝ ∞ f) : |
| 70 | ContDiff ℝ ∞ (torusXPartial f) := fixedPartial_smooth hf (0, (1, 0)) |
| 71 | |
| 72 | theorem fixedPartial_periodic {f : Source} (hp : Periodic f) (v : Point) : |
| 73 | Periodic (fun z => fderiv ℝ f z v) := by |
| 74 | intro p Y k |
| 75 | have he : (fun z : Point => f (z + (0, ((k.1 : ℝ), (k.2 : ℝ))))) = f := by |
| 76 | funext z |
| 77 | change f (z.1 + 0, z.2 + ((k.1 : ℝ), (k.2 : ℝ))) = f (z.1, z.2) |
| 78 | simpa [slice] using hp z.1 z.2 k |
| 79 | have hd := congrArg (fun g : Source => fderiv ℝ g (p, Y)) he |
| 80 | rw [fderiv_comp_add_right] at hd |
| 81 | simpa only [slice, Prod.mk_add_mk, add_zero] using |
| 82 | congrArg (fun L : Point →L[ℝ] ℂ => L v) hd |
| 83 | |
| 84 | theorem parameterPartial_periodic {f : Source} (hp : Periodic f) : |
| 85 | Periodic (parameterPartial f) := fixedPartial_periodic hp (1, 0) |
| 86 | |
| 87 | theorem torusXPartial_periodic {f : Source} (hp : Periodic f) : |
| 88 | Periodic (torusXPartial f) := fixedPartial_periodic hp (0, (1, 0)) |
| 89 | |
| 90 | theorem torusXJet_smooth {f : Source} (hf : ContDiff ℝ ∞ f) (n : ℕ) : |
| 91 | ContDiff ℝ ∞ (torusXJet n f) := by |
| 92 | induction n with |
| 93 | | zero => exact hf |
| 94 | | succ n ih => exact torusXPartial_smooth ih |
| 95 | |
| 96 | theorem parameterJet_smooth {f : Source} (hf : ContDiff ℝ ∞ f) (n : ℕ) : |
| 97 | ContDiff ℝ ∞ (parameterJet n f) := by |
| 98 | induction n with |
| 99 | | zero => exact hf |
| 100 | | succ n ih => |
| 101 | rw [parameterJet, Function.iterate_succ_apply'] |
| 102 | exact parameterPartial_smooth ih |
| 103 | |
| 104 | theorem parameterJet_periodic {f : Source} (hp : Periodic f) (n : ℕ) : |
| 105 | Periodic (parameterJet n f) := by |
| 106 | induction n with |
| 107 | | zero => exact hp |
| 108 | | succ n ih => |
| 109 | rw [parameterJet, Function.iterate_succ_apply'] |
| 110 | exact parameterPartial_periodic ih |
| 111 | |
| 112 | theorem swapTorus_smooth {f : Source} (hf : ContDiff ℝ ∞ f) : |
| 113 | ContDiff ℝ ∞ (swapTorus f) := |
| 114 | hf.comp (contDiff_fst.prodMk (contDiff_snd.snd.prodMk contDiff_snd.fst)) |
| 115 | |
| 116 | theorem parameter_slice_hasDerivAt {f : Source} (hf : ContDiff ℝ ∞ f) |
| 117 | (p : ℝ) (Y : Plane) : |
| 118 | HasDerivAt (fun q => f (q, Y)) (parameterPartial f (p, Y)) p := by |
| 119 | exact ((hf.differentiable (by simp)) (p, Y)).hasFDerivAt.comp_hasDerivAt p |
| 120 | ((hasDerivAt_id p).prodMk (hasDerivAt_const p Y)) |
| 121 | |
| 122 | theorem slice_hasFDerivAt {f : Source} (hf : ContDiff ℝ ∞ f) (p : ℝ) (Y : Plane) : |
| 123 | HasFDerivAt (slice f p) |
| 124 | ((fderiv ℝ f (p, Y)).comp (ContinuousLinearMap.inr ℝ ℝ Plane)) Y := by |
| 125 | exact ((hf.differentiable (by simp)) (p, Y)).hasFDerivAt.comp Y |
| 126 | ((hasFDerivAt_const p Y).prodMk (hasFDerivAt_id Y)) |
| 127 | |
| 128 | theorem slice_torusXPartial {f : Source} (hf : ContDiff ℝ ∞ f) (p : ℝ) : |
| 129 | slice (torusXPartial f) p = SmoothFourierData.partialX (slice f p) := by |
| 130 | funext Y |
| 131 | symm |
| 132 | exact congrArg (fun L : Plane →L[ℝ] ℂ => L (1, 0)) (slice_hasFDerivAt hf p Y).fderiv |
| 133 | |
| 134 | theorem slice_torusXJet {f : Source} (hf : ContDiff ℝ ∞ f) (n : ℕ) (p : ℝ) : |
| 135 | slice (torusXJet n f) p = SmoothFourierData.xJet n (slice f p) := by |
| 136 | induction n with |
| 137 | | zero => rfl |
| 138 | | succ n ih => |
| 139 | rw [torusXJet, slice_torusXPartial (torusXJet_smooth hf n), |
| 140 | SmoothFourierData.xJet_succ, ih] |
| 141 | |
| 142 | theorem kernel_eq_mode (k : Frequency) (Y : Plane) : |
| 143 | SmoothFourierData.kernel k Y = mode (-k) Y := by |
| 144 | rw [mode_eq_torusMode] |
| 145 | rfl |
| 146 | |
| 147 | theorem mode_smooth (k : Frequency) : ContDiff ℝ ∞ (mode k) := |
| 148 | Complex.contDiff_exp.comp (phase k).contDiff |
| 149 | |
| 150 | theorem kernel_smooth (k : Frequency) : ContDiff ℝ ∞ (SmoothFourierData.kernel k) := by |
| 151 | simpa only [funext (kernel_eq_mode k)] using mode_smooth (-k) |
| 152 | |
| 153 | /-- Differentiation of an actual fixed-interval integral. -/ |
| 154 | theorem integral_hasDerivAt {g g' : ℝ × ℝ → ℂ} (hg : ContDiff ℝ ∞ g) |
| 155 | (hd : ∀ p u, HasDerivAt (fun q => g (q, u)) (g' (p, u)) p) |
| 156 | (a b p : ℝ) : |
| 157 | HasDerivAt (fun q => ∫ u in a..b, g (q, u)) (∫ u in a..b, g' (p, u)) p := by |
| 158 | have hh := (TransportPrimitive.parameterIntegral_hasFDerivAt hg a b p).hasDerivAt |
| 159 | have hi : IntervalIntegrable (fun u => TransportPrimitive.parameterDerivative g (p, u)) |
| 160 | volume a b := |
| 161 | ((TransportPrimitive.parameterDerivative_contDiff hg).continuous.comp |
| 162 | (continuous_const.prodMk continuous_id)).intervalIntegrable a b |
| 163 | rw [ContinuousLinearMap.intervalIntegral_apply hi (1 : ℝ)] at hh |
| 164 | convert! hh using 1 |
| 165 | apply intervalIntegral.integral_congr |
| 166 | intro u hu |
| 167 | exact ((TransportPrimitive.parameter_hasFDerivAt hg p u).hasDerivAt.unique (hd p u)).symm |
| 168 | |
| 169 | noncomputable def weightedSource (k : Frequency) (f : Source) (q : (ℝ × ℝ) × ℝ) : ℂ := |
| 170 | SmoothFourierData.kernel k (q.2, q.1.2) * f (q.1.1, (q.2, q.1.2)) |
| 171 | |
| 172 | theorem weightedSource_smooth {f : Source} (hf : ContDiff ℝ ∞ f) (k : Frequency) : |
| 173 | ContDiff ℝ ∞ (weightedSource k f) := |
| 174 | ((kernel_smooth k).comp (contDiff_snd.prodMk contDiff_fst.snd)).mul |
| 175 | (hf.comp (contDiff_fst.fst.prodMk (contDiff_snd.prodMk contDiff_fst.snd))) |
| 176 | |
| 177 | theorem coefficient_smooth {f : Source} (hf : ContDiff ℝ ∞ f) (k : Frequency) : |
| 178 | ContDiff ℝ ∞ (fun p => coefficient f p k) := by |
| 179 | have hi := TransportPrimitive.parameterIntegral_contDiff (weightedSource_smooth hf k) |
| 180 | (0 : ℝ) 1 |
| 181 | have ho := TransportPrimitive.parameterIntegral_contDiff hi (0 : ℝ) 1 |
| 182 | simpa only [coefficient, SmoothFourierData.coefficient_eq_doubleIntegral, weightedSource, |
| 183 | slice] using ho |
| 184 | |
| 185 | theorem coefficient_hasDerivAt {f : Source} (hf : ContDiff ℝ ∞ f) |
| 186 | (k : Frequency) (p : ℝ) : |
| 187 | HasDerivAt (fun q => coefficient f q k) (coefficient (parameterPartial f) p k) p := by |
| 188 | let inner : ℝ × ℝ → ℂ := fun q => ∫ x in (0 : ℝ)..1, weightedSource k f (q, x) |
| 189 | let innerD : ℝ × ℝ → ℂ := fun q => ∫ x in (0 : ℝ)..1, |
| 190 | weightedSource k (parameterPartial f) (q, x) |
| 191 | have hi : ContDiff ℝ ∞ inner := |
| 192 | TransportPrimitive.parameterIntegral_contDiff (weightedSource_smooth hf k) 0 1 |
| 193 | have hd : ∀ q y, HasDerivAt (fun u => inner (u, y)) (innerD (q, y)) q := by |
| 194 | intro q y |
| 195 | have hy : ContDiff ℝ ∞ (fun z : ℝ × ℝ => weightedSource k f ((z.1, y), z.2)) := |
| 196 | ((weightedSource_smooth hf k).comp |
| 197 | ((contDiff_fst.prodMk contDiff_const).prodMk contDiff_snd)) |
| 198 | exact integral_hasDerivAt |
| 199 | (g' := fun z : ℝ × ℝ => weightedSource k (parameterPartial f) ((z.1, y), z.2)) |
| 200 | hy (fun u x => by |
| 201 | simpa only [weightedSource] using |
| 202 | (parameter_slice_hasDerivAt hf u (x, y)).const_mul |
| 203 | (SmoothFourierData.kernel k (x, y))) 0 1 q |
| 204 | have ho := integral_hasDerivAt hi hd 0 1 p |
| 205 | simpa only [coefficient, SmoothFourierData.coefficient_eq_doubleIntegral, slice, |
| 206 | inner, innerD, weightedSource] using ho |
| 207 | |
| 208 | theorem parameterPartial_zeroMean {f : Source} (hf : ContDiff ℝ ∞ f) |
| 209 | (hm : ZeroMean f) : ZeroMean (parameterPartial f) := by |
| 210 | intro p |
| 211 | have he : (fun q => coefficient f q 0) = fun _ => (0 : ℂ) := funext hm |
| 212 | have hd := (coefficient_hasDerivAt hf 0 p).deriv |
| 213 | rw [he, deriv_const] at hd |
| 214 | exact hd.symm |
| 215 | |
| 216 | /-- Uniform polynomial decay on any fixed compact parameter interval, |
| 217 | derived from bounds for actual torus derivatives. -/ |
| 218 | theorem exists_uniform_coefficient_bound {f : Source} (hf : ContDiff ℝ ∞ f) |
| 219 | (hp : Periodic f) (n : ℕ) (a b : ℝ) : |
| 220 | ∃ C : ℝ, 0 ≤ C ∧ ∀ p ∈ Icc a b, ∀ k, |
| 221 | weight k ^ n * ‖coefficient f p k‖ ≤ C := by |
| 222 | let K : Set Point := Icc a b ×ˢ (Icc (0 : ℝ) 1 ×ˢ Icc (0 : ℝ) 1) |
| 223 | have hK : IsCompact K := isCompact_Icc.prod (isCompact_Icc.prod isCompact_Icc) |
| 224 | obtain ⟨C₀, h₀⟩ := hK.exists_bound_of_continuousOn hf.continuous.continuousOn |
| 225 | obtain ⟨C₁, h₁⟩ := hK.exists_bound_of_continuousOn |
| 226 | (torusXJet_smooth hf n).continuous.continuousOn |
| 227 | obtain ⟨C₂, h₂⟩ := hK.exists_bound_of_continuousOn |
| 228 | (torusXJet_smooth (swapTorus_smooth hf) n).continuous.continuousOn |
| 229 | let C := max 0 (max C₀ (max C₁ C₂)) |
| 230 | have hC : 0 ≤ C := le_max_left _ _ |
| 231 | have hC₀ : C₀ ≤ C := (le_max_left _ _).trans (le_max_right _ _) |
| 232 | have hC₁ : C₁ ≤ C := ((le_max_left _ _).trans (le_max_right _ _)).trans (le_max_right _ _) |
| 233 | have hC₂ : C₂ ≤ C := ((le_max_right _ _).trans (le_max_right _ _)).trans (le_max_right _ _) |
| 234 | refine ⟨3 ^ n * C, mul_nonneg (by positivity) hC, ?_⟩ |
| 235 | intro p hparam k |
| 236 | apply SmoothFourierData.coefficient_polynomial_bound (slice_smooth hf p) (hp p) n |
| 237 | · intro x hx y hy |
| 238 | exact (h₀ (p, (x, y)) ⟨hparam, hx, hy⟩).trans hC₀ |
| 239 | · intro x hx y hy |
| 240 | rw [← slice_torusXJet hf n p] |
| 241 | exact (h₁ (p, (x, y)) ⟨hparam, hx, hy⟩).trans hC₁ |
| 242 | · intro x hx y hy |
| 243 | change ‖SmoothFourierData.xJet n (slice (swapTorus f) p) (x, y)‖ ≤ C |
| 244 | rw [← slice_torusXJet (swapTorus_smooth hf) n p] |
| 245 | exact (h₂ (p, (x, y)) ⟨hparam, hx, hy⟩).trans hC₂ |
| 246 | |
| 247 | def PolynomialGrowth (m : Frequency → ℂ) : Prop := |
| 248 | ∃ s : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∀ k, ‖m k‖ ≤ C * weight k ^ s |
| 249 | |
| 250 | noncomputable def multiplierX (m : Frequency → ℂ) (k : Frequency) : ℂ := freqX k * m k |
| 251 | noncomputable def multiplierY (m : Frequency → ℂ) (k : Frequency) : ℂ := freqY k * m k |
| 252 | |
| 253 | theorem PolynomialGrowth.mulX {m : Frequency → ℂ} (hm : PolynomialGrowth m) : |
| 254 | PolynomialGrowth (multiplierX m) := by |
| 255 | obtain ⟨s, C, hC, hm⟩ := hm |
| 256 | refine ⟨s + 1, ‖omega‖ * C, mul_nonneg (norm_nonneg _) hC, ?_⟩ |
| 257 | intro k |
| 258 | have hw := (weight_pos k).le |
| 259 | calc |
| 260 | ‖multiplierX m k‖ = ‖freqX k‖ * ‖m k‖ := norm_mul _ _ |
| 261 | _ ≤ (‖omega‖ * weight k) * (C * weight k ^ s) := |
| 262 | mul_le_mul (norm_freqX_le k) (hm k) (norm_nonneg _) (by positivity) |
| 263 | _ = _ := by rw [pow_succ]; ring |
| 264 | |
| 265 | theorem PolynomialGrowth.mulY {m : Frequency → ℂ} (hm : PolynomialGrowth m) : |
| 266 | PolynomialGrowth (multiplierY m) := by |
| 267 | obtain ⟨s, C, hC, hm⟩ := hm |
| 268 | refine ⟨s + 1, ‖omega‖ * C, mul_nonneg (norm_nonneg _) hC, ?_⟩ |
| 269 | intro k |
| 270 | have hw := (weight_pos k).le |
| 271 | calc |
| 272 | ‖multiplierY m k‖ = ‖freqY k‖ * ‖m k‖ := norm_mul _ _ |
| 273 | _ ≤ (‖omega‖ * weight k) * (C * weight k ^ s) := |
| 274 | mul_le_mul (norm_freqY_le k) (hm k) (norm_nonneg _) (by positivity) |
| 275 | _ = _ := by rw [pow_succ]; ring |
| 276 | |
| 277 | theorem inverseMultiplier_growth (d : Direction) : PolynomialGrowth (multiplier d) := |
| 278 | ⟨1, 6 * ‖omega⁻¹‖, by positivity, fun k => by simpa using norm_multiplier_le d k⟩ |
| 279 | |
| 280 | theorem PolynomialGrowth.rapid_mul {m a : Frequency → ℂ} (hm : PolynomialGrowth m) |
| 281 | (ha : Rapid a) : Rapid (fun k => m k * a k) := by |
| 282 | obtain ⟨s, C, hC, hm⟩ := hm |
| 283 | intro n |
| 284 | apply Summable.of_nonneg_of_le |
| 285 | (fun k => mul_nonneg (pow_nonneg (weight_pos k).le n) (norm_nonneg _)) |
| 286 | _ ((ha (n + s)).mul_left C) |
| 287 | intro k |
| 288 | have hw := (weight_pos k).le |
| 289 | calc |
| 290 | weight k ^ n * ‖m k * a k‖ = weight k ^ n * (‖m k‖ * ‖a k‖) := by rw [norm_mul] |
| 291 | _ ≤ weight k ^ n * ((C * weight k ^ s) * ‖a k‖) := by |
| 292 | gcongr |
| 293 | exact hm k |
| 294 | _ = _ := by rw [pow_add]; ring |
| 295 | |
| 296 | theorem multiplied_coeff_bound {m a : Frequency → ℂ} {s : ℕ} {C B : ℝ} |
| 297 | (hC : 0 ≤ C) (hm : ∀ k, ‖m k‖ ≤ C * weight k ^ s) |
| 298 | (ha : ∀ k, weight k ^ (s + 4) * ‖a k‖ ≤ B) (k : Frequency) : |
| 299 | ‖m k * a k‖ ≤ (C * B) * (weight k ^ 4)⁻¹ := by |
| 300 | rw [← div_eq_mul_inv] |
| 301 | apply (le_div_iff₀ (pow_pos (weight_pos k) 4)).mpr |
| 302 | calc |
| 303 | ‖m k * a k‖ * weight k ^ 4 ≤ |
| 304 | ((C * weight k ^ s) * ‖a k‖) * weight k ^ 4 := by |
| 305 | rw [norm_mul] |
| 306 | gcongr |
| 307 | exact hm k |
| 308 | _ = C * (weight k ^ (s + 4) * ‖a k‖) := by rw [pow_add]; ring |
| 309 | _ ≤ C * B := mul_le_mul_of_nonneg_left (ha k) hC |
| 310 | |
| 311 | theorem uniform_multiplied_coeff_bound {m : Frequency → ℂ} (hm : PolynomialGrowth m) |
| 312 | {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (a b : ℝ) : |
| 313 | ∃ C : ℝ, 0 ≤ C ∧ ∀ p ∈ Icc a b, ∀ k, |
| 314 | ‖m k * coefficient f p k‖ ≤ C * (weight k ^ 4)⁻¹ := by |
| 315 | obtain ⟨s, M, hM, hm⟩ := hm |
| 316 | obtain ⟨B, hB, hbound⟩ := exists_uniform_coefficient_bound hf hp (s + 4) a b |
| 317 | exact ⟨M * B, mul_nonneg hM hB, fun p hp k => multiplied_coeff_bound hM hm (hbound p hp) k⟩ |
| 318 | |
| 319 | noncomputable def applyMultiplier (m : Frequency → ℂ) (f : Source) (z : Point) : ℂ := |
| 320 | series (fun k => m k * coefficient f z.1 k) z.2 |
| 321 | |
| 322 | theorem inverse_eq_applyMultiplier (d : Direction) (f : Source) : |
| 323 | inverse d f = applyMultiplier (multiplier d) f := rfl |
| 324 | |
| 325 | theorem multiplied_coeff_rapid {m : Frequency → ℂ} (hm : PolynomialGrowth m) |
| 326 | {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (p : ℝ) : |
| 327 | Rapid (fun k => m k * coefficient f p k) := |
| 328 | hm.rapid_mul (SmoothFourierData.rapid_coefficient (slice_smooth hf p) (hp p)) |
| 329 | |
| 330 | noncomputable def jointDP : Point →L[ℝ] ℝ := ContinuousLinearMap.fst ℝ ℝ Plane |
| 331 | noncomputable def jointDX : Point →L[ℝ] ℝ := |
| 332 | TorusInverse.dx.comp (ContinuousLinearMap.snd ℝ ℝ Plane) |
| 333 | noncomputable def jointDY : Point →L[ℝ] ℝ := |
| 334 | TorusInverse.dy.comp (ContinuousLinearMap.snd ℝ ℝ Plane) |
| 335 | |
| 336 | noncomputable def jointLiftP : ℂ →L[ℝ] (Point →L[ℝ] ℂ) := |
| 337 | ContinuousLinearMap.smulRightL ℝ Point ℂ jointDP |
| 338 | noncomputable def jointLiftX : ℂ →L[ℝ] (Point →L[ℝ] ℂ) := |
| 339 | ContinuousLinearMap.smulRightL ℝ Point ℂ jointDX |
| 340 | noncomputable def jointLiftY : ℂ →L[ℝ] (Point →L[ℝ] ℂ) := |
| 341 | ContinuousLinearMap.smulRightL ℝ Point ℂ jointDY |
| 342 | |
| 343 | @[simp] theorem jointLiftP_apply (c : ℂ) (v : Point) : jointLiftP c v = v.1 • c := rfl |
| 344 | @[simp] theorem jointLiftX_apply (c : ℂ) (v : Point) : jointLiftX c v = v.2.1 • c := rfl |
| 345 | @[simp] theorem jointLiftY_apply (c : ℂ) (v : Point) : jointLiftY c v = v.2.2 • c := rfl |
| 346 | |
| 347 | noncomputable def multiplierTermDerivative (m : Frequency → ℂ) (f : Source) |
| 348 | (k : Frequency) (z : Point) : Point →L[ℝ] ℂ := |
| 349 | jointLiftP (m k * coefficient (parameterPartial f) z.1 k * mode k z.2) + |
| 350 | jointLiftX (multiplierX m k * coefficient f z.1 k * mode k z.2) + |
| 351 | jointLiftY (multiplierY m k * coefficient f z.1 k * mode k z.2) |
| 352 | |
| 353 | theorem hasFDerivAt_multiplierTerm {f : Source} (hf : ContDiff ℝ ∞ f) |
| 354 | (m : Frequency → ℂ) (k : Frequency) (z : Point) : |
| 355 | HasFDerivAt (fun w : Point => m k * coefficient f w.1 k * mode k w.2) |
| 356 | (multiplierTermDerivative m f k z) z := by |
| 357 | have hc : HasFDerivAt (fun w : Point => coefficient f w.1 k) |
| 358 | (jointLiftP (coefficient (parameterPartial f) z.1 k)) z := by |
| 359 | convert! (coefficient_hasDerivAt hf k z.1).hasFDerivAt.comp z |
| 360 | (hasFDerivAt_fst) using 1 |
| 361 | have he : HasFDerivAt (fun w : Point => mode k w.2) |
| 362 | (mode k z.2 • ((phase k).comp (ContinuousLinearMap.snd ℝ ℝ Plane))) z := |
| 363 | ((phase k).hasFDerivAt.comp z (hasFDerivAt_snd)).cexp |
| 364 | have hd : multiplierTermDerivative m f k z = |
| 365 | (m k * coefficient f z.1 k) • |
| 366 | (mode k z.2 • ((phase k).comp (ContinuousLinearMap.snd ℝ ℝ Plane))) + |
| 367 | mode k z.2 • (m k • jointLiftP (coefficient (parameterPartial f) z.1 k)) := by |
| 368 | apply ContinuousLinearMap.ext |
| 369 | intro v |
| 370 | change v.1 • (m k * coefficient (parameterPartial f) z.1 k * mode k z.2) + |
| 371 | v.2.1 • (freqX k * m k * coefficient f z.1 k * mode k z.2) + |
| 372 | v.2.2 • (freqY k * m k * coefficient f z.1 k * mode k z.2) = |
| 373 | (m k * coefficient f z.1 k) • |
| 374 | (mode k z.2 • (v.2.1 • freqX k + v.2.2 • freqY k)) + |
| 375 | mode k z.2 • (m k • (v.1 • coefficient (parameterPartial f) z.1 k)) |
| 376 | simp only [Complex.real_smul, smul_eq_mul] |
| 377 | ring |
| 378 | rw [hd] |
| 379 | exact (hc.const_mul (m k)).mul he |
| 380 | |
| 381 | theorem norm_multiplierTermDerivative_le (m : Frequency → ℂ) (f : Source) |
| 382 | (k : Frequency) (z : Point) : |
| 383 | ‖multiplierTermDerivative m f k z‖ ≤ |
| 384 | ‖jointLiftP‖ * ‖m k * coefficient (parameterPartial f) z.1 k‖ + |
| 385 | ‖jointLiftX‖ * ‖multiplierX m k * coefficient f z.1 k‖ + |
| 386 | ‖jointLiftY‖ * ‖multiplierY m k * coefficient f z.1 k‖ := by |
| 387 | unfold multiplierTermDerivative |
| 388 | apply (norm_add_le _ _).trans |
| 389 | apply add_le_add |
| 390 | · apply (norm_add_le _ _).trans |
| 391 | apply add_le_add |
| 392 | · simpa only [norm_mul, norm_mode, mul_one] using |
| 393 | jointLiftP.le_opNorm (m k * coefficient (parameterPartial f) z.1 k * mode k z.2) |
| 394 | · simpa only [norm_mul, norm_mode, mul_one] using |
| 395 | jointLiftX.le_opNorm (multiplierX m k * coefficient f z.1 k * mode k z.2) |
| 396 | · simpa only [norm_mul, norm_mode, mul_one] using |
| 397 | jointLiftY.le_opNorm (multiplierY m k * coefficient f z.1 k * mode k z.2) |
| 398 | |
| 399 | theorem uniform_multiplierDerivative_bound {m : Frequency → ℂ} (hm : PolynomialGrowth m) |
| 400 | {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (a b : ℝ) : |
| 401 | ∃ C : ℝ, 0 ≤ C ∧ ∀ z : Point, z.1 ∈ Icc a b → ∀ k, |
| 402 | ‖multiplierTermDerivative m f k z‖ ≤ C * (weight k ^ 4)⁻¹ := by |
| 403 | obtain ⟨CP, hCP, hP⟩ := uniform_multiplied_coeff_bound hm |
| 404 | (parameterPartial_smooth hf) (parameterPartial_periodic hp) a b |
| 405 | obtain ⟨CX, hCX, hX⟩ := uniform_multiplied_coeff_bound hm.mulX hf hp a b |
| 406 | obtain ⟨CY, hCY, hY⟩ := uniform_multiplied_coeff_bound hm.mulY hf hp a b |
| 407 | refine ⟨‖jointLiftP‖ * CP + ‖jointLiftX‖ * CX + ‖jointLiftY‖ * CY, by positivity, ?_⟩ |
| 408 | intro z hz k |
| 409 | apply (norm_multiplierTermDerivative_le m f k z).trans |
| 410 | calc |
| 411 | _ ≤ ‖jointLiftP‖ * (CP * (weight k ^ 4)⁻¹) + |
| 412 | ‖jointLiftX‖ * (CX * (weight k ^ 4)⁻¹) + |
| 413 | ‖jointLiftY‖ * (CY * (weight k ^ 4)⁻¹) := by |
| 414 | gcongr |
| 415 | · exact hP z.1 hz k |
| 416 | · exact hX z.1 hz k |
| 417 | · exact hY z.1 hz k |
| 418 | _ = _ := by ring |
| 419 | |
| 420 | theorem hasFDerivAt_applyMultiplier {m : Frequency → ℂ} (hm : PolynomialGrowth m) |
| 421 | {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (z : Point) : |
| 422 | HasFDerivAt (applyMultiplier m f) (∑' k, multiplierTermDerivative m f k z) z := by |
| 423 | obtain ⟨C, hC, hbound⟩ := uniform_multiplierDerivative_bound hm hf hp (z.1 - 1) (z.1 + 1) |
| 424 | have hs : Summable (fun k : Frequency => C * (weight k ^ 4)⁻¹) := |
| 425 | SmoothFourierData.summable_weight_inv_four.mul_left C |
| 426 | have hbox : ∀ w ∈ Metric.ball z 1, w.1 ∈ Icc (z.1 - 1) (z.1 + 1) := by |
| 427 | intro w hw |
| 428 | have hd : dist w.1 z.1 < 1 := by |
| 429 | simpa only [dist_eq_norm, Prod.fst_sub] using |
| 430 | (norm_fst_le (w - z)).trans_lt (show ‖w - z‖ < 1 by |
| 431 | simpa only [dist_eq_norm] using Metric.mem_ball.mp hw) |
| 432 | rw [Real.dist_eq] at hd |
| 433 | constructor <;> linarith [(abs_lt.mp hd).1, (abs_lt.mp hd).2] |
| 434 | exact hasFDerivAt_tsum_of_isPreconnected hs Metric.isOpen_ball |
| 435 | (convex_ball z (1 : ℝ)).isPreconnected |
| 436 | (fun k w _ => hasFDerivAt_multiplierTerm hf m k w) |
| 437 | (fun k w hw => hbound w (hbox w hw) k) |
| 438 | (Metric.mem_ball_self (by norm_num : (0 : ℝ) < 1)) |
| 439 | (summable_terms (multiplied_coeff_rapid hm hf hp z.1) z.2) |
| 440 | (Metric.mem_ball_self (by norm_num : (0 : ℝ) < 1)) |
| 441 | |
| 442 | theorem fderiv_applyMultiplier {m : Frequency → ℂ} (hm : PolynomialGrowth m) |
| 443 | {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (z : Point) : |
| 444 | fderiv ℝ (applyMultiplier m f) z = |
| 445 | jointLiftP (applyMultiplier m (parameterPartial f) z) + |
| 446 | jointLiftX (applyMultiplier (multiplierX m) f z) + |
| 447 | jointLiftY (applyMultiplier (multiplierY m) f z) := by |
| 448 | have hP := summable_terms (multiplied_coeff_rapid hm |
| 449 | (parameterPartial_smooth hf) (parameterPartial_periodic hp) z.1) z.2 |
| 450 | have hX := summable_terms (multiplied_coeff_rapid hm.mulX hf hp z.1) z.2 |
| 451 | have hY := summable_terms (multiplied_coeff_rapid hm.mulY hf hp z.1) z.2 |
| 452 | rw [(hasFDerivAt_applyMultiplier hm hf hp z).fderiv] |
| 453 | simp only [multiplierTermDerivative] |
| 454 | rw [Summable.tsum_add ((jointLiftP.summable hP).add (jointLiftX.summable hX)) |
| 455 | (jointLiftY.summable hY), |
| 456 | Summable.tsum_add (jointLiftP.summable hP) (jointLiftX.summable hX), |
| 457 | ← jointLiftP.map_tsum hP, ← jointLiftX.map_tsum hX, ← jointLiftY.map_tsum hY] |
| 458 | rfl |
| 459 | |
| 460 | /-- Joint smoothness is derived from actual locally uniform Fourier |
| 461 | differentiation, allowing arbitrary polynomially growing multipliers. -/ |
| 462 | theorem applyMultiplier_smooth_nat (n : ℕ) {m : Frequency → ℂ} (hm : PolynomialGrowth m) |
| 463 | {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) : |
| 464 | ContDiff ℝ n (applyMultiplier m f) := by |
| 465 | induction n generalizing m f with |
| 466 | | zero => |
| 467 | exact contDiff_zero.mpr (show Differentiable ℝ (applyMultiplier m f) from |
| 468 | fun z => (hasFDerivAt_applyMultiplier hm hf hp z).differentiableAt).continuous |
| 469 | | succ n ih => |
| 470 | rw [show ((n + 1 : ℕ) : WithTop ℕ∞) = (n : WithTop ℕ∞) + 1 by simp, |
| 471 | contDiff_succ_iff_fderiv] |
| 472 | refine ⟨fun z => (hasFDerivAt_applyMultiplier hm hf hp z).differentiableAt, by simp, ?_⟩ |
| 473 | have he : fderiv ℝ (applyMultiplier m f) = fun z => |
| 474 | jointLiftP (applyMultiplier m (parameterPartial f) z) + |
| 475 | jointLiftX (applyMultiplier (multiplierX m) f z) + |
| 476 | jointLiftY (applyMultiplier (multiplierY m) f z) := |
| 477 | funext (fderiv_applyMultiplier hm hf hp) |
| 478 | rw [he] |
| 479 | exact ((jointLiftP.contDiff.comp |
| 480 | (ih hm (parameterPartial_smooth hf) (parameterPartial_periodic hp))).add |
| 481 | (jointLiftX.contDiff.comp (ih hm.mulX hf hp))).add |
| 482 | (jointLiftY.contDiff.comp (ih hm.mulY hf hp)) |
| 483 | |
| 484 | theorem applyMultiplier_smooth {m : Frequency → ℂ} (hm : PolynomialGrowth m) |
| 485 | {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) : |
| 486 | ContDiff ℝ ∞ (applyMultiplier m f) := |
| 487 | contDiff_infty.mpr (fun n => applyMultiplier_smooth_nat n hm hf hp) |
| 488 | |
| 489 | theorem inverse_smooth (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) |
| 490 | (hp : Periodic f) : ContDiff ℝ ∞ (inverse d f) := |
| 491 | applyMultiplier_smooth (inverseMultiplier_growth d) hf hp |
| 492 | |
| 493 | theorem parameterPartial_applyMultiplier {m : Frequency → ℂ} (hm : PolynomialGrowth m) |
| 494 | {f : Source} (hf : ContDiff ℝ ∞ f) (hp : Periodic f) : |
| 495 | parameterPartial (applyMultiplier m f) = applyMultiplier m (parameterPartial f) := by |
| 496 | funext z |
| 497 | simp [parameterPartial, fderiv_applyMultiplier hm hf hp, jointLiftP_apply, |
| 498 | jointLiftX_apply, jointLiftY_apply] |
| 499 | |
| 500 | theorem parameterPartial_inverse (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) |
| 501 | (hp : Periodic f) : parameterPartial (inverse d f) = inverse d (parameterPartial f) := |
| 502 | parameterPartial_applyMultiplier (inverseMultiplier_growth d) hf hp |
| 503 | |
| 504 | theorem inverse_periodic (d : Direction) (f : Source) : Periodic (inverse d f) := by |
| 505 | intro p Y k |
| 506 | exact directionalInverse_periodic d (coefficient f p) Y k.1 k.2 |
| 507 | |
| 508 | /-- The inverse has zero mean even if the input has a nonzero constant mode. -/ |
| 509 | theorem inverse_zeroMean (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) |
| 510 | (hp : Periodic f) : ZeroMean (inverse d f) := by |
| 511 | intro p |
| 512 | have ha := SmoothFourierData.rapid_coefficient (slice_smooth hf p) (hp p) |
| 513 | let g : C(Torus, ℂ) := |
| 514 | ⟨torusSeries (inverseCoeff d (coefficient f p)), |
| 515 | continuous_torusSeries (ha.inverseCoeff d)⟩ |
| 516 | have hg : SmoothFourierData.torusLift g = slice (inverse d f) p := by |
| 517 | funext Y |
| 518 | exact (series_eq_torusSeries (inverseCoeff d (coefficient f p)) Y).symm |
| 519 | change SmoothFourierData.coefficient (slice (inverse d f) p) 0 = 0 |
| 520 | rw [← hg, SmoothFourierData.coefficient_zero_eq_mean] |
| 521 | exact TorusInverse.inverse_zero_mean d ha |
| 522 | |
| 523 | noncomputable def directionalPartial (d : Direction) (f : Source) (z : Point) : ℂ := |
| 524 | fderiv ℝ f z (0, vector d) |
| 525 | |
| 526 | /-- Exact inversion for the given function, with the derivative taken in the |
| 527 | joint parameter--torus space. -/ |
| 528 | theorem inverse_solves (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) |
| 529 | (hp : Periodic f) (hm : ZeroMean f) : directionalPartial d (inverse d f) = f := by |
| 530 | funext z |
| 531 | have hz := SmoothFourierData.inverse_solves_smooth_periodic d |
| 532 | (slice_smooth hf z.1) (hp z.1) (by |
| 533 | change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, f (z.1, (x, y))) = 0 |
| 534 | rw [← mean_eq_integral] |
| 535 | exact hm z.1) z.2 |
| 536 | have hd := congrArg (fun L : Plane →L[ℝ] ℂ => L (vector d)) |
| 537 | (slice_hasFDerivAt (inverse_smooth d hf hp) z.1 z.2).fderiv |
| 538 | exact hd.symm.trans hz |
| 539 | |
| 540 | theorem inverse_preserves_parameter_support (d : Direction) (f : Source) (S : Set ℝ) |
| 541 | (hs : ∀ p, p ∉ S → ∀ Y, f (p, Y) = 0) : |
| 542 | ∀ p, p ∉ S → ∀ Y, inverse d f (p, Y) = 0 := by |
| 543 | apply TorusInverse.inverse_preserves_parameter_support d (coefficient f) S |
| 544 | intro p hp k |
| 545 | simp only [coefficient, SmoothFourierData.coefficient_eq_doubleIntegral, slice, |
| 546 | hs p hp, mul_zero, intervalIntegral.integral_zero] |
| 547 | |
| 548 | @[simp] theorem parameterJet_zero (f : Source) : parameterJet 0 f = f := rfl |
| 549 | |
| 550 | theorem parameterJet_succ (n : ℕ) (f : Source) : |
| 551 | parameterJet (n + 1) f = parameterPartial (parameterJet n f) := |
| 552 | Function.iterate_succ_apply' _ _ _ |
| 553 | |
| 554 | theorem parameterJet_zeroMean {f : Source} (hf : ContDiff ℝ ∞ f) |
| 555 | (hm : ZeroMean f) (n : ℕ) : ZeroMean (parameterJet n f) := by |
| 556 | induction n with |
| 557 | | zero => exact hm |
| 558 | | succ n ih => |
| 559 | rw [parameterJet_succ] |
| 560 | exact parameterPartial_zeroMean (parameterJet_smooth hf n) ih |
| 561 | |
| 562 | /-- All actual derivatives in the external parameter commute with inversion. -/ |
| 563 | theorem parameterJet_inverse (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) |
| 564 | (hp : Periodic f) (n : ℕ) : |
| 565 | parameterJet n (inverse d f) = inverse d (parameterJet n f) := by |
| 566 | induction n with |
| 567 | | zero => rfl |
| 568 | | succ n ih => |
| 569 | rw [parameterJet_succ, ih, parameterPartial_inverse d (parameterJet_smooth hf n) |
| 570 | (parameterJet_periodic hp n), parameterJet_succ] |
| 571 | |
| 572 | @[simp] theorem iterateInverse_zero (d : Direction) (f : Source) : |
| 573 | iterateInverse d 0 f = f := rfl |
| 574 | |
| 575 | theorem iterateInverse_succ (d : Direction) (n : ℕ) (f : Source) : |
| 576 | iterateInverse d (n + 1) f = inverse d (iterateInverse d n f) := |
| 577 | Function.iterate_succ_apply' _ _ _ |
| 578 | |
| 579 | theorem iterateInverse_periodic (d : Direction) {f : Source} (hp : Periodic f) |
| 580 | (n : ℕ) : Periodic (iterateInverse d n f) := by |
| 581 | induction n with |
| 582 | | zero => exact hp |
| 583 | | succ n ih => |
| 584 | rw [iterateInverse_succ] |
| 585 | exact inverse_periodic d _ |
| 586 | |
| 587 | theorem iterateInverse_smooth (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) |
| 588 | (hp : Periodic f) (n : ℕ) : ContDiff ℝ ∞ (iterateInverse d n f) := by |
| 589 | induction n with |
| 590 | | zero => exact hf |
| 591 | | succ n ih => |
| 592 | rw [iterateInverse_succ] |
| 593 | exact inverse_smooth d ih (iterateInverse_periodic d hp n) |
| 594 | |
| 595 | theorem iterateInverse_zeroMean (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) |
| 596 | (hp : Periodic f) (hm : ZeroMean f) (n : ℕ) : ZeroMean (iterateInverse d n f) := by |
| 597 | induction n with |
| 598 | | zero => exact hm |
| 599 | | succ n ih => |
| 600 | rw [iterateInverse_succ] |
| 601 | exact inverse_zeroMean d (iterateInverse_smooth d hf hp n) |
| 602 | (iterateInverse_periodic d hp n) |
| 603 | |
| 604 | theorem parameterPartial_iterateInverse (d : Direction) {f : Source} |
| 605 | (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (n : ℕ) : |
| 606 | parameterPartial (iterateInverse d n f) = iterateInverse d n (parameterPartial f) := by |
| 607 | induction n with |
| 608 | | zero => rfl |
| 609 | | succ n ih => |
| 610 | rw [iterateInverse_succ, parameterPartial_inverse d (iterateInverse_smooth d hf hp n) |
| 611 | (iterateInverse_periodic d hp n), ih, iterateInverse_succ] |
| 612 | |
| 613 | theorem parameterJet_iterateInverse (d : Direction) {f : Source} |
| 614 | (hf : ContDiff ℝ ∞ f) (hp : Periodic f) (n q : ℕ) : |
| 615 | parameterJet q (iterateInverse d n f) = iterateInverse d n (parameterJet q f) := by |
| 616 | induction q with |
| 617 | | zero => rfl |
| 618 | | succ q ih => |
| 619 | rw [parameterJet_succ, ih, parameterPartial_iterateInverse d |
| 620 | (parameterJet_smooth hf q) (parameterJet_periodic hp q), parameterJet_succ] |
| 621 | |
| 622 | theorem iterateInverse_solves (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) |
| 623 | (hp : Periodic f) (hm : ZeroMean f) (n : ℕ) : |
| 624 | directionalPartial d (iterateInverse d (n + 1) f) = iterateInverse d n f := by |
| 625 | rw [iterateInverse_succ] |
| 626 | exact inverse_solves d (iterateInverse_smooth d hf hp n) |
| 627 | (iterateInverse_periodic d hp n) (iterateInverse_zeroMean d hf hp hm n) |
| 628 | |
| 629 | theorem iterateInverse_preserves_parameter_support (d : Direction) (f : Source) (S : Set ℝ) |
| 630 | (hs : ∀ p, p ∉ S → ∀ Y, f (p, Y) = 0) (n : ℕ) : |
| 631 | ∀ p, p ∉ S → ∀ Y, iterateInverse d n f (p, Y) = 0 := by |
| 632 | induction n with |
| 633 | | zero => exact hs |
| 634 | | succ n ih => |
| 635 | rw [iterateInverse_succ] |
| 636 | exact inverse_preserves_parameter_support d _ S ih |
| 637 | |
| 638 | /-- A genuine mixed coordinate jet: first actual parameter derivatives, then |
| 639 | the indicated word of actual torus-coordinate derivatives. -/ |
| 640 | noncomputable def mixedJet (q : ℕ) (w : List Bool) (f : Source) (z : Point) : ℂ := |
| 641 | derivativeWord w (slice (parameterJet q f) z.1) z.2 |
| 642 | |
| 643 | noncomputable def mixedLossConstant (r : ℕ) : ℝ := |
| 644 | ((6 * ‖omega⁻¹‖) * ‖omega‖ ^ r) * 3 ^ (r + 5) * |
| 645 | ∑' k : Frequency, (weight k ^ 4)⁻¹ |
| 646 | |
| 647 | theorem mixedLossConstant_nonneg (r : ℕ) : 0 ≤ mixedLossConstant r := by |
| 648 | unfold mixedLossConstant |
| 649 | positivity |
| 650 | |
| 651 | /-- Uniform finite loss: a mixed output jet with r torus derivatives requires |
| 652 | only r+5 pure torus derivatives of the same parameter jet of the input. |
| 653 | The constant is independent of the parameter set and the function. -/ |
| 654 | theorem mixedJet_inverse_bound (d : Direction) {f : Source} (hf : ContDiff ℝ ∞ f) |
| 655 | (hp : Periodic f) (q : ℕ) (w : List Bool) (S : Set ℝ) {C : ℝ} |
| 656 | (hzero : ∀ p ∈ S, ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, |
| 657 | ‖parameterJet q f (p, (x, y))‖ ≤ C) |
| 658 | (hfirst : ∀ p ∈ S, ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, |
| 659 | ‖SmoothFourierData.xJet (w.length + 5) (slice (parameterJet q f) p) (x, y)‖ ≤ C) |
| 660 | (hsecond : ∀ p ∈ S, ∀ x ∈ Icc (0 : ℝ) 1, ∀ y ∈ Icc (0 : ℝ) 1, |
| 661 | ‖SmoothFourierData.xJet (w.length + 5) |
| 662 | (SmoothFourierData.swapFunction (slice (parameterJet q f) p)) (x, y)‖ ≤ C) |
| 663 | (p : ℝ) (hps : p ∈ S) (Y : Plane) : |
| 664 | ‖mixedJet q w (inverse d f) (p, Y)‖ ≤ mixedLossConstant w.length * C := by |
| 665 | rw [mixedJet, parameterJet_inverse d hf hp] |
| 666 | have hq := slice_smooth (parameterJet_smooth hf q) p |
| 667 | have hpq := parameterJet_periodic hp q p |
| 668 | have hbound := SmoothFourierData.coefficient_seminorm_bound hq hpq (w.length + 1) |
| 669 | (hzero p hps) (by simpa only [Nat.add_assoc] using hfirst p hps) |
| 670 | (by simpa only [Nat.add_assoc] using hsecond p hps) |
| 671 | calc |
| 672 | _ ≤ ((6 * ‖omega⁻¹‖) * ‖omega‖ ^ w.length) * |
| 673 | coeffSeminorm (w.length + 1) (coefficient (parameterJet q f) p) := |
| 674 | inverse_derivativeWord_bound d (SmoothFourierData.rapid_coefficient hq hpq) w Y |
| 675 | _ ≤ ((6 * ‖omega⁻¹‖) * ‖omega‖ ^ w.length) * |
| 676 | ((3 ^ ((w.length + 1) + 4) * C) * ∑' k : Frequency, (weight k ^ 4)⁻¹) := |
| 677 | mul_le_mul_of_nonneg_left hbound (by positivity) |
| 678 | _ = mixedLossConstant w.length * C := by |
| 679 | simp only [mixedLossConstant, Nat.add_assoc] |
| 680 | ring |
| 681 | |
| 682 | end NavierStokes.ParametricTorusInverse |