/teal-sea
teal-sea / zeta-labstate of record · compiled 28 Sep 2026 · revision e4945c4 · source

Library · hunts/prime_pair_error/FACTORIZATION_NEXT_STEP.md

Dirichlet Hyperbola Factorization of the Full Signed Functional D_N

2,994 words · 185 lines · source

1. Orientation and Purpose

This document records the constructive next step in the arithmetic investigation of $D_N$, the defined signed prime-counting functional.

Following the independent review and author adjudication in ARITHMETIC_CANCELLATION_REVIEW.md and ARITHMETIC_CANCELLATION_CANDIDATE.md, we depart from the scale-by-scale bilinear sums $\mathcal{T}_{\mathrm{bilinear}}$ and address the full signed functional directly. Rather than postulating separate remainder bounds, we substitute the exact truncated Mobius convolution $\Lambda = \mu * \log$ into the entire functional $D_N$, retain all coupled boundary and principal terms, and establish an exact two-piece Dirichlet hyperbola decomposition without remainder leakage.

The central finding is twofold:

  1. The full functional $D_N$ is an exact finite linear combination of $\Lambda(m)$ for $m \le N/2$ plus a completely explicit smooth baseline $\mathcal{S}_{\mathrm{smooth}}(N, K)$.
  2. Substituting $\Lambda = \mu * \log$ yields an exact partition $D_N = \mathcal{S}_{\mathrm{smooth}} + \Sigma_1 + \Sigma_2$. Formal intuition only (no priced proof): the Type I sum $\Sigma_1$ formally matches the scale of $\mathcal{S}{\mathrm{smooth}}$. The Type II inner sums expand explicitly into interval differences of the Mertens function $M(t) = \sum{a \le t} \mu(a)$ (with empty-interval guards required; see section 4.2). The exact joint target of this route is $|\mathcal{S}_{\mathrm{smooth}} + \Sigma_1 + \Sigma_2| \ll_\epsilon N^{1/2+\epsilon}$. No equivalence is claimed between bounds on individual pieces ($\Sigma_1$ alone, $\Sigma_2$ alone) and RH: only $\zeta(s)$ is involved here (no Dirichlet L-functions), and necessity of Mertens-strength input for any individual piece is not proved. (Corrected 2026-09-20: the draft claimed an equivalence with the Mertens square-root bound and invoked Dirichlet L-functions; both removed.)

2. Exact Kernel Reduction of the Full Functional

Let $N \ge 4$ be an integer, $K = \lfloor\sqrt{N}\rfloor$, and $Y = N/K$. The full functional is defined by: $$D_N = N \int_{Y}^\infty \frac{R(u)}{u^2} \, du - \sum_{k=2}^K R(N/k)$$ where $R(u) = \psi(u) - u = \sum_{m \le u} \Lambda(m) - u$.

Using the identity $\int_1^\infty R(u)/u^2 \, du = -(1 + \gamma)$ and evaluating the finite integral on $[1, Y]$, the tail term expands as: $$N \int_Y^\infty \frac{R(u)}{u^2} \, du = N \log Y - N(1 + \gamma) + K \psi(Y) - N \sum_{m \le Y} \frac{\Lambda(m)}{m}$$ Similarly, the discrete sum expands as: $$\sum_{k=2}^K R(N/k) = \sum_{k=2}^K \psi(N/k) - N (H_K - 1)$$ where $H_K = \sum_{k=1}^K 1/k$.

Subtracting the two expressions collects the smooth terms into: $$\mathcal{S}_{\mathrm{smooth}}(N, K) = N (\log Y + H_K - 2 - \gamma)$$ The remaining terms depend purely on the prime powers $m$: $$\mathcal{A}N = K \psi(Y) - N \sum{m \le Y} \frac{\Lambda(m)}{m} - \sum_{k=2}^K \sum_{m \le N/k} \Lambda(m)$$

Interchanging summation over $k$ and $m$ over the range $m \le M = \lfloor N/2 \rfloor$:

