# Review of "A nonuniform mixture between two zero blocks maximizes the density of 01010"

**Recommendation: minor revisions.**

## What the paper claims

The paper answers both halves of its question. (1) For every odd alternating target $0(10)^r$ with $r\ge2$, a word whose number of runs stays below any fixed cap falls short of the limiting maximum density by a positive amount. (2) For 01010 the sharp limiting density is $60(3/5)^3(2/5)^2a^2/2=0.049187802509\ldots$, where $(1-a)\log((1-a)/a)=1$. The maximizer is unique: the ones have density $h(a)/(2h^2)$ on $[a,1-a]$ in zero-coordinates. The claims are stated clearly and stay within what is proved. They are the same claims as in `record.json`.

## Checking the argument

I went through every step of the proof and found no gap.

- **Spacing identity.** Count $=Z^{r+1}M^rF_r/r!$. Repeated draws give zero gaps, and the prefactor $k!/r!$ and the separation of the maximum over $p$ are correct. Because the identity is exact and $\binom{n}{k}=n^k/k!\,(1+O(1/n))$ holds uniformly, the upper bound applies at every length. Together with the quantile construction, this shows the limit exists. It would help to say this in one sentence, since "limiting maximum" is used without comment.
- **Atom splitting ($r\ge2$).** The single-hit term is $o(\epsilon)$: the difference quotient is bounded by $2(r+1)$ and tends to zero for each fixed configuration that avoids $t$. The two-hit term gives a gain of order $\epsilon$ on an event whose probability does not depend on $\epsilon$. This event needs $r-2$ further support points away from $t$, and the "at least $r$ distinct interior support points" remark supplies them. Measures with at most $R$ atoms form a compact set, so their maximum is strictly smaller. The argument is correct.
- **01010 certificate.** I checked $K=h(x)h(y)-G(x,y)^2$ for $x\le y$ by hand. I also checked the reverse Cauchy–Schwarz step $(bc-uv)^2-(b^2-u^2)(c^2-v^2)=(bv-cu)^2$ and the exterior potential $U(x)=ax-x^2/2$, which uses $h(a)\log((1-a)/a)=a$. The normalization reduces to the defining equation for $a$. The argument does not assume the competitor is symmetric or supported on an interval, as the paper says. The uniqueness argument holds: equality forces $T_\nu=\lambda T_\mu$ and $bv=cu$, hence $\lambda=1$, and testing against $g'(s)l'(t)$ recovers $\nu$.

## Rerunning the numbers

- `construct.py`, `verify.py` and `atlas.py` reproduce `results/check.tsv` and `atlas.txt` exactly; the word files are byte-identical. `profile.py` reproduces the uniform-middle value 0.0489543081.
- Independent numerical checks (scipy quadrature):
  - The mass of $f$ is 1.
  - $U-a^2/2$ is at most $5\times10^{-17}$ on $[a,1-a]$ and strictly negative outside it.
  - The density is 0.0491878025092.
  - The closed form $Lbc/3+L^2(b+c)/12+L^3/60$ matches direct integration for three $(L,b)$ choices.
- Unconstrained multiplicative ascent on a 400-point grid, started from random weights and with no symmetry imposed, reaches 0.0491867. Its support is about $[0.214,0.786]$, consistent with $a=0.2178$.
- Brute force over all $2^{19}$ and $2^{23}$ words confirms the opening facts:
  - Length 23: a unique optimum, `00010101010101010101000`, with 2,592 copies and 19 runs.
  - Length 19: a unique optimum, `0001101010101011000`, with 981 copies and interior `11` pairs.
  - I did not recheck the 0101010 run count.
- The upper bound $u^2/e$ in Table 1 is a valid consequence of the determinant inequality. `verify.py` uses exact rationals, finds the continuous maximum of the piecewise-quadratic potential, and rounds outward.

## What would make it better

1. **The most important fix: place the result against prior work.** The paper cites only Menon–Singh. The notes record a literature search, but none of it reaches the paper. Examples are the Bruda preprint and the remark that order-isomorphic packing over unrestricted alphabets is a different problem. There is an older line of work on packing densities of patterns in words (for example Burstein, Hästö and Mansour, "Packing patterns into words", 2003). There is also work on maximizing products of spacings and related optimal-design problems, where kernels like $K$ appear. A sentence or two should say how the binary-host problem differs and that no prior value of this constant was found. I could not run my own literature search in this session (web search was unavailable), so I cannot confirm novelty independently. This affects how much weight the "sharp new constant" deserves, not the correctness of the proof.
2. **Self-containment of the exploratory evidence.** The 16.7M-word scan and the nine-grid exploration run from `../scout-binary-subsequences/`, not from this study, and the paper does not say so. Either copy `scan.cpp` and `grid.py` into `analysis/` or say where they live. Neither is needed for the theorem, so this is minor. (The OEIS A007088 download is a roundabout way to list binary strings; it is harmless.)
3. **Readability for non-specialists.** The paper is compact and mostly clear. The atom-splitting section is the hardest part for an outsider. One sentence of intuition before the details would help: "a solid block of ones means some copies would have to use two ones with no zero between them; splitting the block creates such zeros at first-order gain and only second-order loss". The last sentence of that section says this, but it comes after the technical argument. The "Where to put the ones" section also says "potential", "plateau" and "energy" before defining $U$ and $E$; define them first.

## record.json

- `type: finding` is correct.
- `importance` 3 is fair. The paper gives a sharp, proved constant with a unique profile, plus a structural theorem for the whole family. That is a solid result for specialists in subsequence extremal problems, though not a field-wide change.
- `so_what` is accurate and readable. "Any fixed number of solid blocks falls short" matches the theorem.
- The summary and findings match the paper.

## Bottom line

The proofs are correct, every number I reran matches, and the paper answers the question it poses. The revisions requested are a short related-work positioning and two clarity fixes.
