Documentation

MathlibNt.SieveTheory.LinearSieve.LevelSupported.Q1LevelSupportedSieve

A level-supported upper sieve for the count #

This file keeps the level restriction in the finite object that is estimated: we first majorize each corrected candidate fibre by a Selberg square, and only then expand it into reduced-residue progressions. Thus the distribution input below is a cutoff-supported signed aggregate, not the obsolete full positive sum q1ErrorTermSum.

The analytic shape is the one used in Liu 2022, th-mvt, lines 137--151, with the Bombieri--Vinogradov input in lines 81--86: a level-supported Selberg square is expanded before a signed reduced-residue mean-value estimate is applied. The producer contract at the end deliberately separates the sieve fundamental lemma from the ∀ A ∃ B(A) weighted Pan/BV theorem; the non-reduced correction and the floor-safe admissible level are proved unconditionally in this file.

The q¹ progression discrepancy with a genuine logarithmic integral. The parameter κ records the additive normalization left implicit by Liu's notation.

Equations
Instances For

    The new discrepancy is literally the a = 1 prime-progression error with the genuine li main term.

    The natural distribution cutoff ⌊N^(1/2) / log(N)^B⌋. Keeping this as a natural number makes every later modulus restriction a finite predicate.

    Equations
    Instances For

      The selected fixed q¹ Selberg level. Taking the natural square root after dividing the Pan cutoff by the switching range makes the cutoff inequality floor-safe at the level of natural numbers.

      Equations
      Instances For

        Divisors of the corrected sifting product which survive the explicit Selberg level L.

        Equations
        Instances For

          Membership in the finite level carrier exposes both its sieve support and its numerical level.

          The reciprocal-totient bounding sieve on the corrected Chen sifting product. Unlike Liu's source sieve, its prime support is exactly the corrected product used by the q¹ candidate condition.

          Equations
          Instances For

            The lcm of two level divisors remains below the square level.

            A raw Selberg weight supported on q1LevelCarrier. The upper-sieve majorization itself is supplied below as an analytic input; this structure records precisely its finite support, normalization, and boundedness.

            Instances For

              The cutoff-parameterized optimal Selberg weight on the corrected Chen sifting product.

              Equations
              Instances For

                Once the cutoff lies below the corrected prime threshold, the q¹ denominator is exactly the established squarefree-coprime arithmetic sum. This is the bridge to the uniform convolution and Euler-error estimates.

                Uniform denominator reduction at the corrected q¹ level. The main term retains the genuine Liu singular series; conversion to the finite truncated normalization is intentionally deferred.

                The finite divisor sum whose square is the upper-sieve majorant.

                Equations
                Instances For

                  The pre-sieving fibre for one switching modulus. It contains all base primes, before the corrected small-prime sieve is imposed.

                  Equations
                  Instances For

                    The double-sum expansion of q1LevelSquareMajorant. The following theorem proves that this is the literal finite expansion, with no asymptotic or discarded terms.

                    Equations
                    Instances For

                      Each corrected candidate in a switching fibre contributes one to the level-supported Selberg square, while all other pre-sieving points contribute a nonnegative square.

                      Reduced switching moduli whose full Selberg square remains inside the explicit Pan/Bombieri--Vinogradov cutoff.

                      Equations
                      Instances For

                        The non-reduced switching moduli. They are separated rather than assigned a fictitious reduced-residue Pan error.

                        Equations
                        Instances For

                          Every switching modulus is cutoff-safe at the canonical Selberg level. This exact natural-number inequality needs no asymptotic threshold.

                          The canonical level retains a genuine Selberg scale: for each fixed Pan exponent it eventually dominates ⌊N^(1/13)⌋. The exponent 1/13 is chosen strictly below the limiting 1/12 supplied by cutoff / Y.

                          Every progression modulus in the good square lies below the explicit cutoff.

                          theorem MathlibNt.SieveTheory.SwitchingPrinciple.q1LevelGood_residue_coprime {N B L q d1 d2 : } (hq : Nat.Prime q) (hqz : correctedChenZ N q) (hgood : q q1LevelGoodSwitchingPrimes N B L) (hd1 : d1 q1LevelCarrier N L) (hd2 : d2 q1LevelCarrier N L) :
                          (N % q.lcm (d1.lcm d2)).Coprime (q.lcm (d1.lcm d2))

                          Every good progression has the reduced residue N mod m required by the Pan distribution error.

                          theorem MathlibNt.SieveTheory.SwitchingPrinciple.q1LevelGood_modulus_admissible {N B L q d1 d2 : } (hgood : q q1LevelGoodSwitchingPrimes N B L) (hd1 : d1 q1LevelCarrier N L) (hd2 : d2 q1LevelCarrier N L) :
                          q.lcm (d1.lcm d2) q1LevelModulusCutoff N B (N % q.lcm (d1.lcm d2)).Coprime (q.lcm (d1.lcm d2))

                          Good switching moduli are exactly the moduli to which the reduced-residue cutoff-supported Pan aggregate applies.

                          Every nonzero term in the divisor-weighted Pan majorant has a reduced residue and final modulus below the advertised cutoff.

                          The signed reduced-residue Pan aggregate. Absolute value is intentionally outside the complete weighted aggregate in the analytic input below.

                          Equations
                          Instances For

                            The source-shaped weighted Pan/BV majorant: absolute values are taken after the complete lambda-pair sum for each switching prime, and only then summed. In particular, the analytic input cannot use cancellation between distinct switching fibres.

                            Equations
                            Instances For

                              The source-shaped majorant controls the absolute value of the total signed Pan contribution without assuming cancellation between switching primes.

                              The cutoff-supported divisor-weighted Pan majorant. The factor 3 ^ ω(m) is exactly the lcm-fibre multiplicity for two divisors of the squarefree sifting product. This is the standard weighted form supplied by Pan's weighted mean-value theorem; unlike the old diagnostic sum, every final modulus is level-supported.

                              Equations
                              Instances For

                                Bounded level weights reduce the source-shaped lambda-pair error to the canonical 3 ^ ω(m) divisor-weighted Pan majorant.

                                The level-truncated Selberg quadratic form occurring after the switching prime is split from the Euler totient.

                                Equations
                                Instances For

                                  The q¹ quadratic is exactly the abstract Selberg main sum, with no change of carrier or local normalization.

                                  The corrected-product optimal weight attains the reciprocal of the exact truncated denominator.

                                  The exact reciprocal switching-prime factor in the q¹ main term.

                                  Equations
                                  Instances For

                                    Exact main-factor algebra. No asymptotic replacement is made: the genuine li_kappa(N - 2), the finite switching-prime reciprocal sum, and the truncated Selberg quadratic remain separate factors.

                                    For the explicit corrected-product optimizer, the q¹ main aggregate is the exact switching-prime factor divided by the truncated Selberg denominator.

                                    The good square is exactly its li(N-2)/φ(m) aggregate plus the signed Pan aggregate.

                                    The non-reduced residual is a sum of the actual candidate AP counts, not a truncation obtained by deleting terms from q1ErrorTermSum.

                                    Equations
                                    Instances For

                                      A non-reduced switching fibre contains at most the single prime p = q: from q ∣ N and q ∣ N - p one gets q ∣ p, and both are prime.

                                      The complete non-reduced residual is bounded by the number of non-reduced switching primes. This records the exact elementary correction before any asymptotic estimate of that cardinality.

                                      The non-reduced residual is already power-saving: it has at most as many terms as the switching range, and Y ≤ 2 N^(1/3).

                                      The corrected q¹ count is bounded by the good Selberg square plus the two honest residual count sums.

                                      The exact final-margin budget for the q¹ Selberg main coefficient after the printed 3.94033 / 2 contribution and the two half-unit residual allowances are reserved.

                                      Equations
                                      Instances For

                                        A concrete sharp coefficient strictly inside the final numerical budget.

                                        Equations
                                        Instances For

                                          The coefficient forced by the fixed Pan level after normalizing by the truncated singular series. Indeed, log (q1PanSelbergLevel B N) / log N tends to 1 / 12, while the switching-prime reciprocal sum tends to log (10 / 3); the exact optimal denominator therefore contributes their ratio.

                                          Equations
                                          Instances For

                                            The coefficient forced by the fixed Pan level is already larger than the entire final main-term budget. Consequently the 3.69 target cannot be proved for q1PanSelbergLevel; a different level or switching architecture is required.

                                            In particular, the explicit sharp target is smaller than the coefficient forced by the fixed Pan level.

                                            The sole scalar estimate still required after the explicit optimal weight construction. It keeps li_kappa, the exact finite reciprocal prime sum, the corrected denominator, and the truncated singular-series normalization in their native forms.

                                            Equations
                                            Instances For

                                              The finite upper-sieve input: after selecting a level-supported Selberg weight, its main aggregate has the expected q¹-scale upper bound. The theorem above shows that only the named scalar estimate remains; weight existence and finite minimization are unconditional.

                                              Equations
                                              Instances For

                                                The scalar sharp bound supplies the original upper-sieve producer with the canonical corrected-product optimizer and the same named coefficient.

                                                The sole published distributional input in this reduction: the a = 1 specialization of Pan's 3 ^ ω mean-value theorem, with reduced residues and cutoff-supported final moduli. Its quantifiers have the published order ∀ A > 0, ∃ B = B(A) (Liu 2022, th-mvt, lines 137--151). The finite theorem above proves that this is exactly the weight needed for the Selberg lambda-pair expansion; no unrestricted positive error sum is truncated.

                                                Equations
                                                Instances For

                                                  The separate non-reduced correction required because a switching prime may divide N; it is deliberately not set to zero in the Pan aggregate.

                                                  Equations
                                                  Instances For

                                                    The non-reduced input is unconditional, uniformly in the chosen level: the elementary N^(1/3) bound is smaller than every N / log(N)^A scale.

                                                    A valid level selection keeps every reduced switching fibre inside the distribution range. Thus the cutoff-failure residual is eventually empty, rather than assumed small after discarding whole fibres.

                                                    Equations
                                                    Instances For

                                                      The selected fixed q¹ Selberg level is Pan-admissible for every exponent B.

                                                      theorem MathlibNt.SieveTheory.SwitchingPrinciple.q1LevelCutoffResidual_eq_zero_of_admissible {B : } {level : } (hlevel : Q1CutoffAdmissibleLevel B level) :
                                                      ∃ (N₀ : ), ∀ (N : ), N₀ NEven Nq1LevelCutoffResidual N B (level N) = 0

                                                      An admissible level makes the actual cutoff-failure count vanish.

                                                      The level-supported weighted q¹ aggregate theorem contains exactly the two genuine analytic inputs. The explicit level is cutoff-admissible and its non-reduced residual is power-saving by the unconditional theorems above.

                                                      Equations
                                                      Instances For

                                                        The source-faithful producer contract implies exactly the q¹ count estimate used downstream. The proof uses the finite square expansion, the ∀ A ∃ B(A) reduced-residue majorant, the exact non-reduced count, and an eventually empty cutoff-failure carrier.

                                                        A designated q¹ constant extracted from the level-supported route.

                                                        Equations
                                                        Instances For

                                                          Positivity and the eventual q¹ estimate for the designated constant.