Documentation

LeanPool.SelbergSieve4.Applications.BrunTitchmarsh

LeanPool.SelbergSieve4.Applications.BrunTitchmarsh #

noncomputable def BrunTitchmarsh.primeInterSieve (x y z : ) (hz : 1 z) :

Sieve that removes primes at most z from the interval [x, x + y].

Equations
  • One or more equations did not get rendered due to their size.
Instances For
    noncomputable def BrunTitchmarsh.primesBetween (a b : ) :

    Number of primes in the real interval [a, b].

    Equations
    Instances For
      theorem BrunTitchmarsh.siftedSum_eq_card (x y z : ) (hz : 1 z) :
      (primeInterSieve x y z hz).siftedSum = {dFinset.Icc x⌉₊ x + y⌋₊ | ∀ (p : ), Nat.Prime pp z¬p d}.card
      theorem BrunTitchmarsh.Ioc_filter_dvd_eq (d a b : ) (hd : d 0) :
      {xFinset.Ioc a b | d x} = Finset.image (fun (x : ) => x * d) (Finset.Ioc (a / d) (b / d))
      theorem BrunTitchmarsh.card_Ioc_filter_dvd (d a b : ) (hd : d 0) :
      {xFinset.Ioc a b | d x}.card = b / d - a / d
      theorem BrunTitchmarsh.multSum_eq (x y z : ) (hz : 1 z) (hx : 0 < x) (d : ) (hd : d 0) :
      (primeInterSieve x y z hz).multSum d = ↑(x + y⌋₊ / d - (x⌉₊ - 1) / d)
      theorem BrunTitchmarsh.rem_eq (x y z : ) (hz : 1 z) (hx : 0 < x) (d : ) (hd : d 0) :
      (primeInterSieve x y z hz).rem d = ↑(x + y⌋₊ / d - (x⌉₊ - 1) / d) - (↑d)⁻¹ * y
      theorem BrunTitchmarsh.floor_approx (x : ) (hx : 0 x) :
      ∃ (C : ), |C| 1 x⌋₊ = x + C
      theorem BrunTitchmarsh.ceil_approx (x : ) (hx : 0 x) :
      ∃ (C : ), |C| 1 x⌉₊ = x + C
      theorem BrunTitchmarsh.nat_div_approx (a b : ) :
      ∃ (C : ), |C| 1 ↑(a / b) = a / b + C
      theorem BrunTitchmarsh.floor_div_approx (x : ) (hx : 0 x) (d : ) :
      ∃ (C : ), |C| 2 ↑(x⌋₊ / d) = x / d + C
      theorem BrunTitchmarsh.abs_rem_le (x y z : ) (hz : 1 z) (hx : 0 < x) (hy : 0 < y) {d : } (hd : d 0) :
      |(primeInterSieve x y z hz).rem d| 5
      theorem BrunTitchmarsh.primeSieve_rem_sum_le (x y z : ) (hz : 1 z) (hx : 0 < x) (hy : 0 < y) :
      theorem BrunTitchmarsh.siftedSum_le (x y z : ) (hx : 0 < x) (hy : 0 < y) (hz : 1 < z) :
      (primeInterSieve x y z ).siftedSum 2 * y / Real.log z + 5 * z * (1 + Real.log z) ^ 3
      theorem BrunTitchmarsh.primesBetween_le (x y z : ) (hx : 0 < x) (hy : 0 < y) (hz : 1 < z) :
      (primesBetween x (x + y)) 2 * y / Real.log z + 6 * z * (1 + Real.log z) ^ 3