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.QuadraticRiesz |
| 4 | |
| 5 | /-! The real-variable change of variables in the exact functional norm. -/ |
| 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 |
| 13 | |
| 14 | lemma hardyWeight_inverse_exp (a b τ : ℝ) : |
| 15 | (hardyWeight a b τ)⁻¹ = |
| 16 | Real.rpow (Real.exp (-τ)) (2 * a) / |
| 17 | (1 + Real.rpow (Real.exp (-τ)) (-2 * (b - a))) := by |
| 18 | have h₁ : Real.rpow (Real.exp (-τ)) (2 * a) = (Real.exp (2 * a * τ))⁻¹ := by |
| 19 | rw [Real.rpow_eq_pow, Real.rpow_def_of_pos (Real.exp_pos _), Real.log_exp, ← Real.exp_neg] |
| 20 | congr 1 |
| 21 | ring |
| 22 | have h₂ : Real.rpow (Real.exp (-τ)) (-2 * (b - a)) = |
| 23 | Real.exp (2 * b * τ) / Real.exp (2 * a * τ) := by |
| 24 | rw [Real.rpow_eq_pow, Real.rpow_def_of_pos (Real.exp_pos _), Real.log_exp, ← Real.exp_sub] |
| 25 | congr 1 |
| 26 | ring |
| 27 | rw [h₁, h₂] |
| 28 | unfold hardyWeight |
| 29 | have ha := Real.exp_ne_zero (2 * a * τ) |
| 30 | have hab : Real.exp (2 * a * τ) + Real.exp (2 * b * τ) ≠ 0 := by positivity |
| 31 | field_simp |
| 32 | |
| 33 | lemma normFunctional_density_integral (N : ℕ) (hN : 0 < N) (φ : ℝ → ℝ) (a : ℝ) : |
| 34 | normFunctional N φ a = (2 * Real.pi)⁻¹ * ∫ τ : ℝ, |
| 35 | derivativeWeight φ (Real.exp (-τ) / N) ^ 2 / hardyWeight a beta τ := by |
| 36 | have hNr : 0 < (N : ℝ) := by exact_mod_cast hN |
| 37 | let g : ℝ → ℝ := fun τ => Real.exp (-τ) / N |
| 38 | have himage : g '' univ = Ioi (0 : ℝ) := by |
| 39 | ext u |
| 40 | constructor |
| 41 | · rintro ⟨τ, _, rfl⟩ |
| 42 | exact div_pos (Real.exp_pos _) hNr |
| 43 | · intro hu |
| 44 | refine ⟨-Real.log (N * u), mem_univ _, ?_⟩ |
| 45 | dsimp [g] |
| 46 | rw [neg_neg, Real.exp_log (mul_pos hNr hu)] |
| 47 | field_simp |
| 48 | have hinj : InjOn g univ := by |
| 49 | intro τ₁ _ τ₂ _ h |
| 50 | dsimp [g] at h |
| 51 | have := Real.exp_injective ((div_left_inj' hNr.ne').1 h) |
| 52 | linarith |
| 53 | have hderiv : ∀ τ ∈ univ, HasDerivWithinAt g (-Real.exp (-τ) / N) univ τ := by |
| 54 | intro τ _ |
| 55 | have hexp : HasDerivAt (fun x : ℝ => Real.exp (-x)) (-Real.exp (-τ)) τ := by |
| 56 | simpa only [mul_neg_one, Function.comp_def] using |
| 57 | (Real.hasDerivAt_exp (-τ)).comp τ (hasDerivAt_neg τ) |
| 58 | exact (hexp.div_const (N : ℝ)).hasDerivWithinAt |
| 59 | unfold normFunctional |
| 60 | congr 1 |
| 61 | rw [← himage, integral_image_eq_integral_abs_deriv_smul MeasurableSet.univ hderiv hinj] |
| 62 | simp only [Measure.restrict_univ, smul_eq_mul] |
| 63 | apply integral_congr_ae |
| 64 | filter_upwards [] with τ |
| 65 | have hu : 0 < g τ := div_pos (Real.exp_pos _) hNr |
| 66 | have hNu : (N : ℝ) * g τ = Real.exp (-τ) := by dsimp [g]; field_simp |
| 67 | have habs : |-Real.exp (-τ) / (N : ℝ)| = g τ := by |
| 68 | rw [neg_div, abs_neg, abs_of_pos hu] |
| 69 | rw [habs, hNu, div_eq_mul_inv (derivativeWeight φ (g τ) ^ 2), hardyWeight_inverse_exp] |
| 70 | dsimp [g] |
| 71 | field_simp |
| 72 | |
| 73 | end ConditionalGoldbach |
