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.TransportPrimitive |
| 2 | import NavierStokes.SmoothFourierData |
| 3 | import NavierStokes.ParametricTorusInverse |
| 4 | import NavierStokes.ChartScales |
| 5 | import NavierStokes.Flatness |
| 6 | import Mathlib.MeasureTheory.Integral.IntervalIntegral.Periodic |
| 7 | |
| 8 | /-! |
| 9 | # Exact radial aliases and Fourier suppression |
| 10 | |
| 11 | The compactification defect is retained as an actual function. Its averaging |
| 12 | and integration-by-parts identities concern genuine Bochner integrals. |
| 13 | -/ |
| 14 | |
| 15 | noncomputable section |
| 16 | |
| 17 | open Set Function Filter MeasureTheory |
| 18 | open scoped ContDiff Interval Topology BigOperators |
| 19 | |
| 20 | namespace NavierStokes.FourierAlias |
| 21 | |
| 22 | open TorusInverse |
| 23 | |
| 24 | abbrev State := ℝ × Plane |
| 25 | |
| 26 | section Averages |
| 27 | |
| 28 | variable {F : Type} [NormedAddCommGroup F] [NormedSpace ℝ F] |
| 29 | |
| 30 | /-- Integer translation invariance of an actual function on the universal cover. -/ |
| 31 | noncomputable def TorusPeriodic (f : Plane → F) : Prop := |
| 32 | ∀ Y : Plane, ∀ k : Frequency, f (Y + ((k.1 : ℝ), (k.2 : ℝ))) = f Y |
| 33 | |
| 34 | /-- The actual normalized unit-square average. -/ |
| 35 | noncomputable def torusMean (f : Plane → F) : F := |
| 36 | ∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, f (x, y) |
| 37 | |
| 38 | noncomputable def sliceMean (f : State → F) (U : ℝ) : F := torusMean (fun Y => f (U, Y)) |
| 39 | |
| 40 | /-- The exact defect in `D Ic = f - cutoffAlias`. -/ |
| 41 | noncomputable def cutoffAlias (χ : ℝ → ℝ) (M : ℝ) (v : Plane) (f : State → F) (z : State) : F := |
| 42 | deriv χ z.1 • TransportPrimitive.totalIntegral M v f z |
| 43 | |
| 44 | omit [NormedAddCommGroup F] [NormedSpace ℝ F] in |
| 45 | theorem torusPeriodic_first {f : Plane → F} (hp : TorusPeriodic f) (y : ℝ) : |
| 46 | Periodic (fun x => f (x, y)) 1 := by |
| 47 | intro x |
| 48 | simpa using hp (x, y) (1, 0) |
| 49 | |
| 50 | omit [NormedAddCommGroup F] [NormedSpace ℝ F] in |
| 51 | theorem torusPeriodic_second {f : Plane → F} (hp : TorusPeriodic f) (x : ℝ) : |
| 52 | Periodic (fun y => f (x, y)) 1 := by |
| 53 | intro y |
| 54 | simpa using hp (x, y) (0, 1) |
| 55 | |
| 56 | theorem periodic_integral_translate {g : ℝ → F} (hg : Periodic g 1) (c : ℝ) : |
| 57 | (∫ x in (0 : ℝ)..1, g (x + c)) = ∫ x in (0 : ℝ)..1, g x := by |
| 58 | rw [intervalIntegral.integral_comp_add_right] |
| 59 | simpa only [zero_add, add_zero, add_comm] using hg.intervalIntegral_add_eq c 0 |
| 60 | |
| 61 | /-- Averaging is invariant under any real torus translation. -/ |
| 62 | theorem torusMean_translate {f : Plane → F} (hp : TorusPeriodic f) (Y : Plane) : |
| 63 | torusMean (fun Z => f (Z + Y)) = torusMean f := by |
| 64 | have hx (y : ℝ) : (∫ x in (0 : ℝ)..1, f (x + Y.1, y + Y.2)) = |
| 65 | ∫ x in (0 : ℝ)..1, f (x, y + Y.2) := |
| 66 | periodic_integral_translate (torusPeriodic_first hp (y + Y.2)) Y.1 |
| 67 | have hy : Periodic (fun y => ∫ x in (0 : ℝ)..1, f (x, y)) 1 := by |
| 68 | intro y |
| 69 | apply intervalIntegral.integral_congr |
| 70 | intro x _ |
| 71 | exact torusPeriodic_second hp x y |
| 72 | change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, f (x + Y.1, y + Y.2)) = _ |
| 73 | simp_rw [hx] |
| 74 | exact periodic_integral_translate hy Y.2 |
| 75 | |
| 76 | theorem torusMean_smul (c : ℝ) (f : Plane → F) : |
| 77 | torusMean (fun Y => c • f Y) = c • torusMean f := by |
| 78 | simp only [torusMean, intervalIntegral.integral_smul] |
| 79 | |
| 80 | /-- Fubini on two compact real intervals. -/ |
| 81 | theorem intervalIntegral_comm {g : Plane → F} (hg : Continuous g) |
| 82 | {a b c d : ℝ} (hab : a ≤ b) (hcd : c ≤ d) : |
| 83 | (∫ y in c..d, ∫ x in a..b, g (x, y)) = ∫ x in a..b, ∫ y in c..d, g (x, y) := by |
| 84 | simp only [intervalIntegral.integral_of_le hab, intervalIntegral.integral_of_le hcd] |
| 85 | apply (integral_integral_swap ?_).symm |
| 86 | change Integrable g ((volume.restrict (Ioc a b)).prod (volume.restrict (Ioc c d))) |
| 87 | rw [Measure.prod_restrict] |
| 88 | exact (hg.continuousOn.integrableOn_compact (isCompact_Icc.prod isCompact_Icc)).mono_set |
| 89 | (Set.prod_mono Ioc_subset_Icc_self Ioc_subset_Icc_self) |
| 90 | |
| 91 | theorem continuous_parameter_interval {H : Type} [TopologicalSpace H] |
| 92 | [FirstCountableTopology H] [LocallyCompactSpace H] {g : H × ℝ → F} |
| 93 | (hg : Continuous g) {a b : ℝ} (hab : a ≤ b) : |
| 94 | Continuous (fun x => ∫ u in a..b, g (x, u)) := by |
| 95 | have heq : (fun x => ∫ u in a..b, g (x, u)) = |
| 96 | (fun x => ∫ u in Icc a b, g (x, u)) := by |
| 97 | funext x |
| 98 | rw [intervalIntegral.integral_of_le hab, integral_Icc_eq_integral_Ioc] |
| 99 | rw [heq] |
| 100 | exact continuous_parametric_integral_of_continuous (f := fun x u => g (x, u)) hg isCompact_Icc |
| 101 | |
| 102 | theorem torusMean_const [CompleteSpace F] (c : F) : torusMean (fun _ => c) = c := by |
| 103 | simp [torusMean] |
| 104 | |
| 105 | theorem torusMean_neg (f : Plane → F) : torusMean (fun Y => -f Y) = -torusMean f := by |
| 106 | simp only [torusMean, intervalIntegral.integral_neg] |
| 107 | |
| 108 | theorem torusMean_add {f g : Plane → F} (hf : Continuous f) (hg : Continuous g) : |
| 109 | torusMean (fun Y => f Y + g Y) = torusMean f + torusMean g := by |
| 110 | have hcf : Continuous (fun y => ∫ x in (0 : ℝ)..1, f (x, y)) := |
| 111 | continuous_parameter_interval (g := fun p : ℝ × ℝ => f (p.2, p.1)) |
| 112 | (hf.comp (continuous_snd.prodMk continuous_fst)) (by norm_num) |
| 113 | have hcg : Continuous (fun y => ∫ x in (0 : ℝ)..1, g (x, y)) := |
| 114 | continuous_parameter_interval (g := fun p : ℝ × ℝ => g (p.2, p.1)) |
| 115 | (hg.comp (continuous_snd.prodMk continuous_fst)) (by norm_num) |
| 116 | have hx (y : ℝ) : (∫ x in (0 : ℝ)..1, f (x, y) + g (x, y)) = |
| 117 | (∫ x in (0 : ℝ)..1, f (x, y)) + ∫ x in (0 : ℝ)..1, g (x, y) := |
| 118 | intervalIntegral.integral_add |
| 119 | ((hf.comp (continuous_id.prodMk continuous_const)).intervalIntegrable _ _) |
| 120 | ((hg.comp (continuous_id.prodMk continuous_const)).intervalIntegrable _ _) |
| 121 | unfold torusMean |
| 122 | simp_rw [hx] |
| 123 | exact intervalIntegral.integral_add (hcf.intervalIntegrable _ _) (hcg.intervalIntegrable _ _) |
| 124 | |
| 125 | theorem torusMean_sub {f g : Plane → F} (hf : Continuous f) (hg : Continuous g) : |
| 126 | torusMean (fun Y => f Y - g Y) = torusMean f - torusMean g := by |
| 127 | simp only [sub_eq_add_neg] |
| 128 | rw [torusMean_add hf hg.fun_neg, torusMean_neg] |
| 129 | |
| 130 | /-- The torus and radial averages commute as actual iterated integrals. -/ |
| 131 | theorem torusMean_intervalIntegral {g : State → F} (hg : Continuous g) |
| 132 | {a b : ℝ} (hab : a ≤ b) : |
| 133 | torusMean (fun Y => ∫ s in a..b, g (s, Y)) = ∫ s in a..b, sliceMean g s := by |
| 134 | have hx (y : ℝ) : (∫ x in (0 : ℝ)..1, ∫ s in a..b, g (s, (x, y))) = |
| 135 | ∫ s in a..b, ∫ x in (0 : ℝ)..1, g (s, (x, y)) := by |
| 136 | exact intervalIntegral_comm (g := fun p : Plane => g (p.1, (p.2, y))) |
| 137 | (hg.comp (continuous_fst.prodMk (continuous_snd.prodMk continuous_const))) hab (by norm_num) |
| 138 | have hc : Continuous (fun p : Plane => ∫ x in (0 : ℝ)..1, g (p.1, (x, p.2))) := by |
| 139 | exact continuous_parameter_interval (g := fun p : Plane × ℝ => g (p.1.1, (p.2, p.1.2))) |
| 140 | (hg.comp (continuous_fst.fst.prodMk (continuous_snd.prodMk continuous_fst.snd))) |
| 141 | (by norm_num : (0 : ℝ) ≤ 1) |
| 142 | change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, ∫ s in a..b, g (s, (x, y))) = _ |
| 143 | simp_rw [hx] |
| 144 | exact intervalIntegral_comm hc hab (by norm_num) |
| 145 | |
| 146 | /-- The shifted total integral has exactly the radially integrated source mean. -/ |
| 147 | theorem torusMean_totalIntegral {a b M : ℝ} {v : Plane} {f : State → F} |
| 148 | (hab : a ≤ b) (hf : Continuous f) (hp : ∀ U, TorusPeriodic (fun Y => f (U, Y))) |
| 149 | (hs : RadialAlias.RadiallySupported a b f) (U : ℝ) : |
| 150 | sliceMean (TransportPrimitive.totalIntegral M v f) U = ∫ s in a..b, sliceMean f s := by |
| 151 | have heq : (fun Y => TransportPrimitive.totalIntegral M v f (U, Y)) = |
| 152 | (fun Y => ∫ s in a..b, f (s, Y + (M * (s - U)) • v)) := by |
| 153 | funext Y |
| 154 | exact TransportPrimitive.totalIntegral_eq_radialInterval hf hs (U, Y) |
| 155 | have hc : Continuous (fun z : State => f (z.1, z.2 + (M * (z.1 - U)) • v)) := by |
| 156 | exact hf.comp (continuous_fst.prodMk |
| 157 | (continuous_snd.add ((continuous_const.mul (continuous_fst.sub continuous_const)).smul |
| 158 | continuous_const))) |
| 159 | change torusMean (fun Y => TransportPrimitive.totalIntegral M v f (U, Y)) = _ |
| 160 | rw [heq, torusMean_intervalIntegral hc hab] |
| 161 | apply intervalIntegral.integral_congr |
| 162 | intro s _ |
| 163 | exact torusMean_translate (hp s) ((M * (s - U)) • v) |
| 164 | |
| 165 | theorem totalIntegral_periodic {M : ℝ} {v : Plane} {f : State → F} |
| 166 | (hp : ∀ U, TorusPeriodic (fun Y => f (U, Y))) : |
| 167 | ∀ U, TorusPeriodic (fun Y => TransportPrimitive.totalIntegral M v f (U, Y)) := by |
| 168 | intro U Y k |
| 169 | apply integral_congr_ae |
| 170 | filter_upwards [] with u |
| 171 | change f (U + u, (Y + ((k.1 : ℝ), (k.2 : ℝ))) + (M * u) • v) = |
| 172 | f (U + u, Y + (M * u) • v) |
| 173 | rw [add_right_comm Y ((k.1 : ℝ), (k.2 : ℝ))] |
| 174 | exact hp (U + u) (Y + (M * u) • v) k |
| 175 | |
| 176 | theorem cutoffAlias_periodic {χ : ℝ → ℝ} {M : ℝ} {v : Plane} {f : State → F} |
| 177 | (hp : ∀ U, TorusPeriodic (fun Y => f (U, Y))) : |
| 178 | ∀ U, TorusPeriodic (fun Y => cutoffAlias χ M v f (U, Y)) := by |
| 179 | intro U Y k |
| 180 | exact congrArg (fun q => deriv χ U • q) (totalIntegral_periodic hp U Y k) |
| 181 | |
| 182 | /-- The exact defect is supported in the transition interval of the cutoff, |
| 183 | which may be strictly inside the radial support interval of the source. -/ |
| 184 | theorem cutoffAlias_supported_on_transition {c d M : ℝ} {v : Plane} {f : State → F} |
| 185 | {χ : ℝ → ℝ} (hleft : ∀ u ≤ c, χ u = 0) (hright : ∀ u, d ≤ u → χ u = 1) : |
| 186 | RadialAlias.RadiallySupported c d (cutoffAlias χ M v f) := by |
| 187 | intro z hz |
| 188 | have hl : c ≤ z.1 := by |
| 189 | by_contra hn |
| 190 | have heq : χ =ᶠ[𝓝 z.1] (fun _ => 0) := |
| 191 | (eventually_lt_nhds (lt_of_not_ge hn)).mono (fun u hu => hleft u hu.le) |
| 192 | have hd : deriv χ z.1 = 0 := by simpa using heq.deriv_eq |
| 193 | exact hz (by simp only [cutoffAlias, hd, zero_smul]) |
| 194 | have hr : z.1 ≤ d := by |
| 195 | by_contra hn |
| 196 | have heq : χ =ᶠ[𝓝 z.1] (fun _ => 1) := |
| 197 | (eventually_gt_nhds (lt_of_not_ge hn)).mono (fun u hu => hright u hu.le) |
| 198 | have hd : deriv χ z.1 = 0 := by simpa using heq.deriv_eq |
| 199 | exact hz (by simp only [cutoffAlias, hd, zero_smul]) |
| 200 | exact ⟨hl, hr⟩ |
| 201 | |
| 202 | theorem cutoffAlias_zero_mean_of_integratedMean_zero {a b M : ℝ} {v : Plane} |
| 203 | {f : State → F} (χ : ℝ → ℝ) (hab : a ≤ b) (hf : Continuous f) |
| 204 | (hp : ∀ U, TorusPeriodic (fun Y => f (U, Y))) |
| 205 | (hs : RadialAlias.RadiallySupported a b f) |
| 206 | (hm : (∫ s in a..b, sliceMean f s) = 0) (U : ℝ) : |
| 207 | sliceMean (cutoffAlias χ M v f) U = 0 := by |
| 208 | change torusMean (fun Y => deriv χ U • TransportPrimitive.totalIntegral M v f (U, Y)) = 0 |
| 209 | rw [torusMean_smul] |
| 210 | change deriv χ U • sliceMean (TransportPrimitive.totalIntegral M v f) U = 0 |
| 211 | rw [torusMean_totalIntegral hab hf hp hs, hm, smul_zero] |
| 212 | |
| 213 | theorem cutoffAlias_zero_mean {a b M : ℝ} {v : Plane} {f : State → F} |
| 214 | (χ : ℝ → ℝ) (hab : a ≤ b) (hf : Continuous f) |
| 215 | (hp : ∀ U, TorusPeriodic (fun Y => f (U, Y))) |
| 216 | (hs : RadialAlias.RadiallySupported a b f) (hm : ∀ U, sliceMean f U = 0) (U : ℝ) : |
| 217 | sliceMean (cutoffAlias χ M v f) U = 0 := by |
| 218 | apply cutoffAlias_zero_mean_of_integratedMean_zero χ hab hf hp hs _ U |
| 219 | simp only [hm, intervalIntegral.integral_zero] |
| 220 | |
| 221 | /-- The alias is an exact term in the constructed inverse identity. -/ |
| 222 | theorem transport_compact_eq_sub_alias [CompleteSpace F] {a b M : ℝ} {v : Plane} |
| 223 | {f : State → F} {χ : ℝ → ℝ} (hχ : ContDiff ℝ ∞ χ) |
| 224 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) (z : State) : |
| 225 | TransportPrimitive.fixedDeriv (1, M • v) (TransportPrimitive.compactIntegral χ M v f) z = |
| 226 | f z - cutoffAlias χ M v f z := |
| 227 | TransportPrimitive.transport_compactIntegral hχ hf hs z |
| 228 | |
| 229 | theorem iteratedFDeriv_periodic {f : State → F} |
| 230 | (hp : ∀ U, TorusPeriodic (fun Y => f (U, Y))) (n : ℕ) : |
| 231 | ∀ U, TorusPeriodic (fun Y => iteratedFDeriv ℝ n f (U, Y)) := by |
| 232 | intro U Y k |
| 233 | have heq : (fun z : State => f (z + (0, ((k.1 : ℝ), (k.2 : ℝ))))) = f := by |
| 234 | funext z |
| 235 | change f (z.1 + 0, z.2 + ((k.1 : ℝ), (k.2 : ℝ))) = f z |
| 236 | simpa only [add_zero] using hp z.1 z.2 k |
| 237 | have h := congrArg (fun g : State → F => iteratedFDeriv ℝ n g (U, Y)) heq |
| 238 | rw [iteratedFDeriv_comp_add_right] at h |
| 239 | simpa only [Prod.mk_add_mk, add_zero] using h |
| 240 | |
| 241 | /-- Actual smooth periodic fields have bounded finite prefixes of full Fréchet |
| 242 | jets on every compact radial slab. -/ |
| 243 | theorem periodic_finiteJet_bound {f : State → F} (hf : ContDiff ℝ ∞ f) |
| 244 | (hp : ∀ U, TorusPeriodic (fun Y => f (U, Y))) (a b : ℝ) (m : ℕ) : |
| 245 | ∃ C : ℝ, 0 ≤ C ∧ ∀ j ≤ m, ∀ U ∈ Icc a b, ∀ Y : Plane, |
| 246 | ‖iteratedFDeriv ℝ j f (U, Y)‖ ≤ C := by |
| 247 | let K : Set State := Icc a b ×ˢ (Icc (0 : ℝ) 1 ×ˢ Icc (0 : ℝ) 1) |
| 248 | have hK : IsCompact K := isCompact_Icc.prod (isCompact_Icc.prod isCompact_Icc) |
| 249 | have hc : Continuous (fun z : State => ∑ j ∈ Finset.range (m + 1), ‖iteratedFDeriv ℝ j f z‖) := |
| 250 | continuous_finsetSum _ (fun j _ => (TransportPrimitive.iteratedFDeriv_contDiff hf j).continuous.norm) |
| 251 | obtain ⟨C, hC⟩ := hK.exists_bound_of_continuousOn hc.continuousOn |
| 252 | refine ⟨max C 0, le_max_right _ _, ?_⟩ |
| 253 | intro j hj U hU Y |
| 254 | let k : Frequency := (-⌊Y.1⌋, -⌊Y.2⌋) |
| 255 | let Z : Plane := Y + ((k.1 : ℝ), (k.2 : ℝ)) |
| 256 | have hZ : Z ∈ Icc (0 : ℝ) 1 ×ˢ Icc (0 : ℝ) 1 := by |
| 257 | constructor |
| 258 | · simpa only [Z, k, Prod.fst_add, Prod.fst, Int.cast_neg, ← sub_eq_add_neg, Int.fract] |
| 259 | using (show Int.fract Y.1 ∈ Icc (0 : ℝ) 1 from |
| 260 | ⟨Int.fract_nonneg _, (Int.fract_lt_one _).le⟩) |
| 261 | · simpa only [Z, k, Prod.snd_add, Prod.snd, Int.cast_neg, ← sub_eq_add_neg, Int.fract] |
| 262 | using (show Int.fract Y.2 ∈ Icc (0 : ℝ) 1 from |
| 263 | ⟨Int.fract_nonneg _, (Int.fract_lt_one _).le⟩) |
| 264 | have hperiod : iteratedFDeriv ℝ j f (U, Z) = iteratedFDeriv ℝ j f (U, Y) := |
| 265 | iteratedFDeriv_periodic hp j U Y k |
| 266 | rw [← hperiod] |
| 267 | have hj' : j ∈ Finset.range (m + 1) := Finset.mem_range.mpr (Nat.lt_succ_of_le hj) |
| 268 | calc |
| 269 | _ ≤ ∑ i ∈ Finset.range (m + 1), ‖iteratedFDeriv ℝ i f (U, Z)‖ := |
| 270 | Finset.single_le_sum (fun i _ => norm_nonneg _) hj' |
| 271 | _ ≤ ‖∑ i ∈ Finset.range (m + 1), ‖iteratedFDeriv ℝ i f (U, Z)‖‖ := Real.le_norm_self _ |
| 272 | _ ≤ C := hC (U, Z) ⟨hU, hZ⟩ |
| 273 | _ ≤ max C 0 := le_max_left _ _ |
| 274 | |
| 275 | variable [CompleteSpace F] |
| 276 | |
| 277 | theorem cutoffAlias_smooth {a b M : ℝ} {v : Plane} {f : State → F} {χ : ℝ → ℝ} |
| 278 | (hχ : ContDiff ℝ ∞ χ) (hf : ContDiff ℝ ∞ f) |
| 279 | (hs : RadialAlias.RadiallySupported a b f) : |
| 280 | ContDiff ℝ ∞ (cutoffAlias χ M v f) := |
| 281 | (((contDiff_infty_iff_deriv.mp hχ).2).comp contDiff_fst).smul |
| 282 | (TransportPrimitive.totalIntegral_contDiff hf hs) |
| 283 | |
| 284 | theorem cutoffAlias_supported {a b M : ℝ} {v : Plane} {f : State → F} {χ : ℝ → ℝ} |
| 285 | (hχ : ContDiff ℝ ∞ χ) (hf : ContDiff ℝ ∞ f) |
| 286 | (hs : RadialAlias.RadiallySupported a b f) |
| 287 | (hleft : ∀ u ≤ a, χ u = 0) (hright : ∀ u, b ≤ u → χ u = 1) : |
| 288 | RadialAlias.RadiallySupported a b (cutoffAlias χ M v f) := by |
| 289 | have hsc := TransportPrimitive.compactIntegral_supported (M := M) (v := v) |
| 290 | hf.continuous hs hleft hright |
| 291 | have hsd := TransportPrimitive.fixedDeriv_supported hsc (1, M • v) |
| 292 | intro z hz |
| 293 | by_contra hzn |
| 294 | have hfz : f z = 0 := by |
| 295 | by_contra hfz |
| 296 | exact hzn (hs hfz) |
| 297 | have hdz : TransportPrimitive.fixedDeriv (1, M • v) |
| 298 | (TransportPrimitive.compactIntegral χ M v f) z = 0 := by |
| 299 | by_contra hdz |
| 300 | exact hzn (hsd hdz) |
| 301 | have heq := transport_compact_eq_sub_alias (M := M) (v := v) hχ hf hs z |
| 302 | have ha : -cutoffAlias χ M v f z = 0 := by simpa [hfz, hdz] using heq.symm |
| 303 | exact hz (neg_eq_zero.mp ha) |
| 304 | |
| 305 | /-- Before using oscillation, every finite prefix of alias jets has a bound |
| 306 | uniform in both the frequency and the translation direction. -/ |
| 307 | theorem cutoffAlias_finiteJet_bound {a b : ℝ} {f : State → F} {χ : ℝ → ℝ} |
| 308 | (hab : a ≤ b) (hχ : ContDiff ℝ ∞ χ) (hf : ContDiff ℝ ∞ f) |
| 309 | (hp : ∀ U, TorusPeriodic (fun Y => f (U, Y))) |
| 310 | (hs : RadialAlias.RadiallySupported a b f) |
| 311 | (hleft : ∀ u ≤ a, χ u = 0) (hright : ∀ u, b ≤ u → χ u = 1) (m : ℕ) : |
| 312 | ∃ C : ℝ, 0 ≤ C ∧ ∀ M : ℝ, ∀ v : Plane, ∀ j ≤ m, ∀ z : State, |
| 313 | ‖iteratedFDeriv ℝ j (cutoffAlias χ M v f) z‖ ≤ C := by |
| 314 | obtain ⟨A, hA, hsource⟩ := periodic_finiteJet_bound hf hp a b m |
| 315 | have hc : ContDiff ℝ ∞ (fun z : State => deriv χ z.1) := |
| 316 | ((contDiff_infty_iff_deriv.mp hχ).2).comp contDiff_fst |
| 317 | obtain ⟨B, hB, hcutoff⟩ := periodic_finiteJet_bound hc (fun _ _ _ => rfl) a b m |
| 318 | have hL : 0 ≤ b - a := sub_nonneg.mpr hab |
| 319 | refine ⟨(2 : ℝ) ^ m * (B * (A * (b - a))), by positivity, ?_⟩ |
| 320 | intro M v j hj z |
| 321 | by_cases hz : z.1 ∈ Icc a b |
| 322 | · have hb := norm_iteratedFDeriv_smul_le (𝕜 := ℝ) hc |
| 323 | (TransportPrimitive.totalIntegral_contDiff (M := M) (v := v) hf hs) z |
| 324 | (n := j) (by exact_mod_cast (le_top : (j : ℕ∞) ≤ ⊤)) |
| 325 | change ‖iteratedFDeriv ℝ j (cutoffAlias χ M v f) z‖ ≤ _ at hb |
| 326 | calc |
| 327 | _ ≤ ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * |
| 328 | ‖iteratedFDeriv ℝ i (fun y : State => deriv χ y.1) z‖ * |
| 329 | ‖iteratedFDeriv ℝ (j - i) (TransportPrimitive.totalIntegral M v f) z‖ := hb |
| 330 | _ ≤ ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * B * (A * (b - a)) := by |
| 331 | apply Finset.sum_le_sum |
| 332 | intro i hi |
| 333 | have hi' : i ≤ m := (Nat.le_of_lt_succ (Finset.mem_range.mp hi)).trans hj |
| 334 | have hni : j - i ≤ m := (Nat.sub_le _ _).trans hj |
| 335 | exact mul_le_mul |
| 336 | (mul_le_mul_of_nonneg_left (hcutoff i hi' z.1 hz z.2) (Nat.cast_nonneg _)) |
| 337 | (TransportPrimitive.iteratedFDeriv_totalIntegral_norm_le hab hf hs (j - i) |
| 338 | (hsource (j - i) hni) z) |
| 339 | (norm_nonneg _) (mul_nonneg (Nat.cast_nonneg _) hB) |
| 340 | _ = (2 : ℝ) ^ j * (B * (A * (b - a))) := by |
| 341 | have hsum : (∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ)) = (2 : ℝ) ^ j := by |
| 342 | exact_mod_cast Nat.sum_range_choose j |
| 343 | rw [← hsum, Finset.sum_mul] |
| 344 | apply Finset.sum_congr rfl |
| 345 | intro i _ |
| 346 | ring |
| 347 | _ ≤ (2 : ℝ) ^ m * (B * (A * (b - a))) := by |
| 348 | exact mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num) hj) |
| 349 | (by positivity) |
| 350 | · have hsj := TransportPrimitive.iteratedFDeriv_supported |
| 351 | (cutoffAlias_supported (M := M) (v := v) hχ hf hs hleft hright) j |
| 352 | have heq : iteratedFDeriv ℝ j (cutoffAlias χ M v f) z = 0 := by |
| 353 | by_contra hnz |
| 354 | exact hz (hsj hnz) |
| 355 | rw [heq, norm_zero] |
| 356 | positivity |
| 357 | |
| 358 | end Averages |
| 359 | |
| 360 | section IntegrationByParts |
| 361 | |
| 362 | theorem sourceJet_smooth (J : (State → ℂ) → State → ℂ) (f : State → ℂ) (p : ℕ) |
| 363 | (hf : ContDiff ℝ ∞ f) |
| 364 | (hJ : ∀ n < p, ContDiff ℝ ∞ (J (RadialAlias.sourceJet J f n))) : |
| 365 | ContDiff ℝ ∞ (RadialAlias.sourceJet J f p) := by |
| 366 | cases p with |
| 367 | | zero => exact hf |
| 368 | | succ p => |
| 369 | rw [RadialAlias.sourceJet_succ] |
| 370 | exact TransportPrimitive.fixedDeriv_contDiff (hJ p (Nat.lt_succ_self p)) (1, 0) |
| 371 | |
| 372 | /-- The existing repeated IBP identity, now for the actual U-dependent total |
| 373 | integral. No alias is discarded. -/ |
| 374 | theorem totalIntegral_sourceJet {a b M : ℝ} {v : Plane} |
| 375 | (J : (State → ℂ) → State → ℂ) (f : State → ℂ) (p : ℕ) (hM : M ≠ 0) |
| 376 | (hf : ContDiff ℝ ∞ f) (hsf : RadialAlias.RadiallySupported a b f) |
| 377 | (hJ : ∀ n < p, ContDiff ℝ ∞ (J (RadialAlias.sourceJet J f n))) |
| 378 | (hsJ : ∀ n < p, RadialAlias.RadiallySupported a b (J (RadialAlias.sourceJet J f n))) |
| 379 | (hr : ∀ n < p, RadialAlias.directionalDeriv v (J (RadialAlias.sourceJet J f n)) = |
| 380 | RadialAlias.sourceJet J f n) (z : State) : |
| 381 | TransportPrimitive.totalIntegral M v f z = (-M⁻¹) ^ p • |
| 382 | TransportPrimitive.totalIntegral M v (RadialAlias.sourceJet J f p) z := by |
| 383 | rw [TransportPrimitive.totalIntegral_eq_wholeAlias hf.continuous hsf, |
| 384 | TransportPrimitive.totalIntegral_eq_wholeAlias (sourceJet_smooth J f p hf hJ).continuous |
| 385 | (RadialAlias.sourceJet_radiallySupported J f p hsf hsJ)] |
| 386 | exact RadialAlias.wholeAlias_sourceJet J f p hM |
| 387 | (fun n hn => (hJ n hn).of_le (by simp)) hsJ hr |
| 388 | |
| 389 | theorem cutoffAlias_sourceJet {a b M : ℝ} {v : Plane} |
| 390 | (χ : ℝ → ℝ) (J : (State → ℂ) → State → ℂ) (f : State → ℂ) (p : ℕ) (hM : M ≠ 0) |
| 391 | (hf : ContDiff ℝ ∞ f) (hsf : RadialAlias.RadiallySupported a b f) |
| 392 | (hJ : ∀ n < p, ContDiff ℝ ∞ (J (RadialAlias.sourceJet J f n))) |
| 393 | (hsJ : ∀ n < p, RadialAlias.RadiallySupported a b (J (RadialAlias.sourceJet J f n))) |
| 394 | (hr : ∀ n < p, RadialAlias.directionalDeriv v (J (RadialAlias.sourceJet J f n)) = |
| 395 | RadialAlias.sourceJet J f n) (z : State) : |
| 396 | cutoffAlias χ M v f z = (-M⁻¹) ^ p • cutoffAlias χ M v (RadialAlias.sourceJet J f p) z := by |
| 397 | rw [cutoffAlias, totalIntegral_sourceJet J f p hM hf hsf hJ hsJ hr] |
| 398 | exact smul_comm _ _ _ |
| 399 | |
| 400 | /-- Differentiate the exact scalar IBP identity. This controls full derivative |
| 401 | tensors, including every ordinary mixed coordinate derivative. -/ |
| 402 | theorem iteratedFDeriv_cutoffAlias_sourceJet {a b M : ℝ} {v : Plane} |
| 403 | {χ : ℝ → ℝ} (hχ : ContDiff ℝ ∞ χ) |
| 404 | (J : (State → ℂ) → State → ℂ) (f : State → ℂ) (p : ℕ) (hM : M ≠ 0) |
| 405 | (hf : ContDiff ℝ ∞ f) (hsf : RadialAlias.RadiallySupported a b f) |
| 406 | (hJ : ∀ n < p, ContDiff ℝ ∞ (J (RadialAlias.sourceJet J f n))) |
| 407 | (hsJ : ∀ n < p, RadialAlias.RadiallySupported a b (J (RadialAlias.sourceJet J f n))) |
| 408 | (hr : ∀ n < p, RadialAlias.directionalDeriv v (J (RadialAlias.sourceJet J f n)) = |
| 409 | RadialAlias.sourceJet J f n) (m : ℕ) (z : State) : |
| 410 | iteratedFDeriv ℝ m (cutoffAlias χ M v f) z = (-M⁻¹) ^ p • |
| 411 | iteratedFDeriv ℝ m (cutoffAlias χ M v (RadialAlias.sourceJet J f p)) z := by |
| 412 | have heq := funext (cutoffAlias_sourceJet χ J f p hM hf hsf hJ hsJ hr) |
| 413 | rw [heq] |
| 414 | exact iteratedFDeriv_const_smul_apply' |
| 415 | (((cutoffAlias_smooth hχ (sourceJet_smooth J f p hf hJ) |
| 416 | (RadialAlias.sourceJet_radiallySupported J f p hsf hsJ)).of_le |
| 417 | (by exact_mod_cast (le_top : (m : ℕ∞) ≤ ⊤))).contDiffAt) |
| 418 | |
| 419 | end IntegrationByParts |
| 420 | |
| 421 | section ActualFourierInverse |
| 422 | |
| 423 | open ParametricTorusInverse |
| 424 | |
| 425 | /-- Remove the actual full torus mean at each fixed radial coordinate. -/ |
| 426 | noncomputable def nonbarPart (f : State → ℂ) (z : State) : ℂ := f z - mean f z.1 |
| 427 | |
| 428 | theorem nonbarPart_smooth {f : State → ℂ} (hf : ContDiff ℝ ∞ f) : |
| 429 | ContDiff ℝ ∞ (nonbarPart f) := |
| 430 | hf.sub ((coefficient_smooth hf 0).comp contDiff_fst) |
| 431 | |
| 432 | theorem nonbarPart_periodic {f : State → ℂ} (hp : ParametricTorusInverse.Periodic f) : |
| 433 | ParametricTorusInverse.Periodic (nonbarPart f) := by |
| 434 | intro U Y k |
| 435 | exact congrArg (fun q => q - mean f U) (hp U Y k) |
| 436 | |
| 437 | theorem nonbarPart_zeroMean {f : State → ℂ} (hf : ContDiff ℝ ∞ f) : |
| 438 | ZeroMean (nonbarPart f) := by |
| 439 | intro U |
| 440 | rw [mean_eq_integral] |
| 441 | change torusMean (fun Y => f (U, Y) - mean f U) = 0 |
| 442 | rw [torusMean_sub (f := fun Y => f (U, Y)) (g := fun _ => mean f U) |
| 443 | (hf.continuous.comp (continuous_const.prodMk continuous_id)) continuous_const, torusMean_const] |
| 444 | change sliceMean f U - mean f U = 0 |
| 445 | have heq : sliceMean f U = mean f U := (mean_eq_integral f U).symm |
| 446 | rw [heq, sub_self] |
| 447 | |
| 448 | theorem nonbarPart_radiallySupported {a b : ℝ} {f : State → ℂ} |
| 449 | (hs : RadialAlias.RadiallySupported a b f) : |
| 450 | RadialAlias.RadiallySupported a b (nonbarPart f) := by |
| 451 | intro z hz |
| 452 | by_contra hn |
| 453 | have hsource : ∀ Y : Plane, f (z.1, Y) = 0 := by |
| 454 | intro Y |
| 455 | by_contra hY |
| 456 | exact hn (@hs (z.1, Y) hY) |
| 457 | have hmean : mean f z.1 = 0 := by |
| 458 | rw [mean_eq_integral] |
| 459 | simp only [hsource, intervalIntegral.integral_zero] |
| 460 | exact hz (by change f z - mean f z.1 = 0; rw [hmean, sub_zero]; exact hsource z.2) |
| 461 | |
| 462 | theorem totalIntegral_nonbarPart {a b M : ℝ} {v : Plane} {f : State → ℂ} |
| 463 | (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 464 | (hm : (∫ U in a..b, sliceMean f U) = 0) (z : State) : |
| 465 | TransportPrimitive.totalIntegral M v (nonbarPart f) z = |
| 466 | TransportPrimitive.totalIntegral M v f z := by |
| 467 | rw [TransportPrimitive.totalIntegral_eq_radialInterval (nonbarPart_smooth hf).continuous |
| 468 | (nonbarPart_radiallySupported hs), |
| 469 | TransportPrimitive.totalIntegral_eq_radialInterval hf.continuous hs] |
| 470 | change (∫ U in a..b, f (U, z.2 + (M * (U - z.1)) • v) - mean f U) = _ |
| 471 | have hc : Continuous (fun U => f (U, z.2 + (M * (U - z.1)) • v)) := |
| 472 | hf.continuous.comp (continuous_id.prodMk |
| 473 | (continuous_const.add ((continuous_const.mul (continuous_id.sub continuous_const)).smul |
| 474 | continuous_const))) |
| 475 | rw [intervalIntegral.integral_sub |
| 476 | (f := fun U => f (U, z.2 + (M * (U - z.1)) • v)) (g := fun U => mean f U) |
| 477 | (hc.intervalIntegrable _ _) |
| 478 | ((coefficient_smooth hf 0).continuous.intervalIntegrable _ _)] |
| 479 | have hm' : (∫ U in a..b, mean f U) = 0 := by |
| 480 | simpa only [mean_eq_integral, sliceMean, torusMean] using hm |
| 481 | rw [hm', sub_zero] |
| 482 | |
| 483 | /-- If the integrated bar vanishes, subtracting the bar does not change the |
| 484 | alias at all. This is the exact reduction used for the pressure source. -/ |
| 485 | theorem cutoffAlias_eq_nonbarPart {a b M : ℝ} {v : Plane} {f : State → ℂ} |
| 486 | (χ : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) |
| 487 | (hm : (∫ U in a..b, sliceMean f U) = 0) : |
| 488 | cutoffAlias χ M v f = cutoffAlias χ M v (nonbarPart f) := by |
| 489 | funext z |
| 490 | unfold cutoffAlias |
| 491 | rw [totalIntegral_nonbarPart hf hs hm] |
| 492 | |
| 493 | /-- The successive slow derivatives of actual directional Fourier inverses. -/ |
| 494 | noncomputable def fourierSourceJet (d : Direction) (f : State → ℂ) (p : ℕ) : State → ℂ := |
| 495 | RadialAlias.sourceJet (inverse d) f p |
| 496 | |
| 497 | /-- The interleaved construction is exactly the manuscript's slow derivative |
| 498 | of the iterated Fourier inverse, because the actual operators commute. -/ |
| 499 | theorem fourierSourceJet_eq_parameterJet (d : Direction) {f : State → ℂ} |
| 500 | (hf : ContDiff ℝ ∞ f) (hp : ParametricTorusInverse.Periodic f) (p : ℕ) : |
| 501 | fourierSourceJet d f p = parameterJet p (iterateInverse d p f) := by |
| 502 | induction p with |
| 503 | | zero => rfl |
| 504 | | succ p ih => |
| 505 | have heq : fourierSourceJet d f (p + 1) = parameterPartial (inverse d (fourierSourceJet d f p)) := |
| 506 | RadialAlias.sourceJet_succ (inverse d) f p |
| 507 | rw [heq, ih, parameterJet_succ, iterateInverse_succ, |
| 508 | parameterJet_inverse d (iterateInverse_smooth d hf hp p) (iterateInverse_periodic d hp p)] |
| 509 | |
| 510 | theorem inverse_radiallySupported (d : Direction) {a b : ℝ} {f : State → ℂ} |
| 511 | (hs : RadialAlias.RadiallySupported a b f) : |
| 512 | RadialAlias.RadiallySupported a b (inverse d f) := by |
| 513 | have hh : ∀ U, U ∉ Icc a b → ∀ Y, f (U, Y) = 0 := by |
| 514 | intro U hU Y |
| 515 | by_contra hn |
| 516 | exact hU (hs hn) |
| 517 | have hi := inverse_preserves_parameter_support d f (Icc a b) hh |
| 518 | intro z hz |
| 519 | by_contra hn |
| 520 | exact hz (hi z.1 hn z.2) |
| 521 | |
| 522 | theorem fourierSourceJet_properties (d : Direction) {a b : ℝ} {f : State → ℂ} |
| 523 | (hf : ContDiff ℝ ∞ f) (hp : ParametricTorusInverse.Periodic f) |
| 524 | (hm : ZeroMean f) (hs : RadialAlias.RadiallySupported a b f) (p : ℕ) : |
| 525 | ContDiff ℝ ∞ (fourierSourceJet d f p) ∧ |
| 526 | ParametricTorusInverse.Periodic (fourierSourceJet d f p) ∧ |
| 527 | ZeroMean (fourierSourceJet d f p) ∧ |
| 528 | RadialAlias.RadiallySupported a b (fourierSourceJet d f p) := by |
| 529 | induction p with |
| 530 | | zero => exact ⟨hf, hp, hm, hs⟩ |
| 531 | | succ p ih => |
| 532 | have heq : fourierSourceJet d f (p + 1) = parameterPartial (inverse d (fourierSourceJet d f p)) := |
| 533 | RadialAlias.sourceJet_succ (inverse d) f p |
| 534 | rw [heq] |
| 535 | have hi := inverse_smooth d ih.1 ih.2.1 |
| 536 | exact ⟨parameterPartial_smooth hi, parameterPartial_periodic (inverse_periodic d _), |
| 537 | parameterPartial_zeroMean hi (inverse_zeroMean d ih.1 ih.2.1), |
| 538 | RadialAlias.radialSupport_slowDeriv (inverse_radiallySupported d ih.2.2.2)⟩ |
| 539 | |
| 540 | /-- Exact arbitrary-order IBP with the Fourier inverse constructed from the |
| 541 | given source's own coefficients. No antiderivative or decay premise remains. -/ |
| 542 | theorem cutoffAlias_fourierSourceJet (d : Direction) {a b M : ℝ} {f : State → ℂ} |
| 543 | (χ : ℝ → ℝ) (hf : ContDiff ℝ ∞ f) (hp : ParametricTorusInverse.Periodic f) |
| 544 | (hm : ZeroMean f) (hs : RadialAlias.RadiallySupported a b f) |
| 545 | (p : ℕ) (hM : M ≠ 0) (z : State) : |
| 546 | cutoffAlias χ M (vector d) f z = (-M⁻¹) ^ p • |
| 547 | cutoffAlias χ M (vector d) (fourierSourceJet d f p) z := by |
| 548 | apply cutoffAlias_sourceJet χ (inverse d) f p hM hf hs |
| 549 | · intro n _ |
| 550 | have hn := fourierSourceJet_properties d hf hp hm hs n |
| 551 | exact inverse_smooth d hn.1 hn.2.1 |
| 552 | · intro n _ |
| 553 | exact inverse_radiallySupported d (fourierSourceJet_properties d hf hp hm hs n).2.2.2 |
| 554 | · intro n _ |
| 555 | have hn := fourierSourceJet_properties d hf hp hm hs n |
| 556 | exact inverse_solves d hn.1 hn.2.1 hn.2.2.1 |
| 557 | |
| 558 | /-- All fixed jets of the exact alias gain arbitrarily many inverse powers of |
| 559 | the frequency. The constant precedes the frequency, point, and jet index. -/ |
| 560 | theorem cutoffAlias_arbitrary_order (d : Direction) {a b : ℝ} {f : State → ℂ} |
| 561 | {χ : ℝ → ℝ} (hab : a ≤ b) (hχ : ContDiff ℝ ∞ χ) (hf : ContDiff ℝ ∞ f) |
| 562 | (hp : ParametricTorusInverse.Periodic f) (hm : ZeroMean f) |
| 563 | (hs : RadialAlias.RadiallySupported a b f) |
| 564 | (hleft : ∀ u ≤ a, χ u = 0) (hright : ∀ u, b ≤ u → χ u = 1) (m p : ℕ) : |
| 565 | ∃ C : ℝ, 0 ≤ C ∧ ∀ M : ℝ, M ≠ 0 → ∀ j ≤ m, ∀ z : State, |
| 566 | ‖iteratedFDeriv ℝ j (cutoffAlias χ M (vector d) f) z‖ ≤ C * (|M|⁻¹) ^ p := by |
| 567 | have hg := fourierSourceJet_properties d hf hp hm hs p |
| 568 | obtain ⟨C, hC, hb⟩ := cutoffAlias_finiteJet_bound hab hχ hg.1 hg.2.1 hg.2.2.2 |
| 569 | hleft hright m |
| 570 | refine ⟨C, hC, ?_⟩ |
| 571 | intro M hM j hj z |
| 572 | have heq := funext (cutoffAlias_fourierSourceJet d χ hf hp hm hs p hM) |
| 573 | rw [heq, iteratedFDeriv_const_smul_apply' |
| 574 | (((cutoffAlias_smooth hχ hg.1 hg.2.2.2).of_le |
| 575 | (by exact_mod_cast (le_top : (j : ℕ∞) ≤ ⊤))).contDiffAt)] |
| 576 | have hnorm : ‖((-M⁻¹) ^ p : ℝ) • |
| 577 | iteratedFDeriv ℝ j (cutoffAlias χ M (vector d) (fourierSourceJet d f p)) z‖ = |
| 578 | |(-M⁻¹) ^ p| * |
| 579 | ‖iteratedFDeriv ℝ j (cutoffAlias χ M (vector d) (fourierSourceJet d f p)) z‖ := |
| 580 | _root_.norm_smul ((-M⁻¹) ^ p : ℝ) |
| 581 | (iteratedFDeriv ℝ j (cutoffAlias χ M (vector d) (fourierSourceJet d f p)) z) |
| 582 | rw [hnorm, abs_pow, abs_neg, abs_inv, mul_comm] |
| 583 | exact mul_le_mul_of_nonneg_right (hb M (vector d) j hj z) |
| 584 | (pow_nonneg (inv_nonneg.mpr (abs_nonneg M)) p) |
| 585 | |
| 586 | theorem cutoffAlias_arbitrary_order_of_integratedMean_zero (d : Direction) |
| 587 | {a b : ℝ} {f : State → ℂ} {χ : ℝ → ℝ} |
| 588 | (hab : a ≤ b) (hχ : ContDiff ℝ ∞ χ) (hf : ContDiff ℝ ∞ f) |
| 589 | (hp : ParametricTorusInverse.Periodic f) (hs : RadialAlias.RadiallySupported a b f) |
| 590 | (hm : (∫ U in a..b, sliceMean f U) = 0) |
| 591 | (hleft : ∀ u ≤ a, χ u = 0) (hright : ∀ u, b ≤ u → χ u = 1) (m p : ℕ) : |
| 592 | ∃ C : ℝ, 0 ≤ C ∧ ∀ M : ℝ, M ≠ 0 → ∀ j ≤ m, ∀ z : State, |
| 593 | ‖iteratedFDeriv ℝ j (cutoffAlias χ M (vector d) f) z‖ ≤ C * (|M|⁻¹) ^ p := by |
| 594 | obtain ⟨C, hC, hb⟩ := cutoffAlias_arbitrary_order d hab hχ (nonbarPart_smooth hf) |
| 595 | (nonbarPart_periodic hp) (nonbarPart_zeroMean hf) (nonbarPart_radiallySupported hs) |
| 596 | hleft hright m p |
| 597 | refine ⟨C, hC, ?_⟩ |
| 598 | intro M hM j hj z |
| 599 | rw [cutoffAlias_eq_nonbarPart χ hf hs hm] |
| 600 | exact hb M hM j hj z |
| 601 | |
| 602 | /-- The square average is the normalized Haar average of the actual descent. -/ |
| 603 | theorem torusMean_eq_haar {f : Plane → ℂ} (hf : Continuous f) (hp : TorusPeriodic f) : |
| 604 | torusMean f = ∫ z, SmoothFourierData.descendContinuous f hf hp z ∂torusMeasure := by |
| 605 | rw [← SmoothFourierData.coefficient_zero_eq_mean] |
| 606 | exact (SmoothFourierData.coefficient_zero_eq_integral f).symm |
| 607 | |
| 608 | theorem cutoffAlias_haar_zero (d : Direction) {a b M : ℝ} {f : State → ℂ} |
| 609 | {χ : ℝ → ℝ} (hab : a ≤ b) (hχ : ContDiff ℝ ∞ χ) (hf : ContDiff ℝ ∞ f) |
| 610 | (hp : ParametricTorusInverse.Periodic f) (hm : ZeroMean f) |
| 611 | (hs : RadialAlias.RadiallySupported a b f) (U : ℝ) : |
| 612 | ∫ z, SmoothFourierData.descendContinuous (fun Y => cutoffAlias χ M (vector d) f (U, Y)) |
| 613 | ((cutoffAlias_smooth hχ hf hs).continuous.comp (continuous_const.prodMk continuous_id)) |
| 614 | (cutoffAlias_periodic hp U) z ∂torusMeasure = 0 := by |
| 615 | rw [← torusMean_eq_haar] |
| 616 | apply cutoffAlias_zero_mean χ hab hf.continuous hp hs _ U |
| 617 | intro u |
| 618 | exact (mean_eq_integral f u).symm.trans (hm u) |
| 619 | |
| 620 | end ActualFourierInverse |
| 621 | |
| 622 | section SmallScale |
| 623 | |
| 624 | /-- The actual chart slow scale is subpower relative to epsilon. Consequently |
| 625 | an arbitrary fixed slow loss can be absorbed into half of a positive epsilon |
| 626 | gain. The reciprocal-frequency premise alone would not imply this for an |
| 627 | unrestricted scale `S`. -/ |
| 628 | theorem inverse_frequency_eventually_small {M : ℕ → ℝ} {h κ A growth : ℝ} |
| 629 | (hh : 0 < h) (hκ : 0 < κ) |
| 630 | (hbound : ∀ᶠ n in atTop, |M n|⁻¹ ≤ |
| 631 | A * ChartScales.epsilon h n ^ κ * ChartScales.S n ^ growth) : |
| 632 | ∀ᶠ n in atTop, |M n|⁻¹ ≤ ChartScales.epsilon h n ^ (κ / 2) := by |
| 633 | have ht : Tendsto (fun n : ℕ => A * (ChartScales.S n ^ growth * |
| 634 | ChartScales.epsilon h n ^ (κ / 2))) atTop (𝓝 0) := by |
| 635 | simpa only [mul_zero] using |
| 636 | (ChartScales.slow_power_epsilon_tendsto_zero h hh growth (κ / 2) (half_pos hκ)).const_mul A |
| 637 | have hs : ∀ᶠ n : ℕ in atTop, A * (ChartScales.S n ^ growth * |
| 638 | ChartScales.epsilon h n ^ (κ / 2)) < 1 := |
| 639 | (tendsto_order.1 ht).2 1 zero_lt_one |
| 640 | filter_upwards [hbound, hs] with n hn hsn |
| 641 | have he : ChartScales.epsilon h n ^ κ = |
| 642 | ChartScales.epsilon h n ^ (κ / 2) * ChartScales.epsilon h n ^ (κ / 2) := by |
| 643 | rw [← Real.rpow_add (ChartScales.epsilon_pos h n)] |
| 644 | congr 1 |
| 645 | ring |
| 646 | calc |
| 647 | _ ≤ A * ChartScales.epsilon h n ^ κ * ChartScales.S n ^ growth := hn |
| 648 | _ = (A * (ChartScales.S n ^ growth * ChartScales.epsilon h n ^ (κ / 2))) * |
| 649 | ChartScales.epsilon h n ^ (κ / 2) := by rw [he]; ring |
| 650 | _ ≤ 1 * ChartScales.epsilon h n ^ (κ / 2) := |
| 651 | mul_le_mul_of_nonneg_right hsn.le (Real.rpow_nonneg (ChartScales.epsilon_pos h n).le _) |
| 652 | _ = _ := one_mul _ |
| 653 | |
| 654 | /-- For each requested epsilon power one fixed finite IBP order suffices. -/ |
| 655 | theorem inverse_frequency_power_le_epsilon {M : ℕ → ℝ} {h κ A growth : ℝ} |
| 656 | (hh : 0 < h) (hκ : 0 < κ) |
| 657 | (hbound : ∀ᶠ n in atTop, |M n|⁻¹ ≤ |
| 658 | A * ChartScales.epsilon h n ^ κ * ChartScales.S n ^ growth) (N : ℕ) : |
| 659 | ∃ p : ℕ, ∀ᶠ n in atTop, (|M n|⁻¹) ^ p ≤ ChartScales.epsilon h n ^ N := by |
| 660 | obtain ⟨p, hp⟩ := exists_nat_gt ((N : ℝ) / (κ / 2)) |
| 661 | have hNp : (N : ℝ) ≤ (κ / 2) * (p : ℝ) := by |
| 662 | have hp' := (div_lt_iff₀ (half_pos hκ)).mp hp |
| 663 | nlinarith |
| 664 | refine ⟨p, ?_⟩ |
| 665 | filter_upwards [inverse_frequency_eventually_small hh hκ hbound] with n hn |
| 666 | calc |
| 667 | _ ≤ (ChartScales.epsilon h n ^ (κ / 2)) ^ p := |
| 668 | pow_le_pow_left₀ (inv_nonneg.mpr (abs_nonneg _)) hn p |
| 669 | _ = ChartScales.epsilon h n ^ ((κ / 2) * (p : ℝ)) := |
| 670 | (Real.rpow_mul_natCast (ChartScales.epsilon_pos h n).le _ p).symm |
| 671 | _ ≤ ChartScales.epsilon h n ^ (N : ℝ) := |
| 672 | Real.rpow_le_rpow_of_exponent_ge (ChartScales.epsilon_pos h n) |
| 673 | (ChartScales.epsilon_le_one h hh.le n) hNp |
| 674 | _ = ChartScales.epsilon h n ^ N := Real.rpow_natCast _ _ |
| 675 | |
| 676 | /-- Uniform full-jet superflatness of the retained exact alias. Constants and |
| 677 | the eventual threshold may depend on the requested jet order and epsilon |
| 678 | power, but not on the frequency index, evaluation point, or smaller jet. -/ |
| 679 | theorem cutoffAlias_superflat (d : Direction) {a b : ℝ} {f : State → ℂ} |
| 680 | {χ : ℝ → ℝ} (hab : a ≤ b) (hχ : ContDiff ℝ ∞ χ) (hf : ContDiff ℝ ∞ f) |
| 681 | (hp : ParametricTorusInverse.Periodic f) (hm : ParametricTorusInverse.ZeroMean f) |
| 682 | (hs : RadialAlias.RadiallySupported a b f) |
| 683 | (hleft : ∀ u ≤ a, χ u = 0) (hright : ∀ u, b ≤ u → χ u = 1) |
| 684 | {M : ℕ → ℝ} {h κ A growth : ℝ} (hh : 0 < h) (hκ : 0 < κ) |
| 685 | (hM : ∀ᶠ n in atTop, M n ≠ 0) |
| 686 | (hbound : ∀ᶠ n in atTop, |M n|⁻¹ ≤ |
| 687 | A * ChartScales.epsilon h n ^ κ * ChartScales.S n ^ growth) (m N : ℕ) : |
| 688 | ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ n in atTop, ∀ j ≤ m, ∀ z : State, |
| 689 | ‖iteratedFDeriv ℝ j (cutoffAlias χ (M n) (vector d) f) z‖ ≤ |
| 690 | C * ChartScales.epsilon h n ^ N := by |
| 691 | obtain ⟨p, hpM⟩ := inverse_frequency_power_le_epsilon hh hκ hbound N |
| 692 | obtain ⟨C, hC, hCbound⟩ := cutoffAlias_arbitrary_order d hab hχ hf hp hm hs hleft hright m p |
| 693 | refine ⟨C, hC, ?_⟩ |
| 694 | filter_upwards [hM, hpM] with n hn hnM |
| 695 | intro j hj z |
| 696 | exact (hCbound (M n) hn j hj z).trans (mul_le_mul_of_nonneg_left hnM hC) |
| 697 | |
| 698 | theorem cutoffAlias_superflat_of_integratedMean_zero (d : Direction) |
| 699 | {a b : ℝ} {f : State → ℂ} {χ : ℝ → ℝ} |
| 700 | (hab : a ≤ b) (hχ : ContDiff ℝ ∞ χ) (hf : ContDiff ℝ ∞ f) |
| 701 | (hp : ParametricTorusInverse.Periodic f) (hs : RadialAlias.RadiallySupported a b f) |
| 702 | (hm : (∫ U in a..b, sliceMean f U) = 0) |
| 703 | (hleft : ∀ u ≤ a, χ u = 0) (hright : ∀ u, b ≤ u → χ u = 1) |
| 704 | {M : ℕ → ℝ} {h κ A growth : ℝ} (hh : 0 < h) (hκ : 0 < κ) |
| 705 | (hM : ∀ᶠ n in atTop, M n ≠ 0) |
| 706 | (hbound : ∀ᶠ n in atTop, |M n|⁻¹ ≤ |
| 707 | A * ChartScales.epsilon h n ^ κ * ChartScales.S n ^ growth) (m N : ℕ) : |
| 708 | ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ n in atTop, ∀ j ≤ m, ∀ z : State, |
| 709 | ‖iteratedFDeriv ℝ j (cutoffAlias χ (M n) (vector d) f) z‖ ≤ |
| 710 | C * ChartScales.epsilon h n ^ N := by |
| 711 | obtain ⟨C, hC, hb⟩ := cutoffAlias_superflat d hab hχ (nonbarPart_smooth hf) |
| 712 | (nonbarPart_periodic hp) (nonbarPart_zeroMean hf) (nonbarPart_radiallySupported hs) |
| 713 | hleft hright hh hκ hM hbound m N |
| 714 | refine ⟨C, hC, ?_⟩ |
| 715 | filter_upwards [hb] with n hn |
| 716 | intro j hj z |
| 717 | rw [cutoffAlias_eq_nonbarPart χ hf hs hm] |
| 718 | exact hn j hj z |
| 719 | |
| 720 | /-- Specialization to the manuscript's explicitly constructed radial |
| 721 | frequency, whose reciprocal bound is already proved in `ChartScales`. -/ |
| 722 | theorem radial_cutoffAlias_superflat {a b : ℝ} {f : State → ℂ} |
| 723 | {χ : ℝ → ℝ} (hab : a ≤ b) (hχ : ContDiff ℝ ∞ χ) (hf : ContDiff ℝ ∞ f) |
| 724 | (hp : ParametricTorusInverse.Periodic f) (hm : ParametricTorusInverse.ZeroMean f) |
| 725 | (hs : RadialAlias.RadiallySupported a b f) |
| 726 | (hleft : ∀ u ≤ a, χ u = 0) (hright : ∀ u, b ≤ u → χ u = 1) |
| 727 | {h : ℝ} (hh : 0 < h) (m N : ℕ) : |
| 728 | ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ n in atTop, ∀ j ≤ m, ∀ z : State, |
| 729 | ‖iteratedFDeriv ℝ j |
| 730 | (cutoffAlias χ (ChartScales.radialCoefficient h n) (vector .radial) f) z‖ ≤ |
| 731 | C * ChartScales.epsilon h n ^ N := by |
| 732 | apply cutoffAlias_superflat .radial (A := ChartScales.Lambda) (growth := ChartScales.rho) |
| 733 | hab hχ hf hp hm hs hleft hright hh |
| 734 | (show 0 < ChartScales.kappa by norm_num [ChartScales.kappa]) |
| 735 | (Filter.Eventually.of_forall (fun n => ne_of_gt (ChartScales.radialCoefficient_pos h n))) |
| 736 | _ m N |
| 737 | filter_upwards [eventually_ge_atTop 4] with n hn |
| 738 | simpa only [abs_of_pos (ChartScales.radialCoefficient_pos h n)] using |
| 739 | ChartScales.radialCoefficient_inv_upper h hh.le hn |
| 740 | |
| 741 | end SmallScale |
| 742 | |
| 743 | end NavierStokes.FourierAlias |