File size: 2,986 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 | import OAI.NumberTheory.TwoPoint.ShortIntervals.MRTCountMean
import OAI.NumberTheory.TwoPoint.Halasz.HalaszGeneralException
namespace OAI
/-! Localize the Halasz distance hypothesis to the frequency window
actually used by a reciprocal-count cofactor. This allows a distant
frequency to be treated even when the minimizing twist is close to zero. -/
namespace TwoPointCorrelations
open Finset
open scoped Classical ComplexConjugate
theorem halasz_local_count_exception : β C Xβ : β, 0 < C β§
β N : β, Xβ β€ N β
β F : β β β, F 1 = 1 β Multiplicative F β OneBounded F β
β Q P : Finset β, (β p β Q, p.Prime) β (β p β P, p.Prime) β
β t Ο M : β, 0 β€ M β
(β v : β, |v-t| β€ Real.log (N:β)^8 β
1/2 β€ |v-Ο| β 2*M β€ squaredDistance F (mrtArchimedeanTwist v) N) β
ββ n β Icc 1 N, (mrtMissingCoefficient F Q n * conj (mrtArchimedeanTwist t n)) /
((finitePrimeDivisorCount P n : β)+1)β β€
C*N*((min M (Real.log (1+|Ο-t|))+1)*Real.exp (-min M (Real.log (1+|Ο-t|)))+
Real.log (Real.log N)/Real.log N) := by
obtain β¨C, Xβ, hC, hmeanβ© := halasz_general_exceptional_mean
refine β¨C, Xβ, hC, ?_β©
intro N hN F hF1 hFm hFb Q P hQ hP t Ο M hM hd
apply mrt_reciprocal_count_polynomial_bound (Icc 1 N) P
(fun n => mrtMissingCoefficient F Q n * conj (mrtArchimedeanTwist t n))
intro u hu hu1
let G := mrtCountMaskedCoefficient (mrtMissingCoefficient F Q) P u
have hG1 : G 1 = 1 := mrt_missing_count_one F hF1 Q P hQ hP u
have hGm : Multiplicative G :=
(mrtMissingCoefficient_multiplicative F hFm Q hQ).mrtCountMaskedCoefficient P hP u
have hGb : OneBounded G :=
(mrtMissingCoefficient_oneBounded F hFb Q).mrtCountMaskedCoefficient P hu hu1
have hh := hmean N hN (halaszTwistedFunction G t)
(halasz_twisted_one G hG1 t) (halasz_twisted_multiplicative G hGm t)
(halasz_twisted_oneBounded G hGb t) M (Ο-t) hM (by
intro v hv hvout
rw [halasz_twisted_distance]
have hv' : |(t+v)-t| β€ Real.log (N:β)^8 := by
simpa only [add_sub_cancel_left] using abs_le.mpr β¨hv.1.le,hv.2β©
have haway : 1/2 β€ |(t+v)-Ο| := by
by_contra! hh
have he : |v-(Ο-t)| = |(t+v)-Ο| := by congr 1; ring
rw [β he] at hh
have hb := abs_lt.mp hh
exact hvout β¨by linarith [hb.1],by linarith [hb.2]β©
have hl := hd (t+v) hv' haway
have hm := mrt_missing_count_mask_distance F (mrtArchimedeanTwist (t+v)) Q P hu hu1 N
(fun p hp => hFb p ((mem_filter.mp hp).2.pos))
(fun p _ => by rw [mrtArchimedeanTwist_norm])
change squaredDistance F (mrtArchimedeanTwist (t+v)) N β€
2*squaredDistance G (mrtArchimedeanTwist (t+v)) N at hm
linarith)
convert hh using 1
congr 1
apply sum_congr rfl
intro n _
simp only [halaszTwistedFunction, G, mrtCountMaskedCoefficient]
ring
end TwoPointCorrelations
end OAI
|