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.FiniteModelBasic |
| 4 | public import ConditionalGoldbach.Proofs.MellinModelBound |
| 5 | |
| 6 | public section |
| 7 | |
| 8 | set_option autoImplicit false |
| 9 | noncomputable section |
| 10 | open scoped BigOperators ComplexConjugate Topology ContDiff |
| 11 | open MeasureTheory Filter Set Complex |
| 12 | namespace ConditionalGoldbach.FiniteModel |
| 13 | |
| 14 | lemma mellinWeight_first_moment_integrable (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (σ : ℝ) (hσ : 0<σ) : |
| 15 | Integrable (fun t : ℝ => (1+|t|) * ‖mellinWeight φ (line σ t)‖) := by |
| 16 | obtain ⟨C,hC,hdec⟩ := mellinWeight_uniform_decay φ hφ σ σ hσ (le_refl σ) |
| 17 | have hi : Integrable (fun t : ℝ => (1+|t|)⁻¹ ^ 2) := by |
| 18 | have h := integrable_one_add_norm (E := ℝ) (μ := volume) (r := 2) (by simp) |
| 19 | convert h using 1 |
| 20 | ext t |
| 21 | rw [Real.norm_eq_abs, Real.rpow_neg (by positivity), Real.rpow_two, inv_pow] |
| 22 | have hcont : Continuous (fun t : ℝ => mellinWeight φ (line σ t)) := |
| 23 | (mellinWeight_differentiable hφ).continuous.comp (by unfold line; fun_prop) |
| 24 | apply (hi.const_mul C).mono' ((show Continuous (fun t : ℝ => 1+|t|) by fun_prop).mul hcont.norm).aestronglyMeasurable |
| 25 | filter_upwards [] with t |
| 26 | dsimp only [Pi.mul_apply] |
| 27 | rw [Real.norm_eq_abs, abs_of_nonneg (mul_nonneg (by positivity) (norm_nonneg _))] |
| 28 | have hp : 0 < 1+|t| := by positivity |
| 29 | have ht := hdec σ ⟨le_rfl,le_rfl⟩ t |
| 30 | have hm := mul_le_mul_of_nonneg_left ht hp.le |
| 31 | have hinv : 0 ≤ (1+|t|)⁻¹ := inv_nonneg.mpr hp.le |
| 32 | have hinv1 : (1+|t|)⁻¹ ≤ 1 := inv_le_one_of_one_le₀ (by linarith [abs_nonneg t]) |
| 33 | have hpow := pow_le_pow_of_le_one hinv hinv1 (show 2 ≤ 5 by norm_num) |
| 34 | have he : (1+|t|) * (C*(1+|t|)⁻¹ ^ 6) = C*(1+|t|)⁻¹ ^ 5 := by field_simp |
| 35 | rw [he] at hm |
| 36 | exact hm.trans (mul_le_mul_of_nonneg_left hpow hC.le) |
| 37 | |
| 38 | lemma model_double_integrable (N : ℕ) (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) |
| 39 | (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) : |
| 40 | Integrable (fun p : ℝ × ℝ => |
| 41 | mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * |
| 42 | continuedDensity N (line σ p.1 + line σ p.2) * betaKernel (line σ p.1) (line σ p.2)) := by |
| 43 | obtain ⟨D,hD,hDb⟩ := continuedDensity_line_growth N (2*σ) (by linarith) (by linarith) |
| 44 | let B : ℝ := ‖2 * betaIntegral (1/2-(σ : ℂ)) (2*σ) + betaIntegral (1/2-(σ : ℂ)) (1/2-(σ : ℂ))‖ |
| 45 | have hM : Continuous (fun t : ℝ => mellinWeight φ (line σ t)) := |
| 46 | (mellinWeight_differentiable hφ).continuous.comp (by unfold line; fun_prop) |
| 47 | have hDcont := continuedDensity_line_continuous N (2*σ) (by linarith) (by linarith) |
| 48 | have hline (v y : ℝ) : line σ v + line σ y = line (2*σ) (v+y) := by |
| 49 | unfold line |
| 50 | push_cast |
| 51 | ring |
| 52 | have hbm : Measurable (fun p : ℝ × ℝ => betaKernel (line σ p.1) (line σ p.2)) := by |
| 53 | unfold betaKernel |
| 54 | exact ((measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop)).add |
| 55 | (measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop))).sub |
| 56 | (measurable_betaIntegral _ _ (by unfold line; fun_prop) (by unfold line; fun_prop)) |
| 57 | have hm : Measurable (fun p : ℝ × ℝ => mellinWeight φ (line σ p.1) * mellinWeight φ (line σ p.2) * |
| 58 | continuedDensity N (line σ p.1 + line σ p.2) * betaKernel (line σ p.1) (line σ p.2)) := by |
| 59 | simp_rw [hline] |
| 60 | exact (((hM.measurable.comp measurable_fst).mul (hM.measurable.comp measurable_snd)).mul |
| 61 | (hDcont.measurable.comp (by fun_prop))).mul hbm |
| 62 | rw [Measure.volume_eq_prod] |
| 63 | apply (((mellinWeight_first_moment_integrable φ hφ σ hσ).mul_prod |
| 64 | (mellinWeight_first_moment_integrable φ hφ σ hσ)).const_mul (D*B)).mono' hm.aestronglyMeasurable |
| 65 | filter_upwards [] with p |
| 66 | rcases p with ⟨v,y⟩ |
| 67 | simp only [norm_mul] |
| 68 | have hb : ‖betaKernel (line σ v) (line σ y)‖ ≤ B := |
| 69 | betaKernel_vertical_bound _ _ σ (by simp [line]) (by simp [line]) |
| 70 | have hd : ‖continuedDensity N (line σ v + line σ y)‖ ≤ D*(1+|v+y|) := by rw [hline]; exact hDb _ |
| 71 | have hadd : 1+|v+y| ≤ (1+|v|)*(1+|y|) := by |
| 72 | nlinarith [abs_add_le v y, mul_nonneg (abs_nonneg v) (abs_nonneg y)] |
| 73 | calc |
| 74 | _ ≤ (‖mellinWeight φ (line σ v)‖ * ‖mellinWeight φ (line σ y)‖) * (D*(1+|v+y|)) * B := by |
| 75 | exact mul_le_mul (mul_le_mul_of_nonneg_left hd (mul_nonneg (norm_nonneg _) (norm_nonneg _))) hb |
| 76 | (norm_nonneg _) (by positivity) |
| 77 | _ ≤ (‖mellinWeight φ (line σ v)‖ * ‖mellinWeight φ (line σ y)‖) * |
| 78 | (D*((1+|v|)*(1+|y|))) * B := by gcongr |
| 79 | _ = _ := by ring |
| 80 | |
| 81 | end ConditionalGoldbach.FiniteModel |
