cfahlgren1's picture
download
raw
5.16 kB
import OAI.Probability.GaussianRegression.Model
namespace OAI
/-!
Inverse moments from polynomial tube bounds.
-/
open MeasureTheory ProbabilityTheory Set Filter
open scoped ENNReal NNReal RealInnerProductSpace Topology
noncomputable section
universe u
namespace NoiselessRegression
section InverseMoments
variable {X : Type*} [MeasurableSpace X]
omit [MeasurableSpace X] in
lemma inverse_pow_dyadic_majorant (f : X → ℝ) (m : ℕ) (hf : ∀ x, 0 ≤ f x) (x : X) :
ENNReal.ofReal ((f x)⁻¹ ^ m) ≤
1 + ∑' k : ℕ, ({x | f x ≤ (1 / 2 : ℝ) ^ k}).indicator
(fun _ => ENNReal.ofReal ((2 : ℝ) ^ (m * (k + 1)))) x := by
classical
by_cases hzero : f x = 0
· simp only [hzero, inv_zero]
exact le_add_of_le_left (by cases m <;> simp)
have hxpos : 0 < f x := lt_of_le_of_ne (hf x) (Ne.symm hzero)
by_cases hxone : 1 ≤ f x
· apply le_add_of_le_left
have h : (f x)⁻¹ ^ m ≤ 1 :=
pow_le_one₀ (inv_nonneg.mpr (hf x)) (inv_le_one_of_one_le₀ hxone)
simpa using ENNReal.ofReal_le_ofReal h
obtain ⟨k, hklo, hkhi⟩ := exists_nat_pow_near_of_lt_one hxpos
(le_of_not_ge hxone) (by norm_num : (0 : ℝ) < 1 / 2) (by norm_num : (1 / 2 : ℝ) < 1)
have hinv : (f x)⁻¹ ≤ (2 : ℝ) ^ (k + 1) := by
have h := (inv_le_inv₀ hxpos (pow_pos (by norm_num : (0 : ℝ) < 1 / 2) _)).2 hklo.le
simpa using h
have hpow : ENNReal.ofReal ((f x)⁻¹ ^ m) ≤
ENNReal.ofReal ((2 : ℝ) ^ (m * (k + 1))) := by
apply ENNReal.ofReal_le_ofReal
simpa [← pow_mul, Nat.mul_comm] using pow_le_pow_left₀ (inv_nonneg.mpr (hf x)) hinv m
calc
ENNReal.ofReal ((f x)⁻¹ ^ m) ≤ ENNReal.ofReal ((2 : ℝ) ^ (m * (k + 1))) := hpow
_ = ({x | f x ≤ (1 / 2 : ℝ) ^ k}).indicator
(fun _ => ENNReal.ofReal ((2 : ℝ) ^ (m * (k + 1)))) x := by
rw [Set.indicator_of_mem (show x ∈ {x | f x ≤ (1 / 2 : ℝ) ^ k} from hkhi)]
_ ≤ ∑' j : ℕ, ({x | f x ≤ (1 / 2 : ℝ) ^ j}).indicator
(fun _ => ENNReal.ofReal ((2 : ℝ) ^ (m * (j + 1)))) x :=
ENNReal.le_tsum (f := fun j => ({x | f x ≤ (1 / 2 : ℝ) ^ j}).indicator
(fun _ => ENNReal.ofReal ((2 : ℝ) ^ (m * (j + 1)))) x) k
_ ≤ 1 + ∑' j : ℕ, ({x | f x ≤ (1 / 2 : ℝ) ^ j}).indicator
(fun _ => ENNReal.ofReal ((2 : ℝ) ^ (m * (j + 1)))) x := le_add_left le_rfl
lemma dyadic_power_cancel (m k : ℕ) :
(2 : ℝ) ^ (m * (k + 1)) * ((1 / 2 : ℝ) ^ k) ^ (m + 1) =
(2 : ℝ) ^ m * (1 / 2 : ℝ) ^ k := by
rw [Nat.mul_add, mul_one, pow_add, pow_succ]
have h : (2 : ℝ) ^ (m * k) * ((1 / 2 : ℝ) ^ k) ^ m = 1 := by
rw [Nat.mul_comm m k, pow_mul, ← mul_pow, ← mul_pow]
norm_num
calc
2 ^ (m * k) * 2 ^ m * (((1 / 2 : ℝ) ^ k) ^ m * (1 / 2 : ℝ) ^ k) =
(2 ^ (m * k) * ((1 / 2 : ℝ) ^ k) ^ m) * (2 ^ m * (1 / 2 : ℝ) ^ k) := by ring
_ = _ := by rw [h, one_mul]
theorem inverse_moment_of_tube_bound (μ : Measure X) (f : X → ℝ) (m : ℕ)
(hf : Measurable f) (hnonneg : ∀ x, 0 ≤ f x) (C : ℝ≥0∞)
(htube : ∀ r : ℝ, 0 < r → r ≤ 1 →
μ {x | f x ≤ r} ≤ C * ENNReal.ofReal (r ^ (m + 1))) :
∫⁻ x, ENNReal.ofReal ((f x)⁻¹ ^ m) ∂μ ≤
μ Set.univ + C * (2 : ℝ≥0∞) ^ (m + 1) := by
classical
let g : ℕ → X → ℝ≥0∞ := fun k =>
({x | f x ≤ (1 / 2 : ℝ) ^ k}).indicator
(fun _ => ENNReal.ofReal ((2 : ℝ) ^ (m * (k + 1))))
have hg : ∀ k, Measurable (g k) := fun k =>
measurable_const.indicator (measurableSet_le hf measurable_const)
calc
∫⁻ x, ENNReal.ofReal ((f x)⁻¹ ^ m) ∂μ ≤ ∫⁻ x, 1 + ∑' k, g k x ∂μ :=
lintegral_mono (inverse_pow_dyadic_majorant f m hnonneg)
_ = μ Set.univ + ∑' k, ∫⁻ x, g k x ∂μ := by
rw [lintegral_add_left measurable_const, lintegral_const, one_mul, lintegral_tsum (fun k => (hg k).aemeasurable)]
_ ≤ μ Set.univ + ∑' k, C * ENNReal.ofReal ((2 : ℝ) ^ m * (1 / 2 : ℝ) ^ k) := by
apply add_le_add le_rfl
apply ENNReal.tsum_le_tsum
intro k
dsimp only [g]
rw [lintegral_indicator (measurableSet_le hf measurable_const), lintegral_const,
Measure.restrict_apply_univ]
calc
ENNReal.ofReal ((2 : ℝ) ^ (m * (k + 1))) * μ {x | f x ≤ (1 / 2 : ℝ) ^ k} ≤
ENNReal.ofReal ((2 : ℝ) ^ (m * (k + 1))) *
(C * ENNReal.ofReal (((1 / 2 : ℝ) ^ k) ^ (m + 1))) := by
gcongr
exact htube _ (by positivity) (pow_le_one₀ (by norm_num) (by norm_num))
_ = _ := by
rw [← mul_assoc, mul_comm _ C, mul_assoc, ← ENNReal.ofReal_mul (by positivity),
dyadic_power_cancel]
_ = μ Set.univ + C * (2 : ℝ≥0∞) ^ (m + 1) := by
simp_rw [ENNReal.ofReal_mul (by positivity : (0 : ℝ) ≤ 2 ^ m),
ENNReal.ofReal_pow (by norm_num : (0 : ℝ) ≤ 1 / 2),
ENNReal.ofReal_pow (by norm_num : (0 : ℝ) ≤ 2)]
rw [ENNReal.tsum_mul_left, ENNReal.tsum_mul_left, ENNReal.tsum_geometric]
norm_num [pow_succ, mul_assoc, ENNReal.ofReal_div_of_pos]
end InverseMoments
end NoiselessRegression
end
end OAI

Xet Storage Details

Size:
5.16 kB
·
Xet hash:
84d09aa48d36ec243235525fc755cbe14ddfc90e980add941144649450d24f4c

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.