Documentation

MathlibNt.SieveTheory.LinearSieve.UpperRosserDensity

Finite upper Rosser density and certificates #

Logarithmic realization of discrete chains, fixed-depth density recursions, Euler-normalized boundary identities, and upper weight certificates.

theorem MathlibNt.SieveTheory.LinearSieve.UpperRosserBoundaryChain.logarithmicCoordinates_mem {z Δ s : } {q : } {l : List } (hz : 1 < z) ( : 0 < Δ) (hs : s = Real.log Δ / Real.log z) (hq : 0 < q) (hl : pl, 0 < p) (hchain : UpperRosserBoundaryChain (Δ⌋₊ + 1) q l) :

A discrete Rosser boundary chain lies in its exact logarithmic-coordinate region. The floor in the natural level weakens strict prefix inequalities to closed faces, while making the terminal shell strict.

The finite upper Rosser density sum over subsets of a prescribed prime set.

Equations
Instances For

    Initial value for the finite upper Rosser density recursion.

    theorem MathlibNt.SieveTheory.LinearSieve.upperRosserSetDensitySum_insert (nu : ) (D q : ) (P : Finset ) (hq : qP) :
    upperRosserSetDensitySum nu D (insert q P) = sP.powerset, (upperRosserSetWeight D s + nu q * upperRosserSetWeight D (insert q s)) * ps, nu p

    Exact one-prime recursion for the finite upper Rosser density sum. It is the finite combinatorial form of the Buchstab decomposition: subsets not containing q and subsets containing q are paired over P.powerset.

    theorem MathlibNt.SieveTheory.LinearSieve.upperRosserSetDensitySum_min_recursion (nu : ) (D : ) {P : Finset } (hP : P.Nonempty) :
    upperRosserSetDensitySum nu D P = s(P.erase (P.min' hP)).powerset, (upperRosserSetWeight D s + nu (P.min' hP) * upperRosserSetWeight D (insert (P.min' hP) s)) * ps, nu p

    Cardinality-decreasing form of the finite Buchstab recursion, obtained by peeling off the least prime in a nonempty finite set.

    theorem MathlibNt.SieveTheory.LinearSieve.upperRosser_insert_min_active_iff_cube_lt {D q : } {s : Finset } (hqs : qs) (hqprime : Nat.Prime q) (hqmin : ps, q p) (heven : Even s.card) (hs : s.prod id < D UpperRosserAdmissibleSet D s) :

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

    theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundarySet_iff_cube_le {D q : } {s : Finset } (hqs : qs) (hqprime : Nat.Prime q) (hqmin : ps, q p) :

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

    theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundarySet_iff_sorted_chain {D q : } {s : Finset } (hqs : qs) (hqprime : Nat.Prime q) (hqmin : ps, q p) :
    UpperRosserBoundarySet D q s UpperRosserBoundaryChain D q (s.sort fun (x1 x2 : ) => x1 x2)

    A boundary subset is equivalently its canonical decreasing Rosser chain. The statement retains all alternating-prefix inequalities, rather than incorrectly truncating boundary tails to cardinality zero or two.

    Canonical decreasing-list representatives of all boundary subsets of P. Unlike a powerset, this carrier exposes the chain length and indexed prefixes used by the Buchstab iteration.

    Equations
    Instances For
      theorem MathlibNt.SieveTheory.LinearSieve.mem_upperRosserBoundaryChains_iff {D q : } {P : Finset } (hqs : qP) (hqprime : Nat.Prime q) (hqmin : pP, q p) {l : List } :

      Membership in the canonical boundary-chain carrier is exactly strict decrease, containment in P, and the explicit arbitrary-depth Rosser region.

      The selected density mass of upper Rosser boundary chains of exact length 2k. This is the discrete quantity compared depth-by-depth with upperRosserBoundaryMassAux.

      Equations
      Instances For

        The exact fixed-depth boundary density on the relative Euler-product scale. Keeping the quotient intact is essential in the depth tail: replacing its denominator by a pointwise local-product majorant loses the full sieve-product factor required by the fundamental lemma.

        Equations
        Instances For

          The exact relative weight for peeling the two largest selected primes. The quotient of Euler products retains all primes skipped before the residual carrier p < p₁; no local-product estimate has yet been applied.

          Equations
          Instances For
            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundaryRelativePairTransition_mul_eulerProduct (nu : ) {P : Finset } {p₀ p₁ : } (hfactor : pP, 1 - nu p 0) :
            upperRosserBoundaryRelativePairTransition nu P p₀ p₁ * pP, (1 - nu p) = nu p₀ * nu p₁ * pP with p < p₁, (1 - nu p)

            Restoring the ambient Euler product cancels a relative pair transition exactly, leaving the selected pair and the residual Euler product.

            theorem MathlibNt.SieveTheory.LinearSieve.mem_upperRosserBoundaryChains_fixedDepth_succ_iff {D q : } {P : Finset } (hqs : qP) (hqprime : Nat.Prime q) (hprime : pP, Nat.Prime p) (hqmin : pP, q p) {l : List } (k : ) :
            l {lupperRosserBoundaryChains D q P | l.length = 2 * (k + 1)} p₀P, p₁P, p₁ < p₀ p₀ ^ 3 < D ∃ (xs : List ), l = p₀ :: p₁ :: xs xs {xsupperRosserBoundaryChains (D ⌈/⌉ (p₀ * p₁)) q ({pP | p < p₁}) | xs.length = 2 * k}

            Exact carrier recursion for positive-depth upper Rosser boundary chains. The first two entries determine a residual chain at the ceiling-divided level, with its ambient primes restricted below the second entry.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundaryChainsFixedDepthDensity_succ (nu : ) {D q : } {P : Finset } (hqs : qP) (hqprime : Nat.Prime q) (hprime : pP, Nat.Prime p) (hqmin : pP, q p) (k : ) :
            upperRosserBoundaryChainsFixedDepthDensity nu D q P (k + 1) = p₀P, p₁P with p₁ < p₀ p₀ ^ 3 < D, nu p₀ * nu p₁ * upperRosserBoundaryChainsFixedDepthDensity nu (D ⌈/⌉ (p₀ * p₁)) q ({pP | p < p₁}) k

            Exact finite Buchstab recursion for the selected density mass. A positive depth peels the two largest selected primes and leaves the same boundary mass at the ceiling-divided level, with all remaining primes below the second one.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundaryChainsFixedDepthRelativeDensity_succ (nu : ) {D q : } {P : Finset } (hqs : qP) (hqprime : Nat.Prime q) (hprime : pP, Nat.Prime p) (hqmin : pP, q p) (hfactor : pP, 1 - nu p 0) (k : ) :
            upperRosserBoundaryChainsFixedDepthRelativeDensity nu D q P (k + 1) = p₀P, p₁P with p₁ < p₀ p₀ ^ 3 < D, upperRosserBoundaryRelativePairTransition nu P p₀ p₁ * upperRosserBoundaryChainsFixedDepthRelativeDensity nu (D ⌈/⌉ (p₀ * p₁)) q ({pP | p < p₁}) k

            Exact finite Buchstab--Rosser recursion on the relative Euler-product scale. The transition keeps the quotient between the residual and ambient Euler products, and therefore retains every skipped-prime inverse factor.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundaryRelativePairTransition_nonneg (nu : ) {P : Finset } {p₀ p₁ : } (hp₀ : p₀ P) (hp₁ : p₁ P) (hnu : pP, 0 nu p) (hnuOne : pP, nu p 1) :

            Relative pair transitions are nonnegative under the natural local-density bounds.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundaryChainsFixedDepthRelativeDensity_succ_le (nu : ) {D q : } {P : Finset } (hqs : qP) (hqprime : Nat.Prime q) (hprime : pP, Nat.Prime p) (hqmin : pP, q p) (hfactor : pP, 1 - nu p 0) (hnu : pP, 0 nu p) (hnuOne : pP, nu p 1) (F : ) (k : ) (hF : p₀P, p₁P, p₁ < p₀p₀ ^ 3 < DupperRosserBoundaryChainsFixedDepthRelativeDensity nu (D ⌈/⌉ (p₀ * p₁)) q ({pP | p < p₁}) k F p₀ p₁) :
            upperRosserBoundaryChainsFixedDepthRelativeDensity nu D q P (k + 1) p₀P, p₁P with p₁ < p₀ p₀ ^ 3 < D, upperRosserBoundaryRelativePairTransition nu P p₀ p₁ * F p₀ p₁

            Monotone interface for the relative Buchstab--Rosser recursion. Any majorant for the residual relative state propagates through the exact, nonnegative skipped-prime transitions.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundaryChainsFixedDepthDensity_succ_le (nu : ) {D q : } {P : Finset } (hqs : qP) (hqprime : Nat.Prime q) (hprime : pP, Nat.Prime p) (hqmin : pP, q p) (hnu : pP, 0 nu p) (F : ) (k : ) (hF : p₀P, p₁P, p₁ < p₀p₀ ^ 3 < DupperRosserBoundaryChainsFixedDepthDensity nu (D ⌈/⌉ (p₀ * p₁)) q ({pP | p < p₁}) k F p₀ p₁) :
            upperRosserBoundaryChainsFixedDepthDensity nu D q P (k + 1) p₀P, p₁P with p₁ < p₀ p₀ ^ 3 < D, nu p₀ * nu p₁ * F p₀ p₁

            Monotone form of the finite Buchstab recursion. This is the induction interface for replacing every residual discrete mass by a continuous majorant.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundaryChainsFixedDepthDensity_zero (nu : ) {D q : } {P : Finset } (hD : 1 < D) (hqs : qP) (hqprime : Nat.Prime q) (hqmin : pP, q p) :

            The depth-zero discrete boundary mass is exactly the terminal cubic shell.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundaryChainsFixedDepthRelativeDensity_zero (nu : ) {D q : } {P : Finset } (hD : 1 < D) (hqs : qP) (hqprime : Nat.Prime q) (hqmin : pP, q p) :
            upperRosserBoundaryChainsFixedDepthRelativeDensity nu D q P 0 = if D q ^ 3 then (∏ pP, (1 - nu p))⁻¹ else 0

            At depth zero the relative density is exactly the terminal shell times the inverse ambient Euler product.

            theorem MathlibNt.SieveTheory.LinearSieve.sum_mul_upperRosserBoundaryChainsFixedDepthDensity_zero (nu w : ) {D : } {P : Finset } (hD : 1 < D) (hprime : pP, Nat.Prime p) :
            qP, w q * upperRosserBoundaryChainsFixedDepthDensity nu D q ({pP | q < p}) 0 = qP with D q ^ 3, w q

            Summing the depth-zero boundary density over the distinguished prime collapses exactly to the terminal cubic shell.

            theorem MathlibNt.SieveTheory.LinearSieve.sum_mul_upperRosserBoundaryChainsFixedDepthDensity_succ (nu w : ) {D : } {P : Finset } (hprime : pP, Nat.Prime p) (k : ) :
            qP, w q * upperRosserBoundaryChainsFixedDepthDensity nu D q ({pP | q < p}) (k + 1) = qP, w q * p₀P with q < p₀, p₁{pP | q < p} with p₁ < p₀ p₀ ^ 3 < D, nu p₀ * nu p₁ * upperRosserBoundaryChainsFixedDepthDensity nu (D ⌈/⌉ (p₀ * p₁)) q ({p{pP | q < p} | p < p₁}) k

            Exact outer form of the finite Buchstab recursion. It simultaneously peels the distinguished prime and the first pair of every positive-depth boundary chain, leaving a residual depth-2k density at the ceiling-divided level.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundaryChainsFixedDepthDensity_zero_le_boundaryMassAux (nu : ) {z Δ s a b : } {q D : } {P : Finset } (hz : 1 < z) ( : 0 < Δ) (hs : s = Real.log Δ / Real.log z) (ha : a = Real.log q / Real.log z) (hsnonneg : 0 s) (hD : D = Δ⌋₊ + 1) (hDlarge : 1 < D) (hqs : qP) (hqprime : Nat.Prime q) (hqmin : pP, q p) :

            The discrete depth-zero shell is bounded by the base continuous boundary mass after passage to logarithmic coordinates.

            theorem MathlibNt.SieveTheory.LinearSieve.sum_upperRosserBoundary_eq_sum_chains (D q : ) (P : Finset ) (w : ) :
            uP.powerset with (UpperRosserBoundarySet D q) u, pu, w p = lupperRosserBoundaryChains D q P, (List.map w l).prod

            Exact injective reindexing of the boundary powerset sum by canonical decreasing chains.

            A canonical boundary chain cannot be longer than its ambient finite prime set.

            Every upper Rosser boundary chain has even length.

            A fixed-depth selected boundary density is nonnegative when all ambient prime weights are nonnegative.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundaryChainsFixedDepthRelativeDensity_nonneg (nu : ) {D q : } {P : Finset } (hnu : pP, 0 nu p) (hnuOne : pP, nu p 1) (k : ) :

            Relative fixed-depth boundary densities are nonnegative under the natural local-density bounds.

            Fixed-depth boundary-chain density is monotone in every nonnegative prime weight on its ambient carrier.

            A fixed-depth selected boundary density vanishes once twice the depth exceeds the number of available ambient primes.

            theorem MathlibNt.SieveTheory.LinearSieve.sum_upperRosserBoundaryChains_by_length (D q : ) (P : Finset ) (f : List ) :
            lupperRosserBoundaryChains D q P, f l = ellFinset.range (P.card + 1), lupperRosserBoundaryChains D q P with l.length = ell, f l

            The canonical chain sum decomposes as a finite sigma over chain length. This is the exact finite starting point for estimating each nested Rosser region and then controlling the tail uniformly in the length.

            theorem MathlibNt.SieveTheory.LinearSieve.sum_upperRosserBoundaryChains_by_even_length (D q : ) (P : Finset ) (f : List ) :
            lupperRosserBoundaryChains D q P, f l = ellFinset.range (P.card + 1) with Even ell, lupperRosserBoundaryChains D q P with l.length = ell, f l

            Since boundary chains have even cardinality, the depth sigma may be restricted exactly to even lengths.

            theorem MathlibNt.SieveTheory.LinearSieve.sum_upperRosserBoundaryChains_by_depth (D q : ) (P : Finset ) (f : List ) :
            lupperRosserBoundaryChains D q P, f l = kFinset.range (P.card + 1), lupperRosserBoundaryChains D q P with l.length = 2 * k, f l

            The canonical boundary-chain sum decomposes exactly by pair depth. This reindexes the even chain length 2k directly by the recursion parameter k.

            The complete selected boundary density is the finite sum of its exact pair-depth slices.

            Exact decomposition of a normalized boundary density into its finite relative pair-depth slices.

            theorem MathlibNt.SieveTheory.LinearSieve.sum_upperRosserBoundaryChains_fixed_length (D q : ) (P : Finset ) (w : ) (ell : ) :
            lupperRosserBoundaryChains D q P with l.length = ell, (List.map w l).prod = uFinset.filter (UpperRosserBoundarySet D q) P.powerset with u.card = ell, pu, w p

            At a fixed depth, the canonical decreasing-chain sum is exactly the corresponding cardinality slice of the boundary powerset.

            theorem MathlibNt.SieveTheory.LinearSieve.sum_upperRosserBoundaryChains_fixed_length_le_powersetCard (D q : ) (P : Finset ) (w : ) (hw : pP, 0 w p) (ell : ) :
            lupperRosserBoundaryChains D q P with l.length = ell, (List.map w l).prod uFinset.powersetCard ell P, pu, w p

            Dropping the Rosser inequalities at a fixed depth leaves the full elementary symmetric sum. This is the finite domination needed before applying a factorial/geometric tail estimate.

            theorem MathlibNt.SieveTheory.LinearSieve.factorial_mul_sum_powersetCard_prod_le_pow_sum {α : Type u_1} [DecidableEq α] (P : Finset α) (w : α) (hw : pP, 0 w p) (ell : ) :
            ell.factorial * uFinset.powersetCard ell P, pu, w p (∑ pP, w p) ^ ell

            The elementary symmetric sum of fixed degree is bounded by the corresponding power sum, with the factorial accounting for all orderings of each subset.

            theorem MathlibNt.SieveTheory.LinearSieve.factorial_mul_sum_upperRosserBoundaryChains_fixed_length_le_pow_sum (D q : ) (P : Finset ) (w : ) (hw : pP, 0 w p) (ell : ) :
            ell.factorial * lupperRosserBoundaryChains D q P with l.length = ell, (List.map w l).prod (∑ pP, w p) ^ ell

            A fixed-depth upper Rosser boundary sum has factorial decay in its depth, uniformly in the Rosser parameters.

            theorem MathlibNt.SieveTheory.LinearSieve.sum_upperRosserBoundaryChains_fixed_length_le_pow_sum_div_factorial (D q : ) (P : Finset ) (w : ) (hw : pP, 0 w p) (ell : ) :
            lupperRosserBoundaryChains D q P with l.length = ell, (List.map w l).prod (∑ pP, w p) ^ ell / ell.factorial

            Division form of the fixed-depth factorial estimate.

            The depth-zero upper Rosser boundary is the elementary cubic cutoff.

            The largest prime in any nonempty upper Rosser boundary tail is below the cubic level. This is the outer support inequality for arbitrary-depth boundary chains, independent of the distinguished prime q.

            Every selected prime in an upper Rosser boundary tail lies below D^(1/3) in the integral form p³ < D.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundarySet_mem_log_div_le_third {z Δ s : } {q p : } {t : Finset } (hz : 2 z) ( : 0 < Δ) (hs : s = Real.log Δ / Real.log z) (hpPrime : Nat.Prime p) (hp : p t) (hboundary : UpperRosserBoundarySet (Δ⌋₊ + 1) q t) :
            Real.log p / Real.log z s / 3

            At real level Δ = z^s, every prime in a boundary tail has logarithmic coordinate at most s / 3. The natural level ⌊Δ⌋ + 1 introduces no loss in this upper support bound.

            For an increasing two-prime tail, upper Rosser admissibility is exactly the cubic restriction on its larger prime.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundarySet_pair_iff {D q r t : } (hqprime : Nat.Prime q) (htprime : Nat.Prime t) (hqr : q < r) (hrt : r < t) :
            UpperRosserBoundarySet D q {r, t} t ^ 3 < D D r * t * q ^ 3

            The two-prime boundary is the first nontrivial Rosser chain: if q < r < t, then t³ < D ≤ q³rt.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserSetWeight_pair_eq_euler_add_boundary {D q : } {s : Finset } (hqs : qs) (hqprime : Nat.Prime q) (hqD : q < D) (hqmin : ps, q p) (nuq : ) :

            Pairing a set with the set obtained by adjoining a new least prime produces the Euler factor 1 - nuq, apart from the explicit even Rosser boundary.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserSetDensitySum_insert_eq_euler_add_boundary (nu : ) {D q : } {P : Finset } (hq : qP) (hqprime : Nat.Prime q) (hqD : q < D) (hqmin : pP, q p) :
            upperRosserSetDensitySum nu D (insert q P) = (1 - nu q) * upperRosserSetDensitySum nu D P + nu q * sP.powerset with (UpperRosserBoundarySet D q) s, ps, nu p

            Finite Buchstab--Rosser recursion in Euler-factor form. Removing the least prime contributes the expected factor 1 - nu q; the only correction is the explicit even Rosser boundary where adjoining q first violates the cutoff.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserSetDensityRatio_insert (nu : ) {D q : } {P : Finset } (hq : qP) (hqprime : Nat.Prime q) (hqD : q < D) (hqmin : pP, q p) (hqFactor : 1 - nu q 0) (hPFactor : pP, (1 - nu p) 0) :
            upperRosserSetDensitySum nu D (insert q P) / pinsert q P, (1 - nu p) = upperRosserSetDensitySum nu D P / pP, (1 - nu p) + nu q / (1 - nu q) * ((∑ sP.powerset with (UpperRosserBoundarySet D q) s, ps, nu p) / pP, (1 - nu p))

            Normalized one-prime Rosser recursion. After division by the finite sieve product, each peeled prime contributes its boundary mass with coefficient nu q / (1 - nu q).

            theorem MathlibNt.SieveTheory.LinearSieve.prod_nu_div_eulerProduct_eq (nu : ) {P s : Finset } (hs : sP) :
            (∏ ps, nu p) / pP, (1 - nu p) = (∏ ps, nu p / (1 - nu p)) * pP \ s, (1 - nu p)⁻¹

            Splitting an Euler denominator over a subset and its complement turns a density monomial into selected prime ratios and unselected inverse factors.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserBoundaryDensity_div_eulerProduct (nu : ) (D q : ) (P : Finset ) :
            (∑ sP.powerset with (UpperRosserBoundarySet D q) s, ps, nu p) / pP, (1 - nu p) = sP.powerset with (UpperRosserBoundarySet D q) s, (∏ ps, nu p / (1 - nu p)) * pP \ s, (1 - nu p)⁻¹

            The normalized boundary sum is a sum of path monomials: selected primes contribute nu p / (1 - nu p), while unselected tail primes contribute the inverse Euler factor.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserSetDensityRatio_eq_one_add_sum_boundary (nu : ) {D : } (P : Finset ) (hD : 1 < D) (hprime : pP, Nat.Prime p) (hpD : pP, p < D) (hfactor : pP, 1 - nu p 0) :
            upperRosserSetDensitySum nu D P / pP, (1 - nu p) = 1 + qP, nu q / (1 - nu q) * ((∑ s{pP | q < p}.powerset with (UpperRosserBoundarySet D q) s, ps, nu p) / pP with q < p, (1 - nu p))

            Exact path expansion of the normalized upper Rosser density. The primes are peeled in increasing order; the tail after q is therefore precisely the set of primes larger than q. Each term is the normalized mass of the cubic boundary first encountered at that prime.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserSetDensityRatio_eq_one_add_sum_relativeBoundaryDepths (nu : ) {D : } (P : Finset ) (hD : 1 < D) (hprime : pP, Nat.Prime p) (hpD : pP, p < D) (hfactor : pP, 1 - nu p 0) :
            upperRosserSetDensitySum nu D P / pP, (1 - nu p) = 1 + qP, nu q / (1 - nu q) * kFinset.range ({pP | q < p}.card + 1), upperRosserBoundaryChainsFixedDepthRelativeDensity nu D q ({pP | q < p}) k

            The exact normalized upper Rosser density grouped by relative Buchstab pair depth. In contrast to a selected-chain majorant, each depth slice still carries the complete Euler denominator above its distinguished prime.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserSetDensityRatio_eq_one_add_sum_boundaryPaths (nu : ) {D : } (P : Finset ) (hD : 1 < D) (hprime : pP, Nat.Prime p) (hpD : pP, p < D) (hfactor : pP, 1 - nu p 0) :
            upperRosserSetDensitySum nu D P / pP, (1 - nu p) = 1 + qP, nu q / (1 - nu q) * s{pP | q < p}.powerset with (UpperRosserBoundarySet D q) s, (∏ ps, nu p / (1 - nu p)) * p{pP | q < p} \ s, (1 - nu p)⁻¹

            Fully factorized Rosser path expansion. After choosing the first boundary prime q, every selected tail prime contributes its normalized density and every skipped tail prime contributes its inverse Euler factor.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserSetDensityRatio_eq_one_add_sum_cubicBoundary (nu : ) {D : } (P : Finset ) (hD : 1 < D) (hprime : pP, Nat.Prime p) (hpD : pP, p < D) (hfactor : pP, 1 - nu p 0) :
            upperRosserSetDensitySum nu D P / pP, (1 - nu p) = 1 + qP, nu q / (1 - nu q) * ((∑ u{pP | q < p}.powerset with Even u.card u.prod id < D UpperRosserAdmissibleSet D u D u.prod id * q ^ 3, pu, nu p) / pP with q < p, (1 - nu p))

            The path expansion with the abstract boundary predicate eliminated. Thus the entire excess over the Euler product is a sum over even admissible tails in the explicit cubic shell D ≤ (∏ s) q ^ 3.

            theorem MathlibNt.SieveTheory.LinearSieve.upperRosserSetDensitySum_min_eq_euler_add_boundary (nu : ) {D : } {P : Finset } (hP : P.Nonempty) (hprime : pP, Nat.Prime p) (hD : pP, p < D) :
            upperRosserSetDensitySum nu D P = (1 - nu (P.min' hP)) * upperRosserSetDensitySum nu D (P.erase (P.min' hP)) + nu (P.min' hP) * s(P.erase (P.min' hP)).powerset with (UpperRosserBoundarySet D (P.min' hP)) s, ps, nu p

            Cardinality-decreasing Euler-factor recursion at the least prime.

            The explicit finite upper Rosser coefficient, with the standard odd-position Rosser admissibility test and strict level support built into its definition.

            Equations
            Instances For

              The BoundingSieve.mainSum of the explicit upper Rosser coefficient is exactly its finite subset density sum. This removes divisor arithmetic from the analytic fundamental-lemma problem and exposes the prime-by-prime Buchstab recursion upperRosserSetDensitySum_insert.

              The finite upper Rosser certificate is precisely the upper-Möbius condition on divisors of the chosen squarefree prime product.

              Equations
              Instances For
                theorem MathlibNt.SieveTheory.LinearSieve.upperRosserWeight_certificate {P D : } (hP : Squarefree P) (hP0 : P 0) (hD1 : 1 < D) (hD : pP.primeFactors, p < D) :

                The explicit upper Rosser weight is a finite upper-Möbius certificate. The condition 1 < D is necessary for any strictly level-supported upper coefficient, since its coefficient at 1 must be at least one.

                The explicit upper Rosser coefficient gives the finite upper-sieve inequality with the exact level-restricted remainder sum.