# Review of "Trimming two published sets of shifts tightens sieve bounds for five- and six-prime clusters"

**Recommendation: minor revisions.**

## What the paper claims

The paper takes Kapila's pair-penalty criterion for H_4 and H_5, holds each source trial (k coordinates) fixed, and lets the number of retained shifts K vary along with the long-pair allowance. It asks what span D is optimal over all subsets of two fixed pools: the published shift sets and extensions of them. With the sharper released quotients, the paper reports these optima:

- five primes: 82,188,372, in both the published set and the extended pool;
- six primes: 4,816,799,806 in the published set and 4,816,799,794 in the extended pool.

Two results make these exact optima rather than search results. An endpoint-exchange lemma reduces arbitrary subsets to consecutive windows. An exhaustive enumeration of windows then shows that every window fails at D−2.

The question is clear and so is the answer. I think the main claims hold, subject to the analytic inputs the paper cites.

## What I checked

**The sandbox blocked all code execution in this session.** Every attempt to run Python, a compiled binary or a PDF-to-text tool was denied. I did not rerun any search or enumeration. Instead I read the code against the paper, checked the reported numbers against the result files, and checked the size transport against the cached Kapila v2 PDF (`scout-prime-tuples-2026-11/data/kapila.pdf`). The editor should know this. The NOTES report a clean end-to-end `./reproduce.sh` replay, but I have not confirmed it.

1. **The size transport matches Kapila (the one new analytic step).**
   - Kapila's (10.2) gives β_− = (μ⁻/r)(1 − ∏_{j<r}(k−d−j)/(k−j)) = (μ⁻/r)(1 − C(K,r)/C(k,r)). Scaling β_0 by the ratio of these factors, as the paper does, is valid. Because β_0 is rounded down, the implied μ is conservative.
   - In Proposition 10.2 the pair term is B_D·2ζ²·J_K(Kη)·M⁺. Only J_K(Kη) depends on K, since ζ and M⁺ are source quantities. So C(K) = C_0·J(K)/J(K_0) is right.
   - The prime term λ(K/k)q is linear in K with a K-independent q, because q is the source quotient and the support loss is removed at source level.
   - The paper's denominator ½Kη²(u−v)² equals Kapila's a²/(2K)(u−w)² with a = Kη.
   - The criterion that K ≤ k with k fixed is respected throughout.

2. **The interpolation remainder in the independent check of J holds.** The denominator is x² + Kηx(u+w) + K²η²uw + ½Kη²(u−w)². Its coefficients are nonnegative, so s ≤ 2 and w ≤ 1. The coefficient recurrence then grows like (1+√2)ⁿ, which is below (5/2)ⁿ. `budget_audit.py` asserts that the two evaluations of J agree on every integer allowance.

3. **The exchange lemma is correct.** Replacing the nearer endpoint a by a skipped pool point x moves it by at most half the selected diameter, so at most D. Selected points between a and x end up within D of x. For points beyond x, |y−x| < |y−a|, so each new long pair maps injectively onto an old one. The number of pool points strictly inside the endpoints falls, so the process terminates in a window. The even-parity argument for D−2 is also right.

4. **The exhaustive enumeration (`all_windows.cpp`) does what it claims.**
   - It reads only the two rims of the pool. Its two asserts guarantee that every long pair has its right element in the right rim and its left element in the left rim.
   - It enumerates every window start i ≤ surplus+dmax and every eligible size, and the window counts match `frontier.py`.
   - It does not rely on the marginal stopping rule. The only state it shares with the search is the allowance array, which `budget_audit.py` checks independently.

5. **Admissibility is checked completely.**
   - For H_5, `check.cpp` verifies a missing class for every prime from 10⁷ to k = 232,500,000. That is 12,107,833 primes, about π(2.325·10⁸) − π(10⁷). Below 10⁷, class 0 is missed because every entry is ±1 or ±(a prime above 10⁷).
   - For H_4 it checks all 354,325 primes up to 5,090,000.
   - `more_classes.py` covers the primes between the old K and k, which only become relevant once the pool is extended.

