# Review of "Reflected pairs balance the 24 four-point orders to within 25% of optimal"

**Recommendation: minor revisions.**

The paper asks a clear question: what is the leading constant in $D_n$, the smallest possible maximum deviation of the 24 four-pattern counts from their mean? It gives a clear answer: $1/720 \le \liminf D_n/n^3 \le \limsup D_n/n^3 \le 1/576$. The upper bound comes from an explicit random construction: reflected point pairs in small cells, moved to a slightly nonuniform density. The lower bound comes from squaring the signed pair count. I checked the arithmetic independently and checked the proof's logic. I found no error. The claims are stated at the right strength: existence at every large length, sharpness only within the stated family, and the true constant left open. My requests concern context and how a reader should interpret the asymptotics, not correctness.

## What I checked

1. **The 24 limiting errors.** I recomputed every $R_p$ without the authors' iterated-integral routine. I used the closed-form joint densities of the order statistics of four uniforms, expanded the shifted Legendre polynomials into monomials and evaluated Beta integrals in exact rationals. All 24 values match `results/certificate.json` exactly. The first-order term is zero for every pattern, $\max_p|R_p|=1$, $\sum_p R_p=0$ and $\sum_p h(p)R_p=-32$. The authors' scripts `check.py` and `grid_check.py` also run and pass.
2. **The finite-grid bias in equation (1).** $\sum_p b(p)=36$, so the bias $6-4b(p)$ sums to zero, as it must. The collision argument holds up. With labels drawn with replacement, a given pair of labels falls in a common cell with probability $\sum s^2/n^2 = 2/n$. For distinct labels the probability is $1/(n-1)$. Within a collision the limiting pattern is a uniform triple with one entry doubled in a fair orientation, which gives probability $b(p)/36$. The difference between the two experiments is exactly $(6/n)(1/24-b(p)/36)$. `grid_check.py` confirms the $m^6$ coefficient exactly for the unwarped twin grid. It is a genuinely independent check.
3. **The lower bound.** I re-derived the $S^2$ expansion. Monotone triples contribute 3 and the others $-1$, so the triple term is $\binom n3/3$. This forces $\sum_p h(p)(C_p-M_n) = -n^3/18+O(n^2)$, and $\sum_p|h(p)|=40$ gives $1/720$. Restricting to $D=O(n^3)$ is legitimate for a liminf statement.
4. **The parity sharpness argument.** The signed sum is the expected determinant of $J+E$ with $J$ of rank one, so it is $O(d^3)$. The bias has zero parity sum. I confirmed that $h+s$ vanishes on the 16 orders with $|h|=1$ and equals $\pm4$ on the other 8, so $\sum_p|h+s|=32$. The argument is correct and neat.
5. **The fluctuation bound.** I followed it step by step. Reflection cancels the linear Taylor term, so each twin cell has a centered conditional mean of $O(n^2)$, and the one-cell terms total $O(n^5)$. Near pairs number $O(n^{3/2})$ and contribute $O(n^{11/2})$; far pairs contribute $O(n^5)$. The orthogonal-decomposition argument that bounds the remaining variance by mixed differences is standard and correctly applied.
6. **Finite draws of the full warped construction.** I reran the authors' sampler and the increasing-quadruple counter with new seeds. The results are below. They are consistent with the predicted limit of $-1$ for both monotone orders.

| $n$ | draws | mean scaled error for 1234 / 4321 | s.d. per draw |
|---|---|---|---|
| 32,768 | 40 | −0.78 / −1.10 (s.e. 0.08) | 0.52 / 0.51 |
| 524,288 | 16 | −0.92 / −1.06 (s.e. 0.06) | 0.25 / 0.22 |

The spread falls by about half when $n$ grows sixteenfold. That is the $n^{-1/4}$ rate implied by the $O(n^{11/2})$ variance bound, which suggests the near-pair term is real and not just a slack bound.

## Requests

**1. Say whether the 1/720 lower bound is new (most important).** The headline "within 25% of optimal" and the 5/4 ratio rest on the lower constant. The paper credits Beniamini, Lavee and Linial with the $\Omega(n^3)$ order and says the lower bound "follows the pattern-product counting idea" of their paper. It never says whether their argument already yields an explicit constant, or what that constant is. A reader needs to know whether the paper improves both ends of the interval or only the upper end. Please state the best explicit lower constant obtainable from the prior work, or say plainly that none was stated. I could not reach the paper from this session to check. Either way the bounds as stated stay correct.

**2. Tell the reader where the asymptotics start and how slowly they converge.** The construction only exists once $\rho>0$. With $\sqrt{38115/956}\approx 6.3$ and $f$ reaching about $20\times6.3$, the sufficient condition used in `draw.py` requires $n \gtrsim 1.6\times10^4$. Corrections then decay only like $n^{-1/2}$ (the $O(d^3)$ terms, with large coefficients) and fluctuations like $n^{-1/4}$. The finite draws in the notes, and mine above, show per-draw scatter of about a quarter of a unit even at $n\approx 5\times10^5$. One short paragraph would prevent a wrong practical reading: that a list of a few thousand entries reaching about $n^3/576$ can be generated this way. It would give the explicit threshold, report the monotone-count checks (they are currently only in `NOTES.md`) and state that the result is asymptotic. Without it, the check that the construction behaves as predicted at finite length is invisible to readers.

**3. Trim the search history.** The paragraphs on the 1,180 archived Khovanova–Zhang permutations, the 440 sign-word pairs, and the "91 single products / 112 mixtures" screen describe how the density was found. They are not part of the proof. They interrupt the argument between the bias formula and the construction. One sentence would serve: "simpler tie-breaking grids reach at best 5/288; we found $f$ by a small search over Legendre products." The other paragraphs can move to the notes. The proof needs no search for its validity, so nothing is lost.

## Smaller points

- **Bonds.** Define a bond explicitly as covering both ascending and descending adjacencies ($12$ or $21$ inflations). The example "$1234$ has three" shows the ascending case only, and the count of 36 outcomes depends on both.
- **Scope of the sharpness section.** The parity argument does not use polynomiality. It applies to any smooth perturbation $1+df+d^2g$ added to reflected-pair sampling. Stating it that way is both stronger and clearer than "fixed polynomial adjustments of these orders". Also say that larger perturbations (amplitude $\gg n^{-1/2}$) are outside the argument, because then the $O(\varepsilon^3)$ parity term can exceed $1/n$. That is the obvious next direction for closing the gap.
- **Notation.** Define $o_{\mathbb P}$ at first use. Readers outside probabilistic combinatorics may not know it.

## record.json

- `type: finding` and importance 3 are appropriate. This narrows a specific open extremal constant to a factor of 5/4.
- The `so_what` is accurate and readable. "Comes within 25% of the smallest imbalance possible" would be more exact as "is at most 25% worse than the best possible arrangement". It would also help to add, following request 2, that this applies to very long lists (tens of thousands of entries and up).
- The findings match the paper. The third finding correctly restricts sharpness to the family.

## Single most important improvement

Pin down the prior lower-bound constant (request 1), so the reader knows exactly which end of the 1/720 to 1/576 interval this paper moves. A paragraph on the finite-length threshold and convergence rate (request 2) comes a close second.
