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 | /-- Finite initial bands are absorbed into an explicit constant. The native |
| 302 | indices are unchanged; the slow scale may be `max 1 (S n)`. -/ |
| 303 | theorem chartPrefactor_bandBound_all {D : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 304 | (s : WeightedClasses.StripData D) (h : ℝ) (hh : 0 ≤ h) |
| 305 | (hs : ∀ n, ChartScales.S n ≤ s.slow n) : |
| 306 | WeightedClasses.BandBound s 0 (chartPrefactor h) := by |
| 307 | let A := ∑ i ∈ Finset.range 4, chartPrefactor h i |
| 308 | have hA : 0 ≤ A := Finset.sum_nonneg (fun i _ => (chartPrefactor_pos h i).le) |
| 309 | have hK : 0 ≤ ChartScales.Tg + A := add_nonneg ChartScales.Tg_pos.le hA |
| 310 | refine ⟨ChartScales.Tg + A, hK, 1, ?_⟩ |
| 311 | intro n |
| 312 | simp only [Real.rpow_zero, mul_one, pow_one] |
| 313 | by_cases hn : 4 ≤ n |
| 314 | · exact (chartPrefactor_bound h hh hn).trans |
| 315 | (mul_le_mul (le_add_of_nonneg_right hA) (hs n) |
| 316 | (sq_nonneg (n : ℝ)) hK) |
| 317 | · rw [Real.norm_eq_abs, abs_of_pos (chartPrefactor_pos h n)] |
| 318 | have hnA : chartPrefactor h n ≤ A := |
| 319 | Finset.single_le_sum (fun i _ => (chartPrefactor_pos h i).le) |
| 320 | (Finset.mem_range.mpr (Nat.lt_of_not_ge hn)) |
| 321 | exact hnA.trans ((le_add_of_nonneg_left ChartScales.Tg_pos.le).trans |
| 322 | (le_mul_of_one_le_right hK (s.one_le_slow n))) |
| 323 | |
| 324 | theorem meanClass_chartPrefactor_all {D E : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 325 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 326 | {s : WeightedClasses.StripData D} {α h : ℝ} {f : ℕ → D → E} |
| 327 | (hh : 0 ≤ h) (hs : ∀ n, ChartScales.S n ≤ s.slow n) |
| 328 | (hf : WeightedClasses.MeanClass s α f) : |
| 329 | WeightedClasses.MeanClass s α (fun n z => chartPrefactor h n • f n z) := by |
| 330 | unfold WeightedClasses.MeanClass |
| 331 | simpa only [add_zero] using hf.band_smul (chartPrefactor_bandBound_all s h hh hs) |
| 332 | |
| 333 | section CenteredSource |
| 334 | |
| 335 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 336 | |
| 337 | /-- Remove exactly the auxiliary torus average, retaining every slow parameter. -/ |
| 338 | noncomputable def centered (f : PressureStream.Lift S → ℝ) (z : PressureStream.Lift S) : ℝ := |
| 339 | f z - PressureStream.torusAverage f (z.1, z.2.1) |
| 340 | |
| 341 | theorem centered_smooth {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) : |
| 342 | ContDiff ℝ ∞ (centered f) := |
| 343 | hf.sub ((PressureStream.torusAverage_contDiff hf).comp |
| 344 | (contDiff_fst.prodMk contDiff_snd.fst)) |
| 345 | |
| 346 | theorem centered_zeroMean {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 347 | (p : ℝ × S) : PressureStream.torusAverage (centered f) p = 0 := by |
| 348 | change PressureStream.torusAverage (fun z => f z - PressureStream.torusAverage f (z.1, z.2.1)) p = 0 |
| 349 | rw [PressureStream.torusAverage_sub_slow hf, sub_self] |
| 350 | |
| 351 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 352 | theorem centered_periodic {f : PressureStream.Lift S → ℝ} |
| 353 | (hp : PressureStream.TorusPeriodicLift f) : PressureStream.TorusPeriodicLift (centered f) := by |
| 354 | intro r s Y k |
| 355 | simp only [centered] |
| 356 | have he := hp r s Y k |
| 357 | dsimp at he |
| 358 | rw [he] |
| 359 | |
| 360 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 361 | theorem centered_supported {a b : ℝ} {f : PressureStream.Lift S → ℝ} |
| 362 | (hs : RadialAlias.RadiallySupported a b f) : |
| 363 | RadialAlias.RadiallySupported a b (centered f) := by |
| 364 | intro z hz |
| 365 | by_contra hout |
| 366 | have hf0 : f z = 0 := by |
| 367 | by_contra hn |
| 368 | exact hout (hs hn) |
| 369 | have hm0 : PressureStream.torusAverage f (z.1, z.2.1) = 0 := by |
| 370 | by_contra hn |
| 371 | exact hout (PressureStream.torusAverage_supported hs hn) |
| 372 | exact hz (by simp [centered, hf0, hm0]) |
| 373 | |
| 374 | end CenteredSource |
| 375 | |
| 376 | /-- Taking a real part commutes with the actual double integral. -/ |
| 377 | theorem squareAverage_re {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) : |
| 378 | TorusAverages.squareAverage (fun z => (f z).re) = (TorusAverages.squareAverage f).re := by |
| 379 | have hi : ContDiff ℝ ∞ (fun y : ℝ => ∫ x in (0 : ℝ)..1, f (x, y)) := |
| 380 | TransportPrimitive.parameterIntegral_contDiff |
| 381 | (hf.comp (contDiff_snd.prodMk contDiff_fst)) 0 1 |
| 382 | have hxs (y : ℝ) : IntervalIntegrable (fun x => f (x, y)) volume 0 1 := |
| 383 | (hf.continuous.comp (continuous_id.prodMk continuous_const)).intervalIntegrable 0 1 |
| 384 | have hx (y : ℝ) : (∫ x in (0 : ℝ)..1, (f (x, y)).re) = |
| 385 | (∫ x in (0 : ℝ)..1, f (x, y)).re := |
| 386 | Complex.reCLM.intervalIntegral_comp_comm (hxs y) |
| 387 | unfold TorusAverages.squareAverage |
| 388 | simp_rw [show ∀ y : ℝ, (∫ x in (0 : ℝ)..1, (f (x, y)).re) = |
| 389 | (∫ x in (0 : ℝ)..1, f (x, y)).re from fun y => hx y] |
| 390 | exact Complex.reCLM.intervalIntegral_comp_comm (hi.continuous.intervalIntegrable 0 1) |
| 391 | |
| 392 | section FamilyInverse |
| 393 | |
| 394 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 395 | |
| 396 | /-- The source in joint slow-parameter/torus coordinates, with the real |
| 397 | source embedded isometrically in the complex Fourier construction. -/ |
| 398 | noncomputable def sourceToFamily (f : PressureStream.Lift S → ℝ) |
| 399 | (z : (ℝ × S) × Plane) : ℂ := f (z.1.1, (z.1.2, z.2)) |
| 400 | |
| 401 | theorem sourceToFamily_smooth {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) : |
| 402 | ContDiff ℝ ∞ (sourceToFamily f) := |
| 403 | Complex.ofRealCLM.contDiff.comp |
| 404 | (hf.comp (LinearIsometryEquiv.prodAssoc ℝ ℝ S Plane).toContinuousLinearEquiv.contDiff) |
| 405 | |
| 406 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 407 | theorem sourceToFamily_periodic {f : PressureStream.Lift S → ℝ} |
| 408 | (hp : PressureStream.TorusPeriodicLift f) : SmoothFamilyTorusInverse.Periodic (sourceToFamily f) := by |
| 409 | intro p Y k |
| 410 | exact congrArg Complex.ofReal (hp p.1 p.2 Y k) |
| 411 | |
| 412 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 413 | theorem sourceToFamily_mean (f : PressureStream.Lift S → ℝ) (p : ℝ × S) : |
| 414 | SmoothFamilyTorusInverse.mean (sourceToFamily f) p = |
| 415 | (PressureStream.torusAverage f p : ℂ) := by |
| 416 | rw [SmoothFamilyTorusInverse.mean_eq_integral] |
| 417 | simp only [sourceToFamily, PressureStream.torusAverage, PressureStream.torusInner, |
| 418 | ← intervalIntegral.integral_ofReal] |
| 419 | |
| 420 | /-- The actual normalized temporal Fourier inverse on a real joint family. -/ |
| 421 | noncomputable def temporalInverse (f : PressureStream.Lift S → ℝ) |
| 422 | (z : PressureStream.Lift S) : ℝ := |
| 423 | (SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f) ((z.1, z.2.1), z.2.2)).re |
| 424 | |
| 425 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 426 | theorem temporalInverse_periodic (f : PressureStream.Lift S → ℝ) : |
| 427 | PressureStream.TorusPeriodicLift (temporalInverse f) := by |
| 428 | intro r s Y k |
| 429 | exact congrArg Complex.re |
| 430 | (SmoothFamilyTorusInverse.inverse_periodic .temporal (sourceToFamily f) (r, s) Y k) |
| 431 | |
| 432 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 433 | theorem temporalInverse_supported {a b : ℝ} {f : PressureStream.Lift S → ℝ} |
| 434 | (hs : RadialAlias.RadiallySupported a b f) : |
| 435 | RadialAlias.RadiallySupported a b (temporalInverse f) := by |
| 436 | have hsource : ∀ p : ℝ × S, p ∉ Prod.fst ⁻¹' Icc a b → ∀ Y : Plane, |
| 437 | sourceToFamily f (p, Y) = 0 := by |
| 438 | intro p hp Y |
| 439 | have hf0 : f (p.1, (p.2, Y)) = 0 := by |
| 440 | by_contra hn |
| 441 | exact hp (hs hn) |
| 442 | simp only [sourceToFamily, hf0, Complex.ofReal_zero] |
| 443 | intro z hz |
| 444 | by_contra hn |
| 445 | have hi := SmoothFamilyTorusInverse.inverse_preserves_parameter_support .temporal |
| 446 | (sourceToFamily f) (Prod.fst ⁻¹' Icc a b) hsource (z.1, z.2.1) hn z.2.2 |
| 447 | exact hz (by simp only [temporalInverse, hi, Complex.zero_re]) |
| 448 | |
| 449 | variable [FiniteDimensional ℝ S] |
| 450 | |
| 451 | theorem temporalInverse_smooth {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 452 | (hp : PressureStream.TorusPeriodicLift f) : ContDiff ℝ ∞ (temporalInverse f) := |
| 453 | (Complex.reCLM.contDiff.comp (SmoothFamilyTorusInverse.inverse_smooth .temporal |
| 454 | (sourceToFamily_smooth hf) (sourceToFamily_periodic hp))).comp |
| 455 | (LinearIsometryEquiv.prodAssoc ℝ ℝ S Plane).symm.toContinuousLinearEquiv.contDiff |
| 456 | |
| 457 | theorem temporalInverse_zeroMean {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 458 | (hp : PressureStream.TorusPeriodicLift f) (p : ℝ × S) : |
| 459 | PressureStream.torusAverage (temporalInverse f) p = 0 := by |
| 460 | have hi := SmoothFamilyTorusInverse.inverse_smooth .temporal |
| 461 | (sourceToFamily_smooth hf) (sourceToFamily_periodic hp) |
| 462 | have hm := SmoothFamilyTorusInverse.inverse_zeroMean .temporal |
| 463 | (sourceToFamily_smooth hf) (sourceToFamily_periodic hp) p |
| 464 | rw [SmoothFamilyTorusInverse.mean_eq_integral] at hm |
| 465 | change TorusAverages.squareAverage |
| 466 | (fun Y => (SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f) (p, Y)).re) = 0 |
| 467 | have hs : ContDiff ℝ ∞ (fun Y => SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f) (p, Y)) := |
| 468 | SmoothFamilyTorusInverse.slice_smooth hi p |
| 469 | rw [squareAverage_re hs] |
| 470 | exact (congrArg Complex.re hm).trans rfl |
| 471 | |
| 472 | /-- The real joint inverse solves the genuine Fréchet directional equation. -/ |
| 473 | theorem temporalInverse_solves {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 474 | (hp : PressureStream.TorusPeriodicLift f) |
| 475 | (hm : ∀ p, PressureStream.torusAverage f p = 0) (z : PressureStream.Lift S) : |
| 476 | PressureStream.graphDz ((0 : S), vector .temporal) (temporalInverse f) z = f z := by |
| 477 | have hfs := sourceToFamily_smooth hf |
| 478 | have hps := sourceToFamily_periodic hp |
| 479 | have hms : SmoothFamilyTorusInverse.ZeroMean (sourceToFamily f) := by |
| 480 | intro p |
| 481 | rw [sourceToFamily_mean, hm p, Complex.ofReal_zero] |
| 482 | let q : (ℝ × S) × Plane := ((z.1, z.2.1), z.2.2) |
| 483 | let L := (LinearIsometryEquiv.prodAssoc ℝ ℝ S Plane).symm.toContinuousLinearEquiv.toContinuousLinearMap |
| 484 | have hi := SmoothFamilyTorusInverse.inverse_smooth .temporal hfs hps |
| 485 | have hD := (Complex.reCLM.hasFDerivAt.comp q |
| 486 | (((hi.differentiable (by simp)) q).hasFDerivAt)).comp z L.hasFDerivAt |
| 487 | change HasFDerivAt (temporalInverse f) _ z at hD |
| 488 | rw [PressureStream.graphDz, hD.fderiv] |
| 489 | change (fderiv ℝ (SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f)) q |
| 490 | (0, vector .temporal)).re = f z |
| 491 | have he := congrFun (SmoothFamilyTorusInverse.inverse_solves .temporal hfs hps hms) q |
| 492 | change fderiv ℝ (SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f)) q |
| 493 | (0, vector .temporal) = sourceToFamily f q at he |
| 494 | rw [he] |
| 495 | rfl |
| 496 | |
| 497 | end FamilyInverse |
| 498 | |
| 499 | section ExactUpdate |
| 500 | |
| 501 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 502 | |
| 503 | omit [FiniteDimensional ℝ S] in |
| 504 | /-- Fiberwise native-to-absolute covariance for the actual real family inverse. -/ |
| 505 | theorem temporalInverse_coverMap {f : PressureStream.Lift S → ℝ} |
| 506 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 507 | (hm : ∀ p, PressureStream.torusAverage f p = 0) (n : ℕ) (z : PressureStream.Lift S) : |
| 508 | temporalInverse (fun p => f (p.1, (p.2.1, coverMap n p.2.2))) z = |
| 509 | (ChartScales.Tg ^ n)⁻¹ * temporalInverse f (z.1, (z.2.1, coverMap n z.2.2)) := by |
| 510 | let q : Plane → ℂ := fun Y => sourceToFamily f ((z.1, z.2.1), Y) |
| 511 | have hq : ContDiff ℝ ∞ q := SmoothFamilyTorusInverse.slice_smooth (sourceToFamily_smooth hf) _ |
| 512 | have hqp : SmoothFourierData.UnitPeriodic q := sourceToFamily_periodic hp _ |
| 513 | have hqm : TorusAverages.squareAverage q = 0 := by |
| 514 | change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, |
| 515 | sourceToFamily f ((z.1, z.2.1), (x, y))) = 0 |
| 516 | rw [← SmoothFamilyTorusInverse.mean_eq_integral, sourceToFamily_mean, hm, Complex.ofReal_zero] |
| 517 | change (absoluteInverse (fun Y => q (coverMap n Y)) z.2.2).re = |
| 518 | (ChartScales.Tg ^ n)⁻¹ * (absoluteInverse q (coverMap n z.2.2)).re |
| 519 | rw [absoluteInverse_coverMap hq hqp hqm n] |
| 520 | simp only [Complex.real_smul, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, |
| 521 | zero_mul, sub_zero] |
| 522 | |
| 523 | /-- The desired angular or axial mean increment in its native chart. -/ |
| 524 | noncomputable def desiredIncrement (h : ℝ) (n : ℕ) (f : PressureStream.Lift S → ℝ) |
| 525 | (z : PressureStream.Lift S) : ℝ := |
| 526 | -chartPrefactor h n * temporalInverse (centered f) z |
| 527 | |
| 528 | /-- The actual fast-time derivative, including its chart coefficient. -/ |
| 529 | noncomputable def fastDerivative (h : ℝ) (n : ℕ) (f : PressureStream.Lift S → ℝ) |
| 530 | (z : PressureStream.Lift S) : ℝ := |
| 531 | ChartScales.timeCoefficient h n * PressureStream.graphDz ((0 : S), vector .temporal) f z |
| 532 | |
| 533 | theorem desiredIncrement_smooth (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 534 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) : |
| 535 | ContDiff ℝ ∞ (desiredIncrement h n f) := |
| 536 | contDiff_const.mul (temporalInverse_smooth (centered_smooth hf) (centered_periodic hp)) |
| 537 | |
| 538 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 539 | theorem desiredIncrement_periodic (h : ℝ) (n : ℕ) (f : PressureStream.Lift S → ℝ) : |
| 540 | PressureStream.TorusPeriodicLift (desiredIncrement h n f) := by |
| 541 | intro r s Y k |
| 542 | exact congrArg (-chartPrefactor h n * ·) (temporalInverse_periodic (centered f) r s Y k) |
| 543 | |
| 544 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 545 | theorem desiredIncrement_supported (h : ℝ) (n : ℕ) {a b : ℝ} {f : PressureStream.Lift S → ℝ} |
| 546 | (hs : RadialAlias.RadiallySupported a b f) : |
| 547 | RadialAlias.RadiallySupported a b (desiredIncrement h n f) := by |
| 548 | intro z hz |
| 549 | apply temporalInverse_supported (centered_supported hs) |
| 550 | intro hi |
| 551 | exact hz (by simp only [desiredIncrement, hi, mul_zero]) |
| 552 | |
| 553 | theorem desiredIncrement_zeroMean (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 554 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (p : ℝ × S) : |
| 555 | PressureStream.torusAverage (desiredIncrement h n f) p = 0 := by |
| 556 | change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, |
| 557 | -chartPrefactor h n * temporalInverse (centered f) (p.1, (p.2, (x, y)))) = 0 |
| 558 | simp_rw [intervalIntegral.integral_const_mul] |
| 559 | change -chartPrefactor h n * PressureStream.torusAverage (temporalInverse (centered f)) p = 0 |
| 560 | rw [temporalInverse_zeroMean (centered_smooth hf) (centered_periodic hp), mul_zero] |
| 561 | |
| 562 | /-- In particular this gives both the angular `r²` bar mass and axial `r` |
| 563 | bar mass without an extra normalization term. -/ |
| 564 | theorem desiredIncrement_barMass (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 565 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (w : ℝ → ℝ) (s : S) : |
| 566 | (∫ r, w r * PressureStream.torusAverage (desiredIncrement h n f) (r, s)) = 0 := by |
| 567 | simp_rw [desiredIncrement_zeroMean h n hf hp, mul_zero, integral_zero] |
| 568 | |
| 569 | /-- Exact cancellation of the source's zero-bar part. -/ |
| 570 | theorem desiredIncrement_fastDerivative (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 571 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (z : PressureStream.Lift S) : |
| 572 | fastDerivative h n (desiredIncrement h n f) z = -centered f z := by |
| 573 | have hi := temporalInverse_smooth (centered_smooth hf) (centered_periodic hp) |
| 574 | have hD := (((hi.differentiable (by simp)) z).hasFDerivAt).const_smul (-chartPrefactor h n) |
| 575 | change HasFDerivAt (desiredIncrement h n f) _ z at hD |
| 576 | rw [fastDerivative, PressureStream.graphDz, hD.fderiv] |
| 577 | change ChartScales.timeCoefficient h n * (-chartPrefactor h n * |
| 578 | PressureStream.graphDz ((0 : S), vector .temporal) (temporalInverse (centered f)) z) = _ |
| 579 | rw [temporalInverse_solves (centered_smooth hf) (centered_periodic hp) (centered_zeroMean hf)] |
| 580 | simp only [chartPrefactor, neg_mul, mul_neg, ← mul_assoc, |
| 581 | mul_inv_cancel₀ (ChartScales.timeCoefficient_pos h n).ne', one_mul] |
| 582 | |
| 583 | omit [FiniteDimensional ℝ S] in |
| 584 | theorem fastDerivative_sub (h : ℝ) (n : ℕ) {f g : PressureStream.Lift S → ℝ} |
| 585 | (hf : ContDiff ℝ ∞ f) (hg : ContDiff ℝ ∞ g) (z : PressureStream.Lift S) : |
| 586 | fastDerivative h n (fun p => f p - g p) z = fastDerivative h n f z - fastDerivative h n g z := by |
| 587 | simp only [fastDerivative, PressureStream.graphDz, |
| 588 | fderiv_fun_sub ((hf.differentiable (by simp)) z) ((hg.differentiable (by simp)) z), |
| 589 | _root_.sub_apply, mul_sub] |
| 590 | |
| 591 | end ExactUpdate |
| 592 | |
| 593 | section NativePullback |
| 594 | |
| 595 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 596 | |
| 597 | noncomputable def pullbackCover (i : ℕ) (f : PressureStream.Lift S → ℝ) |
| 598 | (z : PressureStream.Lift S) : ℝ := f (z.1, (z.2.1, coverMap i z.2.2)) |
| 599 | |
| 600 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 601 | theorem pullbackCover_periodic (i : ℕ) {f : PressureStream.Lift S → ℝ} |
| 602 | (hp : PressureStream.TorusPeriodicLift f) : PressureStream.TorusPeriodicLift (pullbackCover i f) := by |
| 603 | intro r s Y k |
| 604 | change f (r, (s, coverMap i (Y + ((k.1 : ℝ), (k.2 : ℝ))))) = f (r, (s, coverMap i Y)) |
| 605 | rw [map_add, coverMap_lattice] |
| 606 | exact hp r s _ _ |
| 607 | |
| 608 | theorem torusAverage_pullbackCover (i : ℕ) {f : PressureStream.Lift S → ℝ} |
| 609 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (p : ℝ × S) : |
| 610 | PressureStream.torusAverage (pullbackCover i f) p = PressureStream.torusAverage f p := by |
| 611 | change TorusAverages.squareAverage (fun Y => f (p.1, (p.2, coverMap i Y))) = |
| 612 | TorusAverages.squareAverage (fun Y => f (p.1, (p.2, Y))) |
| 613 | simp_rw [coverMap_eq_iterate] |
| 614 | exact TorusAverages.squareAverage_covering_iterate_real |
| 615 | (hf.continuous.comp (continuous_const.prodMk (continuous_const.prodMk continuous_id))) |
| 616 | (hp p.1 p.2) i |
| 617 | |
| 618 | end NativePullback |
| 619 | |
| 620 | section AxialReconstruction |
| 621 | |
| 622 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 623 | |
| 624 | noncomputable def axialPotential (d a b M : ℝ) (v : Plane) (h : ℝ) (n : ℕ) |
| 625 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 626 | PressureStream.streamPotential d a b M ((0 : S), v) (desiredIncrement h n f) |
| 627 | |
| 628 | noncomputable def axialUpdate (d a b M : ℝ) (v : Plane) (h : ℝ) (n : ℕ) |
| 629 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 630 | PressureStream.streamGamma (PressureStream.physicalSpeed d M) ((0 : S), v) |
| 631 | (axialPotential d a b M v h n f) |
| 632 | |
| 633 | noncomputable def radialUpdate (d a b M : ℝ) (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) |
| 634 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 635 | PressureStream.streamBeta w (axialPotential d a b M v h n f) |
| 636 | |
| 637 | omit [FiniteDimensional ℝ S] in |
| 638 | theorem radialUpdate_smul_direction (d a b M : ℝ) (v : Plane) (w : S × Plane) (h c : ℝ) (n : ℕ) |
| 639 | (f : PressureStream.Lift S → ℝ) : |
| 640 | 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 |
| 641 | funext z |
| 642 | have hv : ((0 : ℝ), c • w) = c • ((0 : ℝ), w) := by simp |
| 643 | simp only [radialUpdate, PressureStream.streamBeta, PressureStream.graphDz, hv, map_smul, |
| 644 | smul_eq_mul, mul_neg] |
| 645 | |
| 646 | /-- The retained compactification alias, with its physical `1/r` factor. -/ |
| 647 | noncomputable def axialAlias (d a b M : ℝ) (v : Plane) (h : ℝ) (n : ℕ) |
| 648 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 649 | PressureStream.divideRadius (RadialPullback.physicalAlias d a b M ((0 : S), v) |
| 650 | (PressureStream.weightedSource (desiredIncrement h n f))) |
| 651 | |
| 652 | theorem axialPotential_smooth {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 653 | (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 654 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 655 | (hs : RadialAlias.RadiallySupported a b f) : ContDiff ℝ ∞ (axialPotential d a b M v h n f) := |
| 656 | PressureStream.streamPotential_contDiff ha hab hd (0, v) |
| 657 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) |
| 658 | |
| 659 | theorem axialUpdate_smooth {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 660 | (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 661 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 662 | (hs : RadialAlias.RadiallySupported a b f) : ContDiff ℝ ∞ (axialUpdate d a b M v h n f) := |
| 663 | PressureStream.streamGamma_contDiff ha hab hd (0, v) |
| 664 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) |
| 665 | |
| 666 | theorem radialUpdate_smooth {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 667 | (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 668 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 669 | (hs : RadialAlias.RadiallySupported a b f) : ContDiff ℝ ∞ (radialUpdate d a b M v w h n f) := |
| 670 | PressureStream.streamBeta_contDiff ha hab hd (0, v) w |
| 671 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) |
| 672 | |
| 673 | theorem axialAlias_smooth {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 674 | (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 675 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 676 | (hs : RadialAlias.RadiallySupported a b f) : ContDiff ℝ ∞ (axialAlias d a b M v h n f) := |
| 677 | PressureStream.divideRadius_contDiff ha |
| 678 | (RadialPullback.physicalAlias_contDiff ha hab hd |
| 679 | (PressureStream.weightedSource_contDiff (desiredIncrement_smooth h n hf hp)) |
| 680 | (PressureStream.weightedSource_supported (desiredIncrement_supported h n hs)) M (0, v)) |
| 681 | (RadialPullback.physicalAlias_supported ha hab hd M (0, v) _) |
| 682 | |
| 683 | /-- No compactification error is removed from the reconstructed axial field. -/ |
| 684 | theorem axialUpdate_eq_desired_sub_alias {d a b M : ℝ} |
| 685 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (v : Plane) (h : ℝ) (n : ℕ) |
| 686 | {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 687 | (hp : PressureStream.TorusPeriodicLift f) (hs : RadialAlias.RadiallySupported a b f) : |
| 688 | 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 |
| 689 | funext z |
| 690 | exact PressureStream.streamGamma_eq_desired_sub_alias_global ha hab hd (0, v) |
| 691 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) z |
| 692 | |
| 693 | theorem update_divergence_zero {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 694 | (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 695 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 696 | (hs : RadialAlias.RadiallySupported a b f) (z : PressureStream.Lift S) : |
| 697 | PressureStream.graphDivergence (PressureStream.physicalSpeed d M) (0, v) w |
| 698 | (radialUpdate d a b M v w h n f) (axialUpdate d a b M v h n f) z = 0 := |
| 699 | PressureStream.reconstructed_divergence_zero ha hab hd (0, v) w |
| 700 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) z |
| 701 | |
| 702 | theorem axialUpdate_zeroMean {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 703 | (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 704 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 705 | (hs : RadialAlias.RadiallySupported a b f) (p : ℝ × S) : |
| 706 | PressureStream.torusAverage (axialUpdate d a b M v h n f) p = 0 := by |
| 707 | have he := PressureStream.streamGamma_bar_eq_desired (M := M) ha hab hd v |
| 708 | (desiredIncrement_smooth h n hf hp) (desiredIncrement_supported h n hs) |
| 709 | (desiredIncrement_periodic h n f) (desiredIncrement_barMass h n hf hp id) p |
| 710 | exact he.trans (desiredIncrement_zeroMean h n hf hp p) |
| 711 | |
| 712 | /-- Fast time cancels the axial zero-bar source, retaining exactly the |
| 713 | fast-time derivative of the compactification alias. -/ |
| 714 | theorem axialUpdate_fast_residual {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 715 | (v : Plane) (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 716 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 717 | (hs : RadialAlias.RadiallySupported a b f) (z : PressureStream.Lift S) : |
| 718 | fastDerivative h n (axialUpdate d a b M v h n f) z + centered f z = |
| 719 | -fastDerivative h n (axialAlias d a b M v h n f) z := by |
| 720 | rw [axialUpdate_eq_desired_sub_alias ha hab hd v h n hf hp hs, |
| 721 | fastDerivative_sub h n (desiredIncrement_smooth h n hf hp) |
| 722 | (axialAlias_smooth ha hab hd v h n hf hp hs), desiredIncrement_fastDerivative h n hf hp] |
| 723 | ring |
| 724 | |
| 725 | /-- The actual two-component fast-time update and incompressible stream, |
| 726 | with the exact axial alias in the resulting residual. -/ |
| 727 | theorem temporal_mean_update {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 728 | (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) {fθ fz : PressureStream.Lift S → ℝ} |
| 729 | (hθ : ContDiff ℝ ∞ fθ) (hz : ContDiff ℝ ∞ fz) |
| 730 | (hpθ : PressureStream.TorusPeriodicLift fθ) (hpz : PressureStream.TorusPeriodicLift fz) |
| 731 | (hsz : RadialAlias.RadiallySupported a b fz) (z : PressureStream.Lift S) : |
| 732 | fastDerivative h n (desiredIncrement h n fθ) z + centered fθ z = 0 ∧ |
| 733 | fastDerivative h n (axialUpdate d a b M v h n fz) z + centered fz z = |
| 734 | -fastDerivative h n (axialAlias d a b M v h n fz) z ∧ |
| 735 | PressureStream.graphDivergence (PressureStream.physicalSpeed d M) (0, v) w |
| 736 | (radialUpdate d a b M v w h n fz) (axialUpdate d a b M v h n fz) z = 0 ∧ |
| 737 | PressureStream.torusAverage (desiredIncrement h n fθ) (z.1, z.2.1) = 0 ∧ |
| 738 | PressureStream.torusAverage (axialUpdate d a b M v h n fz) (z.1, z.2.1) = 0 := by |
| 739 | refine ⟨?_, axialUpdate_fast_residual ha hab hd v h n hz hpz hsz z, |
| 740 | update_divergence_zero ha hab hd v w h n hz hpz hsz z, |
| 741 | desiredIncrement_zeroMean h n hθ hpθ _, axialUpdate_zeroMean ha hab hd v h n hz hpz hsz _⟩ |
| 742 | rw [desiredIncrement_fastDerivative h n hθ hpθ, neg_add_cancel] |
| 743 | |
| 744 | end AxialReconstruction |
| 745 | |
| 746 | section WeightedStream |
| 747 | |
| 748 | variable {E V : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 749 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 750 | |
| 751 | /-- A fixed smooth radial multiplier preserves the actual all-jet class. |
| 752 | The constant is obtained from the derivative product rule on the compact annulus. -/ |
| 753 | theorem meanClass_radialMultiply (a b : ℝ) {φ : ℝ → ℝ} (hφ : ContDiff ℝ ∞ φ) |
| 754 | {s : WeightedClasses.StripData (ℝ × E)} {α : ℝ} {g : ℕ → ℝ × E → V} |
| 755 | (hdomain : ∀ z ∈ s.domain, z.1 ∈ Icc a b) (hg : ∀ n, ContDiff ℝ ∞ (g n)) |
| 756 | (hclass : WeightedClasses.MeanClass s α g) : |
| 757 | WeightedClasses.MeanClass s α (fun n z => φ z.1 • g n z) := by |
| 758 | refine ⟨hclass.weight_nonneg, fun n => ((hφ.comp contDiff_fst).smul (hg n)).contDiffOn, ?_⟩ |
| 759 | intro m |
| 760 | obtain ⟨C, hC, p, hbound⟩ := hclass.bounds m |
| 761 | obtain ⟨K, hK, hmul⟩ := RadialPullback.radial_multiplier_finiteJets_uniform (E := E) (V := V) a b hφ m |
| 762 | refine ⟨K * C, mul_nonneg hK hC, p, ?_⟩ |
| 763 | intro n z hz j hj |
| 764 | have hA := WeightedClasses.majorant_nonneg s (fun _ z => s.zeta z) α hC p n z |
| 765 | (s.zeta_nonneg z hz) |
| 766 | have hout := hmul (g n) (hg n) z (hdomain z hz) |
| 767 | (WeightedClasses.majorant s (fun _ z => s.zeta z) α C p n z) hA (hbound n z hz) j hj |
| 768 | apply hout.trans_eq |
| 769 | unfold WeightedClasses.majorant |
| 770 | ring |
| 771 | |
| 772 | /-- Division by the positive radius preserves the class for supported |
| 773 | fields. A globally smooth positive regularization proves all derivative bounds. -/ |
| 774 | theorem meanClass_divideRadius {a b : ℝ} (ha : 0 < a) |
| 775 | {s : WeightedClasses.StripData (ℝ × E)} {α : ℝ} {g : ℕ → ℝ × E → ℝ} |
| 776 | (hdomain : ∀ z ∈ s.domain, z.1 ∈ Icc a b) (hg : ∀ n, ContDiff ℝ ∞ (g n)) |
| 777 | (hs : ∀ n, RadialAlias.RadiallySupported a b (g n)) |
| 778 | (hclass : WeightedClasses.MeanClass s α g) : |
| 779 | WeightedClasses.MeanClass s α (fun n => PressureStream.divideRadius (g n)) := by |
| 780 | let φ : ℝ → ℝ := fun r => (RadialPullback.positiveRadius (a / 4) r)⁻¹ |
| 781 | have hφ : ContDiff ℝ ∞ φ := (RadialPullback.positiveRadius_contDiff (a / 4)).inv |
| 782 | (fun r => (RadialPullback.positiveRadius_pos (by positivity) r).ne') |
| 783 | have heq : (fun n => PressureStream.divideRadius (g n)) = (fun n z => φ z.1 • g n z) := by |
| 784 | funext n z |
| 785 | by_cases hr : a ≤ z.1 |
| 786 | · dsimp [PressureStream.divideRadius, φ] |
| 787 | rw [RadialPullback.positiveRadius_eq_self (by positivity) (by linarith)] |
| 788 | simp only [div_eq_mul_inv, mul_comm] |
| 789 | · have hg0 : g n z = 0 := by |
| 790 | by_contra hn |
| 791 | exact hr (hs n hn).1 |
| 792 | simp [PressureStream.divideRadius, hg0] |
| 793 | rw [heq] |
| 794 | exact meanClass_radialMultiply a b hφ hdomain hg hclass |
| 795 | |
| 796 | /-- The actual stream potential preserves the original exponential weight |
| 797 | and its exponent, uniformly for all bandwise transport coefficients. -/ |
| 798 | theorem meanClass_streamPotential {a b d cL cR : ℝ} |
| 799 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) |
| 800 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 801 | (α : ℝ) (M : ℕ → ℝ) (v : ℕ → E) (g : ℕ → ℝ × E → ℝ) |
| 802 | (hg : ∀ n, ContDiff ℝ ∞ (g n)) (hs : ∀ n, RadialAlias.RadiallySupported a b (g n)) |
| 803 | (hclass : WeightedClasses.MeanClass |
| 804 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α g) : |
| 805 | WeightedClasses.MeanClass |
| 806 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 807 | (fun n => PressureStream.streamPotential d a b (M n) (v n) (g n)) := by |
| 808 | let s : WeightedClasses.StripData (ℝ × E) := |
| 809 | WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR |
| 810 | have hdomain : ∀ z ∈ s.domain, z.1 ∈ Icc a b := fun z hz => ⟨hz.1.le, hz.2.le⟩ |
| 811 | have hw : WeightedClasses.MeanClass s α (fun n => PressureStream.weightedSource (g n)) := by |
| 812 | unfold PressureStream.weightedSource |
| 813 | simpa only [smul_eq_mul, id_eq] using |
| 814 | meanClass_radialMultiply a b (φ := id) contDiff_id hdomain hg hclass |
| 815 | have hwc := fun n => PressureStream.weightedSource_contDiff (hg n) |
| 816 | have hws := fun n => PressureStream.weightedSource_supported (hs n) |
| 817 | have hic := RadialPullback.meanClass_physicalCompact ha hab hd hcL hcR ε R hε hεone hR α M v |
| 818 | (fun n => PressureStream.weightedSource (g n)) hwc hws hw |
| 819 | exact meanClass_divideRadius ha hdomain |
| 820 | (fun n => RadialPullback.physicalCompact_contDiff ha hab hd (hwc n) (hws n) (M n) (v n)) |
| 821 | (fun n => RadialPullback.physicalCompact_supported ha hab hd (hwc n) (hws n) (M n) (v n)) hic |
| 822 | |
| 823 | /-- A fixed full axial direction may include every slow variable. Its actual |
| 824 | derivative of the stream has the same class exponent. -/ |
| 825 | theorem meanClass_streamBeta {a b d cL cR : ℝ} |
| 826 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) |
| 827 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 828 | (α : ℝ) (M : ℕ → ℝ) (v : ℕ → E) (w : E) (g : ℕ → ℝ × E → ℝ) |
| 829 | (hg : ∀ n, ContDiff ℝ ∞ (g n)) (hs : ∀ n, RadialAlias.RadiallySupported a b (g n)) |
| 830 | (hclass : WeightedClasses.MeanClass |
| 831 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α g) : |
| 832 | WeightedClasses.MeanClass |
| 833 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 834 | (fun n => PressureStream.streamBeta w (PressureStream.streamPotential d a b (M n) (v n) (g n))) := by |
| 835 | have hi := meanClass_streamPotential ha hab hd hcL hcR ε R hε hεone hR α M v g hg hs hclass |
| 836 | have hD := (hi.directional (0, w)).map (-ContinuousLinearMap.id ℝ ℝ) |
| 837 | unfold WeightedClasses.MeanClass PressureStream.streamBeta PressureStream.graphDz |
| 838 | simpa only [ |
| 839 | _root_.neg_apply, ContinuousLinearMap.id_apply] using hD |
| 840 | |
| 841 | end WeightedStream |
| 842 | |
| 843 | section AliasPullback |
| 844 | |
| 845 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 846 | |
| 847 | noncomputable def aliasFactor (d a r : ℝ) : ℝ := |
| 848 | RadialPullback.radialJacobian d (RadialPullback.positiveRadius (a / 4) r) / |
| 849 | RadialPullback.positiveRadius (a / 4) r |
| 850 | |
| 851 | theorem aliasFactor_smooth {a : ℝ} (ha : 0 < a) (d : ℝ) : ContDiff ℝ ∞ (aliasFactor d a) := by |
| 852 | have hr := RadialPullback.positiveRadius_contDiff (a / 4) |
| 853 | have hn (r : ℝ) := (RadialPullback.positiveRadius_pos (show 0 < a / 4 by positivity) r).ne' |
| 854 | exact (contDiff_const.mul (hr.rpow_const_of_ne hn)).div hr hn |
| 855 | |
| 856 | /-- The physical divided alias is exactly a fixed radial multiplier times |
| 857 | the normalized transport alias pulled through the power chart. -/ |
| 858 | theorem dividedAlias_eq_pullback {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 859 | (v : E) (g : ℝ × E → ℝ) : |
| 860 | PressureStream.divideRadius (RadialPullback.physicalAlias d a b M v g) = |
| 861 | fun z => aliasFactor d a z.1 * UniformFourierAlias.exactAlias |
| 862 | (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) M v (RadialPullback.normalizeSource d a g) |
| 863 | (RadialPullback.liftChart (RadialPullback.powerChart d a) z) := by |
| 864 | funext z |
| 865 | by_cases hr : a ≤ z.1 |
| 866 | · dsimp [PressureStream.divideRadius, RadialPullback.physicalAlias, UniformFourierAlias.exactAlias, |
| 867 | RadialPullback.liftChart, aliasFactor] |
| 868 | rw [RadialPullback.positiveRadius_eq_self (show 0 < a / 4 by positivity) (by linarith)] |
| 869 | ring |
| 870 | · have hχ := RadialPullback.deriv_interiorCutoff_zero_left |
| 871 | (Real.rpow_lt_rpow ha.le hab hd) (RadialPullback.powerChart_lt_left ha hd (lt_of_not_ge hr)).le |
| 872 | simp only [PressureStream.divideRadius, RadialPullback.physicalAlias, UniformFourierAlias.exactAlias, |
| 873 | RadialPullback.liftChart, hχ, mul_zero, zero_smul, zero_div] |
| 874 | |
| 875 | /-- A uniform full-jet estimate for the actual physical alias follows from |
| 876 | the corresponding normalized alias estimate. The transfer constant is fixed |
| 877 | before the source, transport coefficient, and transport direction are given. -/ |
| 878 | theorem dividedAlias_finiteJets_transfer {d a b : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) |
| 879 | (m : ℕ) : ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : E) (g : ℝ × E → ℝ), |
| 880 | ContDiff ℝ ∞ g → RadialAlias.RadiallySupported a b g → |
| 881 | ∀ C : ℝ, 0 ≤ C → |
| 882 | (∀ j ≤ m, ∀ z : ℝ × E, ‖iteratedFDeriv ℝ j (UniformFourierAlias.exactAlias |
| 883 | (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) M v |
| 884 | (RadialPullback.normalizeSource d a g)) z‖ ≤ C) → |
| 885 | ∀ j ≤ m, ∀ z : ℝ × E, |
| 886 | ‖iteratedFDeriv ℝ j (PressureStream.divideRadius (RadialPullback.physicalAlias d a b M v g)) z‖ ≤ |
| 887 | K * C := by |
| 888 | obtain ⟨KP, hKP, hcomp⟩ := RadialPullback.radial_comp_finiteJets_uniform (E := E) (V := ℝ) |
| 889 | a b (RadialPullback.powerChart_contDiff ha d) m |
| 890 | obtain ⟨KM, hKM, hmul⟩ := RadialPullback.radial_multiplier_finiteJets_uniform (E := E) (V := ℝ) |
| 891 | a b (aliasFactor_smooth ha d) m |
| 892 | refine ⟨KM * KP, mul_nonneg hKM hKP, ?_⟩ |
| 893 | intro M v g hg hs C hC hbound j hj z |
| 894 | let A := UniformFourierAlias.exactAlias (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) |
| 895 | M v (RadialPullback.normalizeSource d a g) |
| 896 | have hAs : ContDiff ℝ ∞ A := UniformFourierAlias.exactAlias_smooth |
| 897 | (TransportPrimitive.interiorCutoff_contDiff (a ^ d) (b ^ d)) |
| 898 | (RadialPullback.normalizeSource_contDiff ha hd hg) (RadialPullback.normalizeSource_supported ha hab hd hs) |
| 899 | by_cases hz : z.1 ∈ Icc a b |
| 900 | · rw [dividedAlias_eq_pullback ha hab hd v g] |
| 901 | change ‖iteratedFDeriv ℝ j (fun y => aliasFactor d a y.1 • |
| 902 | (A ∘ RadialPullback.liftChart (RadialPullback.powerChart d a)) y) z‖ ≤ _ |
| 903 | have hc := hcomp A hAs z hz C hC |
| 904 | (fun i hi => hbound i hi (RadialPullback.liftChart (RadialPullback.powerChart d a) z)) |
| 905 | have hm := hmul (A ∘ RadialPullback.liftChart (RadialPullback.powerChart d a)) |
| 906 | (hAs.comp (RadialPullback.liftChart_contDiff (RadialPullback.powerChart_contDiff ha d))) z hz |
| 907 | (KP * C) (mul_nonneg hKP hC) hc j hj |
| 908 | exact hm.trans_eq (by ring) |
| 909 | · have hz0 : iteratedFDeriv ℝ j |
| 910 | (PressureStream.divideRadius (RadialPullback.physicalAlias d a b M v g)) z = 0 := by |
| 911 | by_contra hn |
| 912 | exact hz (TransportPrimitive.iteratedFDeriv_supported |
| 913 | (PressureStream.divideRadius_supported (RadialPullback.physicalAlias_supported ha hab hd M v g)) j hn) |
| 914 | rw [hz0, norm_zero] |
| 915 | exact mul_nonneg (mul_nonneg hKM hKP) hC |
| 916 | |
| 917 | end AliasPullback |
| 918 | |
| 919 | section WeightedTemporal |
| 920 | |
| 921 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 922 | |
| 923 | theorem meanClass_temporalInverse {a b cL cR : ℝ} |
| 924 | (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) |
| 925 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 926 | {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} |
| 927 | (hf : WeightedClasses.MeanClass |
| 928 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 929 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) : |
| 930 | WeightedClasses.MeanClass |
| 931 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 932 | (fun n => temporalInverse (f n)) := |
| 933 | UniformFourierAlias.meanClass_realInverse .temporal ha hcL hcR ε R hε hεone hR hf hfc hp |
| 934 | |
| 935 | theorem meanClass_centered {a b cL cR : ℝ} |
| 936 | (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) |
| 937 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 938 | {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} |
| 939 | (hf : WeightedClasses.MeanClass |
| 940 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 941 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) : |
| 942 | WeightedClasses.MeanClass |
| 943 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 944 | (fun n => centered (f n)) := |
| 945 | UniformFourierAlias.meanClass_realCenterSource ha hcL hcR ε R hε hεone hR hf hfc hp |
| 946 | |
| 947 | /-- The complete desired temporal update preserves the original exponent in |
| 948 | every band, including the initial bands. No inverse estimate is assumed. -/ |
| 949 | theorem meanClass_desiredIncrement {a b cL cR h : ℝ} |
| 950 | (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 951 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 952 | (hscale : ∀ n, ChartScales.S n ≤ R n) |
| 953 | {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} |
| 954 | (hf : WeightedClasses.MeanClass |
| 955 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 956 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) : |
| 957 | WeightedClasses.MeanClass |
| 958 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 959 | (fun n => desiredIncrement h n (f n)) := by |
| 960 | have hc := meanClass_centered ha hcL hcR ε R hε hεone hR hf hfc hp |
| 961 | have hi := meanClass_temporalInverse ha hcL hcR ε R hε hεone hR hc |
| 962 | (fun n => centered_smooth (hfc n)) (fun n => centered_periodic (hp n)) |
| 963 | have hm := (meanClass_chartPrefactor_all hh hscale hi).map (-ContinuousLinearMap.id ℝ ℝ) |
| 964 | change WeightedClasses.MeanClass _ α |
| 965 | (fun n z => -chartPrefactor h n * temporalInverse (centered (f n)) z) |
| 966 | unfold WeightedClasses.MeanClass |
| 967 | simpa only [desiredIncrement, _root_.neg_apply, ContinuousLinearMap.id_apply, |
| 968 | smul_eq_mul, neg_mul] using hm |
| 969 | |
| 970 | theorem meanClass_axialPotential {a b d cL cR h : ℝ} |
| 971 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 972 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 973 | (hscale : ∀ n, ChartScales.S n ≤ R n) (M : ℕ → ℝ) (v : ℕ → Plane) |
| 974 | {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} |
| 975 | (hf : WeightedClasses.MeanClass |
| 976 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 977 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) |
| 978 | (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) : |
| 979 | WeightedClasses.MeanClass |
| 980 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 981 | (fun n => axialPotential d a b (M n) (v n) h n (f n)) := |
| 982 | meanClass_streamPotential ha hab hd hcL hcR ε R hε hεone hR α M (fun n => (0, v n)) |
| 983 | (fun n => desiredIncrement h n (f n)) (fun n => desiredIncrement_smooth h n (hfc n) (hp n)) |
| 984 | (fun n => desiredIncrement_supported h n (hs n)) |
| 985 | (meanClass_desiredIncrement ha hcL hcR hh ε R hε hεone hR hscale hf hfc hp) |
| 986 | |
| 987 | theorem meanClass_radialUpdate {a b d cL cR h : ℝ} |
| 988 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 989 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 990 | (hscale : ∀ n, ChartScales.S n ≤ R n) (M : ℕ → ℝ) (v : ℕ → Plane) (w : S × Plane) |
| 991 | {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} |
| 992 | (hf : WeightedClasses.MeanClass |
| 993 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 994 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) |
| 995 | (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) : |
| 996 | WeightedClasses.MeanClass |
| 997 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 998 | (fun n => radialUpdate d a b (M n) (v n) w h n (f n)) := |
| 999 | meanClass_streamBeta ha hab hd hcL hcR ε R hε hεone hR α M (fun n => (0, v n)) w |
| 1000 | (fun n => desiredIncrement h n (f n)) (fun n => desiredIncrement_smooth h n (hfc n) (hp n)) |
| 1001 | (fun n => desiredIncrement_supported h n (hs n)) |
| 1002 | (meanClass_desiredIncrement ha hcL hcR hh ε R hε hεone hR hscale hf hfc hp) |
| 1003 | |
| 1004 | /-- The actual chart axial direction carries `ε`; its radial stream |
| 1005 | component therefore gains one full mean-class exponent. -/ |
| 1006 | theorem meanClass_scaledRadialUpdate {a b d cL cR h : ℝ} |
| 1007 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 1008 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1009 | (hscale : ∀ n, ChartScales.S n ≤ R n) (M : ℕ → ℝ) (v : ℕ → Plane) (w : S × Plane) |
| 1010 | {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} |
| 1011 | (hf : WeightedClasses.MeanClass |
| 1012 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 1013 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) |
| 1014 | (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) : |
| 1015 | WeightedClasses.MeanClass |
| 1016 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) (α + 1) |
| 1017 | (fun n => radialUpdate d a b (M n) (v n) (ε n • w) h n (f n)) := by |
| 1018 | let st := WeightedRadialPrimitive.logStripData (E := S × Plane) a b cL cR ha hcL hcR ε R hε hεone hR |
| 1019 | have hb : WeightedClasses.BandBound st 1 ε := by |
| 1020 | have h := WeightedClasses.bandBound_rpow st 1 |
| 1021 | simp only [Real.rpow_one] at h |
| 1022 | exact h |
| 1023 | have hi := meanClass_radialUpdate ha hab hd hcL hcR hh ε R hε hεone hR hscale M v w hf hfc hp hs |
| 1024 | have hout := hi.band_smul hb |
| 1025 | have heq : (fun n => radialUpdate d a b (M n) (v n) (ε n • w) h n (f n)) = |
| 1026 | (fun n z => ε n • radialUpdate d a b (M n) (v n) w h n (f n) z) := by |
| 1027 | funext n z |
| 1028 | exact congrFun (radialUpdate_smul_direction d a b (M n) (v n) w h (ε n) n (f n)) z |
| 1029 | rw [heq] |
| 1030 | exact hout |
| 1031 | |
| 1032 | end WeightedTemporal |
| 1033 | |
| 1034 | section PhysicalAliasSuperflat |
| 1035 | |
| 1036 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 1037 | |
| 1038 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 1039 | theorem normalizeSource_periodic (d a : ℝ) {g : PressureStream.Lift S → ℝ} |
| 1040 | (hp : PressureStream.TorusPeriodicLift g) : |
| 1041 | PressureStream.TorusPeriodicLift (RadialPullback.normalizeSource d a g) := by |
| 1042 | intro r s Y k |
| 1043 | dsimp [RadialPullback.normalizeSource, RadialPullback.liftChart] |
| 1044 | have he := hp (RadialPullback.inverseChart d a r) s Y k |
| 1045 | dsimp at he |
| 1046 | rw [he] |
| 1047 | |
| 1048 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 1049 | theorem normalizeSource_torusAverage (d a : ℝ) (g : PressureStream.Lift S → ℝ) (p : ℝ × S) : |
| 1050 | PressureStream.torusAverage (RadialPullback.normalizeSource d a g) p = |
| 1051 | RadialPullback.sourceMultiplier d a p.1 * |
| 1052 | PressureStream.torusAverage g (RadialPullback.inverseChart d a p.1, p.2) := by |
| 1053 | simp only [PressureStream.torusAverage, PressureStream.torusInner, |
| 1054 | RadialPullback.normalizeSource, RadialPullback.liftChart, smul_eq_mul, |
| 1055 | intervalIntegral.integral_const_mul] |
| 1056 | |
| 1057 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 1058 | theorem timeCoefficient_norm_le_one {h : ℝ} (hh : 0 ≤ h) {n : ℕ} (hn : 4 ≤ n) : |
| 1059 | ‖ChartScales.timeCoefficient h n‖ ≤ 1 := by |
| 1060 | rw [Real.norm_eq_abs, abs_of_pos (ChartScales.timeCoefficient_pos h n)] |
| 1061 | have hn1 : (1 : ℝ) ≤ n := by exact_mod_cast (show 1 ≤ n by omega) |
| 1062 | have hS : 1 ≤ ChartScales.S n := by dsimp [ChartScales.S]; nlinarith |
| 1063 | exact (ChartScales.timeCoefficient_bounds h hh hn).2.trans |
| 1064 | (by simpa using one_div_le_one_div_of_le (by norm_num : (0 : ℝ) < 1) hS) |
| 1065 | |
| 1066 | end PhysicalAliasSuperflat |
| 1067 | |
| 1068 | section InteriorAliasClass |
| 1069 | |
| 1070 | variable {E V : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 1071 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 1072 | |
| 1073 | theorem interiorCutoff_deriv_zero_left {a b U : ℝ} (hab : a < b) |
| 1074 | (hU : U < (2 * a + b) / 3) : deriv (TransportPrimitive.interiorCutoff a b) U = 0 := by |
| 1075 | have he : TransportPrimitive.interiorCutoff a b =ᶠ[𝓝 U] (fun _ => 0) := by |
| 1076 | filter_upwards [Iio_mem_nhds hU] with u hu |
| 1077 | exact TransportPrimitive.interiorCutoff_zero hab hu.le |
| 1078 | exact ((hasDerivAt_const U (0 : ℝ)).congr_of_eventuallyEq he).deriv |
| 1079 | |
| 1080 | theorem interiorCutoff_deriv_zero_right {a b U : ℝ} (hab : a < b) |
| 1081 | (hU : (a + 2 * b) / 3 < U) : deriv (TransportPrimitive.interiorCutoff a b) U = 0 := by |
| 1082 | have he : TransportPrimitive.interiorCutoff a b =ᶠ[𝓝 U] (fun _ => 1) := by |
| 1083 | filter_upwards [Ioi_mem_nhds hU] with u hu |
| 1084 | exact TransportPrimitive.interiorCutoff_one hab hu.le |
| 1085 | exact ((hasDerivAt_const U (1 : ℝ)).congr_of_eventuallyEq he).deriv |
| 1086 | |
| 1087 | /-- The physical alias has support in one fixed compact subannulus, |
| 1088 | uniformly in the source, band, and direction. -/ |
| 1089 | theorem dividedAlias_interior_support {a b d : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) : |
| 1090 | ∃ c e : ℝ, a < c ∧ c < e ∧ e < b ∧ ∀ (M : ℝ) (v : E) (g : ℝ × E → ℝ), |
| 1091 | RadialAlias.RadiallySupported c e (PressureStream.divideRadius (RadialPullback.physicalAlias d a b M v g)) := by |
| 1092 | have hb : 0 < b := ha.trans hab |
| 1093 | have haU : 0 < a ^ d := Real.rpow_pos_of_pos ha d |
| 1094 | have habU : a ^ d < b ^ d := Real.rpow_lt_rpow ha.le hab hd |
| 1095 | let cU := (2 * a ^ d + b ^ d) / 3 |
| 1096 | let eU := (a ^ d + 2 * b ^ d) / 3 |
| 1097 | have hacU : a ^ d < cU := by dsimp [cU]; linarith |
| 1098 | have hceU : cU < eU := by dsimp [cU, eU]; linarith |
| 1099 | have hebU : eU < b ^ d := by dsimp [eU]; linarith |
| 1100 | have hcU : 0 < cU := haU.trans hacU |
| 1101 | have heU : 0 < eU := hcU.trans hceU |
| 1102 | let c := cU ^ d⁻¹ |
| 1103 | let e := eU ^ d⁻¹ |
| 1104 | have hac : a < c := by |
| 1105 | simpa only [Real.rpow_rpow_inv ha.le hd.ne'] using |
| 1106 | Real.rpow_lt_rpow haU.le hacU (inv_pos.mpr hd) |
| 1107 | have hce : c < e := Real.rpow_lt_rpow hcU.le hceU (inv_pos.mpr hd) |
| 1108 | have heb : e < b := by |
| 1109 | simpa only [Real.rpow_rpow_inv hb.le hd.ne'] using |
| 1110 | Real.rpow_lt_rpow heU.le hebU (inv_pos.mpr hd) |
| 1111 | have hcPow : c ^ d = cU := Real.rpow_inv_rpow hcU.le hd.ne' |
| 1112 | have hePow : e ^ d = eU := Real.rpow_inv_rpow heU.le hd.ne' |
| 1113 | have hleft (r : ℝ) (hr : r < c) : |
| 1114 | deriv (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) (RadialPullback.powerChart d a r) = 0 := by |
| 1115 | apply interiorCutoff_deriv_zero_left habU |
| 1116 | change RadialPullback.powerChart d a r < cU |
| 1117 | by_cases hra : a ≤ r |
| 1118 | · rw [RadialPullback.powerChart_eq ha (by linarith) d] |
| 1119 | exact (Real.rpow_lt_rpow (ha.trans_le hra).le hr hd).trans_eq hcPow |
| 1120 | · exact (RadialPullback.powerChart_lt_left ha hd (lt_of_not_ge hra)).trans hacU |
| 1121 | have hright (r : ℝ) (hr : e < r) : |
| 1122 | deriv (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) (RadialPullback.powerChart d a r) = 0 := by |
| 1123 | apply interiorCutoff_deriv_zero_right habU |
| 1124 | change eU < RadialPullback.powerChart d a r |
| 1125 | rw [RadialPullback.powerChart_eq ha (by linarith) d, ← hePow] |
| 1126 | exact Real.rpow_lt_rpow (ha.trans (hac.trans hce)).le hr hd |
| 1127 | refine ⟨c, e, hac, hce, heb, ?_⟩ |
| 1128 | intro M v g z hz |
| 1129 | constructor |
| 1130 | · by_contra hn |
| 1131 | have he := hleft z.1 (lt_of_not_ge hn) |
| 1132 | exact hz (by simp only [PressureStream.divideRadius, RadialPullback.physicalAlias, |
| 1133 | he, mul_zero, zero_smul, zero_div]) |
| 1134 | · by_contra hn |
| 1135 | have he := hright z.1 (lt_of_not_ge hn) |
| 1136 | exact hz (by simp only [PressureStream.divideRadius, RadialPullback.physicalAlias, |
| 1137 | he, mul_zero, zero_smul, zero_div]) |
| 1138 | |
| 1139 | /-- A fixed interior support converts uniform band bounds into the full |
| 1140 | weighted class by an actual positive minimum of the exponential weight. -/ |
| 1141 | theorem meanClass_of_interior_bounds {a b c e cL cR α : ℝ} |
| 1142 | (ha : 0 < a) (hac : a < c) (he : e < b) (hcL : 0 < cL) (hcR : 0 < cR) |
| 1143 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1144 | {f : ℕ → ℝ × E → V} (hfc : ∀ n, ContDiff ℝ ∞ (f n)) |
| 1145 | (hs : ∀ n, RadialAlias.RadiallySupported c e (f n)) |
| 1146 | (hf : ∀ m : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, ∀ n j, j ≤ m → ∀ z : ℝ × E, |
| 1147 | ‖iteratedFDeriv ℝ j (f n) z‖ ≤ C * ε n ^ α * R n ^ p) : |
| 1148 | WeightedClasses.MeanClass |
| 1149 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f := by |
| 1150 | let st := WeightedRadialPrimitive.logStripData (E := E) a b cL cR ha hcL hcR ε R hε hεone hR |
| 1151 | have hmem (r : ℝ) (hr : r ∈ Icc c e) : ((r, (0 : E)) : ℝ × E) ∈ st.domain := |
| 1152 | ⟨hac.trans_le hr.1, hr.2.trans_lt he⟩ |
| 1153 | have hcont : ContinuousOn (fun r : ℝ => st.zeta (r, (0 : E))) (Icc c e) := |
| 1154 | st.zeta_smooth.continuousOn.comp (continuous_id.prodMk continuous_const).continuousOn hmem |
| 1155 | have hpos (r : ℝ) (hr : r ∈ Icc c e) : 0 < st.zeta (r, (0 : E)) := |
| 1156 | WeightedRadialPrimitive.zeta_pos cL cR (WeightedRadialPrimitive.logPosition_mem ha (hmem r hr)) |
| 1157 | obtain ⟨η, hη, hηbound⟩ := UniformCone.positive_uniform_margin isCompact_Icc hcont hpos |
| 1158 | refine ⟨fun n z hz => st.zeta_nonneg z hz, fun n => (hfc n).contDiffOn, ?_⟩ |
| 1159 | intro m |
| 1160 | obtain ⟨C, hC, p, hbound⟩ := hf m |
| 1161 | refine ⟨C / η, div_nonneg hC hη.le, p, ?_⟩ |
| 1162 | intro n z hz j hj |
| 1163 | by_cases hzi : z.1 ∈ Icc c e |
| 1164 | · have hζ : η ≤ st.zeta z := hηbound z.1 hzi |
| 1165 | have hgr : R n ^ p ≤ st.growth n z ^ p := |
| 1166 | pow_le_pow_left₀ (zero_le_one.trans (hR n)) (st.slow_le_growth n z) p |
| 1167 | have hA : 0 ≤ C / η * ε n ^ α * st.growth n z ^ p := |
| 1168 | mul_nonneg (mul_nonneg (div_nonneg hC hη.le) (Real.rpow_pos_of_pos (hε n) α).le) |
| 1169 | (pow_nonneg (st.growth_nonneg n z) p) |
| 1170 | calc |
| 1171 | _ ≤ C * ε n ^ α * R n ^ p := hbound n j hj z |
| 1172 | _ ≤ C * ε n ^ α * st.growth n z ^ p := |
| 1173 | mul_le_mul_of_nonneg_left hgr (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) |
| 1174 | _ = (C / η * ε n ^ α * st.growth n z ^ p) * η := by field_simp |
| 1175 | _ ≤ (C / η * ε n ^ α * st.growth n z ^ p) * st.zeta z := mul_le_mul_of_nonneg_left hζ hA |
| 1176 | _ = _ := rfl |
| 1177 | · have hzero : iteratedFDeriv ℝ j (f n) z = 0 := |
| 1178 | Classical.byContradiction (fun hn => hzi (TransportPrimitive.iteratedFDeriv_supported (hs n) j hn)) |
| 1179 | rw [hzero, norm_zero] |
| 1180 | exact WeightedClasses.majorant_nonneg st (fun _ z => st.zeta z) α |
| 1181 | (div_nonneg hC hη.le) p n z (st.zeta_nonneg z hz) |
| 1182 | |
| 1183 | end InteriorAliasClass |
| 1184 | |
| 1185 | section CompleteWeightedUpdate |
| 1186 | |
| 1187 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 1188 | |
| 1189 | theorem dividedAlias_global_bounds {a b d cL cR α : ℝ} |
| 1190 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) |
| 1191 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1192 | (M : ℕ → ℝ) (hM : ∀ n, M n ≠ 0) {g : ℕ → PressureStream.Lift S → ℝ} |
| 1193 | (hg : WeightedClasses.MeanClass |
| 1194 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α g) |
| 1195 | (hgc : ∀ n, ContDiff ℝ ∞ (g n)) (hgp : ∀ n, PressureStream.TorusPeriodicLift (g n)) |
| 1196 | (hgm : ∀ n p, PressureStream.torusAverage (g n) p = 0) |
| 1197 | (hgs : ∀ n, RadialAlias.RadiallySupported a b (g n)) (m : ℕ) : |
| 1198 | ∃ C : ℝ, 0 ≤ C ∧ ∃ p : ℕ, ∀ n j, j ≤ m → ∀ z : PressureStream.Lift S, |
| 1199 | ‖iteratedFDeriv ℝ j (PressureStream.divideRadius |
| 1200 | (RadialPullback.physicalAlias d a b (M n) ((0 : S), vector .radial) (g n))) z‖ ≤ |
| 1201 | C * ε n ^ α * R n ^ p := by |
| 1202 | have haU : 0 < a ^ d := Real.rpow_pos_of_pos ha d |
| 1203 | have habU : a ^ d < b ^ d := Real.rpow_lt_rpow ha.le hab hd |
| 1204 | have hcLU : 0 < d ^ 2 * cL := mul_pos (sq_pos_of_pos hd) hcL |
| 1205 | have hcRU : 0 < d ^ 2 * cR := mul_pos (sq_pos_of_pos hd) hcR |
| 1206 | let G := fun n => RadialPullback.normalizeSource d a (g n) |
| 1207 | have hG := UniformFourierAlias.meanClass_normalizeSource ha hab hd hcL hcR ε R hε hεone hR hg hgc |
| 1208 | have hGc : ∀ n, ContDiff ℝ ∞ (G n) := fun n => RadialPullback.normalizeSource_contDiff ha hd (hgc n) |
| 1209 | have hGp : ∀ n, UniformFourierAlias.SourcePeriodic (G n) := fun n => normalizeSource_periodic d a (hgp n) |
| 1210 | have hGm : ∀ n p, UniformFourierAlias.sourceMean (G n) p = 0 := by |
| 1211 | intro n p |
| 1212 | change PressureStream.torusAverage (RadialPullback.normalizeSource d a (g n)) p = 0 |
| 1213 | rw [normalizeSource_torusAverage, hgm, mul_zero] |
| 1214 | have hGs := fun n => RadialPullback.normalizeSource_supported ha hab hd (hgs n) |
| 1215 | obtain ⟨C, hC, p, hsource⟩ := UniformFourierAlias.meanClass_global_finiteJets |
| 1216 | haU hcLU hcRU ε R hε hεone hR hG hGs hGc m |
| 1217 | let χ := TransportPrimitive.interiorCutoff (a ^ d) (b ^ d) |
| 1218 | have hχ : ContDiff ℝ ∞ χ := TransportPrimitive.interiorCutoff_contDiff _ _ |
| 1219 | have hleft : ∀ U ≤ a ^ d, χ U = 0 := fun U hU => |
| 1220 | TransportPrimitive.interiorCutoff_zero habU (by linarith) |
| 1221 | have hright : ∀ U, b ^ d ≤ U → χ U = 1 := fun U hU => |
| 1222 | TransportPrimitive.interiorCutoff_one habU (by linarith) |
| 1223 | obtain ⟨KA, hKA, hbA⟩ := UniformFourierAlias.real_exactAlias_finiteJets (S := S) .radial |
| 1224 | habU.le hχ hleft hright m 0 |
| 1225 | obtain ⟨KT, hKT, hbT⟩ := dividedAlias_finiteJets_transfer (E := S × Plane) ha hab hd m |
| 1226 | refine ⟨KT * KA * C, mul_nonneg (mul_nonneg hKT hKA) hC, p, ?_⟩ |
| 1227 | intro n j hj z |
| 1228 | let B := C * ε n ^ α * R n ^ p |
| 1229 | have hB : 0 ≤ B := mul_nonneg (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) |
| 1230 | (pow_nonneg (zero_le_one.trans (hR n)) _) |
| 1231 | have hAb : ∀ i ≤ m, ∀ y : PressureStream.Lift S, |
| 1232 | ‖iteratedFDeriv ℝ i (UniformFourierAlias.exactAlias χ (M n) ((0 : S), vector .radial) (G n)) y‖ ≤ KA * B := by |
| 1233 | intro i hi y |
| 1234 | have he := hbA (G n) (hGc n) (hGp n) (hGm n) (hGs n) B hB |
| 1235 | (fun k hk x _ => hsource n k (by simpa using hk) x (Set.mem_univ x)) (M n) (hM n) i hi y |
| 1236 | simpa only [pow_zero, mul_one] using he |
| 1237 | have he := hbT (M n) ((0 : S), vector .radial) (g n) (hgc n) (hgs n) |
| 1238 | (KA * B) (mul_nonneg hKA hB) hAb j hj z |
| 1239 | exact he.trans_eq (by dsimp [B]; ring) |
| 1240 | |
| 1241 | /-- The actual divided compactification alias lies in the same weighted |
| 1242 | class; its fixed interior support supplies the full edge weight. -/ |
| 1243 | theorem meanClass_dividedAlias {a b d cL cR α : ℝ} |
| 1244 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) |
| 1245 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1246 | (M : ℕ → ℝ) (hM : ∀ n, M n ≠ 0) {g : ℕ → PressureStream.Lift S → ℝ} |
| 1247 | (hg : WeightedClasses.MeanClass |
| 1248 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α g) |
| 1249 | (hgc : ∀ n, ContDiff ℝ ∞ (g n)) (hgp : ∀ n, PressureStream.TorusPeriodicLift (g n)) |
| 1250 | (hgm : ∀ n p, PressureStream.torusAverage (g n) p = 0) |
| 1251 | (hgs : ∀ n, RadialAlias.RadiallySupported a b (g n)) : |
| 1252 | WeightedClasses.MeanClass |
| 1253 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 1254 | (fun n => PressureStream.divideRadius |
| 1255 | (RadialPullback.physicalAlias d a b (M n) ((0 : S), vector .radial) (g n))) := by |
| 1256 | obtain ⟨c, e, hac, _, heb, hs⟩ := dividedAlias_interior_support (E := S × Plane) ha hab hd |
| 1257 | apply meanClass_of_interior_bounds ha hac heb hcL hcR ε R hε hεone hR |
| 1258 | · intro n |
| 1259 | exact PressureStream.divideRadius_contDiff ha |
| 1260 | (RadialPullback.physicalAlias_contDiff ha hab hd (hgc n) (hgs n) (M n) (0, vector .radial)) |
| 1261 | (RadialPullback.physicalAlias_supported ha hab hd (M n) (0, vector .radial) (g n)) |
| 1262 | · exact fun n => hs (M n) (0, vector .radial) (g n) |
| 1263 | · exact dividedAlias_global_bounds ha hab hd hcL hcR ε R hε hεone hR M hM hg hgc hgp hgm hgs |
| 1264 | |
| 1265 | theorem meanClass_axialAlias {a b d cL cR h α : ℝ} |
| 1266 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 1267 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1268 | (hscale : ∀ n, ChartScales.S n ≤ R n) (M : ℕ → ℝ) (hM : ∀ n, M n ≠ 0) |
| 1269 | {f : ℕ → PressureStream.Lift S → ℝ} |
| 1270 | (hf : WeightedClasses.MeanClass |
| 1271 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 1272 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) |
| 1273 | (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) : |
| 1274 | WeightedClasses.MeanClass |
| 1275 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 1276 | (fun n => axialAlias d a b (M n) (vector .radial) h n (f n)) := by |
| 1277 | let st := WeightedRadialPrimitive.logStripData (E := S × Plane) a b cL cR ha hcL hcR ε R hε hεone hR |
| 1278 | let g := fun n => desiredIncrement h n (f n) |
| 1279 | have hg : WeightedClasses.MeanClass st α g := |
| 1280 | meanClass_desiredIncrement ha hcL hcR hh ε R hε hεone hR hscale hf hfc hp |
| 1281 | have hgc := fun n => desiredIncrement_smooth h n (hfc n) (hp n) |
| 1282 | have hgp := fun n => desiredIncrement_periodic h n (f n) |
| 1283 | have hgs := fun n => desiredIncrement_supported h n (hs n) |
| 1284 | have hw : WeightedClasses.MeanClass st α (fun n => PressureStream.weightedSource (g n)) := by |
| 1285 | unfold PressureStream.weightedSource |
| 1286 | simpa only [smul_eq_mul, id_eq] using |
| 1287 | meanClass_radialMultiply a b (φ := id) contDiff_id |
| 1288 | (s := st) (fun z hz => ⟨hz.1.le, hz.2.le⟩) hgc hg |
| 1289 | have hwm : ∀ n p, PressureStream.torusAverage (PressureStream.weightedSource (g n)) p = 0 := by |
| 1290 | intro n p |
| 1291 | rw [PressureStream.torusAverage_weightedSource, desiredIncrement_zeroMean h n (hfc n) (hp n), mul_zero] |
| 1292 | exact meanClass_dividedAlias ha hab hd hcL hcR ε R hε hεone hR M hM hw |
| 1293 | (fun n => PressureStream.weightedSource_contDiff (hgc n)) |
| 1294 | (fun n => PressureStream.weightedSource_periodic (hgp n)) hwm |
| 1295 | (fun n => PressureStream.weightedSource_supported (hgs n)) |
| 1296 | |
| 1297 | /-- The reconstructed axial field, including its exact nonzero alias, |
| 1298 | has the original mean-class exponent. -/ |
| 1299 | theorem meanClass_axialUpdate {a b d cL cR h α : ℝ} |
| 1300 | (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (hh : 0 ≤ h) |
| 1301 | (ε R : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hR : ∀ n, 1 ≤ R n) |
| 1302 | (hscale : ∀ n, ChartScales.S n ≤ R n) (M : ℕ → ℝ) (hM : ∀ n, M n ≠ 0) |
| 1303 | {f : ℕ → PressureStream.Lift S → ℝ} |
| 1304 | (hf : WeightedClasses.MeanClass |
| 1305 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α f) |
| 1306 | (hfc : ∀ n, ContDiff ℝ ∞ (f n)) (hp : ∀ n, PressureStream.TorusPeriodicLift (f n)) |
| 1307 | (hs : ∀ n, RadialAlias.RadiallySupported a b (f n)) : |
| 1308 | WeightedClasses.MeanClass |
| 1309 | (WeightedRadialPrimitive.logStripData a b cL cR ha hcL hcR ε R hε hεone hR) α |
| 1310 | (fun n => axialUpdate d a b (M n) (vector .radial) h n (f n)) := by |
| 1311 | have hi := meanClass_desiredIncrement ha hcL hcR hh ε R hε hεone hR hscale hf hfc hp |
| 1312 | have hA := meanClass_axialAlias ha hab hd hcL hcR hh ε R hε hεone hR hscale M hM hf hfc hp hs |
| 1313 | have hout := hi.add (hA.map (-ContinuousLinearMap.id ℝ ℝ)) |
| 1314 | have heq : (fun n => axialUpdate d a b (M n) (vector .radial) h n (f n)) = |
| 1315 | fun n z => desiredIncrement h n (f n) z + -axialAlias d a b (M n) (vector .radial) h n (f n) z := by |
| 1316 | funext n z |
| 1317 | simpa only [sub_eq_add_neg] using congrFun |
| 1318 | (axialUpdate_eq_desired_sub_alias ha hab hd (vector .radial) h n (hfc n) (hp n) (hs n)) z |
| 1319 | rw [heq] |
| 1320 | unfold WeightedClasses.MeanClass |
| 1321 | simpa only [_root_.neg_apply, ContinuousLinearMap.id_apply] using hout |
| 1322 | |
| 1323 | end CompleteWeightedUpdate |
| 1324 | |
| 1325 | end NavierStokes.TemporalMeanUpdate |