The (ordered) dyadic blocks in the binary decomposition of [start,start+rem).
The recursive call is on the remainder after removing the largest dyadic block.
Equations
Instances For
Equations
- MathlibNt.SieveTheory.dyadicBlockSum f b = ∑ n ∈ Finset.Ico b.1 (b.1 + b.2), f n
Instances For
An induced character is its primitive character times the exact coprimality indicator for the quotient of its level by its conductor.
Exact Möbius expansion of the noncoprime correction for an induced Dirichlet character.
Reindex a finite sum restricted to multiples of e by its quotient.
Conductor-first transfer for one prefix. The noncoprime correction is
linearized before any character Cauchy--Schwarz: each divisor e dilates the
coefficient sequence and leaves one primitive character sum.
A Dirichlet-character value has norm at most one, including at nonunits.
The complex cast of the Möbius function has norm at most one.
The conductor-first linear transfer for one prefix. Crucially, the triangle inequality is taken only after the exact noncoprime Möbius expansion; no all-character square mean is introduced.
Equations
- MathlibNt.SieveTheory.characterPrefixSquare a q y χ = ‖∑ n ∈ Finset.range y, a n * χ ↑n‖ ^ 2
Instances For
Equations
- MathlibNt.SieveTheory.characterPrefixSquareMax a q N χ = (Finset.image (fun (y : ℕ) => MathlibNt.SieveTheory.characterPrefixSquare a q y χ) (Finset.range (N + 1))).max' ⋯
Instances For
Equations
- MathlibNt.SieveTheory.characterDyadicPrefixEnergy a q y χ = (List.map (fun (b : ℕ × ℕ) => ‖∑ n ∈ Finset.Ico b.1 (b.1 + b.2), a n * χ ↑n‖ ^ 2) (MathlibNt.SieveTheory.dyadicPrefixBlocks 0 y)).sum
Instances For
Equations
- MathlibNt.SieveTheory.characterDyadicPrefixEnergyMax a q N χ = (Finset.image (fun (y : ℕ) => MathlibNt.SieveTheory.characterDyadicPrefixEnergy a q y χ) (Finset.range (N + 1))).max' ⋯
Instances For
The pointwise Rademacher--Menshov reduction. Unlike a maximum taken after the character average, this keeps the prefix maximum inside each primitive character summand, which is the form needed for conductor regrouping.
Equations
- MathlibNt.SieveTheory.primitiveCharacterPrefixMaxMean Q a N = ∑ q ∈ Finset.Icc 1 Q, ↑q / ↑q.totient * ∑ χ : DirichletCharacter ℂ q with χ.IsPrimitive, MathlibNt.SieveTheory.characterPrefixSquareMax a q N χ
Instances For
Equations
- MathlibNt.SieveTheory.primitiveCharacterDyadicMaxMean Q a N = ∑ q ∈ Finset.Icc 1 Q, ↑q / ↑q.totient * ∑ χ : DirichletCharacter ℂ q with χ.IsPrimitive, MathlibNt.SieveTheory.characterDyadicPrefixEnergyMax a q N χ
Instances For
Exact primitive-character maximal reduction with the prefix maximum inside
the character sum and the original q / φ(q) weight unchanged.
Extend a sequence on the naturals by zero to the integers. This is the
coefficient interface required by bombieriDavenport_le.
Instances For
Bombieri--Davenport on one natural-number block, retaining exactly the
original primitive-character and q / φ(q) weights.
The adjacent aligned blocks of a fixed length partition their union.
The primitive-character square mean over all aligned blocks at one scale. The coefficient energy occurs only once, rather than once for every prefix.
Summing the aligned block estimate through the binary scales costs just one fixed logarithmic factor.
Every block in the recursive decomposition starts no earlier than the left endpoint of the interval being decomposed.
Equations
- MathlibNt.SieveTheory.alignedDyadicBlockIndices N = (Finset.range (1 + Nat.log 2 (N + 1))).sigma fun (k : ℕ) => Finset.range ((N + 1) / 2 ^ k)
Instances For
Equations
Instances For
The existing dyadic-prefix maximum is controlled by the aligned block family. The latter has one copy of the coefficient energy at each scale.
End-to-end maximal Bombieri--Davenport estimate for natural coefficients. The two fixed logarithmic factors respectively come from the prefix Rademacher--Menshov reduction and the aligned dyadic scales.
Truncating a coefficient sequence at the largest index used by a prefix maximum does not change that maximum.
A positive dilation selects distinct coefficients from the original
[0,N] energy and therefore cannot increase its square mass.
The maximal primitive mean of every positive dilation is controlled by the same undilated coefficient energy.
After taking square roots, every positive dilation has one common large-sieve and dyadic factor.
The finite set of genuinely nonprincipal characters at a fixed level.
Equations
Instances For
The primitive-prefix majorant obtained from one induced character after the exact Möbius dilation expansion.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerInducedPrefixUpper N q χ = ∑ e ∈ (q / χ.conductor).divisors, √(MathlibNt.SieveTheory.characterPrefixSquareMax (fun (m : ℕ) => ↑(MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerCoefficient N (e * m))) χ.conductor (N / e + 1) χ.primitiveCharacter)
Instances For
A prefix norm is bounded by the square root of its finite prefix-square maximum.
Every induced-character prefix is bounded linearly by primitive prefixes of the dilated coefficient sequences.
Triangle inequality for the exact nonprincipal character expansion, before any Cauchy--Schwarz step.
The maximum over residue classes and prefixes is bounded before conductor regrouping by the linear induced-character primitive-prefix majorant.
The finite linear transfer that still retains every inducing level and character. Its conductor regrouping is an exact finite reindexing.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerInducedPrefixTransfer N Q = ∑ q ∈ Finset.Icc 1 Q, MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerModulusWeight q * (↑q.totient)⁻¹ * ∑ χ ∈ MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerNonprincipalCharacters q, MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerInducedPrefixUpper N q χ
Instances For
The same finite transfer regrouped first by primitive conductor. Inducing levels and their character fibers remain explicit.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerConductorPrefixTransfer N Q = ∑ d ∈ Finset.Icc 1 Q, ∑ q ∈ Finset.Icc 1 Q, MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerModulusWeight q * (↑q.totient)⁻¹ * ∑ χ ∈ MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerNonprincipalCharacters q with χ.conductor = d, MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerInducedPrefixUpper N q χ
Instances For
The primitive characters at an exact conductor.
Equations
Instances For
Primitive characters of conductor d, lifted to a fixed multiple q.
Equations
Instances For
A primitive character agrees pointwise with its canonical primitive character. The pointwise form avoids transporting across conductor equality.
Prefix squares of the primitive character underlying a lifted primitive character are exactly the original primitive-character prefix squares.
The finite prefix-square maximum is unchanged when the character is first lifted and then canonically reduced to its primitive conductor.
Prefix-square maxima are nonnegative.
The primitive characters form a subset of all characters, whose cardinality is Euler's totient.
Cauchy--Schwarz over the primitive characters at one exact conductor.
Normalization of every lifted induced upper bound to the original primitive character and the explicit conductor quotient.
At a fixed positive level and conductor greater than one, the conductor fiber is exactly the injective image of primitive characters.
Reindexing a fixed conductor fiber loses no multiplicity: every induced character is represented by exactly one primitive character.
The conductor-first transfer after exact reindexing by primitive characters. Divisibility of the conductor into the inducing level and the conductor-one exclusion remain explicit.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerPrimitiveLiftPrefixTransfer N Q = ∑ d ∈ Finset.Icc 1 Q, ∑ q ∈ Finset.Icc 1 Q, MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerModulusWeight q * (↑q.totient)⁻¹ * if _hd1 : d = 1 then 0 else if hdq : d ∣ q then ∑ ψ ∈ MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerPrimitiveCharacters d, MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerInducedPrefixUpper N q ((DirichletCharacter.changeLevel hdq) ψ) else 0
Instances For
The primitive-lift transfer after removing all dependent conductor
transports. Every remaining term is a prefix maximum at the explicit conductor
d for a dilated coefficient sequence.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerPrimitiveDilationPrefixTransfer N Q = ∑ d ∈ Finset.Icc 1 Q, ∑ q ∈ Finset.Icc 1 Q, MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerModulusWeight q * (↑q.totient)⁻¹ * if d = 1 then 0 else if d ∣ q then ∑ ψ ∈ MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerPrimitiveCharacters d, ∑ e ∈ (q / d).divisors, √(MathlibNt.SieveTheory.characterPrefixSquareMax (fun (m : ℕ) => ↑(MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerCoefficient N (e * m))) d (N / e + 1) ψ) else 0
Instances For
Positive multiples of d in [1, Q] are uniquely parametrized by their
positive cofactors in [1, Q / d].
Summing the complementary cofactor weight over multiples of a fixed
divisor costs at most the finite H₃ mass.
The three-factor decomposition remains an upper bound without a squarefree hypothesis, because nonsquarefree product weights vanish.
The primitive dilation transfer with inducing levels written uniquely as
q = d * r. This removes the divisibility branch while retaining the
conductor-one exclusion and every cofactor/divisor multiplicity.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerCofactorDilationPrefixTransfer N Q = ∑ d ∈ Finset.Icc 1 Q, if d = 1 then 0 else ∑ r ∈ Finset.Icc 1 (Q / d), MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerModulusWeight (d * r) * (↑(d * r).totient)⁻¹ * ∑ ψ ∈ MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerPrimitiveCharacters d, ∑ e ∈ r.divisors, √(MathlibNt.SieveTheory.characterPrefixSquareMax (fun (m : ℕ) => ↑(MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerCoefficient N (e * m))) d (N / e + 1) ψ)
Instances For
The conductor/dilation functional left after the complementary cofactor
has been summed under H₃.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerH3DilationPrefixTransfer N Q = MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerH3Mass Q * ∑ d ∈ Finset.Icc 2 Q, MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerModulusWeight d / ↑d.totient * ∑ e ∈ Finset.Icc 1 Q, MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerModulusWeight e / ↑e.totient * ∑ ψ ∈ MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerPrimitiveCharacters d, √(MathlibNt.SieveTheory.characterPrefixSquareMax (fun (m : ℕ) => ↑(MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerCoefficient N (e * m))) d (N / e + 1) ψ)
Instances For
The post-primitive-character Cauchy functional, arranged with the dilation outside so that the remaining Cauchy--Schwarz inequality is over conductors.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerPrimitiveCauchyPrefixTransfer N Q = MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerH3Mass Q * ∑ e ∈ Finset.Icc 1 Q, MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerModulusWeight e / ↑e.totient * ∑ d ∈ Finset.Icc 2 Q, MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerModulusWeight d / ↑d.totient * √↑d.totient * √(∑ ψ ∈ MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerPrimitiveCharacters d, MathlibNt.SieveTheory.characterPrefixSquareMax (fun (m : ℕ) => ↑(MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerCoefficient N (e * m))) d (N / e + 1) ψ)
Instances For
Algebraic square-root factorization that aligns the conductor coefficient
with J₉ and the d / φ(d) primitive large-sieve weight.
Squaring the squarefree modulus weight gives exactly the J₉ summand.
The conductor square mass on [2,Q] is contained in the finite J₉
mass.
Restricting the primitive maximal mean to conductors at least two can only decrease it.
The exact finite target after both Cauchy--Schwarz steps. It contains only
the H₃ and J₉ masses and the already established primitive maximal mean.
Equations
- MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerH3J9PrefixTransfer N Q = MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerH3Mass Q * ∑ e ∈ Finset.Icc 1 Q, MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerModulusWeight e / ↑e.totient * (√(MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerJ9Mass Q) * √(MathlibNt.SieveTheory.primitiveCharacterPrefixMaxMean Q (fun (m : ℕ) => ↑(MathlibNt.SieveTheory.LiuWeight.liuPanPrimePowerCoefficient N (e * m))) (N / e + 1)))
Instances For
The positive dilation weights on [1,Q] are contained in H₃(Q).
All primitive means in the exact H₃/J₉ transfer are bounded by one
global coefficient energy and one common large-sieve factor.
Abstract cofactor summation: after the squarefree three-factor estimate,
the complementary quotient is absorbed by H₃.
The exact cofactor transfer is bounded by the explicit post-H₃
conductor/dilation functional.
Cauchy--Schwarz over the primitive characters at each exact conductor, without summing over inducing levels first.
Cauchy--Schwarz over conductors gives the exact finite H₃/J₉
primitive-maximal functional.
Exact conductor/cofactor reindexing of the primitive dilation transfer.
Full exact finite reduction of the primitive dilation transfer to the
H₃/J₉ masses and primitive maximal large-sieve means.
Exact normalization of the conductor-first lift transfer.
The conductor-one fiber is absent from every positive-level nonprincipal character set.
Exact primitive-character reindexing of the whole conductor transfer. No character or inducing-level multiplicity is discarded.
Exact finite conductor regrouping, with no character multiplicity or coprimality factor suppressed.
The original residual is bounded by the finite induced-character transfer. The modulus-zero term is annihilated by its weight; modulus one contributes no nonprincipal character.
Conductor-first form of the exact residual transfer.
The original residual transferred all the way to uniquely indexed primitive characters, while retaining every inducing level and Möbius dilation.
Exact finite H₃/J₉ maximal large-sieve reduction for the original
nonprincipal prime-power residual.
A zero conductor cutoff leaves only modulus zero, whose Möbius weight annihilates the residual.
The original residual is bounded by one explicit maximal large-sieve factor and the global square mass of the collected source coefficient.
Substituting the source coefficient's L² estimate leaves only explicit
scalar factors in the residual bound.
For nonnegative logarithmic cutoff exponent, the Pan conductor range lies inside the square-root range.
The weak large-sieve constant is now fully eliminated from the residual
bound at Pan's cutoff. Only the explicit H₃, J₉, and logarithmic scalar
factors remain.
The maximal nonprincipal residual has the source exponent 227/240; all
conductor, dyadic, and coefficient-multiplicity costs fit in log(N)^20.