import NavierStokes.MeanRankUpdate import NavierStokes.MeanIncrementBounds import NavierStokes.TemporalMeanUpdate import Mathlib.Analysis.Calculus.BumpFunction.FiniteDimension /-! # Mean reconstruction on an open slow domain Radial transport and torus integration preserve the slow parameter. The operators in this file are the actual operators from `PressureStream` and `TemporalMeanUpdate`, restricted to an open slow domain. Cutoffs are used only to prove local smoothness and equality of germs; none of their derivatives enters the uniform estimates. -/ noncomputable section namespace NavierStokes.PhysicalMeanDomain open Set Function MeasureTheory Filter open scoped ContDiff Topology Interval BigOperators open WeightedClasses WeightedRadialPrimitive variable {S V : Type} [NormedAddCommGroup S] [NormedSpace ℝ S] [NormedAddCommGroup V] [NormedSpace ℝ V] /-- All radii and torus variables, with only the slow parameter restricted. -/ noncomputable def slowDomain (U : Set S) : Set (PressureStream.Lift S) := {p | p.2.1 ∈ U} omit [NormedSpace ℝ S] in theorem slowDomain_open {U : Set S} (hU : IsOpen U) : IsOpen (slowDomain U) := hU.preimage (continuous_fst.comp continuous_snd) noncomputable def stripDomain (a b : ℝ) (U : Set S) : Set (PressureStream.Lift S) := {p | p.1 ∈ Ioo a b ∧ p.2.1 ∈ U} omit [NormedSpace ℝ S] in theorem stripDomain_open (a b : ℝ) {U : Set S} (hU : IsOpen U) : IsOpen (stripDomain a b U) := (isOpen_Ioo.preimage continuous_fst).inter (slowDomain_open hU) /-- Restriction changes only the domain, leaving all weights and band scales. -/ noncomputable def localStripData (a b cL cR : ℝ) (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (U : Set S) (hU : IsOpen U) : StripData (PressureStream.Lift S) := { logStripData a b cL cR ha hcL hcR ε L hε hεone hL with domain := stripDomain a b U isOpen_domain := stripDomain_open a b hU delta_pos := fun _ hp => delta_pos (logPosition_mem ha hp.1) zeta_smooth := (logStripData a b cL cR ha hcL hcR ε L hε hεone hL).zeta_smooth.mono (fun _ hp => hp.1) zeta_nonneg := fun _ hp => (zeta_pos cL cR (logPosition_mem ha hp.1)).le } theorem localStrip_majorant_eq {a b cL cR : ℝ} (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (U : Set S) (hU : IsOpen U) (α C : ℝ) (k n : ℕ) (p : PressureStream.Lift S) (hp : p.1 ∈ Ioo a b) : majorant (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) (fun _ x => (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU).zeta x) α C k n p = (C * ε n ^ α * L n ^ k) * logWeight cL cR a b k p.1 := logStrip_majorant_eq ha hcL hcR ε L hε hεone hL α C k n p hp /-- Radial support is required only at slow parameters where the source is used. -/ noncomputable def SupportedOn (a b : ℝ) (U : Set S) (f : PressureStream.Lift S → V) : Prop := ∀ p, p.2.1 ∈ U → f p ≠ 0 → p.1 ∈ Icc a b noncomputable def PeriodicOn (U : Set S) (f : PressureStream.Lift S → ℝ) : Prop := ∀ r s, s ∈ U → FourierAlias.TorusPeriodic (fun Y => f (r, (s, Y))) /-- The germ of a source on one entire slow fiber, including a slow neighborhood. -/ noncomputable def FiberGerm (s : S) (f g : PressureStream.Lift S → V) : Prop := ∀ᶠ t in 𝓝 s, ∀ r Y, f (r, (t, Y)) = g (r, (t, Y)) omit [NormedSpace ℝ S] [NormedAddCommGroup V] [NormedSpace ℝ V] in theorem FiberGerm.eventuallyEq {s : S} {f g : PressureStream.Lift S → V} (h : FiberGerm s f g) (r : ℝ) (Y : PressureStream.Plane) : f =ᶠ[𝓝 (r, (s, Y))] g := by have hm : Tendsto (fun p : PressureStream.Lift S => p.2.1) (𝓝 (r, (s, Y))) (𝓝 s) := continuous_snd.fst.continuousAt filter_upwards [hm.eventually h] with p hp exact hp p.1 p.2.2 theorem FiberGerm.jet_eq {s : S} {f g : PressureStream.Lift S → V} (h : FiberGerm s f g) (j : ℕ) (r : ℝ) (Y : PressureStream.Plane) : iteratedFDeriv ℝ j f (r, (s, Y)) = iteratedFDeriv ℝ j g (r, (s, Y)) := by have he := h.eventuallyEq r Y have hw : f =ᶠ[𝓝[univ] (r, (s, Y))] g := by simpa only [nhdsWithin_univ] using he simpa only [iteratedFDerivWithin_univ] using hw.iteratedFDerivWithin_eq he.self_of_nhds j /-- An auxiliary localization, used only for germs. -/ noncomputable def localize (c : S → ℝ) (f : PressureStream.Lift S → V) (p : PressureStream.Lift S) : V := c p.2.1 • f p theorem localize_smooth {U : Set S} (hU : IsOpen U) {c : S → ℝ} (hc : ContDiff ℝ ∞ c) (hcs : tsupport c ⊆ U) {f : PressureStream.Lift S → V} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) : ContDiff ℝ ∞ (localize c f) := by rw [contDiff_iff_contDiffAt] intro p by_cases hp : p.2.1 ∈ tsupport c · exact ((hc.comp (contDiff_fst.comp contDiff_snd)).contDiffAt).smul (hf.contDiffAt ((slowDomain_open hU).mem_nhds (hcs hp))) · have hz : c =ᶠ[𝓝 p.2.1] 0 := (notMem_tsupport_iff_eventuallyEq.mp hp) have he : localize c f =ᶠ[𝓝 p] fun _ => 0 := by have hm : Tendsto (fun q : PressureStream.Lift S => q.2.1) (𝓝 p) (𝓝 p.2.1) := continuous_snd.fst.continuousAt filter_upwards [hm.eventually hz] with q hq simp only [localize, hq, Pi.zero_apply, zero_smul] exact contDiffAt_const.congr_of_eventuallyEq he omit [NormedSpace ℝ S] in theorem localize_supported {a b : ℝ} {U : Set S} {c : S → ℝ} (hcs : tsupport c ⊆ U) {f : PressureStream.Lift S → V} (hs : SupportedOn a b U f) : RadialAlias.RadiallySupported a b (localize c f) := by intro p hp have hc : c p.2.1 ≠ 0 := by intro hz; exact hp (by simp [localize, hz]) have hf : f p ≠ 0 := by intro hz; exact hp (by simp [localize, hz]) exact hs p (hcs (subset_tsupport c hc)) hf omit [NormedSpace ℝ S] in theorem localize_periodic {U : Set S} {c : S → ℝ} (hcs : tsupport c ⊆ U) {f : PressureStream.Lift S → ℝ} (hp : PeriodicOn U f) : PressureStream.TorusPeriodicLift (localize c f) := by intro r s Y k by_cases hc : c s = 0 · simp [localize, hc] · simp only [localize, hp r s (hcs (subset_tsupport c hc)) Y k] theorem exists_fiber_localization [FiniteDimensional ℝ S] {U : Set S} (hU : IsOpen U) {s : S} (hs : s ∈ U) {f : PressureStream.Lift S → V} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) : ∃ c : S → ℝ, ContDiff ℝ ∞ c ∧ tsupport c ⊆ U ∧ ContDiff ℝ ∞ (localize c f) ∧ FiberGerm s (localize c f) f := by obtain ⟨ρ, hρ, hball⟩ := Metric.mem_nhds_iff.mp (hU.mem_nhds hs) let c : ContDiffBump s := { rIn := ρ / 4, rOut := ρ / 2, rIn_pos := by positivity, rIn_lt_rOut := by linarith } have hcs : tsupport c ⊆ U := by rw [c.tsupport_eq] intro t ht exact hball ((Metric.closedBall_subset_ball (by dsimp [c]; linarith)) ht) refine ⟨c, c.contDiff, hcs, localize_smooth hU c.contDiff hcs hf, ?_⟩ filter_upwards [c.eventuallyEq_one] with t ht intro r Y simp only [localize, ht, Pi.one_apply, one_smul] /-- Freezing the slow parameter never changes a radial transport integral on that fiber. It does not freeze any jet appearing in the integrand. -/ noncomputable def freezeSlow (s : S) (f : PressureStream.Lift S → V) (p : PressureStream.Lift S) : V := f (p.1, (s, p.2.2)) omit [NormedSpace ℝ S] [NormedSpace ℝ V] in theorem freezeSlow_continuous {f : PressureStream.Lift S → V} (hf : Continuous f) (s : S) : Continuous (freezeSlow s f) := hf.comp (continuous_fst.prodMk (continuous_const.prodMk continuous_snd.snd)) omit [NormedAddCommGroup S] [NormedSpace ℝ S] [NormedSpace ℝ V] in theorem freezeSlow_supported {a b : ℝ} {f : PressureStream.Lift S → V} (hs : RadialAlias.RadiallySupported a b f) (s : S) : RadialAlias.RadiallySupported a b (freezeSlow s f) := by intro p hp have hf : (p.1, (s, p.2.2)) ∈ support f := hp exact @hs (p.1, (s, p.2.2)) hf theorem pastIntegral_freeze (M : ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift S → V) (p : PressureStream.Lift S) : TransportPrimitive.pastIntegral M (0, v) (freezeSlow p.2.1 f) p = TransportPrimitive.pastIntegral M (0, v) f p := by rcases p with ⟨r, s, Y⟩ simp [TransportPrimitive.pastIntegral, TransportPrimitive.shift, freezeSlow] theorem totalIntegral_freeze (M : ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift S → V) (p : PressureStream.Lift S) : TransportPrimitive.totalIntegral M (0, v) (freezeSlow p.2.1 f) p = TransportPrimitive.totalIntegral M (0, v) f p := by rcases p with ⟨r, s, Y⟩ simp [TransportPrimitive.totalIntegral, TransportPrimitive.shift, freezeSlow] theorem futureIntegral_freeze (M : ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift S → V) (p : PressureStream.Lift S) : TransportPrimitive.futureIntegral M (0, v) (freezeSlow p.2.1 f) p = TransportPrimitive.futureIntegral M (0, v) f p := by rcases p with ⟨r, s, Y⟩ simp [TransportPrimitive.futureIntegral, TransportPrimitive.shift, freezeSlow] /-! ## Weighted estimates on one slow fiber -/ theorem transport_past_left_fiber {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) (k : ℕ) : ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift S → V), Continuous f → RadialAlias.RadiallySupported a b f → ∀ A : ℝ, 0 ≤ A → ∀ z : PressureStream.Lift S, z.1 ∈ Ioo a b → (∀ X ∈ Ioo a b, ∀ Y : PressureStream.Plane, ‖f (X, (z.2.1, Y))‖ ≤ A * logWeight cL cR a b k X) → logPosition a z.1 ≤ logLength a b / 2 → ‖TransportPrimitive.pastIntegral M (0, v) f z‖ ≤ K * A * logWeight cL cR a b k z.1 := by obtain ⟨K, hK, hb⟩ := transport_past_left_uniform (E := S × PressureStream.Plane) (V := V) ha hab hcL hcR k refine ⟨K, hK, ?_⟩ intro M v f hf hs A hA z hz hbound hh have he := hb M (0, v) (freezeSlow z.2.1 f) (freezeSlow_continuous hf _) (freezeSlow_supported hs _) A hA (fun X hX Y => hbound X hX Y.2) z hz hh simpa only [pastIntegral_freeze] using he theorem transport_future_right_fiber {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) (k : ℕ) : ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift S → V), Continuous f → RadialAlias.RadiallySupported a b f → ∀ A : ℝ, 0 ≤ A → ∀ z : PressureStream.Lift S, z.1 ∈ Ioo a b → (∀ X ∈ Ioo a b, ∀ Y : PressureStream.Plane, ‖f (X, (z.2.1, Y))‖ ≤ A * logWeight cL cR a b k X) → logLength a b / 2 ≤ logPosition a z.1 → ‖TransportPrimitive.futureIntegral M (0, v) f z‖ ≤ K * A * logWeight cL cR a b k z.1 := by obtain ⟨K, hK, hb⟩ := transport_future_right_uniform (E := S × PressureStream.Plane) (V := V) ha hab hcL hcR k refine ⟨K, hK, ?_⟩ intro M v f hf hs A hA z hz hbound hh have he := hb M (0, v) (freezeSlow z.2.1 f) (freezeSlow_continuous hf _) (freezeSlow_supported hs _) A hA (fun X hX Y => hbound X hX Y.2) z hz hh simpa only [futureIntegral_freeze] using he theorem transport_mass_fiber {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) (k : ℕ) : ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift S → V), Continuous f → RadialAlias.RadiallySupported a b f → ∀ A : ℝ, 0 ≤ A → ∀ z : PressureStream.Lift S, z.1 ∈ Ioo a b → (∀ X ∈ Ioo a b, ∀ Y : PressureStream.Plane, ‖f (X, (z.2.1, Y))‖ ≤ A * logWeight cL cR a b k X) → ‖TransportPrimitive.pastIntegral M (0, v) f z‖ ≤ K * A ∧ ‖TransportPrimitive.totalIntegral M (0, v) f z‖ ≤ K * A := by obtain ⟨K, hK, hb⟩ := transport_mass_uniform (E := S × PressureStream.Plane) (V := V) ha hab hcL hcR k refine ⟨K, hK, ?_⟩ intro M v f hf hs A hA z hz hbound have he := hb M (0, v) (freezeSlow z.2.1 f) (freezeSlow_continuous hf _) (freezeSlow_supported hs _) A hA (fun X hX Y => hbound X hX Y.2) z hz simpa only [pastIntegral_freeze, totalIntegral_freeze] using he variable [CompleteSpace V] theorem transport_compact_finiteJets_fiber {a b c d cL cR : ℝ} (ha : 0 < a) (hac : a < c) (hcd : c < d) (hdb : d < b) (hcL : 0 < cL) (hcR : 0 < cR) (p m : ℕ) (χ : ℝ → ℝ) (hχ : ContDiff ℝ ∞ χ) (hleft : ∀ X, X ≤ c → χ X = 0) (hright : ∀ X, d ≤ X → χ X = 1) : ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift S → V), ContDiff ℝ ∞ f → RadialAlias.RadiallySupported a b f → ∀ A : ℝ, 0 ≤ A → ∀ s : S, (∀ j : ℕ, j ≤ m → ∀ X ∈ Ioo a b, ∀ Y : PressureStream.Plane, ‖iteratedFDeriv ℝ j f (X, (s, Y))‖ ≤ A * logWeight cL cR a b p X) → ∀ z : PressureStream.Lift S, z.1 ∈ Ioo a b → z.2.1 = s → ∀ j : ℕ, j ≤ m → ‖iteratedFDeriv ℝ j (TransportPrimitive.compactIntegral χ M (0, v) f) z‖ ≤ K * A * logWeight cL cR a b p z.1 := by classical have hab : a < b := hac.trans (hcd.trans hdb) obtain ⟨ρ, hρ, hρL, hl, hr⟩ := exists_log_plateau_width ha hac hcd hdb χ hleft hright obtain ⟨d₀, hd₀, hmiddle⟩ := middle_weight_lower_bound (L := logLength a b) hcL hcR (half_pos hρ) obtain ⟨B, hB, hcut⟩ := cutoff_finiteJet_bound (E := S × PressureStream.Plane) a b χ hχ m choose KL hKL hbL using fun j : Fin (m + 1) => transport_past_left_fiber (S := S) (V := ContinuousMultilinearMap ℝ (fun _ : Fin (j : ℕ) => PressureStream.Lift S) V) ha hab hcL hcR p choose KR hKR hbR using fun j : Fin (m + 1) => transport_future_right_fiber (S := S) (V := ContinuousMultilinearMap ℝ (fun _ : Fin (j : ℕ) => PressureStream.Lift S) V) ha hab hcL hcR p choose DS hDS hbD using fun j : Fin (m + 1) => transport_mass_fiber (S := S) (V := ContinuousMultilinearMap ℝ (fun _ : Fin (j : ℕ) => PressureStream.Lift S) V) ha hab hcL hcR p let L := ∑ j, KL j let R := ∑ j, KR j let D := ∑ j, DS j have hL : 0 ≤ L := Finset.sum_nonneg (fun j _ => hKL j) have hR : 0 ≤ R := Finset.sum_nonneg (fun j _ => hKR j) have hD : 0 ≤ D := Finset.sum_nonneg (fun j _ => hDS j) have hLL (j : Fin (m + 1)) : KL j ≤ L := Finset.single_le_sum (fun k _ => hKL k) (Finset.mem_univ j) have hRR (j : Fin (m + 1)) : KR j ≤ R := Finset.single_le_sum (fun k _ => hKR k) (Finset.mem_univ j) have hDD (j : Fin (m + 1)) : DS j ≤ D := Finset.single_le_sum (fun k _ => hDS k) (Finset.mem_univ j) let KM := D * (1 + (2 : ℝ) ^ m * B) / d₀ have hKM : 0 ≤ KM := div_nonneg (mul_nonneg hD (by positivity)) hd₀.le let K := L + R + KM have hLK : L ≤ K := by dsimp [K]; linarith have hRK : R ≤ K := by dsimp [K]; linarith have hMK : KM ≤ K := by dsimp [K]; linarith refine ⟨K, hL.trans hLK, ?_⟩ intro M v f hf hs A hA s hsource z hz hzs j hj subst s let j' : Fin (m + 1) := ⟨j, Nat.lt_succ_of_le hj⟩ have hmass (i : ℕ) (hi : i ≤ m) : ‖TransportPrimitive.pastIntegral M (0, v) (iteratedFDeriv ℝ i f) z‖ ≤ D * A ∧ ‖TransportPrimitive.totalIntegral M (0, v) (iteratedFDeriv ℝ i f) z‖ ≤ D * A := by let i' : Fin (m + 1) := ⟨i, Nat.lt_succ_of_le hi⟩ have h := hbD i' M v (iteratedFDeriv ℝ i f) (TransportPrimitive.iteratedFDeriv_contDiff hf i).continuous (TransportPrimitive.iteratedFDeriv_supported hs i) A hA z hz (hsource i hi) exact ⟨h.1.trans (mul_le_mul_of_nonneg_right (hDD i') hA), h.2.trans (mul_le_mul_of_nonneg_right (hDD i') hA)⟩ have hw : 0 ≤ logWeight cL cR a b p z.1 := (weight_pos cL cR p (logPosition_mem ha hz)).le by_cases hzl : logPosition a z.1 ≤ ρ / 2 · rw [compact_jet_eq_past_on_left ha hl z (ha.trans hz.1) (by linarith) j, TransportPrimitive.iteratedFDeriv_pastIntegral hf hs] have h := hbL j' M v (iteratedFDeriv ℝ j f) (TransportPrimitive.iteratedFDeriv_contDiff hf j).continuous (TransportPrimitive.iteratedFDeriv_supported hs j) A hA z hz (hsource j hj) (by linarith) exact h.trans (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right ((hLL j').trans hLK) hA) hw) · by_cases hzr : logLength a b - ρ / 2 ≤ logPosition a z.1 · rw [compact_jet_eq_neg_future_on_right ha hf.continuous hs hr z (ha.trans hz.1) (by linarith) j, norm_neg, TransportPrimitive.iteratedFDeriv_futureIntegral hf hs] have h := hbR j' M v (iteratedFDeriv ℝ j f) (TransportPrimitive.iteratedFDeriv_contDiff hf j).continuous (TransportPrimitive.iteratedFDeriv_supported hs j) A hA z hz (hsource j hj) (by linarith) exact h.trans (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right ((hRR j').trans hRK) hA) hw) · have hwm : d₀ ≤ logWeight cL cR a b p z.1 := hmiddle p (logPosition a z.1) ⟨le_of_not_ge hzl, le_of_not_ge hzr⟩ have hsum : (∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * ‖iteratedFDeriv ℝ i (fun y : PressureStream.Lift S => χ y.1) z‖ * ‖TransportPrimitive.totalIntegral M (0, v) (iteratedFDeriv ℝ (j - i) f) z‖) ≤ (2 : ℝ) ^ j * B * (D * A) := by calc _ ≤ ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * B * (D * A) := by apply Finset.sum_le_sum intro i hi have him : i ≤ m := (Nat.le_of_lt_succ (Finset.mem_range.mp hi)).trans hj exact mul_le_mul (mul_le_mul_of_nonneg_left (hcut i him z ⟨hz.1.le, hz.2.le⟩) (Nat.cast_nonneg _)) (hmass (j - i) ((Nat.sub_le j i).trans hj)).2 (norm_nonneg _) (mul_nonneg (Nat.cast_nonneg _) hB) _ = (2 : ℝ) ^ j * B * (D * A) := by rw [← Finset.sum_mul, ← Finset.sum_mul] congr 2 exact_mod_cast Nat.sum_range_choose j calc _ ≤ ‖TransportPrimitive.pastIntegral M (0, v) (iteratedFDeriv ℝ j f) z‖ + ∑ i ∈ Finset.range (j + 1), (j.choose i : ℝ) * ‖iteratedFDeriv ℝ i (fun y : PressureStream.Lift S => χ y.1) z‖ * ‖TransportPrimitive.totalIntegral M (0, v) (iteratedFDeriv ℝ (j - i) f) z‖ := TransportPrimitive.iteratedFDeriv_compactIntegral_norm_le hχ hf hs j z _ ≤ D * A + (2 : ℝ) ^ j * B * (D * A) := add_le_add (hmass j hj).1 hsum _ ≤ D * A + (2 : ℝ) ^ m * B * (D * A) := by exact add_le_add_right (mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right (pow_le_pow_right₀ (by norm_num : (1 : ℝ) ≤ 2) hj) hB) (mul_nonneg hD hA)) _ _ = (D * (1 + (2 : ℝ) ^ m * B)) * A := by ring _ = KM * A * d₀ := by dsimp [KM]; field_simp _ ≤ KM * A * logWeight cL cR a b p z.1 := mul_le_mul_of_nonneg_left hwm (mul_nonneg hKM hA) _ ≤ K * A * logWeight cL cR a b p z.1 := mul_le_mul_of_nonneg_right (mul_le_mul_of_nonneg_right hMK hA) hw theorem canonical_transport_finiteJets_fiber {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) (p m : ℕ) : ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : PressureStream.Plane) (f : PressureStream.Lift S → V), ContDiff ℝ ∞ f → RadialAlias.RadiallySupported a b f → ∀ A : ℝ, 0 ≤ A → ∀ s : S, (∀ j : ℕ, j ≤ m → ∀ X ∈ Ioo a b, ∀ Y : PressureStream.Plane, ‖iteratedFDeriv ℝ j f (X, (s, Y))‖ ≤ A * logWeight cL cR a b p X) → ∀ z : PressureStream.Lift S, z.1 ∈ Ioo a b → z.2.1 = s → ∀ j : ℕ, j ≤ m → ‖iteratedFDeriv ℝ j (TransportPrimitive.compactIntegral (TransportPrimitive.interiorCutoff a b) M (0, v) f) z‖ ≤ K * A * logWeight cL cR a b p z.1 := by exact transport_compact_finiteJets_fiber (S := S) (V := V) ha (c := (2 * a + b) / 3) (d := (a + 2 * b) / 3) (by linarith) (by linarith) (by linarith) hcL hcR p m (TransportPrimitive.interiorCutoff a b) (TransportPrimitive.interiorCutoff_contDiff a b) (fun X hX => TransportPrimitive.interiorCutoff_zero hab hX) (fun X hX => TransportPrimitive.interiorCutoff_one hab hX) open RadialPullback omit [CompleteSpace V] in theorem normalizeSource_finiteJets_fiber {a b d : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) (cL cR : ℝ) (p m : ℕ) : ∃ K : ℝ, 0 ≤ K ∧ ∀ (g : PressureStream.Lift S → V), ContDiff ℝ ∞ g → ∀ A : ℝ, 0 ≤ A → ∀ s : S, (∀ j : ℕ, j ≤ m → ∀ R ∈ Ioo a b, ∀ Y : PressureStream.Plane, ‖iteratedFDeriv ℝ j g (R, (s, Y))‖ ≤ A * logWeight cL cR a b p R) → ∀ z : PressureStream.Lift S, z.1 ∈ Ioo (a ^ d) (b ^ d) → z.2.1 = s → ∀ j : ℕ, j ≤ m → ‖iteratedFDeriv ℝ j (normalizeSource d a g) z‖ ≤ K * A * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p z.1 := by obtain ⟨KC, hKC, hbC⟩ := radial_comp_finiteJets_uniform (E := S × PressureStream.Plane) (V := V) (a ^ d) (b ^ d) (inverseChart_contDiff ha d) m obtain ⟨KM, hKM, hbM⟩ := radial_multiplier_finiteJets_uniform (E := S × PressureStream.Plane) (V := V) (a ^ d) (b ^ d) (sourceMultiplier_contDiff ha hd) m let Q := ((min 1 d⁻¹) ^ p)⁻¹ have hQ : 0 ≤ Q := (inv_pos.mpr (pow_pos (lt_min zero_lt_one (inv_pos.mpr hd)) p)).le refine ⟨KM * KC * Q, mul_nonneg (mul_nonneg hKM hKC) hQ, ?_⟩ intro g hg A hA s hsource z hz hzs j hj subst s have hr := inverseChart_mem ha hab hd hz have hw : 0 ≤ logWeight cL cR a b p (inverseChart d a z.1) := (weight_pos cL cR p (logPosition_mem ha hr)).le have hcomp (i : ℕ) (hi : i ≤ m) : ‖iteratedFDeriv ℝ i (g ∘ liftChart (inverseChart d a)) z‖ ≤ KC * (A * logWeight cL cR a b p (inverseChart d a z.1)) := hbC g hg z ⟨hz.1.le, hz.2.le⟩ _ (mul_nonneg hA hw) (fun k hk => hsource k hk _ hr z.2.2) i hi have hmul := hbM (g ∘ liftChart (inverseChart d a)) (hg.comp (liftChart_contDiff (inverseChart_contDiff ha d))) z ⟨hz.1.le, hz.2.le⟩ (KC * (A * logWeight cL cR a b p (inverseChart d a z.1))) (mul_nonneg hKC (mul_nonneg hA hw)) hcomp j hj change ‖iteratedFDeriv ℝ j (normalizeSource d a g) z‖ ≤ KM * (KC * (A * logWeight cL cR a b p (inverseChart d a z.1))) at hmul have hweight := logWeight_power_reverse ha hd hr cL cR p rw [inverseChart_rpow ha hd hz.1.le] at hweight calc _ ≤ KM * (KC * (A * logWeight cL cR a b p (inverseChart d a z.1))) := hmul _ ≤ KM * (KC * (A * (Q * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p z.1))) := mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hweight hA) hKC) hKM _ = (KM * KC * Q) * A * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p z.1 := by ring /-- The complete physical inverse preserves the original exponential weight and the same finite inverse-edge degree. All constants precede the arbitrary transport shift, source, amplitude, and evaluation point. -/ theorem physicalCompact_finiteJets_fiber {a b d cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (p m : ℕ) : ∃ K : ℝ, 0 ≤ K ∧ ∀ (M : ℝ) (v : PressureStream.Plane) (g : PressureStream.Lift S → V), ContDiff ℝ ∞ g → RadialAlias.RadiallySupported a b g → ∀ A : ℝ, 0 ≤ A → ∀ s : S, (∀ j : ℕ, j ≤ m → ∀ R ∈ Ioo a b, ∀ Y : PressureStream.Plane, ‖iteratedFDeriv ℝ j g (R, (s, Y))‖ ≤ A * logWeight cL cR a b p R) → ∀ z : PressureStream.Lift S, z.1 ∈ Ioo a b → z.2.1 = s → ∀ j : ℕ, j ≤ m → ‖iteratedFDeriv ℝ j (physicalCompact d a b M (0, v) g) z‖ ≤ K * A * logWeight cL cR a b p z.1 := by have haU : 0 < a ^ d := Real.rpow_pos_of_pos ha d have habU : a ^ d < b ^ d := Real.rpow_lt_rpow ha.le hab hd have hcLU : 0 < d ^ 2 * cL := mul_pos (sq_pos_of_pos hd) hcL have hcRU : 0 < d ^ 2 * cR := mul_pos (sq_pos_of_pos hd) hcR obtain ⟨KN, hKN, hbN⟩ := normalizeSource_finiteJets_fiber (S := S) (V := V) ha hab hd cL cR p m obtain ⟨KT, hKT, hbT⟩ := canonical_transport_finiteJets_fiber (S := S) (V := V) haU habU hcLU hcRU p m obtain ⟨KP, hKP, hbP⟩ := radial_comp_finiteJets_uniform (E := S × PressureStream.Plane) (V := V) a b (powerChart_contDiff ha d) m let Q := ((min 1 d) ^ p)⁻¹ have hQ : 0 ≤ Q := (inv_pos.mpr (pow_pos (lt_min zero_lt_one hd) p)).le refine ⟨KP * KT * KN * Q, mul_nonneg (mul_nonneg (mul_nonneg hKP hKT) hKN) hQ, ?_⟩ intro M v g hg hs A hA s hsource z hz hzs j hj subst s have hnf := normalizeSource_contDiff ha hd hg have hns := normalizeSource_supported ha hab hd hs have hnsource : ∀ i : ℕ, i ≤ m → ∀ U ∈ Ioo (a ^ d) (b ^ d), ∀ Y : PressureStream.Plane, ‖iteratedFDeriv ℝ i (normalizeSource d a g) (U, (z.2.1, Y))‖ ≤ (KN * A) * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p U := fun i hi U hU Y => hbN g hg A hA z.2.1 hsource (U, (z.2.1, Y)) hU rfl i hi let F := TransportPrimitive.compactIntegral (TransportPrimitive.interiorCutoff (a ^ d) (b ^ d)) M (0, v) (normalizeSource d a g) have hF : ContDiff ℝ ∞ F := TransportPrimitive.compactIntegral_contDiff (TransportPrimitive.interiorCutoff_contDiff _ _) hnf hns have hU := powerChart_mem ha hd hz have hwU : 0 ≤ logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (powerChart d a z.1) := (weight_pos _ _ p (logPosition_mem haU hU)).le have ht (i : ℕ) (hi : i ≤ m) : ‖iteratedFDeriv ℝ i F (liftChart (powerChart d a) z)‖ ≤ KT * (KN * A) * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (powerChart d a z.1) := hbT M v _ hnf hns (KN * A) (mul_nonneg hKN hA) z.2.1 hnsource (liftChart (powerChart d a) z) hU rfl i hi have hp := hbP F hF z ⟨hz.1.le, hz.2.le⟩ (KT * (KN * A) * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (powerChart d a z.1)) (mul_nonneg (mul_nonneg hKT (mul_nonneg hKN hA)) hwU) ht j hj change ‖iteratedFDeriv ℝ j (physicalCompact d a b M (0, v) g) z‖ ≤ KP * (KT * (KN * A) * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (powerChart d a z.1)) at hp rw [powerChart_eq ha (show a / 2 ≤ z.1 by linarith [hz.1]) d] at hp have hw := logWeight_power_forward ha hd hz cL cR p calc _ ≤ KP * (KT * (KN * A) * logWeight (d ^ 2 * cL) (d ^ 2 * cR) (a ^ d) (b ^ d) p (z.1 ^ d)) := hp _ ≤ KP * (KT * (KN * A) * (Q * logWeight cL cR a b p z.1)) := mul_le_mul_of_nonneg_left (mul_le_mul_of_nonneg_left hw (mul_nonneg hKT (mul_nonneg hKN hA))) hKP _ = (KP * KT * KN * Q) * A * logWeight cL cR a b p z.1 := by ring /-! ## The actual operators preserve slow fibers and their germs -/ variable {W : Type} [NormedAddCommGroup W] [NormedSpace ℝ W] noncomputable def FiberLocal (T : (PressureStream.Lift S → V) → PressureStream.Lift S → W) : Prop := ∀ (f g : PressureStream.Lift S → V) (s : S), (∀ r Y, f (r, (s, Y)) = g (r, (s, Y))) → ∀ r Y, T f (r, (s, Y)) = T g (r, (s, Y)) omit [NormedSpace ℝ S] [NormedAddCommGroup V] [NormedSpace ℝ V] [NormedAddCommGroup W] [NormedSpace ℝ W] in theorem FiberLocal.germ {T : (PressureStream.Lift S → V) → PressureStream.Lift S → W} (hT : FiberLocal T) {s : S} {f g : PressureStream.Lift S → V} (he : FiberGerm s f g) : FiberGerm s (T f) (T g) := by filter_upwards [he] with t ht exact hT f g t ht omit [CompleteSpace V] in theorem physicalCompact_fiberLocal (d a b M : ℝ) (v : PressureStream.Plane) : FiberLocal (V := V) (physicalCompact d a b M ((0 : S), v)) := by intro f g s he r Y simp [physicalCompact, pullback, Function.comp_apply, TransportPrimitive.compactIntegral, TransportPrimitive.pastIntegral, TransportPrimitive.totalIntegral, normalizeSource, liftChart, TransportPrimitive.shift, he] omit [CompleteSpace V] in theorem physicalAlias_fiberLocal (d a b M : ℝ) (v : PressureStream.Plane) : FiberLocal (V := V) (physicalAlias d a b M ((0 : S), v)) := by intro f g s he r Y simp [physicalAlias, TransportPrimitive.totalIntegral, normalizeSource, liftChart, TransportPrimitive.shift, he] omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem weightedSource_fiberLocal : FiberLocal (S := S) PressureStream.weightedSource := by intro f g s he r Y simp only [PressureStream.weightedSource, he] theorem streamPotential_fiberLocal (d a b M : ℝ) (v : PressureStream.Plane) : FiberLocal (PressureStream.streamPotential d a b M ((0 : S), v)) := by intro f g s he r Y exact congrArg (fun x : ℝ => x / r) (physicalCompact_fiberLocal d a b M v _ _ s (weightedSource_fiberLocal f g s he) r Y) omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem liftedTorusAverage_fiberLocal : FiberLocal (S := S) MeanMomentBounds.liftedTorusAverage := by intro f g s he r Y exact PressureStream.torusAverage_congr_slice (r, s) (he r) omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem liftedPressureMass_fiberLocal : FiberLocal (S := S) MeanMomentBounds.liftedPressureMass := by intro f g s he r Y apply integral_congr_ae exact Eventually.of_forall fun x => PressureStream.torusAverage_congr_slice (x, s) (he x) omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem pressureSource_fiberLocal (a b : ℝ) (hab : a < b) : FiberLocal (S := S) (PressureStream.pressureSource a b hab) := by intro f g s he r Y simp only [PressureStream.pressureSource, he] rw [show PressureStream.pressureMass f s = PressureStream.pressureMass g s from liftedPressureMass_fiberLocal f g s he r Y] theorem meanPressure_fiberLocal (d a b M : ℝ) (hab : a < b) (v : PressureStream.Plane) : FiberLocal (S := S) (PressureStream.meanPressure d a b M hab v) := by intro f g s he r Y exact physicalCompact_fiberLocal d a b M v _ _ s (pressureSource_fiberLocal a b hab f g s he) r Y omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem centered_fiberLocal : FiberLocal (S := S) TemporalMeanUpdate.centered := by intro f g s he r Y exact congrArg₂ (fun x y : ℝ => x - y) (he r Y) (liftedTorusAverage_fiberLocal f g s he r Y) section LocalSmoothness variable [FiniteDimensional ℝ S] omit [CompleteSpace V] in /-- A proved fiber-local operator transfers its global smoothness theorem to local input data. No global extension is an input to this theorem. -/ theorem FiberLocal.contDiffOn_of_supported {T : (PressureStream.Lift S → V) → PressureStream.Lift S → W} (hT : FiberLocal T) {a b : ℝ} (hTs : ∀ f, ContDiff ℝ ∞ f → RadialAlias.RadiallySupported a b f → ContDiff ℝ ∞ (T f)) {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → V} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hs : SupportedOn a b U f) : ContDiffOn ℝ ∞ (T f) (slowDomain U) := by intro p hp obtain ⟨c, _, hcs, hcf, he⟩ := exists_fiber_localization hU hp hf exact ((hTs _ hcf (localize_supported hcs hs)).contDiffAt.congr_of_eventuallyEq ((hT.germ he).eventuallyEq p.1 p.2.2).symm).contDiffWithinAt theorem physicalCompact_contDiffOn {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) (v : PressureStream.Plane) {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → V} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hs : SupportedOn a b U f) : ContDiffOn ℝ ∞ (physicalCompact d a b M ((0 : S), v) f) (slowDomain U) := (physicalCompact_fiberLocal d a b M v).contDiffOn_of_supported (fun _ h hc => physicalCompact_contDiff ha hab hd h hc M (0, v)) hU hf hs theorem streamPotential_contDiffOn {d a b M : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) (v : PressureStream.Plane) {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hs : SupportedOn a b U f) : ContDiffOn ℝ ∞ (PressureStream.streamPotential d a b M ((0 : S), v) f) (slowDomain U) := (streamPotential_fiberLocal d a b M v).contDiffOn_of_supported (fun _ h hc => PressureStream.streamPotential_contDiff ha hab hd (0, v) h hc) hU hf hs theorem liftedPressureMass_contDiffOn {a b : ℝ} {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hs : SupportedOn a b U f) : ContDiffOn ℝ ∞ (MeanMomentBounds.liftedPressureMass f) (slowDomain U) := liftedPressureMass_fiberLocal.contDiffOn_of_supported (fun _ h hc => MeanMomentBounds.liftedPressureMass_contDiff h hc) hU hf hs theorem meanClass_physicalCompact {a b d cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (U : Set S) (hU : IsOpen U) (α : ℝ) (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) (f : ℕ → PressureStream.Lift S → V) (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hs : ∀ n, SupportedOn a b U (f n)) (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α (fun n => physicalCompact d a b (M n) ((0 : S), v n) (f n)) := by refine ⟨hclass.weight_nonneg, ?_, ?_⟩ · intro n exact (physicalCompact_contDiffOn ha hab hd (v n) hU (hf n) (hs n)).mono (fun _ hp => hp.2) · intro m obtain ⟨C, hC, k, hb⟩ := hclass.bounds m obtain ⟨K, hK, hbound⟩ := physicalCompact_finiteJets_fiber (S := S) (V := V) ha hab hd hcL hcR k m refine ⟨K * C, mul_nonneg hK hC, k, ?_⟩ intro n p hp j hj obtain ⟨c, _, hcs, hcf, he⟩ := exists_fiber_localization hU hp.2 (hf n) have hA : 0 ≤ C * ε n ^ α * L n ^ k := mul_nonneg (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) (pow_nonneg (zero_le_one.trans (hL n)) _) have hin : ∀ i ≤ m, ∀ R ∈ Ioo a b, ∀ Y : PressureStream.Plane, ‖iteratedFDeriv ℝ i (localize c (f n)) (R, (p.2.1, Y))‖ ≤ (C * ε n ^ α * L n ^ k) * logWeight cL cR a b k R := by intro i hi R hR Y rw [he.jet_eq i R Y] have h := hb n (R, (p.2.1, Y)) ⟨hR, hp.2⟩ i hi rwa [localStrip_majorant_eq ha hcL hcR ε L hε hεone hL U hU α C k n _ hR] at h have hout := hbound (M n) (v n) _ hcf (localize_supported hcs (hs n)) (C * ε n ^ α * L n ^ k) hA p.2.1 hin p hp.1 rfl j hj rw [(physicalCompact_fiberLocal d a b (M n) (v n)).germ he |>.jet_eq j p.1 p.2.2] at hout rw [localStrip_majorant_eq ha hcL hcR ε L hε hεone hL U hU α (K * C) k n p hp.1] exact hout.trans_eq (by ring) end LocalSmoothness section AffineIntegral variable {D E F : Type} [NormedAddCommGroup D] [NormedSpace ℝ D] [NormedAddCommGroup E] [NormedSpace ℝ E] [NormedAddCommGroup F] [NormedSpace ℝ F] [CompleteSpace F] omit [CompleteSpace F] in /-- Compact integration needs local domination only, not a bound on all parameters. This identity differentiates the literal affine average. -/ theorem iteratedFDeriv_affineAverage (L : D →L[ℝ] E) (hL : ‖L‖ ≤ 1) (v : E) {a b : ℝ} (hab : a ≤ b) {f : E → F} (hf : ContDiff ℝ ∞ f) (j : ℕ) (x : D) : iteratedFDeriv ℝ j (MeanMomentBounds.affineAverage L v a b f) x = ∫ t in a..b, iteratedFDeriv ℝ j (fun y => f (L y + t • v)) x := by let μ := volume.restrict (Ioc a b) let g : D → ℝ → F := fun y t => f (L y + t • v) have hsm : ∀ᵐ t ∂μ, ContDiff ℝ ∞ (fun y => g y t) := Eventually.of_forall fun t => hf.comp (L.contDiff.add contDiff_const) have hm : ∀ k y, AEStronglyMeasurable (SmoothParameterIntegral.jet g k y) μ := by intro k y have hc : Continuous (fun t : ℝ => (iteratedFDeriv ℝ k f (L y + t • v)).compContinuousLinearMap (fun _ => L)) := (ContinuousMultilinearMap.compContinuousLinearMapL (fun _ : Fin k => L)).continuous.comp ((hf.continuous_iteratedFDeriv (by exact_mod_cast (le_top : (k : ℕ∞) ≤ ⊤))).comp (continuous_const.add (continuous_id.smul continuous_const))) have he : SmoothParameterIntegral.jet g k y = fun t : ℝ => (iteratedFDeriv ℝ k f (L y + t • v)).compContinuousLinearMap (fun _ => L) := funext fun t => MeanMomentBounds.iteratedFDeriv_affine L (t • v) hf k y rw [he] exact hc.aestronglyMeasurable have hd : SmoothParameterIntegral.LocallyDominated g μ := by intro k y have hc : Continuous (fun q : D × ℝ => iteratedFDeriv ℝ k f (L q.1 + q.2 • v)) := (hf.continuous_iteratedFDeriv (by exact_mod_cast (le_top : (k : ℕ∞) ≤ ⊤))).comp ((L.continuous.comp continuous_fst).add (continuous_snd.smul continuous_const)) obtain ⟨δ, hδ, C, hC⟩ := TransportPrimitive.uniform_local_bound hc y a b refine ⟨δ, hδ, fun _ => C, integrable_const _, ?_⟩ filter_upwards [ae_restrict_mem measurableSet_Ioc] with t ht intro z hz exact (MeanMomentBounds.norm_iteratedFDeriv_affine_le L hL (t • v) hf k z).trans (hC z hz t (by simpa only [uIcc_of_le hab] using Ioc_subset_Icc_self ht)) have he := SmoothParameterIntegral.iteratedFDeriv_integral hsm hm hd j x have hg : MeanMomentBounds.affineAverage L v a b f = fun y => ∫ t, g y t ∂μ := by funext y exact intervalIntegral.integral_of_le hab rw [hg] simpa only [μ, g, ← intervalIntegral.integral_of_le hab] using he omit [CompleteSpace F] in theorem affineAverage_jet_bound (L : D →L[ℝ] E) (hL : ‖L‖ ≤ 1) (v : E) {a b : ℝ} (hab : a ≤ b) {f : E → F} (hf : ContDiff ℝ ∞ f) (j : ℕ) (x : D) (C : ℝ) (hC : ∀ t ∈ Icc a b, ‖iteratedFDeriv ℝ j f (L x + t • v)‖ ≤ C) : ‖iteratedFDeriv ℝ j (MeanMomentBounds.affineAverage L v a b f) x‖ ≤ C * (b - a) := by rw [iteratedFDeriv_affineAverage L hL v hab hf] have h := intervalIntegral.norm_integral_le_of_norm_le_const (a := a) (b := b) (fun t ht => (MeanMomentBounds.norm_iteratedFDeriv_affine_le L hL (t • v) hf j x).trans (hC t (by simpa only [uIcc_of_le hab] using uIoc_subset_uIcc ht))) simpa only [abs_of_nonneg (sub_nonneg.mpr hab)] using h end AffineIntegral theorem liftedTorusAverage_jet_bound {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) (j : ℕ) (p : PressureStream.Lift S) (C : ℝ) (hb : ∀ Y, ‖iteratedFDeriv ℝ j f (p.1, (p.2.1, Y))‖ ≤ C) : ‖iteratedFDeriv ℝ j (MeanMomentBounds.liftedTorusAverage f) p‖ ≤ C := by rw [MeanMomentBounds.liftedTorusAverage_eq_affine] have hi := affineAverage_jet_bound (MeanMomentBounds.eraseAuxY (P := S)) (MeanMomentBounds.norm_eraseAuxY_le (P := S)) (MeanMomentBounds.auxY (P := S)) zero_le_one (MeanMomentBounds.affineAverage_contDiff (MeanMomentBounds.eraseAuxX (P := S)) (MeanMomentBounds.auxX (P := S)) 0 1 hf) j p C simp only [sub_zero, mul_one] at hi apply hi intro t ht rw [MeanMomentBounds.eraseAuxY_add_smul] have hh := affineAverage_jet_bound (MeanMomentBounds.eraseAuxX (P := S)) (MeanMomentBounds.norm_eraseAuxX_le (P := S)) (MeanMomentBounds.auxX (P := S)) zero_le_one hf j (p.1, (p.2.1, (p.2.2.1, t))) C (fun u _ => by simpa only [MeanMomentBounds.eraseAuxX_add_smul] using hb (u, t)) simpa only [sub_zero, mul_one] using hh section LocalClasses variable [FiniteDimensional ℝ S] omit [CompleteSpace V] in theorem FiberLocal.contDiffOn {T : (PressureStream.Lift S → V) → PressureStream.Lift S → W} (hT : FiberLocal T) (hTs : ∀ f, ContDiff ℝ ∞ f → ContDiff ℝ ∞ (T f)) {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → V} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) : ContDiffOn ℝ ∞ (T f) (slowDomain U) := by intro p hp obtain ⟨c, _, _, hcf, he⟩ := exists_fiber_localization hU hp hf exact ((hTs _ hcf).contDiffAt.congr_of_eventuallyEq ((hT.germ he).eventuallyEq p.1 p.2.2).symm).contDiffWithinAt theorem FiberLocal.contDiffOn_of_periodic {T : (PressureStream.Lift S → ℝ) → PressureStream.Lift S → ℝ} (hT : FiberLocal T) (hTs : ∀ f, ContDiff ℝ ∞ f → PressureStream.TorusPeriodicLift f → ContDiff ℝ ∞ (T f)) {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hp : PeriodicOn U f) : ContDiffOn ℝ ∞ (T f) (slowDomain U) := by intro p hpu obtain ⟨c, _, hcs, hcf, he⟩ := exists_fiber_localization hU hpu hf exact ((hTs _ hcf (localize_periodic hcs hp)).contDiffAt.congr_of_eventuallyEq ((hT.germ he).eventuallyEq p.1 p.2.2).symm).contDiffWithinAt omit [CompleteSpace V] [NormedSpace ℝ W] in theorem FiberLocal.supportedOn {T : (PressureStream.Lift S → V) → PressureStream.Lift S → W} (hT : FiberLocal T) {a b : ℝ} (hTs : ∀ f, ContDiff ℝ ∞ f → RadialAlias.RadiallySupported a b f → RadialAlias.RadiallySupported a b (T f)) {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → V} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hs : SupportedOn a b U f) : SupportedOn a b U (T f) := by intro p hp hn obtain ⟨c, _, hcs, hcf, he⟩ := exists_fiber_localization hU hp hf have heq := ((hT.germ he).eventuallyEq p.1 p.2.2).self_of_nhds have hne : T (localize c f) p ≠ 0 := by simpa only [heq] using hn exact hTs _ hcf (localize_supported hcs hs) hne theorem liftedTorusAverage_contDiffOn {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) : ContDiffOn ℝ ∞ (MeanMomentBounds.liftedTorusAverage f) (slowDomain U) := liftedTorusAverage_fiberLocal.contDiffOn (fun _ h => MeanMomentBounds.liftedTorusAverage_contDiff h) hU hf theorem liftedTorusAverage_supportedOn {a b : ℝ} {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hs : SupportedOn a b U f) : SupportedOn a b U (MeanMomentBounds.liftedTorusAverage f) := liftedTorusAverage_fiberLocal.supportedOn (fun _ _ h => MeanMomentBounds.liftedTorusAverage_supported h) hU hf hs theorem centered_contDiffOn {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) : ContDiffOn ℝ ∞ (TemporalMeanUpdate.centered f) (slowDomain U) := centered_fiberLocal.contDiffOn (fun _ h => TemporalMeanUpdate.centered_smooth h) hU hf omit [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] in theorem centered_periodicOn {U : Set S} {f : PressureStream.Lift S → ℝ} (hp : PeriodicOn U f) : PeriodicOn U (TemporalMeanUpdate.centered f) := by intro r s hs Y k exact congrArg (fun x => x - PressureStream.torusAverage f (r, s)) (hp r s hs Y k) theorem meanClass_liftedTorusAverage {a b cL cR : ℝ} (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α (fun n => MeanMomentBounds.liftedTorusAverage (f n)) := by refine ⟨hclass.weight_nonneg, fun n => (liftedTorusAverage_contDiffOn hU (hf n)).mono (fun _ hp => hp.2), ?_⟩ intro m obtain ⟨C, hC, k, hb⟩ := hclass.bounds m refine ⟨C, hC, k, ?_⟩ intro n p hp j hj obtain ⟨c, _, _, hcf, he⟩ := exists_fiber_localization hU hp.2 (hf n) have hout := liftedTorusAverage_jet_bound hcf j p (majorant (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) (fun _ x => (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU).zeta x) α C k n p) (fun Y => by rw [he.jet_eq j p.1 Y] exact hb n (p.1, (p.2.1, Y)) hp j hj) rwa [(liftedTorusAverage_fiberLocal.germ he).jet_eq j p.1 p.2.2] at hout omit [CompleteSpace V] in theorem jet_zero_outside {a b : ℝ} {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → V} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hs : SupportedOn a b U f) {p : PressureStream.Lift S} (hp : p.2.1 ∈ U) (hr : p.1 ∉ Ioo a b) (j : ℕ) : iteratedFDeriv ℝ j f p = 0 := by obtain ⟨c, _, hcs, hcf, he⟩ := exists_fiber_localization hU hp hf rw [← he.jet_eq j p.1 p.2.2] exact MeanMomentBounds.supported_zero_outside_open (TransportPrimitive.iteratedFDeriv_contDiff hcf j).continuous (TransportPrimitive.iteratedFDeriv_supported (localize_supported hcs hs) j) hr /-- Uniform band jets on the valid slow domain, including all radial edges. -/ noncomputable def LocalBandJets (U : Set S) (ε L : ℕ → ℝ) (α : ℝ) (f : ℕ → PressureStream.Lift S → V) : Prop := ∀ m : ℕ, ∃ C : ℝ, 0 ≤ C ∧ ∃ k : ℕ, ∀ n p, p.2.1 ∈ U → ∀ j ≤ m, ‖iteratedFDeriv ℝ j (f n) p‖ ≤ C * ε n ^ α * L n ^ k omit [CompleteSpace V] in theorem meanClass_localBandJets {a b cL cR : ℝ} (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → V} (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hs : ∀ n, SupportedOn a b U (f n)) (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) : LocalBandJets U ε L α f := by intro m obtain ⟨C, hC, k, hb⟩ := hclass.bounds m obtain ⟨B, hB, hweight⟩ := weight_uniform_bound hcL hcR (logLength a b) k refine ⟨C * B, mul_nonneg hC hB, k, ?_⟩ intro n p hp j hj have hA : 0 ≤ C * ε n ^ α * L n ^ k := mul_nonneg (mul_nonneg hC (Real.rpow_pos_of_pos (hε n) α).le) (pow_nonneg (zero_le_one.trans (hL n)) _) by_cases hr : p.1 ∈ Ioo a b · have he := hb n p ⟨hr, hp⟩ j hj rw [localStrip_majorant_eq ha hcL hcR ε L hε hεone hL U hU α C k n p hr] at he calc _ ≤ (C * ε n ^ α * L n ^ k) * logWeight cL cR a b k p.1 := he _ ≤ (C * ε n ^ α * L n ^ k) * B := mul_le_mul_of_nonneg_left (hweight _ (logPosition_mem ha hr)) hA _ = _ := by ring · rw [jet_zero_outside hU (hf n) (hs n) hp hr j, norm_zero] exact mul_nonneg (mul_nonneg (mul_nonneg hC hB) (Real.rpow_pos_of_pos (hε n) α).le) (pow_nonneg (zero_le_one.trans (hL n)) _) end LocalClasses omit [CompleteSpace V] in theorem memClass_restrict {a b cL cR : ℝ} (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (U : Set S) (hU : IsOpen U) {α : ℝ} {w : ℕ → PressureStream.Lift S → ℝ} {f : ℕ → PressureStream.Lift S → V} (hf : MemClass (logStripData a b cL cR ha hcL hcR ε L hε hεone hL) w α f) : MemClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) w α f := by refine ⟨fun n p hp => hf.weight_nonneg n p hp.1, fun n => (hf.smooth n).mono (fun _ hp => hp.1), ?_⟩ intro m obtain ⟨C, hC, k, hb⟩ := hf.bounds m exact ⟨C, hC, k, fun n p hp j hj => hb n p hp.1 j hj⟩ theorem liftedPressureMass_jet_bound {a b : ℝ} (hab : a ≤ b) {f : PressureStream.Lift S → ℝ} (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) (j : ℕ) (p : PressureStream.Lift S) (C : ℝ) (hb : ∀ R ∈ Icc a b, ∀ Y, ‖iteratedFDeriv ℝ j f (R, (p.2.1, Y))‖ ≤ C) : ‖iteratedFDeriv ℝ j (MeanMomentBounds.liftedPressureMass f) p‖ ≤ C * (b - a) := by have hF := MeanMomentBounds.liftedTorusAverage_contDiff hf have hsF := MeanMomentBounds.liftedTorusAverage_supported hs rw [MeanMomentBounds.liftedPressureMass_eq, TransportPrimitive.iteratedFDeriv_totalIntegral hF hsF] have he := TransportPrimitive.totalIntegral_norm_le (M := 0) (v := ((0 : S), (0 : PressureStream.Plane))) hab (freezeSlow_continuous (TransportPrimitive.iteratedFDeriv_contDiff hF j).continuous p.2.1) (freezeSlow_supported (TransportPrimitive.iteratedFDeriv_supported hsF j) p.2.1) (fun R hR Y => liftedTorusAverage_jet_bound hf j (R, (p.2.1, Y.2)) C (hb R hR)) p simp only [totalIntegral_freeze] at he exact he section PressureClasses variable [FiniteDimensional ℝ S] theorem LocalBandJets.liftedPressureMass {a b : ℝ} (hab : a ≤ b) {U : Set S} (hU : IsOpen U) {ε L : ℕ → ℝ} {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} (hjets : LocalBandJets U ε L α f) (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hs : ∀ n, SupportedOn a b U (f n)) : LocalBandJets U ε L α (fun n => MeanMomentBounds.liftedPressureMass (f n)) := by intro m obtain ⟨C, hC, k, hb⟩ := hjets m refine ⟨C * (b - a), mul_nonneg hC (sub_nonneg.mpr hab), k, ?_⟩ intro n p hp j hj obtain ⟨c, _, hcs, hcf, he⟩ := exists_fiber_localization hU hp (hf n) have hout := liftedPressureMass_jet_bound hab hcf (localize_supported hcs (hs n)) j p (C * ε n ^ α * L n ^ k) (fun R _ Y => by rw [he.jet_eq j R Y] exact hb n (R, (p.2.1, Y)) hp j hj) rw [(liftedPressureMass_fiberLocal.germ he).jet_eq j p.1 p.2.2] at hout exact hout.trans_eq (by ring) omit [FiniteDimensional ℝ S] in theorem meanClass_radialMultiply {a b cL cR : ℝ} (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) {φ : ℝ → ℝ} (hφ : ContDiff ℝ ∞ φ) : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α (fun n p => φ p.1 * f n p) := by have hc := memClass_restrict ha hcL hcR ε L hε hεone hL U hU (MeanMomentBounds.radialCoefficient_unweighted (P := S × PressureStream.Plane) (b := b) ha hcL hcR ε L hε hεone hL hφ) have h := MeanIncrementBounds.Class.coefficient_mul hc hclass simp only [zero_add] at h exact h end PressureClasses section MomentsAndChanges variable [FiniteDimensional ℝ S] noncomputable def localSlowStripData (U : Set S) (hU : IsOpen U) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) : StripData S := { MeanMomentBounds.slowStripData ε L hε hεone hL with domain := U, isOpen_domain := hU delta_pos := fun _ _ => zero_lt_one zeta_smooth := contDiffOn_const zeta_nonneg := fun _ _ => zero_le_one } theorem meanClass_pressureMass {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hs : ∀ n, SupportedOn a b U (f n)) (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) : UnweightedClass (localSlowStripData U hU ε L hε hεone hL) α (fun n => PressureStream.pressureMass (f n)) := by have hm := fun n => liftedPressureMass_contDiffOn hU (hf n) (hs n) have hb := (meanClass_localBandJets ha hcL hcR ε L hε hεone hL U hU hf hs hclass).liftedPressureMass hab.le hU hf hs refine ⟨fun _ _ _ => zero_le_one, ?_, ?_⟩ · intro n exact (hm n).comp (MeanMomentBounds.insertSlow (P := S)).contDiff.contDiffOn (fun _ hp => hp) · intro m obtain ⟨C, hC, k, hbound⟩ := hb m refine ⟨C, hC, k, ?_⟩ intro n s hsu j hj change ‖iteratedFDeriv ℝ j (MeanMomentBounds.liftedPressureMass (f n) ∘ MeanMomentBounds.insertSlow) s‖ ≤ _ rw [MeanRankUpdate.iteratedFDeriv_comp_linear (slowDomain_open hU) (hm n) MeanMomentBounds.insertSlow j hsu] have hn := (iteratedFDeriv ℝ j (MeanMomentBounds.liftedPressureMass (f n)) (MeanMomentBounds.insertSlow s)).norm_compContinuousLinearMap_le (fun _ => MeanMomentBounds.insertSlow (P := S)) simp only [Finset.prod_const, Finset.card_univ, Fintype.card_fin] at hn have hp : ‖MeanMomentBounds.insertSlow (P := S)‖ ^ j ≤ 1 := pow_le_one₀ (norm_nonneg _) MeanMomentBounds.norm_insertSlow_le have h := hn.trans ((mul_le_of_le_one_right (norm_nonneg _) hp).trans (hbound n (MeanMomentBounds.insertSlow s) hsu j hj)) simpa only [majorant, StripData.growth, localSlowStripData, MeanMomentBounds.slowStripData, inv_one, max_self, mul_one] using h theorem meanClass_radialMoment {a b cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hs : ∀ n, SupportedOn a b U (f n)) (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) (k : ℕ) : UnweightedClass (localSlowStripData U hU ε L hε hεone hL) α (fun n => IntegratedMeanBalances.radialMoment k (PressureStream.torusAverage (f n))) := by have h := meanClass_pressureMass ha hab hcL hcR ε L hε hεone hL U hU (fun n => (contDiffOn_fst.pow k).mul (hf n)) (fun n p hp hn => hs n p hp (right_ne_zero_of_mul hn)) (meanClass_radialMultiply ha hcL hcR ε L hε hεone hL U hU hclass (contDiff_id.pow k)) change UnweightedClass _ α (fun n => PressureStream.pressureMass (MeanMomentBounds.radialWeighted k (f n))) at h simpa only [MeanMomentBounds.pressureMass_radialWeighted_fun] using h omit [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] in theorem SupportedOn.sub {a b : ℝ} {U : Set S} {f g : PressureStream.Lift S → ℝ} (hf : SupportedOn a b U f) (hg : SupportedOn a b U g) : SupportedOn a b U (fun p => f p - g p) := by intro p hp hn by_cases hz : f p = 0 · exact hg p hp (fun hz' => hn (by simp [hz, hz'])) · exact hf p hp hz end MomentsAndChanges /-! ## Exact identification of the positive-time normalized rank domain -/ noncomputable def normalizedSlowDomain (coord qlo qhi : ℝ) : Set PressureStream.Plane := {s | 0 < s.1 ∧ SimilarityCoordinates.coordinateQ coord (s.1, s.2) ∈ Ioo qlo qhi} theorem chartQ_eq_slow (coord : ℝ) (p : MeanRankUpdate.ChartPoint) : MeanRankUpdate.chartQ coord p = SimilarityCoordinates.coordinateQ coord (p.2.1.1, p.2.1.2) := rfl theorem normalizedSlowDomain_open {coord : ℝ} (hc : 0 < coord) (hc1 : coord < 1) (qlo qhi : ℝ) : IsOpen (normalizedSlowDomain coord qlo qhi) := by have h := (MeanRankUpdate.normalizedDomain_isOpen hc hc1 qlo qhi (-1) 1).preimage (show Continuous (fun s : PressureStream.Plane => ((0 : ℝ), (s, (0 : PressureStream.Plane)))) from continuous_const.prodMk (continuous_id.prodMk continuous_const)) convert! h using 1 ext s simp [normalizedSlowDomain, MeanRankUpdate.normalizedDomain, chartQ_eq_slow, PhysicalCoordinateBounds.positiveTime, MeanRankUpdate.chartInput_apply] section TemporalClasses variable [FiniteDimensional ℝ S] omit [NormedAddCommGroup S] [NormedSpace ℝ S] [FiniteDimensional ℝ S] in theorem temporalInverse_fiberLocal : FiberLocal (S := S) TemporalMeanUpdate.temporalInverse := by intro f g s he r Y have hslice : SmoothFamilyTorusInverse.slice (TemporalMeanUpdate.sourceToFamily f) (r, s) = SmoothFamilyTorusInverse.slice (TemporalMeanUpdate.sourceToFamily g) (r, s) := by funext Z exact congrArg Complex.ofReal (he r Z) have hcoeff : SmoothFamilyTorusInverse.coefficient (TemporalMeanUpdate.sourceToFamily f) (r, s) = SmoothFamilyTorusInverse.coefficient (TemporalMeanUpdate.sourceToFamily g) (r, s) := by funext k unfold SmoothFamilyTorusInverse.coefficient rw [hslice] dsimp only [TemporalMeanUpdate.temporalInverse, SmoothFamilyTorusInverse.inverse] rw [hcoeff] theorem temporalInverse_contDiffOn {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hp : PeriodicOn U f) : ContDiffOn ℝ ∞ (TemporalMeanUpdate.temporalInverse f) (slowDomain U) := temporalInverse_fiberLocal.contDiffOn_of_periodic (fun _ h hp => TemporalMeanUpdate.temporalInverse_smooth h hp) hU hf hp omit [FiniteDimensional ℝ S] in omit [NormedAddCommGroup S] [NormedSpace ℝ S] in theorem desiredIncrement_fiberLocal (h : ℝ) (n : ℕ) : FiberLocal (S := S) (TemporalMeanUpdate.desiredIncrement h n) := by intro f g s he r Y exact congrArg (fun x : ℝ => -TemporalMeanUpdate.chartPrefactor h n * x) (temporalInverse_fiberLocal _ _ s (centered_fiberLocal f g s he) r Y) theorem desiredIncrement_contDiffOn (h : ℝ) (n : ℕ) {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hp : PeriodicOn U f) : ContDiffOn ℝ ∞ (TemporalMeanUpdate.desiredIncrement h n f) (slowDomain U) := (desiredIncrement_fiberLocal h n).contDiffOn_of_periodic (fun _ hf hp => TemporalMeanUpdate.desiredIncrement_smooth h n hf hp) hU hf hp end TemporalClasses theorem totalIntegral_jet_bound_fiber {a b M : ℝ} (hab : a ≤ b) (v : PressureStream.Plane) {f : PressureStream.Lift S → V} (hf : ContDiff ℝ ∞ f) (hs : RadialAlias.RadiallySupported a b f) (j : ℕ) (p : PressureStream.Lift S) (C : ℝ) (hb : ∀ R ∈ Icc a b, ∀ Y, ‖iteratedFDeriv ℝ j f (R, (p.2.1, Y))‖ ≤ C) : ‖iteratedFDeriv ℝ j (TransportPrimitive.totalIntegral M ((0 : S), v) f) p‖ ≤ C * (b - a) := by rw [TransportPrimitive.iteratedFDeriv_totalIntegral hf hs] have he := TransportPrimitive.totalIntegral_norm_le (M := M) (v := ((0 : S), v)) hab (freezeSlow_continuous (TransportPrimitive.iteratedFDeriv_contDiff hf j).continuous p.2.1) (freezeSlow_supported (TransportPrimitive.iteratedFDeriv_supported hs j) p.2.1) (fun R hR Y => hb R hR Y.2) p simp only [totalIntegral_freeze] at he exact he section AliasClasses variable [FiniteDimensional ℝ S] end AliasClasses section FinalStreamClasses variable [FiniteDimensional ℝ S] omit [FiniteDimensional ℝ S] in theorem meanClass_divideRadius {a b cL cR : ℝ} (ha : 0 < a) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α (fun n => PressureStream.divideRadius (f n)) := by let φ : ℝ → ℝ := fun r => (positiveRadius (a / 4) r)⁻¹ have hφ : ContDiff ℝ ∞ φ := (positiveRadius_contDiff (a / 4)).inv (fun r => (positiveRadius_pos (by positivity) r).ne') apply MeanRankUpdate.meanClass_congr_on (meanClass_radialMultiply ha hcL hcR ε L hε hεone hL U hU hclass hφ) intro n p hp dsimp [PressureStream.divideRadius, φ] rw [positiveRadius_eq_self (show 0 < a / 4 by positivity) (by linarith [hp.1.1])] simp only [div_eq_mul_inv, mul_comm] theorem meanClass_streamPotential {a b d cL cR : ℝ} (ha : 0 < a) (hab : a < b) (hd : 0 < d) (hcL : 0 < cL) (hcR : 0 < cR) (ε L : ℕ → ℝ) (hε : ∀ n, 0 < ε n) (hεone : ∀ n, ε n ≤ 1) (hL : ∀ n, 1 ≤ L n) (U : Set S) (hU : IsOpen U) {α : ℝ} {f : ℕ → PressureStream.Lift S → ℝ} (hf : ∀ n, ContDiffOn ℝ ∞ (f n) (slowDomain U)) (hs : ∀ n, SupportedOn a b U (f n)) (hclass : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α f) (M : ℕ → ℝ) (v : ℕ → PressureStream.Plane) : MeanClass (localStripData a b cL cR ha hcL hcR ε L hε hεone hL U hU) α (fun n => PressureStream.streamPotential d a b (M n) ((0 : S), v n) (f n)) := by have hw := meanClass_radialMultiply ha hcL hcR ε L hε hεone hL U hU hclass (φ := id) contDiff_id have hi := meanClass_physicalCompact ha hab hd hcL hcR ε L hε hεone hL U hU α M v (fun n => PressureStream.weightedSource (f n)) (fun n => contDiffOn_fst.mul (hf n)) (fun n p hp hn => hs n p hp (right_ne_zero_of_mul hn)) hw exact meanClass_divideRadius ha hcL hcR ε L hε hεone hL U hU hi end FinalStreamClasses section ActualTemporalUpdate variable [FiniteDimensional ℝ S] theorem desiredIncrement_zeroMean_on (h : ℝ) (n : ℕ) {U : Set S} (hU : IsOpen U) {f : PressureStream.Lift S → ℝ} (hf : ContDiffOn ℝ ∞ f (slowDomain U)) (hper : PeriodicOn U f) (p : ℝ × S) (hp : p.2 ∈ U) : PressureStream.torusAverage (TemporalMeanUpdate.desiredIncrement h n f) p = 0 := by obtain ⟨c, _, hcs, hcf, he⟩ := exists_fiber_localization hU hp hf have hfg := ((desiredIncrement_fiberLocal h n).germ he).self_of_nhds rw [← PressureStream.torusAverage_congr_slice p (hfg p.1)] exact TemporalMeanUpdate.desiredIncrement_zeroMean h n hcf (localize_periodic hcs hper) p end ActualTemporalUpdate end NavierStokes.PhysicalMeanDomain