Buckets:
| import OAI.MeasureTheory.SelfSimilar.LocalMass | |
| namespace OAI | |
| section | |
| open scoped BigOperators ENNReal | |
| open MeasureTheory | |
| open MeasureTheory Metric Set Filter | |
| open scoped Topology ENNReal | |
| namespace EntropyRateDimension.MeasureEntropy | |
| theorem grid_le_of_quarter_power_ball_mass (μ : Measure ℝ) [IsProbabilityMeasure μ] | |
| {B s u d η : ℝ} (hB0 : 0 ≤ B) (hs : 0 < s) (hs1 : s ≤ 1) | |
| (hd : 0 ≤ d) (hη0 : 0 ≤ η) | |
| (hB : μ (Set.Icc (-B) B)ᶜ = 0) (hu : u ∈ Set.Icc (0 : ℝ) 1) | |
| (E : Set ℝ) (hη : μ.real Eᶜ ≤ η) | |
| (hball : ∀ x ∈ E, (s/4)^d ≤ μ.real (Metric.ball x (s/2))) : | |
| grid μ s u ≤ Real.log 6+d*Real.log 4+η*Real.log (2*B+3)+ | |
| (d+η)*Real.log (1/s) := by | |
| have hq : 0 < (s/4)^d := Real.rpow_pos_of_pos (by positivity) _ | |
| have hq1 : (s/4)^d ≤ 1 := Real.rpow_le_one (by positivity) (by linarith) hd | |
| have hh := grid_le_of_ball_mass μ hs hq hB hu E hη hball | |
| have hq3 : 1 ≤ 3/(s/4)^d := (le_div_iff₀ hq).mpr (by linarith) | |
| rw [max_eq_right hq3] at hh | |
| have hnum : 0 < 2*B+3 := by linarith | |
| have hcard := grid_support_card_le hB0 hs hs1 | |
| have hbase : 1 ≤ (2*B+3)/s := (le_div_iff₀ hs).mpr (by linarith) | |
| have hlog : Real.log (max 1 ((Finset.Icc ⌊-B/s⌋ ⌊B/s+1⌋).card : ℝ)) ≤ | |
| Real.log ((2*B+3)/s) := | |
| Real.log_le_log (lt_of_lt_of_le zero_lt_one (le_max_left _ _)) | |
| (max_le hbase hcard) | |
| have hm := mul_le_mul_of_nonneg_left hlog hη0 | |
| have he : Real.log 2+Real.log (3/(s/4)^d)+η*Real.log ((2*B+3)/s) = | |
| Real.log 6+d*Real.log 4+η*Real.log (2*B+3)+(d+η)*Real.log (1/s) := by | |
| rw [Real.log_div (by norm_num) hq.ne',Real.log_rpow (by positivity), | |
| Real.log_div hs.ne' (by norm_num),Real.log_div hnum.ne' hs.ne', | |
| Real.log_div (by norm_num) hs.ne',Real.log_one] | |
| have h6 : Real.log (6 : ℝ)=Real.log 2+Real.log 3 := by | |
| rw [show (6 : ℝ)=2*3 by norm_num,Real.log_mul (by norm_num) (by norm_num)] | |
| rw [h6] | |
| ring | |
| rw [← he] | |
| linarith | |
| theorem entropy_bound_of_radial_limit (μ : Measure ℝ) [IsProbabilityMeasure μ] | |
| (hc : CompactlyCarried μ) {d D : ℝ} (hd : 0 ≤ d) (hD : d < D) | |
| (hlim : ∀ᵐ x ∂μ, Filter.Tendsto | |
| (fun r => -Real.log (μ.real (Metric.closedBall x r)) / -Real.log r) | |
| (nhdsWithin 0 (Set.Ioi 0)) (nhds d)) : | |
| ∃ C : ℝ, ∀ s : ℝ, 0 < s → s < 1 → averaged μ s ≤ D*Real.log (1/s)+C := by | |
| let e := (d+D)/2 | |
| let η := (D-d)/4 | |
| have hde : d < e := by dsimp [e]; linarith | |
| have he : 0 ≤ e := le_trans hd hde.le | |
| have hη : 0 < η := by dsimp [η]; linarith | |
| have heη : e+η ≤ D := by dsimp [e,η]; linarith | |
| have hD0 : 0 ≤ D := hd.trans hD.le | |
| obtain ⟨E,hE,hEc,R,hR,hball⟩ := LocalMass.large_uniform_mass_set μ he hη (by | |
| filter_upwards [hlim,μ.support_mem_ae] with x hx hs | |
| exact LocalMass.eventual_lower_of_limit μ hs hde hx) | |
| obtain ⟨B,hB0,hB⟩ := hc | |
| let C₀ := Real.log 6+e*Real.log 4+η*Real.log (2*B+3) | |
| let C := max C₀ ((2*B+3)/R) | |
| refine ⟨C,?_⟩ | |
| intro s hs hs1 | |
| have hlog : 0 ≤ Real.log (1/s) := Real.log_nonneg ((one_le_div hs).mpr hs1.le) | |
| have hgrid : ∀ u ∈ Set.Icc (0 : ℝ) 1, grid μ s u ≤ D*Real.log (1/s)+C := by | |
| intro u hu | |
| by_cases hsR : s < R | |
| · have hh := grid_le_of_quarter_power_ball_mass μ hB0 hs hs1.le he hη.le hB hu E hEc | |
| (fun x hx => by | |
| have hr := hball x hx (s/2) (by positivity) (by linarith) | |
| simpa only [show s/2/2=s/4 by ring] using hr) | |
| have hm := mul_le_mul_of_nonneg_right heη hlog | |
| have hC : C₀ ≤ C := le_max_left _ _ | |
| dsimp only [C₀] at hC | |
| linarith | |
| · have hRs : R ≤ s := le_of_not_gt hsR | |
| have hh := (grid_le_card μ hs hB hu).trans (grid_support_card_le hB0 hs hs1.le) | |
| have hdiv : (2*B+3)/s ≤ (2*B+3)/R := | |
| div_le_div_of_nonneg_left (by linarith) hR hRs | |
| have hC : (2*B+3)/R ≤ C := le_max_right _ _ | |
| have hm := mul_nonneg hD0 hlog | |
| linarith | |
| have hh := integral_mono_ae (grid_integrable μ ⟨B,hB0,hB⟩ hs) | |
| (integrable_const (D*Real.log (1/s)+C)) (by | |
| filter_upwards [ae_restrict_mem measurableSet_Icc] with u hu | |
| exact hgrid u hu) | |
| simpa [averaged,integral_const,Measure.real_def] using hh | |
| end EntropyRateDimension.MeasureEntropy | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 4.26 kB
- Xet hash:
- f1be548b2dfc15c86005ed735367a4a2d3975b4d622f0a70a96e6dc7978b1bee
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.