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.PoleCharacterKernel |
| 4 | public import ConditionalGoldbach.Proofs.PoleDiagonalComparison |
| 5 | public import ConditionalGoldbach.Proofs.PoleZeta |
| 6 | public import ConditionalGoldbach.Proofs.PoleModel |
| 7 | public import ConditionalGoldbach.Proofs.VariableStripOperators |
| 8 | |
| 9 | /-! A convergent scalar lower bound for the varying-strip residual operator. -/ |
| 10 | @[expose] public section |
| 11 | |
| 12 | set_option autoImplicit false |
| 13 | noncomputable section |
| 14 | open scoped BigOperators ComplexConjugate Topology |
| 15 | open Set Complex Filter |
| 16 | namespace ConditionalGoldbach |
| 17 | |
| 18 | def poleLowerExpression (N : ℕ) [NeZero N] (γ x : ℝ) : ℝ := |
| 19 | 2*Real.log N*((x:ℂ)^2*(characterKernel N (line x γ) (conj (line x γ))- |
| 20 | deriv (logDeriv riemannZeta) (1+2*(x:ℂ))- |
| 21 | continuedModel N (line x γ) (conj (line x γ)))).re / ((1+x)^2+γ^2) |
| 22 | |
| 23 | lemma poleLowerExpression_tendsto (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) (γ : ℝ) : |
| 24 | Tendsto (poleLowerExpression N γ) (𝓝[>] 0) |
| 25 | (𝓝 (2*poleCoefficient N γ*Real.log N/(1+γ^2))) := by |
| 26 | have hP := characterKernel_double_pole (N := N) γ |
| 27 | have hD := zeta_logDeriv_deriv_double_pole |
| 28 | have hK := continuedModel_double_pole N hN (by omega) γ |
| 29 | have hA := Complex.continuous_re.tendsto _ |>.comp ((hP.sub hD).sub hK) |
| 30 | have hB : Tendsto (fun x : ℝ => (1+x)^2+γ^2) (𝓝[>] 0) (𝓝 (1+γ^2)) := by |
| 31 | have hc : Continuous (fun x : ℝ => (1+x)^2+γ^2) := by fun_prop |
| 32 | simpa using (hc.tendsto 0).mono_left nhdsWithin_le_nhds |
| 33 | have hh := (hA.const_mul (2*Real.log N)).div hB (by positivity : 1+γ^2 ≠ 0) |
| 34 | convert hh using 1 |
| 35 | · funext x |
| 36 | unfold poleLowerExpression |
| 37 | congr 2 |
| 38 | rw [mul_sub,mul_sub] |
| 39 | rfl |
| 40 | · norm_num |
| 41 | ring |
| 42 | |
| 43 | lemma residual_real_lower_bound (N : ℕ) [NeZero N] {x : ℝ} (hx : 0 < x) (γ : ℝ) : |
| 44 | (characterKernel N (line x γ) (conj (line x γ))- |
| 45 | deriv (logDeriv riemannZeta) (1+2*(x:ℂ))- |
| 46 | continuedModel N (line x γ) (conj (line x γ))).re ≤ |
| 47 | ‖residual N (line x γ) (conj (line x γ))‖ := by |
| 48 | have hD := diagonalSeries_real_le_zeta_second N (w := 2*x) (by positivity) |
| 49 | have he : line x γ+conj (line x γ) = 2*(x:ℂ) := by simp [line]; ring |
| 50 | have hr := Complex.re_le_norm (residual N (line x γ) (conj (line x γ))) |
| 51 | simp only [residual,sub_re,he] at hr |
| 52 | push_cast at hD |
| 53 | simp only [sub_re,residual,he] |
| 54 | linarith |
| 55 | |
| 56 | lemma poleLowerExpression_le_scaled_operator (N : ℕ) [NeZero N] (hN4 : 4 ≤ N) |
| 57 | (hGRH : GRH N) (γ c : ℝ) (hc : 0 < c) (hcsmall : c < Real.log N/24) |
| 58 | (ha : alpha N c < beta) : |
| 59 | poleLowerExpression N γ (2*alpha N c) ≤ c*‖residualOperator ha N‖ := by |
| 60 | let a : ℝ := alpha N c |
| 61 | have hlog : 0 < Real.log N := Real.log_pos (by exact_mod_cast (show 1<N by omega)) |
| 62 | have ha0 : 0 < a := alpha_pos_at N hN4 c hc |
| 63 | have ha24 : a < 1/24 := by |
| 64 | dsimp [a,alpha] |
| 65 | exact (div_lt_iff₀ hlog).mpr (by linarith) |
| 66 | have hs : line (2*a) γ ∈ strip a beta := by |
| 67 | change a < (line (2*a) γ).re ∧ (line (2*a) γ).re < beta |
| 68 | simp only [line,add_re,ofReal_re,mul_re,I_re,I_im,ofReal_im,mul_zero,zero_mul,sub_zero,add_zero] |
| 69 | unfold beta |
| 70 | constructor <;> linarith |
| 71 | have hd : pointDistance a beta (line (2*a) γ) = a := by |
| 72 | unfold pointDistance beta |
| 73 | simp only [line,add_re,ofReal_re,mul_re,I_re,I_im,ofReal_im,mul_zero,zero_mul,sub_zero,add_zero] |
| 74 | rw [min_eq_left (by linarith)] |
| 75 | ring |
| 76 | have hp := residualOperator_pairing_at a N ha0 hN4 hGRH ha _ _ hs hs |
| 77 | have hb := residual_norm_le_of_kernel_pairing ha ha0.le N (residualOperator ha N) _ _ hs hs hp |
| 78 | rw [hd,show a*a=a^2 by ring,Real.sqrt_sq ha0.le] at hb |
| 79 | have hnorm : ‖1+line (2*a) γ‖^2 = (1+2*a)^2+γ^2 := by |
| 80 | rw [← Complex.normSq_eq_norm_sq] |
| 81 | simp [Complex.normSq_apply,line,pow_two] |
| 82 | have hden : 0 < (1+2*a)^2+γ^2 := by positivity |
| 83 | have hl := residual_real_lower_bound N (x := 2*a) (by positivity) γ |
| 84 | have hA : ((2*a:ℝ):ℂ)^2 = (((2*a)^2:ℝ):ℂ) := by simp |
| 85 | unfold poleLowerExpression |
| 86 | change 2*Real.log N*(((2*a:ℝ):ℂ)^2*(_)).re/((1+2*a)^2+γ^2) ≤ _ |
| 87 | rw [hA,Complex.re_ofReal_mul] |
| 88 | have hb' : ‖residual N (line (2*a) γ) (conj (line (2*a) γ))‖ ≤ |
| 89 | ‖residualOperator ha N‖*((1+2*a)^2+γ^2)/(8*a) := by |
| 90 | convert hb using 1 |
| 91 | rw [mul_assoc,← pow_two,hnorm] |
| 92 | calc |
| 93 | _ ≤ 2*Real.log N*((2*a)^2*‖residual N (line (2*a) γ) (conj (line (2*a) γ))‖)/((1+2*a)^2+γ^2) := by gcongr |
| 94 | _ ≤ 2*Real.log N*((2*a)^2*(‖residualOperator ha N‖*((1+2*a)^2+γ^2)/(8*a)))/((1+2*a)^2+γ^2) := by gcongr |
| 95 | _ = c*‖residualOperator ha N‖ := by |
| 96 | have hac : a*Real.log N = c := div_mul_cancel₀ c hlog.ne' |
| 97 | calc |
| 98 | _ = (a*Real.log N)*‖residualOperator ha N‖ := by field_simp; ring |
| 99 | _ = _ := by rw [hac] |
| 100 | |
| 101 | lemma residualOperator_pole_liminf (N : ℕ) [NeZero N] (hN : Even N) (hN4 : 4 ≤ N) |
| 102 | (hGRH : GRH N) (γ : ℝ) : |
| 103 | ∀ ε : ℝ, 0 < ε → ∃ c₀ : ℝ, 0 < c₀ ∧ ∀ c : ℝ, 0 < c → c < c₀ → |
| 104 | ∀ ha : alpha N c < beta, |
| 105 | 2*poleCoefficient N γ*Real.log N/(1+γ^2)-ε ≤ c*‖residualOperator ha N‖ := by |
| 106 | have hlog : 0 < Real.log N := Real.log_pos (by exact_mod_cast (show 1<N by omega)) |
| 107 | have hmap : Tendsto (fun c : ℝ => 2*alpha N c) (𝓝[>] 0) (𝓝[>] 0) := by |
| 108 | apply tendsto_nhdsWithin_iff.mpr |
| 109 | constructor |
| 110 | · have hc : Continuous (fun c : ℝ => 2*alpha N c) := by unfold alpha; fun_prop |
| 111 | simpa [alpha] using (hc.tendsto 0).mono_left nhdsWithin_le_nhds |
| 112 | · filter_upwards [self_mem_nhdsWithin] with c hc |
| 113 | exact mul_pos two_pos (alpha_pos_at N hN4 c hc) |
| 114 | have hF := (poleLowerExpression_tendsto N hN hN4 γ).comp hmap |
| 115 | intro ε hε |
| 116 | have he := hF.eventually (eventually_gt_nhds (sub_lt_self _ hε)) |
| 117 | obtain ⟨δ,hδ,hbound⟩ := mem_nhdsGT_iff_exists_Ioo_subset.mp he |
| 118 | refine ⟨min δ (Real.log N/24),lt_min hδ (by positivity),?_⟩ |
| 119 | intro c hc hcδ ha |
| 120 | exact (hbound ⟨hc,lt_of_lt_of_le hcδ (min_le_left _ _)⟩).le.trans |
| 121 | (poleLowerExpression_le_scaled_operator N hN4 hGRH γ c hc |
| 122 | (lt_of_lt_of_le hcδ (min_le_right _ _)) ha) |
| 123 | |
| 124 | end ConditionalGoldbach |
