Download data/lean/OAI/NumberTheory/TwoPoint/Halasz/HalaszCollisionPartition.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.69 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/TwoPoint/Halasz/HalaszCollisionPartition.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/NumberTheory/TwoPoint/Halasz/HalaszCollisionPartition.lean
-
curl -L -o HalaszCollisionPartition.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/NumberTheory/TwoPoint/Halasz/HalaszCollisionPartition.lean
3.69 kB
| import OAI.NumberTheory.TwoPoint.Halasz.HalaszRepeatedCoordinates | |
| import OAI.NumberTheory.TwoPoint.Halasz.HalaszEnergyRestriction | |
| import OAI.NumberTheory.TwoPoint.Halasz.HalaszCollisionAbsorption | |
| namespace OAI | |
| /-! The complete-system moment is controlled by the tuples whose | |
| chosen long coordinates are pairwise distinct. -/ | |
| namespace TwoPointCorrelations | |
| open Finset | |
| open scoped Classical | |
| noncomputable def halaszGoodLongTuples {n N β : β} (L : Fin β β Fin n) : | |
| Finset (Fin n β Fin N) := univ.filter (fun x => Function.Injective (x β L)) | |
| noncomputable def halaszBadLongCount {n k N β : β} (L : Fin β β Fin (n+2)) : β := | |
| (univ.filter (fun xy : (Fin (n+2) β Fin N) Γ (Fin (n+2) β Fin N) => | |
| Β¬Function.Injective (xy.1 β L) β§ | |
| halaszVinogradovFrequency k xy.1=halaszVinogradovFrequency k xy.2)).card | |
| theorem halasz_bad_long_count_bound {n k N β : β} (L : Fin β β Fin (n+2)) | |
| (hL : Function.Injective L) : | |
| halaszBadLongCount (k := k) (N := N) L β€ β^2*halaszRepeatedCount n k N := by | |
| let P := (univ : Finset (Fin β Γ Fin β)).filter (fun ij => ij.1β ij.2) | |
| let S := fun ij : Fin β Γ Fin β => halaszPairCollision n k N (L ij.1) (L ij.2) | |
| have hsub : (univ.filter (fun xy : (Fin (n+2) β Fin N) Γ (Fin (n+2) β Fin N) => | |
| Β¬Function.Injective (xy.1 β L) β§ | |
| halaszVinogradovFrequency k xy.1=halaszVinogradovFrequency k xy.2)) β | |
| P.biUnion S := by | |
| intro xy hxy | |
| obtain β¨hbad,hfreqβ© := (mem_filter.mp hxy).2 | |
| obtain β¨i,j,hij,hneβ© := Function.not_injective_iff.mp hbad | |
| apply mem_biUnion.mpr | |
| refine β¨(i,j),mem_filter.mpr β¨mem_univ _,hneβ©,?_β© | |
| exact mem_filter.mpr β¨mem_univ _,hij,hfreqβ© | |
| have hP : P.cardβ€β^2 := by | |
| calc | |
| P.card β€ (univ : Finset (Fin β Γ Fin β)).card := card_filter_le _ _ | |
| _ = β^2 := by simp [pow_two] | |
| calc | |
| halaszBadLongCount (k := k) (N := N) L β€ (P.biUnion S).card := card_le_card hsub | |
| _ β€ β ijβP, (S ij).card := card_biUnion_le | |
| _ β€ β _ijβP, halaszRepeatedCount n k N := by | |
| apply sum_le_sum | |
| intro ij hij | |
| exact halasz_pair_collision_bound _ _ (fun h => (mem_filter.mp hij).2 (hL h)) | |
| _ = P.card*halaszRepeatedCount n k N := by simp | |
| _ β€ β^2*halaszRepeatedCount n k N := Nat.mul_le_mul_right _ hP | |
| lemma halasz_frequency_energy (n k N : β) : | |
| halaszFiberEnergy (univ : Finset (Fin n β Fin N)) (halaszVinogradovFrequency k) = | |
| halaszVinogradovCount n k N := by | |
| rw [β halasz_nat_power_energy n k N] | |
| apply halasz_fiber_energy_congr | |
| intro x _ y _ | |
| constructor | |
| Β· intro h | |
| funext j | |
| have hj := congrFun h j | |
| simp only [halaszVinogradovFrequency,β Nat.cast_sum] at hj | |
| exact_mod_cast hj | |
| Β· intro h | |
| funext j | |
| simp only [halaszVinogradovFrequency,β Nat.cast_sum] | |
| exact_mod_cast congrFun h j | |
| theorem halasz_long_collision_partition {n k N β : β} (L : Fin β β Fin (n+2)) | |
| (hL : Function.Injective L) : | |
| halaszVinogradovCount (n+2) k N β€ 2*(β^2*halaszRepeatedCount n k N) + | |
| halaszFiberEnergy (halaszGoodLongTuples (N := N) L) (halaszVinogradovFrequency k) := by | |
| have h := halasz_energy_restriction (univ : Finset (Fin (n+2) β Fin N)) | |
| (halaszGoodLongTuples (N := N) L) (halaszVinogradovFrequency k) | |
| rw [halasz_frequency_energy] at h | |
| apply h.trans | |
| apply Nat.add_le_add_right | |
| apply Nat.mul_le_mul_left 2 | |
| convert halasz_bad_long_count_bound (k := k) (N := N) L hL using 1 | |
| unfold halaszCrossCount halaszBadLongCount | |
| congr 1 | |
| ext xy | |
| simp only [mem_filter,mem_product,mem_sdiff,mem_univ,true_and, | |
| halaszGoodLongTuples,and_true] | |
| end TwoPointCorrelations | |
| end OAI | |