cfahlgren1's picture
download
raw
5.99 kB
import Mathlib
import OAI.Probability.GaussianInformation.Kernel.Covers
namespace OAI
open MeasureTheory ProbabilityTheory Metric Set
open scoped ENNReal
namespace KernelPotential
open Filter
open scoped Topology NNReal
namespace Geometry
lemma inv_pow_dyadic_majorant (x : ℝ) (hx : 0 ≤ x) (k : ℕ) (hk : 0 < k) :
ENNReal.ofReal (x⁻¹ ^ k) ≤ 1 + ∑' j : ℕ,
({x : ℝ | x ≤ (1 / 2 : ℝ) ^ j}).indicator
(fun _ => ENNReal.ofReal ((2 : ℝ) ^ ((j + 1) * k))) x := by
by_cases hx0 : x = 0
· simp [hx0, hk.ne']
have hxpos : 0 < x := lt_of_le_of_ne hx (Ne.symm hx0)
by_cases hx1 : 1 ≤ x
· have hle : ENNReal.ofReal (x⁻¹ ^ k) ≤ 1 := by
rw [← ENNReal.ofReal_one]
apply ENNReal.ofReal_le_ofReal
exact pow_le_one₀ (inv_nonneg.mpr hx) ((inv_le_one₀ hxpos).mpr hx1)
exact hle.trans (le_add_right le_rfl)
obtain ⟨j, hj, hj'⟩ := exists_nat_pow_near_of_lt_one hxpos
(le_of_not_ge hx1) (by norm_num : 0 < (1 / 2 : ℝ)) (by norm_num : (1 / 2 : ℝ) < 1)
have hbound : x⁻¹ ^ k ≤ (2 : ℝ) ^ ((j + 1) * k) := by
rw [pow_mul]
apply pow_le_pow_left₀ (inv_nonneg.mpr hx)
have hinv := (inv_le_inv₀ hxpos (pow_pos (by norm_num : 0 < (1 / 2 : ℝ)) (j+1))).mpr hj.le
simpa only [one_div, inv_pow, inv_inv] using hinv
calc
ENNReal.ofReal (x⁻¹ ^ k) ≤ ENNReal.ofReal ((2 : ℝ) ^ ((j + 1) * k)) :=
ENNReal.ofReal_le_ofReal hbound
_ = ({x : ℝ | x ≤ (1 / 2 : ℝ) ^ j}).indicator
(fun _ => ENNReal.ofReal ((2 : ℝ) ^ ((j + 1) * k))) x := by
simp only [Set.indicator, Set.mem_ofPred_eq, hj', ite_true]
_ ≤ ∑' j : ℕ, ({x : ℝ | x ≤ (1 / 2 : ℝ) ^ j}).indicator
(fun _ => ENNReal.ofReal ((2 : ℝ) ^ ((j + 1) * k))) x :=
ENNReal.le_tsum (f := fun index : ℕ =>
({x : ℝ | x ≤ (1 / 2 : ℝ) ^ index}).indicator
(fun _ => ENNReal.ofReal ((2 : ℝ) ^ ((index + 1) * k))) x) j
_ ≤ 1 + ∑' j : ℕ, ({x : ℝ | x ≤ (1 / 2 : ℝ) ^ j}).indicator
(fun _ => ENNReal.ofReal ((2 : ℝ) ^ ((j + 1) * k))) x := le_add_left le_rfl
lemma dyadic_weight_product (j k : ℕ) :
(2 : ℝ) ^ ((j + 1) * k) * (1 / 2 : ℝ) ^ ((k + 1) * j) =
(2 : ℝ) ^ k * (1 / 2 : ℝ) ^ j := by
simp only [Nat.add_mul, one_mul, pow_add, one_div, inv_pow]
have hpow : (2 : ℝ) ^ (k * j) ≠ 0 := pow_ne_zero _ (by norm_num)
rw [Nat.mul_comm j k]
field_simp
theorem inverseMoment_of_dyadic_tails {α : Type*} [MeasurableSpace α]
(μ : Measure α) (D : α → ℝ) (hD : Measurable D) (hD0 : ∀ x, 0 ≤ D x)
(k : ℕ) (hk : 0 < k) (A : ℝ≥0∞)
(htail : ∀ j : ℕ, μ {x | D x ≤ (1 / 2 : ℝ) ^ j} ≤
A * ENNReal.ofReal ((1 / 2 : ℝ) ^ ((k + 1) * j))) :
(∫⁻ x, ENNReal.ofReal ((D x)⁻¹ ^ k) ∂μ) ≤
μ univ + A * ENNReal.ofReal ((2 : ℝ) ^ (k + 1)) := by
let S : ℕ → Set α := fun j => {x | D x ≤ (1 / 2 : ℝ) ^ j}
let w : ℕ → ℝ≥0∞ := fun j => ENNReal.ofReal ((2 : ℝ) ^ ((j + 1) * k))
have hS : ∀ j, MeasurableSet (S j) := fun j => measurableSet_le hD measurable_const
have hmeas : ∀ j, Measurable ((S j).indicator (fun _ => w j)) :=
fun j => measurable_const.indicator (hS j)
calc
(∫⁻ x, ENNReal.ofReal ((D x)⁻¹ ^ k) ∂μ) ≤
∫⁻ x, (1 + ∑' j, (S j).indicator (fun _ => w j) x) ∂μ := by
apply lintegral_mono
intro x
simpa only [S, w, Set.indicator, Set.mem_ofPred_eq] using
inv_pow_dyadic_majorant (D x) (hD0 x) k hk
_ = μ univ + ∑' j, w j * μ (S j) := by
rw [lintegral_add_left measurable_const,
lintegral_tsum (fun j => (hmeas j).aemeasurable)]
simp only [lintegral_const, one_mul, lintegral_indicator (hS _), Measure.restrict_apply_univ]
_ ≤ μ univ + ∑' j, w j * (A * ENNReal.ofReal ((1 / 2 : ℝ) ^ ((k + 1) * j))) := by
gcongr with j
exact htail j
_ = μ univ + ∑' j, (A * ENNReal.ofReal ((2 : ℝ) ^ k)) * ENNReal.ofReal ((1 / 2 : ℝ) ^ j) := by
congr 1
apply tsum_congr
intro j
dsimp [w]
rw [mul_left_comm, ← ENNReal.ofReal_mul (by positivity), dyadic_weight_product,
ENNReal.ofReal_mul (by positivity)]
ac_rfl
_ = μ univ + A * ENNReal.ofReal ((2 : ℝ) ^ (k + 1)) := by
simp only [ENNReal.ofReal_pow (by norm_num : 0 ≤ (1 / 2 : ℝ)), ENNReal.tsum_mul_left,
ENNReal.tsum_geometric]
rw [ENNReal.ofReal_div_of_pos (by norm_num : (0 : ℝ) < 2)]
simp only [ENNReal.ofReal_one, ENNReal.ofReal_ofNat, one_div, ENNReal.one_sub_inv_two,
inv_inv, pow_succ, ENNReal.ofReal_mul (pow_nonneg (by norm_num : (0 : ℝ) ≤ 2) k),
ENNReal.ofReal_ofNat, mul_assoc]
theorem zeroSet_null_of_dyadic_tails {α : Type*} [MeasurableSpace α]
(μ : Measure α) (D : α → ℝ) (k : ℕ) (A : ℝ≥0∞) (hA : A ≠ ∞)
(htail : ∀ j : ℕ, μ {x | D x ≤ (1 / 2 : ℝ) ^ j} ≤
A * ENNReal.ofReal ((1 / 2 : ℝ) ^ ((k + 1) * j))) :
μ {x | D x = 0} = 0 := by
have hr : ENNReal.ofReal ((1 / 2 : ℝ) ^ (k + 1)) < 1 := by
rw [ENNReal.ofReal_lt_one]
exact pow_lt_one₀ (by norm_num) (by norm_num) (by omega)
have ht := ENNReal.Tendsto.const_mul
(ENNReal.tendsto_pow_atTop_nhds_zero_of_lt_one hr) (Or.inr hA)
apply le_antisymm _ bot_le
change μ {x | D x = 0} ≤ (0 : ℝ≥0∞)
apply ge_of_tendsto' (show Tendsto
(fun j : ℕ => A * ENNReal.ofReal ((1 / 2 : ℝ) ^ (k + 1)) ^ j) atTop (𝓝 (0 : ℝ≥0∞)) from
by simpa only [mul_zero] using ht)
intro j
calc
μ {x | D x = 0} ≤ μ {x | D x ≤ (1 / 2 : ℝ) ^ j} := by
apply measure_mono
intro x hx
simp only [mem_ofPred_eq] at hx ⊢
rw [hx]
positivity
_ ≤ A * ENNReal.ofReal ((1 / 2 : ℝ) ^ ((k + 1) * j)) := htail j
_ = A * ENNReal.ofReal ((1 / 2 : ℝ) ^ (k + 1)) ^ j := by
rw [pow_mul, ENNReal.ofReal_pow (by positivity)]
end Geometry
end KernelPotential
end OAI

Xet Storage Details

Size:
5.99 kB
·
Xet hash:
232cf1e49ee4f9884dab6fd7211035f9289e2badc7d9960660bbc6ed881e802b

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