Uniform prime-sum replacement, including the Buchstab corner #
For primeErrorStart ≤ y, y² ≤ x, and log x / log y ≤ 100, the
actual prime sum over y ≤ p < sqrt x differs from
x / log x * ((log x / log y) * buchstab (log x / log y) - 1) by at most
106 * (primeErrorEnvelope y + 1 / log y) * (x / log y).
For (y, sqrt x], the constant is 104. Both include x = y².
The proof constructs an integrable derivative representative, splits FTC
at the sole possible interior corner exp (log x / 3), and keeps the
extra f / log² integral from the comparator t / log t.
The finite summation argument below follows Mathlib's AbelSummation
(Xavier Roblot, Apache 2.0), replacing its everywhere differentiability
assumption by the fundamental theorem on subintervals.
FTC with one exceptional interior point. No derivative at the corner or at either endpoint is assumed.
Inspect dependencies
LiLiuPrereqBuchstab.integral_eq_sub_of_hasDerivAt_off_one · compiled type and proof/definition references.
Abel summation for an integrable derivative representative with FTC on every subinterval. This also applies to continuous piecewise-C¹ weights.
Inspect dependencies
LiLiuPrereqBuchstab.sum_mul_abel_of_ftc · compiled type and proof/definition references.
Actual prime Abel summation with a single corner. The derivative
representative need not equal deriv f at the corner or the endpoints.
Inspect dependencies
LiLiuPrereqBuchstab.prime_abel_off_one · compiled type and proof/definition references.
A derivative representative; the chosen value at 2 is immaterial.
Equations
- LiLiuPrereqBuchstab.buchstabSlope u = if u ≤ 2 then -(1 / u ^ 2) else (LiLiuPrereqBuchstab.buchstab (u - 1) - LiLiuPrereqBuchstab.buchstab u) / u
Instances For
Inspect dependencies
LiLiuPrereqBuchstab.buchstabSlope · compiled type and proof/definition references.
Inspect dependencies
LiLiuPrereqBuchstab.measurable_buchstabSlope · compiled type and proof/definition references.
Inspect dependencies
LiLiuPrereqBuchstab.hasDerivAt_buchstab_off_two · compiled type and proof/definition references.
Inspect dependencies
LiLiuPrereqBuchstab.abs_buchstabSlope_le_one · compiled type and proof/definition references.
The actual weight occurring in the rough-count recursion.
Equations
Instances For
Inspect dependencies
LiLiuPrereqBuchstab.buchstabPrimeKernel · compiled type and proof/definition references.
Factored derivative representative, including an arbitrary corner value.
Equations
Instances For
Inspect dependencies
LiLiuPrereqBuchstab.buchstabPrimeKernelSlope · compiled type and proof/definition references.
Inspect dependencies
LiLiuPrereqBuchstab.measurable_buchstabPrimeKernelSlope · compiled type and proof/definition references.
Inspect dependencies
LiLiuPrereqBuchstab.continuousOn_buchstabPrimeKernel · compiled type and proof/definition references.
Inspect dependencies
LiLiuPrereqBuchstab.hasDerivAt_buchstabPrimeKernel · compiled type and proof/definition references.
Inspect dependencies
LiLiuPrereqBuchstab.abs_buchstabPrimeKernel_le · compiled type and proof/definition references.
Inspect dependencies
LiLiuPrereqBuchstab.abs_buchstabPrimeKernelSlope_le · compiled type and proof/definition references.
Inspect dependencies
LiLiuPrereqBuchstab.integrableOn_buchstabPrimeKernelSlope · compiled type and proof/definition references.
The actual prime kernel satisfies Abel summation, even when
exp (log x / 3) lies in the interval.
Inspect dependencies
LiLiuPrereqBuchstab.buchstabPrimeKernel_abel · compiled type and proof/definition references.
Subtracting t / log t, not Li(t), leaves an explicit extra
f(t) / log² t integral.
Inspect dependencies
LiLiuPrereqBuchstab.prime_abel_log_error_identity · compiled type and proof/definition references.
Inspect dependencies
LiLiuPrereqBuchstab.integral_inv_mul_log_sq_le · compiled type and proof/definition references.
A quantitative, parameter-independent Abel estimate from the actual PNT. The only weight assumptions are continuity, an integrable piecewise derivative, and explicit pointwise bounds.
Inspect dependencies
LiLiuPrereqBuchstab.prime_abel_log_error_le · compiled type and proof/definition references.
Uniform prime-sum replacement on (y, sqrt x], with a numerical constant
independent of both real parameters, including x = y².
Inspect dependencies
LiLiuPrereqBuchstab.buchstabPrimeKernel_sum_Ioc_error_le · compiled type and proof/definition references.
The lower prime cutoff is included, the upper cutoff is excluded.
Equations
- LiLiuPrereqBuchstab.primesIco a b = {p ∈ LiLiuPrereqBuchstab.primesIcc a b | ↑p < b}
Instances For
Inspect dependencies
LiLiuPrereqBuchstab.primesIco · compiled type and proof/definition references.
Inspect dependencies
LiLiuPrereqBuchstab.mem_primesIco · compiled type and proof/definition references.
Inspect dependencies
LiLiuPrereqBuchstab.sum_primesIcc_eq_sum_primesIco_add · compiled type and proof/definition references.
Uniform replacement (H) with the actual strict-upper prime cutoff
y ≤ p < sqrt x. The explicit constant 106 works for every admissible
x,y; no differentiability is asserted at the Buchstab corner.
Inspect dependencies
LiLiuPrereqBuchstab.buchstabPrimeKernel_sum_Ico_error_le · compiled type and proof/definition references.
The constant is quantified before both parameters. The summand and main term are the actual Buchstab kernel, not abstract replacement interfaces.
Inspect dependencies
LiLiuPrereqBuchstab.buchstab_prime_sum_replacement_uniform · compiled type and proof/definition references.