Documentation

AnalyticNumberTheory.LargeSieve.PanTypeIAssembly

AnalyticNumberTheory.LargeSieve.PanTypeIAssembly #

Primitive-to-all-character reductions for Type I mean values #

This module relates the primitive-character Bombieri--Davenport estimate bombieriDavenport_vaughanFirst in BombieriDavenport.lean to weighted all-character Type I expressions. It proves structural reductions and records further inputs as explicit propositions; it does not prove the unrestricted uniform target below.

Available estimates:

The target panTypeICharMeanSieveBound x f u in PanMeanValueBody.lean is Σ_{q≤Q} μ²(q)3^{ω(q)}·√φ(q)·panTypeICharSqrtMeanMaxY X q (xX) f u ≤ C·xX/log^A(xX), with Q = (xX)^{1/2}/log^B(xX).

Limitation: the target is false uniformly over all |f| ≤ 1 #

Take u = 1, so vaughanFirst(n,1) = log n, and f = 1_{a = 1} (f(1) = 1, zero elsewhere). Set y = xX, a = 1. The principal character χ₀ mod q contributes to t_q: ‖V_{χ₀}(xX)‖ = Σ_{n≤xX, (n,q)=1} log n ~ (φ(q)/q)·xX·log(xX), by elementary density estimates, without the PNT. Since the maximum over y includes y = xX and all terms are nonnegative,

LHS ≥ (1/log(xX))·Σ_{q≤Q} μ²(q)3^{ω(q)}·√φ(q)·‖V_{χ₀}(xX)‖
    ~ xX·Σ_{q≤Q} μ²(q)3^{ω(q)}·φ(q)^{3/2}/q
    ≥ xX·Σ_{p≤Q, p prime} 3·(p−1)^{3/2}/p.

The prime sum has order Q^{3/2}/log Q, giving order (xX)^{7/4}/(log xX)^{1+3B/2}. This exceeds C·xX/log^A(xX) for any fixed A, B, C and sufficiently large xX. Thus uniformity over all (∀ a, |f a| ≤ 1) is impossible. The classical Type I mean-value theorem (Liu 2022 §III Lemma 1; HR 1974 Ch. 10) uses support conditions on f. For Chen weights f(a) = 1_{a = p₁p₂, z ≤ p₁ ≤ p₂}, one has f(1) = 0 and control of Σ_{a≤X}|f(a)|/a. The proposed support-sensitive input panTypeI_charMeanSieveBound_chenWeight is recorded in §S4; its precise hypotheses still require comparison with the classical sources.

S2: Conductor decomposition #

For χ mod q, let q' = χ.conductor, with q' | q, and let χ' be its unique primitive character. Mathlib provides χ.FactorsThrough q', χ.primitiveCharacter, and primitive-character induction. For (n,q)=1, χ(n) = χ'(n mod q'); otherwise χ(n) = 0, by the convention for nonunits. Consequently,

V_χ(m) = Σ_{n≤m, (n,q)=1} vaughanFirst(n,u)·χ'(n mod q'),
‖V_χ(m)‖ ≤ ‖V_χ'(m)‖ + D_q(m),
D_q(m) = Σ_{n≤m, (n,q)>1} |vaughanFirst(n,u)|,
‖V_χ(m)‖² ≤ 2‖V_χ'(m)‖² + 2·D_q(m)².

