\section{Cells of exponents}\label{sec:cells} In this section we describe the exponents at a singular place with a given diagram by finitely many cells, and we enumerate the cells on which $\ell(x)\le0$ is possible. Throughout, $m\in(\R_{>0})^6$, $C\subseteq Y_m$ is a nontrivial curve and $P$ is a singular place of $C$. \subsection{Trees}\label{ss:trees} Let $O$ be a further point with $z_O=w_O=0$, the centre of mass, and let $B=\{1,\dots,6,O\}$. For $p\ne q$ in $B$ the exponent $e(z_p-z_q)$ is finite unless $\{p,q\}=\{k,O\}$ for a body $k$ with $z_k\equiv0$ on $C$. At most one body has this property, since $z_k-z_l$ vanishes nowhere on $X_m$. \begin{definition}\label{def:tree} A \emph{tree} is a rooted tree whose leaves carry the points of $B$, one point on each leaf, except that the leaf of $O$ may carry one body as well. Every internal node has at least two children and a rational \emph{height}, and the height of an internal node is smaller than the heights of its internal children. For points $p,q$ on different leaves, $h(p,q)$ is the height of the lowest common ancestor of their leaves. For points on the same leaf, $h(p,q)=+\infty$. \end{definition} \begin{lemma}\label{lem:tree} There is a unique tree $T_z$ with $e(z_p-z_q)=h(p,q)$ for all $p\ne q$ in $B$, and likewise a tree $T_w$ for $w$. For each internal node $v$ of $T_z$ with children $c_0,\dots,c_r$ there are pairwise distinct numbers $X_{v,c_0}=0,X_{v,c_1},\dots,X_{v,c_r}\in\C$ such that \[ \lc{z_p-z_q}{h_v}=X_{v,c(p)}-X_{v,c(q)} \] for all points $p$, $q$ below $v$ in different children $c(p)$, $c(q)$ of $v$, where $h_v$ is the height of $v$. \end{lemma} \begin{proof} On functions of $z$-type, $e$ is an increasing affine function of the valuation. Hence $e(z_p-z_r)\ge\min(e(z_p-z_q),e(z_q-z_r))$ for all $p,q,r\in B$, so $-e(z_p-z_q)$ is an ultrametric on the set of leaves, with the convention above for a body at $O$. The closed balls of a finite ultrametric space form a hierarchy, and the tree is the tree of this hierarchy. Its internal nodes are the balls with at least two leaves, and the height of such a ball is the least exponent $e(z_p-z_q)$ of two of its points. This tree is the only one with the stated property. For the second statement, fix a point $o$ below $c_0$ and put $X_{v,c(p)}=\lc{z_p-z_o}{h_v}$ for $p$ below $v$. This depends only on the child $c(p)$, since points below one child have differences of exponent larger than $h_v$, and it is $0$ for $c(p)=c_0$. For $p$, $q$ in different children, $z_p-z_q$ has exponent exactly $h_v$, so the difference $X_{v,c(p)}-X_{v,c(q)}$ is nonzero. \end{proof} We call the $X_{v,c}$ and the analogous $Y_{v,c}$ of $T_w$ the \emph{node coordinates}. The exponents at $P$ are read off the trees: $a_k=h_z(k,O)$, $\zeta_{kl}=h_z(k,l)$, and likewise $b_k$ and $\omega_{kl}$ from $T_w$. \begin{lemma}\label{lem:constraints} The trees of $P$ satisfy the following conditions. \begin{enumerate}[label=\textup{(\alph*)}] \item The root heights are at least $-2$. For each pair $kl$, $\zeta_{kl}+3\omega_{kl}\le4$, with equality if and only if $kl$ is a $z$-stroke, and $3\zeta_{kl}+\omega_{kl}\le4$, with equality if and only if $kl$ is a $w$-stroke. A body $k$ has $a_k=-2$ if and only if it is $z$-circled, and $b_k=-2$ if and only if it is $w$-circled. \item The root of each tree has at least three children. \item In each of the twelve equations of the bodies and in each of the identities $U=E$ and $\sum_{kh_r$. The coefficient of exponent $h_r$ in $\sum_km_kz_k=0$ is therefore $\sum_{c\ne c_O}(X_{r,c}-X_{r,c_O})M_c$, where $M_c$ is the sum of the masses below $c$. If $r$ had only the two children $c_O$ and $c$, this would be $(X_{r,c}-X_{r,c_O})M_c\ne0$. The same holds for $T_w$. (c) is Lemma~\ref{lem:initial}, since the $m_k$, $E$ and $M$ are nonzero. \end{proof} Note that condition (c) for the second identity contains \cite[Lemma~3.3]{Tom26}: if all $x_{kl}$ were positive, the constant term $ME$ would be the only term of least exponent. \subsection{Cells}\label{ss:celldef} The equations of the bodies, $U=E$ and $\sum_{k0$ is written $f-s\ge0$ with a common slack $s$. Each row has $c_i\in\{-1,0,1\}$, and the rows with $c_i\ne0$ remain valid when $s$ decreases. The system has a solution with $s>0$ exactly when the strict system is feasible. \begin{lemma}\label{lem:farkas} Let $y_i$ be rational numbers with $y_i>0$ only if $\mathrm{hi}_i$ exists and $y_i<0$ only if $\mathrm{lo}_i$ exists. Put $b_i=\mathrm{hi}_i$ for $y_i>0$ and $b_i=\mathrm{lo}_i$ for $y_i<0$, $g=\sum_iy_ic_i$, $\beta=\sum_iy_ib_i$ and $g^-=\max(0,-g)$. Suppose that $\sum_iy_ia_i=0$ and $\beta+g^-\le0$, and that $g+g^->0$ or $\beta+g^-<0$. Then the system has no solution with $s>0$. \end{lemma} \begin{proof} Let $(h,s)$ be a solution with $s>0$. Decreasing $s$ keeps the rows valid, so we may assume $s\le1$. Adding the rows with the weights $y_i$ gives $gs\le\beta$, and adding $g^-s\le g^-$ gives $(g+g^-)s\le\beta+g^-\le0$. Since $g+g^-\ge0$ and $s>0$, both $g+g^-$ and $\beta+g^-$ vanish, contrary to the hypothesis. \end{proof} By the transposition theorem of Motzkin, multipliers as in Lemma~\ref{lem:farkas} exist for any infeasible system of this form. The program obtains them by rounding the dual solution or the dual ray of the floating-point solver, and checks them in rational arithmetic. When rounding fails, it computes them with an exact simplex method. The counts are in Table~\ref{tab:verif}.