The upper bound #
The main argument, with the two prime-number inputs (a Chebyshev lower bound for θ and a
lower bound for the number of primes in (q, K q]) taken as the hypothesis PrimeInput.
These are discharged from Mathlib's Chebyshev file in Primes.lean.
theorem
RunsOfMultiples.fibre_bound
(S : Finset ℕ)
(hS : ∀ a ∈ S, 0 < a)
{K : ℕ}
(hK : 1 ≤ K)
{q₀ : ℕ}
(hgap : ∀ (q : ℕ), q₀ ≤ q → ↑q ^ (3 / 4) ≤ ↑(Finset.filter Nat.Prime (Finset.Ioc q (K * q))).card)
{Q₀ : ℝ}
(hQ₀1 : 1 ≤ Q₀)
(hQ₀q₀ : ↑q₀ ≤ Q₀)
(hQ₀ : ∀ (q : ℕ), Q₀ ≤ ↑q → Real.log ↑q * Real.log ↑S.card ≤ ↑q ^ (1 / 4))
{q : ℕ}
(hq : Nat.Prime q)
(c : ℕ →₀ ℕ)
:
The per-fibre estimate: weight log q on the pairs (a, q) with a ∈ A (K q).
theorem
RunsOfMultiples.prime_bound
(S : Finset ℕ)
(hS : ∀ a ∈ S, 0 < a)
{K : ℕ}
(hK : 1 ≤ K)
{q₀ : ℕ}
(hgap : ∀ (q : ℕ), q₀ ≤ q → ↑q ^ (3 / 4) ≤ ↑(Finset.filter Nat.Prime (Finset.Ioc q (K * q))).card)
{Q₀ : ℝ}
(hQ₀1 : 1 ≤ Q₀)
(hQ₀q₀ : ↑q₀ ≤ Q₀)
(hQ₀ : ∀ (q : ℕ), Q₀ ≤ ↑q → Real.log ↑q * Real.log ↑S.card ≤ ↑q ^ (1 / 4))
{q : ℕ}
(hq : Nat.Prime q)
:
Summing the fibre estimate over the fibres of the q-smooth part.
The upper bound in asymptotic form, given the prime-number input.