Therefore, the full signed functional admits the exact discrete kernel representation: $$D_N = \mathcal{S}{\mathrm{smooth}}(N, K) + \sum{m=1}^M w_N(m) \Lambda(m)$$ where $M = \lfloor N/2 \rfloor$, and the kernel $w_N(m)$ is defined for $1 \le m \le M$ by: $$w_N(m) = \begin{cases} 1 - \frac{N}{m}, & 1 \le m \le Y \\ 1 - \lfloor \frac{N}{m} \rfloor, & Y < m \le M \end{cases}$$ This representation is exact: there are no asymptotic remainders, no discarded boundaries, and no floating-point approximations.


3. Truncated Dirichlet Hyperbola Partition

We substitute the exact Dirichlet convolution: $$\Lambda(m) = (\mu * \log)(m) = \sum_{a b = m} \mu(a) \log b$$ into the arithmetic sum $\sum_{m=1}^M w_N(m) \Lambda(m)$. Since $\log 1 = 0$, terms with $b = 1$ vanish identically. The sum becomes: $$\sum_{m=1}^M w_N(m) \Lambda(m) = \sum_{\substack{a b \le M \\ b \ge 2}} \mu(a) \log b \, w_N(a b)$$

We partition the hyperbolic domain $\{ (a, b) : a b \le M, b \ge 2 \}$ using the parameter: $$U = \lfloor \sqrt{M} \rfloor = \lfloor \sqrt{\lfloor N/2 \rfloor} \rfloor$$

Lemma (Absence of Remainder Region)

For $U = \lfloor \sqrt{M} \rfloor$, every pair of integers $(a, b)$ satisfying $a b \le M$ satisfies $\min(a, b) \le U$. Consequently, the region $\{ a > U, b > U, a b \le M \}$ is strictly empty.

Proof. If $a > U$ and $b > U$, then $a \ge U + 1$ and $b \ge U + 1$. Thus $a b \ge (U + 1)^2$. By definition of the integer square root, $(U + 1)^2 > M$. Hence $a b > M$, which contradicts $a b \le M$. Q.E.D.

By this lemma, the hyperbolic domain splits disjointly into exactly two regions:

  1. Type I Sum ($\Sigma_1$): $a \le U$ and $2 \le b \le \lfloor M/a \rfloor$.
  2. Type II Sum ($\Sigma_2$): $2 \le b \le U$ and $U < a \le \lfloor M/b \rfloor$.

The decomposition of $D_N$ is therefore exact: $$D_N = \mathcal{S}_{\mathrm{smooth}}(N, K) + \Sigma_1(N) + \Sigma_2(N)$$ with: $$\Sigma_1(N) = \sum_{a=1}^U \mu(a) \sum_{b=2}^{\lfloor M/a \rfloor} \log b \, w_N(a b)$$ $$\Sigma_2(N) = \sum_{b=2}^U \log b \sum_{a=U+1}^{\lfloor M/b \rfloor} \mu(a) w_N(a b)$$ There is no third intersection piece to subtract, and no uncounted region.


4. Analytical Anatomy and the Mertens Obstruction

4.1. Type I Heuristic Scale Match

In $\Sigma_1$, the variable $a \le U \le \sqrt{N/2}$ is small, while the inner variable $b$ runs up to $M/a \asymp N/a$. The inner sum: $$S_1(a) = \sum_{b=2}^{\lfloor M/a \rfloor} \log b \, w_N(a b)$$ has the summand $\log b$ weighted by $w_N(a b)$. Formally, for $b \le Y/a$ where $w_N(ab) = 1 - N/(ab)$, Euler-Maclaurin in $b$ suggests main terms of the form $- (N/a) \log(N/a) + C (N/a)$. This is a formal heuristic scale reading, not an estimate: $w_N$ has a kink at $b = Y/a$ and jump discontinuities at every $ab = N/k$, so Euler-Maclaurin does not apply directly, and no remainder is derived or priced here. (Qualified 2026-09-20.)

