# Review of "A logarithmic correction rules out a polynomial description of the four- and six-leaf tree profile"

**Recommendation: minor revisions.**

The paper asks whether the lower boundary of the (four-leaf, six-leaf) balanced-split profile of rooted binary trees has a logarithmic correction near the caterpillar, and gives a clear yes. In moment units the answer is $f(x)=2x^2+2x^3\log(1/x)+O(x^3)$. It proves matching upper and lower bounds and draws the consequence that neither the profile nor its convex hull is semialgebraic near the origin. I checked each step of the proof by hand and reran the code. I found no error. The changes below are about framing and placing the result, not about whether it is correct.

## What I checked

**Reduction to moments.** For four draws, the chance of a 2|2 split at a node with child masses $a,b$ (as fractions of the whole) is $\binom42a^2b^2$. For six draws, a 3|3 split has chance $\binom63a^3b^3$. Large combs add nothing. This gives $x=d/6=S_2$ and $y=p/20=S_3$. The skeleton-closure argument, with a repeated-tip probability of at most $\binom k2/n$, correctly shows that skeletons give exactly the profile.

**Rescaling and split cost.** With masses scaled by $L=t^{-1/2}$, $t^3R=t^2/2-2tx+y$, so $2tx-y=t^2/2-t^3R$. The split increment is $(a+b)^2/2-a^2/2-b^2/2-2z^2+z^3=z(z-1)^2$. Both are correct.

**Construction.** With $D_0=1$, the recursion is $D_{k+1}=D_k+2+1/D_k$, which gives $D_k=2k+\tfrac12\log k+O(1)$. With the partial attachment, $D=D_k+2q+q^2/D_k$, so $BD-2A^2=k(D_k-2k)+O(k)$ uniformly in $q\in[0,1]$. This gives the stated $2\log(1/x)+O(1)$. The arcs are continuous in $q$, consecutive arcs share endpoints, and $x\to0$. So the intermediate value theorem covers every small $x$. I reran `boundary.py`, which evaluates the chain in 45-digit decimals out to $k=2^{20}$. The scaled excess minus $2\log(1/x)$ settles near 4.12 at $q\in\{0,1\}$ and near 5.12 at $q=\tfrac12$. It stays bounded, as claimed.

**Lower bound.**
- $6S_2(T_a)/a^4\le1$, so $R(T_a)\ge\max\{0,a^2/2-a^4/3\}$. Dividing by $u=z/b^2$ gives the stated inequality.
- For $z\le2$, the minimum of $b^2(z-1)^2+z/2$ is $\tfrac12-1/(16b^2)$. Subtracting $8/(3b^2)$ leaves at least $\tfrac12-3/b^2$, since $1/16+8/3<3$. For $z>2$, $b^2>1/2$ alone suffices.
- $s\le2b$ gives $(s-b)/b^3\le8\int_b^s r^{-3}\,dr$. The total error is therefore at most $24\int_4^\infty r^{-3}\,dr=3/4$.
- The stopping cases are handled correctly. The result is $R(T)\ge\tfrac12\log L-\tfrac12\log8-\tfrac34$ for $L\ge8$.
- The Legendre step with $t=2x$ gives exactly $2x^3\log(1/x)$. Converting with $d=6x$, $p=20y$ gives $10/9$ and $5/27$.
- Because the bound is linear in $(x,y)$, it extends to limits and convex combinations. The hull claim holds.

**Non-semialgebraicity.** Points $(x,f(x))$ lie in the compact profile, and points just below them do not, so they are boundary points. The boundary of a semialgebraic set lies in the zero set of the product of its defining polynomials. The substitution $y=2x^2+x^3h$ is invertible for $x\ne0$, so $P$ stays nonzero in $(x,h)$. The lowest-order coefficient $Q(h)$ would have to tend to 0 while $h\to\infty$ like a logarithm, which is impossible. The argument is correct, and Tarski–Seidenberg handles auxiliary variables.

**Code.** `verify.py` reproduced exact multinomial agreement on all 399 public shapes and the 28 unequal-mass chains. Its scoring restricts the weighted tree to the sampled tips directly, rather than reusing the moment formula, so it is a genuinely independent check of the reduction. `templates.py` reran. I did not rerun the C++ mesh DP. It only motivates the approach, and the proof does not depend on it.

## Requested changes

1. **Connect the obstruction to the relaxations the paper is about. This is the most important change.** The abstract and the last section say the result explains why no fixed polynomial relaxation is exact. That holds only because a fixed level of a sums-of-squares or flag-algebra hierarchy describes its bound region as a projection of a spectrahedron, which is semialgebraic. One or two sentences should say this, so that the "even with auxiliary variables" remark is clearly what covers Brosch–Puges-type relaxations at every finite level. As written, a reader has to supply this step.

2. **Place the result against known non-semialgebraicity results.** The paper reports no search beyond Brosch–Puges. Similar questions have been studied for graph homomorphism and density profiles. Examples are Hatami–Norine on undecidability, and work by Blekherman, Raymond and coauthors on graph profiles and their tropicalizations. Please search this literature and state in a sentence whether a non-semialgebraic profile was already known in a related setting. If one was, say what is new here: a tree profile of only two coordinates, an explicit log coefficient, and a proof that also covers the hull. This affects how a reader judges significance, not whether the result is correct.

3. **State the explicit constant and the Legendre-to-pointwise step.** The lower-bound section ends with "$-O(1)$". Since the constant is available ($\tfrac12\log8+\tfrac34$ for $L\ge8$), give it. That makes the bound fully checkable. Also say in one clause why $(x,f(x))$ is a boundary point of the profile (compactness, plus nothing below $f$). The semialgebraic argument relies on this.

4. **Trim the search section.** The catalogue scan and mesh DP motivate the construction, but they take up a lot of the paper and are not evidence for the theorem. Details such as "46,316,506 splits, including initial trial splits" add nothing. The table's increment at mass 64 (0.424 against $\tfrac12\log2\approx0.347$) is left unexplained. Say it is a grid artifact: at a fixed spacing of 1/2048, the side combs of mass about $1/L$ are poorly resolved. Or drop that row. A shorter section would let the construction and proof come sooner.

## `record.json`

The type `finding`, importance 3 and summary all match the evidence. Level 3 is fair: it settles a specific structural question about a profile that was previously known only through numerical bounds. The `so_what` is accurate and not overstated, though abstract. It could name the practical point more directly: computer methods that tighten these bounds step by step can never finish the job exactly.
