Buckets:
| import Mathlib | |
| import OAI.Probability.GaussianInformation.Dyadic.ChartGeometry | |
| namespace OAI | |
| open MeasureTheory ProbabilityTheory Set | |
| open scoped BigOperators ENNReal | |
| open MeasureTheory Metric Set | |
| open scoped ENNReal NNReal | |
| open MeasureTheory Set Filter | |
| open scoped ENNReal Topology | |
| namespace RepeatedLocalization | |
| private 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 : ℕ => | |
| ({point : ℝ | point ≤ (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 | |
| private 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)] | |
| theorem weightedMeasure_apply_le_sqrt {α : Type*} [MeasurableSpace α] | |
| (μ : Measure α) (h : α → ℝ) (hh : Measurable h) (hnorm : eLpNorm h 2 μ ≤ 1) | |
| (s : Set α) (hs : MeasurableSet s) : | |
| (μ.withDensity (fun x => ENNReal.ofReal |h x|)) s ≤ μ s ^ (1 / 2 : ℝ) := by | |
| rw [withDensity_apply _ hs] | |
| have heq : (∫⁻ x in s, ENNReal.ofReal |h x| ∂μ) = eLpNorm h 1 (μ.restrict s) := by | |
| rw [eLpNorm_one_eq_lintegral_enorm hh.aestronglyMeasurable] | |
| simp only [Real.enorm_eq_ofReal_abs] | |
| rw [heq] | |
| have hholder := eLpNorm_le_eLpNorm_mul_rpow_measure_univ | |
| (by norm_num : (1 : ℝ≥0∞) ≤ 2) (hh.aestronglyMeasurable (μ := μ.restrict s)) | |
| have hn' : eLpNorm h 2 (μ.restrict s) ≤ 1 := | |
| (eLpNorm_restrict_le h 2 μ s).trans hnorm | |
| calc | |
| eLpNorm h 1 (μ.restrict s) ≤ eLpNorm h 2 (μ.restrict s) * μ s ^ (1 / 2 : ℝ) := by | |
| convert hholder using 1 | |
| norm_num | |
| _ ≤ 1 * μ s ^ (1 / 2 : ℝ) := by gcongr | |
| _ = μ s ^ (1 / 2 : ℝ) := one_mul _ | |
| theorem weightedMeasure_mass_le_one {α : Type*} [MeasurableSpace α] | |
| (μ : Measure α) [IsProbabilityMeasure μ] (h : α → ℝ) (hh : Measurable h) | |
| (hnorm : eLpNorm h 2 μ ≤ 1) : | |
| (μ.withDensity (fun x => ENNReal.ofReal |h x|)) univ ≤ 1 := by | |
| simpa using weightedMeasure_apply_le_sqrt μ h hh hnorm univ MeasurableSet.univ | |
| end RepeatedLocalization | |
| end OAI | |
Xet Storage Details
- Size:
- 7.44 kB
- Xet hash:
- b8bea5ec330e13f75b1151a9d3a25942565bf76dc5e127e84a340e7cc38a8a79
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.