Summing against $\mu(a)$ formally evokes the classical limiting relations: $$\sum_{a=1}^\infty \frac{\mu(a)}{a} = 0, \qquad \sum_{a=1}^\infty \frac{\mu(a) \log a}{a} = -1$$ These infinite series do not license uncontrolled finite truncations at $a \le U$: the partial sums converge only at PNT rate, and the truncation remainder at scale $U$ is not priced here. The observed numerical cancellation between $\mathcal{S}_{\mathrm{smooth}}$ and $\Sigma_1$ is diagnostic only: $|\mathcal{S}_{\mathrm{smooth}} + \Sigma_1|/N^{3/4}$ is $0.17$ at $N = 400$ and $0.75$ at $N = 1000$. Finite agreement is not a bound proof, and no analytical cancellation theorem is claimed for $\Sigma_1$ alone. (Corrected 2026-09-20: the draft presented the infinite-series cancellation and the finite-ratio observation as established.)

4.2. Reduction of Type II to the Mertens Function

In $\Sigma_2$, the outer variable $b$ is small ($2 \le b \le U$). For the inner variable $a$, we have integers $a \ge U + 1$ and $b \ge 2$, so $a b \ge 2(U + 1) > 2\sqrt{M}$. Since $Y = N/K \le \sqrt{N} + 1 + 1/(\sqrt{N} - 1)$ (valid upper bound; $Y < \sqrt{N} + 1$ is false, e.g. $N = 8$ and every $N = m^2 - 1$) and $2\sqrt{M} \ge Y$ holds for $N \ge 16$ by direct squaring, with $4 \le N \le 15$ checked by hand ($\Sigma_2$ is empty for $N \le 11$; at $N = 12, 13, 14, 15$ the least product is $6 > Y$), we have $ab > Y$ for every $\Sigma_2$ pair at every $N \ge 4$. Verified computationally: $\min(2(U+1) - Y) = 0.5$ over $4 \le N \le 100000$, and $\min(Kab - N) = 3$ over 30.8M sampled pairs. (Corrected 2026-09-20: the draft chain used the invalid inequality $\sqrt{N} \ge Y$; in fact $Y \ge \sqrt{N}$ always. The conclusion survives via the argument above.) Consequently, throughout $\Sigma_2$, the product $a b$ strictly exceeds $Y = N/K$. The kernel $w_N(a b)$ therefore takes purely integer values: $$w_N(a b) = 1 - \lfloor \frac{N}{a b} \rfloor$$

Let $k = \lfloor N/(a b) \rfloor$. Since $a b \le M = \lfloor N/2 \rfloor$, we have $k \ge 2$. Furthermore, since $a b > Y$, we have $k \le K$. The condition $\lfloor N/(a b) \rfloor = k$ is equivalent to: $$\frac{N}{k+1} < a b \le \frac{N}{k} \iff \frac{N}{b(k+1)} < a \le \frac{N}{bk}$$

The inner sum over $a$ in $\Sigma_2$ is: $$\mathcal{M}b(N) = \sum{U < a \le \lfloor M/b \rfloor} \mu(a) \left( 1 - \lfloor \frac{N}{a b} \rfloor \right)$$ Expanding by the level sets of the floor function: $$\mathcal{M}b(N) = \left[ M\left(\lfloor M/b \rfloor\right) - M(U) \right] - \sum{k=2}^K k \sum_{\substack{U < a \le \lfloor M/b \rfloor \\ N/(b(k+1)) < a \le N/(bk)}} \mu(a)$$ where $M(t) = \sum_{n \le t} \mu(n)$ is the Mertens function.

Each inner sum is a Mertens difference over a clamped interval. With $hi = \min(\lfloor M/b \rfloor, \lfloor N/(bk) \rfloor)$ and $lo = \max(U, \lfloor N/(b(k+1)) \rfloor)$: $$\sum_{\substack{U < a \le \lfloor M/b \rfloor \\ N/(b(k+1)) < a \le N/(bk)}} \mu(a) = \begin{cases} M(hi) - M(lo), & hi > lo \\ 0, & hi \le lo \end{cases}$$ The guard is load-bearing: clamped endpoints can reverse ($hi \le lo$), and the unguarded $M(hi) - M(lo)$ then returns a nonzero wrong-signed value (e.g. $N = 20$, $b = 2$, $k = 4$: unguarded $1$, correct $0$; two further instances at $b = 3$; see results_factorization_diagnostic.json). Level sets with $k > K - 1$ are empty by the $ab > Y$ gate and contribute $0$ under the same guard, so summing $k = 2, \dots, K$ is safe. (Corrected 2026-09-20: the draft omitted the guard.)

