Download data/lean/OAI/MeasureTheory/Falconer/Recursion/FiniteCriticalPotential.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.95 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Recursion/FiniteCriticalPotential.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/Falconer/Recursion/FiniteCriticalPotential.lean
-
curl -L -o FiniteCriticalPotential.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Recursion/FiniteCriticalPotential.lean
3.95 kB
| 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 | |