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.ParametricTorusInverse |
| 2 | import NavierStokes.SmoothFamilyTorusInverse |
| 3 | import NavierStokes.PressureStream |
| 4 | import NavierStokes.ChartScales |
| 5 | import NavierStokes.TorusAverages |
| 6 | import NavierStokes.UniformFourierAlias |
| 7 | |
| 8 | /-! |
| 9 | # The exact temporal mean update |
| 10 | |
| 11 | The native-to-absolute inverse identity is derived from the actual covering |
| 12 | map, Fourier coefficients, and uniqueness for the zero-mean periodic |
| 13 | directional equation. Band factors remain explicit. |
| 14 | -/ |
| 15 | |
| 16 | noncomputable section |
| 17 | |
| 18 | namespace NavierStokes.TemporalMeanUpdate |
| 19 | |
| 20 | open Set Filter MeasureTheory Function |
| 21 | open TorusInverse |
| 22 | open scoped Topology ContDiff BigOperators Interval |
| 23 | |
| 24 | private theorem nat_le_smooth (n : ℕ) : (n : WithTop ℕ∞) ≤ ∞ := |
| 25 | le_of_lt (WithTop.coe_lt_coe.mpr (ENat.natCast_lt_top n)) |
| 26 | |
| 27 | noncomputable def partialY (f : Plane → ℂ) (z : Plane) : ℂ := fderiv ℝ f z (0, 1) |
| 28 | noncomputable def timeDerivative (f : Plane → ℂ) (z : Plane) : ℂ := |
| 29 | fderiv ℝ f z (vector .temporal) |
| 30 | |
| 31 | theorem partialY_smooth {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) : ContDiff ℝ ∞ (partialY f) := |
| 32 | (ContinuousLinearMap.apply ℝ ℂ (0, 1)).contDiff.comp (hf.fderiv_right (by simp)) |
| 33 | |
| 34 | theorem coefficient_const_mul (c : ℂ) (f : Plane → ℂ) (k : Frequency) : |
| 35 | SmoothFourierData.coefficient (fun z => c * f z) k = c * SmoothFourierData.coefficient f k := by |
| 36 | simp only [SmoothFourierData.coefficient, SmoothFourierData.unitCoeff_const_mul] |
| 37 | |
| 38 | theorem coefficient_add {f g : Plane → ℂ} (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) |
| 39 | (k : Frequency) : |
| 40 | SmoothFourierData.coefficient (fun z => f z + g z) k = |
| 41 | SmoothFourierData.coefficient f k + SmoothFourierData.coefficient g k := by |
| 42 | let K := SmoothFourierData.kernel k |
| 43 | have hK : ContDiff ℝ ∞ K := ParametricTorusInverse.kernel_smooth k |
| 44 | have hif : ContDiff ℝ ∞ (fun y : ℝ => ∫ x in (0 : ℝ)..1, K (x, y) * f (x, y)) := |
| 45 | TransportPrimitive.parameterIntegral_contDiff |
| 46 | ((hK.mul hf).comp (contDiff_snd.prodMk contDiff_fst)) 0 1 |
| 47 | have hig : ContDiff ℝ ∞ (fun y : ℝ => ∫ x in (0 : ℝ)..1, K (x, y) * g (x, y)) := |
| 48 | TransportPrimitive.parameterIntegral_contDiff |
| 49 | ((hK.mul hg).comp (contDiff_snd.prodMk contDiff_fst)) 0 1 |
| 50 | have hi (y : ℝ) : (∫ x in (0 : ℝ)..1, K (x, y) * (f (x, y) + g (x, y))) = |
| 51 | (∫ x in (0 : ℝ)..1, K (x, y) * f (x, y)) + (∫ x in (0 : ℝ)..1, K (x, y) * g (x, y)) := by |
| 52 | simp_rw [mul_add] |
| 53 | exact intervalIntegral.integral_add |
| 54 | (((hK.mul hf).continuous.comp (continuous_id.prodMk continuous_const)).intervalIntegrable 0 1) |
| 55 | (((hK.mul hg).continuous.comp (continuous_id.prodMk continuous_const)).intervalIntegrable 0 1) |
| 56 | simp only [SmoothFourierData.coefficient_eq_doubleIntegral] |
| 57 | change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, K (x, y) * (f (x, y) + g (x, y))) = _ |
| 58 | simp_rw [hi] |
| 59 | exact intervalIntegral.integral_add (hif.continuous.intervalIntegrable 0 1) |
| 60 | (hig.continuous.intervalIntegrable 0 1) |
| 61 | |
| 62 | /-- Fourier differentiation, including the zero first frequency. -/ |
| 63 | theorem coefficient_partialX {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) |
| 64 | (hp : SmoothFourierData.UnitPeriodic f) (k : Frequency) : |
| 65 | SmoothFourierData.coefficient (SmoothFourierData.partialX f) k = |
| 66 | (omega * (k.1 : ℂ)) * SmoothFourierData.coefficient f k := by |
| 67 | by_cases hk : k.1 = 0 |
| 68 | · have hi (y : ℝ) : SmoothFourierData.unitCoeff |
| 69 | (fun x => SmoothFourierData.partialX f (x, y)) 0 = 0 := by |
| 70 | rw [SmoothFourierData.unitCoeff_eq_integral] |
| 71 | simp only [neg_zero, fourier_zero, one_mul] |
| 72 | rw [intervalIntegral.integral_eq_sub_of_hasDerivAt |
| 73 | (fun x _ => SmoothFourierData.hasDerivAt_slice ((hf.differentiable (by simp)) (x, y))) |
| 74 | (((SmoothFourierData.partialX_smooth hf).continuous.comp |
| 75 | (continuous_id.prodMk continuous_const)).intervalIntegrable 0 1)] |
| 76 | have he : f (1, y) = f (0, y) := by simpa using hp (0, y) (1, 0) |
| 77 | rw [he, sub_self] |
| 78 | simp only [SmoothFourierData.coefficient, hk, hi, Int.cast_zero, mul_zero, zero_mul] |
| 79 | simp [SmoothFourierData.unitCoeff_eq_integral] |
| 80 | · have hden : omega * (k.1 : ℂ) ≠ 0 := mul_ne_zero omega_ne_zero (by exact_mod_cast hk) |
| 81 | rw [SmoothFourierData.coefficient_partialX hf hp hk, ← mul_assoc, mul_inv_cancel₀ hden, one_mul] |
| 82 | |
| 83 | theorem swap_partialY {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) : |
| 84 | SmoothFourierData.swapFunction (partialY f) = |
| 85 | SmoothFourierData.partialX (SmoothFourierData.swapFunction f) := by |
| 86 | funext z |
| 87 | let L : Plane →L[ℝ] Plane := (ContinuousLinearEquiv.prodComm ℝ ℝ ℝ).toContinuousLinearMap |
| 88 | have h := ((hf.differentiable (by simp)) (z.2, z.1)).hasFDerivAt.comp z L.hasFDerivAt |
| 89 | change fderiv ℝ f (z.2, z.1) (0, 1) = fderiv ℝ (f ∘ L) z (1, 0) |
| 90 | rw [h.fderiv] |
| 91 | rfl |
| 92 | |
| 93 | theorem coefficient_partialY {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) |
| 94 | (hp : SmoothFourierData.UnitPeriodic f) (k : Frequency) : |
| 95 | SmoothFourierData.coefficient (partialY f) k = |
| 96 | (omega * (k.2 : ℂ)) * SmoothFourierData.coefficient f k := by |
| 97 | rw [SmoothFourierData.coefficient_swap (partialY_smooth hf).continuous k, swap_partialY hf, |
| 98 | coefficient_partialX (SmoothFourierData.swapFunction_smooth hf) |
| 99 | (SmoothFourierData.swapFunction_periodic hp)] |
| 100 | rw [← SmoothFourierData.coefficient_swap hf.continuous k] |
| 101 | |
| 102 | theorem timeDerivative_eq_partials (f : Plane → ℂ) (z : Plane) : |
| 103 | timeDerivative f z = ((vector .temporal).1 : ℂ) * SmoothFourierData.partialX f z + |
| 104 | ((vector .temporal).2 : ℂ) * partialY f z := by |
| 105 | have hv : vector .temporal = (vector .temporal).1 • ((1, 0) : Plane) + |
| 106 | (vector .temporal).2 • ((0, 1) : Plane) := by ext <;> simp |
| 107 | conv_lhs => rw [timeDerivative, hv, map_add, map_smul, map_smul] |
| 108 | simp only [Complex.real_smul, SmoothFourierData.partialX, partialY] |
| 109 | |
| 110 | /-- The temporal Fourier symbol is the actual multiplier of the derivative. -/ |
| 111 | theorem coefficient_timeDerivative {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) |
| 112 | (hp : SmoothFourierData.UnitPeriodic f) (k : Frequency) : |
| 113 | SmoothFourierData.coefficient (timeDerivative f) k = |
| 114 | (omega * (symbol .temporal k : ℂ)) * SmoothFourierData.coefficient f k := by |
| 115 | have heq : timeDerivative f = fun z => ((vector .temporal).1 : ℂ) * SmoothFourierData.partialX f z + |
| 116 | ((vector .temporal).2 : ℂ) * partialY f z := funext (timeDerivative_eq_partials f) |
| 117 | rw [heq, coefficient_add (contDiff_const.mul (SmoothFourierData.partialX_smooth hf)) |
| 118 | (contDiff_const.mul (partialY_smooth hf)), coefficient_const_mul, coefficient_const_mul, |
| 119 | coefficient_partialX hf hp, coefficient_partialY hf hp] |
| 120 | have hs : (symbol .temporal k : ℂ) = |
| 121 | (k.1 : ℂ) * ((vector .temporal).1 : ℂ) + (k.2 : ℂ) * ((vector .temporal).2 : ℂ) := by |
| 122 | exact_mod_cast symbol_formula .temporal k |
| 123 | rw [hs] |
| 124 | ring |
| 125 | |
| 126 | /-- Uniqueness for the smooth periodic temporal equation with a prescribed |
| 127 | mean. The proof uses actual Fourier differentiation and reconstruction. -/ |
| 128 | theorem timeDerivative_unique {f g : Plane → ℂ} (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) |
| 129 | (hpf : SmoothFourierData.UnitPeriodic f) (hpg : SmoothFourierData.UnitPeriodic g) |
| 130 | (hD : timeDerivative f = timeDerivative g) |
| 131 | (hm : TorusAverages.squareAverage f = TorusAverages.squareAverage g) : f = g := by |
| 132 | have hc : SmoothFourierData.coefficient f = SmoothFourierData.coefficient g := by |
| 133 | funext k |
| 134 | by_cases hk : k = 0 |
| 135 | · subst k |
| 136 | simpa only [SmoothFourierData.coefficient_zero_eq_integral, TorusAverages.squareAverage] using hm |
| 137 | · have he := congrArg (fun q => SmoothFourierData.coefficient q k) hD |
| 138 | rw [coefficient_timeDerivative hf hpf, coefficient_timeDerivative hg hpg] at he |
| 139 | exact mul_left_cancel₀ (mul_ne_zero omega_ne_zero |
| 140 | (Complex.ofReal_ne_zero.mpr (symbol_ne_zero .temporal hk))) he |
| 141 | funext z |
| 142 | rw [← SmoothFourierData.series_coefficient hf hpf z, |
| 143 | ← SmoothFourierData.series_coefficient hg hpg z, hc] |
| 144 | |
| 145 | /-- The actual integer covering as a continuous linear map. -/ |
| 146 | noncomputable def coverLinear : Plane →L[ℝ] Plane := |
| 147 | ((3 : ℝ) • ContinuousLinearMap.fst ℝ ℝ ℝ + ContinuousLinearMap.snd ℝ ℝ ℝ).prod |
| 148 | (ContinuousLinearMap.fst ℝ ℝ ℝ + (5 : ℝ) • ContinuousLinearMap.snd ℝ ℝ ℝ) |
| 149 | |
| 150 | theorem coverLinear_apply (z : Plane) : coverLinear z = TorusAverages.covering z := by |
| 151 | simp [coverLinear, TorusAverages.covering] |
| 152 | |
| 153 | noncomputable def coverMap : ℕ → Plane →L[ℝ] Plane |
| 154 | | 0 => ContinuousLinearMap.id ℝ Plane |
| 155 | | n + 1 => coverLinear.comp (coverMap n) |
| 156 | |
| 157 | theorem coverMap_eq_iterate (n : ℕ) (z : Plane) : |
| 158 | coverMap n z = TorusAverages.covering^[n] z := by |
| 159 | induction n with |
| 160 | | zero => rfl |
| 161 | | succ n ih => |
| 162 | change coverLinear (coverMap n z) = _ |
| 163 | rw [coverLinear_apply, ih, Function.iterate_succ_apply'] |
| 164 | |
| 165 | theorem coverLinear_temporal : |
| 166 | coverLinear (vector .temporal) = ChartScales.Tg • vector .temporal := by |
| 167 | rw [coverLinear_apply] |
| 168 | ext <;> dsimp [TorusAverages.covering, vector, ChartScales.Tg, SlotColoring.coverGrowth] |
| 169 | · nlinarith [DiophantineGraph.sqrt_two_square] |
| 170 | · ring |
| 171 | |
| 172 | theorem coverMap_temporal (n : ℕ) : |
| 173 | coverMap n (vector .temporal) = ChartScales.Tg ^ n • vector .temporal := by |
| 174 | induction n with |
| 175 | | zero => simp [coverMap] |
| 176 | | succ n ih => |
| 177 | change coverLinear (coverMap n (vector .temporal)) = _ |
| 178 | rw [ih, map_smul, coverLinear_temporal, smul_smul, pow_succ] |
| 179 | |
| 180 | theorem coverLinear_lattice (k : Frequency) : |
| 181 | coverLinear ((k.1 : ℝ), (k.2 : ℝ)) = |
| 182 | (((DiophantineGraph.coveringFrequency k).1 : ℝ), |
| 183 | ((DiophantineGraph.coveringFrequency k).2 : ℝ)) := by |
| 184 | rw [coverLinear_apply] |
| 185 | simp [TorusAverages.covering, DiophantineGraph.coveringFrequency] |
| 186 | |
| 187 | theorem coverMap_lattice (n : ℕ) (k : Frequency) : |
| 188 | coverMap n ((k.1 : ℝ), (k.2 : ℝ)) = |
| 189 | (((DiophantineGraph.coveringFrequency^[n] k).1 : ℝ), |
| 190 | ((DiophantineGraph.coveringFrequency^[n] k).2 : ℝ)) := by |
| 191 | induction n with |
| 192 | | zero => rfl |
| 193 | | succ n ih => |
| 194 | change coverLinear (coverMap n ((k.1 : ℝ), (k.2 : ℝ))) = _ |
| 195 | rw [ih, coverLinear_lattice, Function.iterate_succ_apply'] |
| 196 | |
| 197 | theorem periodic_coverMap {f : Plane → ℂ} (hp : SmoothFourierData.UnitPeriodic f) (n : ℕ) : |
| 198 | SmoothFourierData.UnitPeriodic (fun z => f (coverMap n z)) := by |
| 199 | intro z k |
| 200 | change f (coverMap n (z + ((k.1 : ℝ), (k.2 : ℝ)))) = f (coverMap n z) |
| 201 | rw [map_add, coverMap_lattice] |
| 202 | exact hp _ _ |
| 203 | |
| 204 | theorem timeDerivative_coverMap {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) (n : ℕ) (z : Plane) : |
| 205 | timeDerivative (fun x => f (coverMap n x)) z = |
| 206 | ChartScales.Tg ^ n • timeDerivative f (coverMap n z) := by |
| 207 | have hd := ((hf.differentiable (by simp)) (coverMap n z)).hasFDerivAt.comp z |
| 208 | (coverMap n).hasFDerivAt |
| 209 | simp only [Function.comp_def] at hd |
| 210 | rw [timeDerivative, hd.fderiv] |
| 211 | change fderiv ℝ f (coverMap n z) (coverMap n (vector .temporal)) = _ |
| 212 | rw [coverMap_temporal, map_smul] |
| 213 | rfl |
| 214 | |
| 215 | noncomputable def absoluteInverse (f : Plane → ℂ) : Plane → ℂ := |
| 216 | directionalInverse .temporal (SmoothFourierData.coefficient f) |
| 217 | |
| 218 | theorem absoluteInverse_smooth {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) |
| 219 | (hp : SmoothFourierData.UnitPeriodic f) : ContDiff ℝ ∞ (absoluteInverse f) := |
| 220 | contDiff_directionalInverse .temporal (SmoothFourierData.rapid_coefficient hf hp) |
| 221 | |
| 222 | theorem absoluteInverse_periodic (f : Plane → ℂ) : |
| 223 | SmoothFourierData.UnitPeriodic (absoluteInverse f) := by |
| 224 | intro z k |
| 225 | exact directionalInverse_periodic .temporal (SmoothFourierData.coefficient f) z k.1 k.2 |
| 226 | |
| 227 | theorem absoluteInverse_zeroMean {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) |
| 228 | (hp : SmoothFourierData.UnitPeriodic f) : TorusAverages.squareAverage (absoluteInverse f) = 0 := by |
| 229 | have ha := SmoothFourierData.rapid_coefficient hf hp |
| 230 | let g : C(Torus, ℂ) := ⟨torusSeries (inverseCoeff .temporal (SmoothFourierData.coefficient f)), |
| 231 | continuous_torusSeries (ha.inverseCoeff .temporal)⟩ |
| 232 | have hg : SmoothFourierData.torusLift g = absoluteInverse f := by |
| 233 | funext Y |
| 234 | exact (series_eq_torusSeries (inverseCoeff .temporal (SmoothFourierData.coefficient f)) Y).symm |
| 235 | rw [← hg, TorusAverages.squareAverage_torusLift] |
| 236 | exact inverse_zero_mean .temporal ha |
| 237 | |
| 238 | theorem absoluteInverse_solves {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) |
| 239 | (hp : SmoothFourierData.UnitPeriodic f) (hm : TorusAverages.squareAverage f = 0) : |
| 240 | timeDerivative (absoluteInverse f) = f := by |
| 241 | funext z |
| 242 | exact SmoothFourierData.inverse_solves_smooth_periodic .temporal hf hp hm z |
| 243 | |
| 244 | /-- The native factor is forced by the covering derivative and zero-mean |
| 245 | uniqueness. Both sides are the actual Fourier-defined inverse. -/ |
| 246 | theorem absoluteInverse_coverMap {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) |
| 247 | (hp : SmoothFourierData.UnitPeriodic f) (hm : TorusAverages.squareAverage f = 0) (n : ℕ) : |
| 248 | absoluteInverse (fun z => f (coverMap n z)) = |
| 249 | fun z => (ChartScales.Tg ^ n)⁻¹ • absoluteInverse f (coverMap n z) := by |
| 250 | have hfc : ContDiff ℝ ∞ (fun z => f (coverMap n z)) := hf.comp (coverMap n).contDiff |
| 251 | have hpc := periodic_coverMap hp n |
| 252 | have hmc : TorusAverages.squareAverage (fun z => f (coverMap n z)) = 0 := by |
| 253 | simp_rw [coverMap_eq_iterate] |
| 254 | exact (TorusAverages.squareAverage_covering_iterate hf.continuous hp n).trans hm |
| 255 | have hi := absoluteInverse_smooth hf hp |
| 256 | have hip := absoluteInverse_periodic f |
| 257 | have hright : ContDiff ℝ ∞ (fun z => (ChartScales.Tg ^ n)⁻¹ • absoluteInverse f (coverMap n z)) := |
| 258 | (hi.comp (coverMap n).contDiff).const_smul _ |
| 259 | apply timeDerivative_unique (absoluteInverse_smooth hfc hpc) hright |
| 260 | (absoluteInverse_periodic _) (fun z k => congrArg ((ChartScales.Tg ^ n)⁻¹ • ·) |
| 261 | (periodic_coverMap hip n z k)) |
| 262 | · rw [absoluteInverse_solves hfc hpc hmc] |
| 263 | funext z |
| 264 | have hs := (((hi.comp (coverMap n).contDiff).differentiable (by simp)) z).hasFDerivAt.fun_const_smul |
| 265 | ((ChartScales.Tg ^ n)⁻¹) |
| 266 | simp only [Function.comp_def] at hs |
| 267 | symm |
| 268 | rw [timeDerivative, hs.fderiv] |
| 269 | change (ChartScales.Tg ^ n)⁻¹ • timeDerivative (fun x => absoluteInverse f (coverMap n x)) z = _ |
| 270 | rw [timeDerivative_coverMap hi, absoluteInverse_solves hf hp hm, smul_smul, |
| 271 | inv_mul_cancel₀ (pow_ne_zero _ ChartScales.Tg_pos.ne'), one_smul] |
| 272 | · rw [absoluteInverse_zeroMean hfc hpc] |
| 273 | simp only [TorusAverages.squareAverage, intervalIntegral.integral_smul] |
| 274 | change 0 = (ChartScales.Tg ^ n)⁻¹ • TorusAverages.squareAverage |
| 275 | (fun z => absoluteInverse f (coverMap n z)) |
| 276 | simp_rw [coverMap_eq_iterate] |
| 277 | rw [TorusAverages.squareAverage_covering_iterate hi.continuous hip n, |
| 278 | absoluteInverse_zeroMean hf hp, smul_zero] |
| 279 | |
| 280 | /-- The native chart prefactor, including the physical velocity rescaling. -/ |
| 281 | noncomputable def chartPrefactor (h : ℝ) (n : ℕ) : ℝ := |
| 282 | (ChartScales.timeCoefficient h n)⁻¹ |
| 283 | |
| 284 | theorem chartPrefactor_pos (h : ℝ) (n : ℕ) : 0 < chartPrefactor h n := |
| 285 | inv_pos.mpr (ChartScales.timeCoefficient_pos h n) |
| 286 | |
| 287 | theorem chartPrefactor_eq (h : ℝ) (n : ℕ) : |
| 288 | chartPrefactor h n = ChartScales.Q n ^ (-1 - h) * |
| 289 | (ChartScales.Tg ^ ChartScales.nativeIndex h n)⁻¹ := by |
| 290 | have he : -1 - h = -(1 + h) := by ring |
| 291 | simp only [chartPrefactor, ChartScales.timeCoefficient, mul_inv_rev, he, |
| 292 | Real.rpow_neg (ChartScales.Q_pos n).le] |
| 293 | |
| 294 | /-- The exponential-looking native factors together cost just one power of |
| 295 | the slow band scale. -/ |
| 296 | theorem chartPrefactor_bound (h : ℝ) (hh : 0 ≤ h) {n : ℕ} (hn : 4 ≤ n) : |
| 297 | ‖chartPrefactor h n‖ ≤ ChartScales.Tg * ChartScales.S n := by |
| 298 | rw [Real.norm_eq_abs, abs_of_pos (chartPrefactor_pos h n)] |
| 299 | exact ChartScales.timeCoefficient_inv_upper h hh hn |
| 300 | |
| 301 | theorem chartPrefactor_bandBound {D : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 302 | (s : WeightedClasses.StripData D) (h : ℝ) (hh : 0 ≤ h) |
| 303 | (hs : ∀ n, s.slow n = ChartScales.S (n + 4)) : |
| 304 | WeightedClasses.BandBound s 0 (fun n => chartPrefactor h (n + 4)) := by |
| 305 | refine ⟨ChartScales.Tg, ChartScales.Tg_pos.le, 1, ?_⟩ |
| 306 | intro n |
| 307 | simpa only [Real.rpow_zero, mul_one, pow_one, hs] using |
| 308 | chartPrefactor_bound h hh (Nat.le_add_left 4 n) |
| 309 | |
| 310 | /-- Multiplication by the actual chart prefactor preserves the class |
| 311 | exponent, for bands numbered `n+4` where the native-index bounds hold. -/ |
| 312 | theorem meanClass_chartPrefactor {D E : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 313 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 314 | {s : WeightedClasses.StripData D} {α h : ℝ} {f : ℕ → D → E} |
| 315 | (hh : 0 ≤ h) (hs : ∀ n, s.slow n = ChartScales.S (n + 4)) |
| 316 | (hf : WeightedClasses.MeanClass s α f) : |
| 317 | WeightedClasses.MeanClass s α (fun n z => chartPrefactor h (n + 4) • f n z) := by |
| 318 | unfold WeightedClasses.MeanClass |
| 319 | simpa only [add_zero] using hf.band_smul (chartPrefactor_bandBound s h hh hs) |
| 320 | |
| 321 | /-- Finite initial bands are absorbed into an explicit constant. The native |
| 322 | indices are unchanged; the slow scale may be `max 1 (S n)`. -/ |
| 323 | theorem chartPrefactor_bandBound_all {D : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 324 | (s : WeightedClasses.StripData D) (h : ℝ) (hh : 0 ≤ h) |
| 325 | (hs : ∀ n, ChartScales.S n ≤ s.slow n) : |
| 326 | WeightedClasses.BandBound s 0 (chartPrefactor h) := by |
| 327 | let A := ∑ i ∈ Finset.range 4, chartPrefactor h i |
| 328 | have hA : 0 ≤ A := Finset.sum_nonneg (fun i _ => (chartPrefactor_pos h i).le) |
| 329 | have hK : 0 ≤ ChartScales.Tg + A := add_nonneg ChartScales.Tg_pos.le hA |
| 330 | refine ⟨ChartScales.Tg + A, hK, 1, ?_⟩ |
| 331 | intro n |
| 332 | simp only [Real.rpow_zero, mul_one, pow_one] |
| 333 | by_cases hn : 4 ≤ n |
| 334 | · exact (chartPrefactor_bound h hh hn).trans |
| 335 | (mul_le_mul (le_add_of_nonneg_right hA) (hs n) |
| 336 | (sq_nonneg (n : ℝ)) hK) |
| 337 | · rw [Real.norm_eq_abs, abs_of_pos (chartPrefactor_pos h n)] |
| 338 | have hnA : chartPrefactor h n ≤ A := |
| 339 | Finset.single_le_sum (fun i _ => (chartPrefactor_pos h i).le) |
| 340 | (Finset.mem_range.mpr (Nat.lt_of_not_ge hn)) |
| 341 | exact hnA.trans ((le_add_of_nonneg_left ChartScales.Tg_pos.le).trans |
| 342 | (le_mul_of_one_le_right hK (s.one_le_slow n))) |
| 343 | |
| 344 | theorem meanClass_chartPrefactor_all {D E : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 345 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 346 | {s : WeightedClasses.StripData D} {α h : ℝ} {f : ℕ → D → E} |
| 347 | (hh : 0 ≤ h) (hs : ∀ n, ChartScales.S n ≤ s.slow n) |
| 348 | (hf : WeightedClasses.MeanClass s α f) : |
| 349 | WeightedClasses.MeanClass s α (fun n z => chartPrefactor h n • f n z) := by |
| 350 | unfold WeightedClasses.MeanClass |
| 351 | simpa only [add_zero] using hf.band_smul (chartPrefactor_bandBound_all s h hh hs) |
| 352 | |
| 353 | section CenteredSource |
| 354 | |
| 355 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 356 | |
| 357 | /-- Remove exactly the auxiliary torus average, retaining every slow parameter. -/ |
| 358 | noncomputable def centered (f : PressureStream.Lift S → ℝ) (z : PressureStream.Lift S) : ℝ := |
| 359 | f z - PressureStream.torusAverage f (z.1, z.2.1) |
| 360 | |
| 361 | theorem centered_smooth {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) : |
| 362 | ContDiff ℝ ∞ (centered f) := |
| 363 | hf.sub ((PressureStream.torusAverage_contDiff hf).comp |
| 364 | (contDiff_fst.prodMk contDiff_snd.fst)) |
| 365 | |
| 366 | theorem centered_zeroMean {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 367 | (p : ℝ × S) : PressureStream.torusAverage (centered f) p = 0 := by |
| 368 | change PressureStream.torusAverage (fun z => f z - PressureStream.torusAverage f (z.1, z.2.1)) p = 0 |
| 369 | rw [PressureStream.torusAverage_sub_slow hf, sub_self] |
| 370 | |
| 371 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 372 | theorem centered_periodic {f : PressureStream.Lift S → ℝ} |
| 373 | (hp : PressureStream.TorusPeriodicLift f) : PressureStream.TorusPeriodicLift (centered f) := by |
| 374 | intro r s Y k |
| 375 | simp only [centered] |
| 376 | have he := hp r s Y k |
| 377 | dsimp at he |
| 378 | rw [he] |
| 379 | |
| 380 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 381 | theorem centered_supported {a b : ℝ} {f : PressureStream.Lift S → ℝ} |
| 382 | (hs : RadialAlias.RadiallySupported a b f) : |
| 383 | RadialAlias.RadiallySupported a b (centered f) := by |
| 384 | intro z hz |
| 385 | by_contra hout |
| 386 | have hf0 : f z = 0 := by |
| 387 | by_contra hn |
| 388 | exact hout (hs hn) |
| 389 | have hm0 : PressureStream.torusAverage f (z.1, z.2.1) = 0 := by |
| 390 | by_contra hn |
| 391 | exact hout (PressureStream.torusAverage_supported hs hn) |
| 392 | exact hz (by simp [centered, hf0, hm0]) |
| 393 | |
| 394 | end CenteredSource |
| 395 | |
| 396 | /-- Taking a real part commutes with the actual double integral. -/ |
| 397 | theorem squareAverage_re {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) : |
| 398 | TorusAverages.squareAverage (fun z => (f z).re) = (TorusAverages.squareAverage f).re := by |
| 399 | have hi : ContDiff ℝ ∞ (fun y : ℝ => ∫ x in (0 : ℝ)..1, f (x, y)) := |
| 400 | TransportPrimitive.parameterIntegral_contDiff |
| 401 | (hf.comp (contDiff_snd.prodMk contDiff_fst)) 0 1 |
| 402 | have hxs (y : ℝ) : IntervalIntegrable (fun x => f (x, y)) volume 0 1 := |
| 403 | (hf.continuous.comp (continuous_id.prodMk continuous_const)).intervalIntegrable 0 1 |
| 404 | have hx (y : ℝ) : (∫ x in (0 : ℝ)..1, (f (x, y)).re) = |
| 405 | (∫ x in (0 : ℝ)..1, f (x, y)).re := |
| 406 | Complex.reCLM.intervalIntegral_comp_comm (hxs y) |
| 407 | unfold TorusAverages.squareAverage |
| 408 | simp_rw [show ∀ y : ℝ, (∫ x in (0 : ℝ)..1, (f (x, y)).re) = |
| 409 | (∫ x in (0 : ℝ)..1, f (x, y)).re from fun y => hx y] |
| 410 | exact Complex.reCLM.intervalIntegral_comp_comm (hi.continuous.intervalIntegrable 0 1) |
| 411 | |
| 412 | section FamilyInverse |
| 413 | |
| 414 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 415 | |
| 416 | /-- The source in joint slow-parameter/torus coordinates, with the real |
| 417 | source embedded isometrically in the complex Fourier construction. -/ |
| 418 | noncomputable def sourceToFamily (f : PressureStream.Lift S → ℝ) |
| 419 | (z : (ℝ × S) × Plane) : ℂ := f (z.1.1, (z.1.2, z.2)) |
| 420 | |
| 421 | theorem sourceToFamily_smooth {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) : |
| 422 | ContDiff ℝ ∞ (sourceToFamily f) := |
| 423 | Complex.ofRealCLM.contDiff.comp |
| 424 | (hf.comp (LinearIsometryEquiv.prodAssoc ℝ ℝ S Plane).toContinuousLinearEquiv.contDiff) |
| 425 | |
| 426 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 427 | theorem sourceToFamily_periodic {f : PressureStream.Lift S → ℝ} |
| 428 | (hp : PressureStream.TorusPeriodicLift f) : SmoothFamilyTorusInverse.Periodic (sourceToFamily f) := by |
| 429 | intro p Y k |
| 430 | exact congrArg Complex.ofReal (hp p.1 p.2 Y k) |
| 431 | |
| 432 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 433 | theorem sourceToFamily_mean (f : PressureStream.Lift S → ℝ) (p : ℝ × S) : |
| 434 | SmoothFamilyTorusInverse.mean (sourceToFamily f) p = |
| 435 | (PressureStream.torusAverage f p : ℂ) := by |
| 436 | rw [SmoothFamilyTorusInverse.mean_eq_integral] |
| 437 | simp only [sourceToFamily, PressureStream.torusAverage, PressureStream.torusInner, |
| 438 | ← intervalIntegral.integral_ofReal] |
| 439 | |
| 440 | /-- The actual normalized temporal Fourier inverse on a real joint family. -/ |
| 441 | noncomputable def temporalInverse (f : PressureStream.Lift S → ℝ) |
| 442 | (z : PressureStream.Lift S) : ℝ := |
| 443 | (SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f) ((z.1, z.2.1), z.2.2)).re |
| 444 | |
| 445 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 446 | theorem temporalInverse_periodic (f : PressureStream.Lift S → ℝ) : |
| 447 | PressureStream.TorusPeriodicLift (temporalInverse f) := by |
| 448 | intro r s Y k |
| 449 | exact congrArg Complex.re |
| 450 | (SmoothFamilyTorusInverse.inverse_periodic .temporal (sourceToFamily f) (r, s) Y k) |
| 451 | |
| 452 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 453 | theorem temporalInverse_supported {a b : ℝ} {f : PressureStream.Lift S → ℝ} |
| 454 | (hs : RadialAlias.RadiallySupported a b f) : |
| 455 | RadialAlias.RadiallySupported a b (temporalInverse f) := by |
| 456 | have hsource : ∀ p : ℝ × S, p ∉ Prod.fst ⁻¹' Icc a b → ∀ Y : Plane, |
| 457 | sourceToFamily f (p, Y) = 0 := by |
| 458 | intro p hp Y |
| 459 | have hf0 : f (p.1, (p.2, Y)) = 0 := by |
| 460 | by_contra hn |
| 461 | exact hp (hs hn) |
| 462 | simp only [sourceToFamily, hf0, Complex.ofReal_zero] |
| 463 | intro z hz |
| 464 | by_contra hn |
| 465 | have hi := SmoothFamilyTorusInverse.inverse_preserves_parameter_support .temporal |
| 466 | (sourceToFamily f) (Prod.fst ⁻¹' Icc a b) hsource (z.1, z.2.1) hn z.2.2 |
| 467 | exact hz (by simp only [temporalInverse, hi, Complex.zero_re]) |
| 468 | |
| 469 | variable [FiniteDimensional ℝ S] |
| 470 | |
| 471 | theorem temporalInverse_smooth {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 472 | (hp : PressureStream.TorusPeriodicLift f) : ContDiff ℝ ∞ (temporalInverse f) := |
| 473 | (Complex.reCLM.contDiff.comp (SmoothFamilyTorusInverse.inverse_smooth .temporal |
| 474 | (sourceToFamily_smooth hf) (sourceToFamily_periodic hp))).comp |
| 475 | (LinearIsometryEquiv.prodAssoc ℝ ℝ S Plane).symm.toContinuousLinearEquiv.contDiff |
| 476 | |
| 477 | theorem temporalInverse_zeroMean {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 478 | (hp : PressureStream.TorusPeriodicLift f) (p : ℝ × S) : |
| 479 | PressureStream.torusAverage (temporalInverse f) p = 0 := by |
| 480 | have hi := SmoothFamilyTorusInverse.inverse_smooth .temporal |
| 481 | (sourceToFamily_smooth hf) (sourceToFamily_periodic hp) |
| 482 | have hm := SmoothFamilyTorusInverse.inverse_zeroMean .temporal |
| 483 | (sourceToFamily_smooth hf) (sourceToFamily_periodic hp) p |
| 484 | rw [SmoothFamilyTorusInverse.mean_eq_integral] at hm |
| 485 | change TorusAverages.squareAverage |
| 486 | (fun Y => (SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f) (p, Y)).re) = 0 |
| 487 | have hs : ContDiff ℝ ∞ (fun Y => SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f) (p, Y)) := |
| 488 | SmoothFamilyTorusInverse.slice_smooth hi p |
| 489 | rw [squareAverage_re hs] |
| 490 | exact (congrArg Complex.re hm).trans rfl |
| 491 | |
| 492 | /-- The real joint inverse solves the genuine Fréchet directional equation. -/ |
| 493 | theorem temporalInverse_solves {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 494 | (hp : PressureStream.TorusPeriodicLift f) |
| 495 | (hm : ∀ p, PressureStream.torusAverage f p = 0) (z : PressureStream.Lift S) : |
| 496 | PressureStream.graphDz ((0 : S), vector .temporal) (temporalInverse f) z = f z := by |
| 497 | have hfs := sourceToFamily_smooth hf |
| 498 | have hps := sourceToFamily_periodic hp |
| 499 | have hms : SmoothFamilyTorusInverse.ZeroMean (sourceToFamily f) := by |
| 500 | intro p |
| 501 | rw [sourceToFamily_mean, hm p, Complex.ofReal_zero] |
| 502 | let q : (ℝ × S) × Plane := ((z.1, z.2.1), z.2.2) |
| 503 | let L := (LinearIsometryEquiv.prodAssoc ℝ ℝ S Plane).symm.toContinuousLinearEquiv.toContinuousLinearMap |
| 504 | have hi := SmoothFamilyTorusInverse.inverse_smooth .temporal hfs hps |
| 505 | have hD := (Complex.reCLM.hasFDerivAt.comp q |
| 506 | (((hi.differentiable (by simp)) q).hasFDerivAt)).comp z L.hasFDerivAt |
| 507 | change HasFDerivAt (temporalInverse f) _ z at hD |
| 508 | rw [PressureStream.graphDz, hD.fderiv] |
| 509 | change (fderiv ℝ (SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f)) q |
| 510 | (0, vector .temporal)).re = f z |
| 511 | have he := congrFun (SmoothFamilyTorusInverse.inverse_solves .temporal hfs hps hms) q |
| 512 | change fderiv ℝ (SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f)) q |
| 513 | (0, vector .temporal) = sourceToFamily f q at he |
| 514 | rw [he] |
| 515 | rfl |
| 516 | |
| 517 | end FamilyInverse |
| 518 | |
| 519 | section ExactUpdate |
| 520 | |
| 521 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 522 | |
| 523 | omit [FiniteDimensional ℝ S] in |
| 524 | /-- Fiberwise native-to-absolute covariance for the actual real family inverse. -/ |
| 525 | theorem temporalInverse_coverMap {f : PressureStream.Lift S → ℝ} |
| 526 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 527 | (hm : ∀ p, PressureStream.torusAverage f p = 0) (n : ℕ) (z : PressureStream.Lift S) : |
| 528 | temporalInverse (fun p => f (p.1, (p.2.1, coverMap n p.2.2))) z = |
| 529 | (ChartScales.Tg ^ n)⁻¹ * temporalInverse f (z.1, (z.2.1, coverMap n z.2.2)) := by |
| 530 | let q : Plane → ℂ := fun Y => sourceToFamily f ((z.1, z.2.1), Y) |
| 531 | have hq : ContDiff ℝ ∞ q := SmoothFamilyTorusInverse.slice_smooth (sourceToFamily_smooth hf) _ |
| 532 | have hqp : SmoothFourierData.UnitPeriodic q := sourceToFamily_periodic hp _ |
| 533 | have hqm : TorusAverages.squareAverage q = 0 := by |
| 534 | change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, |
| 535 | sourceToFamily f ((z.1, z.2.1), (x, y))) = 0 |
| 536 | rw [← SmoothFamilyTorusInverse.mean_eq_integral, sourceToFamily_mean, hm, Complex.ofReal_zero] |
| 537 | change (absoluteInverse (fun Y => q (coverMap n Y)) z.2.2).re = |
| 538 | (ChartScales.Tg ^ n)⁻¹ * (absoluteInverse q (coverMap n z.2.2)).re |
| 539 | rw [absoluteInverse_coverMap hq hqp hqm n] |
| 540 | simp only [Complex.real_smul, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, |
| 541 | zero_mul, sub_zero] |
| 542 | |
| 543 | /-- The desired angular or axial mean increment in its native chart. -/ |
| 544 | noncomputable def desiredIncrement (h : ℝ) (n : ℕ) (f : PressureStream.Lift S → ℝ) |
| 545 | (z : PressureStream.Lift S) : ℝ := |
| 546 | -chartPrefactor h n * temporalInverse (centered f) z |
| 547 | |
| 548 | /-- The actual fast-time derivative, including its chart coefficient. -/ |
| 549 | noncomputable def fastDerivative (h : ℝ) (n : ℕ) (f : PressureStream.Lift S → ℝ) |
| 550 | (z : PressureStream.Lift S) : ℝ := |
| 551 | ChartScales.timeCoefficient h n * PressureStream.graphDz ((0 : S), vector .temporal) f z |
| 552 | |
| 553 | theorem desiredIncrement_smooth (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 554 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) : |
| 555 | ContDiff ℝ ∞ (desiredIncrement h n f) := |
| 556 | contDiff_const.mul (temporalInverse_smooth (centered_smooth hf) (centered_periodic hp)) |
| 557 | |
| 558 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 559 | theorem desiredIncrement_periodic (h : ℝ) (n : ℕ) (f : PressureStream.Lift S → ℝ) : |
| 560 | PressureStream.TorusPeriodicLift (desiredIncrement h n f) := by |
| 561 | intro r s Y k |
| 562 | exact congrArg (-chartPrefactor h n * ·) (temporalInverse_periodic (centered f) r s Y k) |
| 563 | |
| 564 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 565 | theorem desiredIncrement_supported (h : ℝ) (n : ℕ) {a b : ℝ} {f : PressureStream.Lift S → ℝ} |
| 566 | (hs : RadialAlias.RadiallySupported a b f) : |
| 567 | RadialAlias.RadiallySupported a b (desiredIncrement h n f) := by |
| 568 | intro z hz |
| 569 | apply temporalInverse_supported (centered_supported hs) |
| 570 | intro hi |
| 571 | exact hz (by simp only [desiredIncrement, hi, mul_zero]) |
| 572 | |
| 573 | theorem desiredIncrement_zeroMean (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 574 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (p : ℝ × S) : |
| 575 | PressureStream.torusAverage (desiredIncrement h n f) p = 0 := by |
| 576 | change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, |
| 577 | -chartPrefactor h n * temporalInverse (centered f) (p.1, (p.2, (x, y)))) = 0 |
| 578 | simp_rw [intervalIntegral.integral_const_mul] |
| 579 | change -chartPrefactor h n * PressureStream.torusAverage (temporalInverse (centered f)) p = 0 |
| 580 | rw [temporalInverse_zeroMean (centered_smooth hf) (centered_periodic hp), mul_zero] |
| 581 | |
| 582 | /-- In particular this gives both the angular `r²` bar mass and axial `r` |
| 583 | bar mass without an extra normalization term. -/ |
| 584 | theorem desiredIncrement_barMass (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 585 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (w : ℝ → ℝ) (s : S) : |
| 586 | (∫ r, w r * PressureStream.torusAverage (desiredIncrement h n f) (r, s)) = 0 := by |
| 587 | simp_rw [desiredIncrement_zeroMean h n hf hp, mul_zero, integral_zero] |
| 588 | |
| 589 | /-- Exact cancellation of the source's zero-bar part. -/ |
| 590 | theorem desiredIncrement_fastDerivative (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 591 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (z : PressureStream.Lift S) : |
| 592 | fastDerivative h n (desiredIncrement h n f) z = -centered f z := by |
| 593 | have hi := temporalInverse_smooth (centered_smooth hf) (centered_periodic hp) |
| 594 | have hD := (((hi.differentiable (by simp)) z).hasFDerivAt).const_smul (-chartPrefactor h n) |
| 595 | change HasFDerivAt (desiredIncrement h n f) _ z at hD |
| 596 | rw [fastDerivative, PressureStream.graphDz, hD.fderiv] |
| 597 | change ChartScales.timeCoefficient h n * (-chartPrefactor h n * |
| 598 | PressureStream.graphDz ((0 : S), vector .temporal) (temporalInverse (centered f)) z) = _ |
| 599 | rw [temporalInverse_solves (centered_smooth hf) (centered_periodic hp) (centered_zeroMean hf)] |
| 600 | simp only [chartPrefactor, neg_mul, mul_neg, ← mul_assoc, |
| 601 | mul_inv_cancel₀ (ChartScales.timeCoefficient_pos h n).ne', one_mul] |
| 602 | |
| 603 | omit [FiniteDimensional ℝ S] in |
| 604 | theorem fastDerivative_sub (h : ℝ) (n : ℕ) {f g : PressureStream.Lift S → ℝ} |
| 605 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) (z : PressureStream.Lift S) : |
| 606 | fastDerivative h n (fun p => f p - g p) z = fastDerivative h n f z - fastDerivative h n g z := by |
| 607 | simp only [fastDerivative, PressureStream.graphDz, |
| 608 | fderiv_fun_sub ((hf.differentiable (by simp)) z) ((hg.differentiable (by simp)) z), |
| 609 | _root_.sub_apply, mul_sub] |
| 610 | |
| 611 | end ExactUpdate |
| 612 | |
| 613 | section NativePullback |
| 614 | |
| 615 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 616 | |
| 617 | noncomputable def pullbackCover (i : ℕ) (f : PressureStream.Lift S → ℝ) |
| 618 | (z : PressureStream.Lift S) : ℝ := f (z.1, (z.2.1, coverMap i z.2.2)) |
| 619 | |
| 620 | theorem pullbackCover_smooth (i : ℕ) {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) : |
| 621 | ContDiff ℝ ∞ (pullbackCover i f) := |
| 622 | hf.comp (contDiff_fst.prodMk (contDiff_snd.fst.prodMk |
| 623 | ((coverMap i).contDiff.comp contDiff_snd.snd))) |
| 624 | |
| 625 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 626 | theorem pullbackCover_periodic (i : ℕ) {f : PressureStream.Lift S → ℝ} |
| 627 | (hp : PressureStream.TorusPeriodicLift f) : PressureStream.TorusPeriodicLift (pullbackCover i f) := by |
| 628 | intro r s Y k |
| 629 | change f (r, (s, coverMap i (Y + ((k.1 : ℝ), (k.2 : ℝ))))) = f (r, (s, coverMap i Y)) |
| 630 | rw [map_add, coverMap_lattice] |
| 631 | exact hp r s _ _ |
| 632 | |
| 633 | theorem torusAverage_pullbackCover (i : ℕ) {f : PressureStream.Lift S → ℝ} |
| 634 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (p : ℝ × S) : |
| 635 | PressureStream.torusAverage (pullbackCover i f) p = PressureStream.torusAverage f p := by |
| 636 | change TorusAverages.squareAverage (fun Y => f (p.1, (p.2, coverMap i Y))) = |
| 637 | TorusAverages.squareAverage (fun Y => f (p.1, (p.2, Y))) |
| 638 | simp_rw [coverMap_eq_iterate] |
| 639 | exact TorusAverages.squareAverage_covering_iterate_real |
| 640 | (hf.continuous.comp (continuous_const.prodMk (continuous_const.prodMk continuous_id))) |
| 641 | (hp p.1 p.2) i |
| 642 | |
| 643 | theorem centered_pullbackCover (i : ℕ) {f : PressureStream.Lift S → ℝ} |
| 644 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) : |
| 645 | centered (pullbackCover i f) = pullbackCover i (centered f) := by |
| 646 | funext z |
| 647 | change f (z.1, (z.2.1, coverMap i z.2.2)) - |
| 648 | PressureStream.torusAverage (pullbackCover i f) (z.1, z.2.1) = |
| 649 | f (z.1, (z.2.1, coverMap i z.2.2)) - PressureStream.torusAverage f (z.1, z.2.1) |
| 650 | rw [torusAverage_pullbackCover i hf hp] |
| 651 | |
| 652 | /-- Pulling the native update through its actual covering gives the same |
| 653 | absolute temporal inverse. There is exactly one native `Tg⁻ⁱ` factor. -/ |
| 654 | theorem desiredIncrement_native_pullback (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 655 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (z : PressureStream.Lift S) : |
| 656 | pullbackCover (ChartScales.nativeIndex h n) (desiredIncrement h n f) z = |
| 657 | -ChartScales.Q n ^ (-1 - h) * |
| 658 | temporalInverse (centered (pullbackCover (ChartScales.nativeIndex h n) f)) z := by |
| 659 | rw [centered_pullbackCover (ChartScales.nativeIndex h n) hf hp] |
| 660 | change -chartPrefactor h n * temporalInverse (centered f) |
| 661 | (z.1, (z.2.1, coverMap (ChartScales.nativeIndex h n) z.2.2)) = |
| 662 | -ChartScales.Q n ^ (-1 - h) * temporalInverse |
| 663 | (fun p => centered f (p.1, (p.2.1, coverMap (ChartScales.nativeIndex h n) p.2.2))) z |
| 664 | rw [temporalInverse_coverMap (centered_smooth hf) (centered_periodic hp) |
| 665 | (centered_zeroMean hf), chartPrefactor_eq] |
| 666 | ring |
| 667 | |
| 668 | end NativePullback |
| 669 | |
| 670 | section AxialReconstruction |
| 671 | |
| 672 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 673 | |
| 674 | noncomputable def axialPotential (d a b M : ℝ) (v : Plane) (h : ℝ) (n : ℕ) |
| 675 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 676 | PressureStream.streamPotential d a b M ((0 : S), v) (desiredIncrement h n f) |
| 677 | |
| 678 | noncomputable def axialUpdate (d a b M : ℝ) (v : Plane) (h : ℝ) (n : ℕ) |
| 679 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 680 | PressureStream.streamGamma (PressureStream.physicalSpeed d M) ((0 : S), v) |
| 681 | (axialPotential d a b M v h n f) |
| 682 | |
| 683 | noncomputable def radialUpdate (d a b M : ℝ) (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) |
| 684 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 685 | PressureStream.streamBeta w (axialPotential d a b M v h n f) |
| 686 | |
| 687 | omit [FiniteDimensional ℝ S] in |
| 688 | theorem radialUpdate_smul_direction (d a b M : ℝ) (v : Plane) (w : S × Plane) (h c : ℝ) (n : ℕ) |
| 689 | (f : PressureStream.Lift S → ℝ) : |
| 690 | radialUpdate d a b M v (c • w) h n f = fun z => c * radialUpdate d a b M v w h n f z := by |
| 691 | funext z |
| 692 | have hv : ((0 : ℝ), c • w) = c • ((0 : ℝ), w) := by simp |
| 693 | simp only [radialUpdate, PressureStream.streamBeta, PressureStream.graphDz, hv, map_smul, |
| 694 | smul_eq_mul, mul_neg] |
| 695 | |
| 696 | /-- The retained compactification alias, with its physical `1/r` factor. -/ |
| 697 | noncomputable def axialAlias (d a b M : ℝ) (v : Plane) (h : ℝ) (n : ℕ) |
| 698 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 699 | PressureStream.divideRadius (RadialPullback.physicalAlias d a b M ((0 : S), v) |
| 700 | (PressureStream.weightedSource (desiredIncrement h n f))) |
| 701 | |
| 702 | omit [FiniteDimensional ℝ S] in |
| 703 | theorem axialAlias_eq_cutoff_total {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 704 | (v : Plane) (h : ℝ) (n : ℕ) (f : PressureStream.Lift S → ℝ) (z : PressureStream.Lift S) : |
| 705 | axialAlias d a b M v h n f z = |
| 706 | (deriv (RadialPullback.physicalCutoff d a b) z.1 * |
| 707 | PressureStream.physicalTotal d a M ((0 : S), v) |
| 708 | (PressureStream.weightedSource (desiredIncrement h n f)) z) / z.1 := by |
| 709 | unfold axialAlias PressureStream.divideRadius |
| 710 | rw [RadialPullback.physicalAlias_eq_cutoff_derivative_global ha hab hd] |
| 711 | rfl |
| 712 | |
| 713 | theorem axialPotential_smooth {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 714 | (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 715 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 716 | (hs : RadialAlias.RadiallySupported a b f) : ContDiff ℝ ∞ (axialPotential d a b M v h n f) := |
| 717 | PressureStream.streamPotential_contDiff ha hab hd (0, v) |
| 718 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) |
| 719 | |
| 720 | theorem axialPotential_supported {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 721 | (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 722 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 723 | (hs : RadialAlias.RadiallySupported a b f) : |
| 724 | RadialAlias.RadiallySupported a b (axialPotential d a b M v h n f) := |
| 725 | PressureStream.streamPotential_supported ha hab hd (0, v) |
| 726 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) |
| 727 | |
| 728 | theorem axialUpdate_smooth {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 729 | (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 730 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 731 | (hs : RadialAlias.RadiallySupported a b f) : ContDiff ℝ ∞ (axialUpdate d a b M v h n f) := |
| 732 | PressureStream.streamGamma_contDiff ha hab hd (0, v) |
| 733 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) |
| 734 | |
| 735 | theorem axialUpdate_supported {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 736 | (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 737 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 738 | (hs : RadialAlias.RadiallySupported a b f) : |
| 739 | RadialAlias.RadiallySupported a b (axialUpdate d a b M v h n f) := |
| 740 | PressureStream.streamGamma_supported (axialPotential_supported ha hab hd v h n hf hp hs) |
| 741 | (PressureStream.physicalSpeed d M) (0, v) |
| 742 | |
| 743 | theorem radialUpdate_smooth {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 744 | (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 745 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 746 | (hs : RadialAlias.RadiallySupported a b f) : ContDiff ℝ ∞ (radialUpdate d a b M v w h n f) := |
| 747 | PressureStream.streamBeta_contDiff ha hab hd (0, v) w |
| 748 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) |
| 749 | |
| 750 | theorem radialUpdate_supported {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 751 | (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 752 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 753 | (hs : RadialAlias.RadiallySupported a b f) : |
| 754 | RadialAlias.RadiallySupported a b (radialUpdate d a b M v w h n f) := |
| 755 | PressureStream.streamBeta_supported (axialPotential_supported ha hab hd v h n hf hp hs) w |
| 756 | |
| 757 | theorem axialAlias_smooth {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 758 | (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 759 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 760 | (hs : RadialAlias.RadiallySupported a b f) : ContDiff ℝ ∞ (axialAlias d a b M v h n f) := |
| 761 | PressureStream.divideRadius_contDiff ha |
| 762 | (RadialPullback.physicalAlias_contDiff ha hab hd |
| 763 | (PressureStream.weightedSource_contDiff (desiredIncrement_smooth h n hf hp)) |
| 764 | (PressureStream.weightedSource_supported (desiredIncrement_supported h n hs)) M (0, v)) |
| 765 | (RadialPullback.physicalAlias_supported ha hab hd M (0, v) _) |
| 766 | |
| 767 | omit [FiniteDimensional ℝ S] in |
| 768 | theorem axialAlias_supported {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 769 | (v : Plane) (h : ℝ) (n : ℕ) (f : PressureStream.Lift S → ℝ) : |
| 770 | RadialAlias.RadiallySupported a b (axialAlias d a b M v h n f) := |
| 771 | PressureStream.divideRadius_supported |
| 772 | (RadialPullback.physicalAlias_supported ha hab hd M (0, v) _) |
| 773 | |
| 774 | /-- No compactification error is removed from the reconstructed axial field. -/ |
| 775 | theorem axialUpdate_eq_desired_sub_alias {d a b M : ℝ} |
| 776 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (v : Plane) (h : ℝ) (n : ℕ) |
| 777 | {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 778 | (hp : PressureStream.TorusPeriodicLift f) (hs : RadialAlias.RadiallySupported a b f) : |
| 779 | axialUpdate d a b M v h n f = fun z => desiredIncrement h n f z - axialAlias d a b M v h n f z := by |
| 780 | funext z |
| 781 | exact PressureStream.streamGamma_eq_desired_sub_alias_global ha hab hd (0, v) |
| 782 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) z |
| 783 | |
| 784 | theorem update_divergence_zero {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 785 | (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 786 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 787 | (hs : RadialAlias.RadiallySupported a b f) (z : PressureStream.Lift S) : |
| 788 | PressureStream.graphDivergence (PressureStream.physicalSpeed d M) (0, v) w |
| 789 | (radialUpdate d a b M v w h n f) (axialUpdate d a b M v h n f) z = 0 := |
| 790 | PressureStream.reconstructed_divergence_zero ha hab hd (0, v) w |
| 791 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) z |
| 792 | |
| 793 | theorem axialUpdate_zeroMean {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 794 | (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 795 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 796 | (hs : RadialAlias.RadiallySupported a b f) (p : ℝ × S) : |
| 797 | PressureStream.torusAverage (axialUpdate d a b M v h n f) p = 0 := by |
| 798 | have he := PressureStream.streamGamma_bar_eq_desired (M := M) ha hab hd v |
| 799 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) |
| 800 | (desiredIncrement_periodic h n f) (desiredIncrement_barMass h n hf hp id) p |
| 801 | exact he.trans (desiredIncrement_zeroMean h n hf hp p) |
| 802 | |
| 803 | /-- Fast time cancels the axial zero-bar source, retaining exactly the |
| 804 | fast-time derivative of the compactification alias. -/ |
| 805 | theorem axialUpdate_fast_residual {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 806 | (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 807 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 808 | (hs : RadialAlias.RadiallySupported a b f) (z : PressureStream.Lift S) : |
| 809 | fastDerivative h n (axialUpdate d a b M v h n f) z + centered f z = |
| 810 | -fastDerivative h n (axialAlias d a b M v h n f) z := by |
| 811 | rw [axialUpdate_eq_desired_sub_alias ha hab hd v h n hf hp hs, |
| 812 | fastDerivative_sub h n (desiredIncrement_smooth h n hf hp) |
| 813 | (axialAlias_smooth ha hab hd v h n hf hp hs), desiredIncrement_fastDerivative h n hf hp] |
| 814 | ring |
| 815 | |
| 816 | /-- The actual two-component fast-time update and incompressible stream, |
| 817 | with the exact axial alias in the resulting residual. -/ |
| 818 | theorem temporal_mean_update {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 819 | (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) {fθ fz : PressureStream.Lift S → ℝ} |
| 820 | (hθ : ContDiff ℝ ∞ fθ) (hz : ContDiff ℝ ∞ fz) |
| 821 | (hpθ : PressureStream.TorusPeriodicLift fθ) (hpz : PressureStream.TorusPeriodicLift fz) |
| 822 | (hsz : RadialAlias.RadiallySupported a b fz) (z : PressureStream.Lift S) : |
| 823 | fastDerivative h n (desiredIncrement h n fθ) z + centered fθ z = 0 ∧ |
| 824 | fastDerivative h n (axialUpdate d a b M v h n fz) z + centered fz z = |
| 825 | -fastDerivative h n (axialAlias d a b M v h n fz) z ∧ |
| 826 | PressureStream.graphDivergence (PressureStream.physicalSpeed d M) (0, v) w |
| 827 | (radialUpdate d a b M v w h n fz) (axialUpdate d a b M v h n fz) z = 0 ∧ |
| 828 | PressureStream.torusAverage (desiredIncrement h n fθ) (z.1, z.2.1) = 0 ∧ |
| 829 | PressureStream.torusAverage (axialUpdate d a b M v h n fz) (z.1, z.2.1) = 0 := by |
| 830 | refine ⟨?_, axialUpdate_fast_residual ha hab hd v h n hz hpz hsz z, |
| 831 | update_divergence_zero ha hab hd v w h n hz hpz hsz z, |
| 832 | desiredIncrement_zeroMean h n hθ hpθ _, axialUpdate_zeroMean ha hab hd v h n hz hpz hsz _⟩ |
| 833 | rw [desiredIncrement_fastDerivative h n hθ hpθ, neg_add_cancel] |
| 834 | |
| 835 | end AxialReconstruction |
| 836 | |
| 837 | section WeightedStream |
| 838 | |
| 839 | variable {E V : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 840 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 841 | |
| 842 | /-- A fixed smooth radial multiplier preserves the actual all-jet class. |
| 843 | The constant is obtained from the derivative product rule on the compact annulus. -/ |
| 844 | theorem meanClass_radialMultiply (a b : ℝ) {φ : ℝ → ℝ} (hφ : ContDiff ℝ ∞ φ) |
| 845 | {s : WeightedClasses.StripData (ℝ × E)} {α : ℝ} {g : ℕ → ℝ × E → V} |
| 846 | (hdomain : ∀ z ∈ s.domain, z.1 ∈ Icc a b) (hg : ∀ n, ContDiff ℝ ∞ (g n)) |
| 847 | (hclass : WeightedClasses.MeanClass s α g) : |
| 848 | WeightedClasses.MeanClass s α (fun n z => φ z.1 • g n z) := by |
| 849 | refine ⟨hclass.weight_nonneg, fun n => ((hφ.comp contDiff_fst).smul (hg n)).contDiffOn, ?_⟩ |
| 850 | intro m |
| 851 | obtain ⟨C, hC, p, hbound⟩ := hclass.bounds m |
| 852 | obtain ⟨K, hK, hmul⟩ := RadialPullback.radial_multiplier_finiteJets_uniform (E := E) (V := V) a b hφ m |
| 853 | refine ⟨K * C, mul_nonneg hK hC, p, ?_⟩ |
| 854 | intro n z hz j hj |
| 855 | have hA := WeightedClasses.majorant_nonneg s (fun _ z => s.zeta z) α hC p n z |
| 856 | (s.zeta_nonneg z hz) |
| 857 | have hout := hmul (g n) (hg n) z (hdomain z hz) |
| 858 | (WeightedClasses.majorant s (fun _ z => s.zeta z) α C p n z) hA (hbound n z hz) j hj |
| 859 | apply hout.trans_eq |
| 860 | unfold WeightedClasses.majorant |
| 861 | ring |
| 862 | |
| 863 | /-- Division by the positive radius preserves the class for supported |
| 864 | fields. A globally smooth positive regularization proves all derivative bounds. -/ |
| 865 | theorem meanClass_divideRadius {a b : ℝ} (ha : 0 < a) |
| 866 | {s : WeightedClasses.StripData (ℝ × E)} {α : ℝ} {g : ℕ → ℝ × E → ℝ} |
| 867 | (hdomain : ∀ z ∈ s.domain, z.1 ∈ Icc a b) (hg : ∀ n, ContDiff ℝ ∞ (g n)) |
| 868 | (hs : ∀ n, RadialAlias.RadiallySupported a b (g n)) |
| 869 | (hclass : WeightedClasses.MeanClass s α g) : |
| 870 | WeightedClasses.MeanClass s α (fun n => PressureStream.divideRadius (g n)) := by |
| 871 | let φ : ℝ → ℝ := fun r => (RadialPullback.positiveRadius (a / 4) r)⁻¹ |
| 872 | have hφ : ContDiff ℝ ∞ φ := (RadialPullback.positiveRadius_contDiff (a / 4)).inv |
| 873 | (fun r => (RadialPullback.positiveRadius_pos (by positivity) r).ne') |
| 874 | have heq : (fun n => PressureStream.divideRadius (g n)) = (fun n z => φ z.1 • g n z) := by |
| 875 | funext n z |
| 876 | by_cases hr : a ≤ z.1 |
| 877 | · dsimp [PressureStream.divideRadius, φ] |
| 878 | rw [RadialPullback.positiveRadius_eq_self (by positivity) (by linarith)] |
| 879 | simp only [div_eq_mul_inv, mul_comm] |
| 880 | · have hg0 : g n z = 0 := by |
| 881 | by_contra hn |
| 882 | exact hr (hs n hn).1 |
| 883 | simp [PressureStream.divideRadius, hg0] |
| 884 | rw [heq] |
| 885 | exact meanClass_radialMultiply a b hφ hdomain hg hclass |
| 886 | |
| 887 | /-- The actual stream potential preserves the original exponential weight |
| 888 | and its exponent, uniformly for all bandwise transport coefficients. -/ |
| 889 | theorem meanClass_streamPotential {a b d cL cR : ℝ} |
| 890 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) |
| 891 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 892 | (α : ℝ) (M : ℕ → ℝ) (v : ℕ → E) (g : ℕ → ℝ × E → ℝ) |
| 893 | (hg : ∀ n, ContDiff ℝ ∞ (g n)) (hs : ∀ n, RadialAlias.RadiallySupported a b (g n)) |
| 894 | (hclass : WeightedClasses.MeanClass |
| 895 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α g) : |
| 896 | WeightedClasses.MeanClass |
| 897 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 898 | (fun n => PressureStream.streamPotential d a b (M n) (v n) (g n)) := by |
| 899 | let s : WeightedClasses.StripData (ℝ × E) := |
| 900 | WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR |
| 901 | have hdomain : ∀ z ∈ s.domain, z.1 ∈ Icc a b := fun z hz => ⟨hz.1.le, hz.2.le⟩ |
| 902 | have hw : WeightedClasses.MeanClass s α (fun n => PressureStream.weightedSource (g n)) := by |
| 903 | unfold PressureStream.weightedSource |
| 904 | simpa only [smul_eq_mul, id_eq] using |
| 905 | meanClass_radialMultiply a b (φ := id) contDiff_id hdomain hg hclass |
| 906 | have hwc := fun n => PressureStream.weightedSource_contDiff (hg n) |
| 907 | have hws := fun n => PressureStream.weightedSource_supported (hs n) |
| 908 | have hic := RadialPullback.meanClass_physicalCompact ha hab hd hcL hcR ε R hε hεone hR α M v |
| 909 | (fun n => PressureStream.weightedSource (g n)) hwc hws hw |
| 910 | exact meanClass_divideRadius ha hdomain |
| 911 | (fun n => RadialPullback.physicalCompact_contDiff ha hab hd (hwc n) (hws n) (M n) (v n)) |
| 912 | (fun n => RadialPullback.physicalCompact_supported ha hab hd (hwc n) (hws n) (M n) (v n)) hic |
| 913 | |
| 914 | /-- A fixed full axial direction may include every slow variable. Its actual |
| 915 | derivative of the stream has the same class exponent. -/ |
| 916 | theorem meanClass_streamBeta {a b d cL cR : ℝ} |
| 917 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) |
| 918 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 919 | (α : ℝ) (M : ℕ → ℝ) (v : ℕ → E) (w : E) (g : ℕ → ℝ × E → ℝ) |
| 920 | (hg : ∀ n, ContDiff ℝ ∞ (g n)) (hs : ∀ n, RadialAlias.RadiallySupported a b (g n)) |
| 921 | (hclass : WeightedClasses.MeanClass |
| 922 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α g) : |
| 923 | WeightedClasses.MeanClass |
| 924 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 925 | (fun n => PressureStream.streamBeta w (PressureStream.streamPotential d a b (M n) (v n) (g n))) := by |
| 926 | have hi := meanClass_streamPotential ha hab hd hcL hcR ε R hε hεone hR α M v g hg hs hclass |
| 927 | have hD := (hi.directional (0, w)).map (-ContinuousLinearMap.id ℝ ℝ) |
| 928 | unfold WeightedClasses.MeanClass PressureStream.streamBeta PressureStream.graphDz |
| 929 | simpa only [ |
| 930 | _root_.neg_apply, ContinuousLinearMap.id_apply] using hD |
| 931 | |
| 932 | end WeightedStream |
| 933 | |
| 934 | section AliasPullback |
| 935 | |
| 936 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 937 | |
| 938 | noncomputable def aliasFactor (d a r : ℝ) : ℝ := |
| 939 | RadialPullback.radialJacobian d (RadialPullback.positiveRadius (a / 4) r) / |
| 940 | RadialPullback.positiveRadius (a / 4) r |
| 941 | |
| 942 | theorem aliasFactor_smooth {a : ℝ} (ha : 0 < a) (d : ℝ) : ContDiff ℝ ∞ (aliasFactor d a) := by |
| 943 | have hr := RadialPullback.positiveRadius_contDiff (a / 4) |
| 944 | have hn (r : ℝ) := (RadialPullback.positiveRadius_pos (show 0 < a / 4 by positivity) r).ne' |
| 945 | exact (contDiff_const.mul (hr.rpow_const_of_ne hn)).div hr hn |
| 946 | |
| 947 | /-- The physical divided alias is exactly a fixed radial multiplier times |
| 948 | the normalized transport alias pulled through the power chart. -/ |
| 949 | theorem dividedAlias_eq_pullback {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 950 | (v : E) (g : ℝ × E → ℝ) : |
| 951 | PressureStream.divideRadius (RadialPullback.physicalAlias d a b M v g) = |
| 952 | fun z => aliasFactor d a z.1 * UniformFourierAlias.exactAlias |
| 953 | (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) M v (RadialPullback.normalizeSource d a g) |
| 954 | (RadialPullback.liftChart (RadialPullback.powerChart d a) z) := by |
| 955 | funext z |
| 956 | by_cases hr : a ≤ z.1 |
| 957 | · dsimp [PressureStream.divideRadius, RadialPullback.physicalAlias, UniformFourierAlias.exactAlias, |
| 958 | RadialPullback.liftChart, aliasFactor] |
| 959 | rw [RadialPullback.positiveRadius_eq_self (show 0 < a / 4 by positivity) (by linarith)] |
| 960 | ring |
| 961 | · have hχ := RadialPullback.deriv_interiorCutoff_zero_left |
| 962 | (Real.rpow_lt_rpow ha.le hab hd) (RadialPullback.powerChart_lt_left ha hd (lt_of_not_ge hr)).le |
| 963 | simp only [PressureStream.divideRadius, RadialPullback.physicalAlias, UniformFourierAlias.exactAlias, |
| 964 | RadialPullback.liftChart, hχ, mul_zero, zero_smul, zero_div] |
| 965 | |
| 966 | /-- A uniform full-jet estimate for the actual physical alias follows from |
| 967 | the corresponding normalized alias estimate. The transfer constant is fixed |
| 968 | before the source, transport coefficient, and transport direction are given. -/ |
| 969 | theorem dividedAlias_finiteJets_transfer {d a b : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 970 | (m : ℕ) : ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : E) (g : ℝ × E → ℝ), |
| 971 | ContDiff ℝ ∞ g → RadialAlias.RadiallySupported a b g → |
| 972 | ∀ C : ℝ, 0 ≤ C → |
| 973 | (∀ j ≤ m, ∀ z : ℝ × E, ‖iteratedFDeriv ℝ j (UniformFourierAlias.exactAlias |
| 974 | (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) M v |
| 975 | (RadialPullback.normalizeSource d a g)) z‖ ≤ C) → |
| 976 | ∀ j ≤ m, ∀ z : ℝ × E, |
| 977 | ‖iteratedFDeriv ℝ j (PressureStream.divideRadius (RadialPullback.physicalAlias d a b M v g)) z‖ ≤ |
| 978 | K * C := by |
| 979 | obtain ⟨KP, hKP, hcomp⟩ := RadialPullback.radial_comp_finiteJets_uniform (E := E) (V := ℝ) |
| 980 | a b (RadialPullback.powerChart_contDiff ha d) m |
| 981 | obtain ⟨KM, hKM, hmul⟩ := RadialPullback.radial_multiplier_finiteJets_uniform (E := E) (V := ℝ) |
| 982 | a b (aliasFactor_smooth ha d) m |
| 983 | refine ⟨KM * KP, mul_nonneg hKM hKP, ?_⟩ |
| 984 | intro M v g hg hs C hC hbound j hj z |
| 985 | let A := UniformFourierAlias.exactAlias (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) |
| 986 | M v (RadialPullback.normalizeSource d a g) |
| 987 | have hAs : ContDiff ℝ ∞ A := UniformFourierAlias.exactAlias_smooth |
| 988 | (TransportPrimitive.interiorCutoff_contDiff (a ^ d) (b ^ d)) |
| 989 | (RadialPullback.normalizeSource_contDiff ha hd hg) (RadialPullback.normalizeSource_supported ha hab hd hs) |
| 990 | by_cases hz : z.1 ∈ Icc a b |
| 991 | · rw [dividedAlias_eq_pullback ha hab hd v g] |
| 992 | change ‖iteratedFDeriv ℝ j (fun y => aliasFactor d a y.1 • |
| 993 | (A ∘ RadialPullback.liftChart (RadialPullback.powerChart d a)) y) z‖ ≤ _ |
| 994 | have hc := hcomp A hAs z hz C hC |
| 995 | (fun i hi => hbound i hi (RadialPullback.liftChart (RadialPullback.powerChart d a) z)) |
| 996 | have hm := hmul (A ∘ RadialPullback.liftChart (RadialPullback.powerChart d a)) |
| 997 | (hAs.comp (RadialPullback.liftChart_contDiff (RadialPullback.powerChart_contDiff ha d))) z hz |
| 998 | (KP * C) (mul_nonneg hKP hC) hc j hj |
| 999 | exact hm.trans_eq (by ring) |
| 1000 | · have hz0 : iteratedFDeriv ℝ j |
| 1001 | (PressureStream.divideRadius (RadialPullback.physicalAlias d a b M v g)) z = 0 := by |
| 1002 | by_contra hn |
| 1003 | exact hz (TransportPrimitive.iteratedFDeriv_supported |
| 1004 | (PressureStream.divideRadius_supported (RadialPullback.physicalAlias_supported ha hab hd M v g)) j hn) |
| 1005 | rw [hz0, norm_zero] |
| 1006 | exact mul_nonneg (mul_nonneg hKM hKP) hC |
| 1007 | |
| 1008 | end AliasPullback |
| 1009 | |
| 1010 | section WeightedTemporal |
| 1011 | |
| 1012 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 1013 | |
| 1014 | theorem meanClass_temporalInverse {a b cL cR : ℝ} |
| 1015 | (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) |
| 1016 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1017 | {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} |
| 1018 | (hf : WeightedClasses.MeanClass |
| 1019 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 1020 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) : |
| 1021 | WeightedClasses.MeanClass |
| 1022 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 1023 | (fun n => temporalInverse (f n)) := |
| 1024 | UniformFourierAlias.meanClass_realInverse .temporal ha hcL hcR ε R hε hεone hR hf hfc hp |
| 1025 | |
| 1026 | theorem meanClass_centered {a b cL cR : ℝ} |
| 1027 | (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) |
| 1028 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1029 | {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} |
| 1030 | (hf : WeightedClasses.MeanClass |
| 1031 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 1032 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) : |
| 1033 | WeightedClasses.MeanClass |
| 1034 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 1035 | (fun n => centered (f n)) := |
| 1036 | UniformFourierAlias.meanClass_realCenterSource ha hcL hcR ε R hε hεone hR hf hfc hp |
| 1037 | |
| 1038 | /-- The complete desired temporal update preserves the original exponent in |
| 1039 | every band, including the initial bands. No inverse estimate is assumed. -/ |
| 1040 | theorem meanClass_desiredIncrement {a b cL cR h : ℝ} |
| 1041 | (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 1042 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1043 | (hscale : ∀ n, ChartScales.S n ≤ R n) |
| 1044 | {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} |
| 1045 | (hf : WeightedClasses.MeanClass |
| 1046 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 1047 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) : |
| 1048 | WeightedClasses.MeanClass |
| 1049 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 1050 | (fun n => desiredIncrement h n (f n)) := by |
| 1051 | have hc := meanClass_centered ha hcL hcR ε R hε hεone hR hf hfc hp |
| 1052 | have hi := meanClass_temporalInverse ha hcL hcR ε R hε hεone hR hc |
| 1053 | (fun n => centered_smooth (hfc n)) (fun n => centered_periodic (hp n)) |
| 1054 | have hm := (meanClass_chartPrefactor_all hh hscale hi).map (-ContinuousLinearMap.id ℝ ℝ) |
| 1055 | change WeightedClasses.MeanClass _ α |
| 1056 | (fun n z => -chartPrefactor h n * temporalInverse (centered (f n)) z) |
| 1057 | unfold WeightedClasses.MeanClass |
| 1058 | simpa only [desiredIncrement, _root_.neg_apply, ContinuousLinearMap.id_apply, |
| 1059 | smul_eq_mul, neg_mul] using hm |
| 1060 | |
| 1061 | theorem meanClass_axialPotential {a b d cL cR h : ℝ} |
| 1062 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 1063 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1064 | (hscale : ∀ n, ChartScales.S n ≤ R n) (M : ℕ → ℝ) (v : ℕ → Plane) |
| 1065 | {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} |
| 1066 | (hf : WeightedClasses.MeanClass |
| 1067 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 1068 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) |
| 1069 | (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) : |
| 1070 | WeightedClasses.MeanClass |
| 1071 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 1072 | (fun n => axialPotential d a b (M n) (v n) h n (f n)) := |
| 1073 | meanClass_streamPotential ha hab hd hcL hcR ε R hε hεone hR α M (fun n => (0, v n)) |
| 1074 | (fun n => desiredIncrement h n (f n)) (fun n => desiredIncrement_smooth h n (hfc n) (hp n)) |
| 1075 | (fun n => desiredIncrement_supported h n (hs n)) |
| 1076 | (meanClass_desiredIncrement ha hcL hcR hh ε R hε hεone hR hscale hf hfc hp) |
| 1077 | |
| 1078 | theorem meanClass_radialUpdate {a b d cL cR h : ℝ} |
| 1079 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 1080 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1081 | (hscale : ∀ n, ChartScales.S n ≤ R n) (M : ℕ → ℝ) (v : ℕ → Plane) (w : S × Plane) |
| 1082 | {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} |
| 1083 | (hf : WeightedClasses.MeanClass |
| 1084 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 1085 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) |
| 1086 | (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) : |
| 1087 | WeightedClasses.MeanClass |
| 1088 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 1089 | (fun n => radialUpdate d a b (M n) (v n) w h n (f n)) := |
| 1090 | meanClass_streamBeta ha hab hd hcL hcR ε R hε hεone hR α M (fun n => (0, v n)) w |
| 1091 | (fun n => desiredIncrement h n (f n)) (fun n => desiredIncrement_smooth h n (hfc n) (hp n)) |
| 1092 | (fun n => desiredIncrement_supported h n (hs n)) |
| 1093 | (meanClass_desiredIncrement ha hcL hcR hh ε R hε hεone hR hscale hf hfc hp) |
| 1094 | |
| 1095 | /-- The actual chart axial direction carries `ε`; its radial stream |
| 1096 | component therefore gains one full mean-class exponent. -/ |
| 1097 | theorem meanClass_scaledRadialUpdate {a b d cL cR h : ℝ} |
| 1098 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 1099 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1100 | (hscale : ∀ n, ChartScales.S n ≤ R n) (M : ℕ → ℝ) (v : ℕ → Plane) (w : S × Plane) |
| 1101 | {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} |
| 1102 | (hf : WeightedClasses.MeanClass |
| 1103 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 1104 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) |
| 1105 | (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) : |
| 1106 | WeightedClasses.MeanClass |
| 1107 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) (α + 1) |
| 1108 | (fun n => radialUpdate d a b (M n) (v n) (ε n • w) h n (f n)) := by |
| 1109 | let st := WeightedRadialPrimitive.logStripData (E := S × Plane) a b cL cR ha hcL hcR ε R hε hεone hR |
| 1110 | have hb : WeightedClasses.BandBound st 1 ε := by |
| 1111 | have h := WeightedClasses.bandBound_rpow st 1 |
| 1112 | simp only [Real.rpow_one] at h |
| 1113 | exact h |
| 1114 | have hi := meanClass_radialUpdate ha hab hd hcL hcR hh ε R hε hεone hR hscale M v w hf hfc hp hs |
| 1115 | have hout := hi.band_smul hb |
| 1116 | have heq : (fun n => radialUpdate d a b (M n) (v n) (ε n • w) h n (f n)) = |
| 1117 | (fun n z => ε n • radialUpdate d a b (M n) (v n) w h n (f n) z) := by |
| 1118 | funext n z |
| 1119 | exact congrFun (radialUpdate_smul_direction d a b (M n) (v n) w h (ε n) n (f n)) z |
| 1120 | rw [heq] |
| 1121 | exact hout |
| 1122 | |
| 1123 | end WeightedTemporal |
| 1124 | |
| 1125 | section PhysicalAliasSuperflat |
| 1126 | |
| 1127 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 1128 | |
| 1129 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 1130 | theorem normalizeSource_periodic (d a : ℝ) {g : PressureStream.Lift S → ℝ} |
| 1131 | (hp : PressureStream.TorusPeriodicLift g) : |
| 1132 | PressureStream.TorusPeriodicLift (RadialPullback.normalizeSource d a g) := by |
| 1133 | intro r s Y k |
| 1134 | dsimp [RadialPullback.normalizeSource, RadialPullback.liftChart] |
| 1135 | have he := hp (RadialPullback.inverseChart d a r) s Y k |
| 1136 | dsimp at he |
| 1137 | rw [he] |
| 1138 | |
| 1139 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 1140 | theorem normalizeSource_torusAverage (d a : ℝ) (g : PressureStream.Lift S → ℝ) (p : ℝ × S) : |
| 1141 | PressureStream.torusAverage (RadialPullback.normalizeSource d a g) p = |
| 1142 | RadialPullback.sourceMultiplier d a p.1 * |
| 1143 | PressureStream.torusAverage g (RadialPullback.inverseChart d a p.1, p.2) := by |
| 1144 | simp only [PressureStream.torusAverage, PressureStream.torusInner, |
| 1145 | RadialPullback.normalizeSource, RadialPullback.liftChart, smul_eq_mul, |
| 1146 | intervalIntegral.integral_const_mul] |
| 1147 | |
| 1148 | /-- The actual physical divided alias is uniformly superflat for the |
| 1149 | manuscript's radial frequencies and any jointly smooth zero-bar source family. -/ |
| 1150 | theorem dividedAlias_superflat {a b d cL cR h α : ℝ} |
| 1151 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 < h) |
| 1152 | {g : ℕ → PressureStream.Lift S → ℝ} |
| 1153 | (hg : WeightedClasses.MeanClass (UniformFourierAlias.chartStrip a b cL cR ha hcL hcR h hh) α g) |
| 1154 | (hgc : ∀ n, ContDiff ℝ ∞ (g n)) (hgp : ∀ n, PressureStream.TorusPeriodicLift (g n)) |
| 1155 | (hgm : ∀ n p, PressureStream.torusAverage (g n) p = 0) |
| 1156 | (hgs : ∀ n, RadialAlias.RadiallySupported a b (g n)) (m N : ℕ) : |
| 1157 | ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ n in atTop, ∀ j ≤ m, ∀ z : PressureStream.Lift S, |
| 1158 | ‖iteratedFDeriv ℝ j (PressureStream.divideRadius |
| 1159 | (RadialPullback.physicalAlias d a b (ChartScales.radialCoefficient h n) |
| 1160 | ((0 : S), vector .radial) (g n))) z‖ ≤ C * ChartScales.epsilon h n ^ N := by |
| 1161 | have haU : 0 < a ^ d := Real.rpow_pos_of_pos ha d |
| 1162 | have habU : a ^ d < b ^ d := Real.rpow_lt_rpow ha.le hab hd |
| 1163 | have hcLU : 0 < d ^ 2 * cL := mul_pos (sq_pos_of_pos hd) hcL |
| 1164 | have hcRU : 0 < d ^ 2 * cR := mul_pos (sq_pos_of_pos hd) hcR |
| 1165 | let G := fun n => RadialPullback.normalizeSource d a (g n) |
| 1166 | have hG : WeightedClasses.MeanClass |
| 1167 | (UniformFourierAlias.chartStrip (a ^ d) (b ^ d) (d ^ 2 * cL) (d ^ 2 * cR) |
| 1168 | haU hcLU hcRU h hh) α G := |
| 1169 | UniformFourierAlias.meanClass_normalizeSource ha hab hd hcL hcR |
| 1170 | (ChartScales.epsilon h) UniformFourierAlias.bandSlow (ChartScales.epsilon_pos h) |
| 1171 | (ChartScales.epsilon_le_one h hh.le) UniformFourierAlias.one_le_bandSlow hg hgc |
| 1172 | have hGc : ∀ n, ContDiff ℝ ∞ (G n) := fun n => RadialPullback.normalizeSource_contDiff ha hd (hgc n) |
| 1173 | have hGp : ∀ n, UniformFourierAlias.SourcePeriodic (G n) := fun n => normalizeSource_periodic d a (hgp n) |
| 1174 | have hGm : ∀ n p, UniformFourierAlias.sourceMean (G n) p = 0 := by |
| 1175 | intro n p |
| 1176 | change PressureStream.torusAverage (RadialPullback.normalizeSource d a (g n)) p = 0 |
| 1177 | rw [normalizeSource_torusAverage, hgm, mul_zero] |
| 1178 | have hGs := fun n => RadialPullback.normalizeSource_supported ha hab hd (hgs n) |
| 1179 | let χ := TransportPrimitive.interiorCutoff (a ^ d) (b ^ d) |
| 1180 | have hχ : ContDiff ℝ ∞ χ := TransportPrimitive.interiorCutoff_contDiff _ _ |
| 1181 | have hleft : ∀ U ≤ a ^ d, χ U = 0 := fun U hU => |
| 1182 | TransportPrimitive.interiorCutoff_zero habU (by linarith) |
| 1183 | have hright : ∀ U, b ^ d ≤ U → χ U = 1 := fun U hU => |
| 1184 | TransportPrimitive.interiorCutoff_one habU (by linarith) |
| 1185 | obtain ⟨C, hC, hb⟩ := UniformFourierAlias.radial_realMeanClass_alias_superflat |
| 1186 | haU habU.le hcLU hcRU hh hχ hleft hright hG hGc hGp hGm hGs m N |
| 1187 | obtain ⟨K, hK, ht⟩ := dividedAlias_finiteJets_transfer (E := S × Plane) ha hab hd m |
| 1188 | refine ⟨K * C, mul_nonneg hK hC, ?_⟩ |
| 1189 | filter_upwards [hb] with n hn |
| 1190 | intro j hj z |
| 1191 | have hcε : 0 ≤ C * ChartScales.epsilon h n ^ N := |
| 1192 | mul_nonneg hC (pow_nonneg (ChartScales.epsilon_pos h n).le _) |
| 1193 | have he := ht (ChartScales.radialCoefficient h n) ((0 : S), vector .radial) (g n) |
| 1194 | (hgc n) (hgs n) (C * ChartScales.epsilon h n ^ N) hcε hn j hj z |
| 1195 | exact he.trans_eq (by ring) |
| 1196 | |
| 1197 | /-- Superflatness of the exact alias in the constructed temporal axial update. -/ |
| 1198 | theorem axialAlias_superflat {a b d cL cR h α : ℝ} |
| 1199 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 < h) |
| 1200 | {f : ℕ → PressureStream.Lift S → ℝ} |
| 1201 | (hf : WeightedClasses.MeanClass (UniformFourierAlias.chartStrip a b cL cR ha hcL hcR h hh) α f) |
| 1202 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) |
| 1203 | (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) (m N : ℕ) : |
| 1204 | ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ n in atTop, ∀ j ≤ m, ∀ z : PressureStream.Lift S, |
| 1205 | ‖iteratedFDeriv ℝ j |
| 1206 | (axialAlias d a b (ChartScales.radialCoefficient h n) (vector .radial) h n (f n)) z‖ ≤ |
| 1207 | C * ChartScales.epsilon h n ^ N := by |
| 1208 | let st := UniformFourierAlias.chartStrip (E := S × Plane) a b cL cR ha hcL hcR h hh |
| 1209 | let g := fun n => desiredIncrement h n (f n) |
| 1210 | have hg : WeightedClasses.MeanClass st α g := meanClass_desiredIncrement ha hcL hcR hh.le |
| 1211 | (ChartScales.epsilon h) UniformFourierAlias.bandSlow (ChartScales.epsilon_pos h) |
| 1212 | (ChartScales.epsilon_le_one h hh.le) UniformFourierAlias.one_le_bandSlow |
| 1213 | (fun n => le_max_right 1 (ChartScales.S n)) hf hfc hp |
| 1214 | have hgc := fun n => desiredIncrement_smooth h n (hfc n) (hp n) |
| 1215 | have hgp := fun n => desiredIncrement_periodic h n (f n) |
| 1216 | have hgs := fun n => desiredIncrement_supported h n (hs n) |
| 1217 | have hw : WeightedClasses.MeanClass st α (fun n => PressureStream.weightedSource (g n)) := by |
| 1218 | unfold PressureStream.weightedSource |
| 1219 | simpa only [smul_eq_mul, id_eq] using |
| 1220 | meanClass_radialMultiply a b (φ := id) contDiff_id |
| 1221 | (s := st) (fun z hz => ⟨hz.1.le, hz.2.le⟩) hgc hg |
| 1222 | have hwm : ∀ n p, PressureStream.torusAverage (PressureStream.weightedSource (g n)) p = 0 := by |
| 1223 | intro n p |
| 1224 | rw [PressureStream.torusAverage_weightedSource, desiredIncrement_zeroMean h n (hfc n) (hp n), mul_zero] |
| 1225 | exact dividedAlias_superflat ha hab hd hcL hcR hh hw |
| 1226 | (fun n => PressureStream.weightedSource_contDiff (hgc n)) |
| 1227 | (fun n => PressureStream.weightedSource_periodic (hgp n)) hwm |
| 1228 | (fun n => PressureStream.weightedSource_supported (hgs n)) m N |
| 1229 | |
| 1230 | omit [FiniteDimensional ℝ S] [NormedSpace ℝ S] in |
| 1231 | theorem temporalVector_norm_le_one : ‖((0 : ℝ), ((0 : S), vector .temporal))‖ ≤ 1 := by |
| 1232 | have ha : |Real.sqrt 2 - 1| ≤ 1 := abs_le.mpr |
| 1233 | ⟨by linarith [Real.sqrt_nonneg (2 : ℝ)], by linarith [ChartScales.sqrt_two_lt_two]⟩ |
| 1234 | simp only [Prod.norm_def, vector, norm_zero, Real.norm_eq_abs, abs_one] |
| 1235 | exact max_le zero_le_one (max_le zero_le_one (max_le ha le_rfl)) |
| 1236 | |
| 1237 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 1238 | theorem timeCoefficient_norm_le_one {h : ℝ} (hh : 0 ≤ h) {n : ℕ} (hn : 4 ≤ n) : |
| 1239 | ‖ChartScales.timeCoefficient h n‖ ≤ 1 := by |
| 1240 | rw [Real.norm_eq_abs, abs_of_pos (ChartScales.timeCoefficient_pos h n)] |
| 1241 | have hn1 : (1 : ℝ) ≤ n := by exact_mod_cast (show 1 ≤ n by omega) |
| 1242 | have hS : 1 ≤ ChartScales.S n := by dsimp [ChartScales.S]; nlinarith |
| 1243 | exact (ChartScales.timeCoefficient_bounds h hh hn).2.trans |
| 1244 | (by simpa using one_div_le_one_div_of_le (by norm_num : (0 : ℝ) < 1) hS) |
| 1245 | |
| 1246 | /-- The actual fast-time residual alias is superflat in every full joint jet. -/ |
| 1247 | theorem axialAlias_fastDerivative_superflat {a b d cL cR h α : ℝ} |
| 1248 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 < h) |
| 1249 | {f : ℕ → PressureStream.Lift S → ℝ} |
| 1250 | (hf : WeightedClasses.MeanClass (UniformFourierAlias.chartStrip a b cL cR ha hcL hcR h hh) α f) |
| 1251 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) |
| 1252 | (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) (m N : ℕ) : |
| 1253 | ∃ C : ℝ, 0 ≤ C ∧ ∀ᶠ n in atTop, ∀ j ≤ m, ∀ z : PressureStream.Lift S, |
| 1254 | ‖iteratedFDeriv ℝ j (fastDerivative h n |
| 1255 | (axialAlias d a b (ChartScales.radialCoefficient h n) (vector .radial) h n (f n))) z‖ ≤ |
| 1256 | C * ChartScales.epsilon h n ^ N := by |
| 1257 | obtain ⟨C, hC, hb⟩ := axialAlias_superflat ha hab hd hcL hcR hh hf hfc hp hs (m + 1) N |
| 1258 | refine ⟨C, hC, ?_⟩ |
| 1259 | filter_upwards [hb, eventually_ge_atTop 4] with n hn hn4 |
| 1260 | intro j hj z |
| 1261 | let A := axialAlias d a b (ChartScales.radialCoefficient h n) (vector .radial) h n (f n) |
| 1262 | have hA : ContDiff ℝ ∞ A := axialAlias_smooth ha hab hd (vector .radial) h n (hfc n) (hp n) (hs n) |
| 1263 | have hpartial := UniformFourierAlias.finiteJetBound_fixedPartial hA (s := Set.univ) (m := m) |
| 1264 | (C := C * ChartScales.epsilon h n ^ N) (fun i hi x _ => hn i hi x) |
| 1265 | ((0 : ℝ), ((0 : S), vector .temporal)) temporalVector_norm_le_one |
| 1266 | have hD := PressureStream.graphDz_contDiff hA ((0 : S), vector .temporal) |
| 1267 | change ‖iteratedFDeriv ℝ j (fun p => ChartScales.timeCoefficient h n • |
| 1268 | PressureStream.graphDz ((0 : S), vector .temporal) A p) z‖ ≤ _ |
| 1269 | rw [iteratedFDeriv_const_smul_apply' (hD.contDiffAt.of_le (nat_le_smooth j))] |
| 1270 | change ‖ChartScales.timeCoefficient h n • |
| 1271 | (iteratedFDeriv ℝ j (PressureStream.graphDz ((0 : S), vector .temporal) A) z)‖ ≤ _ |
| 1272 | calc |
| 1273 | _ = ‖ChartScales.timeCoefficient h n‖ * |
| 1274 | ‖iteratedFDeriv ℝ j (PressureStream.graphDz ((0 : S), vector .temporal) A) z‖ := |
| 1275 | norm_smul (ChartScales.timeCoefficient h n) |
| 1276 | (iteratedFDeriv ℝ j (PressureStream.graphDz ((0 : S), vector .temporal) A) z) |
| 1277 | _ ≤ _ := (mul_le_mul (timeCoefficient_norm_le_one hh.le hn4) |
| 1278 | (hpartial j hj z (Set.mem_univ z)) (norm_nonneg _) zero_le_one).trans_eq (one_mul _) |
| 1279 | |
| 1280 | end PhysicalAliasSuperflat |
| 1281 | |
| 1282 | section InteriorAliasClass |
| 1283 | |
| 1284 | variable {E V : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1285 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 1286 | |
| 1287 | theorem interiorCutoff_deriv_zero_left {a b U : ℝ} (hab : a < b) |
| 1288 | (hU : U < (2 * a + b) / 3) : deriv (TransportPrimitive.interiorCutoff a b) U = 0 := by |
| 1289 | have he : TransportPrimitive.interiorCutoff a b =ᶠ[𝓝 U] (fun _ => 0) := by |
| 1290 | filter_upwards [Iio_mem_nhds hU] with u hu |
| 1291 | exact TransportPrimitive.interiorCutoff_zero hab hu.le |
| 1292 | exact ((hasDerivAt_const U (0 : ℝ)).congr_of_eventuallyEq he).deriv |
| 1293 | |
| 1294 | theorem interiorCutoff_deriv_zero_right {a b U : ℝ} (hab : a < b) |
| 1295 | (hU : (a + 2 * b) / 3 < U) : deriv (TransportPrimitive.interiorCutoff a b) U = 0 := by |
| 1296 | have he : TransportPrimitive.interiorCutoff a b =ᶠ[𝓝 U] (fun _ => 1) := by |
| 1297 | filter_upwards [Ioi_mem_nhds hU] with u hu |
| 1298 | exact TransportPrimitive.interiorCutoff_one hab hu.le |
| 1299 | exact ((hasDerivAt_const U (1 : ℝ)).congr_of_eventuallyEq he).deriv |
| 1300 | |
| 1301 | /-- The physical alias has support in one fixed compact subannulus, |
| 1302 | uniformly in the source, band, and direction. -/ |
| 1303 | theorem dividedAlias_interior_support {a b d : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) : |
| 1304 | ∃ c e : ℝ, a < c ∧ c < e ∧ e < b ∧ ∀ (M : ℝ) (v : E) (g : ℝ × E → ℝ), |
| 1305 | RadialAlias.RadiallySupported c e (PressureStream.divideRadius (RadialPullback.physicalAlias d a b M v g)) := by |
| 1306 | have hb : 0 < b := ha.trans hab |
| 1307 | have haU : 0 < a ^ d := Real.rpow_pos_of_pos ha d |
| 1308 | have habU : a ^ d < b ^ d := Real.rpow_lt_rpow ha.le hab hd |
| 1309 | let cU := (2 * a ^ d + b ^ d) / 3 |
| 1310 | let eU := (a ^ d + 2 * b ^ d) / 3 |
| 1311 | have hacU : a ^ d < cU := by dsimp [cU]; linarith |
| 1312 | have hceU : cU < eU := by dsimp [cU, eU]; linarith |
| 1313 | have hebU : eU < b ^ d := by dsimp [eU]; linarith |
| 1314 | have hcU : 0 < cU := haU.trans hacU |
| 1315 | have heU : 0 < eU := hcU.trans hceU |
| 1316 | let c := cU ^ d⁻¹ |
| 1317 | let e := eU ^ d⁻¹ |
| 1318 | have hac : a < c := by |
| 1319 | simpa only [Real.rpow_rpow_inv ha.le hd.ne'] using |
| 1320 | Real.rpow_lt_rpow haU.le hacU (inv_pos.mpr hd) |
| 1321 | have hce : c < e := Real.rpow_lt_rpow hcU.le hceU (inv_pos.mpr hd) |
| 1322 | have heb : e < b := by |
| 1323 | simpa only [Real.rpow_rpow_inv hb.le hd.ne'] using |
| 1324 | Real.rpow_lt_rpow heU.le hebU (inv_pos.mpr hd) |
| 1325 | have hcPow : c ^ d = cU := Real.rpow_inv_rpow hcU.le hd.ne' |
| 1326 | have hePow : e ^ d = eU := Real.rpow_inv_rpow heU.le hd.ne' |
| 1327 | have hleft (r : ℝ) (hr : r < c) : |
| 1328 | deriv (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) (RadialPullback.powerChart d a r) = 0 := by |
| 1329 | apply interiorCutoff_deriv_zero_left habU |
| 1330 | change RadialPullback.powerChart d a r < cU |
| 1331 | by_cases hra : a ≤ r |
| 1332 | · rw [RadialPullback.powerChart_eq ha (by linarith) d] |
| 1333 | exact (Real.rpow_lt_rpow (ha.trans_le hra).le hr hd).trans_eq hcPow |
| 1334 | · exact (RadialPullback.powerChart_lt_left ha hd (lt_of_not_ge hra)).trans hacU |
| 1335 | have hright (r : ℝ) (hr : e < r) : |
| 1336 | deriv (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) (RadialPullback.powerChart d a r) = 0 := by |
| 1337 | apply interiorCutoff_deriv_zero_right habU |
| 1338 | change eU < RadialPullback.powerChart d a r |
| 1339 | rw [RadialPullback.powerChart_eq ha (by linarith) d, ← hePow] |
| 1340 | exact Real.rpow_lt_rpow (ha.trans (hac.trans hce)).le hr hd |
| 1341 | refine ⟨c, e, hac, hce, heb, ?_⟩ |
| 1342 | intro M v g z hz |
| 1343 | constructor |
| 1344 | · by_contra hn |
| 1345 | have he := hleft z.1 (lt_of_not_ge hn) |
| 1346 | exact hz (by simp only [PressureStream.divideRadius, RadialPullback.physicalAlias, |
| 1347 | he, mul_zero, zero_smul, zero_div]) |
| 1348 | · by_contra hn |
| 1349 | have he := hright z.1 (lt_of_not_ge hn) |
| 1350 | exact hz (by simp only [PressureStream.divideRadius, RadialPullback.physicalAlias, |
| 1351 | he, mul_zero, zero_smul, zero_div]) |
| 1352 | |
| 1353 | /-- A fixed interior support converts uniform band bounds into the full |
| 1354 | weighted class by an actual positive minimum of the exponential weight. -/ |
| 1355 | theorem meanClass_of_interior_bounds {a b c e cL cR α : ℝ} |
| 1356 | (ha : 0 < a) (hac : a < c) (he : e < b) (hcL : 0 < cL) (hcR : 0 < cR) |
| 1357 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1358 | {f : ℕ → ℝ × E → V} (hfc : ∀ n, ContDiff ℝ ∞ (f n)) |
| 1359 | (hs : ∀ n, RadialAlias.RadiallySupported c e (f n)) |
| 1360 | (hf : ∀ m : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, ∀ n j, j ≤ m → ∀ z : ℝ × E, |
| 1361 | ‖iteratedFDeriv ℝ j (f n) z‖ ≤ C * ε n ^ α * R n ^ p) : |
| 1362 | WeightedClasses.MeanClass |
| 1363 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f := by |
| 1364 | let st := WeightedRadialPrimitive.logStripData (E := E) a b cL cR ha hcL hcR ε R hε hεone hR |
| 1365 | have hmem (r : ℝ) (hr : r ∈ Icc c e) : ((r, (0 : E)) : ℝ × E) ∈ st.domain := |
| 1366 | ⟨hac.trans_le hr.1, hr.2.trans_lt he⟩ |
| 1367 | have hcont : ContinuousOn (fun r : ℝ => st.zeta (r, (0 : E))) (Icc c e) := |
| 1368 | st.zeta_smooth.continuousOn.comp (continuous_id.prodMk continuous_const).continuousOn hmem |
| 1369 | have hpos (r : ℝ) (hr : r ∈ Icc c e) : 0 < st.zeta (r, (0 : E)) := |
| 1370 | WeightedRadialPrimitive.zeta_pos cL cR (WeightedRadialPrimitive.logPosition_mem ha (hmem r hr)) |
| 1371 | obtain ⟨η, hη, hηbound⟩ := UniformCone.positive_uniform_margin isCompact_Icc hcont hpos |
| 1372 | refine ⟨fun n z hz => st.zeta_nonneg z hz, fun n => (hfc n).contDiffOn, ?_⟩ |
| 1373 | intro m |
| 1374 | obtain ⟨C, hC, p, hbound⟩ := hf m |
| 1375 | refine ⟨C / η, div_nonneg hC hη.le, p, ?_⟩ |
| 1376 | intro n z hz j hj |
| 1377 | by_cases hzi : z.1 ∈ Icc c e |
| 1378 | · have hζ : η ≤ st.zeta z := hηbound z.1 hzi |
| 1379 | have hgr : R n ^ p ≤ st.growth n z ^ p := |
| 1380 | pow_le_pow_left₀ (zero_le_one.trans (hR n)) (st.slow_le_growth n z) p |
| 1381 | have hA : 0 ≤ C / η * ε n ^ α * st.growth n z ^ p := |
| 1382 | mul_nonneg (mul_nonneg (div_nonneg hC hη.le) (Real.rpow_pos_of_pos (hε n) α).le) |
| 1383 | (pow_nonneg (st.growth_nonneg n z) p) |
| 1384 | calc |
| 1385 | _ ≤ C * ε n ^ α * R n ^ p := hbound n j hj z |
| 1386 | _ ≤ C * ε n ^ α * st.growth n z ^ p := |
| 1387 | mul_le_mul_of_nonneg_left hgr (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) |
| 1388 | _ = (C / η * ε n ^ α * st.growth n z ^ p) * η := by field_simp |
| 1389 | _ ≤ (C / η * ε n ^ α * st.growth n z ^ p) * st.zeta z := mul_le_mul_of_nonneg_left hζ hA |
| 1390 | _ = _ := rfl |
| 1391 | · have hzero : iteratedFDeriv ℝ j (f n) z = 0 := |
| 1392 | Classical.byContradiction (fun hn => hzi (TransportPrimitive.iteratedFDeriv_supported (hs n) j hn)) |
| 1393 | rw [hzero, norm_zero] |
| 1394 | exact WeightedClasses.majorant_nonneg st (fun _ z => st.zeta z) α |
| 1395 | (div_nonneg hC hη.le) p n z (st.zeta_nonneg z hz) |
| 1396 | |
| 1397 | end InteriorAliasClass |
| 1398 | |
| 1399 | section CompleteWeightedUpdate |
| 1400 | |
| 1401 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 1402 | |
| 1403 | theorem dividedAlias_global_bounds {a b d cL cR α : ℝ} |
| 1404 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) |
| 1405 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1406 | (M : ℕ → ℝ) (hM : ∀ n, M n ≠ 0) {g : ℕ → PressureStream.Lift S → ℝ} |
| 1407 | (hg : WeightedClasses.MeanClass |
| 1408 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α g) |
| 1409 | (hgc : ∀ n, ContDiff ℝ ∞ (g n)) (hgp : ∀ n, PressureStream.TorusPeriodicLift (g n)) |
| 1410 | (hgm : ∀ n p, PressureStream.torusAverage (g n) p = 0) |
| 1411 | (hgs : ∀ n, RadialAlias.RadiallySupported a b (g n)) (m : ℕ) : |
| 1412 | ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, ∀ n j, j ≤ m → ∀ z : PressureStream.Lift S, |
| 1413 | ‖iteratedFDeriv ℝ j (PressureStream.divideRadius |
| 1414 | (RadialPullback.physicalAlias d a b (M n) ((0 : S), vector .radial) (g n))) z‖ ≤ |
| 1415 | C * ε n ^ α * R n ^ p := by |
| 1416 | have haU : 0 < a ^ d := Real.rpow_pos_of_pos ha d |
| 1417 | have habU : a ^ d < b ^ d := Real.rpow_lt_rpow ha.le hab hd |
| 1418 | have hcLU : 0 < d ^ 2 * cL := mul_pos (sq_pos_of_pos hd) hcL |
| 1419 | have hcRU : 0 < d ^ 2 * cR := mul_pos (sq_pos_of_pos hd) hcR |
| 1420 | let G := fun n => RadialPullback.normalizeSource d a (g n) |
| 1421 | have hG := UniformFourierAlias.meanClass_normalizeSource ha hab hd hcL hcR ε R hε hεone hR hg hgc |
| 1422 | have hGc : ∀ n, ContDiff ℝ ∞ (G n) := fun n => RadialPullback.normalizeSource_contDiff ha hd (hgc n) |
| 1423 | have hGp : ∀ n, UniformFourierAlias.SourcePeriodic (G n) := fun n => normalizeSource_periodic d a (hgp n) |
| 1424 | have hGm : ∀ n p, UniformFourierAlias.sourceMean (G n) p = 0 := by |
| 1425 | intro n p |
| 1426 | change PressureStream.torusAverage (RadialPullback.normalizeSource d a (g n)) p = 0 |
| 1427 | rw [normalizeSource_torusAverage, hgm, mul_zero] |
| 1428 | have hGs := fun n => RadialPullback.normalizeSource_supported ha hab hd (hgs n) |
| 1429 | obtain ⟨C, hC, p, hsource⟩ := UniformFourierAlias.meanClass_global_finiteJets |
| 1430 | haU hcLU hcRU ε R hε hεone hR hG hGs hGc m |
| 1431 | let χ := TransportPrimitive.interiorCutoff (a ^ d) (b ^ d) |
| 1432 | have hχ : ContDiff ℝ ∞ χ := TransportPrimitive.interiorCutoff_contDiff _ _ |
| 1433 | have hleft : ∀ U ≤ a ^ d, χ U = 0 := fun U hU => |
| 1434 | TransportPrimitive.interiorCutoff_zero habU (by linarith) |
| 1435 | have hright : ∀ U, b ^ d ≤ U → χ U = 1 := fun U hU => |
| 1436 | TransportPrimitive.interiorCutoff_one habU (by linarith) |
| 1437 | obtain ⟨KA, hKA, hbA⟩ := UniformFourierAlias.real_exactAlias_finiteJets (S := S) .radial |
| 1438 | habU.le hχ hleft hright m 0 |
| 1439 | obtain ⟨KT, hKT, hbT⟩ := dividedAlias_finiteJets_transfer (E := S × Plane) ha hab hd m |
| 1440 | refine ⟨KT * KA * C, mul_nonneg (mul_nonneg hKT hKA) hC, p, ?_⟩ |
| 1441 | intro n j hj z |
| 1442 | let B := C * ε n ^ α * R n ^ p |
| 1443 | have hB : 0 ≤ B := mul_nonneg (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) |
| 1444 | (pow_nonneg (zero_le_one.trans (hR n)) _) |
| 1445 | have hAb : ∀ i ≤ m, ∀ y : PressureStream.Lift S, |
| 1446 | ‖iteratedFDeriv ℝ i (UniformFourierAlias.exactAlias χ (M n) ((0 : S), vector .radial) (G n)) y‖ ≤ KA * B := by |
| 1447 | intro i hi y |
| 1448 | have he := hbA (G n) (hGc n) (hGp n) (hGm n) (hGs n) B hB |
| 1449 | (fun k hk x _ => hsource n k (by simpa using hk) x (Set.mem_univ x)) (M n) (hM n) i hi y |
| 1450 | simpa only [pow_zero, mul_one] using he |
| 1451 | have he := hbT (M n) ((0 : S), vector .radial) (g n) (hgc n) (hgs n) |
| 1452 | (KA * B) (mul_nonneg hKA hB) hAb j hj z |
| 1453 | exact he.trans_eq (by dsimp [B]; ring) |
| 1454 | |
| 1455 | /-- The actual divided compactification alias lies in the same weighted |
| 1456 | class; its fixed interior support supplies the full edge weight. -/ |
| 1457 | theorem meanClass_dividedAlias {a b d cL cR α : ℝ} |
| 1458 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) |
| 1459 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1460 | (M : ℕ → ℝ) (hM : ∀ n, M n ≠ 0) {g : ℕ → PressureStream.Lift S → ℝ} |
| 1461 | (hg : WeightedClasses.MeanClass |
| 1462 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α g) |
| 1463 | (hgc : ∀ n, ContDiff ℝ ∞ (g n)) (hgp : ∀ n, PressureStream.TorusPeriodicLift (g n)) |
| 1464 | (hgm : ∀ n p, PressureStream.torusAverage (g n) p = 0) |
| 1465 | (hgs : ∀ n, RadialAlias.RadiallySupported a b (g n)) : |
| 1466 | WeightedClasses.MeanClass |
| 1467 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 1468 | (fun n => PressureStream.divideRadius |
| 1469 | (RadialPullback.physicalAlias d a b (M n) ((0 : S), vector .radial) (g n))) := by |
| 1470 | obtain ⟨c, e, hac, _, heb, hs⟩ := dividedAlias_interior_support (E := S × Plane) ha hab hd |
| 1471 | apply meanClass_of_interior_bounds ha hac heb hcL hcR ε R hε hεone hR |
| 1472 | · intro n |
| 1473 | exact PressureStream.divideRadius_contDiff ha |
| 1474 | (RadialPullback.physicalAlias_contDiff ha hab hd (hgc n) (hgs n) (M n) (0, vector .radial)) |
| 1475 | (RadialPullback.physicalAlias_supported ha hab hd (M n) (0, vector .radial) (g n)) |
| 1476 | · exact fun n => hs (M n) (0, vector .radial) (g n) |
| 1477 | · exact dividedAlias_global_bounds ha hab hd hcL hcR ε R hε hεone hR M hM hg hgc hgp hgm hgs |
| 1478 | |
| 1479 | theorem meanClass_axialAlias {a b d cL cR h α : ℝ} |
| 1480 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 1481 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1482 | (hscale : ∀ n, ChartScales.S n ≤ R n) (M : ℕ → ℝ) (hM : ∀ n, M n ≠ 0) |
| 1483 | {f : ℕ → PressureStream.Lift S → ℝ} |
| 1484 | (hf : WeightedClasses.MeanClass |
| 1485 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 1486 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) |
| 1487 | (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) : |
| 1488 | WeightedClasses.MeanClass |
| 1489 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 1490 | (fun n => axialAlias d a b (M n) (vector .radial) h n (f n)) := by |
| 1491 | let st := WeightedRadialPrimitive.logStripData (E := S × Plane) a b cL cR ha hcL hcR ε R hε hεone hR |
| 1492 | let g := fun n => desiredIncrement h n (f n) |
| 1493 | have hg : WeightedClasses.MeanClass st α g := |
| 1494 | meanClass_desiredIncrement ha hcL hcR hh ε R hε hεone hR hscale hf hfc hp |
| 1495 | have hgc := fun n => desiredIncrement_smooth h n (hfc n) (hp n) |
| 1496 | have hgp := fun n => desiredIncrement_periodic h n (f n) |
| 1497 | have hgs := fun n => desiredIncrement_supported h n (hs n) |
| 1498 | have hw : WeightedClasses.MeanClass st α (fun n => PressureStream.weightedSource (g n)) := by |
| 1499 | unfold PressureStream.weightedSource |
| 1500 | simpa only [smul_eq_mul, id_eq] using |
| 1501 | meanClass_radialMultiply a b (φ := id) contDiff_id |
| 1502 | (s := st) (fun z hz => ⟨hz.1.le, hz.2.le⟩) hgc hg |
| 1503 | have hwm : ∀ n p, PressureStream.torusAverage (PressureStream.weightedSource (g n)) p = 0 := by |
| 1504 | intro n p |
| 1505 | rw [PressureStream.torusAverage_weightedSource, desiredIncrement_zeroMean h n (hfc n) (hp n), mul_zero] |
| 1506 | exact meanClass_dividedAlias ha hab hd hcL hcR ε R hε hεone hR M hM hw |
| 1507 | (fun n => PressureStream.weightedSource_contDiff (hgc n)) |
| 1508 | (fun n => PressureStream.weightedSource_periodic (hgp n)) hwm |
| 1509 | (fun n => PressureStream.weightedSource_supported (hgs n)) |
| 1510 | |
| 1511 | /-- The reconstructed axial field, including its exact nonzero alias, |
| 1512 | has the original mean-class exponent. -/ |
| 1513 | theorem meanClass_axialUpdate {a b d cL cR h α : ℝ} |
| 1514 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 1515 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1516 | (hscale : ∀ n, ChartScales.S n ≤ R n) (M : ℕ → ℝ) (hM : ∀ n, M n ≠ 0) |
| 1517 | {f : ℕ → PressureStream.Lift S → ℝ} |
| 1518 | (hf : WeightedClasses.MeanClass |
| 1519 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 1520 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) |
| 1521 | (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) : |
| 1522 | WeightedClasses.MeanClass |
| 1523 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 1524 | (fun n => axialUpdate d a b (M n) (vector .radial) h n (f n)) := by |
| 1525 | have hi := meanClass_desiredIncrement ha hcL hcR hh ε R hε hεone hR hscale hf hfc hp |
| 1526 | have hA := meanClass_axialAlias ha hab hd hcL hcR hh ε R hε hεone hR hscale M hM hf hfc hp hs |
| 1527 | have hout := hi.add (hA.map (-ContinuousLinearMap.id ℝ ℝ)) |
| 1528 | have heq : (fun n => axialUpdate d a b (M n) (vector .radial) h n (f n)) = |
| 1529 | fun n z => desiredIncrement h n (f n) z + -axialAlias d a b (M n) (vector .radial) h n (f n) z := by |
| 1530 | funext n z |
| 1531 | simpa only [sub_eq_add_neg] using congrFun |
| 1532 | (axialUpdate_eq_desired_sub_alias ha hab hd (vector .radial) h n (hfc n) (hp n) (hs n)) z |
| 1533 | rw [heq] |
| 1534 | unfold WeightedClasses.MeanClass |
| 1535 | simpa only [_root_.neg_apply, ContinuousLinearMap.id_apply] using hout |
| 1536 | |
| 1537 | end CompleteWeightedUpdate |
| 1538 | |
| 1539 | end NavierStokes.TemporalMeanUpdate |