# Review of "A fixed number of layers suffices to pack a singleton-middle pattern exactly when its ends are equal"

**Recommendation: minor revisions.** The paper answers its question clearly and, as far as I can check, correctly. For the layered pattern (a,1,b) with a,b ≥ 2 and a ≠ b, the best limiting score with at most K layers strictly increases from K to K+1 for every K ≥ 3. So every near-optimal sequence of layered permutations has a layer count that tends to infinity. Together with Kabela et al.'s Theorem 5 for a = b, this gives the exact boundary. The proof is short and elementary, and I found no gap. The changes I ask for concern framing and context, not correctness.

## What I checked

**The proof, line by line.** I re-derived each step by hand:

- *Objective and reduction to M_K.* F(x) = Σ_{i<j<k} x_i^a x_j x_k^b with the factor d!/(a!b!) is the right limiting density for layered hosts. The proof needs only two facts: packing density ≥ M_{K+1}, and a layered host with ≤ K layers has density ≤ M_K + o(1). Both are correctly argued.
- *Deletion inequality (1).* At an interior point of the face of positive masses, the Lagrange condition plus Euler's identity give ∂_i F = dF. The first positive layer appears only as the a-block, so the terms lost on deletion sum to (dp/a)F. Rescaling the remaining layers uses at most K−1 layers, so it is a feasible competitor. This gives 1 − dp/a ≤ (1−p)^d. Correct.
- *Local score and the comparisons p ≥ y, y ≤ p/a.* The decomposition (p^a+y^a)B + p^a yC + (tail terms) is complete. The swap argument and the transfer derivative a(p^{a−1}−y^{a−1})B + p^{a−1}(ay−p)C = 0 are right. Both are the cited Kabela et al. Claims 7.1–7.2.
- *Split derivative.* At t = 0 it is p^a y^b − a y^{a−1}B. The t^a terms vanish since a ≥ 2, and the singleton terms are unchanged. Correct.
- *Bound (2).* Dividing by y^b needs a−1−b ≥ 0. This is exactly where a > b enters, and the paper says so. The bound B ≤ c_b s^{b+1} with c_b = (b−1)^{b−1}/b^b is right. So are a^{b+2−a} ≤ b+1 and (b+1)c_b ≤ 3/4. The case m = 3 (so B = 0) is covered automatically.
- *Incompatibility.* Substituting p = r/(1+r) gives (1+r)^{d−1}(1−nr/a) ≤ 1. Each lower bound is valid: d−1 ≥ 2n−1, n/a ≤ 1, (1+r)^{n−1}(1−r) ≥ 1−r^n, and (1+r)^n ≥ 1+(2^n−1)r^n for r < 1. Together they give (1−u)(1+(2^n−1)u) > 1 when u ≤ 3/4 and n ≥ 3. Correct.
- *Reversal* swaps a and b. This is correct.

**The authors' checks.** `analysis/check.py` reproduces its output exactly: 462 exact identity checks and 1,666 unequal pairs.

**An independent numeric check (mine, not in the study).** I ran multistart Nelder–Mead plus BFGS over the K-simplex, K = 3…9:

| Pattern | M_3 | M_4 | M_5 | M_6 | M_7 |
|---|---|---|---|---|---|
| (3,1,2) | 2.31481e-3 | 2.41513e-3 | 2.41828e-3 | 2.4183419e-3 | 2.4183427e-3 |
| (4,1,3) | 4.11987e-4 | 4.13641e-4 | 4.1364467e-4 (+3.7e-9) | (+~4e-12 at K=7) | |
| (2,1,2) | 5.12e-3 | 5.505013e-3 | plateau | plateau | plateau |
| (3,1,3) | 8.85200e-4 | 8.89402e-4 | plateau | plateau | plateau |

The equal-end patterns plateau at four layers. The unequal ones keep gaining, with each gain about 30–50 times (3,1,2) or about 1000 times (4,1,3) smaller than the last, until double precision runs out. (2,1,3) matches (3,1,2), as reversal predicts. This agrees with the theorem. It also shows that the strict gains are real but quickly become very small.

**Novelty.** Web search was refused in this sandbox, so I could not look for work after Kabela et al. I did read their paper in `scout-layer-packing/data/maximizers.txt`. Their Theorem 3 needs the first layer n ≥ n0(ℓ), with n0 = 13 shown for b = 2. Their open problems (Section 5) do not settle (a,1,b) with small imbalance. Within what I could check, the result is new.

## What would most improve the paper

**Say plainly that the result refutes Hästö's suggestion, and quote it.** Hästö (2002, §4, near line 800 of the text copy) wrote that (k1,1,k2) "would be almost simple when k1 and k2 do not differ greatly from each other (say |k1 − k2| ≤ c ...)". "Almost simple" means that one more layer than the pattern has, four here, suffices. The paper proves the opposite for every |a − b| ≥ 1: no fixed number of layers suffices. That is a cleaner and more striking statement than "settles the intervening cases". At present the paper cites Hästö's suggestion as "four layers might suffice when the end lengths are close" and never says it has been disproved. State it as a consequence, perhaps in the abstract.

## Other points

1. **Say how small the gains are.** The theorem is qualitative. A reader, and the `so_what`, could take "allowing one more block improves" to mean a meaningful improvement. One sentence with numbers like those above would help, e.g. for (3,1,2) the gain from 6 to 7 layers is about 1e-9, a relative 3e-7. Then a reader knows that bounded-layer constructions remain excellent approximations even though none is exact. The last sentence ("leaving open the size of the density gap") already points here. A sentence with actual values would make the point concrete.

2. **The four-layer grid section is discovery history and mostly distracts.** The proof does not use it. The (6,1,6) control, where a grid winner improves even though the pattern is bounded, mainly shows that the grid evidence cannot be trusted. Consider shortening it to one or two sentences, or moving it after the proof as a sanity check. If kept, "Tied arrangements count separately" and the 13 winners for 7 equal pairs need a sentence of explanation (ties include reversals, per `grid_table.py`).

3. **Small precision issues.**
   - The abstract sentence "For unequal lengths, even lengths differing by one, raising…" is hard to parse. Something like "When the lengths differ, even by one, raising…" reads better.
   - "four layers suffice for this pattern [2, §4; 3, Theorem 5]": Theorem 5 gives a bounded K, not four. Hästö's Theorem 1.3 gives four only for k ≥ 3, via the flawed Proposition 2, whose conclusion Kabela et al. confirm for (k,1,k). Attribute the "four" precisely.
   - Define "near-optimal sequence" once. Also say that the theorem is about layered sequences, as in Kabela et al. Theorem 3. That is enough, since packing density is attained by layered permutations, but say it.

## record.json

- `type: finding` and `importance: 3` are fair. The paper fixes the boundary for a whole family and disproves a stated expectation in the literature, but only for three-layer patterns with a singleton middle. If the paper adopts the Hästö framing, the `reason` could mention it.
- `so_what` is clear. Add a limit: the extra gains become very small very quickly. Otherwise a lay reader may think a few more blocks give noticeably better arrangements. A sentence like "the gains shrink fast, so a handful of blocks gets extremely close" would prevent that.
- The `summary` is accurate.

## Verdict

The main claim is proved, and the key steps check out by hand, by the authors' exact checks and by my independent optimization. The revisions are about framing (name the refuted expectation), context (size of the gains) and trimming the grid section. Minor revisions.
