goldbach-spectral-bridge
Li and Liu's GRH + S ⇒ Goldbach in Lean, checked against the paper by Comparator: clean it up together, and settle S
| 1 | module |
| 2 | |
| 3 | public import ConditionalGoldbach.Proofs.VariableQuadratic |
| 4 | public import ConditionalGoldbach.Proofs.ComponentNormBounds |
| 5 | |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open Set |
| 11 | namespace ConditionalGoldbach |
| 12 | |
| 13 | lemma spectralScale_div_sqrt_width_eq (N : ℕ) (h : ℕ → ℝ) |
| 14 | (hN : 0<(N:ℝ)) (hS : 0<singularSeries N) (hlog : 0<Real.log N) |
| 15 | (hh : 0<h N) (hwidth : zeroFreeWidth N h<1) : |
| 16 | spectralScale N/(2*Real.sqrt (zeroFreeWidth N h*(1-zeroFreeWidth N h)))= |
| 17 | singularSeries N/(2*h N*Real.sqrt (1-zeroFreeWidth N h)) := by |
| 18 | have hη : 0<zeroFreeWidth N h := by unfold zeroFreeWidth; positivity |
| 19 | have hδ := spectralScale_pos N hN hS hlog |
| 20 | have hid : (spectralScale N*h N)^2=singularSeries N^2*zeroFreeWidth N h := by |
| 21 | rw [mul_pow,spectralScale_sq N hN hS.le hlog.le] |
| 22 | unfold zeroFreeWidth |
| 23 | field_simp |
| 24 | have he : Real.sqrt (zeroFreeWidth N h)=spectralScale N*h N/singularSeries N := by |
| 25 | apply (sq_eq_sq₀ (Real.sqrt_nonneg _) (by positivity)).mp |
| 26 | rw [Real.sq_sqrt hη.le,div_pow] |
| 27 | apply (eq_div_iff (pow_ne_zero 2 hS.ne')).mpr |
| 28 | nlinarith [hid] |
| 29 | rw [Real.sqrt_mul hη.le,he] |
| 30 | have hs : Real.sqrt (1-zeroFreeWidth N h)≠0 := (Real.sqrt_pos.mpr (by linarith)).ne' |
| 31 | field_simp |
| 32 | |
| 33 | lemma spectralZeroFree_of_log_square_bound (a : ℝ) (N : ℕ) [NeZero N] |
| 34 | (ha0 : 0<a) (hN4 : 4≤N) (hGRH : GRH N) (ha : a<beta) |
| 35 | (hlog : 1≤Real.log N) (hS : singularSeries N≤N) |
| 36 | (C : ℝ) (hC : 1≤C) (hbound : ‖residualOperator ha N‖≤C*Real.log N^2) : |
| 37 | SpectralZeroFree N a ha ((1/(16*C^2))*singularSeries N/(N*Real.log N)) := by |
| 38 | let η : ℝ := (1/(16*C^2))*singularSeries N/(N*Real.log N) |
| 39 | have hn : 0<(N:ℝ) := by exact_mod_cast (show 0<N by omega) |
| 40 | have hln : 0<Real.log N := by linarith |
| 41 | have hSp := singularSeries_pos N |
| 42 | have hCp : 0<C := by linarith |
| 43 | have hη : 0<η := by dsimp [η]; positivity |
| 44 | have hηsmall : η≤1/16 := by |
| 45 | dsimp [η] |
| 46 | apply (div_le_iff₀ (mul_pos hn hln)).mpr |
| 47 | have h1 : 1/(16*C^2)≤1/16 := by |
| 48 | apply (div_le_iff₀ (by positivity : 0<16*C^2)).mpr |
| 49 | nlinarith |
| 50 | have hh := mul_le_mul_of_nonneg_right h1 hSp.le |
| 51 | nlinarith [mul_le_mul_of_nonneg_left hlog hn.le] |
| 52 | have hδ := spectralScale_pos N hn hSp hln |
| 53 | have hr : 0<Real.sqrt (η*(1-η)) := Real.sqrt_pos.mpr (mul_pos hη (by linarith)) |
| 54 | apply (variable_spectral_dictionary a ha0 N hN4 hGRH ha).2 η hη (by linarith) |>.mpr |
| 55 | apply hbound.trans |
| 56 | apply (le_div_iff₀ (by positivity : 0<2*Real.sqrt (η*(1-η)))).mpr |
| 57 | apply (sq_le_sq₀ (by positivity) hδ.le).mp |
| 58 | have hsqrt : Real.sqrt (η*(1-η))^2=η*(1-η) := Real.sq_sqrt (mul_pos hη (by linarith)).le |
| 59 | have he : (C*Real.log N^2)^2*4*η=spectralScale N^2/4 := by |
| 60 | rw [spectralScale_sq N hn hSp.le hln.le] |
| 61 | dsimp [η] |
| 62 | field_simp; ring |
| 63 | calc |
| 64 | _ = (C*Real.log N^2)^2*4*Real.sqrt (η*(1-η))^2 := by ring |
| 65 | _ = ((C*Real.log N^2)^2*4*η)*(1-η) := by rw [hsqrt]; ring |
| 66 | _ = (spectralScale N^2/4)*(1-η) := by rw [he] |
| 67 | _ ≤ spectralScale N^2 := by nlinarith [sq_nonneg (spectralScale N)] |
| 68 | |
| 69 | end ConditionalGoldbach |
