Download data/lean/OAI/MeasureTheory/Falconer/Recursion/FiniteCountingPotential.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 5.49 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Recursion/FiniteCountingPotential.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/Falconer/Recursion/FiniteCountingPotential.lean
-
curl -L -o FiniteCountingPotential.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Recursion/FiniteCountingPotential.lean
5.49 kB
| import OAI.MeasureTheory.Falconer.Incidence.FiniteBallBounds | |
| import OAI.MeasureTheory.Falconer.Recursion.TruncatedScalarPotential | |
| import Mathlib.MeasureTheory.Integral.Lebesgue.Countable | |
| namespace OAI | |
| /-! The finite point potential needed by the elementary planar incidence bound. -/ | |
| namespace Falconer | |
| open Set MeasureTheory | |
| open scoped ENNReal BigOperators | |
| attribute [local instance] Classical.propDecidable | |
| noncomputable def planarCountingMeasure (P : Finset (Space 2)) : Measure (Space 2) := | |
| β x β P, Measure.dirac x | |
| theorem planarCountingMeasure_apply (P : Finset (Space 2)) (A : Set (Space 2)) : | |
| planarCountingMeasure P A = (P.filter (fun x => x β A)).card := by | |
| rw [planarCountingMeasure,Measure.finsetSum_apply] | |
| simp_rw [Measure.dirac_apply,Set.indicator_apply,Pi.one_apply] | |
| rw [β Finset.sum_filter] | |
| simp | |
| theorem planarCountingMeasure_lintegral (P : Finset (Space 2)) (f : Space 2 β ββ₯0β) : | |
| (β«β» x, f x βplanarCountingMeasure P) = β x β P, f x := by | |
| rw [planarCountingMeasure,lintegral_finsetSum_measure] | |
| simp only [lintegral_dirac] | |
| theorem finite_dyadic_truncated_potential (P : Finset (Space 2)) (x : Space 2) | |
| (N : β) {K b f : β} (hK : 0 β€ K) (hb : 0 β€ b) (hbf : b < f) | |
| (hball : NormalizedFiniteBallBound (1/(2:β)^N) f K P) : | |
| (β y β P, ENNReal.ofReal ((1/max (dist x y) (1/(2:β)^N))^b)) β€ | |
| P.card + ENNReal.ofReal ((2:β)^b*(K*(P.card : β))*(1+(2:β)^b/(1-(2:β)^(b-f)))) := by | |
| let ΞΌ := planarCountingMeasure P | |
| have hsmall (j : β) (hj : j β€ 0+N) : | |
| ΞΌ {y | dist x y < 1/(2:β)^j} β€ | |
| ENNReal.ofReal ((K*(P.card : β))*(1/(2:β)^j)^f) := by | |
| rw [planarCountingMeasure_apply] | |
| have hr0 : 1/(2:β)^N β€ 1/(2:β)^j := by | |
| apply one_div_le_one_div_of_le (by positivity) | |
| exact pow_le_pow_rightβ (by norm_num) (by simpa using hj) | |
| have hr1 : 1/(2:β)^j β€ 1 := by | |
| apply (div_le_one (by positivity)).2 | |
| exact one_le_powβ (by norm_num) | |
| have hs : P.filter (fun y => dist x y < 1/(2:β)^j) β | |
| P.filter (fun y => dist y x β€ 1/(2:β)^j) := by | |
| intro y hy | |
| obtain β¨hyP,hyβ© := Finset.mem_filter.mp hy | |
| exact Finset.mem_filter.mpr β¨hyP,by simpa only [dist_comm] using hy.leβ© | |
| have hc := (show ((P.filter (fun y => dist x y < 1/(2:β)^j)).card : β) β€ | |
| (P.filter (fun y => dist y x β€ 1/(2:β)^j)).card from by exact_mod_cast Finset.card_le_card hs) | |
| have hh := hc.trans (hball x _ hr0 hr1) | |
| rw [show (K*(P.card : β))*(1/(2:β)^j)^f = K*(1/(2:β)^j)^f*(P.card : β) by ring] | |
| exact_mod_cast ENNReal.ofReal_le_ofReal hh | |
| have hlocal := truncated_scalar_potential ΞΌ (fun y => dist x y) (by fun_prop) | |
| (fun _ => dist_nonneg) (mul_nonneg hK (Nat.cast_nonneg _)) hb hbf 0 N hsmall | |
| simp only [pow_zero,one_div_one,zero_add,Real.one_rpow,mul_one] at hlocal | |
| let A := {y : Space 2 | dist x y < 1} | |
| let F := fun y : Space 2 => ENNReal.ofReal ((1/max (dist x y) (1/(2:β)^N))^b) | |
| have hfar : (β«β» y in AαΆ, F y βΞΌ) β€ P.card := by | |
| calc | |
| _ β€ β«β» _ in AαΆ, (1 : ββ₯0β) βΞΌ := by | |
| apply setLIntegral_mono' (by measurability) | |
| intro y hy | |
| change Β¬ dist x y < 1 at hy | |
| have hd : 1 β€ max (dist x y) (1/(2:β)^N) := | |
| (le_of_not_gt hy).trans (le_max_left _ _) | |
| have hinv : 1/max (dist x y) (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) hinv hb).trans_eq (Real.one_rpow _)) | |
| _ β€ ΞΌ univ := by | |
| simp only [lintegral_one,Measure.restrict_apply_univ] | |
| exact measure_mono (subset_univ _) | |
| _ = P.card := by rw [planarCountingMeasure_apply]; simp | |
| rw [β planarCountingMeasure_lintegral] | |
| change (β«β» y, F y βΞΌ) β€ _ | |
| rw [β lintegral_add_compl F (show MeasurableSet A from by dsimp [A]; measurability)] | |
| simpa only [mul_assoc,add_comm] using add_le_add hlocal hfar | |
| noncomputable def planarPotentialConstant (b f : β) : β := | |
| 1+(2:β)^b*(1+(2:β)^b/(1-(2:β)^(b-f))) | |
| theorem planarPotentialConstant_pos {b f : β} (hbf : b < f) : | |
| 0 < planarPotentialConstant b f := by | |
| have hd : 0 < 1-(2:β)^(b-f) := sub_pos.mpr | |
| (Real.rpow_lt_one_of_one_lt_of_neg (by norm_num) (sub_neg.mpr hbf)) | |
| unfold planarPotentialConstant | |
| positivity | |
| theorem finite_dyadic_truncated_potential_real (P : Finset (Space 2)) (x : Space 2) | |
| (N : β) {K b f : β} (hK : 1 β€ K) (hb : 0 β€ b) (hbf : b < f) | |
| (hball : NormalizedFiniteBallBound (1/(2:β)^N) f K P) : | |
| (β y β P, (1/max (dist x y) (1/(2:β)^N))^b) β€ | |
| K*planarPotentialConstant b f*(P.card : β) := by | |
| have hK0 : 0 β€ K := zero_le_one.trans hK | |
| have hd : 0 < 1-(2:β)^(b-f) := sub_pos.mpr | |
| (Real.rpow_lt_one_of_one_lt_of_neg (by norm_num) (sub_neg.mpr hbf)) | |
| have hR : 0 β€ (P.card : β)+(2:β)^b*(K*(P.card : β))*(1+(2:β)^b/(1-(2:β)^(b-f))) := by | |
| positivity | |
| have hh := finite_dyadic_truncated_potential P x N hK0 hb hbf hball | |
| rw [β ENNReal.ofReal_sum_of_nonneg (fun y _ => by positivity), | |
| β ENNReal.ofReal_natCast P.card, β ENNReal.ofReal_add (Nat.cast_nonneg _) (by positivity)] at hh | |
| have hh' := (ENNReal.ofReal_le_ofReal_iff hR).mp hh | |
| apply hh'.trans | |
| unfold planarPotentialConstant | |
| have hC : 0 β€ (2:β)^b*(1+(2:β)^b/(1-(2:β)^(b-f))) := by positivity | |
| nlinarith [Nat.cast_nonneg (Ξ± := β) P.card] | |
| end Falconer | |
| end OAI | |