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.FiniteMellinProjection |
| 4 | public import ConditionalGoldbach.Proofs.MellinCharacterShift |
| 5 | |
| 6 | /-! Character Mellin contour shifts requiring only four derivatives. -/ |
| 7 | public section |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | open scoped BigOperators ComplexConjugate Topology ContDiff |
| 12 | open MeasureTheory Filter Set Complex |
| 13 | namespace ConditionalGoldbach |
| 14 | |
| 15 | lemma finite_mellin_character_uniform_bound (N : ℕ) (hN : 4 ≤ N) (f : ℝ → ℝ) |
| 16 | (hf : ContDiff ℝ 4 f) (l r : ℝ) (hsupp : Function.support f ⊆ Icc l r) |
| 17 | (lo A : ℝ) (hlo : 0<lo) (hlo1 : lo≤1) (hA : 0 ≤ A) (g : ℂ → ℂ) |
| 18 | (hg : ∀ x ∈ Icc lo 1, ∀ t : ℝ, |
| 19 | ‖g (line x t)‖ ≤ A * Real.log (N * (|t| + 2)) ^ 2) : |
| 20 | ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc lo 1, ∀ t : ℝ, |
| 21 | ‖(N : ℂ) ^ (line x t) * mellin (fun u => (f u:ℂ)) (line x t) * g (line x t)‖ ≤ |
| 22 | C * (1 + |t|)⁻¹ ^ 2 := by |
| 23 | obtain ⟨B, hB, hb⟩ := compact_mellin_finite_decay 4 f hf l r hsupp lo 1 hlo hlo1 |
| 24 | refine ⟨(N : ℝ) * B * (4 * A * (N : ℝ) ^ 2), by positivity, ?_⟩ |
| 25 | intro x hx t |
| 26 | have hN1 : (1 : ℝ) ≤ N := by exact_mod_cast (by omega : 1 ≤ N) |
| 27 | have hNpos : 0 < (N : ℝ) := by exact_mod_cast (by omega : 0 < N) |
| 28 | have hNpow : ‖(N : ℂ) ^ (line x t)‖ ≤ N := by |
| 29 | rw [← Complex.ofReal_natCast, Complex.norm_cpow_eq_rpow_re_of_pos hNpos] |
| 30 | have hline : (line x t).re = x := by simp [line] |
| 31 | rw [hline] |
| 32 | simpa using Real.rpow_le_rpow_of_exponent_le hN1 hx.2 |
| 33 | have hm : ‖mellin (fun u => (f u:ℂ)) (line x t)‖ ≤ B * (1 + |t|)⁻¹ ^ 4 := by |
| 34 | simpa only [line, add_re, ofReal_re, mul_re, ofReal_im, I_re, |
| 35 | I_im, mul_zero, zero_mul, sub_self, add_zero, add_im, mul_im, mul_one, |
| 36 | zero_add] using hb (line x t) (by simpa [line] using hx) |
| 37 | have hg' : ‖g (line x t)‖ ≤ (4 * A * (N : ℝ) ^ 2) * (1 + |t|) ^ 2 := by |
| 38 | have h := (hg x hx t).trans (mul_le_mul_of_nonneg_left (log_square_polynomial_bound N hN t) hA) |
| 39 | convert h using 1; ring |
| 40 | rw [norm_mul, norm_mul] |
| 41 | calc |
| 42 | _ ≤ ((N : ℝ) * (B * (1 + |t|)⁻¹ ^ 4)) * |
| 43 | ((4 * A * (N : ℝ) ^ 2) * (1 + |t|) ^ 2) := |
| 44 | mul_le_mul (mul_le_mul hNpow hm (norm_nonneg _) hNpos.le) hg' |
| 45 | (norm_nonneg _) (by positivity) |
| 46 | _ = _ := by |
| 47 | have ht : (1 + |t|) ≠ 0 := by positivity |
| 48 | field_simp |
| 49 | |
| 50 | |
| 51 | lemma finite_character_mellin_shift {N : ℕ} [NeZero N] (hN4 : 4≤N) (hGRH : GRH N) |
| 52 | (χ : Character N) (hχ : χ∈oddCharacters N) |
| 53 | (f : ℝ → ℝ) (hf : ContDiff ℝ 4 f) (l r : ℝ) (hsupp : Function.support f ⊆ Icc l r) |
| 54 | (σ : ℝ) (hσ : 0<σ) (hσ1 : σ≤1) : |
| 55 | Integrable (fun t : ℝ => (N:ℂ)^(line σ t)*mellin (fun u => (f u:ℂ)) (line σ t)*logDerivative χ (line σ t)) ∧ |
| 56 | verticalMellin σ (fun s => (N:ℂ)^s*mellin (fun u => (f u:ℂ)) s*logDerivative χ s)= |
| 57 | verticalMellin 1 (fun s => (N:ℂ)^s*mellin (fun u => (f u:ℂ)) s*logDerivative χ s) := by |
| 58 | obtain ⟨A,hA,hlog⟩ := logDerivative_uniform_bound σ 1 hσ hσ1 |
| 59 | have hg := hlog N inferInstance hN4 hGRH χ (odd_character_ne_one χ (Finset.mem_filter.mp hχ).2) |
| 60 | obtain ⟨C,hC,hbound⟩ := finite_mellin_character_uniform_bound N hN4 f hf l r hsupp σ A hσ hσ1 hA.le (logDerivative χ) hg |
| 61 | let F : ℂ → ℂ := fun s => (N:ℂ)^s*mellin (fun u => (f u:ℂ)) s*logDerivative χ s |
| 62 | have hNz : (N:ℂ) ≠ 0 := by exact_mod_cast NeZero.ne N |
| 63 | have hd : ∀z : ℂ, z.re∈Icc σ 1 → DifferentiableAt ℂ F z := by |
| 64 | intro z hz |
| 65 | have hz0 := hσ.trans_le hz.1 |
| 66 | exact ((differentiableAt_id.const_cpow (Or.inl hNz)).mul |
| 67 | (compact_mellin_regular f hf.continuous l r hsupp z hz0).2).mul |
| 68 | (odd_logDerivative_analyticAt_of_GRH hGRH χ hχ hz0).differentiableAt |
| 69 | have hcF : Continuous (fun t : ℝ => F (line σ t)) := by |
| 70 | apply continuous_iff_continuousAt.mpr |
| 71 | intro t |
| 72 | exact (hd _ (by simpa [line] using (show σ∈Icc σ 1 from ⟨le_rfl,hσ1⟩))).continuousAt.comp |
| 73 | (f := fun t : ℝ => line σ t) (by unfold line; fun_prop) |
| 74 | have hi := integrable_of_uniform_vertical_decay F σ C hcF (hbound σ ⟨le_rfl,hσ1⟩) |
| 75 | exact ⟨hi,verticalMellin_eq_of_uniform_decay F σ 1 C hσ1 hd hi |
| 76 | (finite_character_mellin_initial_integrable χ f (hf.of_le (by norm_num)) l r hsupp 1 (by norm_num)) hbound⟩ |
| 77 | |
| 78 | end ConditionalGoldbach |
