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 | · linarith [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 | /-- The exponential-looking native factors together cost just one power of |
| 288 | the slow band scale. -/ |
| 289 | theorem chartPrefactor_bound (h : ℝ) (hh : 0 ≤ h) {n : ℕ} (hn : 4 ≤ n) : |
| 290 | ‖chartPrefactor h n‖ ≤ ChartScales.Tg * ChartScales.S n := by |
| 291 | rw [Real.norm_eq_abs, abs_of_pos (chartPrefactor_pos h n)] |
| 292 | exact ChartScales.timeCoefficient_inv_upper h hh hn |
| 293 | |
| 294 | /-- Finite initial bands are absorbed into an explicit constant. The native |
| 295 | indices are unchanged; the slow scale may be `max 1 (S n)`. -/ |
| 296 | theorem chartPrefactor_bandBound_all {D : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 297 | (s : WeightedClasses.StripData D) (h : ℝ) (hh : 0 ≤ h) |
| 298 | (hs : ∀ n, ChartScales.S n ≤ s.slow n) : |
| 299 | WeightedClasses.BandBound s 0 (chartPrefactor h) := by |
| 300 | let A := ∑ i ∈ Finset.range 4, chartPrefactor h i |
| 301 | have hA : 0 ≤ A := Finset.sum_nonneg (fun i _ => (chartPrefactor_pos h i).le) |
| 302 | have hK : 0 ≤ ChartScales.Tg + A := add_nonneg ChartScales.Tg_pos.le hA |
| 303 | refine ⟨ChartScales.Tg + A, hK, 1, ?_⟩ |
| 304 | intro n |
| 305 | simp only [Real.rpow_zero, mul_one, pow_one] |
| 306 | by_cases hn : 4 ≤ n |
| 307 | · exact (chartPrefactor_bound h hh hn).trans |
| 308 | (mul_le_mul (le_add_of_nonneg_right hA) (hs n) |
| 309 | (sq_nonneg (n : ℝ)) hK) |
| 310 | · rw [Real.norm_eq_abs, abs_of_pos (chartPrefactor_pos h n)] |
| 311 | have hnA : chartPrefactor h n ≤ A := |
| 312 | Finset.single_le_sum (fun i _ => (chartPrefactor_pos h i).le) |
| 313 | (Finset.mem_range.mpr (Nat.lt_of_not_ge hn)) |
| 314 | exact hnA.trans ((le_add_of_nonneg_left ChartScales.Tg_pos.le).trans |
| 315 | (le_mul_of_one_le_right hK (s.one_le_slow n))) |
| 316 | |
| 317 | theorem meanClass_chartPrefactor_all {D E : Type*} [NormedAddCommGroup D] [NormedSpace ℝ D] |
| 318 | [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 319 | {s : WeightedClasses.StripData D} {α h : ℝ} {f : ℕ → D → E} |
| 320 | (hh : 0 ≤ h) (hs : ∀ n, ChartScales.S n ≤ s.slow n) |
| 321 | (hf : WeightedClasses.MeanClass s α f) : |
| 322 | WeightedClasses.MeanClass s α (fun n z => chartPrefactor h n • f n z) := by |
| 323 | unfold WeightedClasses.MeanClass |
| 324 | simpa only [add_zero] using hf.band_smul (chartPrefactor_bandBound_all s h hh hs) |
| 325 | |
| 326 | section CenteredSource |
| 327 | |
| 328 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 329 | |
| 330 | /-- Remove exactly the auxiliary torus average, retaining every slow parameter. -/ |
| 331 | noncomputable def centered (f : PressureStream.Lift S → ℝ) (z : PressureStream.Lift S) : ℝ := |
| 332 | f z - PressureStream.torusAverage f (z.1, z.2.1) |
| 333 | |
| 334 | theorem centered_smooth {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) : |
| 335 | ContDiff ℝ ∞ (centered f) := |
| 336 | hf.sub ((PressureStream.torusAverage_contDiff hf).comp |
| 337 | (contDiff_fst.prodMk contDiff_snd.fst)) |
| 338 | |
| 339 | theorem centered_zeroMean {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 340 | (p : ℝ × S) : PressureStream.torusAverage (centered f) p = 0 := by |
| 341 | change PressureStream.torusAverage (fun z => f z - PressureStream.torusAverage f (z.1, z.2.1)) p = 0 |
| 342 | rw [PressureStream.torusAverage_sub_slow hf, sub_self] |
| 343 | |
| 344 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 345 | theorem centered_periodic {f : PressureStream.Lift S → ℝ} |
| 346 | (hp : PressureStream.TorusPeriodicLift f) : PressureStream.TorusPeriodicLift (centered f) := by |
| 347 | intro r s Y k |
| 348 | simp only [centered] |
| 349 | have he := hp r s Y k |
| 350 | dsimp at he |
| 351 | rw [he] |
| 352 | |
| 353 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 354 | theorem centered_supported {a b : ℝ} {f : PressureStream.Lift S → ℝ} |
| 355 | (hs : RadialAlias.RadiallySupported a b f) : |
| 356 | RadialAlias.RadiallySupported a b (centered f) := by |
| 357 | intro z hz |
| 358 | by_contra hout |
| 359 | have hf0 : f z = 0 := by |
| 360 | by_contra hn |
| 361 | exact hout (hs hn) |
| 362 | have hm0 : PressureStream.torusAverage f (z.1, z.2.1) = 0 := by |
| 363 | by_contra hn |
| 364 | exact hout (PressureStream.torusAverage_supported hs hn) |
| 365 | exact hz (by simp [centered, hf0, hm0]) |
| 366 | |
| 367 | end CenteredSource |
| 368 | |
| 369 | /-- Taking a real part commutes with the actual double integral. -/ |
| 370 | theorem squareAverage_re {f : Plane → ℂ} (hf : ContDiff ℝ ∞ f) : |
| 371 | TorusAverages.squareAverage (fun z => (f z).re) = (TorusAverages.squareAverage f).re := by |
| 372 | have hi : ContDiff ℝ ∞ (fun y : ℝ => ∫ x in (0 : ℝ)..1, f (x, y)) := |
| 373 | TransportPrimitive.parameterIntegral_contDiff |
| 374 | (hf.comp (contDiff_snd.prodMk contDiff_fst)) 0 1 |
| 375 | have hxs (y : ℝ) : IntervalIntegrable (fun x => f (x, y)) volume 0 1 := |
| 376 | (hf.continuous.comp (continuous_id.prodMk continuous_const)).intervalIntegrable 0 1 |
| 377 | have hx (y : ℝ) : (∫ x in (0 : ℝ)..1, (f (x, y)).re) = |
| 378 | (∫ x in (0 : ℝ)..1, f (x, y)).re := |
| 379 | Complex.reCLM.intervalIntegral_comp_comm (hxs y) |
| 380 | unfold TorusAverages.squareAverage |
| 381 | simp_rw [show ∀ y : ℝ, (∫ x in (0 : ℝ)..1, (f (x, y)).re) = |
| 382 | (∫ x in (0 : ℝ)..1, f (x, y)).re from fun y => hx y] |
| 383 | exact Complex.reCLM.intervalIntegral_comp_comm (hi.continuous.intervalIntegrable 0 1) |
| 384 | |
| 385 | section FamilyInverse |
| 386 | |
| 387 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 388 | |
| 389 | /-- The source in joint slow-parameter/torus coordinates, with the real |
| 390 | source embedded isometrically in the complex Fourier construction. -/ |
| 391 | noncomputable def sourceToFamily (f : PressureStream.Lift S → ℝ) |
| 392 | (z : (ℝ × S) × Plane) : ℂ := f (z.1.1, (z.1.2, z.2)) |
| 393 | |
| 394 | theorem sourceToFamily_smooth {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) : |
| 395 | ContDiff ℝ ∞ (sourceToFamily f) := |
| 396 | Complex.ofRealCLM.contDiff.comp |
| 397 | (hf.comp (LinearIsometryEquiv.prodAssoc ℝ ℝ S Plane).toContinuousLinearEquiv.contDiff) |
| 398 | |
| 399 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 400 | theorem sourceToFamily_periodic {f : PressureStream.Lift S → ℝ} |
| 401 | (hp : PressureStream.TorusPeriodicLift f) : SmoothFamilyTorusInverse.Periodic (sourceToFamily f) := by |
| 402 | intro p Y k |
| 403 | exact congrArg Complex.ofReal (hp p.1 p.2 Y k) |
| 404 | |
| 405 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 406 | theorem sourceToFamily_mean (f : PressureStream.Lift S → ℝ) (p : ℝ × S) : |
| 407 | SmoothFamilyTorusInverse.mean (sourceToFamily f) p = |
| 408 | (PressureStream.torusAverage f p : ℂ) := by |
| 409 | rw [SmoothFamilyTorusInverse.mean_eq_integral] |
| 410 | simp only [sourceToFamily, PressureStream.torusAverage, PressureStream.torusInner, |
| 411 | ← intervalIntegral.integral_ofReal] |
| 412 | |
| 413 | /-- The actual normalized temporal Fourier inverse on a real joint family. -/ |
| 414 | noncomputable def temporalInverse (f : PressureStream.Lift S → ℝ) |
| 415 | (z : PressureStream.Lift S) : ℝ := |
| 416 | (SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f) ((z.1, z.2.1), z.2.2)).re |
| 417 | |
| 418 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 419 | theorem temporalInverse_periodic (f : PressureStream.Lift S → ℝ) : |
| 420 | PressureStream.TorusPeriodicLift (temporalInverse f) := by |
| 421 | intro r s Y k |
| 422 | exact congrArg Complex.re |
| 423 | (SmoothFamilyTorusInverse.inverse_periodic .temporal (sourceToFamily f) (r, s) Y k) |
| 424 | |
| 425 | omit [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 426 | theorem temporalInverse_supported {a b : ℝ} {f : PressureStream.Lift S → ℝ} |
| 427 | (hs : RadialAlias.RadiallySupported a b f) : |
| 428 | RadialAlias.RadiallySupported a b (temporalInverse f) := by |
| 429 | have hsource : ∀ p : ℝ × S, p ∉ Prod.fst ⁻¹' Icc a b → ∀ Y : Plane, |
| 430 | sourceToFamily f (p, Y) = 0 := by |
| 431 | intro p hp Y |
| 432 | have hf0 : f (p.1, (p.2, Y)) = 0 := by |
| 433 | by_contra hn |
| 434 | exact hp (hs hn) |
| 435 | simp only [sourceToFamily, hf0, Complex.ofReal_zero] |
| 436 | intro z hz |
| 437 | by_contra hn |
| 438 | have hi := SmoothFamilyTorusInverse.inverse_preserves_parameter_support .temporal |
| 439 | (sourceToFamily f) (Prod.fst ⁻¹' Icc a b) hsource (z.1, z.2.1) hn z.2.2 |
| 440 | exact hz (by simp only [temporalInverse, hi, Complex.zero_re]) |
| 441 | |
| 442 | variable [FiniteDimensional ℝ S] |
| 443 | |
| 444 | theorem temporalInverse_smooth {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 445 | (hp : PressureStream.TorusPeriodicLift f) : ContDiff ℝ ∞ (temporalInverse f) := |
| 446 | (Complex.reCLM.contDiff.comp (SmoothFamilyTorusInverse.inverse_smooth .temporal |
| 447 | (sourceToFamily_smooth hf) (sourceToFamily_periodic hp))).comp |
| 448 | (LinearIsometryEquiv.prodAssoc ℝ ℝ S Plane).symm.toContinuousLinearEquiv.contDiff |
| 449 | |
| 450 | theorem temporalInverse_zeroMean {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 451 | (hp : PressureStream.TorusPeriodicLift f) (p : ℝ × S) : |
| 452 | PressureStream.torusAverage (temporalInverse f) p = 0 := by |
| 453 | have hi := SmoothFamilyTorusInverse.inverse_smooth .temporal |
| 454 | (sourceToFamily_smooth hf) (sourceToFamily_periodic hp) |
| 455 | have hm := SmoothFamilyTorusInverse.inverse_zeroMean .temporal |
| 456 | (sourceToFamily_smooth hf) (sourceToFamily_periodic hp) p |
| 457 | rw [SmoothFamilyTorusInverse.mean_eq_integral] at hm |
| 458 | change TorusAverages.squareAverage |
| 459 | (fun Y => (SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f) (p, Y)).re) = 0 |
| 460 | have hs : ContDiff ℝ ∞ (fun Y => SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f) (p, Y)) := |
| 461 | SmoothFamilyTorusInverse.slice_smooth hi p |
| 462 | rw [squareAverage_re hs] |
| 463 | exact (congrArg Complex.re hm).trans rfl |
| 464 | |
| 465 | /-- The real joint inverse solves the genuine Fréchet directional equation. -/ |
| 466 | theorem temporalInverse_solves {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) |
| 467 | (hp : PressureStream.TorusPeriodicLift f) |
| 468 | (hm : ∀ p, PressureStream.torusAverage f p = 0) (z : PressureStream.Lift S) : |
| 469 | PressureStream.graphDz ((0 : S), vector .temporal) (temporalInverse f) z = f z := by |
| 470 | have hfs := sourceToFamily_smooth hf |
| 471 | have hps := sourceToFamily_periodic hp |
| 472 | have hms : SmoothFamilyTorusInverse.ZeroMean (sourceToFamily f) := by |
| 473 | intro p |
| 474 | rw [sourceToFamily_mean, hm p, Complex.ofReal_zero] |
| 475 | let q : (ℝ × S) × Plane := ((z.1, z.2.1), z.2.2) |
| 476 | let L := (LinearIsometryEquiv.prodAssoc ℝ ℝ S Plane).symm.toContinuousLinearEquiv.toContinuousLinearMap |
| 477 | have hi := SmoothFamilyTorusInverse.inverse_smooth .temporal hfs hps |
| 478 | have hD := (Complex.reCLM.hasFDerivAt.comp q |
| 479 | (((hi.differentiable (by simp)) q).hasFDerivAt)).comp z L.hasFDerivAt |
| 480 | change HasFDerivAt (temporalInverse f) _ z at hD |
| 481 | rw [PressureStream.graphDz, hD.fderiv] |
| 482 | change (fderiv ℝ (SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f)) q |
| 483 | (0, vector .temporal)).re = f z |
| 484 | have he := congrFun (SmoothFamilyTorusInverse.inverse_solves .temporal hfs hps hms) q |
| 485 | change fderiv ℝ (SmoothFamilyTorusInverse.inverse .temporal (sourceToFamily f)) q |
| 486 | (0, vector .temporal) = sourceToFamily f q at he |
| 487 | rw [he] |
| 488 | rfl |
| 489 | |
| 490 | end FamilyInverse |
| 491 | |
| 492 | section ExactUpdate |
| 493 | |
| 494 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 495 | |
| 496 | omit [FiniteDimensional ℝ S] in |
| 497 | /-- Fiberwise native-to-absolute covariance for the actual real family inverse. -/ |
| 498 | theorem temporalInverse_coverMap {f : PressureStream.Lift S → ℝ} |
| 499 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) |
| 500 | (hm : ∀ p, PressureStream.torusAverage f p = 0) (n : ℕ) (z : PressureStream.Lift S) : |
| 501 | temporalInverse (fun p => f (p.1, (p.2.1, coverMap n p.2.2))) z = |
| 502 | (ChartScales.Tg ^ n)⁻¹ * temporalInverse f (z.1, (z.2.1, coverMap n z.2.2)) := by |
| 503 | let q : Plane → ℂ := fun Y => sourceToFamily f ((z.1, z.2.1), Y) |
| 504 | have hq : ContDiff ℝ ∞ q := SmoothFamilyTorusInverse.slice_smooth (sourceToFamily_smooth hf) _ |
| 505 | have hqp : SmoothFourierData.UnitPeriodic q := sourceToFamily_periodic hp _ |
| 506 | have hqm : TorusAverages.squareAverage q = 0 := by |
| 507 | change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, |
| 508 | sourceToFamily f ((z.1, z.2.1), (x, y))) = 0 |
| 509 | rw [← SmoothFamilyTorusInverse.mean_eq_integral, sourceToFamily_mean, hm, Complex.ofReal_zero] |
| 510 | change (absoluteInverse (fun Y => q (coverMap n Y)) z.2.2).re = |
| 511 | (ChartScales.Tg ^ n)⁻¹ * (absoluteInverse q (coverMap n z.2.2)).re |
| 512 | rw [absoluteInverse_coverMap hq hqp hqm n] |
| 513 | simp only [Complex.real_smul, Complex.mul_re, Complex.ofReal_re, Complex.ofReal_im, |
| 514 | zero_mul, sub_zero] |
| 515 | |
| 516 | /-- The desired angular or axial mean increment in its native chart. -/ |
| 517 | noncomputable def desiredIncrement (h : ℝ) (n : ℕ) (f : PressureStream.Lift S → ℝ) |
| 518 | (z : PressureStream.Lift S) : ℝ := |
| 519 | -chartPrefactor h n * temporalInverse (centered f) z |
| 520 | |
| 521 | /-- The actual fast-time derivative, including its chart coefficient. -/ |
| 522 | noncomputable def fastDerivative (h : ℝ) (n : ℕ) (f : PressureStream.Lift S → ℝ) |
| 523 | (z : PressureStream.Lift S) : ℝ := |
| 524 | ChartScales.timeCoefficient h n * PressureStream.graphDz ((0 : S), vector .temporal) f z |
| 525 | |
| 526 | theorem desiredIncrement_smooth (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 527 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) : |
| 528 | ContDiff ℝ ∞ (desiredIncrement h n f) := |
| 529 | contDiff_const.mul (temporalInverse_smooth (centered_smooth hf) (centered_periodic hp)) |
| 530 | |
| 531 | theorem desiredIncrement_zeroMean (h : ℝ) (n : ℕ) {f : PressureStream.Lift S → ℝ} |
| 532 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (p : ℝ × S) : |
| 533 | PressureStream.torusAverage (desiredIncrement h n f) p = 0 := by |
| 534 | change (∫ y in (0 : ℝ)..1, ∫ x in (0 : ℝ)..1, |
| 535 | -chartPrefactor h n * temporalInverse (centered f) (p.1, (p.2, (x, y)))) = 0 |
| 536 | simp_rw [intervalIntegral.integral_const_mul] |
| 537 | change -chartPrefactor h n * PressureStream.torusAverage (temporalInverse (centered f)) p = 0 |
| 538 | rw [temporalInverse_zeroMean (centered_smooth hf) (centered_periodic hp), mul_zero] |
| 539 | |
| 540 | end ExactUpdate |
| 541 | |
| 542 | section NativePullback |
| 543 | |
| 544 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] |
| 545 | |
| 546 | noncomputable def pullbackCover (i : ℕ) (f : PressureStream.Lift S → ℝ) |
| 547 | (z : PressureStream.Lift S) : ℝ := f (z.1, (z.2.1, coverMap i z.2.2)) |
| 548 | |
| 549 | theorem torusAverage_pullbackCover (i : ℕ) {f : PressureStream.Lift S → ℝ} |
| 550 | (hf : ContDiff ℝ ∞ f) (hp : PressureStream.TorusPeriodicLift f) (p : ℝ × S) : |
| 551 | PressureStream.torusAverage (pullbackCover i f) p = PressureStream.torusAverage f p := by |
| 552 | change TorusAverages.squareAverage (fun Y => f (p.1, (p.2, coverMap i Y))) = |
| 553 | TorusAverages.squareAverage (fun Y => f (p.1, (p.2, Y))) |
| 554 | simp_rw [coverMap_eq_iterate] |
| 555 | exact TorusAverages.squareAverage_covering_iterate_real |
| 556 | (hf.continuous.comp (continuous_const.prodMk (continuous_const.prodMk continuous_id))) |
| 557 | (hp p.1 p.2) i |
| 558 | |
| 559 | end NativePullback |
| 560 | |
| 561 | section AxialReconstruction |
| 562 | |
| 563 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 564 | |
| 565 | noncomputable def axialPotential (d a b M : ℝ) (v : Plane) (h : ℝ) (n : ℕ) |
| 566 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 567 | PressureStream.streamPotential d a b M ((0 : S), v) (desiredIncrement h n f) |
| 568 | |
| 569 | noncomputable def axialUpdate (d a b M : ℝ) (v : Plane) (h : ℝ) (n : ℕ) |
| 570 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 571 | PressureStream.streamGamma (PressureStream.physicalSpeed d M) ((0 : S), v) |
| 572 | (axialPotential d a b M v h n f) |
| 573 | |
| 574 | noncomputable def radialUpdate (d a b M : ℝ) (v : Plane) (w : S × Plane) (h : ℝ) (n : ℕ) |
| 575 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 576 | PressureStream.streamBeta w (axialPotential d a b M v h n f) |
| 577 | |
| 578 | /-- The retained compactification alias, with its physical `1/r` factor. -/ |
| 579 | noncomputable def axialAlias (d a b M : ℝ) (v : Plane) (h : ℝ) (n : ℕ) |
| 580 | (f : PressureStream.Lift S → ℝ) : PressureStream.Lift S → ℝ := |
| 581 | PressureStream.divideRadius (RadialPullback.physicalAlias d a b M ((0 : S), v) |
| 582 | (PressureStream.weightedSource (desiredIncrement h n f))) |
| 583 | |
| 584 | end AxialReconstruction |
| 585 | |
| 586 | section WeightedStream |
| 587 | |
| 588 | variable {E V : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 589 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 590 | |
| 591 | /-- A fixed smooth radial multiplier preserves the actual all-jet class. |
| 592 | The constant is obtained from the derivative product rule on the compact annulus. -/ |
| 593 | theorem meanClass_radialMultiply (a b : ℝ) {φ : ℝ → ℝ} (hφ : ContDiff ℝ ∞ φ) |
| 594 | {s : WeightedClasses.StripData (ℝ × E)} {α : ℝ} {g : ℕ → ℝ × E → V} |
| 595 | (hdomain : ∀ z ∈ s.domain, z.1 ∈ Icc a b) (hg : ∀ n, ContDiff ℝ ∞ (g n)) |
| 596 | (hclass : WeightedClasses.MeanClass s α g) : |
| 597 | WeightedClasses.MeanClass s α (fun n z => φ z.1 • g n z) := by |
| 598 | refine ⟨hclass.weight_nonneg, fun n => ((hφ.comp contDiff_fst).smul (hg n)).contDiffOn, ?_⟩ |
| 599 | intro m |
| 600 | obtain ⟨C, hC, p, hbound⟩ := hclass.bounds m |
| 601 | obtain ⟨K, hK, hmul⟩ := RadialPullback.radial_multiplier_finiteJets_uniform (E := E) (V := V) a b hφ m |
| 602 | refine ⟨K * C, mul_nonneg hK hC, p, ?_⟩ |
| 603 | intro n z hz j hj |
| 604 | have hA := WeightedClasses.majorant_nonneg s (fun _ z => s.zeta z) α hC p n z |
| 605 | (s.zeta_nonneg z hz) |
| 606 | have hout := hmul (g n) (hg n) z (hdomain z hz) |
| 607 | (WeightedClasses.majorant s (fun _ z => s.zeta z) α C p n z) hA (hbound n z hz) j hj |
| 608 | apply hout.trans_eq |
| 609 | unfold WeightedClasses.majorant |
| 610 | ring |
| 611 | |
| 612 | end WeightedStream |
| 613 | |
| 614 | section AliasPullback |
| 615 | |
| 616 | variable {E : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 617 | |
| 618 | end AliasPullback |
| 619 | |
| 620 | section WeightedTemporal |
| 621 | |
| 622 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 623 | |
| 624 | end WeightedTemporal |
| 625 | |
| 626 | section PhysicalAliasSuperflat |
| 627 | |
| 628 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 629 | |
| 630 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 631 | theorem normalizeSource_periodic (d a : ℝ) {g : PressureStream.Lift S → ℝ} |
| 632 | (hp : PressureStream.TorusPeriodicLift g) : |
| 633 | PressureStream.TorusPeriodicLift (RadialPullback.normalizeSource d a g) := by |
| 634 | intro r s Y k |
| 635 | dsimp [RadialPullback.normalizeSource, RadialPullback.liftChart] |
| 636 | have he := hp (RadialPullback.inverseChart d a r) s Y k |
| 637 | dsimp at he |
| 638 | rw [he] |
| 639 | |
| 640 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 641 | theorem normalizeSource_torusAverage (d a : ℝ) (g : PressureStream.Lift S → ℝ) (p : ℝ × S) : |
| 642 | PressureStream.torusAverage (RadialPullback.normalizeSource d a g) p = |
| 643 | RadialPullback.sourceMultiplier d a p.1 * |
| 644 | PressureStream.torusAverage g (RadialPullback.inverseChart d a p.1, p.2) := by |
| 645 | simp only [PressureStream.torusAverage, PressureStream.torusInner, |
| 646 | RadialPullback.normalizeSource, RadialPullback.liftChart, smul_eq_mul, |
| 647 | intervalIntegral.integral_const_mul] |
| 648 | |
| 649 | omit [FiniteDimensional ℝ S] [NormedAddCommGroup S] [NormedSpace ℝ S] in |
| 650 | theorem timeCoefficient_norm_le_one {h : ℝ} (hh : 0 ≤ h) {n : ℕ} (hn : 4 ≤ n) : |
| 651 | ‖ChartScales.timeCoefficient h n‖ ≤ 1 := by |
| 652 | rw [Real.norm_eq_abs, abs_of_pos (ChartScales.timeCoefficient_pos h n)] |
| 653 | have hn1 : (1 : ℝ) ≤ n := by exact_mod_cast (show 1 ≤ n by omega) |
| 654 | have hS : 1 ≤ ChartScales.S n := by dsimp [ChartScales.S]; nlinarith |
| 655 | exact (ChartScales.timeCoefficient_bounds h hh hn).2.trans |
| 656 | (by simpa using one_div_le_one_div_of_le (by norm_num : (0 : ℝ) < 1) hS) |
| 657 | |
| 658 | end PhysicalAliasSuperflat |
| 659 | |
| 660 | section InteriorAliasClass |
| 661 | |
| 662 | variable {E V : Type} [NormedAddCommGroup E] [NormedSpace ℝ E] |
| 663 | [NormedAddCommGroup V] [NormedSpace ℝ V] |
| 664 | |
| 665 | theorem interiorCutoff_deriv_zero_left {a b U : ℝ} (hab : a < b) |
| 666 | (hU : U < (2 * a + b) / 3) : deriv (TransportPrimitive.interiorCutoff a b) U = 0 := by |
| 667 | have he : TransportPrimitive.interiorCutoff a b =ᶠ[𝓝 U] (fun _ => 0) := by |
| 668 | filter_upwards [Iio_mem_nhds hU] with u hu |
| 669 | exact TransportPrimitive.interiorCutoff_zero hab hu.le |
| 670 | exact ((hasDerivAt_const U (0 : ℝ)).congr_of_eventuallyEq he).deriv |
| 671 | |
| 672 | theorem interiorCutoff_deriv_zero_right {a b U : ℝ} (hab : a < b) |
| 673 | (hU : (a + 2 * b) / 3 < U) : deriv (TransportPrimitive.interiorCutoff a b) U = 0 := by |
| 674 | have he : TransportPrimitive.interiorCutoff a b =ᶠ[𝓝 U] (fun _ => 1) := by |
| 675 | filter_upwards [Ioi_mem_nhds hU] with u hu |
| 676 | exact TransportPrimitive.interiorCutoff_one hab hu.le |
| 677 | exact ((hasDerivAt_const U (1 : ℝ)).congr_of_eventuallyEq he).deriv |
| 678 | |
| 679 | end InteriorAliasClass |
| 680 | |
| 681 | section CompleteWeightedUpdate |
| 682 | |
| 683 | variable {S : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] |
| 684 | |
| 685 | end CompleteWeightedUpdate |
| 686 | |
| 687 | end NavierStokes.TemporalMeanUpdate |