Clip01: Clamping to [0,1] #
This file defines clip01, which clamps real values to the interval [0,1],
and proves basic properties used in L¹ convergence arguments.
Main definitions #
clip01 x: Clampsxto the interval[0,1]viamax 0 (min 1 x)
Main results #
clip01_range:0 ≤ clip01 x ≤ 1clip01_1Lipschitz:clip01is 1-Lipschitzabs_clip01_sub_le:|clip01 x - clip01 y| ≤ |x - y|continuous_clip01:clip01is continuousl1_convergence_under_clip01: L¹ convergence is preserved underclip01
Clip a real to the interval [0,1].
Equations
Instances For
clip01 is 1-Lipschitz.
clip01 is continuous.
theorem
Exchangeability.DeFinetti.ViaL2.Helpers.l1_convergence_under_clip01
{Ω : Type u_1}
[MeasurableSpace Ω]
{μ : MeasureTheory.Measure Ω}
{fn : ℕ → Ω → ℝ}
{f : Ω → ℝ}
(h_meas : ∀ (n : ℕ), AEMeasurable (fn n) μ)
(hf : AEMeasurable f μ)
(h_integrable : ∀ (n : ℕ), MeasureTheory.Integrable (fun (ω : Ω) => fn n ω - f ω) μ)
(h : Filter.Tendsto (fun (n : ℕ) => ∫ (ω : Ω), |fn n ω - f ω| ∂μ) Filter.atTop (nhds 0))
:
L¹-stability under 1-Lipschitz post-composition.
If ∫ |fₙ - f| → 0, then ∫ |clip01 ∘ fₙ - clip01 ∘ f| → 0.
This follows from mathlib's LipschitzWith.norm_compLp_sub_le: Since clip01 is 1-Lipschitz
and maps 0 to 0, we have ‖clip01 ∘ f - clip01 ∘ g‖₁ ≤ 1 * ‖f - g‖₁.