Buckets:
| import OAI.NumberTheory.TwoPointCorrelations.MRTPrimeBands | |
| namespace OAI | |
| /-! Mertens' first theorem, in the prime-band convention needed for the | |
| small- and large-prime truncations in the Halasz convolution. -/ | |
| namespace TwoPointCorrelations | |
| open Finset | |
| open scoped Classical | |
| noncomputable def halaszMertensConstant : ℝ := Real.log 4 + 4 | |
| lemma halaszMertensConstant_nonneg : 0 ≤ halaszMertensConstant := by | |
| unfold halaszMertensConstant | |
| positivity | |
| lemma halasz_prime_prefix_mass {x : ℝ} (hx : 1 ≤ x) : | |
| |(∑ p ∈ sievePrimesUpTo x, Real.log (p : ℝ) / p) - Real.log x| ≤ | |
| halaszMertensConstant := by | |
| rw [sievePrimesUpTo_eq_Ioc] | |
| exact Erdos970.Mertens.sum_log_prime_div_eq_log hx | |
| lemma halasz_prime_band_mass {P Q : ℝ} (hPQ : P ≤ Q) : | |
| (∑ p ∈ mrtPrimeBand P Q, Real.log (p : ℝ) / p) = | |
| (∑ p ∈ sievePrimesUpTo Q, Real.log (p : ℝ) / p) - | |
| ∑ p ∈ sievePrimesUpTo P, Real.log (p : ℝ) / p := by | |
| exact sum_sdiff_eq_sub (f := fun p : ℕ => Real.log (p : ℝ) / p) | |
| (mrt_sievePrimesUpTo_mono hPQ) | |
| lemma halasz_prime_band_mertens {P Q : ℝ} (hP : 1 ≤ P) (hPQ : P ≤ Q) : | |
| |(∑ p ∈ mrtPrimeBand P Q, Real.log (p : ℝ) / p) - | |
| (Real.log Q - Real.log P)| ≤ 2 * halaszMertensConstant := by | |
| rw [halasz_prime_band_mass hPQ] | |
| have he : (∑ p ∈ sievePrimesUpTo Q, Real.log (p : ℝ) / p) - | |
| (∑ p ∈ sievePrimesUpTo P, Real.log (p : ℝ) / p) - | |
| (Real.log Q - Real.log P) = | |
| ((∑ p ∈ sievePrimesUpTo Q, Real.log (p : ℝ) / p) - Real.log Q) - | |
| ((∑ p ∈ sievePrimesUpTo P, Real.log (p : ℝ) / p) - Real.log P) := by ring | |
| rw [he] | |
| exact (abs_sub _ _).trans (by | |
| linarith [halasz_prime_prefix_mass hP, halasz_prime_prefix_mass (hP.trans hPQ)]) | |
| lemma halasz_prime_prefix_mass_le {x : ℝ} (hx : 1 ≤ x) : | |
| (∑ p ∈ sievePrimesUpTo x, Real.log (p : ℝ) / p) ≤ | |
| Real.log x + halaszMertensConstant := by | |
| linarith [(abs_le.mp (halasz_prime_prefix_mass hx)).2] | |
| lemma halasz_prime_band_mass_le {P Q : ℝ} (hP : 1 ≤ P) (hPQ : P ≤ Q) : | |
| (∑ p ∈ mrtPrimeBand P Q, Real.log (p : ℝ) / p) ≤ | |
| Real.log Q - Real.log P + 2 * halaszMertensConstant := by | |
| linarith [(abs_le.mp (halasz_prime_band_mertens hP hPQ)).2] | |
| lemma halasz_upper_half_prime_mass {x : ℝ} (hx : 2 ≤ x) : | |
| (∑ p ∈ mrtPrimeBand (x / 2) x, Real.log (p : ℝ) / p) ≤ | |
| Real.log 2 + 2 * halaszMertensConstant := by | |
| have hx0 : 0 < x := by linarith | |
| have hm := halasz_prime_band_mass_le (P := x / 2) (Q := x) | |
| (by linarith) (by linarith) | |
| rw [Real.log_div (ne_of_gt hx0) (by norm_num)] at hm | |
| linarith | |
| end TwoPointCorrelations | |
| end OAI | |
Xet Storage Details
- Size:
- 2.66 kB
- Xet hash:
- 971cf7c407c10489c2c0fe5ff7b56de706119d7b26c9da7fcb7daa675839acbf
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.