Documentation

MathlibNt.SieveTheory.LinearSieve.FiniteWeights

Finite Moebius, Selberg, and lower Rosser weights #

Finite lower and upper sieve inequalities, lower Rosser coefficients, and Euler-normalized lower density recursions.

0. Finite lower-bound sieve interface #

A sequence of coefficients is lower Möbius when its divisor sums lie below the coprimality indicator. This is the exact finite dual of Mathlib's BoundingSieve.IsUpperMoebius.

Equations
Instances For
    Inspect dependencies

    MathlibNt.SieveTheory.LinearSieve.IsLowerMoebius · compiled type and proof/definition references.

    A lower Möbius sequence gives a lower bound for the sifted sum before any asymptotic estimate is introduced.

    Inspect dependencies

    MathlibNt.SieveTheory.LinearSieve.sum_of_lowerMoebius_le_siftedSum · compiled type and proof/definition references.

    Explicit-error lower sieve inequality. Unlike the historical pointwise interfaces, the loss is the concrete finite quantity errSum muMinus.

    Inspect dependencies

    MathlibNt.SieveTheory.LinearSieve.mainSum_sub_errSum_le_siftedSum_of_lowerMoebius · compiled type and proof/definition references.

    0.1. Finite upper Selberg weights #

    A coefficient sequence has upper-sieve level support when it vanishes on divisors of P outside the strict natural-number level D.

    Equations
    Instances For
      Inspect dependencies

      MathlibNt.SieveTheory.LinearSieve.HasUpperLevelSupport · compiled type and proof/definition references.

      The upper Möbius condition restricted to divisors of a fixed finite prime product. This is the exact amount of positivity used by a finite sieve.

      Equations
      Instances For
        Inspect dependencies

        MathlibNt.SieveTheory.LinearSieve.IsUpperMoebiusOn · compiled type and proof/definition references.

        A finite upper-Möbius coefficient bounds the sifted sum from above.

        Inspect dependencies

        MathlibNt.SieveTheory.LinearSieve.siftedSum_le_sum_of_upperMoebiusOn · compiled type and proof/definition references.

        The exact finite upper-sieve remainder sum at level D.

        Equations
        Instances For
          Inspect dependencies

          MathlibNt.SieveTheory.LinearSieve.upperErrSum · compiled type and proof/definition references.

          Inspect dependencies

          MathlibNt.SieveTheory.LinearSieve.errSum_eq_upperErrSum · compiled type and proof/definition references.

          Finite upper sieve inequality with no Selberg representation: an upper Möbius certificate on divisors and level support are sufficient.

          Inspect dependencies

          MathlibNt.SieveTheory.LinearSieve.siftedSum_le_mainSum_add_upperErrSum_of_upperMoebiusOn · compiled type and proof/definition references.

          A finite Selberg upper weight records the underlying lambda, its normalization, and the level support of the resulting lambdaSquared coefficient.

          Instances For

            The explicit upper coefficient generated by a finite Selberg weight.

            Equations
            Instances For
              Inspect dependencies

              MathlibNt.SieveTheory.LinearSieve.UpperSelbergWeightsAtLevel.muPlus · compiled type and proof/definition references.

              Inspect dependencies

              MathlibNt.SieveTheory.LinearSieve.UpperSelbergWeightsAtLevel.isUpperMoebius · compiled type and proof/definition references.

              Inspect dependencies

              MathlibNt.SieveTheory.LinearSieve.UpperSelbergWeightsAtLevel.hasUpperLevelSupport · compiled type and proof/definition references.

              Finite upper Selberg inequality with the main sum and the exact level-restricted remainder sum kept separate.

              Inspect dependencies

              MathlibNt.SieveTheory.LinearSieve.siftedSum_le_mainSum_add_upperErrSum · compiled type and proof/definition references.

              0.2. Finite lower Rosser weights #

              The lower Möbius condition needed by a sieve with the fixed finite product P. Requiring it for all natural numbers, as IsLowerMoebius does, is unnecessarily strong for a finite sieve.

              Equations
              Instances For
                Inspect dependencies

                MathlibNt.SieveTheory.LinearSieve.IsLowerMoebiusOn · compiled type and proof/definition references.

                Inspect dependencies

                MathlibNt.SieveTheory.LinearSieve.sum_of_lowerMoebiusOn_le_siftedSum · compiled type and proof/definition references.

                The error sum at a natural level. It deliberately contains only d < D; this is the finite error term occurring in the lower fundamental lemma.

                Equations
                Instances For
                  Inspect dependencies

                  MathlibNt.SieveTheory.LinearSieve.lowerErrSum · compiled type and proof/definition references.

                  A coefficient sequence has level support if it vanishes outside the divisors below the level.

                  Equations
                  Instances For
                    Inspect dependencies

                    MathlibNt.SieveTheory.LinearSieve.HasLowerLevelSupport · compiled type and proof/definition references.

                    Inspect dependencies

                    MathlibNt.SieveTheory.LinearSieve.errSum_eq_lowerErrSum · compiled type and proof/definition references.

                    Finite lower sieve inequality with its error sum explicitly restricted to the level.

                    Inspect dependencies

                    MathlibNt.SieveTheory.LinearSieve.mainSum_sub_lowerErrSum_le_siftedSum · compiled type and proof/definition references.

                    The standard lower Rosser test on a finite set of distinct primes. For a prime p in an even position of the decreasing list, the filter is precisely the prefix p₁,…,p₂l; thus its test is p₁⋯p₂l₋₁ * p₂l^3 < D.

                    Equations
                    Instances For
                      Inspect dependencies

                      MathlibNt.SieveTheory.LinearSieve.LowerRosserAdmissibleSet · compiled type and proof/definition references.

                      Inspect dependencies

                      MathlibNt.SieveTheory.LinearSieve.LowerRosserAdmissible · compiled type and proof/definition references.

                      Inspect dependencies

                      MathlibNt.SieveTheory.LinearSieve.lowerRosserSetWeight · compiled type and proof/definition references.

                      Inspect dependencies

                      MathlibNt.SieveTheory.LinearSieve.Internal.sum_divisors_eq_sum_primeFactors_powerset · compiled type and proof/definition references.

                      The explicit finite lower Rosser/Jurkat coefficient. The d < D clause is part of the finite-level convention; the source admissibility test is LowerRosserAdmissible.

                      Equations
                      Instances For
                        Inspect dependencies

                        MathlibNt.SieveTheory.LinearSieve.lowerRosserWeight · compiled type and proof/definition references.

                        theorem MathlibNt.SieveTheory.LinearSieve.lowerRosser_insert_min_active_iff_cube_lt {D q : ℕ} {s : Finset ℕ} (hqs : q ∉ s) (hqprime : Nat.Prime q) (hqmin : ∀ p ∈ s, q ≤ p) (hodd : ¬Even s.card) (hs : s.prod id < D ∧ LowerRosserAdmissibleSet D s) :

                        For an active odd set, adjoining a new least prime remains active exactly until the cubic lower-Rosser cutoff q ^ 3 * ∏ s < D is crossed.

                        Inspect dependencies

                        MathlibNt.SieveTheory.LinearSieve.lowerRosser_insert_min_active_iff_cube_lt · compiled type and proof/definition references.

                        Inspect dependencies

                        MathlibNt.SieveTheory.LinearSieve.LowerRosserBoundarySet · compiled type and proof/definition references.

                        theorem MathlibNt.SieveTheory.LinearSieve.lowerRosserBoundarySet_iff_cube_le {D q : ℕ} {s : Finset ℕ} (hqs : q ∉ s) (hqprime : Nat.Prime q) (hqmin : ∀ p ∈ s, q ≤ p) :

                        The abstract odd lower-Rosser boundary is exactly the cubic shell D ≤ q ^ 3 * ∏ s once q is the new least prime.

                        Inspect dependencies

                        MathlibNt.SieveTheory.LinearSieve.lowerRosserBoundarySet_iff_cube_le · compiled type and proof/definition references.

                        theorem MathlibNt.SieveTheory.LinearSieve.lowerRosserSetWeight_insert_min_pair (nu : ℕ → ℝ) {D q : ℕ} {s : Finset ℕ} (hqs : q ∉ s) (hqprime : Nat.Prime q) (hqmin : ∀ p ∈ s, q ≤ p) (hodd : ¬Even s.card) (hs : s.prod id < D ∧ LowerRosserAdmissibleSet D s) :

                        Exact lower-Rosser one-prime pairing on an active odd tail. The ordinary Euler factor survives away from the cubic shell, while crossing the shell contributes one negative boundary term.

                        Inspect dependencies

                        MathlibNt.SieveTheory.LinearSieve.lowerRosserSetWeight_insert_min_pair · compiled type and proof/definition references.

                        The finite lower Rosser density sum over subsets of a prescribed prime set. This is the lower-sieve counterpart of upperRosserSetDensitySum.

                        Equations
                        Instances For
                          Inspect dependencies

                          MathlibNt.SieveTheory.LinearSieve.lowerRosserSetDensitySum · compiled type and proof/definition references.

                          theorem MathlibNt.SieveTheory.LinearSieve.lowerRosserSetWeight_insert_min_pair_all (nu : ℕ → ℝ) {D q : ℕ} {s : Finset ℕ} (hqs : q ∉ s) (hqprime : Nat.Prime q) (hqD : q < D) (hqmin : ∀ p ∈ s, q ≤ p) :

                          Exact one-prime pairing, including inactive and even tails.

                          Inspect dependencies

                          MathlibNt.SieveTheory.LinearSieve.lowerRosserSetWeight_insert_min_pair_all · compiled type and proof/definition references.

                          theorem MathlibNt.SieveTheory.LinearSieve.lowerRosserSetDensitySum_insert_min (nu : ℕ → ℝ) {D q : ℕ} {P : Finset ℕ} (hqP : q ∉ P) (hqprime : Nat.Prime q) (hqD : q < D) (hqmin : ∀ p ∈ P, q ≤ p) :
                          lowerRosserSetDensitySum nu D (insert q P) = (1 - nu q) * lowerRosserSetDensitySum nu D P - nu q * ∑ s ∈ P.powerset with (LowerRosserBoundarySet D q) s, ∏ p ∈ s, nu p

                          Adjoining a new least prime gives the exact Euler factor, minus precisely its odd cubic-boundary contribution.

                          Inspect dependencies

                          MathlibNt.SieveTheory.LinearSieve.lowerRosserSetDensitySum_insert_min · compiled type and proof/definition references.

                          theorem MathlibNt.SieveTheory.LinearSieve.lowerRosserSetDensityRatio_insert_min (nu : ℕ → ℝ) {D q : ℕ} {P : Finset ℕ} (hq : q ∉ P) (hqprime : Nat.Prime q) (hqD : q < D) (hqmin : ∀ p ∈ P, q ≤ p) (hqFactor : 1 - nu q ≠ 0) (hPFactor : ∏ p ∈ P, (1 - nu p) ≠ 0) :
                          lowerRosserSetDensitySum nu D (insert q P) / ∏ p ∈ insert q P, (1 - nu p) = lowerRosserSetDensitySum nu D P / ∏ p ∈ P, (1 - nu p) - nu q / (1 - nu q) * ((∑ s ∈ P.powerset with (LowerRosserBoundarySet D q) s, ∏ p ∈ s, nu p) / ∏ p ∈ P, (1 - nu p))

                          Euler-product-normalized form of the one-prime lower recurrence. This is pure finite algebra; the nonzero assumptions are kept explicit and no limiting or contraction statement is used.

                          Inspect dependencies

                          MathlibNt.SieveTheory.LinearSieve.lowerRosserSetDensityRatio_insert_min · compiled type and proof/definition references.

                          Finite Euler-normalized lower recursion #

                          This deliberately stays at one finite recursion step. In particular it does not package an all-depth tail or introduce a continuous majorant.

                          The lower Rosser density on the relative Euler-product scale.

                          Equations
                          Instances For
                            Inspect dependencies

                            MathlibNt.SieveTheory.LinearSieve.lowerRosserSetRelativeDensity · compiled type and proof/definition references.

                            The finite odd-boundary correction on the same relative Euler-product scale as lowerRosserSetRelativeDensity.

                            Equations
                            Instances For
                              Inspect dependencies

                              MathlibNt.SieveTheory.LinearSieve.lowerRosserBoundaryRelativeDensity · compiled type and proof/definition references.

                              theorem MathlibNt.SieveTheory.LinearSieve.lowerRosserSetRelativeDensity_insert_min (nu : ℕ → ℝ) {D q : ℕ} {P : Finset ℕ} (hqP : q ∉ P) (hqprime : Nat.Prime q) (hqD : q < D) (hqmin : ∀ p ∈ P, q ≤ p) (hqFactor : 1 - nu q ≠ 0) (hPFactor : ∏ p ∈ P, (1 - nu p) ≠ 0) :

                              Exact normalized successor identity when a new least prime is adjoined. The lower recursion subtracts, rather than adds, its odd-boundary mass.

                              Inspect dependencies

                              MathlibNt.SieveTheory.LinearSieve.lowerRosserSetRelativeDensity_insert_min · compiled type and proof/definition references.

                              theorem MathlibNt.SieveTheory.LinearSieve.lowerRosserBoundaryRelativeDensity_nonneg (nu : ℕ → ℝ) {D q : ℕ} {P : Finset ℕ} (hnu : ∀ p ∈ P, 0 ≤ nu p) (hnuOne : ∀ p ∈ P, nu p < 1) :

                              A finite lower boundary has nonnegative relative density under the local sieve bounds 0 ≤ nu p < 1.

                              Inspect dependencies

                              MathlibNt.SieveTheory.LinearSieve.lowerRosserBoundaryRelativeDensity_nonneg · compiled type and proof/definition references.

                              theorem MathlibNt.SieveTheory.LinearSieve.lowerRosserSetRelativeDensity_insert_min_le (nu : ℕ → ℝ) {D q : ℕ} {P : Finset ℕ} (hqP : q ∉ P) (hqprime : Nat.Prime q) (hqD : q < D) (hqmin : ∀ p ∈ P, q ≤ p) (hnuq : 0 ≤ nu q) (hnuqOne : nu q < 1) (hnu : ∀ p ∈ P, 0 ≤ nu p) (hnuOne : ∀ p ∈ P, nu p < 1) :

                              Monotone normalized successor interface: adjoining a least prime can only decrease the relative lower density when 0 ≤ nu < 1.

                              Inspect dependencies

                              MathlibNt.SieveTheory.LinearSieve.lowerRosserSetRelativeDensity_insert_min_le · compiled type and proof/definition references.

                              Terminal base for the finite normalized lower recursion.

                              Inspect dependencies

                              MathlibNt.SieveTheory.LinearSieve.lowerRosserSetRelativeDensity_empty · compiled type and proof/definition references.

                              theorem MathlibNt.SieveTheory.LinearSieve.lowerRosserSetDensitySum_insert_min_cube (nu : ℕ → ℝ) {D q : ℕ} {P : Finset ℕ} (hqP : q ∉ P) (hqprime : Nat.Prime q) (hqD : q < D) (hqmin : ∀ p ∈ P, q ≤ p) :
                              lowerRosserSetDensitySum nu D (insert q P) = (1 - nu q) * lowerRosserSetDensitySum nu D P - nu q * ∑ s ∈ P.powerset with ¬Even s.card ∧ s.prod id < D ∧ LowerRosserAdmissibleSet D s ∧ D ≤ s.prod id * q ^ 3, ∏ p ∈ s, nu p

                              Cubic-shell form of lowerRosserSetDensitySum_insert_min.

                              Inspect dependencies

                              MathlibNt.SieveTheory.LinearSieve.lowerRosserSetDensitySum_insert_min_cube · compiled type and proof/definition references.

                              The cubic-boundary mass lost when the new least prime q is inserted.

                              Equations
                              Instances For
                                Inspect dependencies

                                MathlibNt.SieveTheory.LinearSieve.lowerRosserBoundaryMass · compiled type and proof/definition references.

                                The total (unnormalized) boundary loss in a finite sequence of least-prime insertions. Earlier losses are multiplied by all Euler factors inserted later.

                                Equations
                                Instances For
                                  Inspect dependencies

                                  MathlibNt.SieveTheory.LinearSieve.lowerRosserBoundaryAccum · compiled type and proof/definition references.

                                  theorem MathlibNt.SieveTheory.LinearSieve.lowerRosserSetDensitySum_foldr_insert (nu : ℕ → ℝ) (D : ℕ) (P : Finset ℕ) (qs : List ℕ) (hprime : ∀ q ∈ qs, Nat.Prime q) (hD : ∀ q ∈ qs, q < D) (hordered : List.Pairwise (fun (x1 x2 : ℕ) => x1 < x2) qs) (hdisjoint : ∀ q ∈ qs, q ∉ P) (hbase : ∀ q ∈ qs, ∀ p ∈ P, q ≤ p) :

                                  Exact finite iteration of the lower Rosser density recurrence.

                                  The list is ordered increasingly, so foldr insert P inserts its largest prime first and its smallest prime last. The formula uses no division by Euler factors; consequently it needs no positivity or nonvanishing hypothesis on 1 - nu q.

                                  Inspect dependencies

                                  MathlibNt.SieveTheory.LinearSieve.lowerRosserSetDensitySum_foldr_insert · compiled type and proof/definition references.

                                  The BoundingSieve.mainSum of the explicit lower Rosser coefficient is exactly its finite subset density sum. This is the first finite transport edge from Suzuki's Rosser--Iwaniec coefficient to the density recursion.

                                  Inspect dependencies

                                  MathlibNt.SieveTheory.LinearSieve.mainSum_lowerRosserWeight_eq_setDensitySum · compiled type and proof/definition references.

                                  Inspect dependencies

                                  MathlibNt.SieveTheory.LinearSieve.abs_lowerRosserWeight_le_one · compiled type and proof/definition references.

                                  Inspect dependencies

                                  MathlibNt.SieveTheory.LinearSieve.lowerRosserWeight_dvd · compiled type and proof/definition references.

                                  Inspect dependencies

                                  MathlibNt.SieveTheory.LinearSieve.lowerRosserWeight_lt_level · compiled type and proof/definition references.

                                  Inspect dependencies

                                  MathlibNt.SieveTheory.LinearSieve.lowerRosserWeight_hasLowerLevelSupport · compiled type and proof/definition references.

                                  A finite Rosser certificate is the combinatorial toggle-min conclusion: even admissible subsets inject into odd admissible subsets. Its consequence is exactly the lower divisor-sum inequality needed by BoundingSieve.

                                  Equations
                                  Instances For
                                    Inspect dependencies

                                    MathlibNt.SieveTheory.LinearSieve.IsLowerRosserCertificate · compiled type and proof/definition references.

                                    The explicit lower Rosser weight is an unconditional finite lower-Möbius certificate for a squarefree prime product whose prime factors lie below the level.

                                    Inspect dependencies

                                    MathlibNt.SieveTheory.LinearSieve.lowerRosserWeight_certificate · compiled type and proof/definition references.

                                    A certified lower Rosser weight supplies the finite divisor-sum lower bound, while retaining the explicit source formula above.

                                    Inspect dependencies

                                    MathlibNt.SieveTheory.LinearSieve.lowerRosserWeight_divisor_sum · compiled type and proof/definition references.