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.MellinModelSingle |
| 4 | public import ConditionalGoldbach.Proofs.MellinBetaConvolution |
| 5 | |
| 6 | /-! Absolute integrability of the model on the original product contour. -/ |
| 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 continuedDensity_line_continuous (N : ℕ) (a : ℝ) (ha : 0 < a) (ha1 : a ≠ 1) : |
| 16 | Continuous (fun t : ℝ => continuedDensity N (line a t)) := by |
| 17 | have ho : IsOpen {w : ℂ | 0 < w.re ∧ w ≠ 1} := |
| 18 | (isOpen_lt continuous_const Complex.continuous_re).inter isOpen_ne |
| 19 | apply continuous_iff_continuousAt.mpr |
| 20 | intro t |
| 21 | have hm : line a t ∈ {w : ℂ | 0 < w.re ∧ w ≠ 1} := by |
| 22 | constructor |
| 23 | · simpa [line] using ha |
| 24 | · intro he |
| 25 | have hh := congrArg Complex.re he |
| 26 | exact ha1 (by simpa [line] using hh) |
| 27 | exact ((continuedDensity_differentiableOn N).differentiableAt (ho.mem_nhds hm)).continuousAt.comp |
| 28 | (by unfold line; fun_prop) |
| 29 | |
| 30 | lemma continuedDensity_line_growth (N : ℕ) (a : ℝ) (ha : 0 < a) (ha1 : a ≠ 1) : |
| 31 | ∃ C : ℝ, 0 ≤ C ∧ ∀ t : ℝ, |
| 32 | ‖continuedDensity N (line a t)‖ ≤ C * (1 + |t|) := by |
| 33 | obtain ⟨D,hD,hfar⟩ := continuedDensity_vertical_growth N ha (show a < a+1 by linarith) |
| 34 | obtain ⟨B,hB⟩ := (isCompact_Icc (a := (-1 : ℝ)) (b := 1)).exists_bound_of_continuousOn |
| 35 | (continuedDensity_line_continuous N a ha ha1).continuousOn |
| 36 | refine ⟨|B|+D+1, by positivity, fun t => ?_⟩ |
| 37 | by_cases ht : 1 ≤ |t| |
| 38 | · have hh := hfar (line a t) (by simp [line]) (by simpa [line] using ht) |
| 39 | simp only [line, add_im, ofReal_im, mul_im, ofReal_re, I_im, I_re, mul_one, |
| 40 | mul_zero, add_zero, zero_add] at hh |
| 41 | exact hh.trans (mul_le_mul_of_nonneg_right (by linarith [abs_nonneg B]) (by positivity)) |
| 42 | · have hb := hB t (abs_le.mp (lt_of_not_ge ht).le) |
| 43 | have h0 : 0 ≤ |B|+D+1 := by positivity |
| 44 | have h1 : 1 ≤ 1+|t| := by linarith [abs_nonneg t] |
| 45 | have hh := mul_le_mul_of_nonneg_left h1 h0 |
| 46 | linarith [le_abs_self B] |
| 47 | |
| 48 | lemma mellinWeight_first_moment_integrable (φ : ℝ → ℝ) (hφ : IsWeight φ) (σ : ℝ) : |
| 49 | Integrable (fun t : ℝ => (1+|t|) * ‖mellinWeight φ (line σ t)‖) := by |
| 50 | obtain ⟨C,hC,hdec⟩ := mellinWeight_uniform_decay φ hφ σ σ (le_refl σ) |
| 51 | have hi : Integrable (fun t : ℝ => (1+|t|)⁻¹ ^ 2) := by |
| 52 | have h := integrable_one_add_norm (E := ℝ) (μ := volume) (r := 2) (by simp) |
| 53 | convert h using 1 |
| 54 | ext t |
| 55 | rw [Real.norm_eq_abs, Real.rpow_neg (by positivity), Real.rpow_two, inv_pow] |
| 56 | have hcont : Continuous (fun t : ℝ => mellinWeight φ (line σ t)) := |
| 57 | (mellinWeight_differentiable hφ).continuous.comp (by unfold line; fun_prop) |
| 58 | apply (hi.const_mul C).mono' ((show Continuous (fun t : ℝ => 1+|t|) by fun_prop).mul hcont.norm).aestronglyMeasurable |
| 59 | filter_upwards [] with t |
| 60 | dsimp only [Pi.mul_apply] |
| 61 | rw [Real.norm_eq_abs, abs_of_nonneg (mul_nonneg (by positivity) (norm_nonneg _))] |
| 62 | have hp : 0 < 1+|t| := by positivity |
| 63 | have ht := hdec σ ⟨le_rfl,le_rfl⟩ t |
| 64 | have hm := mul_le_mul_of_nonneg_left ht hp.le |
| 65 | have hinv : 0 ≤ (1+|t|)⁻¹ := inv_nonneg.mpr hp.le |
| 66 | have hinv1 : (1+|t|)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ (by linarith [abs_nonneg t]) |
| 67 | have hpow := pow_le_pow_of_le_one hinv hinv1 (show 2 ≤ 5 by norm_num) |
| 68 | have he : (1+|t|) * (C*(1+|t|)⁻¹ ^ 6) = C*(1+|t|)⁻¹ ^ 5 := by field_simp |
| 69 | rw [he] at hm |
| 70 | exact hm.trans (mul_le_mul_of_nonneg_left hpow hC.le) |
| 71 | |
| 72 | lemma model_double_integrable (N : ℕ) (φ : ℝ → ℝ) (hφ : IsWeight φ) |
| 73 | (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) : |
| 74 | Integrable (fun p : ℝ × ℝ => |
| 75 | mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * |
| 76 | continuedDensity N (line σ p.1 + line σ p.2) * betaKernel (line σ p.1) (line σ p.2)) := by |
| 77 | obtain ⟨D,hD,hDb⟩ := continuedDensity_line_growth N (2*σ) (by linarith) (by linarith) |
| 78 | let B : ℝ := ‖2 * betaIntegral (1/2-(σ : ℂ)) (2*σ) + betaIntegral (1/2-(σ : ℂ)) (1/2-(σ : ℂ))‖ |
| 79 | have hM : Continuous (fun t : ℝ => mellinWeight φ (line σ t)) := |
| 80 | (mellinWeight_differentiable hφ).continuous.comp (by unfold line; fun_prop) |
| 81 | have hDcont := continuedDensity_line_continuous N (2*σ) (by linarith) (by linarith) |
| 82 | have hline (v y : ℝ) : line σ v + line σ y = line (2*σ) (v+y) := by |
| 83 | unfold line |
| 84 | push_cast |
| 85 | ring |
| 86 | have hbm : Measurable (fun p : ℝ × ℝ => betaKernel (line σ p.1) (line σ p.2)) := by |
| 87 | unfold betaKernel |
| 88 | exact ((measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop)).add |
| 89 | (measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop))).sub |
| 90 | (measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop)) |
| 91 | have hm : Measurable (fun p : ℝ × ℝ => mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * |
| 92 | continuedDensity N (line σ p.1 + line σ p.2) * betaKernel (line σ p.1) (line σ p.2)) := by |
| 93 | simp_rw [hline] |
| 94 | exact (((hM.measurable.comp measurable_fst).mul (hM.measurable.comp measurable_snd)).mul |
| 95 | (hDcont.measurable.comp (by fun_prop))).mul hbm |
| 96 | rw [Measure.volume_eq_prod] |
| 97 | apply (((mellinWeight_first_moment_integrable φ hφ σ).mul_prod |
| 98 | (mellinWeight_first_moment_integrable φ hφ σ)).const_mul (D*B)).mono' hm.aestronglyMeasurable |
| 99 | filter_upwards [] with p |
| 100 | rcases p with ⟨v,y⟩ |
| 101 | simp only [norm_mul] |
| 102 | have hb : ‖betaKernel (line σ v) (line σ y)‖ ≤ B := |
| 103 | betaKernel_vertical_bound _ _ σ (by simp [line]) (by simp [line]) |
| 104 | have hd : ‖continuedDensity N (line σ v + line σ y)‖ ≤ D*(1+|v+y|) := by rw [hline]; exact hDb _ |
| 105 | have hadd : 1+|v+y| ≤ (1+|v|)*(1+|y|) := by |
| 106 | nlinarith [abs_add_le v y, mul_nonneg (abs_nonneg v) (abs_nonneg y)] |
| 107 | calc |
| 108 | _ ≤ (‖mellinWeight φ (line σ v)‖ * ‖mellinWeight φ (line σ y)‖) * (D*(1+|v+y|)) * B := by |
| 109 | exact mul_le_mul (mul_le_mul_of_nonneg_left hd (mul_nonneg (norm_nonneg _) (norm_nonneg _))) hb |
| 110 | (norm_nonneg _) (by positivity) |
| 111 | _ ≤ (‖mellinWeight φ (line σ v)‖ * ‖mellinWeight φ (line σ y)‖) * |
| 112 | (D*((1+|v|)*(1+|y|))) * B := by gcongr |
| 113 | _ = _ := by ring |
| 114 | |
| 115 | end ConditionalGoldbach |
