# Review of "Boundary-adjusted gap schedules attain the exact Golomb-ruler threshold at every size"

**Recommendation: minor revisions.**

The paper asks a clear question and answers it: for every b ≥ 2 the first-attainment threshold is g0(b) = B(b+1) − 2b. The lower bound is elementary and correct. The construction and the reduction to the published AW certificate hold up when checked line by line. The remaining problems are about framing and attribution, not the mathematics. The most important fix is to say in the opening paragraph that the all-b theorem depends on the middle-distance certificate in Williams's preprint [2], and to show the reader that the formula matches the published small values.

## What I checked

**Code execution was denied in this session.** Python, the C++ compiler and unzip all failed on permission errors, so I could not rerun `analysis/run.sh`. Everything below comes from hand derivation, reading the code and saved outputs, and reading the source papers.

1. **Lower bound (Section 2): correct.** I rederived the complement identity r_X(d) = g + 1 − d + r_J(d) + #{j < d} + #{j > D − d}. Adding the outside points −1 and D+1 creates pairs (−1, d−1) and (D+1−d, D+1). These are counted by the two boundary terms. Distance D+1 has no pairs because 0 and D are marks, and distance D+2 has one. The augmented set is therefore an LM ruler with b+1 marks, which gives g ≥ B(b+1) − 2b. This argument does not depend on [2].

2. **Closed form and agreement with the published values: correct.** Summing s(s−1) for s = 2..k−1 and adding r·k gives g0 = (k−1)(k−2)(k−3)/3 + (k−2)r. For b = 2..12 this gives 1, 2, 4, 6, 8, 11, 14, 17, 20, 24, 28. These are exactly the values Gupta and O'Bryant list in Problem 4 of arXiv:2605.14229v2 (the sequence there starts with g0(1) = 1). The paper never says it reproduces them, and it should; see below. I also checked the worked example by hand. The marks {1,2,4,6,7,9,10,11} have at most four pairs at every distance (d = 1, 2, 3 and 5 each have four), and the diameter is 10 = g + 2b − 2.

3. **Construction (Section 3): correct.** Both the paper's word W and `analysis/finite.cpp` match the body in [2] (`construction.tex`, Section 1). The complement identity on {1, …, L−1} checks out. So does the cutoff d ≤ min(L−2, 2b−1): at distance d the whole interval has L−1−d pairs, which is at most g once d ≥ 2b−1. I checked the three subset relations directly:
   - For r ≥ 2, J − k is a prefix of F_k, since r − 2 ≤ k − 1.
   - For even k with r = 1, J is a subset of F_k.
   - For the rotated odd case, J + H = {p_2, …, p_m, T+H}.

   The new seams (k, W_1), (W_m, k) and (H, H) all sum to at least k+1. So E(d) ≤ 4d/(k+1) + 2 and inequality (3) follow.

4. **Short distances (Section 4): correct.** For d ≤ k the removed end gaps are (k, k) when r ≥ 2 and (k−1, k) when r = 1, and (1) then holds with equality for d < k. For the rotated odd case I confirmed the counts by hand:
   - The deleted two-gap run is (G_{h−1}, S_1) = (2h, h), with sum 3h.
   - The new run is the seam (H, H), with sum 2H.
   - The boundary count is E = 2 + [d = 3h], because the holes nearest the left end sit at k−1 and 3h.

   At d = 2H the bound is met with equality, as the paper says.

5. **Middle distances (Section 5): the arithmetic is right; the substance is inherited.** In `certify_middle.py`, budget = j/8 − 1/151 for bands and s + min(0, (c−1)/151) for lines. These match the (d−1)/h lower bounds, so `margins.py` subtracts the right surcharge, (2u+4)/151 ≥ (4d/(k+1) + 4)/h. The saved logs show all 3,152 band bounds and all six line bounds regenerated by the source's own replay. That establishes the paper's arithmetic. It does not establish that [2]'s event partition is correct. The paper says this in Section 8; see the main request.

