# Review of "The best packing of two triple orders gains one layer at a time"

**Recommendation: minor revisions.**

## What the paper claims

Fix a weight t in (0,1) and maximize the limiting density of 132 plus t times the density of 213. The paper claims a complete answer. The maximizer is layered and unique. It has m layers exactly on [τ_m, τ_{m−1}), with τ_1 = 1 and τ_m decreasing strictly to 0. Every m ≥ 2 occurs, and each new layer appears with width zero at the left edge. The widths come from a one-parameter recurrence (1) that is shot to the right endpoint. τ_2 is the real root of 1 − 4t + 4t² − 4t³ (≈ 0.319448), and τ_{m+1}/τ_m → 1/(1+√3).

It answers the question it asks, and the answer is positive and sharp. I checked the derivation and reran the code. I found no error.

## What I checked

- **Objective.** In a layered permutation, a 132 is a pair taken from one layer plus a singleton from any earlier layer; a 213 is the same pair plus a singleton from a later layer. That gives 3Σ(b−a)²[a + t(1−b)], as stated. At t → 0 it reproduces 2√3 − 3, and at t = 1 it gives 3/4 from two halves.
- **Local identities.** I rederived by hand the gain from splitting a layer, uv[v + tu − 2(a + t(1−b))]; the swap difference, (1−t)uv(v−u); the stationarity condition P(v) = Av² − 2H(v−u) − Bu²; and its increasing root (1). All agree with the paper. The merge bound (adjacent widths must sum to at least U) and the first-width bound s ≤ U also follow. I confirmed two identities numerically at random points: 4P(s, s, (1−s)/2) equals the stated quadratic in s, and A²P(U, U, 1−U) = 1 − 4t + 4t² − 4t³. The real root of that cubic is 0.3194485, inside the certified bracket. The two endpoint values used for t ∈ [1/2, 1), −2s² and −(1−3s)², are correct.
- **Normalized map.** I compared the logarithmic derivative L = (Bw−1)(1−dw)/(hR) with central finite differences of log R_{i+1} against log R_i at three points. They agree to 1e-10. The formulas for f_t, F_t, F_w, R_t and R_w follow from differentiating Af² − 2f + 2w − Bw² = 0; I checked that f = (1+h)/A satisfies this equation. The invariance of [0, 2/3] is correct, since h² = 1 − Aw(2 − Bw) and A + 2d = 3.
- **Certificate.** `analysis/certify.py` reran in 3.5 s and reproduced `results/certificate.txt` exactly. The interval arithmetic is sound as written: products and reciprocals round outward, the square root uses floor and ceiling integer roots, and the boxes round outward. Together the rectangles cover t ∈ [0, 0.5] × w ∈ [0, 2/3], which is the domain the argument needs. Each of the stated bounds (−.56 ≤ L ≤ .26, 0 ≤ L∘F ≤ .30, −.68 ≤ L ≤ .43, R ≥ 2, and the four derivative bounds on [0, .08]) holds with margin. So does D_3 > 1 on [.08, .32]. The chains of inequalities that use these bounds are correct: 1 − .56/.7 > 0, 1 − .68·1.43 > 0, .18/.85 < .22, and 2.12 + .36·.22 < 2.3.
- **Crossing argument.** The step is: at any root of D_m = 1, R ≥ 2 forces t ≤ 2^{−m}, so (log D_m)′ ≥ 2^m − 2.3m > 0. Therefore every root crosses upward, and each m ≥ 3 has exactly one root. This is clean and correct. The limit-ratio step is also correct: at t = 0 the fixed point of F gives (R−1)(R² − 2R − 2) = 0.
- **Independent global optimization.** I did not use the paper's recurrence for this check. I maximized S_t directly over 2 to 10 free widths, with 200 random multistarts (Nelder–Mead followed by BFGS), at t = .9, .6, .5, .4, .33, .31, .2, .07, .05, .02 and .01. At every weight the best partition found had the predicted number of layers. Its widths matched `construct.py` to four decimals and its score matched to 1e-16. For example, at t = .01 both give widths .0098, .0328, .0883, .2364, .6328.
- **Finite-count check.** `results/finite.txt` and `width_check.txt` agree with the paper's description, including the stated miss at n = 503, t = .005.

## What should change

1. **Make the proof checkable by a non-author.** This is the most important change. The mathematics appears correct, but it is written as a compressed sketch. Several steps are each one sentence long:
   - finiteness via merging and compactness;
   - excluding infinite partitions ("choose three cuts spanning less than U … the gain in the last merge … persists in the limit");
   - the reduction from "stationary and increasing" to the shooting family;
   - how the endpoint intervals (X_{m−1}(U), X_m(U)] tile (U, ∞).

   A combinatorialist outside this exact problem would have to rebuild these. Please state the theorem formally once, as a numbered Theorem. Then split the argument into short lemmas: (i) a finite maximizer exists and any maximizer has increasing widths, s ≤ U and stationary interior cuts; (ii) X_m is monotone in s on each weight range; (iii) D_m has exactly one root for each m. The final theorem should be explicit about which certificate assertion each lemma uses. The section "Why a single initial width suffices" mixes (i) with the infinite-partition argument and is the hardest to follow.

2. **Say what the result gives in the language of the field.** The maximum of ρ_132 + tρ_213 for each t is the support function of the region of achievable (ρ_132, ρ_213) pairs in the direction (1, t). So the theorem traces that region's upper-right boundary, from (2√3 − 3, ·) to (3/8, 3/8). Saying this, and if possible plotting that boundary curve, would show a reader why the result matters better than the layer-boundary figure alone. It would also show whether the boundary has corners at the τ_m. The transitions are continuous, so presumably it does not, but the paper should say so.

3. **Novelty check.** The paper cites only Albert et al. (2002). I could not search the literature in this session. The editor should confirm that the weighted 132/213 problem, or the corresponding two-pattern density region, has not been solved since 2002. The obvious places to check are work on feasible regions of permutation pattern densities and the flag-algebra packing literature. One sentence on what has been checked would help.

4. **Smaller clarity points.**
   - Explain the phrase "the certificate" in the main text before it is first used. Point once to `analysis/certify.py` and say that it runs in seconds.
   - In the theorem statement, the clause "the next branch starts with a zero width followed by exactly these m widths" is easy to misread. It would help to say that the (m+1)-layer family at s = 0 coincides with the m-layer family at s = U.
   - The scan paragraph (4,004 grid optimizations) is exploratory history and adds nothing to a proved result. It could be cut to one sentence or moved next to the finite-count check.
   - Reference [1, Theorem 2.2] carries the reduction to layered permutations for a multiset of layered patterns. Quote the statement being used, because the whole "unrestricted maximum" claim rests on it.

## record.json

- The summary, findings and so_what are accurate. The so_what is understandable to a lay reader and does not overclaim.
- The summary gives the limiting ratio as (√3 − 1)/2, and the paper gives 1/(1 + √3). These are equal, but using one form in both places avoids a moment's doubt.
- **Importance 3 is generous.** This is a complete, rigorous answer to a natural one-parameter question. However, it interpolates between two endpoints that were already solved, and it will mainly interest specialists in permutation packing. Level 2 fits better. Level 3 would be defensible only if the paper presents the result as determining the upper boundary of the (ρ_132, ρ_213) region (point 2), and only if that region turns out not to be known.

## Bottom line

The evidence supports the claim as stated. The interval certificate reran exactly, the key derivations check by hand, and an independent multistart optimizer recovers the predicted partitions at eleven weights. The paper needs a more explicit, lemma-by-lemma presentation of the proof, and one paragraph placing the result in the density-region picture. It does not need new analysis.
