Download data/lean/OAI/MeasureTheory/Falconer/Recursion/IntermediateProfiles.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 6.92 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Recursion/IntermediateProfiles.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/MeasureTheory/Falconer/Recursion/IntermediateProfiles.lean
-
curl -L -o IntermediateProfiles.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/MeasureTheory/Falconer/Recursion/IntermediateProfiles.lean
6.92 kB
| import OAI.MeasureTheory.Falconer.Recursion.ProfileGrid | |
| import OAI.MeasureTheory.Falconer.Estimates.AllDimensionalOccupiedClasses | |
| import OAI.MeasureTheory.Falconer.Estimates.RegularizationScales | |
| namespace OAI | |
| /-! | |
| # Mass-profile comparison at every depth in arbitrary dimension | |
| The interpolation loss is (d+1)*lambda. The block depths satisfy the | |
| same numerical bracketing as in the planar case. | |
| -/ | |
| namespace Falconer.Regularization | |
| variable {d : β} | |
| open MeasureTheory | |
| open scoped ENNReal | |
| noncomputable def sourceProfile (Q : DyadicCube d) (ΞΌ : Measure (Space d)) | |
| (N B : β) (p : CellPath d) : β β β := | |
| regularizedProfile (regularizationLeaves Q ΞΌ N) (regularizationLabel Q ΞΌ N B) N B (N/B+1) p | |
| noncomputable def sourceClass (Q : DyadicCube d) (ΞΌ : Measure (Space d)) | |
| (N B : β) (p : CellPath d) : Measure (Space d) := | |
| normalizedClass Q ΞΌ (regularizationLeaves Q ΞΌ N) (regularizationLabel Q ΞΌ N B) | |
| (regularizationLabel Q ΞΌ N B p) | |
| theorem sourceClass_grid_comparison (Q : DyadicCube d) (hQ : 0 < Q.side) | |
| (ΞΌ : Measure (Space d)) [IsProbabilityMeasure ΞΌ] {N B : β} (hN : 0 < N) (hB : 0 < B) | |
| {p : CellPath d} (hp : p β regularizationLeaves Q ΞΌ N) | |
| {i : β} (hi : i β€ N/B+1) {P : CellPath d} | |
| (hP : P β (classLeaves (regularizationLeaves Q ΞΌ N) (regularizationLabel Q ΞΌ N B) | |
| (regularizationLabel Q ΞΌ N B p)).image (List.take (blockDepth N B i))) : | |
| (((2:β)^N)^(-sourceProfile Q ΞΌ N B p (blockDepth N B i)))/(2:β)^(N/B+2) β€ | |
| (sourceClass Q ΞΌ N B p (Q.descendant P).carrier).toReal β§ | |
| (sourceClass Q ΞΌ N B p (Q.descendant P).carrier).toReal β€ | |
| (2:β)^(N/B+2)*(((2:β)^N)^(-sourceProfile Q ΞΌ N B p (blockDepth N B i))) := by | |
| classical | |
| rw [sourceProfile,regularizedProfile_reference_grid hN (show regularizationLeaves Q ΞΌ N β cubePaths d N from Finset.filter_subset _ _) | |
| (regularizationLabel Q ΞΌ N B) hB p hi] | |
| exact regularization_grid_mass_bounds Q hQ ΞΌ N hB hp hi hP | |
| theorem profile_bracket_mass_bound {R C lam mβ mβ mβ xβ xβ xβ : β} | |
| (hR : 1 β€ R) (hC : 0 < C) (hCL : C β€ R^lam) | |
| (hml : mβ-mβ β€ (d:β)*lam) (hmu : mβ-mβ β€ (d:β)*lam) | |
| (hlo : R^(-mβ)/C β€ xβ) (hhi : xβ β€ C*R^(-mβ)) | |
| (hxl : xβ β€ xβ) (hxu : xβ β€ xβ) : | |
| R^(-((d:β)+1)*lam)*R^(-mβ) β€ xβ β§ xβ β€ R^(((d:β)+1)*lam)*R^(-mβ) := by | |
| have hRp : 0 < R := lt_of_lt_of_le zero_lt_one hR | |
| constructor | |
| Β· apply le_trans ?_ (hlo.trans hxl) | |
| apply (le_div_iffβ hC).mpr | |
| calc | |
| R^(-((d:β)+1)*lam)*R^(-mβ)*C β€ R^(-((d:β)+1)*lam)*R^(-mβ)*R^lam := | |
| mul_le_mul_of_nonneg_left hCL (by positivity) | |
| _ = R^(-(d:β)*lam-mβ) := by rw [β Real.rpow_add hRp,β Real.rpow_add hRp]; congr 1; ring | |
| _ β€ R^(-mβ) := Real.rpow_le_rpow_of_exponent_le hR (by linarith) | |
| Β· apply le_trans (hxu.trans hhi) | |
| calc | |
| C*R^(-mβ) β€ R^lam*R^(-mβ) := mul_le_mul_of_nonneg_right hCL (by positivity) | |
| _ = R^(lam-mβ) := by rw [β Real.rpow_add hRp]; rfl | |
| _ β€ R^(((d:β)+1)*lam-mβ) := Real.rpow_le_rpow_of_exponent_le hR (by linarith) | |
| _ = R^(((d:β)+1)*lam)*R^(-mβ) := Real.rpow_add hRp _ _ | |
| theorem sourceProfile_short_increment (Q : DyadicCube d) (ΞΌ : Measure (Space d)) | |
| {N B : β} (hN : 0 < N) (hB : 0 < B) (p : CellPath d) {lam u v : β} | |
| (hwidth : (B:β) β€ lam*(N:β)) (hu : 0 β€ u) (huv : u β€ v) (hv : v β€ N) | |
| (hshort : v-u β€ B) : | |
| sourceProfile Q ΞΌ N B p v-sourceProfile Q ΞΌ N B p u β€ (d:β)*lam := by | |
| classical | |
| have hh := regularizedProfile_increment hN (show regularizationLeaves Q ΞΌ N β cubePaths d N from Finset.filter_subset _ _) | |
| (regularizationLabel Q ΞΌ N B) hB p hu huv hv | |
| apply hh.2.trans | |
| apply (div_le_iffβ (by exact_mod_cast hN : 0 < (N:β))).mpr | |
| have hmulβ := mul_le_mul_of_nonneg_left hwidth (Nat.cast_nonneg d) | |
| have hmulβ := mul_le_mul_of_nonneg_left hshort (Nat.cast_nonneg d) | |
| nlinarith | |
| theorem sourceClass_all_depth_comparison (Q : DyadicCube d) (hQ : 0 < Q.side) | |
| (ΞΌ : Measure (Space d)) [IsProbabilityMeasure ΞΌ] {N B : β} (hN : 0 < N) (hB : 0 < B) | |
| {lam : β} (hwidth : (B:β) β€ lam*(N:β)) | |
| (hlarge : (2:β)^(N/B+2) β€ ((2:β)^N)^lam) | |
| {p : CellPath d} (hp : p β regularizationLeaves Q ΞΌ N) | |
| {n : β} (hn : n β€ N) {P : CellPath d} | |
| (hP : P β (classLeaves (regularizationLeaves Q ΞΌ N) (regularizationLabel Q ΞΌ N B) | |
| (regularizationLabel Q ΞΌ N B p)).image (List.take n)) : | |
| ((2:β)^N)^(-((d:β)+1)*lam)*((2:β)^N)^(-sourceProfile Q ΞΌ N B p n) β€ | |
| (sourceClass Q ΞΌ N B p (Q.descendant P).carrier).toReal β§ | |
| (sourceClass Q ΞΌ N B p (Q.descendant P).carrier).toReal β€ | |
| ((2:β)^N)^(((d:β)+1)*lam)*((2:β)^N)^(-sourceProfile Q ΞΌ N B p n) := by | |
| classical | |
| let i := (N-n)/B | |
| have hb := PlanarFalconer.blockDepth_brackets hn hB | |
| change i < N/B+1 β§ blockDepth N B (i+1) β€ n β§ n β€ blockDepth N B i β§ | |
| blockDepth N B i-n β€ B β§ n-blockDepth N B (i+1) β€ B at hb | |
| obtain β¨q,hq,rflβ© := Finset.mem_image.mp hP | |
| let Ο := sourceClass Q ΞΌ N B p | |
| have : IsProbabilityMeasure Ο := regularization_class_probability Q hQ ΞΌ N B hp | |
| have hgp := sourceClass_grid_comparison Q hQ ΞΌ hN hB hp (Nat.le_of_lt hb.1) | |
| (Finset.mem_image.mpr β¨q,hq,rflβ©) | |
| have hgm := sourceClass_grid_comparison Q hQ ΞΌ hN hB hp (by omega : i+1 β€ N/B+1) | |
| (Finset.mem_image.mpr β¨q,hq,rflβ©) | |
| have hmonoβ : Ο (Q.descendant (q.take (blockDepth N B i))).carrier β€ | |
| Ο (Q.descendant (q.take n)).carrier := by | |
| apply measure_mono | |
| have hh := descendant_subset_take Q hQ (q.take (blockDepth N B i)) n | |
| simpa only [List.take_take,Nat.min_eq_left hb.2.2.1] using hh | |
| have hmonoβ : Ο (Q.descendant (q.take n)).carrier β€ | |
| Ο (Q.descendant (q.take (blockDepth N B (i+1)))).carrier := by | |
| apply measure_mono | |
| have hh := descendant_subset_take Q hQ (q.take n) (blockDepth N B (i+1)) | |
| simpa only [List.take_take,Nat.min_eq_left hb.2.1] using hh | |
| have hml := sourceProfile_short_increment Q ΞΌ hN hB p hwidth | |
| (Nat.cast_nonneg n) (Nat.cast_le.mpr hb.2.2.1) | |
| (Nat.cast_le.mpr (Nat.sub_le N (i*B))) (by | |
| simpa only [Nat.cast_sub hb.2.2.1] using | |
| (show (((blockDepth N B i-n):β):β) β€ (B:β) by exact_mod_cast hb.2.2.2.1)) | |
| have hmu := sourceProfile_short_increment Q ΞΌ hN hB p hwidth | |
| (Nat.cast_nonneg (blockDepth N B (i+1))) (Nat.cast_le.mpr hb.2.1) (Nat.cast_le.mpr hn) (by | |
| simpa only [Nat.cast_sub hb.2.1] using | |
| (show (((n-blockDepth N B (i+1)):β):β) β€ (B:β) by exact_mod_cast hb.2.2.2.2)) | |
| exact profile_bracket_mass_bound (one_le_powβ (by norm_num : (1:β) β€ 2)) | |
| (by positivity) hlarge hml hmu hgp.1 hgm.2 | |
| (ENNReal.toReal_mono (measure_ne_top Ο _) hmonoβ) | |
| (ENNReal.toReal_mono (measure_ne_top Ο _) hmonoβ) | |
| end Falconer.Regularization | |
| end OAI | |