Finite-prime counting bounds and comparison with the Euler product density.
Helper: localDensityProduct is non-negative (product of non-negative factors).
Helper: From count_bounds + validResidues_card_eq_mul, get the real-valued bounds.
Finite-prime counts differ from the expected local-density main term by at most the modulus.
For any ε > 0, the tail contribution from primes p > y to the joint density (measuring how much the finite product differs from the infinite product) can be made arbitrarily small by choosing y large enough. Uses jointSquarefreeDensity_multipliable to ensure convergence.
Upper bound: For any S, C(X) ≤ #{N ≤ X : N satisfies S-conditions} since C(X) imposes more constraints. Combined with count_finite_prime_approx, this gives limsup C(X)/X ≤ D(b,T).
The primes p ≤ n, packaged as a Finset Nat.Primes.
Equations
- One or more equations did not get rendered due to their size.