lemmaflow_average_error_of_uniform_approximation
{Y : Type*} [TopologicalSpaceY] [MeasurableSpaceY] [BorelSpaceY]
[MulAction (Multiplicativeℝ) Y] [ContinuousSMul (Multiplicativeℝ) Y]
(μ : MeasureY) [IsProbabilityMeasure μ]
(f g : Y→ᵇ ℝ) (b ε : ℝ) (_hb : 0≤ b)
(hfg : dist f g ≤ b) (x : Y) (T : ℝ) (hT : 0 < T)
(hf : |T⁻¹ * (∫ t in (0 : ℝ)..T, f (realActionTime t x)) -
∫ y, f y ∂μ| ≤ ε) :
|T⁻¹ * (∫ t in (0 : ℝ)..T, g (realActionTime t x)) -
∫ y, g y ∂μ| ≤ ε + 2 * b :=by
proof · 45
lines
have hpoint (y : Y) : |f y - g y| ≤ b :=by
simpa only [Real.dist_eq] using
(BoundedContinuousFunction.dist_coe_le_dist (f := f) (g := g) y).trans hfg
havehmean : |(∫ y, f y ∂μ) - ∫ y, g y ∂μ| ≤ b :=by
rw [← integral_sub (f.integrable (μ := μ)) (g.integrable (μ := μ))]
have h := norm_integral_le_of_norm_le_const (μ := μ)
(f :=fun y => f y - g y) (C:= b)
(ae_of_all _ (fun y =>by simpa only [Real.norm_eq_abs] using hpoint y))
havehμ : μ.real univ = 1:=by simp
simpa only [Real.norm_eq_abs, hμ, mul_one] using h
havehfi : IntervalIntegrable (fun t => f (realActionTime t x)) volume 0T:=
((continuous_flow_observable f).comp
(continuous_id.prodMk continuous_const)).intervalIntegrable 0Thavehgi : IntervalIntegrable (fun t => g (realActionTime t x)) volume 0T:=
((continuous_flow_observable g).comp
(continuous_id.prodMk continuous_const)).intervalIntegrable 0Thavehavg : |T⁻¹ * (∫ t in (0 : ℝ)..T, f (realActionTime t x)) -
T⁻¹ * (∫ t in (0 : ℝ)..T, g (realActionTime t x))| ≤ b :=by
rw [← mul_sub, ← intervalIntegral.integral_sub hfi hgi, abs_mul,
abs_of_pos (inv_pos.mpr hT)]
have h := intervalIntegral.norm_integral_le_of_norm_le_const
(f :=fun t => f (realActionTime t x) - g (realActionTime t x))
(a :=0) (b :=T) (C:= b)
(fun t _ =>by simpa only [Real.norm_eq_abs] using hpoint (realActionTime t x))
haveh' : |∫ t in (0 : ℝ)..T,
f (realActionTime t x) - g (realActionTime t x)| ≤ b * T:=by
simpa only [Real.norm_eq_abs, sub_zero, abs_of_pos hT] using h
calc
_ ≤T⁻¹ * (b * T) := mul_le_mul_of_nonneg_left h' (inv_nonneg.mpr hT.le)
_ = b :=by field_simp
havehd : T⁻¹ * (∫ t in (0 : ℝ)..T, g (realActionTime t x)) - ∫ y, g y ∂μ =
(T⁻¹ * (∫ t in (0 : ℝ)..T, g (realActionTime t x)) -
T⁻¹ * (∫ t in (0 : ℝ)..T, f (realActionTime t x))) +
(T⁻¹ * (∫ t in (0 : ℝ)..T, f (realActionTime t x)) - ∫ y, f y ∂μ) +
((∫ y, f y ∂μ) - ∫ y, g y ∂μ) :=by ring
rw [hd]
calc
_ ≤ |T⁻¹ * (∫ t in (0 : ℝ)..T, g (realActionTime t x)) -
T⁻¹ * (∫ t in (0 : ℝ)..T, f (realActionTime t x))| +
|T⁻¹ * (∫ t in (0 : ℝ)..T, f (realActionTime t x)) - ∫ y, f y ∂μ| +
|(∫ y, f y ∂μ) - ∫ y, g y ∂μ| :=
(abs_add_le _ _).trans (add_le_add (abs_add_le _ _) le_rfl)
_ ≤ b + ε + b := add_le_add
(add_le_add (by simpa only [abs_sub_comm] using havg) hf) hmean
_ = ε + 2 * b :=by ring
Compactness is in the uniform norm on bounded continuous functions.
apply continuous_iff_continuousAt.mpr
intro a
apply BoundedContinuousFunction.tendsto_iff_tendstoUniformly.mpr
apply Metric.tendstoUniformly_iff.mpr
intro ε hε
filter_upwards [compact_observable_varying_smul f f.continuous f.hasCompactSupport
(id : H→H) a tendsto_id ε hε] with b hb x
simpa only [compactObservableTranslate, BoundedContinuousFunction.compContinuous_apply,
ContinuousMap.coe_mk, CompactlySupportedContinuousMap.toBoundedContinuousFunction_apply,
id_eq, Real.dist_eq, abs_sub_comm] using hb x
The translating element may be any later-selected point of a fixed
compact set. It is unrelated to the real averaging flow.
theoremexists_compact_translate_real_flow_generic_set
{HY : Type*} [GroupH] [TopologicalSpaceH] [IsTopologicalGroupH]
[WeaklyLocallyCompactSpaceH] [TopologicalSpaceY]
[MulActionHY] [ContinuousSMulHY]
[MeasurableSpaceY] [BorelSpaceY]
[MulAction (Multiplicativeℝ) Y] [ContinuousSMul (Multiplicativeℝ) Y]
(μ : MeasureY) [IsProbabilityMeasure μ] [ErgodicSMul (Multiplicativeℝ) Y μ]
(f : CompactlySupportedContinuousMapYℝ) (K : SetH) (hK : IsCompactK)
(ε δ : ℝ) (hε : 0 < ε) (hδ : 0 < δ) :
∃G : SetY, MeasurableSetG∧ μ Gᶜ ≤ENNReal.ofReal δ ∧∃R : ℝ, 1≤R∧∀ x ∈G, ∀ a ∈K, ∀T≥R,
|T⁻¹ * (∫ t in (0 : ℝ)..T, f (a • realActionTime t x)) -
∫ y, f (a • y) ∂μ| ≤ ε :=by
proof · 7
lines
obtain ⟨G, hG, hGμ, R, hR, hgood⟩ :=
exists_compact_family_real_flow_generic_set μ
(compactObservableTranslate f '' K)
(hK.image (continuous_compactObservableTranslate f)) ε δ hε hδ
refine ⟨G, hG, hGμ, R, hR, ?_⟩
intro x hx a ha T hT
exact hgood x hx (compactObservableTranslate f a) ⟨a, ha, rfl⟩ T hT