math / data /lean /OAI /NumberTheory /TwoPoint /Fourier /MajorArcReduction.lean
introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
3.06 kB
import OAI.NumberTheory.TwoPoint.Fourier.MajorArcRational
import OAI.NumberTheory.TwoPoint.Fourier.MajorArcPerturbation
namespace OAI
/-! The full major-arc reduction to the short means supplied by MRT's
Dirichlet-polynomial argument. All residues, divided scales, shorter lengths,
and rounding errors remain explicit. -/
namespace TwoPointCorrelations
open Finset
open scoped Classical
lemma major_arc_character_distance (F : β„• β†’ β„‚) {q : β„•}
(Ο‡ : DirichletCharacter β„‚ q) (t : ℝ) (N : β„•) :
squaredDistance (twistByCharacter F Ο‡) (mrtArchimedeanTwist t) N =
squaredDistance F (characterTwist (conjugateCharacter Ο‡) t) N := by
unfold squaredDistance
apply sum_congr rfl
intro p _
simp only [twistByCharacter, mrtArchimedeanTwist, characterTwist,
conjugateCharacter_apply, map_mul, Complex.conj_conj, mul_assoc]
lemma MRTDistanceLowerBound.major_arc_character {F : β„• β†’ β„‚} {X H : β„•} {M : ℝ}
(hd : MRTDistanceLowerBound F X H M) (q : β„•) (hq : 0 < q)
(hqmax : (q : ℝ) ≀ mrtModulusCutoff X H)
(Ο‡ : DirichletCharacter β„‚ q) (t : ℝ) (ht : |t| ≀ (X : ℝ)) :
M ≀ squaredDistance (twistByCharacter F Ο‡) (mrtArchimedeanTwist t) X := by
rw [major_arc_character_distance]
exact hd q hq hqmax (conjugateCharacter Ο‡) t ht
theorem major_arc_reduction {ΞΉ : Type*} (J : Finset ΞΉ)
(P : ΞΉ β†’ Finset β„•) (hP : βˆ€ j ∈ J, βˆ€ p ∈ P j, p.Prime)
(F : β„• β†’ β„‚)
(hF : βˆ€ a b, 0 < a β†’ 0 < b β†’ F (a * b) = F a * F b)
(hFb : OneBounded F) (q X H : β„•) [NeZero q] (hH : 0 < H)
(r : β„€) (Ξ² W K : ℝ) (hK : 0 ≀ K)
(hΞ² : |Ξ²| ≀ W / ((H : ℝ) * q))
(havoid : βˆ€ b : ZMod q, mrtPrimeAvoids (J.biUnion P) (b.val.gcd q))
(hshort : βˆ€ (h : β„•), 1 ≀ h β†’ h ≀ H β†’
βˆ€ (b : ZMod q) (Ο‡ : DirichletCharacter β„‚ (q / b.val.gcd q)),
(b.val.gcd q : ℝ) * shortExponentialIntegral
(mrtTypicalCoefficient J P (twistByCharacter F Ο‡))
(X / b.val.gcd q + 1) (h / b.val.gcd q + 1) 0 + X ≀ K) :
shortExponentialIntegral (mrtTypicalCoefficient J P F) X H
((r : ℝ) / q + Ξ²) ≀ ((q : ℝ) + 2 * Real.pi * W) * K := by
have hprefix (h : β„•) (hh : 1 ≀ h) (hhH : h ≀ H) :
shortExponentialIntegral (mrtTypicalCoefficient J P F) X h ((r : ℝ) / q) ≀
(q : ℝ) * K :=
major_arc_typical_rational_bound J P hP F hF hFb q X h r K havoid (hshort h hh hhH)
have hHr : (0 : ℝ) < H := by exact_mod_cast hH
have hqr : (0 : ℝ) < q := by exact_mod_cast NeZero.pos q
have hb : |Ξ²| * ((H : ℝ) * q) ≀ W :=
(le_div_iffβ‚€ (mul_pos hHr hqr)).mp hΞ²
calc
_ ≀ (1 + 2 * Real.pi * |Ξ²| * H) * ((q : ℝ) * K) :=
major_arc_integral_perturbation_uniform _ X H hH _ Ξ² _
(mul_nonneg hqr.le hK) hprefix
_ = (q : ℝ) * K + (2 * Real.pi * K) * (|Ξ²| * ((H : ℝ) * q)) := by ring
_ ≀ (q : ℝ) * K + (2 * Real.pi * K) * W :=
add_le_add le_rfl (mul_le_mul_of_nonneg_left hb (by positivity))
_ = _ := by ring
end TwoPointCorrelations
end OAI