Documentation

MathlibNt.SieveTheory.Arithmetic.SingularSeries

MathlibNt.SieveTheory.SingularSeries #

Sieve-normalized finite Goldbach factor #

This file retains the finite factor used by the legacy Chen sieve development. It is not Liu's source singular series: it includes the local factor at p = 2, and singularSeries N is truncated at N rather than an infinite product.

The corresponding odd-prime infinite expression in the literature is

š”–_odd(N) = Ī _{p | N, p > 2} (p-1)/(p-2) Ā· Ī _{p > 2} (1 - 1/(p-1)²).

The second product is the twin-prime constant Cā‚‚ ā‰ˆ 0.66016...

For even N, the local factors used in this file simplify to:

References:

1. Local factors #

The local factor of the singular series at a prime p.

For p > 2:

  • if p | N: g(p, N) = (p-1)/(p-2) Ā· (1 - 1/(p-1)²) = p/(p-1);
  • if p ∤ N: g(p, N) = (1 - 1/(p-1)²) = p(p-2)/(p-1)².

The factor at p = 2 is handled separately (it is 2 for even N).

Equations
Instances For

    The factor at p = 2 is 2 for even N.

    The factor at p = 2 is 1 for odd N.

    theorem MathlibNt.SieveTheory.SingularSeries.localFactor_of_dvd {p N : ā„•} (_hp : Nat.Prime p) (hp2 : 2 < p) (hpdvd : p ∣ N) :
    localFactor p N = ↑p / (↑p - 1)

    For a prime p > 2 with p | N, the factor is p/(p-1).

    theorem MathlibNt.SieveTheory.SingularSeries.localFactor_of_not_dvd {p N : ā„•} (_hp : Nat.Prime p) (hp2 : 2 < p) (hpn : ¬p ∣ N) :
    localFactor p N = ↑p * (↑p - 2) / (↑p - 1) ^ 2

    For a prime p > 2 with p ∤ N, the factor is p(p-2)/(p-1)².

    2. Positivity of local factors #

    All local factors at primes are positive.

    3. Truncated singular series #

    The truncated singular series is the product of local factors at primes p ≤ z:

    š”–(N, z) = Ī _{p ≤ z, p.Prime} localFactor p N.

    For fixed positive N, the limit as z → āˆž is the corresponding sieve-normalized infinite product. This is distinct from the finite proxy singularSeries N, which uses z = N; no convergence theorem is asserted by this definition.

    Equations
    Instances For

      The truncated singular series is positive, since all its factors are positive.

      4. The finite singular-series proxy #

      Legacy finite sieve-normalized proxy, obtained by truncating at N.

      This is deliberately kept for compatibility with the existing Chen APIs. It is not Liu's odd-prime infinite singular series.

      Equations
      Instances For

        The finite singular-series proxy is positive.

        5. Explicit formula in the even case #

        For even N, the singular series contains the factor 2 at p = 2; the truncation at 2 consists of this factor alone.

        6. Upper bounds for local factors #

        theorem MathlibNt.SieveTheory.SingularSeries.localFactor_dvd_le {p N : ā„•} (hp : Nat.Prime p) (hp2 : 2 < p) (hpdvd : p ∣ N) :

        For a prime p > 2 with p | N, the factor p/(p-1) ≤ 3/2, since p ≄ 3.

        For a prime p > 2 with p ∤ N, the factor p(p-2)/(p-1)² < 1, since p ≄ 3.

        7. Bounds for the singular series (elementary proofs) #

        A positive lower bound for the finite singular series: š”–(N) ≄ 1 for every even N ≄ 2.

        Elementary proof: for even N, with all prime products restricted to p ≤ N, š”–(N) = 2 Ā· āˆ{p|N, p>2} p/(p-1) Ā· āˆ{p∤N, p>2} p(p-2)/(p-1)². Here p/(p-1) ≄ 1, and the prime product āˆ{2<p≤N} (1 - 1/(p-1)²) is at least āˆ{n=2}^{N-1} (1 - 1/n²) = N/(2(N-1)) ≄ 1/2 by telescoping. Thus š”–(N) ≄ 2 Ā· 1 Ā· 1/2 = 1.

        Upper bound for the truncated definition: š”–(N) ≤ 2^ω(N) ≤ 2N.

        A bound š”–(N) ≤ C with an absolute constant C is false: along primorials (products of all primes up to x, such as 2Ā·3Ā·5Ā·7Ā·...), the factors āˆ_{p|N} p/(p-1) grow on the order of log log N, while the remaining product stays bounded away from zero, so š”–(N) is unbounded. The elementary bound uses local factors ≤ 2 when p | N and ≤ 1 otherwise. It gives š”–(N) ≤ 2^ω(N), and hence also the looser bound š”–(N) ≤ 2^{ω(N)+1} ≤ 2N.

        8. Mathematical scope #