Rosser's linear sieve, combinatorial part ([I71, §2], k = 1) #
rosserSet lower y z: the supportsD⁻(lower = true) andD⁺(lower = false) of Rosser'sβ = 2sieve, defined recursively byD^± (y, z) = {1} ∪ ⋃_{p < z} p · D^∓ (y / p, p), whereD⁺only admitsp³ < y.rosserSieve_le_siftIndicator_le: the sieve property∑_{d ∈ D⁻, d ∣ m} μ(d) ≤ [(m, P(z)) = 1] ≤ ∑_{d ∈ D⁺, d ∣ m} μ(d), from Buchstab's identity.rosserMain lower y z = ∑_{d ∈ D^±} μ(d)/dand the depth-truncated deficitsfail, withR(z) - rosserMain true y z = fail true r y zandrosserMain false y z - R(z) = fail false r y zforr > π(z)(fail_eq_of_card_lt);R(z) = 1 - ∑_{p < z} R(p)/pisR_eq.card_rosserSet,card_filter_rosserSet_succ: the counting recursions ([I71, Lemma 17]).
The sets D^± #
Rosser's sieve support (β = 2, [I71, §2]): rosserSet true y z is D⁻ and
rosserSet false y z is D⁺. Equivalently d = p₁ ⋯ p_l with z > p₁ > ⋯ > p_l prime and
p₁ ⋯ p_m p_m² < y for every m ≤ l which is even (for D⁻) or odd (for D⁺).
Equations
- One or more equations did not get rendered due to their size.
Instances For
Depth-truncated counts ([I71, Lemma 17]): the elements of rosserSet with at most n + 1
prime factors.
Main terms #
∑_{d ∈ D^±} μ(d) / d.
Equations
- IwaniecLinearSieve.rosserMain lower y z = ∑ d ∈ IwaniecLinearSieve.rosserSet lower y z, ↑(ArithmeticFunction.moebius d) / ↑d
Instances For
The sieve property #
1 if no prime p < z divides m, and 0 otherwise.
Equations
- IwaniecLinearSieve.siftIndicator z m = if ∀ p ∈ IwaniecLinearSieve.primesLT z, ¬p ∣ m then 1 else 0
Instances For
Buchstab's identity for the indicator: [(m, P(z)) = 1] = 1 - ∑_{p < z, p ∣ m} [(m, P(p)) = 1],
i.e. [I71, (2.3)] for a single integer.
For m ∣ P(z), the indicator is [m = 1].
∑_{d ∈ D^±, d ∣ m} μ(d).
Equations
- IwaniecLinearSieve.rosserSieve lower y z m = ∑ d ∈ IwaniecLinearSieve.rosserSet lower y z with d ∣ m, ArithmeticFunction.moebius d
Instances For
The sieve property of Rosser's weights, for every m:
∑_{d ∈ D⁻, d ∣ m} μ(d) ≤ [(m, P(z)) = 1] ≤ ∑_{d ∈ D⁺, d ∣ m} μ(d).
The sieve property for divisors of P(z):
∑_{d ∈ D⁻, d ∣ m} μ(d) ≤ [m = 1] ≤ ∑_{d ∈ D⁺, d ∣ m} μ(d).
The deficits R(z) - ∑_{D⁻} μ(d)/d and ∑_{D⁺} μ(d)/d - R(z) #
Depth-truncated deficits ([I71, (2.9), (2.10)] with k = 1): fail true r y z and
fail false r y z are R(z) - ∑_{d ∈ D⁻} μ(d)/d and ∑_{d ∈ D⁺} μ(d)/d - R(z) computed to
depth r.
Equations
- One or more equations did not get rendered due to their size.
- IwaniecLinearSieve.fail x✝² 0 x✝¹ x✝ = 0
- IwaniecLinearSieve.fail true r.succ x✝¹ x✝ = ∑ p ∈ IwaniecLinearSieve.primesLT x✝, IwaniecLinearSieve.fail false r (x✝¹ / ↑p) ↑p / ↑p