File size: 3,947 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | import OAI.MeasureTheory.Falconer.Recursion.CriticalTruncatedPotential
import Mathlib.MeasureTheory.Integral.Lebesgue.Countable
namespace OAI
/-! The critical dyadic potential of a finite scalar statistic, with one
explicit contribution per scale. This is used for the average projected
energy of a planar point set. -/
namespace Falconer
open Set MeasureTheory
open scoped ENNReal BigOperators
attribute [local instance] Classical.propDecidable
noncomputable def scalarCountingMeasure (I : Finset β) : Measure β :=
β c β I, Measure.dirac c
theorem scalarCountingMeasure_apply (I : Finset β) (A : Set β) :
scalarCountingMeasure I A = (I.filter (fun c => c β A)).card := by
rw [scalarCountingMeasure,Measure.finsetSum_apply]
simp_rw [Measure.dirac_apply,Set.indicator_apply,Pi.one_apply]
rw [β Finset.sum_filter]
simp
theorem scalarCountingMeasure_lintegral (I : Finset β) (f : β β ββ₯0β) :
(β«β» c, f c βscalarCountingMeasure I) = β c β I, f c := by
rw [scalarCountingMeasure,lintegral_finsetSum_measure]
simp only [lintegral_dirac]
theorem finite_critical_statistic (I : Finset β) (a : β β β)
(ha : Measurable a) (ha0 : β c, 0 β€ a c) (N : β) {s C : β}
(hs : 0 β€ s) (hC : 0 β€ C)
(hsmall : β j : β, j β€ N β
((I.filter fun c => a c < 1/(2:β)^j).card:β) β€ C*(1/(2:β)^j)^s) :
(β c β I, (1/max (a c) (1/(2:β)^N))^s) β€
(I.card:β)+(2:β)^s*(C+(N:β)*(C*(2:β)^s)) := by
let ΞΌ := scalarCountingMeasure I
let A := {c : β | a c < 1}
let F := fun c => ENNReal.ofReal ((1/max (a c) (1/(2:β)^N))^s)
have hcounts (j : β) (hj : j β€ 0+N) :
ΞΌ {c | a c < 1/(2:β)^j} β€ ENNReal.ofReal (C*(1/(2:β)^j)^s) := by
rw [scalarCountingMeasure_apply]
have hh := ENNReal.ofReal_le_ofReal (hsmall j (by simpa using hj))
simpa only [ENNReal.ofReal_natCast,Set.mem_ofPred_eq] using hh
have hnear := truncated_scalar_potential_critical ΞΌ a ha ha0 hs 0 N hcounts
simp only [pow_zero,one_div_one,zero_add] at hnear
have hfar : (β«β» c in AαΆ, F c βΞΌ) β€ (I.card:ββ₯0β) := by
calc
_ β€ β«β» _ in AαΆ, (1:ββ₯0β) βΞΌ := by
apply setLIntegral_mono' (by dsimp [A]; measurability)
intro c hc
have hc1 : 1 β€ a c := le_of_not_gt hc
have hd : 1 β€ max (a c) (1/(2:β)^N) := hc1.trans (le_max_left _ _)
have hi : 1/max (a c) (1/(2:β)^N) β€ 1 :=
(div_le_one (zero_lt_one.trans_le hd)).2 hd
exact ENNReal.ofReal_le_one.mpr
((Real.rpow_le_rpow (by positivity) hi hs).trans_eq (Real.one_rpow s))
_ β€ ΞΌ univ := by
simp only [lintegral_one,Measure.restrict_apply_univ]
exact measure_mono (subset_univ _)
_ = I.card := by rw [scalarCountingMeasure_apply]; simp
have htotal : (β c β I, F c) β€ (I.card:ββ₯0β)+
ENNReal.ofReal ((2:β)^s)*(ENNReal.ofReal C+(N:ββ₯0β)*ENNReal.ofReal (C*(2:β)^s)) := by
rw [β scalarCountingMeasure_lintegral]
change (β«β» c, F c βΞΌ) β€ _
rw [β lintegral_add_compl F (show MeasurableSet A from by dsimp [A]; measurability)]
exact (add_le_add hnear hfar).trans_eq (add_comm _ _)
change (β c β I, ENNReal.ofReal ((1/max (a c) (1/(2:β)^N))^s)) β€ _ at htotal
rw [β ENNReal.ofReal_sum_of_nonneg (fun c _ => by positivity)] at htotal
have he : ENNReal.ofReal ((I.card:β)+(2:β)^s*(C+(N:β)*(C*(2:β)^s))) =
(I.card:ββ₯0β)+ENNReal.ofReal ((2:β)^s)*
(ENNReal.ofReal C+(N:ββ₯0β)*ENNReal.ofReal (C*(2:β)^s)) := by
rw [ENNReal.ofReal_add (Nat.cast_nonneg _) (by positivity),
ENNReal.ofReal_mul (by positivity),ENNReal.ofReal_add hC (by positivity),
ENNReal.ofReal_mul (Nat.cast_nonneg N)]
simp only [ENNReal.ofReal_natCast]
rw [β he] at htotal
exact (ENNReal.ofReal_le_ofReal_iff (by positivity)).mp htotal
end Falconer
end OAI
|