cfahlgren1's picture
download
raw
3.46 kB
import OAI.Probability.PosteriorReplicas.Model
namespace OAI
open MeasureTheory ProbabilityTheory Set Filter
open scoped ENNReal NNReal RealInnerProductSpace
noncomputable section
universe u
namespace PosteriorRegression
open scoped Topology
section FrostmanGeometry
variable {E : Type*} [NormedAddCommGroup E] [NormedSpace ℝ E]
[FiniteDimensional ℝ E] [MeasurableSpace E] [BorelSpace E]
def HasLocalMassBound (ν : Measure E) (a : ℝ) : Prop :=
∀ t ∈ ν.support, ∀ r : ℝ, 0 < r →
ν (Metric.closedBall t r) ≤ ENNReal.ofReal (r ^ a)
omit [BorelSpace E] in
theorem HasLocalMassBound.any_center {ν : Measure E} {a : ℝ}
(hν : HasLocalMassBound ν a) (z : E) {r : ℝ} (hr : 0 < r) :
ν (Metric.closedBall z r) ≤ ENNReal.ofReal ((2 * r) ^ a) := by
by_cases hmass : ν (Metric.closedBall z r) = 0
· simp [hmass]
obtain ⟨t, htball, htsupp⟩ := ν.nonempty_inter_support_of_pos (pos_iff_ne_zero.mpr hmass)
refine (measure_mono ?_).trans (hν t htsupp (2 * r) (by positivity))
intro x hx
apply Metric.mem_closedBall.mpr
calc
dist x t ≤ dist x z + dist z t := dist_triangle _ _ _
_ ≤ r + r := add_le_add (Metric.mem_closedBall.mp hx)
(by simpa [dist_comm] using Metric.mem_closedBall.mp htball)
_ = 2 * r := by ring
theorem card_le_volume_ratio (s : Finset E) {r R : ℝ} (hr : 0 < r) (hR : 0 ≤ R)
(hs : ∀ x ∈ s, ‖x‖ ≤ R)
(hsep : ∀ x ∈ s, ∀ y ∈ s, x ≠ y → r ≤ dist x y) :
(s.card : ℝ) ≤ ((R + r / 2) / (r / 2)) ^ Module.finrank ℝ E := by
classical
let ν : Measure E := Measure.addHaar
let δ : ℝ := r / 2
let ρ : ℝ := R + r / 2
have hδ : 0 < δ := by dsimp [δ]; positivity
have hρ : 0 < ρ := by dsimp [ρ]; positivity
let A : Set E := ⋃ c ∈ s, Metric.ball c δ
have hd : Set.Pairwise (s : Set E) (fun c d => Disjoint (Metric.ball c δ) (Metric.ball d δ)) := by
intro c hc d hd hcd
apply Metric.ball_disjoint_ball
simpa [δ] using hsep c hc d hd hcd
have hsub : A ⊆ Metric.ball (0 : E) ρ := by
refine iUnion₂_subset fun x hx => ?_
apply Metric.ball_subset_ball'
dsimp [δ, ρ]
rw [dist_zero_right]
linarith [hs x hx]
have I :
(s.card : ℝ≥0∞) * ENNReal.ofReal (δ ^ Module.finrank ℝ E) * ν (Metric.ball 0 1) ≤
ENNReal.ofReal (ρ ^ Module.finrank ℝ E) * ν (Metric.ball 0 1) := by
calc
(s.card : ℝ≥0∞) * ENNReal.ofReal (δ ^ Module.finrank ℝ E) * ν (Metric.ball 0 1) = ν A := by
dsimp only [A]
rw [measure_biUnion_finset hd (fun _ _ => Metric.isOpen_ball.measurableSet)]
simp only [ν.addHaar_ball_of_pos _ hδ, Finset.sum_const, nsmul_eq_mul, mul_assoc]
_ ≤ ν (Metric.ball (0 : E) ρ) := measure_mono hsub
_ = _ := ν.addHaar_ball_of_pos 0 hρ
have J : (s.card : ℝ≥0∞) * ENNReal.ofReal (δ ^ Module.finrank ℝ E) ≤
ENNReal.ofReal (ρ ^ Module.finrank ℝ E) :=
(ENNReal.mul_le_mul_iff_left (Metric.measure_ball_pos ν 0 zero_lt_one).ne'
measure_ball_lt_top.ne).mp I
have K : (s.card : ℝ) * δ ^ Module.finrank ℝ E ≤ ρ ^ Module.finrank ℝ E := by
simpa only [ENNReal.toReal_mul, ENNReal.toReal_natCast,
ENNReal.toReal_ofReal (pow_nonneg hδ.le _)] using
ENNReal.toReal_le_of_le_ofReal (pow_nonneg hρ.le _) J
rw [div_pow]
exact (le_div_iff₀ (pow_pos hδ _)).mpr K
end FrostmanGeometry
end PosteriorRegression
end
end OAI

Xet Storage Details

Size:
3.46 kB
·
Xet hash:
91a43955951d104d5b7299cd0b5539c868ddc3d64c0b33784ca9a902804d75be

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