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.FiniteModelBetaTransform |
| 4 | |
| 5 | public section |
| 6 | |
| 7 | set_option autoImplicit false |
| 8 | noncomputable section |
| 9 | open scoped BigOperators ComplexConjugate Topology ContDiff |
| 10 | open MeasureTheory Filter Set Complex |
| 11 | namespace ConditionalGoldbach |
| 12 | namespace FiniteModel |
| 13 | |
| 14 | lemma line_sub_line_reflection (σ : ℝ) (w : ℂ) (hw : w.re = 2*σ) (t : ℝ) : |
| 15 | w-line σ t = line σ (w.im-t) := by |
| 16 | apply Complex.ext <;> simp [line, hw]; ring |
| 17 | |
| 18 | lemma verticalMellin_reflection (f : ℂ → ℂ) (σ : ℝ) (w : ℂ) (hw : w.re = 2*σ) : |
| 19 | verticalMellin σ (fun s => f (w-s)) = verticalMellin σ f := by |
| 20 | unfold verticalMellin |
| 21 | simp_rw [line_sub_line_reflection σ w hw] |
| 22 | rw [integral_sub_left_eq_self (fun t : ℝ => f (line σ t)) volume w.im] |
| 23 | |
| 24 | lemma mellin_signedConvolution_eq (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) (w : ℂ) (hw : 0 < w.re) : |
| 25 | mellin (fun y => (signedConvolution φ y : ℂ)) w = |
| 26 | 2 * mellin (fun y => (differenceConvolution φ y : ℂ)) w - |
| 27 | mellin (fun y => (sumConvolution φ y : ℂ)) w := by |
| 28 | have hC := (compact_mellin_regular (differenceConvolution φ) |
| 29 | (differenceConvolution_contDiff φ hφ).continuous _ _ (differenceConvolution_support φ hφ) w hw).1 |
| 30 | have hJ := (compact_mellin_regular (sumConvolution φ) |
| 31 | (sumConvolution_contDiff φ hφ).continuous _ _ (sumConvolution_support φ hφ) w hw).1 |
| 32 | simp only [MellinConvergent, smul_eq_mul] at hC hJ |
| 33 | unfold mellin |
| 34 | simp only [smul_eq_mul, signedConvolution, ofReal_sub, ofReal_mul, ofReal_ofNat, mul_sub] |
| 35 | simp_rw [show ∀ a b : ℂ, a * (2*b) = 2*(a*b) by intros; ring] |
| 36 | rw [integral_sub (hC.const_mul 2) hJ, integral_const_mul] |
| 37 | |
| 38 | lemma signedConvolution_mellin_beta (φ : ℝ → ℝ) (hφ : FiniteModelWeight φ) |
| 39 | (σ : ℝ) (hσ : 0 < σ) (hσupper : σ ≤ 1/9) (w : ℂ) (hw : w.re = 2*σ) : |
| 40 | Integrable (fun t : ℝ => mellinWeight φ (line σ t) * |
| 41 | mellinWeight φ (w-line σ t) * betaKernel (line σ t) (w-line σ t)) ∧ |
| 42 | mellin (fun y => (signedConvolution φ y : ℂ)) w = |
| 43 | verticalMellin σ (fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaKernel s (w-s)) := by |
| 44 | obtain ⟨hCi,hC⟩ := differenceConvolution_mellin_beta φ hφ σ hσ hσupper w hw |
| 45 | obtain ⟨hJi,hJ⟩ := sumConvolution_mellin_beta φ hφ σ hσ hσupper w hw |
| 46 | let C₁ : ℂ → ℂ := fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) w |
| 47 | let C₂ : ℂ → ℂ := fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-(w-s)) w |
| 48 | let J : ℂ → ℂ := fun s => mellinWeight φ s * mellinWeight φ (w-s) * betaIntegral (1/2-s) (1/2+s-w) |
| 49 | change Integrable (fun t : ℝ => C₁ (line σ t)) at hCi |
| 50 | change Integrable (fun t : ℝ => J (line σ t)) at hJi |
| 51 | have hflip (s : ℂ) : C₂ s = C₁ (w-s) := by |
| 52 | dsimp [C₁,C₂] |
| 53 | rw [sub_sub_cancel] |
| 54 | ring |
| 55 | have hC₂i : Integrable (fun t : ℝ => C₂ (line σ t)) := by |
| 56 | apply (hCi.comp_sub_left w.im).congr |
| 57 | filter_upwards [] with t |
| 58 | change C₁ (line σ (w.im-t)) = C₂ (line σ t) |
| 59 | rw [hflip, line_sub_line_reflection σ w hw] |
| 60 | have hC₂ : verticalMellin σ C₂ = mellin (fun y => (differenceConvolution φ y : ℂ)) w := by |
| 61 | have hefun : C₂ = fun s => C₁ (w-s) := funext hflip |
| 62 | rw [hefun, verticalMellin_reflection C₁ σ w hw] |
| 63 | exact hC.symm |
| 64 | have hk (s : ℂ) : mellinWeight φ s * mellinWeight φ (w-s) * betaKernel s (w-s) = |
| 65 | C₁ s + C₂ s - J s := by |
| 66 | dsimp [betaKernel, C₁,C₂,J] |
| 67 | rw [add_sub_cancel] |
| 68 | have he : (1/2 : ℂ)-(w-s) = 1/2+s-w := by ring |
| 69 | rw [he] |
| 70 | ring |
| 71 | constructor |
| 72 | · simp_rw [hk] |
| 73 | exact (hCi.add hC₂i).sub hJi |
| 74 | · rw [mellin_signedConvolution_eq φ hφ w (by linarith)] |
| 75 | simp_rw [hk] |
| 76 | unfold verticalMellin |
| 77 | dsimp only |
| 78 | rw [integral_sub (f := fun t : ℝ => C₁ (line σ t) + C₂ (line σ t)) |
| 79 | (g := fun t : ℝ => J (line σ t)) (hCi.add hC₂i) hJi, |
| 80 | integral_add (f := fun t : ℝ => C₁ (line σ t)) (g := fun t : ℝ => C₂ (line σ t)) hCi hC₂i] |
| 81 | have he : (2*(Real.pi : ℂ))⁻¹ * |
| 82 | ((∫ t : ℝ, C₁ (line σ t)) + (∫ t : ℝ, C₂ (line σ t)) - (∫ t : ℝ, J (line σ t))) = |
| 83 | verticalMellin σ C₁ + verticalMellin σ C₂ - verticalMellin σ J := by |
| 84 | unfold verticalMellin |
| 85 | ring |
| 86 | rw [he, ← hC, hC₂, ← hJ] |
| 87 | ring |
| 88 | |
| 89 | end FiniteModel |
| 90 | end ConditionalGoldbach |
