Documentation

MathlibNt.SieveTheory.Selberg.Liu.LiuSelbergCorrectedChenBridge

Finite bridge from Liu's Selberg square to corrected Chen triples #

This module isolates the exact overlap between Liu's source-pair Selberg square and the corrected Chen triple count. A candidate residual prime contributes unit Selberg weight unless it divides Liu's paper modulus; those exceptional primes remain as an explicit finite residual.

Corrected Chen triples whose first two primes are one fixed Liu source pair. The ordering p₂ ≤ p₃ and the corrected candidate residual are retained.

Equations
Instances For
    noncomputable def MathlibNt.SieveTheory.LiuWeight.liuSelbergCorrectedTripleQResidual (N : ) (epsilon : ) (p₁ p₂ : ) :

    The exact exceptional part of a corrected triple slice: the candidate residual prime divides Liu's paper modulus, so its optimal Selberg packet need not reduce to the coefficient at 1.

    Equations
    Instances For

      The two possible source-pair contributions of a strict ordered triple to the historical switched sum.

      Equations
      Instances For
        theorem MathlibNt.SieveTheory.LiuWeight.historicalChenOrderedTripleMultiplicity_eq_one_add_indicator {N p₁ p₂ p₃ : } (hp₁ : Nat.Prime p₁) (hp₂ : Nat.Prime p₂) (hp₃ : Nat.Prime p₃) (hroot₁ : N ^ (1 / 10) < p₁) (hp₁root : p₁ N ^ (1 / 3)) (hroot₂ : N ^ (1 / 3) < p₂) (hp₂p₃ : p₂ < p₃) (hprod : p₁ * p₂ * p₃ N) :
        historicalChenOrderedTripleMultiplicity N p₁ p₂ p₃ = 1 + if p₁ * p₃ ^ 2 N then 1 else 0

        The historical chenF fibre has the same exact one-or-two multiplicity as Liu's source weight: the smaller large prime always contributes, while the larger contributes exactly on the additional square-cutoff subregion.

        theorem MathlibNt.SieveTheory.LiuWeight.historicalChenOrderedTripleMultiplicity_eq_liu {N z y p₁ p₂ p₃ : } (hp₁ : Nat.Prime p₁) (hp₂ : Nat.Prime p₂) (hp₃ : Nat.Prime p₃) (hzp₁ : z < p₁) (hp₁y : p₁ y) (hyp₂ : y < p₂) (hroot₁ : N ^ (1 / 10) < p₁) (hp₁root : p₁ N ^ (1 / 3)) (hroot₂ : N ^ (1 / 3) < p₂) (hp₂p₃ : p₂ < p₃) (hprod : p₁ * p₂ * p₃ N) :

        On common integer and real cutoffs, historical chenOmega source fibres and the source-pair carrier underlying Liu's square count have exactly the same local multiplicity. The square count additionally weights each carrier element by its squared divisor packet.

        theorem MathlibNt.SieveTheory.LiuWeight.strict_ordered_triple_not_isAtMostAlmostPrime_two {p₁ p₂ p₃ : } (hp₁ : Nat.Prime p₁) (hp₂ : Nat.Prime p₂) (hp₃ : Nat.Prime p₃) :
        ¬Nat.IsAtMostAlmostPrime 2 (p₁ * p₂ * p₃)

        A product of three primes has exactly three prime factors with multiplicity, so it is not a P₂.

        theorem MathlibNt.SieveTheory.LiuWeight.strict_ordered_triple_mem_chenWBadCandidates {N p p₁ p₂ p₃ : } (hp : p SwitchingPrinciple.chenWCandidates N) (hp₁ : Nat.Prime p₁) (hp₂ : Nat.Prime p₂) (hp₃ : Nat.Prime p₃) (hcomplement : N - p = p₁ * p₂ * p₃) :

        A historical W-candidate with a strict three-prime complement belongs to the bad fibre.

        theorem MathlibNt.SieveTheory.LiuWeight.correctedPenalty_of_strict_ordered_triple_eq_two {z y p₁ p₂ p₃ : } (hp₁ : Nat.Prime p₁) (hp₂ : Nat.Prime p₂) (hp₃ : Nat.Prime p₃) (hzp₁ : z p₁) (hp₁y : p₁ < y) (hyp₂ : y p₂) (hp₂p₃ : p₂ < p₃) :
        SwitchingPrinciple.primePowerSum (p₁ * p₂ * p₃) z y + SwitchingPrinciple.tripleFactorCount (p₁ * p₂ * p₃) z y = 2

        On a strict ordered squarefree triple, the corrected penalty is exactly two: one unit from the medium-prime multiplicity and one from the canonical ordered-triple witness.

        theorem MathlibNt.SieveTheory.LiuWeight.correctedChenPenalty_eq_two_of_strict_ordered_triple {N p p₁ p₂ p₃ : } (hp₁ : Nat.Prime p₁) (hp₂ : Nat.Prime p₂) (hp₃ : Nat.Prime p₃) (hzp₁ : SwitchingPrinciple.correctedChenZ N p₁) (hp₁y : p₁ < SwitchingPrinciple.correctedChenY N) (hyp₂ : SwitchingPrinciple.correctedChenY N p₂) (hp₂p₃ : p₂ < p₃) (hcomplement : N - p = p₁ * p₂ * p₃) :

        The exact strict-triple value of the corrected candidate penalty.

        The honest finite carrier behind the corrected triple-factor sum. Its elements are candidate residuals together with the first prime factor; the larger two prime factors remain existential, exactly as in tripleFactorCount.

        Equations
        Instances For

          The finite ordered-triple carrier counted by the common Liu source region.

          Equations
          Instances For

            The lower-cutoff endpoint fibre, represented by its candidate residual. Divisibility by the fixed first factor is all that is needed for the ensuing cardinality bound.

            Equations
            Instances For

              Conditions on the ordered pair of larger factors selected from one first-factor witness.

              Equations
              Instances For

                A fixed ordered pair of larger factors for a member of the honest first-factor carrier. It is used only to inject that carrier into the source and endpoint fibres; no multiplicity assertion is made.

                Equations
                Instances For

                  The selected larger factors satisfy all the ordered-factor conditions for members of the first-factor carrier.

                  noncomputable def MathlibNt.SieveTheory.LiuWeight.correctedChenSourceEndpointMap (N : ) (x : (_ : ) × ) :
                  (_ : × ) × (_ : ) ×

                  The selected-factor map sends a first-factor witness either to the common source triple, to the lower endpoint, or to the upper endpoint.

                  Equations
                  Instances For

                    The corrected triple-factor sum is exactly the cardinality of its first-factor carrier. In particular, this does not identify the summand with the multiplicity of ordered triples.

                    Once Liu's lower cutoff has reached 2, it is exactly the corrected Chen lower cutoff; the latter differs only by its small-N guard.

                    The floor source split never exceeds the corrected ceiling split.

                    The corrected ceiling split is at most one beyond Liu's floor split.

                    theorem MathlibNt.SieveTheory.LiuWeight.correctedOrderedTriple_mem_liuWeightPairs_or_cutoff_endpoint {N p₁ p₂ p₃ : } (hZ : SwitchingPrinciple.correctedChenZ N = liuSourceZ10 N) (hp₁ : Nat.Prime p₁) (hp₂ : Nat.Prime p₂) (_hp₃ : Nat.Prime p₃) (hZp₁ : SwitchingPrinciple.correctedChenZ N p₁) (hp₁Y : p₁ < SwitchingPrinciple.correctedChenY N) (hYp₂ : SwitchingPrinciple.correctedChenY N p₂) (hp₂p₃ : p₂ p₃) (hprod : p₁ * p₂ * p₃ N) :

                    A corrected ordered triple lies in Liu's source carrier unless one of the two integer cutoff endpoints is attained.

                    theorem MathlibNt.SieveTheory.LiuWeight.correctedOrderedTriple_mem_liuWeightPairs {N p₁ p₂ p₃ : } (hZ : SwitchingPrinciple.correctedChenZ N = liuSourceZ10 N) (hp₁ : Nat.Prime p₁) (hp₂ : Nat.Prime p₂) (hp₃ : Nat.Prime p₃) (hZp₁ : SwitchingPrinciple.correctedChenZ N p₁) (hp₁Y : p₁ < SwitchingPrinciple.correctedChenY N) (hYp₂ : SwitchingPrinciple.correctedChenY N p₂) (hp₂p₃ : p₂ p₃) (hprod : p₁ * p₂ * p₃ N) (hp₁ne : p₁ liuSourceZ10 N) (hp₂ne : p₂ liuSourceY3 N) :

                    Away from the two displayed endpoints, corrected ordered triples are literally Liu source pairs; the product-square condition follows from p₂ ≤ p₃.

                    The selected-factor map is injective on the honest first-factor carrier. In the source branch the candidate residual is recovered from p = N - p₁p₂p₃; the endpoint branches retain enough coordinates directly.

                    Exact finite-carrier accounting gives the corrected first-factor carrier as a subcardinal of the common source triples plus the two endpoint fibres.

                    The lower endpoint candidates inject into the quotient interval modulo the fixed lower cutoff.

                    Together the two cutoff fibres have the unconditional 13 * N^(9/10) power-saving bound once the lower floor cutoff has reached 2.

                    Each fixed source-pair residual injects into the prime factors of Liu's paper modulus via the candidate residual N - p₁p₂p₃.

                    theorem MathlibNt.SieveTheory.LiuWeight.sum_liuWeight_mul_eq_sum_pairs (N z y : ) (F : ) :
                    aFinset.range (N + 1), liuWeight N z y a * F a = pliuWeightPairs N z y, F (p.1 * p.2)

                    Reindex an arbitrary sum against Liu's characteristic source by its unique admissible ordered prime pair.

                    The unique product map identifies Liu's pair carrier with the supported source integers.

                    Every prime factor of Liu's paper modulus lies below its defining cutoff.

                    Summing the fixed-pair injection bounds the complete source residual by the source-pair cardinality times the number of prime factors of the paper modulus.

                    A completely finite envelope for the modulus-dividing source residual.

                    The source support and the paper-modulus cutoff give an unconditional N^(11/12) power saving for the exceptional residual.

                    Consequently the modulus-dividing source residual is smaller than every fixed inverse logarithmic scale.

                    theorem MathlibNt.SieveTheory.LiuWeight.liuSelbergSquareCount_eq_sum_pairs (N : ) (epsilon : ) (lambda : ) :
                    liuSelbergSquareCount N epsilon lambda = pliuWeightPairs N (liuSourceZ10 N) (liuSourceY3 N), p₃Finset.range (N + 1) with Nat.Prime p₃ p.1 * p.2 * p₃ N, (∑ dliuSelbergLambdaSourceCarrier N epsilon with d N - p.1 * p.2 * p₃, lambda d) ^ 2

                    Liu's square count is exactly the sum of its Selberg packets over the admissible source pairs and third primes.

                    theorem MathlibNt.SieveTheory.LiuWeight.liuSelbergCorrectedTripleSlice_le_square_add_QResidual {N p₁ p₂ : } {epsilon : } (hEven : Even N) (hR : 1 paperQSourceCutoff N epsilon) :
                    liuSelbergCorrectedTripleSlice N p₁ p₂ p₃Finset.range (N + 1) with Nat.Prime p₃ p₁ * p₂ * p₃ N, (∑ dliuSelbergLambdaSourceCarrier N epsilon with d N - p₁ * p₂ * p₃, liuSelbergOptimalLambda N epsilon d) ^ 2 + liuSelbergCorrectedTripleQResidual N epsilon p₁ p₂

                    Away from candidate residual primes dividing Liu's paper modulus, one corrected triple slice is bounded by the corresponding optimal Selberg square slice. The exceptional primes are retained exactly in the final summand.

                    On the exact common source-pair region, the corrected triple count is bounded by Liu's optimal square count plus only the explicit modulus-dividing candidate-prime residual.

                    The explicit endpoint-fibre power saving unconditionally inhabits the source-complement residual contract.

                    The canonical Pan--Wang--Ding square estimate controls the complete corrected Chen triple term unconditionally at the endpoint seam. The paper-modulus residual is discharged by the unconditional N^(11/12) estimate above.

                    The canonical Liu--Pan coprime theorem produces the strict ordered-triple upper-bound contract consumed by the generic Jurkat--Richert endpoint. This is a producer of the remaining penalty input, not another Chen endpoint consumer.

                    Backward-compatible wrapper for the stronger canonical source contract.

                    An inverse-log remainder is absorbed into an arbitrary positive multiple of the genuine Liu singular-series scale. The uniform lower bound is the positive universal Euler product, since every divisor correction factor is at least one.

                    The final Chen theorem from the derived Jurkat--Richert weighted lower API and the Liu--Pan--Wang--Ding aggregate theorem. This broad intermediate interface is retained for downstream compatibility.

                    Backward wrapper from the stronger canonical source contract.

                    Source-faithful wrapper from literal Corollary (2.30).

                    The canonical internal Chen endpoint from the five remaining literature interfaces: generic lower Rosser density, standard Bombieri--Vinogradov, upper Rosser density, varying-q weighted Bombieri--Vinogradov, and Liu--Pan--Wang--Ding.

                    An inverse-log remainder is absorbed into an arbitrary positive multiple of the truncated main scale. The uniform lower bound 𝔖_trunc ≥ 1/2 is used explicitly here.

                    The canonical corrected-triple estimate in the analytic truncation units. The Euler-tail margin ηs and inverse-log absorption margin ηr remain separate in the coefficient.

                    theorem MathlibNt.SieveTheory.LiuWeight.CorrectedChenOmegaUpperBound_of_liuPanWangDing_q1 (hPan : LiuPanWangDingTheorem) (epsilon ηs ηr Cq : ) (hepsilon : 0 < epsilon) (hepsilon_le : epsilon liuEvenAssemblyEpsilon0) (hηs : 0 < ηs) (hηr : 0 < ηr) (hq1 : ∀ᶠ (N : ) in Filter.atTop, Even NSwitchingPrinciple.correctedChenQ1Count N Cq * AnalyticNumberTheory.Sieve.singularSeriesTruncated N (SwitchingPrinciple.correctedChenZ N - 1) * N / Real.log N ^ 2) (hnum : 10 / 3 > (3.94033 / 2 * (1 + ηs) + ηr + (Cq + 1 / 2)) / 2) :

                    Diagnostic corrected-penalty assembly. Besides the Pan--Wang--Ding contract, the only analytic input is the q¹ bound. The fixed Pan level cannot meet the displayed final numerical inequality, even with optimal weights, so this theorem records the obstruction rather than a canonical final route.

                    Diagnostic Liu--Pan--Wang--Ding Omega assembly with the q¹ bound supplied by the direct weighted aggregate theorem. Its fixed-level coefficient is larger than the available final budget.

                    theorem MathlibNt.SieveTheory.LiuWeight.corrected_chens_theorem_of_liuPanWangDing_q1WeightedAggregate (hW : SwitchingPrinciple.ChenWeightedPanInput) (hLiu : LiuPanWangDingTheorem) (hQ1 : SwitchingPrinciple.Q1WeightedAggregateTheorem) (epsilon ηs ηr : ) (hepsilon : 0 < epsilon) (hepsilon_le : epsilon liuEvenAssemblyEpsilon0) (hηs : 0 < ηs) (hηr : 0 < ηr) (hnum : 10 / 3 > (3.94033 / 2 * (1 + ηs) + ηr + (SwitchingPrinciple.q1WeightedAggregateConstant hQ1 + 1 / 2)) / 2) :
                    ∃ (N₀ : ), NN₀, Even N∃ (p : ) (q : ), Nat.Prime p q 2 Nat.IsAtMostAlmostPrime 2 q N = p + q

                    Diagnostic corrected-Chen endpoint whose q¹ input is exactly the weighted aggregate theorem consumed by the finite q¹ reduction. The numerical hypothesis is incompatible with the fixed Pan level.

                    Source-faithful W-side specialization of the diagnostic weighted-aggregate q¹ endpoint.

                    theorem MathlibNt.SieveTheory.LiuWeight.CorrectedChenOmegaUpperBound_of_liuPanWangDing_deltaOnePan (hLiu : LiuPanWangDingTheorem) (hQ1Pan : SwitchingPrinciple.Q1DeltaOnePanMeanValue) (hQ1Trunc : SwitchingPrinciple.Q1DeltaOnePanTruncationInput) (epsilon ηs ηr : ) (hepsilon : 0 < epsilon) (hepsilon_le : epsilon liuEvenAssemblyEpsilon0) (hηs : 0 < ηs) (hηr : 0 < ηr) (hnum : 10 / 3 > (3.94033 / 2 * (1 + ηs) + ηr + (SwitchingPrinciple.q1DeltaOnePanConstant hQ1Pan hQ1Trunc + 1 / 2)) / 2) :

                    Diagnostic Liu--Pan--Wang--Ding Omega assembly from the stronger cutoff-free full-divisor-lane delta-one predicates.

                    theorem MathlibNt.SieveTheory.LiuWeight.corrected_chens_theorem_of_liuPanWangDing_deltaOnePan (hW : SwitchingPrinciple.ChenWeightedPanInput) (hLiu : LiuPanWangDingTheorem) (hQ1Pan : SwitchingPrinciple.Q1DeltaOnePanMeanValue) (hQ1Trunc : SwitchingPrinciple.Q1DeltaOnePanTruncationInput) (epsilon ηs ηr : ) (hepsilon : 0 < epsilon) (hepsilon_le : epsilon liuEvenAssemblyEpsilon0) (hηs : 0 < ηs) (hηr : 0 < ηr) (hnum : 10 / 3 > (3.94033 / 2 * (1 + ηs) + ηr + (SwitchingPrinciple.q1DeltaOnePanConstant hQ1Pan hQ1Trunc + 1 / 2)) / 2) :
                    ∃ (N₀ : ), NN₀, Even N∃ (p : ) (q : ), Nat.Prime p q 2 Nat.IsAtMostAlmostPrime 2 q N = p + q

                    Diagnostic corrected-Chen endpoint retaining the stronger full-lane delta-one assumptions for audit compatibility.

                    Source-faithful W-side specialization of the diagnostic full-lane q¹ endpoint.

                    Public Chen theorem from the derived Jurkat--Richert weighted lower API. This broad intermediate interface is retained for downstream compatibility.

                    Backward public wrapper from the stronger canonical source contract.

                    Canonical public form of Chen's theorem, conditional exactly on the generic dimension-one lower Rosser density fundamental lemma, standard Bombieri--Vinogradov, the upper Rosser density fundamental lemma, varying-q weighted Bombieri--Vinogradov, and the Liu--Pan--Wang--Ding theorem.