Writing P_{q'}(m) = Σ_{χ' primitive mod q'} ‖V_χ'(m)‖², a sharper grouping argument with fiber bound φ(q)/φ(q') would give t_q(m) ≤ 2·Σ_{q'|q} (φ(q)/φ(q'))·P_{q'}(m) + 2·φ(q)·D_q(m)². The theorem here instead proves the coarser coefficient φ(q), by termwise domination and fiber cardinality, without a dependent grouping bijection. An injectivity-based coefficient 1 is not established here. The related star_conductor and star_isPrimitive lemmas are used elsewhere in the project.

S3: μ²3^ω weight estimates #

The elementary estimates relevant to assembly have the following shapes:

(W1) Σ_{q≤Q} μ²(q)3^{ω(q)}·φ(q)/q ≤ C·Q·log⁶(Q+2)
     [φ(q)/q ≤ 1 and Σ μ²3^ω ≤ C·Q·log³(Q+2)]
(W2) Σ_{k≤Q/q'} μ²(q'k)3^{ω(q'k)}·(q'k)
     ≤ C·(Q²/q')·3^{ω(q')}·log⁶(Q+2)
     [q = q'·k, μ²(q'k) ≤ μ²(k),
      3^{ω(q'k)} ≤ 3^{ω(q')}·3^{ω(k)},
      Σ_{k≤K} μ²3^ω·k ≤ C·K²·log³(K+2)]
(W3) Σ_{q≤Q} μ²(q)3^{ω(q)}/φ(q) ≤ C·log⁶(Q+2).

W1 and W2 use the same elementary ingredients as PanMainTerm.lean §4: subset expansion, sum_squarefree_prod_primeFactors_le_prod_one_add, and Mertens' second theorem mertensSecond_nat. W3 is supplied by panMainTotientWeightedSum_le_polylog, restated here as panTypeI_totientWeightSum_polylog. The definition panTypeI_threeOmegaWeightSums records the estimate family; it is not a proof of uniform W1 or W2.

S4: Square-root reduction and assembly inputs #

(1) Cauchy--Schwarz algebra: csSqrtSum_le_card_mul_sum proves (Σ_i √(a_i·b_i))² ≤ (card s)·Σ_i a_i·b_i for a_i·b_i ≥ 0. With a_q = w_q·φ(q)/q, b_q = w_q·q·t_q(m), and w_q = μ²3^ω, this yields (Σ_q w_q·√(φ(q)·t_q(m)))² ≤ (card)·Σ_q w_q²·φ(q)·t_q(m). The related weighted Cauchy--Schwarz approach separates factors involving Σ_q (φ(q)/q) and Σ_q q·t_q(m); for q ≤ Q, q·t_q(m) ≤ Q·(q/φ(q))·t_q(m) since φ(q) ≤ q.

(2) All-character BD-shaped input: panTypeI_allCharSieveMean records Σ_{q≤Q} μ²3^ω·(q/φ(q))·t_q(m) ≤ C·(m+Q²)·S(m)·log⁶(Q+2). The proposed route is conductor decomposition, reordering with q = q'·k, applying bombieriDavenport_vaughanFirst to P_{q'}(m) for q' ≤ Q, and controlling the non-coprime term by a density estimate. The weaker large-sieve constant has shape LSB(m+1, 1/Q²) ~ m + Q²·log Q; see the discussion in BombieriDavenport.lean. For a fixed divisor q', weight transfer gives (φ(q)/φ(q'))·(q/φ(q)) = q/φ(q'). The W2 factor Q²/q' introduces an extra in naive assembly. An argument using the (q'/φ(q'))-weighted primitive bound together with W1/W3 therefore requires precise weight bookkeeping; no uniform all-character conclusion is supplied by this definition.

(3) Outer (y,a) weights: after replacing the maximum using panTypeICharSqrtMeanMaxY_le_sieveSqrtSum, the remaining expression has the form Σ_{y,a} |f(a)|/|log(y/a)|·(φ(q)/√q)·√LSB·√S. Control of Σ_{a≤X}|f(a)|/a for Chen weights is central to this step; the counterexample above excludes uniformity under |f| ≤ 1 alone. References: Liu 2022 §III Lemma 1; HR 1974 Ch. 10.

The proved components are pointwise induction, the norm and square reductions, the coarse fiber decomposition, the prime-partition density bound, Cauchy--Schwarz algebra, and W3. Sharper fiber bookkeeping, quantitative density control, uniform weight assembly, and the precise support-sensitive mean-value input remain separate requirements.

S3: The totient-weight sum #

W3, restated from PanMainTerm: Σ_{q≤Q} μ²(q)·3^{ω(q)}/φ(q) ≤ C·log⁶(Q+2). This is one factor in the S3 weight assembly (PanMainTerm.lean §4).

S2: Conductor decomposition and the structural density bound #

S2a: Pointwise induction via mathlib's primitiveCharacter #

Mathlib provides χ.primitiveCharacter at level χ.conductor, changeLevel_primitiveCharacter (χ = changeLevel χ.conductor_dvd_level χ.primitiveCharacter), primitiveCharacter_isPrimitive, and primitiveCharacter_apply_of_isCoprime ((a,q)=1 ⟹ χ.primitiveCharacter a = χ a). These give S2a directly.

Pointwise S2a: if (n,q) = 1, then χ(n mod q) = χ.primitiveCharacter(n mod χ.conductor).

theorem AnalyticNumberTheory.LargeSieve.panTypeI_char_induced_by_primitive (q : ) [NeZero q] (χ : DirichletCharacter q) :
∃ (q' : ), q' q ∃ (χ' : DirichletCharacter q'), χ'.IsPrimitive ∀ (n : ), n.Coprime qχ n = χ' n

S2a: each character χ mod q is induced by its unique primitive character χ.primitiveCharacter mod χ.conductor (uniqueness follows from injectivity of changeLevel). The pointwise equality holds for (n,q)=1; on non-coprime arguments, MulChar uses the value 0.

Pointwise components of the S2 square-sum decomposition #

Coprime-part decomposition of V_χ(m): non-coprime terms vanish.

Non-coprime density term: D_q(m) = Σ_{n ≤ m, (n,q) > 1} |vaughanFirst(n,u)|.

Equations
Instances For

    The non-coprime density term is nonnegative.

    Pointwise S2 bound: ‖V_χ(m)‖ ≤ ‖V_{χ.primitiveCharacter}(m)‖ + D_q(m).

    S2b: Primitive-character decomposition by termwise bounds and fiber cardinality #

    This avoids sum_bij over a dependent Sigma type and conductor casts.

    Primitive-character part: P_{q'}(m) = Σ_{χ' primitive mod q'} ‖V_χ'(m)‖².

    Equations
    Instances For

      P_{q'}(m) ≥ 0, since it is a sum of squares.

      Place χ mod q at the fixed level q': use its primitive character if χ.conductor = q', and the trivial character otherwise.

      Equations
      Instances For

        At the matching conductor, the lift remains primitive: (panTypeI_liftPrimitive q' q χ).IsPrimitive.

        There are φ(q) characters, using hasEnoughRootsOfUnity as in panTypeI_charAbsSum_le_cs.

        S2 square bound: ‖V_χ‖² ≤ 2‖V_{χ.prim}‖² + 2·D_q(m)².

        Fiber bound at level q': the contribution of characters modulo q with conductor q' is at most φ(q)·P_{q'}(m). The fiber has cardinality at most φ(q), and each term satisfies ‖V_{χ.prim}‖² ≤ P_{q'}(m).

        S2b: primitive-character decomposition of the all-character square sum, with the coarse coefficient φ(q): t_q(m) ≤ 2·Σ_{q' | q} φ(q)·P_{q'}(m) + 2·φ(q)·D_q(m)². A coefficient 1 would require injectivity of the primitive-character map and conductor-cast handling, including dependent sum_bij and Eq.ndrec transport. This theorem supplies the pointwise square bounds and fiber grouping, but not that sharper coefficient.

        S2c: Structural non-coprime density bound #

        S2c structural bound: prime divisors cover the non-coprime terms, D_q(m) ≤ Σ_{p | q} Σ_{n ≤ m, p | n} |vf(n)|. Use (n,q) > 1 ⟹ ∃ p | q, p | n, the pointwise bound |vf| ≤ Σ_p 1_{p|n}|vf|, and exchange sums.

        S3: Propositions recording μ²3^ω weight estimates #

        S3 estimate family for weight assembly, with polylogarithmic factors: (W1) Σ_{q≤Q} μ²(q)3^{ω(q)}·φ(q)/q ≤ C·Q·log⁶(Q+2), using φ(q)/q ≤ 1 and Σ_{q≤Q} μ²3^ω ≤ C·Q·log³(Q+2). The latter uses the PanMainTerm §4 method: subset expansion, sum_squarefree_prod_primeFactors_le_prod_one_add, and Mertens' second theorem. (W2) The transferred weight Σ_{k ≤ Q/q'} μ²(q'k)3^{ω(q'k)}·(q'k) ≤ C·(Q²/q')·3^{ω(q')}·log⁶(Q+2), using q = q'·k, μ²(q'k) ≤ μ²(k), and 3^{ω(q'k)} ≤ 3^{ω(q')}·3^{ω(k)}. (W3) Σ_{q≤Q} μ²(q)3^{ω(q)}/φ(q) ≤ C·log⁶(Q+2), supplied by panTypeI_totientWeightSum_polylog. This definition records the propositions rather than proving W1 or W2.

        Equations
        Instances For

          S4: Square-root Cauchy--Schwarz and assembly inputs #

          theorem AnalyticNumberTheory.LargeSieve.csSqrtSum_le_card_mul_sum {ι : Type u_1} (s : Finset ι) (a b : ι) (h : is, 0 a i * b i) :
          (∑ is, (a i * b i)) ^ 2 s.card * is, a i * b i

          S4a, square-root Cauchy--Schwarz algebra: (Σ_i √(a_i·b_i))² ≤ (card s)·Σ_i a_i·b_i when a_i·b_i ≥ 0. Use sq_sum_le_card_mul_sum_sq (Chebyshev) and Real.sq_sqrt. In BD mean-value assembly, take a_q = w_q·φ(q)/q and b_q = w_q·q·t_q(m) to obtain (Σ_q w_q·√(φ(q)·t_q(m)))² ≤ (card)·Σ_q w_q²·φ(q)·t_q(m), the algebraic content of Cauchy--Schwarz in q.

          S4b input proposition: an all-character weighted BD-shaped estimate, Σ_{1≤q≤Q} μ²(q)3^{ω(q)}·(q/φ(q))·t_q(m) ≤ C·(m+Q²)·S(m)·log⁶(Q+2). The proposed route is (i) decompose t_q(m) using S2b; (ii) reorder with q = q'·k, transferring (φ(q)/φ(q'))·(q/φ(q)) to q/φ(q') in a sharper grouping argument; (iii) apply bombieriDavenport_vaughanFirst to P_{q'}(m) for q' ≤ Q, with the weaker constant LSB(m+1, 1/Q²) ~ m + Q²·log Q (see BombieriDavenport.lean); and (iv) control the non-coprime terms through S2c. Naive reordering introduces Q²/q', so precise weight bookkeeping remains necessary. This is a definition, not a uniform all-character estimate.

          Equations
          Instances For

            Proposed support-sensitive T1' input: the classical Type I mean-value theorem (Liu 2022 §III Lemma 1; HR 1974 Ch. 10) requires support conditions on f. Chen weights satisfy f(1) = 0 and admit control of Σ_{a≤X} |f(a)|/a. The version of panTypeICharMeanSieveBound uniform over |f| ≤ 1 alone is false, as explained in the module overview. This definition makes candidate support conditions explicit; the precise hypotheses still require comparison with the classical sources.

            Equations
            Instances For