6. **Long distances (Section 6): correct.** I read the source proof of the four-progressions lemma. The bound d < n_k is used in only one place: the index-span inequality (b−1)g/(4H) ≤ 3b/(4H) + d/(8H²) < 1. With d < 2n_k < 4H² the right side is below 5/4. So each phase pair has at most two matches, which gives 64H instead of 32H. The other three contributions do not depend on d. The total is 64H + 8H + 6H + 44H/3 = 278H/3, as stated. Both polynomial inequalities are correct:
   - 18H² − 1415H + 1200 is positive for H ≥ 79.
   - (H−6)(2H²−3H+2) − 278H² − 15H = 2H³ − 293H² + 5H − 12 is positive for H ≥ 147.

   n_k ≥ 2H² − 3H + 2 holds for both parities.

7. **Finite checks (Section 7): the code does what the paper says.**
   - `finite.cpp` checks the envelope exactly in integers for 3h < d ≤ 2(n_k − 1) − 1. Wherever the envelope fails, it checks (1) directly for every tail.
   - In `results/finite.csv`, failing distances occur only at h ≤ 26, and every row from h = 27 to 150 has a nonnegative minimum numerator.
   - `independent.py` builds the real dense mark sets as bitsets. It checks every distance for every b ≤ 1431 (h ≤ 26), so the low heights are verified directly, without relying on the comparison lemmas.
   - For heights 27–150, correctness depends on the subset-plus-one relation and the two-gap bound (items 3–4). Both are short, exact arguments.

   I could not rerun these programs. The saved outputs agree with each other and with the notebook.

## Requested changes

1. **State the dependency on [2] at the start (most important).** The theorem is proved assuming the published AW middle-distance certificate (the event partition in [2]). That certificate is a same-day preprint which the authors replayed numerically but did not re-derive. A reader learns this only in Section 8. Add one sentence to the opening paragraph and to the `record.json` summary, for example: "The proof uses the published AW middle-distance certificate [2], whose bounds we replayed exactly." This is an honest limit, not a reason to hold the paper, but it belongs where the claim is made.

2. **Fix the attribution of the 12 values, and use them as a check.** Section 1 says Williams [1] "tabulates its first 12 values." The list 1, 1, 2, 4, 6, 8, 11, 14, 17, 20, 24, 28 comes from Gupta and O'Bryant [3] (Section 7, Problem 4). [1] gives bounds and says the exact value is open. Attribute the values to [3] and add one sentence saying the formula reproduces all of them (b = 2..12). It is the only check in the paper that could have failed independently of the authors' own construction.

3. **Show the improvement over the previous bounds.** Quote the bounds from [1]: L(b−1) − 2b + 4 ≤ g0(b) ≤ L(b−1) + 1. Their gap is 2b − 3, which grows like k². One line makes clear that the old lower bound was not sharp and the new outside-endpoint bound is.

4. **Fix the broken formula in equation (4).** In the source, `\frac` has become a stray character followed by `rac{2(j+1)/8+4}{151}` (a lost backslash-f), so the display does not render.

## Smaller points

- Section 5 lists internal details of [2]'s certificate ("at most 199 gaps", 1,576 bands, the meaning of j/8) that the reader cannot use. One sentence saying what the certificate bounds, plus the residual 10/453, would be enough.
- "How the boundary rule was found" is useful: it reports how much was scanned (19,550 + 16,742 arrangements) and that moving only the largest gaps failed for the 22 odd one-tail cases. Keep it, but the second paragraph can be shortened.
- `record.json`: the second finding ("not just the previously checked b≤1128") refers to the project's own history; state it on its own terms. The summary should also mention the dependency on [2] (request 1). `so_what` is clear and does not oversell. Importance 3 is fair: the paper settles the first half of a stated open problem (Gupta–O'Bryant Problem 4) exactly, and leaves the predecessor question open, as it says.
- The paper is a finding, not a reproduction; `type: finding` is correct.

## Bottom line

The question is answered. The lower bound stands on its own; I rederived the construction, the boundary comparison, the short-distance cancellation and the extended long-distance bound and found no errors. The finite verification code matches its description. The claim is a computer-assisted proof conditional on [2]'s middle-distance certificate, and the paper should say so up front. With the attribution fixed and the match to the published small values stated, it is ready.
