All nonnegative integers up to N in the specified residue class, not a prime-counting proxy. The residue need not be reduced or canonical.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuAPCarrier N q l = {n ∈ Finset.range (N + 1) | n ≡ l [MOD q]}
Instances For
theorem
MathlibNt.SieveTheory.LiuWeight.primesInAPBelow_eq_divisor_card
(N a q l : ℕ)
(ha : 0 < a)
:
AnalyticNumberTheory.Sieve.primesInAPBelow N a q l = {n ∈ liuAPCarrier N q l | a ∈ n.divisors ∧ Nat.Prime (n / a)}.card
Positive-a product-fibre bijection for the literal production prime count.
Literal counting part of the source interval sum; no change to its Li term.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuCoprimeIntervalCount N z y A₁ A₂ q l = ∑ a ∈ Finset.Ioc A₁ A₂, if a.Coprime q then MathlibNt.SieveTheory.LiuWeight.liuWeight N z y a * ↑(AnalyticNumberTheory.Sieve.primesInAPBelow N a q l) else 0
Instances For
Product-fibre coefficient retaining both the interval and gcd restrictions.
Equations
Instances For
theorem
MathlibNt.SieveTheory.LiuWeight.liuCoprimeIntervalCount_eq_sum_betaInterval
(N z y A₁ A₂ q l : ℕ)
:
Exact finite regrouping, valid without a reduced-residue assumption.
Removing nonnegative interval/gcd filters can only increase a fibre.
theorem
MathlibNt.SieveTheory.LiuWeight.liuCoprimeIntervalCount_le_three_mul_div_add_one
(N z y A₁ A₂ q l : ℕ)
:
Whole-a counting bound: no termwise error triangle inequality.
theorem
MathlibNt.SieveTheory.LiuWeight.liuCoprimeIntervalCount_le_three_mul_real_div_add_one
(N z y A₁ A₂ q l : ℕ)
(hq : 0 < q)
:
Real-division form, for every positive modulus and arbitrary residue.