4.3. Pricing the Implication

We now evaluate the bounds on $\Sigma_2$:

The Precise Obstruction (restated): The estimates attempted in this note do not establish the required joint bound $|\mathcal{S}_{\mathrm{smooth}} + \Sigma_1 + \Sigma_2| \ll_\epsilon N^{1/2+\epsilon}$. No lower bound for $\Sigma_2$ was proved, and no saturation, impossibility, or individual non-boundedness claim is made: sharper estimates or different decompositions are not ruled out. The exact joint inequality above is retained as the open target.


5. Endpoints, Prime Powers, and Smoothing Costs

  1. Prime Powers at Endpoints: In $D_N$, the arithmetic convolution runs only up to $M = \lfloor N/2 \rfloor$. Thus, whether $N$ itself is a prime or prime power has no direct effect on the summation range of $\Lambda(m)$. Endpoint sensitivity is present at every cutoff: the integer floors $K$, $M$, $U$, the branch split at rational $Y$, and the prime powers entering $\Lambda(m)$ and $\mu(a)$ sums at each range end. The split between $m \le Y$ and $m > Y$ in $w_N(m)$ is over integers against rational $Y$, hence exact with no fractional error; this removes only the $Y$-branch error, not the other cutoffs.
  2. Smooth Tail Integral: The infinite tail $N \int_Y^\infty R(u)/u^2 \, du$ is completely resolved into $K \psi(Y) - N \sum_{m \le Y} \Lambda(m)/m$ plus smooth terms. There is no truncation error or discarded tail remainder.
  3. Smoothing Cost: The smooth contribution $\mathcal{S}_{\mathrm{smooth}}(N, K) = N (\log Y + H_K - 2 - \gamma)$ is given in closed form and evaluates to high precision via standard harmonic number expansions.

6. Concrete Finite Numerical Test

To enable immediate independent verification, the table below provides the values of the components across eleven test values of $N \in [16, 1000]$.

In all cases:

NKMUS_smoothSigma_1Sigma_2D_NDefect
1648214.2786-18.24320.6931-3.27153.55e-15
25512332.8889-34.87910.0000-1.99026.22e-15
36618459.9236-64.13110.6931-3.51442.22e-14
49724496.1160-100.83753.5835-1.13792.58e-14
648325142.0853-139.9752-4.7875-2.67741.19e-13
819406198.3672-207.91588.3710-1.17769.77e-14
10010507265.4338-266.9905-4.0943-5.65111.79e-13
14412728433.5698-431.5832-4.4308-2.44413.10e-13
2001410010666.7213-690.246329.64926.12426.93e-13
40020200141606.5025-1591.4802-16.8221-1.79972.84e-12
100031500224923.7976-5057.3877126.4718-7.11821.03e-11

Key Observations from the Numerical Evidence:

  1. Measured Float Defect: The floating-point accumulation defect is below $2 \times 10^{-11}$ across the entire range, reflecting double-precision rounding. Finite floating-point agreement is a measured diagnostic, not a proof of exactness. The exactness of the partition is proved symbolically by the absence-of-remainder lemma and verified to zero defect in exact rational arithmetic via the prime-log coefficient tests in factorization_diagnostic.py.
  2. Main Cancellation: At $N = 400$, $\mathcal{S}_{\mathrm{smooth}} = +1606.5025$ and $\Sigma_1 = -1591.4802$. Their sum is $+15.0223$. When added to $\Sigma_2 = -16.8221$, the result is $D_N = -1.7997$. This demonstrates how $\Sigma_1$ absorbs over 99% of the smooth scale growth.
  3. Type II Behavior: $|\Sigma_2|$ remains small relative to $N$ across all tested cases ($|\Sigma_2| \le 127$ at $N = 1000$), but oscillates in sign, reflecting the underlying Mertens oscillations.