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.HalfPlanePoisson |
| 4 | public import ConditionalGoldbach.Proofs.CharacterHalfPlane |
| 5 | |
| 6 | /-! Weighted Poisson contraction and its application to logarithmic-derivative energies. -/ |
| 7 | public section |
| 8 | |
| 9 | set_option autoImplicit false |
| 10 | noncomputable section |
| 11 | open MeasureTheory Filter Set Complex |
| 12 | open scoped Topology ComplexConjugate BigOperators |
| 13 | namespace ConditionalGoldbach |
| 14 | |
| 15 | lemma poisson_weighted_integral_bound (F : ℝ → ℝ) (hc : Continuous F) |
| 16 | (hn : ∀ t, 0 ≤ F t) (hI : Integrable (fun t : ℝ => F t / (1+t^2))) |
| 17 | {ℓ : ℝ} (hℓ : 0 < ℓ) : |
| 18 | Integrable (fun t : ℝ => (∫ v : ℝ, poissonKernelReal ℓ (t-v)*F v) / (1+t^2)) ∧ |
| 19 | (∫ t : ℝ, (∫ v : ℝ, poissonKernelReal ℓ (t-v)*F v) / (1+t^2)) ≤ |
| 20 | (1+ℓ) * (∫ v : ℝ, F v / (1+v^2)) := by |
| 21 | let H (t v : ℝ) := poissonKernelReal ℓ (t-v)*F v / (1+t^2) |
| 22 | have hH (t v : ℝ) : H t v = (Real.pi * F v) * |
| 23 | (poissonKernelReal 1 t * poissonKernelReal ℓ (v-t)) := by |
| 24 | dsimp [H,poissonKernelReal] |
| 25 | rw [show (v-t)^2 = (t-v)^2 by ring] |
| 26 | field_simp |
| 27 | have hinner (v : ℝ) : Integrable (fun t : ℝ => H t v) ∧ |
| 28 | (∫ t : ℝ, H t v) = Real.pi * F v * poissonKernelReal (1+ℓ) v := by |
| 29 | obtain ⟨hi,he,hb⟩ := lemma_6_4_poisson_convolution ℓ hℓ v |
| 30 | constructor |
| 31 | · exact (hi.const_mul _).congr (Eventually.of_forall (fun t => (hH t v).symm)) |
| 32 | · simp_rw [hH] |
| 33 | rw [integral_const_mul] |
| 34 | exact congrArg (fun r : ℝ => Real.pi*F v*r) he |
| 35 | have hnon (t v : ℝ) : 0 ≤ H t v := by |
| 36 | dsimp [H] |
| 37 | exact div_nonneg (mul_nonneg (poissonKernelReal_bounds ℓ hℓ _).1 (hn v)) (by positivity) |
| 38 | have hb (v : ℝ) : Real.pi*F v*poissonKernelReal (1+ℓ) v ≤ (1+ℓ)*(F v/(1+v^2)) := by |
| 39 | have hh := mul_le_mul_of_nonneg_left (lemma_6_4_poisson_convolution ℓ hℓ v).2.2 |
| 40 | (mul_nonneg Real.pi_pos.le (hn v)) |
| 41 | convert hh using 1 |
| 42 | unfold poissonKernelReal |
| 43 | field_simp |
| 44 | have hj : Integrable (fun v : ℝ => Real.pi*F v*poissonKernelReal (1+ℓ) v) := by |
| 45 | refine (hI.const_mul (1+ℓ)).mono' ?_ ?_ |
| 46 | · exact ((continuous_const.mul hc).mul (poissonKernelReal_continuous (1+ℓ) (by positivity))).aestronglyMeasurable |
| 47 | · filter_upwards [] with v |
| 48 | rw [Real.norm_eq_abs, abs_of_nonneg (by |
| 49 | exact mul_nonneg (mul_nonneg Real.pi_pos.le (hn v)) (poissonKernelReal_bounds (1+ℓ) (by positivity) v).1)] |
| 50 | exact hb v |
| 51 | have hprod : Integrable (Function.uncurry H) (volume.prod volume) := by |
| 52 | apply (integrable_prod_iff' ?_).mpr |
| 53 | · constructor |
| 54 | · exact Eventually.of_forall (fun v => (hinner v).1) |
| 55 | · apply hj.congr |
| 56 | filter_upwards [] with v |
| 57 | rw [← (hinner v).2] |
| 58 | apply integral_congr_ae |
| 59 | filter_upwards [] with t |
| 60 | exact (Real.norm_of_nonneg (hnon t v)).symm |
| 61 | · apply Continuous.aestronglyMeasurable |
| 62 | change Continuous (fun p : ℝ×ℝ => poissonKernelReal ℓ (p.1-p.2)*F p.2 / (1+p.1^2)) |
| 63 | exact (((poissonKernelReal_continuous ℓ hℓ).comp (continuous_fst.sub continuous_snd)).mul |
| 64 | (hc.comp continuous_snd)).div (by fun_prop) (by intro p; positivity) |
| 65 | have he (t : ℝ) : (∫ v : ℝ, H t v) = (∫ v : ℝ, poissonKernelReal ℓ (t-v)*F v)/(1+t^2) := by |
| 66 | exact integral_div _ _ |
| 67 | refine ⟨hprod.integral_prod_left.congr (Eventually.of_forall he), ?_⟩ |
| 68 | simp_rw [← he] |
| 69 | rw [integral_integral_swap hprod] |
| 70 | simp_rw [(hinner _).2] |
| 71 | calc |
| 72 | _ ≤ ∫ v : ℝ, (1+ℓ)*(F v/(1+v^2)) := integral_mono hj (hI.const_mul _) hb |
| 73 | _ = _ := integral_const_mul _ _ |
| 74 | |
| 75 | lemma halfPlane_weighted_energy_shift (f : ℂ → ℂ) |
| 76 | (hd : ∀ z : ℂ, 0 ≤ z.re → DifferentiableAt ℂ f z) |
| 77 | (hg : ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, |
| 78 | ‖f (line x t)‖ ≤ C * (1 + |t|) ^ (1/2 : ℝ)) |
| 79 | (hb : ∃ R₀ B : ℝ, ∀ z : ℂ, R₀ ≤ z.re → ‖f z‖ ≤ B) |
| 80 | (hI : Integrable (fun t : ℝ => ‖f (line 0 t)‖ ^ 2 / (1+t^2))) |
| 81 | {ℓ : ℝ} (hℓ : 0 < ℓ) : |
| 82 | Integrable (fun t : ℝ => ‖f (line ℓ t)‖ ^ 2 / (1+t^2)) ∧ |
| 83 | (∫ t : ℝ, ‖f (line ℓ t)‖ ^ 2 / (1+t^2)) ≤ |
| 84 | (1+ℓ) * (∫ t : ℝ, ‖f (line 0 t)‖ ^ 2 / (1+t^2)) := by |
| 85 | have hc (x : ℝ) (hx : 0 ≤ x) : Continuous (fun t : ℝ => f (line x t)) := by |
| 86 | apply continuous_iff_continuousAt.mpr |
| 87 | intro t |
| 88 | exact (hd (line x t) (by simpa [line] using hx)).continuousAt.comp |
| 89 | (show ContinuousAt (fun t : ℝ => line x t) t by unfold line; fun_prop) |
| 90 | obtain ⟨hpi,hpe⟩ := poisson_weighted_integral_bound (fun t => ‖f (line 0 t)‖ ^ 2) |
| 91 | ((hc 0 le_rfl).norm.pow 2) (fun t => sq_nonneg _) hI hℓ |
| 92 | have hpoint (t : ℝ) : ‖f (line ℓ t)‖ ^ 2 / (1+t^2) ≤ |
| 93 | (∫ v : ℝ, poissonKernelReal ℓ (t-v)*‖f (line 0 v)‖ ^ 2)/(1+t^2) := |
| 94 | div_le_div_of_nonneg_right (halfPlane_poisson_square_bound f hd hg hb hI hℓ t).2 (by positivity) |
| 95 | have hi : Integrable (fun t : ℝ => ‖f (line ℓ t)‖ ^ 2 / (1+t^2)) := by |
| 96 | refine hpi.mono' (((hc ℓ hℓ.le).norm.pow 2).div (by fun_prop) (by intro t; positivity)).aestronglyMeasurable ?_ |
| 97 | filter_upwards [] with t |
| 98 | simpa only [Real.norm_eq_abs, abs_of_nonneg (by positivity : 0 ≤ ‖f (line ℓ t)‖ ^ 2 / (1+t^2))] using hpoint t |
| 99 | exact ⟨hi, (integral_mono hi hpi hpoint).trans hpe⟩ |
| 100 | |
| 101 | lemma logDerivative_energy_shift (N : ℕ) [NeZero N] (hN4 : 4 ≤ N) (hGRH : GRH N) |
| 102 | (χ : Character N) (hχ : χ ∈ oddCharacters N) (σ ℓ : ℝ) (hσ : 0 < σ) (hℓ : 0 ≤ ℓ) : |
| 103 | (∫ t : ℝ, ‖logDerivative χ (line (σ+ℓ) t)‖ ^ 2 / (1+t^2)) ≤ |
| 104 | (1+ℓ) * (∫ t : ℝ, ‖logDerivative χ (line σ t)‖ ^ 2 / (1+t^2)) := by |
| 105 | rcases hℓ.eq_or_lt with rfl | hℓ |
| 106 | · simp |
| 107 | have hg := shifted_logDerivative_growth N hN4 hGRH χ hχ hσ |
| 108 | have hg' : ∀ R : ℝ, 0 ≤ R → ∃ C : ℝ, 0 ≤ C ∧ ∀ x ∈ Icc 0 R, ∀ t : ℝ, |
| 109 | ‖logDerivative χ ((σ : ℂ)+line x t)‖ ≤ C*(1+|t|)^(1/2 : ℝ) := by |
| 110 | intro R hR |
| 111 | obtain ⟨C,hC,hg⟩ := hg R hR |
| 112 | refine ⟨C,hC,?_⟩ |
| 113 | intro x hx t |
| 114 | exact (hg x hx t).trans (mul_le_mul_of_nonneg_left |
| 115 | (Real.rpow_le_rpow_of_exponent_le (by nlinarith [abs_nonneg t] : 1 ≤ 1+|t|) (by norm_num : (1/4 : ℝ) ≤ 1/2)) hC) |
| 116 | have he (x t : ℝ) : (σ : ℂ)+line x t = line (σ+x) t := by unfold line; push_cast; ring |
| 117 | have hh := halfPlane_weighted_energy_shift (fun z => logDerivative χ ((σ : ℂ)+z)) |
| 118 | (shifted_logDerivative_holomorphic N hGRH χ hχ hσ) hg' |
| 119 | (by |
| 120 | refine ⟨1,3*(Real.log 4+4),?_⟩ |
| 121 | intro z hz |
| 122 | exact logDerivative_right_bound N χ _ (by simp only [add_re,ofReal_re]; linarith)) |
| 123 | (by simpa only [he,add_zero] using logDerivative_weighted_square_integrable N hN4 hGRH χ hχ σ hσ) hℓ |
| 124 | simpa only [he,add_zero] using hh.2 |
| 125 | |
| 126 | lemma averagedLogDerivative_shift (N : ℕ) [NeZero N] (hN4 : 4 ≤ N) (hGRH : GRH N) |
| 127 | (σ ℓ : ℝ) (hσ : 0 < σ) (hℓ : 0 ≤ ℓ) : |
| 128 | averagedLogDerivative N (σ+ℓ) ≤ (1+ℓ)*averagedLogDerivative N σ := by |
| 129 | unfold averagedLogDerivative |
| 130 | calc |
| 131 | _ ≤ (2 / (N.totient : ℝ)) * ∑ χ ∈ oddCharacters N, |
| 132 | (1+ℓ)*(∫ t : ℝ, ‖logDerivative χ (line σ t)‖ ^ 2 / (1+t^2)) := |
| 133 | mul_le_mul_of_nonneg_left (Finset.sum_le_sum (fun χ hχ => |
| 134 | logDerivative_energy_shift N hN4 hGRH χ hχ σ ℓ hσ hℓ)) (by positivity) |
| 135 | _ = _ := by rw [← Finset.mul_sum]; ring |
| 136 | |
| 137 | end ConditionalGoldbach |
