cfahlgren1/math / lean /OAI /NumberTheory /PrimeGaps /ZeroFreeBounds.lean
cfahlgren1's picture
download
raw
25 kB
import OAI.NumberTheory.PrimeGaps.SiegelBounds
namespace OAI
namespace LargePrimeGaps
section
open Complex Filter Topology Set MeasureTheory Finset
lemma periodic_sum_norm_le_mul {f : ℕ → ℂ} {q : ℕ} {D : ℝ} (hq : 0<q) (hD : 0≤D)
(hp : ∀ n,f (q+n)=f n) (hz : ∑ n∈range q,f n=0)
(hb : ∀ n,‖f n‖≤D) (N : ℕ) : ‖∑ n∈range N,f n‖≤q*D := by
induction N using Nat.strong_induction_on with
| h N ih =>
by_cases hN : N<q
· calc
_ ≤ ∑ n∈range N,‖f n‖ := norm_sum_le _ _
_ ≤ ∑ _n∈range N,D := sum_le_sum (fun n _ => hb n)
_ = N*D := by simp
_ ≤ q*D := mul_le_mul_of_nonneg_right (by exact_mod_cast hN.le) hD
· have he : q+(N-q)=N := Nat.add_sub_of_le (not_lt.mp hN)
rw [←he,sum_range_add,hz,zero_add]
simp_rw [hp]
exact ih _ (Nat.sub_lt (lt_of_lt_of_le hq (not_lt.mp hN)) hq)
noncomputable def characterMean {q : ℕ} (χ : DirichletCharacter ℂ q) : ℂ :=
(∑ n∈range q,χ (n : ZMod q))/(q:ℂ)
lemma characterMean_norm_le {q : ℕ} [NeZero q] (χ : DirichletCharacter ℂ q) :
‖characterMean χ‖≤1 := by
rw [characterMean,norm_div,Complex.norm_natCast]
apply (div_le_one (by exact_mod_cast NeZero.pos q : (0:ℝ)<q)).mpr
calc
_ ≤ ∑ n∈range q,‖χ (n : ZMod q)‖ := norm_sum_le _ _
_ ≤ ∑ _n∈range q,(1:ℝ) := sum_le_sum (fun n _ => χ.norm_le_one _)
_ = q := by simp
lemma characterMean_eq_zero {q : ℕ} [NeZero q] {χ : DirichletCharacter ℂ q} (hχ : χ≠1) :
characterMean χ=0 := by simp [characterMean,char_sum_range_zero hχ]
lemma discrepancy_characterMean_bound {q : ℕ} [NeZero q] (χ : DirichletCharacter ℂ q)
{t : ℝ} (ht : 1≤t) :
‖seriesDiscrepancy (positiveCoefficients (fun n => χ (n : ZMod q))) (characterMean χ) t‖≤2*q+3 := by
let c := characterMean χ
have hc : ‖c‖≤1 := characterMean_norm_le χ
have hb (n : ℕ) : ‖χ (n : ZMod q)-c‖≤2 := (norm_sub_le _ _).trans (by linarith [χ.norm_le_one (n : ZMod q)])
have hz : ∑ n∈range q,(χ (n : ZMod q)-c)=0 := by
rw [sum_sub_distrib,sum_const,card_range,nsmul_eq_mul]
dsimp [c,characterMean]
have hq : (q:ℂ)≠0 := by exact_mod_cast NeZero.ne q
field_simp
ring
have hr := periodic_sum_norm_le_mul (NeZero.pos q) (by norm_num : (0:ℝ)≤2)
(f:=fun n => χ (n : ZMod q)-c) (by intro n; simp) hz hb (⌊t⌋₊+1)
have he : ∑ n∈range (⌊t⌋₊+1),(χ (n : ZMod q)-c) =
χ (0 : ZMod q)-c+ ∑ n∈Icc 1 ⌊t⌋₊,(χ (n : ZMod q)-c) := by
rw [Nat.range_succ_eq_Icc_zero,←Finset.insert_Icc_add_one_left_eq_Icc (Nat.zero_le ⌊t⌋₊)]
simp
ring
have ht0 : 0≤t := by linarith
have hfloor : ‖(⌊t⌋₊:ℂ)-(t:ℂ)‖≤1 := by
rw [←Complex.ofReal_natCast,←Complex.ofReal_sub,Complex.norm_real,Real.norm_eq_abs,
abs_of_nonpos (sub_nonpos.mpr (Nat.floor_le ht0))]
have := Nat.lt_floor_add_one t
linarith
have heq : seriesDiscrepancy (positiveCoefficients (fun n => χ (n : ZMod q))) c t =
(∑ n∈range (⌊t⌋₊+1),(χ (n : ZMod q)-c))-(χ 0-c)+c*((⌊t⌋₊:ℂ)-(t:ℂ)) := by
rw [he]
simp only [seriesDiscrepancy,sum_positiveCoefficients,sum_sub_distrib,sum_const,Nat.card_Icc,
Nat.add_sub_cancel,nsmul_eq_mul]
ring
rw [heq]
calc
_ ≤ ‖∑ n∈range (⌊t⌋₊+1),(χ (n : ZMod q)-c)‖+‖χ 0-c‖+‖c*((⌊t⌋₊:ℂ)-(t:ℂ))‖ :=
(norm_add_le _ _).trans (add_le_add (norm_sub_le _ _) le_rfl)
_ ≤ (q:ℝ)*2+2+1 := by
gcongr
· simpa using hb 0
· rw [norm_mul]; exact (mul_le_mul hc hfloor (norm_nonneg _) zero_le_one).trans_eq (by ring)
_ = _ := by ring
lemma LFunction_regularSeries_characterMean {q : ℕ} [NeZero q] (χ : DirichletCharacter ℂ q)
{s : ℂ} (hs : 1<s.re) :
χ.LFunction s = regularSeries (positiveCoefficients (fun n => χ (n : ZMod q))) (characterMean χ) s+
characterMean χ/(s-1) := by
rw [regularSeries_eq_LSeries_sub (positiveCoefficients_norm_le (fun n => χ.norm_le_one _))
(by positivity : (0:ℝ)≤2*q+3) (fun t ht => discrepancy_characterMean_bound χ ht.le) hs,
sub_add_cancel,LSeries_positiveCoefficients,←χ.LFunction_eq_LSeries hs]
lemma LFunction_deriv_norm_small_power {ε : ℝ} (hε : 0<ε) (hε1 : ε≤1/2) :
∃ K : ℝ,0<K ∧ ∀ (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q),χ≠1 →
∀ s : ℂ,1-ε/2 ≤ s.re → ‖deriv χ.LFunction s‖≤K*((q+2)*(‖s‖+2))^(2*ε) := by
obtain ⟨K,hK,h⟩ := regularSeries_deriv_norm_small_power hε hε1
refine ⟨K,hK,?_⟩
intro q _ χ hχ s hs
have he : regularSeries (positiveCoefficients (fun n => χ (n : ZMod q))) 0 =ᶠ[𝓝 s] χ.LFunction := by
filter_upwards [(continuous_re.tendsto s).eventually (lt_mem_nhds (by linarith : 0<s.re))] with z hz
exact regularSeries_character_eq hχ hz
rw [←he.deriv_eq]
have hb := h _ 0 (q+1) (positiveCoefficients_zero _) (positiveCoefficients_norm_le (fun n => χ.norm_le_one _))
(by simp) (by positivity) (fun t _ => discrepancy_character_bound hχ t) s hs
convert hb using 1
congr 3
ring
noncomputable def characterRegular {q : ℕ} (χ : DirichletCharacter ℂ q) : ℂ → ℂ :=
regularSeries (positiveCoefficients (fun n => χ (n : ZMod q))) (characterMean χ)
lemma character_line_bounds {ε : ℝ} (hε : 0<ε) (hε1 : ε≤1/2) :
∃ K : ℝ,1≤K ∧ ∀ (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q) (t : ℝ),
(∀ s : ℂ,1 ≤ s.re → ‖s‖+2≤4*(|t|+2) →
‖characterRegular χ s‖≤K*((q+2)*(|t|+2))^(2*ε)) ∧
(χ≠1 → ∀ s : ℂ,1 ≤ s.re → ‖s‖+2≤4*(|t|+2) →
‖deriv χ.LFunction s‖≤K*((q+2)*(|t|+2))^(2*ε)) := by
obtain ⟨K₀,hK₀,h₀⟩ := regularSeries_norm_small_power hε hε1
obtain ⟨K₁,hK₁,h₁⟩ := LFunction_deriv_norm_small_power hε hε1
let K := 1+K₀*8^(2*ε)+K₁*4^(2*ε)
have hp₀ : 0≤K₀*8^(2*ε) := by positivity
have hp₁ : 0≤K₁*4^(2*ε) := by positivity
have hK : 1≤K := by dsimp [K]; linarith
refine ⟨K,hK,?_⟩
intro q _ χ t
have hq : (0:ℝ)≤q := Nat.cast_nonneg q
have ht : 0≤|t| := abs_nonneg t
have hp : 0≤((q:ℝ)+2)*(|t|+2) := by positivity
have he : 0≤2*ε := by positivity
constructor
· intro s hs hn
have hb := h₀ _ (characterMean χ) (2*q+3) (positiveCoefficients_zero _)
(positiveCoefficients_norm_le (fun n => χ.norm_le_one _)) (characterMean_norm_le χ)
(by positivity) (fun t ht => discrepancy_characterMean_bound χ ht) s (by linarith)
change ‖characterRegular χ s‖≤_ at hb
have hb' : (2*q+3+1)*(‖s‖+2)≤8*(((q:ℝ)+2)*(|t|+2)) := by
nlinarith [mul_nonneg (show (0:ℝ)≤2*q+4 by positivity) (sub_nonneg.mpr hn)]
calc
_ ≤ K₀*((2*q+3+1)*(‖s‖+2))^(2*ε) := hb
_ ≤ K₀*(8*(((q:ℝ)+2)*(|t|+2)))^(2*ε) :=
mul_le_mul_of_nonneg_left (Real.rpow_le_rpow (by positivity) hb' he) hK₀.le
_ = (K₀*8^(2*ε))*(((q:ℝ)+2)*(|t|+2))^(2*ε) := by rw [Real.mul_rpow (by norm_num) hp]; ring
_ ≤ _ := by gcongr; dsimp [K]; linarith
· intro hχ s hs hn
have hb := h₁ q χ hχ s (by linarith)
have hb' : (q+2)*(‖s‖+2)≤4*(((q:ℝ)+2)*(|t|+2)) := by
nlinarith [mul_nonneg (show (0:ℝ)≤q+2 by positivity) (sub_nonneg.mpr hn)]
calc
_ ≤ K₁*((q+2)*(‖s‖+2))^(2*ε) := hb
_ ≤ K₁*(4*(((q:ℝ)+2)*(|t|+2)))^(2*ε) :=
mul_le_mul_of_nonneg_left (Real.rpow_le_rpow (by positivity) hb' he) hK₁.le
_ = (K₁*4^(2*ε))*(((q:ℝ)+2)*(|t|+2))^(2*ε) := by rw [Real.mul_rpow (by norm_num) hp]; ring
_ ≤ _ := by gcongr; dsimp [K]; linarith
lemma line_growth_lipschitz {f : ℂ → ℂ} {t D : ℝ} (hf : Differentiable ℂ f)
(hb : ∀ s : ℂ,1 ≤ s.re → ‖s‖+2≤4*(|t|+2) → ‖deriv f s‖≤D)
{z w : ℂ} (hz : 1 ≤ z.re) (hw : 1 ≤ w.re)
(hzn : ‖z‖+2≤4*(|t|+2)) (hwn : ‖w‖+2≤4*(|t|+2)) :
‖f z-f w‖≤D*‖z-w‖ := by
let S := {s : ℂ | 1 ≤ s.re} ∩ Metric.closedBall 0 (4*(|t|+2)-2)
have hS : Convex ℝ S := (convex_halfSpace_re_ge 1).inter (convex_closedBall 0 _)
apply Convex.norm_image_sub_le_of_norm_deriv_le (s:=S) (fun z _ => hf z) ?_ hS
⟨hw,by simp [Metric.mem_closedBall,dist_zero_right]; linarith⟩
⟨hz,by simp [Metric.mem_closedBall,dist_zero_right]; linarith⟩
intro s hs
exact hb s hs.1 (by have := hs.2; simp only [Metric.mem_closedBall,dist_zero_right] at this; linarith)
end
lemma three_four_one_lower {a D E : ℝ} (ha : 0≤a) (hD : 1≤D) (hE : 1≤E)
(h : ∀ δ : ℝ,0<δ → δ≤1 → 1≤(2*D/δ)^3*(a+D*δ)^4*E) :
1/(256*D^6*E)≤a := by
have hD0 : 0<D := by linarith
have hE0 : 0<E := by linarith
let δ := 1/(256*D^7*E)
have hδ : 0<δ := by dsimp [δ]; positivity
have hδ1 : δ≤1 := by
have hp : (1:ℝ)≤D^7 := one_le_pow₀ hD
have hp' : (1:ℝ)≤D^7*E := one_le_mul_of_one_le_of_one_le hp hE
dsimp [δ]
apply (div_le_one (by positivity)).mpr
linarith
have he : 1/(256*D^6*E)=D*δ := by dsimp [δ]; field_simp
rw [he]
by_contra! han
have hb : a+D*δ≤2*D*δ := by linarith
have hh := h δ hδ hδ1
have hu : (2*D/δ)^3*(a+D*δ)^4*E≤(2*D/δ)^3*(2*D*δ)^4*E := by gcongr
have hv : (2*D/δ)^3*(2*D*δ)^4*E=1/2 := by dsimp [δ]; field_simp; norm_num
rw [hv] at hu
linarith
open Complex Filter Topology Finset
lemma line_sample_norm {δ t u : ℝ} (hδ : 0≤δ) (hδ1 : δ≤1) (hu : |u|≤2*|t|) :
‖(1:ℂ)+δ+I*u‖+2≤4*(|t|+2) := by
have h := Complex.norm_le_abs_re_add_abs_im ((1:ℂ)+δ+I*u)
simp only [Complex.add_re,Complex.one_re,Complex.ofReal_re,Complex.mul_re,Complex.I_re,
Complex.I_im,Complex.ofReal_im,mul_zero,zero_mul,sub_self,add_zero,Complex.add_im,
Complex.one_im,Complex.mul_im,one_mul,zero_add] at h
rw [abs_of_nonneg (by linarith : (0:ℝ)≤1+δ)] at h
linarith [abs_nonneg t]
lemma LFunction_norm_le_regular_add_pole {q : ℕ} [NeZero q] (χ : DirichletCharacter ℂ q)
{s : ℂ} (hs : 1<s.re) :
‖χ.LFunction s‖≤‖characterRegular χ s‖+1/‖s-1‖ := by
rw [LFunction_regularSeries_characterMean χ hs]
apply (norm_add_le _ _).trans
dsimp [characterRegular]
apply add_le_add le_rfl
rw [norm_div]
exact div_le_div_of_nonneg_right (characterMean_norm_le χ) (norm_nonneg _)
lemma characterRegular_eq_nonprincipal {q : ℕ} [NeZero q] {χ : DirichletCharacter ℂ q}
(hχ : χ≠1) {s : ℂ} (hs : 0<s.re) : characterRegular χ s=χ.LFunction s := by
rw [characterRegular,characterMean_eq_zero hχ,regularSeries_character_eq hχ hs]
lemma nonprincipal_line_lower_aux {q : ℕ} [NeZero q] {χ : DirichletCharacter ℂ q}
(hχ : χ≠1) {t c K P : ℝ} (hc : 0<c) (_hc1 : c≤1) (hK : 1≤K) (hP : 1≤P)
(hr : ∀ ψ : DirichletCharacter ℂ q,∀ s : ℂ,1 ≤ s.re → ‖s‖+2≤4*(|t|+2) →
‖characterRegular ψ s‖≤K*P)
(hd : ∀ s : ℂ,1 ≤ s.re → ‖s‖+2≤4*(|t|+2) → ‖deriv χ.LFunction s‖≤K*P)
(hsi : χ^2=1 → c/P≤‖χ.LFunction 1‖) :
min (c/2) (1/(256*K^6*(K+K/c)))/P^8≤‖χ.LFunction (1+I*t)‖ := by
have hK0 : 0<K := by linarith
have hP0 : 0<P := by linarith
have hhc : 0<K+K/c := by positivity
have hKP : 1≤K*P := one_le_mul_of_one_le_of_one_le hK hP
have hn0 : ‖(1:ℂ)+I*t‖+2≤4*(|t|+2) := by
simpa using line_sample_norm (t:=t) (u:=t) (δ:=0) le_rfl zero_le_one (by linarith [abs_nonneg t])
have hn1 : ‖(1:ℂ)‖+2≤4*(|t|+2) := by norm_num; linarith [abs_nonneg t]
by_cases hsmall : χ^2=1 ∧ |t|≤c/(2*K*P^2)
· have hdiff := line_growth_lipschitz (DirichletCharacter.differentiable_LFunction hχ) hd
(z:=1) (w:=1+I*t) (by simp) (by simp) hn1 hn0
have hnorm : ‖(1:ℂ)-(1+I*t)‖=|t| := by
rw [show (1:ℂ)-(1+I*t)=-(I*t) by ring,norm_neg,norm_mul,Complex.norm_I,one_mul,
Complex.norm_real,Real.norm_eq_abs]
rw [hnorm] at hdiff
have hdiff' : ‖χ.LFunction 1-χ.LFunction (1+I*t)‖≤c/(2*P) := by
calc
_ ≤ K*P*|t| := hdiff
_ ≤ K*P*(c/(2*K*P^2)) := mul_le_mul_of_nonneg_left hsmall.2 (by positivity)
_ = _ := by field_simp
have hval : c/(2*P)≤‖χ.LFunction (1+I*t)‖ := by
have htri := norm_add_le (χ.LFunction 1-χ.LFunction (1+I*t)) (χ.LFunction (1+I*t))
rw [sub_add_cancel] at htri
have he : c/P=2*(c/(2*P)) := by ring
have hsi' := hsi hsmall.1
rw [he] at hsi'
linarith
have hP8 : P≤P^8 := by simpa using pow_le_pow_right₀ hP (show (1:ℕ)≤8 by norm_num)
calc
_ ≤ (c/2)/P^8 := div_le_div_of_nonneg_right (min_le_left _ _) (by positivity)
_ ≤ (c/2)/P := div_le_div_of_nonneg_left (by positivity) hP0 hP8
_ = c/(2*P) := by ring
_ ≤ _ := hval
· have hLo : 1/(256*(K*P)^6*((K+K/c)*P^2))≤‖χ.LFunction (1+I*t)‖ := by
apply three_four_one_lower (norm_nonneg _) hKP
(one_le_mul_of_one_le_of_one_le (by linarith [div_pos hK0 hc]) (one_le_pow₀ hP))
intro δ hδ hδ1
have hrδ : ((1:ℂ)+δ+I*t).re=1+δ := by simp
have hrδ2 : ((1:ℂ)+δ+2*I*t).re=1+δ := by simp
have hnδ := line_sample_norm hδ.le hδ1 (t:=t) (u:=t) (by linarith [abs_nonneg t])
have hnδ2 : ‖(1:ℂ)+δ+2*I*t‖+2≤4*(|t|+2) := by
simpa only [show I*((2*t:ℝ):ℂ)=2*I*t by push_cast; ring] using
line_sample_norm hδ.le hδ1 (t:=t) (u:=2*t) (by rw [abs_mul]; norm_num)
have hL0 : ‖DirichletCharacter.LFunctionTrivChar q (1+δ)‖≤2*(K*P)/δ := by
have hn : ‖(1:ℂ)+δ‖+2≤4*(|t|+2) := by
simpa using line_sample_norm hδ.le hδ1 (t:=t) (u:=0) (by simp)
have hreg := hr (1:DirichletCharacter ℂ q) (1+δ) (by simp; linarith) hn
have hp := LFunction_norm_le_regular_add_pole (1:DirichletCharacter ℂ q)
(s:=1+δ) (by simp; linarith)
have hden : ‖(1:ℂ)+δ-1‖=δ := by simp [Complex.norm_real,Real.norm_eq_abs,abs_of_pos hδ]
rw [hden] at hp
change ‖DirichletCharacter.LFunction (1:DirichletCharacter ℂ q) (1+δ)‖≤_
apply (hp.trans (add_le_add hreg le_rfl)).trans
apply (le_div_iff₀ hδ).mpr
have hd : (K*P)*δ≤K*P := mul_le_of_le_one_right (by positivity) hδ1
field_simp
nlinarith
have hLχ : ‖χ.LFunction (1+δ+I*t)‖≤‖χ.LFunction (1+I*t)‖+(K*P)*δ := by
have hl := line_growth_lipschitz (DirichletCharacter.differentiable_LFunction hχ) hd
(z:=1+δ+I*t) (w:=1+I*t) (by simp; linarith) (by simp) hnδ hn0
have hden : ‖(1:ℂ)+δ+I*t-(1+I*t)‖=δ := by
rw [show (1:ℂ)+δ+I*t-(1+I*t)=(δ:ℂ) by ring,Complex.norm_real,Real.norm_eq_abs,abs_of_pos hδ]
rw [hden] at hl
have ht := norm_add_le (χ.LFunction (1+δ+I*t)-χ.LFunction (1+I*t)) (χ.LFunction (1+I*t))
rw [sub_add_cancel] at ht
linarith
have hL2 : ‖(χ^2).LFunction (1+δ+2*I*t)‖≤(K+K/c)*P^2 := by
by_cases hχ2 : χ^2=1
· have ht : c/(2*K*P^2)< |t| := lt_of_not_ge (fun ht => hsmall ⟨hχ2,ht⟩)
have ht0 : 0< |t| := (by positivity : 0<c/(2*K*P^2)).trans ht
have hp := LFunction_norm_le_regular_add_pole (χ^2) (s:=1+δ+2*I*t) (by rw [hrδ2]; linarith)
have hn : 2*|t|≤‖(1:ℂ)+δ+2*I*t-1‖ := by
have h := Complex.abs_im_le_norm ((1:ℂ)+δ+2*I*t-1)
simpa [abs_mul] using h
have hfrac : 1/‖(1:ℂ)+δ+2*I*t-1‖≤K*P^2/c := by
apply (div_le_div_of_nonneg_left zero_le_one (by positivity : 0<2*|t|) hn).trans
apply (div_le_iff₀ (by positivity : 0<2*|t|)).mpr
have ht' := (div_lt_iff₀ (by positivity : 0<2*K*P^2)).mp ht
rw [div_mul_eq_mul_div]
apply (le_div_iff₀ hc).mpr
nlinarith
have hreg := hr (χ^2) (1+δ+2*I*t) (by rw [hrδ2]; linarith) hnδ2
have hP2 : P≤P^2 := by nlinarith
have h := hp.trans (add_le_add hreg hfrac)
apply h.trans
calc
K*P+K*P^2/c ≤ K*P^2+K*P^2/c := add_le_add (mul_le_mul_of_nonneg_left hP2 hK0.le) le_rfl
_ = _ := by ring
· have hreg := hr (χ^2) (1+δ+2*I*t) (by rw [hrδ2]; linarith) hnδ2
rw [characterRegular_eq_nonprincipal hχ2 (by rw [hrδ2]; linarith)] at hreg
have hP2 : P≤P^2 := by nlinarith
exact hreg.trans (by nlinarith [mul_le_mul_of_nonneg_left hP2 hK0.le,div_pos hK0 hc])
have hprod := χ.norm_LFunction_product_ge_one hδ t
simp only [norm_mul,norm_pow] at hprod
exact hprod.trans (by gcongr)
calc
_ ≤ (1/(256*K^6*(K+K/c)))/P^8 := div_le_div_of_nonneg_right (min_le_right _ _) (by positivity)
_ = 1/(256*(K*P)^6*((K+K/c)*P^2)) := by field_simp
_ ≤ _ := hLo
lemma nonprincipal_line_lower {ε : ℝ} (hε : 0<ε) (hε1 : ε≤1) :
∃ c : ℝ,0<c ∧ ∀ (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q),
χ.IsPrimitive → χ≠1 → ∀ t : ℝ,
c*(((q:ℝ)+2)*(|t|+2))^(-ε)≤‖χ.LFunction (1+I*t)‖ := by
obtain ⟨K,hK,hgrowth⟩ := character_line_bounds (by linarith : 0<ε/16) (by linarith : ε/16≤1/2)
obtain ⟨c₀,hc₀,hsiegel⟩ := quadratic_siegel (by linarith : 0<ε/8) (by linarith : ε/8≤1)
let c := min c₀ 1
have hc : 0<c := lt_min hc₀ zero_lt_one
have hc1 : c≤1 := min_le_right _ _
let d := min (c/2) (1/(256*K^6*(K+K/c)))
have hK0 : 0<K := by linarith
have hd : 0<d := by dsimp [d]; positivity
refine ⟨d,hd,?_⟩
intro q _ χ hχp hχ t
let X : ℝ := ((q:ℝ)+2)*(|t|+2)
let P : ℝ := X^(ε/8)
have hX : 1≤X := by dsimp [X]; nlinarith [Nat.cast_nonneg (α:=ℝ) q,abs_nonneg t]
have hX0 : 0<X := by linarith
have hP : 1≤P := Real.one_le_rpow hX (by positivity)
have he : 2*(ε/16)=ε/8 := by ring
have hsi : χ^2=1 → c/P≤‖χ.LFunction 1‖ := by
intro hχ2
have hq : (q:ℝ)+1≤X := by dsimp [X]; nlinarith [Nat.cast_nonneg (α:=ℝ) q,abs_nonneg t]
calc
c/P = c*X^(-(ε/8)) := by rw [Real.rpow_neg hX0.le]; rfl
_ ≤ c₀*((q:ℝ)+1)^(-(ε/8)) := by
apply mul_le_mul (min_le_left _ _) (Real.rpow_le_rpow_of_nonpos (by positivity) hq (by linarith))
(Real.rpow_nonneg hX0.le _) hc₀.le
_ ≤ _ := hsiegel q χ hχp hχ hχ2
have hh := nonprincipal_line_lower_aux hχ hc hc1 hK hP
(fun ψ s hs hn => by simpa only [he] using (hgrowth q ψ t).1 s hs hn)
(fun s hs hn => by simpa only [he] using (hgrowth q χ t).2 hχ s hs hn) hsi
have hP8 : P^8=X^ε := by
dsimp [P]
rw [←Real.rpow_mul_natCast hX0.le]
congr 1
norm_num
change d/P^8≤_ at hh
rw [hP8] at hh
change d*X^(-ε)≤_
simpa only [Real.rpow_neg hX0.le,div_eq_mul_inv] using hh
lemma character_interior_lower {q : ℕ} [NeZero q] (χ : DirichletCharacter ℂ q)
{t K P δ : ℝ} (hK : 1≤K) (hP : 1≤P) (hδ : 0<δ) (hδ1 : δ≤1)
(hr : ∀ ψ : DirichletCharacter ℂ q,∀ s : ℂ,1 ≤ s.re → ‖s‖+2≤4*(|t|+2) →
‖characterRegular ψ s‖≤K*P) :
δ/(2*K*P)≤‖χ.LFunction (1+δ+I*t)‖ := by
have hKP : 1≤K*P := one_le_mul_of_one_le_of_one_le hK hP
have hKP0 : 0<K*P := by linarith
have hb (ψ : DirichletCharacter ℂ q) (u : ℝ) (hu : |u|≤2*|t|) :
‖ψ.LFunction (1+δ+I*u)‖≤2*K*P/δ := by
have hp := LFunction_norm_le_regular_add_pole ψ (s:=1+δ+I*u) (by simp; linarith)
have hn : δ≤‖(1:ℂ)+δ+I*u-1‖ := by
simpa using Complex.re_le_norm ((1:ℂ)+δ+I*u-1)
have hreg := hr ψ (1+δ+I*u) (by simp; linarith) (line_sample_norm hδ.le hδ1 hu)
have hfrac := div_le_div_of_nonneg_left zero_le_one hδ hn
apply (hp.trans (add_le_add hreg hfrac)).trans
apply (le_div_iff₀ hδ).mpr
have hd := mul_le_of_le_one_right hKP0.le hδ1
have he : (K*P+1/δ)*δ=K*P*δ+1 := by field_simp
rw [he]
nlinarith
have h0 : ‖DirichletCharacter.LFunctionTrivChar q (1+δ)‖≤2*K*P/δ := by
simpa using hb (1:DirichletCharacter ℂ q) 0 (by simp)
have h2 : ‖(χ^2).LFunction (1+δ+2*I*t)‖≤2*K*P/δ := by
simpa only [show I*((2*t:ℝ):ℂ)=2*I*t by push_cast; ring] using hb (χ^2) (2*t) (by rw [abs_mul]; norm_num)
have hh := χ.norm_LFunction_product_ge_one hδ t
simp only [norm_mul,norm_pow] at hh
have hu : 1≤(2*K*P/δ)^3*‖χ.LFunction (1+δ+I*t)‖^4*(2*K*P/δ) := hh.trans (by gcongr)
have hp : (1:ℝ)^4≤((2*K*P/δ)*‖χ.LFunction (1+δ+I*t)‖)^4 := by convert hu using 1 <;> ring
have hv := le_of_pow_le_pow_left₀ (by norm_num : (4:ℕ)≠0) (by positivity) hp
apply (div_le_iff₀ (by positivity : 0<2*K*P)).mpr
have he : (2*K*P/δ)*‖χ.LFunction (1+δ+I*t)‖=(‖χ.LFunction (1+δ+I*t)‖*(2*K*P))/δ := by ring
rw [he] at hv
simpa only [one_mul] using (le_div_iff₀ hδ).mp hv
lemma nonprincipal_strip_lower_aux {q : ℕ} [NeZero q] {χ : DirichletCharacter ℂ q}
(hχ : χ≠1) {t c K P δ : ℝ} (hc : 0<c) (hK : 1≤K) (hP : 1≤P)
(hδ : 0≤δ) (hδ1 : δ≤1)
(hr : ∀ ψ : DirichletCharacter ℂ q,∀ s : ℂ,1 ≤ s.re → ‖s‖+2≤4*(|t|+2) →
‖characterRegular ψ s‖≤K*P)
(hd : ∀ s : ℂ,1 ≤ s.re → ‖s‖+2≤4*(|t|+2) → ‖deriv χ.LFunction s‖≤K*P)
(hl : c/P≤‖χ.LFunction (1+I*t)‖) :
(c/(4*K^2))/P^3≤‖χ.LFunction (1+δ+I*t)‖ := by
have hK0 : 0<K := by linarith
have hP0 : 0<P := by linarith
by_cases hnear : δ≤c/(2*K*P^2)
· have hn0 : ‖(1:ℂ)+I*t‖+2≤4*(|t|+2) := by
simpa using line_sample_norm (t:=t) (u:=t) (δ:=0) le_rfl zero_le_one (by linarith [abs_nonneg t])
have hnδ := line_sample_norm hδ hδ1 (t:=t) (u:=t) (by linarith [abs_nonneg t])
have hdif := line_growth_lipschitz (DirichletCharacter.differentiable_LFunction hχ) hd
(z:=1+I*t) (w:=1+δ+I*t) (by simp) (by simp; linarith) hn0 hnδ
have hnorm : ‖(1:ℂ)+I*t-(1+δ+I*t)‖=δ := by
rw [show (1:ℂ)+I*t-(1+δ+I*t)=-(δ:ℂ) by ring,norm_neg,Complex.norm_real,Real.norm_eq_abs,abs_of_nonneg hδ]
rw [hnorm] at hdif
have hdb : ‖χ.LFunction (1+I*t)-χ.LFunction (1+δ+I*t)‖≤c/(2*P) := by
apply hdif.trans
calc
K*P*δ ≤ K*P*(c/(2*K*P^2)) := mul_le_mul_of_nonneg_left hnear (by positivity)
_ = _ := by field_simp
have htri := norm_add_le (χ.LFunction (1+I*t)-χ.LFunction (1+δ+I*t)) (χ.LFunction (1+δ+I*t))
rw [sub_add_cancel] at htri
have hva : c/(2*P)≤‖χ.LFunction (1+δ+I*t)‖ := by
have he : c/P=2*(c/(2*P)) := by ring
rw [he] at hl
linarith
apply le_trans ?_ hva
rw [div_div]
apply div_le_div_of_nonneg_left hc.le (by positivity)
have hP3 : P≤P^3 := by simpa using pow_le_pow_right₀ hP (show (1:ℕ)≤3 by norm_num)
have hK2 : 1≤K^2 := one_le_pow₀ hK
nlinarith [mul_le_mul_of_nonneg_left hP3 (show (0:ℝ)≤4*K^2 by positivity)]
· have hδ0 : 0<δ := (by positivity : 0<c/(2*K*P^2)).trans (lt_of_not_ge hnear)
apply le_trans ?_ (character_interior_lower χ hK hP hδ0 hδ1 hr)
calc
(c/(4*K^2))/P^3 = (c/(2*K*P^2))/(2*K*P) := by field_simp; norm_num
_ ≤ δ/(2*K*P) := div_le_div_of_nonneg_right (le_of_not_ge hnear) (by positivity)
lemma nonprincipal_strip_lower {ε : ℝ} (hε : 0<ε) (hε1 : ε≤1) :
∃ c : ℝ,0<c ∧ ∀ (q : ℕ) [NeZero q] (χ : DirichletCharacter ℂ q),
χ.IsPrimitive → χ≠1 → ∀ σ t : ℝ, 1≤σ → σ≤2 →
c*(((q:ℝ)+2)*(|t|+2))^(-ε)≤‖χ.LFunction (σ+I*t)‖ := by
obtain ⟨K,hK,hg⟩ := character_line_bounds (by linarith : 0<ε/6) (by linarith : ε/6≤1/2)
obtain ⟨c,hc,hl⟩ := nonprincipal_line_lower (by linarith : 0<ε/3) (by linarith : ε/3≤1)
have hK0 : 0<K := by linarith
refine ⟨c/(4*K^2),by positivity,?_⟩
intro q _ χ hχp hχ σ t hσ hσ2
let X : ℝ := ((q:ℝ)+2)*(|t|+2)
let P : ℝ := X^(ε/3)
have hX : 1≤X := by dsimp [X]; nlinarith [Nat.cast_nonneg (α:=ℝ) q,abs_nonneg t]
have hX0 : 0<X := by linarith
have hP : 1≤P := Real.one_le_rpow hX (by positivity)
have he : 2*(ε/6)=ε/3 := by ring
have hl' : c/P≤‖χ.LFunction (1+I*t)‖ := by
have hh := hl q χ hχp hχ t
change c*X^(-(ε/3))≤_ at hh
change c/X^(ε/3)≤_
simpa only [Real.rpow_neg hX0.le,div_eq_mul_inv] using hh
have hb := nonprincipal_strip_lower_aux hχ hc hK hP (δ:=σ-1) (by linarith) (by linarith)
(fun ψ s hs hn => by simpa only [he] using (hg q ψ t).1 s hs hn)
(fun s hs hn => by simpa only [he] using (hg q χ t).2 hχ s hs hn) hl'
have hP3 : P^3=X^ε := by dsimp [P]; rw [←Real.rpow_mul_natCast hX0.le]; congr 1; norm_num
rw [hP3] at hb
have hs : (1:ℂ)+((σ-1:ℝ):ℂ)+I*t=(σ:ℂ)+I*t := by push_cast; ring
rw [hs] at hb
change (c/(4*K^2))*X^(-ε)≤_
simpa only [Real.rpow_neg hX0.le,div_eq_mul_inv] using hb
end LargePrimeGaps
end OAI

Xet Storage Details

Size:
25 kB
·
Xet hash:
204e2ea310452d026c64f50c0379733f2ae9aa39d5efb34a8e7428b5ddb7348b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.