6. **The reported numbers agree with the result files.**
   - Table 1 matches `span_comparisons.md`; Table 2 matches `window_certificates.md` and `exhaustion.json`.
   - The differences are right: 112,274; 112,262; 12; 31,464; 2,166. So are the margins of 1,668 and 33 pairs.
   - The witness size ranges are right: 13 sizes from 5,088,171 to 5,088,183 and 116 sizes from 232,430,792 to 232,430,907.
   - At K = K₀ the pipeline reproduces Giraudin's 4,817,211,684 and the release's 82,190,538 and 82,205,490. This is a useful calibration, since only the K-dependence is new.

## Issues the authors should fix

**1. Say plainly what the new numbers mean against the current best published bounds, and what they depend on. This is the most important fix.** The paper never says whether H_4 ≤ 82,188,372 and H_5 ≤ 4,816,799,794 improve on the best published values. As far as the cited sources show, they do: the November release has 82,190,538 and Giraudin has 4,817,211,684. The program asks that what is new be stated exactly.

Both numbers rest on three things:
- Kapila's unrefereed preprint, which its author marks as primarily AI-generated;
- a third-party GitHub recomputation of the quotient, which supplies the "sharper" q;
- the extension and residue choices made here.

One short paragraph in the introduction should list the current best bounds and say that the new figures are conditional on these inputs. The closing paragraph partly does this, but too late and too softly.

The same paragraph should say that most of the change from Giraudin's six-prime figure comes from the quotient, not from trimming:
- swapping in the sharper quotient: 4,817,211,684 → 4,816,912,080, a gain of 299,604;
- trimming: a further 112,274.

Table 1 shows this, but the title and the `so_what` point readers to trimming.

**2. Give the scope of "exact optimum" once, early.** The optimum covers subsets of these two pools, with the source trial (k, r, η, M⁺, μ⁻) held fixed and with the extension widths chosen here: 200,000 and 4,000,000 integers on each side. All of this appears somewhere in the paper. A reader still meets "the shortest spans the test accepts" in the first paragraph before learning that k is fixed and the pools are finite.

The wording "looking beyond the original ends bought nothing more" (in `so_what`) and "extending the sieves improves only the latter" (in the summary) refers to one particular extension width. The optimal windows sit inside the extended pools, which makes it plausible that a wider extension would not help. Still, the text should not suggest that this was proven for every extension.

**3. Some `record.json` details are ambiguous.**
- The finding "attainable at exactly 13 and 116 distinct retained sizes" is true for the extended pools. In the published six-prime set the count is 147 (`exhaustion.json`, `parent_5_1`). Name the pool.
- In `so_what`, "tightened the bounds almost as far as possible" can be read as a statement about primes. Better: "almost as far as these lists allow".
- `so_what` should also say the gains are tiny: about 2 parts in 100,000 of the span. A lay reader should not picture a large advance.

**4. Make the transport step easier to find.** The Methods paragraph that justifies β(K) and C(K) is correct, but it is compressed. Displaying it as a short lemma would let a specialist check the paper's only new analytic ingredient quickly. The lemma should quote (10.2) with its product form and the pair term of (10.4), and note that ζ, M⁺, q and the support loss do not depend on K.

## Smaller points

- "Kapila's certificates compare selected sizes" is vague. Say which sizes Kapila's tables report.
- The phrase "Smallest excess at D−2" in Table 2 would be clearer as "Smallest shortfall of the best window at D−2, in pairs".

## Overall

The question is well posed. The answer is exact within a clearly bounded setting, and the verification is unusually careful: an independent admissibility checker, an independent pair counter, two independent evaluations of J, and an enumeration that does not use the search's stopping rule. Importance level 2 is fair. The main fixes are framing: name the bounds this implies, say what they depend on, and separate the gain from the quotient from the gain from trimming. None of the fixes requires new computation.
