Weighted Pan mean-value assembly #
This module assembles the separate coarse Vaughan proposition
PanVaughanSplitCrude from three input propositions
(PanTypeICharacterMeanValue, PanTypeIICharacterMeanValue,
PanMainTermSieveBound) and two analytic conditions
(PanLogEventuallyLarge, PanVaughanPointwiseSplit).
It yields the polylogarithmic PanMeanValueUniformCrude through
PanMeanValueUniformCrude.of_vaughanSplit.
The classical PanMeanValueUniform is assembled separately by
PanMeanValueUniform.of_signedAnalyticInputs.
The mathematical decomposition (Liu 2022 §III Thm 2; Pan 1963) starts from
panMaxY X q x f = max_{y≤x} max_l |Σ_a f(a)·Δ(y;a,q,l)|,
where Δ(y;a,q,l) = π(y;a,q,l) − li(y/a)/φ(q).
Vaughan's identity separates the Type I (apV1), Type II (apV3),
and main-term contributions. In this coarse interface the third piece
is the absolute pure-li term, with li denoting the project's
x/log x proxy. The signed assembly retains the necessary subtraction.
The three bounds are obtained conditionally through
PanTypeIWeightedBound.of_characterMeanValue (PanMeanValueBody §5),
PanTypeIIWeightedBound.of_characterMeanValue (§5.2), and
PanMainTermBound.of_sieveBound (PanMainTerm §2).
The finite algebra proved here consists of:
- The per-modulus split
w_q·panMaxY ≤ w_q·PI + w_q·PII + w_q·PM(panAssembly_pointwise). Atq = 0,μ²(q) = 0; forq > 0, use the pointwise input and nonnegative weights. - Splitting the modulus sum by
sum_add_distrib. - Reconciling cutoffs (
panAssembly_floor_le): chooseB = max B₁ (max B₂ B₃). Iflog(xX) ≥ 1, thenQ_B ≤ Q_{B_i}; nonnegative terms allow enlargement of each range. - Bounding the Type I/II terms by
C_i·xX/log^A(xX)and the pure main term byC₃·xX·(log xX)^{A+7}. Forlog(xX) ≥ 1, each Type I/II bound is at mostC_i·xX·(log xX)^{A+7}, giving(C₁+C₂+C₃)·xX·(log xX)^{A+7}.
The pure main-term estimate is polylogarithmic:
PanMainSieveAbsorption (PanMainTerm.lean §6) absorbs fixed
polylogarithmic factors into a larger logarithmic power.
It does not yield the classical C·xX/log^A(xX) saving
(Liu Thm 2), which requires signed main-term cancellation.
The two coarse analytic inputs are propositions, not unconditional
theorems: (a) eventual log(xX) ≥ 1, as follows from xX → ∞;
(b) the pointwise conversion from prime AP counts to the
apV1/apV3/li pieces. The latter concerns the analytic transition
from von Mangoldt counts to prime counts and is not supplied by
finite Vaughan algebra alone.
Coarse pure-li Vaughan split, with a polylogarithmic right side:
for each A > 0, there are C > 0, B, and x₀ such that
for every X ≥ x₀, with Q = (xX)^{1/2}/log^B(xX),
Σ_{q ≤ Q} μ²(q)·3^{ω(q)}·panMaxY X q ⌊xX⌋ f ≤ C·xX·(log xX)^{A+7}.
This is definitionally the coarse PanMeanValueUniformCrude
proposition, not the classical PanMeanValueUniform.
PanVaughanSplitCrude.of_analyticInputs derives it from the
three bound inputs and the two analytic conditions.
The pure-li piece admits polylogarithmic absorption
(PanMainSieveAbsorption, PanMainTerm.lean §6), not a
C·xX/log^A(xX) saving. The classical Vaughan argument controls
Type I/II by their weighted bounds and retains the signed
middle/main-term difference; its logarithmic saving needs that
additional analytic cancellation (Liu Thm 2).
Equations
- AnalyticNumberTheory.Sieve.PanVaughanSplitCrude x f _u _v = ∀ (A : ℝ), 0 < A → ∃ (C : ℝ), 0 < C ∧ ∃ (B : ℝ) (x₀ : ℕ), ∀ (X : ℕ), x₀ ≤ X → ∑ q ∈ Finset.range (⌊x X ^ (1 / 2) / Real.log (x X) ^ B⌋₊ + 1), ↑(ArithmeticFunction.moebius q) ^ 2 * 3 ^ q.primeFactors.card * AnalyticNumberTheory.Sieve.panMaxY X q ⌊x X⌋₊ f ≤ C * x X * Real.log (x X) ^ (A + 7)
Instances For
Eventual logarithmic lower bound: log(x X) ≥ 1 for all
sufficiently large X. This follows classically from x X → ∞
(Liu 2022 §III). It permits cutoff comparison Q_B ≤ Q_{B_i},
using monotonicity of real powers in the exponent for bases at least 1.
Equations
Instances For
Coarse pointwise Vaughan-split input: for each q > 0 and
all truncations, the maximum weighted prime-distribution error is
bounded by three piecewise maxima:
panMaxY X q x f ≤ panPieceMaxY X q x f (fun y q l => apV1 y q l u / log y) + panPieceMaxY X q x f (fun y q l => apV3 y q l u v / log y) + panPieceMaxY X q x f (fun y q l => li y / φ(q)).
The classical route (Liu 2022 §III Thm 2; HR 1974 Ch. 10) applies
Vaughan's identity (vaughanIdentity_threeTerm, VaughanIdentity.lean)
to apVonMangoldt (PanMeanValueBody §4), retaining the small and
middle terms as well as V1 and V3. Passing from
π(y;q,l)·log y to Σ_{n≤y,n≡l} Λ(n) and handling the signed
main-term difference require analytic input before taking maxima
over y,l. The pure-li inequality here is an explicit coarse
assumption, not a consequence of that finite identity alone.
Equations
- AnalyticNumberTheory.Sieve.PanVaughanPointwiseSplit _x f u v = ∀ (X q y : ℕ), 0 < q → AnalyticNumberTheory.Sieve.panMaxY X q y f ≤ ((AnalyticNumberTheory.Sieve.panPieceMaxY X q y f fun (y q l : ℕ) => AnalyticNumberTheory.Sieve.apV1 y q l u / Real.log ↑y) + AnalyticNumberTheory.Sieve.panPieceMaxY X q y f fun (y q l : ℕ) => AnalyticNumberTheory.Sieve.apV3 y q l u v / Real.log ↑y) + AnalyticNumberTheory.Sieve.panPieceMaxY X q y f fun (y q x : ℕ) => AnalyticNumberTheory.Sieve.logarithmicIntegral ↑y / ↑q.totient
Instances For
Conditional coarse Vaughan assembly: three character-mean/sieve
inputs and two analytic conditions (eventual log growth and the
pointwise split) imply PanVaughanSplitCrude.
- Apply the reduction theorems, including
PanTypeIWeightedBound.of_characterMeanValue, to obtain bounds with constantsCᵢ, exponentsBᵢ, and thresholdsx₀ᵢ. - For each
A > 0, chooseC = C₁+C₂+C₃,B = max B₁ (max B₂ B₃), andx₀ = max (max x₀₁ (max x₀₂ x₀₃)) X₀. - Use the weighted pointwise split, with zero weight at
q = 0, and split the sum into three pieces. - From
hfin,log(xX) ≥ 1; sinceBᵢ ≤ B, enlarge each nonnegative sum fromQ_BtoQ_{Bᵢ}. - Convert the Type I/II logarithmic-saving bounds to the common polylogarithmic scale of the main-term bound and sum.
All cutoff, weight, and logarithmic-power algebra is proved here; the input propositions remain hypotheses.
The coarse pure-li split yields only the polylogarithmic
PanMeanValueUniformCrude, not the classical Pan theorem.
The old theorem at this seam returned PanMeanValueUniform by definitional
equality. That was the semantic bug: the old split has a polylogarithmic RHS,
whereas Liu's signed theorem has inverse-log decay. The faithful assembly is
defined below and requires an explicit signed-main block.
A weighted bound for the two residual kernels which together form the
signed main block. The first kernel is the signed li-minus-middle/small
piece; the second carries the prime-power correction.
Equations
- AnalyticNumberTheory.Sieve.PanSignedMainTermBound x f main correction = ∀ (A : ℝ), 0 < A → ∃ (C : ℝ), 0 < C ∧ ∃ (B : ℝ) (x₀ : ℕ), ∀ (X : ℕ), x₀ ≤ X → ∑ q ∈ Finset.range (⌊x X ^ (1 / 2) / Real.log (x X) ^ B⌋₊ + 1), ↑(ArithmeticFunction.moebius q) ^ 2 * 3 ^ q.primeFactors.card * (AnalyticNumberTheory.Sieve.panPieceMaxY X q ⌊x X⌋₊ f main + AnalyticNumberTheory.Sieve.panPieceMaxY X q ⌊x X⌋₊ (fun (a : ℕ) => |f a|) correction) ≤ C * x X / Real.log (x X) ^ A
Instances For
Corrected pointwise Vaughan split. Unlike PanVaughanPointwiseSplit,
the residual kernels stay inside the signed main block.
Equations
- AnalyticNumberTheory.Sieve.PanVaughanPointwiseSplitSigned _x f u v main correction = ∀ (X q y : ℕ), 0 < q → AnalyticNumberTheory.Sieve.panMaxY X q y f ≤ ((AnalyticNumberTheory.Sieve.panPieceMaxY X q y f fun (y q l : ℕ) => AnalyticNumberTheory.Sieve.apV1 y q l u / Real.log ↑y) + AnalyticNumberTheory.Sieve.panPieceMaxY X q y f fun (y q l : ℕ) => AnalyticNumberTheory.Sieve.apV3 y q l u v / Real.log ↑y) + (AnalyticNumberTheory.Sieve.panPieceMaxY X q y f main + AnalyticNumberTheory.Sieve.panPieceMaxY X q y (fun (a : ℕ) => |f a|) correction)
Instances For
Weighted finite assembly for the honest signed split. All three analytic bounds retain inverse-log decay; this theorem only aligns their cutoffs and sums the pointwise inequality.
Eventual log growth: PanLogEventuallyLarge #
For x : ℕ → ℝ with Tendsto x atTop atTop,
PanLogEventuallyLarge x follows from standard eventuality.
Real.tendsto_log_atTop.comp htend gives
Tendsto (log ∘ x) atTop atTop.
Use Filter.Tendsto.eventually and eventually_ge_atTop to pull back
∀ᶠ y, 1 ≤ y to ∀ᶠ X, 1 ≤ log (x X), then eventually_atTop
to express it as ∃ x₀, ∀ X ≥ x₀, ....
If x : ℕ → ℝ tends to infinity, then PanLogEventuallyLarge x:
eventually log(x X) ≥ 1, since log(x X) → ∞.
The real embedding x X = (X : ℝ) tends to infinity by
tendsto_natCast_atTop_atTop, so it satisfies PanLogEventuallyLarge.