\section{From Brodal's tree to unfinished comparisons}\label{sec:classical} There are \(n\) distinct labelled keys. A sorting algorithm asks which of two keys is smaller. Its next question can depend on previous answers. An adversary answers the questions, always consistently with some strict total order. A sorter correct on every input can stop only when its comparison transcript determines that order uniquely. Throughout, \(\log=\log_2\), while \(\ln\) denotes the natural logarithm. The cases \(n\le1\) are immediate; assume \(n\ge2\), and put \[ T=n\log n. \] The objective is an efficient deterministic adversary that forces almost \(T\) comparisons. \subsection{Brodal: a comparison makes a spatial commitment} The binary-tree adversary described by Brodal, Chaudhuri, and Radhakrishnan~\cite{brodal}, and reviewed by Kaplan, Zamir, and Zwick~\cite{kzz}, keeps items at nodes of a binary tree. In the basic same-node case, comparing \(A\) and \(B\) sends one to the left child and the other to the right. Dyadic intervals give an equivalent picture: halve the common interval and assign opposite halves. After answering \(A=Latex, every node/.style={font=\small}, x=1cm,y=1cm] \node[draw=accent!50,fill=pale,rounded corners,minimum width=8.8cm,minimum height=1.9cm] (box) at (0,0) {}; \node[circle,draw=accent,fill=white,minimum size=7mm] (a) at (-2.8,0) {$A$}; \node[circle,draw=accent,fill=white,minimum size=7mm] (b) at (-0.8,.5) {$B$}; \node[circle,draw=accent,fill=white,minimum size=7mm] (c) at (.3,-.4) {$C$}; \node[circle,draw=accent,fill=white,minimum size=7mm] (d) at (2.7,-.4) {$D$}; \draw[->,thick,accent] (a)--(b); \draw[->,thick,accent] (a)--(c); \draw[->,thick,accent] (c)--(d); \node[anchor=south,font=\small\bfseries,text=ink] at (0,1.05) {One group; no spatial separation yet}; \end{tikzpicture} \end{center} Each item has a tentative real position. An arrow \(A\to B\) means \(X_A=Latex,font=\small,x=1cm,y=1cm] \node[draw=accent!60,fill=pale,rounded corners,minimum width=8cm,minimum height=1.75cm] (p) at (0,0) {}; \node[font=\bfseries,text=ink] at (0,.6) {Parent}; \draw[thick] (-3,-.28)--(3,-.28); \fill[accent] (0,-.28) circle(2pt); \node[below] at (0,-.31) {$c$}; \node[above,font=\small] at (-1.6,-.21) {$C$ lies to the left}; \node[above,font=\small] at (1.6,-.21) {$D$ lies to the right}; \node[draw=accent!60,fill=white,rounded corners,minimum width=8cm,minimum height=1.3cm] (ch) at (0,-2.15) {}; \node[font=\bfseries,text=ink] at (0,-1.87) {Child at \(c\)}; \node at (0,-2.33) {old items \(\quad+\quad x\) with fresh coordinate in \((0,j)\)}; \draw[->,thick,accent] (0,-.875)--(0,-1.48); \end{tikzpicture} \end{center} Here \(j\) counts \emph{all admissions}, including items that later move to grandchildren. If \(f_x(c)\) is the density of the parent coordinate at \(c\), this operation satisfies the exact identity \begin{equation}\label{eq:refine} \boxed{\frac{Z_{\rm after}}{Z_{\rm before}}=j f_x(c).} \end{equation} The parent loses one dimension by taking a section; the child gains one dimension of length \(j\). Thus total dimension remains \(n\). For intuition, in the triangle \(00\). Every \(c\in(\ell_x,r_x)\) is feasible for \(X_x\), and fixing it leaves a positive-volume section in the remaining coordinates. \end{lemma} \begin{proof} Necessity is immediate. For sufficiency, choose numbers \(0<\theta_x<1\) increasing in a topological order, a listing in which every arrow points forward, and put \[ X_x=(1-\theta_x)\ell_x+\theta_xr_x. \] This expression increases with either endpoint and strictly with \(\theta_x\) when \(W_x>0\). All arrows are therefore strict, and a small open neighborhood is feasible. A topological order exists by repeatedly removing a vertex with no incoming arrow. After fixing \(x\) at interior \(c\), only predecessors get smaller upper bounds and only successors get larger lower bounds. A predecessor \(y\) still has upper bound at least \(\min(r_y,c)>\ell_y\), since \(\ell_y\le\ell_x0\), concavity of \(\log\), with weights \(k_c/P\), yields \begin{align} \sum_{v,c}k_c\log(w_c/k_c) &\le P\log(W/P)\nonumber\\ &\le P\log(1+n/P)\le n\log e.\label{eq:logsum} \end{align} Consequently \begin{equation}\label{eq:header-cost} S\le n\log e+\sum_{v,c}k_c\log((t_c+1)(t_c+2)). \end{equation} If \(S<0\), it already improves our desired upper bound. Otherwise, observe that \[ \sum_{v,c}k_ct_c \le\sum_{v,c}k_c\log(s_v/b_c) =\mathcal B-S\le T. \] The average scale number, over refinement events, is therefore at most \(T/P\). A second use of concavity bounds all scale headers: \[ \sum_{v,c}k_c\log((t_c+1)(t_c+2)) \le2P\log\!\left(2+\frac{\sum k_ct_c}{P}\right) \le2P\log(2+T/P). \] This and \eqref{eq:header-cost} cover both signs of \(S\). Substituting into \eqref{eq:ref-cost-start} proves \begin{equation}\label{eq:ref-cost} L_{\rm ref}\le \Gamma+8P+n\log e+2P\log(2+T/P). \end{equation} One way to read this proof is \(S=\mathcal B-\mathcal A\), where \(\mathcal A=\sum k_c\log(s_v/b_c)\) is the binary location information. The cost left after factorial recovery is the excess of group separation information over location information. Kraft bounds that excess by the short scale headers, plus \(O(n)\). \subsection{The endpoint is now a one-line estimate} When the transcript determines a total order, the \(r_v\) free coordinates at a node must occur in one prescribed order. They all lie in \((0,s_v)\). Thus \begin{equation}\label{eq:terminal} V_v\le\frac{s_v^{r_v}}{r_v!}\le e^{s_v}, \qquad \boxed{\log Z_{\rm final}\le(n+P)\log e.} \end{equation} The second inequality uses one term of the exponential series. Multiplication over nodes uses \(\sum s_v=n+P\). No multinomial calculation is needed. Each comparison costs at most \(-\log(1/2-\eta)\), and each private cut at most \(-\log(1-\eta)\). For \(\eta\le1/32\), their combined cost is at most \((1+10\eta)q\), using \(-\ln(1-u)\le2u\) for \(0\le u\le1/2\). Starting at \(\log Z=T\), add these costs, \eqref{eq:ref-cost}, and \eqref{eq:terminal}. The inequalities \(8+\log e<10\) and \(2\log e<3\) prove \eqref{eq:master}. When \(P=0\), the endpoint estimate alone gives the stated weaker bound. Finally, with \(p=P/T\), \[ \frac{2P\log(2+T/P)}T=2p\log(2+1/p)\longrightarrow0 \quad\text{as }p\downarrow0. \] This proves Theorem~\ref{thm:rare} directly. There is no auxiliary parameter to send to zero later. \paragraph{What the coding argument does, and what it still needs.} It explains the cost of choosing and reusing child positions. Our current item paths are not themselves Brodal-style terminal codewords: several free items may remain at an internal node. The endpoint-volume estimate handles that residual freedom. The coding argument also does not calculate comparison probabilities; that is the separate task of the numerical theorem. \section{How to keep the graphs calculable}\label{sec:repairs} The numerical theorem asks for three properties: few neighbors, short directed paths, and controlled width ratios. The repair routine has two stages. First repair widths, so the numerical theorem can be used. Then remove excessive degree or height using the ordinary, inexpensive density window. Fix integers \(D,H,J\ge4\) and \(0<\eta\le1/32\). Between queries, require degree below \(D\) and height below \(H\). One new arrow raises degree by at most one and joins at most two old directed paths. No repair adds an arrow. Thus throughout repairs we may use \[ d=D,\qquad h=2H,\qquad B=(d+1)^{h+1},\qquad C=B+1,\qquad \sigma=2B. \] The distance-\(h\) ball contains at most \(B\) vertices, so in particular each vertex has at most \(B\) comparable vertices. Set \begin{equation}\label{eq:parameters} L=\max\{4,\ceil{C/\eta}\},\qquad A=L^{2h+2},\qquad R=A^J. \end{equation} All propagation permanently stores the tightened intervals. Fixed label order resolves every choice of vertex, edge, or path. \subsection{Width repair: cut an edge when one side is much wider} Suppose an arrow \(u\to v\) has \(W_u>LW_v\). Impose the stronger bound \(X_u<\ell_v\), and remove the arrow. Since \(X_v>\ell_v\), every remaining assignment still satisfies \(X_u0. \] A predecessor whose upper bound decreases still has lower bound at most \(\ell_u<\ell_v\); propagation stays feasible. Symmetrically, when \(W_v>LW_u\), impose \(X_v>r_u\) and remove the arrow. These are permanent interval bounds. A deleted arrow is replaced by a stronger restriction, not forgotten. Each such cut removes an edge introduced by a comparison, so the entire run has at most \(q\) cuts. \subsection{Width repair: separate a batch of very different scales} Suppose no edge cut applies, but one component's largest width exceeds \(R\) times its smallest width \(w\). Adjacent widths have ratio at most \(L\). Along a path from a minimum-width vertex to a maximum-width vertex, mark the first vertex reaching width \(A^i w\), for \(i=0,\ldots,J-1\). The marked widths lie in \[ [A^i w,\ LA^i w]. \] Successive marked widths therefore differ by a factor at least \[ A/L=L^{2h+1}. \] Any two marked vertices have distance greater than \(2h\): a path of length at most \(2h\) would bound their width ratio by \(L^{2h}\). Refine these \(J\) vertices in increasing width, using the central interval and without interrupting the batch. Fixing a coordinate changes effective intervals only along directed paths to or from that coordinate, hence within distance \(h\). The chosen vertices' widths are therefore unchanged until they are processed. Their selected cell lengths belong to \((W/8,W/4]\). The marked widths differ by more than a factor four, so the cell lengths differ. Distinct scales have distinct midpoints. Thus the batch enters \(J\) distinct children. Call these \emph{scale refinements}. Each pays surcharge \(\sigma=2B\). Their advantage is that they require no local probability calculation. Repeat the two width rules, always giving the edge cut priority, until neither applies. Each cut deletes an edge, and each scale refinement removes a nonisolated vertex. The process terminates. Every remaining component then has width ratio at most \(R\). \subsection{Graph repair: high degree or a long directed path} After width repair, the numerical theorem is available with the safe bounds \(d,h,R\). If a vertex has degree at least \(D\), refine it using its quantile window. Then repair widths again. This is an \emph{ordinary refinement}, with zero surcharge. \Needspace{8\baselineskip} Otherwise, if a directed path has at least \(H\) vertices, mark \(H\) consecutive vertices. Finish this marked batch before selecting another path: \begin{enumerate} \item Repair widths before each ordinary refinement. \item If a marked item remains free, refine it using its quantile window. \item If an intervening width repair already refined it, skip it. \end{enumerate} The marked items are pairwise comparable in the public transcript. Lemma~\ref{lem:admission} therefore forces their departures from this parent into \(H\) distinct children, including departures caused by intervening scale repairs. Continue until degree and height are below their thresholds. No repair adds an edge. A child admission adds only an isolated coordinate, with no change to its old distributions. It therefore requires no further child repair. \guide{Why the order matters}{Width repair can operate without the local estimator. Once widths are controlled, ordinary refinement may use it. The algorithm never calls the estimator in order to repair the very condition needed to justify that call.} \subsection{The complete restoration routine} The pseudocode hides no additional operation: \begin{quote}\ttfamily\small RESTORE(node):\\ \hspace*{1em}Repeat:\\ \hspace*{2em}Repair widths, giving edge cuts priority over scale batches.\\ \hspace*{2em}If a degree is at least D, ordinarily refine that item; continue.\\ \hspace*{2em}If there is an H-vertex directed path, finish its marked batch;\\ \hspace*{3em}continue.\\ \hspace*{2em}Return. \end{quote} The four rules have two different purposes. Edge cuts remove negligible dependencies. Refinements remove a variable while returning freedom in a child. The following count shows why the costly operations are infrequent. \section{Why there cannot be too many refinements}\label{sec:rarity} Let \(N_o\) and \(N_s\) count ordinary and scale refinements. Then \[ P=N_o+N_s,\qquad\Gamma=\sigma N_s. \] \paragraph{High degree is paid for by already asked comparisons.} A degree refinement deletes at least \(D\) current edges. Deleted edges cannot be deleted again; every edge was introduced by an actual query at that node. Thus there are at most \(q/D\) degree refinements. \paragraph{Long paths and separated scales spend the tree budget.} Each marked path sends \(H\) items into different children. By Lemma~\ref{lem:batch}, its refinement events contribute at least \(H\log H\) to \(\mathcal B\). Different marked paths at one node use disjoint refinement events, so at most \(T/\log H\) ordinary path refinements occur. Each scale batch similarly contributes at least \(J\log J\), and scale batches use disjoint refinement events. Hence \begin{equation}\label{eq:rarity} \boxed{ N_o\le\frac qD+\frac T{\log H}, \qquad N_s\le\frac T{\log J}. } \end{equation} A path batch can overlap a scale batch. This causes no double charge in either separate estimate: each family uses its own application of \(\mathcal B\le T\). A marked item consumed by a scale repair is charged only for the refinement it actually makes. \paragraph{A rough finite bound for implementation.} We also have \begin{equation}\label{eq:incidence} P\le2q. \end{equation} Charge each refinement to one incident edge endpoint at the node it leaves. Degree and scale refinements have such an endpoint when selected. For a marked path item, reserve an original incident path endpoint even if another repair removes that edge before the item moves. A label leaves a node only once, so an endpoint cannot be charged twice. There are at most \(2q\) introduced endpoints in total. This last estimate is not the asymptotic rarity argument. It is useful for bounding the amount of state and the number of binary digits created. \section{Choosing the parameters and proving polynomial time}\label{sec:runtime} \subsection{First choose any fixed accuracy stage} For each integer \(k\ge4\), use \[ D=k+4,\qquad H=2^k,\qquad \eta=\frac1{100k}. \] Compute \(B,\sigma\) as above, and set \[ J=2^{k\sigma}. \] Then compute \(L,A,R\) from \eqref{eq:parameters}, and the radius \(\rho_k\) supplied by Theorem~\ref{thm:local}. Since \(\eta<1/32\), the same radius is sufficient for the quantile calculations. Let \[ b_k=2(d+1)^{\rho_k+1} \] be the corresponding neighborhood-size bound. On a completed run with \(q\le2T\), \eqref{eq:rarity} gives \[ N_o\le\frac{3T}{k},\qquad N_s\le\frac{T}{k\sigma},\qquad P\le\frac{4T}{k},\qquad\Gamma\le\frac Tk. \] Thus, as the selected stage tends to infinity, \(\eta=o(1)\), \(P=o(T)\), and \(\Gamma=o(T)\). The coding bound \eqref{eq:master} then gives \(q\ge(1-o(1))T\). Runs with \(q>2T\) already exceed the target. \subsection{Make one algorithm, with one polynomial exponent} Allowing the running-time exponent to depend on a desired accuracy would not establish Theorem~\ref{thm:main}. We instead let the stage grow extremely slowly with \(n\). During initialization, spend at most \(n\) bit operations computing successive stages. Keep the largest fully computed stage satisfying \[ b_k\le\floor{\log(n+1)}. \] If none fits, answer using a fixed total order of the labels. Every fixed stage is a finite computation and eventually meets both the initialization and neighborhood budgets. Therefore the stage \(k(n)\) selected in this way tends to infinity. Every local calculation then uses \(b\le\log(n+1)\) coordinates. Appendix~\ref{app:table} uses \(O(b^3 2^b)\) arithmetic operations, which is a polynomial with a fixed exponent. Constructing a neighborhood, propagating intervals, and finding paths use ordinary polynomial-time graph operations. \subsection{Binary precision is also polynomial} All endpoints and anchors are dyadic rationals, meaning integers divided by powers of two. Suppose the current denominators divide \(2^\Lambda\). A quantile search adds only \(O(\log(b+1))\) binary digits; the grid rounding adds a constant number. A central-window refinement adds only a constant number. Propagation and cuts use existing bounds and add no digits. Before \(q=O(n\log n)\) queries, \eqref{eq:incidence} therefore gives \[ \Lambda=O\bigl(n\log(n+1)\log\log(n+4)\bigr). \] All coordinates lie in \([0,n]\). The exact local table uses integers with \[ O\bigl(b(\Lambda+\log(n+1)+\log(b+1))\bigr) \] bits. Thus the arithmetic bit cost is polynomial as well. There are at most \(P+1\) nodes and at most \(q\) edge introductions. Stage descriptions have at most \(n\) bits, by the initialization budget. After \(2n\ceil{\log(n+1)}\) queries, the adversary may freeze a total order compatible with its saved public comparison graph, found by topological sorting, and answer from it thereafter. This threshold is already beyond the lower bound. It prevents repeated gratuitous queries from enlarging the state indefinitely. The representation proves legality, the rarity estimates and coding theorem prove the lower bound, and the local computation and precision bounds prove the fixed polynomial running time. This establishes Theorem~\ref{thm:main}. \section{Computational checks and related formalization}\label{sec:revision} The exact local-volume recurrence of Appendix~\ref{app:table} was compared with an independent rational implementation of the segment-assignment method on 630 seeded acyclic interval systems with one to seven vertices. The two implementations agree in every case, including infeasible systems and mixed dyadic precisions. A further 27 analytic checks cover independent boxes, chains, empty and cyclic cases, an unequal-interval comparison probability of $3/4$, triangle densities, and the refinement identity $j f_x(c)$. The accompanying source includes the script and its results. These finite checks verify the numerical implementation and selected identities; the locality and asymptotic guarantees follow from the proofs in this paper. A related Lean~4 development is available in the sorting-adversary-proofs repository~\cite{formalization}. That development follows the earlier recursive integer-colour construction. The continuous-position formulation, prefix-code accounting, and exact-volume recurrence presented here are given as mathematical arguments; citing the repository does not assert a line-by-line formalization of this presentation. \appendix \section{Density windows from elementary geometry}\label{app:geometry} \subsection{Sections of a convex region} A region is \emph{convex} if it contains the segment joining any two of its points. Our regions are convex because every defining condition is a linear inequality. \begin{lemma}[The two-cone bound]\label{lem:cone} Let a point be uniform in a positive-volume bounded convex region in $m$ dimensions. Suppose a nonconstant linear coordinate $Y$ ranges over $(L,U)$, of width $W=U-L$. Its probability density $g$ satisfies \begin{equation}\label{eq:cone-upper} g(t)\le\frac mW. \end{equation} For every $0<\theta\le1/2$, it also satisfies \begin{equation}\label{eq:cone-lower} g(t)\ge\frac{\theta^{m-1}}W \qquad(L+\theta W\le t\le U-\theta W). \end{equation} \end{lemma} \begin{proof} Use a linear change of variables making $Y$ the first coordinate. Its constant volume factor cancels in densities. Write $A(t)$ for section volume and $V=\int_L^U A(t)\,dt$ for total volume. Join the section at $t$ to feasible points with first coordinates approaching $L$ and $U$. Convexity puts both cones inside the region. A section of a cone shrinks in its $m-1$ free directions by a common factor, so the two cone volumes tend to \[ \frac{t-L}{m}A(t)+\frac{U-t}{m}A(t)=\frac Wm A(t). \] Thus $V\ge WA(t)/m$, proving \eqref{eq:cone-upper}. For $m=1$ the distribution is uniform and both assertions are immediate. There is an interior $t_0$ with $A(t_0)\ge V/W$, or a sequence approaching this bound. For $t\ge t_0$, join this section toward the upper endpoint. At $t$, the scale factor tends to $(U-t)/(U-t_0)\ge\theta$. Hence $A(t)\ge\theta^{m-1}A(t_0)$. Use the lower endpoint when $t\le t_0$ and take limits if needed. This proves \eqref{eq:cone-lower}. \end{proof} This proof uses only convexity and the integral $\int_0^1 u^{m-1}\,du=1/m$, not a general theorem about log-concave measures. \subsection{Why the relevant dimension is small} \begin{lemma}[Condition on the incomparable labels]\label{lem:fiber} Let $x$ have $c$ other comparable labels in the active graph and effective interval $(\ell_x,r_x)$ of width $W_x$. Then \begin{align} f_x(t)&\le\frac{c+1}{W_x},\label{eq:fiber-upper}\\ f_x(t)&\ge\frac{4^{-c}}{W_x} \quad(\ell_x+W_x/4\le t\le r_x-W_x/4).\label{eq:fiber-lower} \end{align} For another coordinate $X_y$, or a fixed number $Y$, and any fixed interval $I$ of length $a$, \begin{equation}\label{eq:gap} \Prb(X_x-Y\in I)\le\frac{(c+1)a}{W_x}. \end{equation} In the coordinate case $Y=X_y$, independence is not assumed. \end{lemma} \begin{proof} Fix all coordinates incomparable with $x$. For almost every feasible fixing, the remaining region is a positive-volume convex region on $x$ and its $c$ comparable labels, and the conditional law is uniform there. Crucially, the available interval of $x$ is still $(\ell_x,r_x)$. A new lower bound from a fixed outside label could reach $x$ only along a directed path from that label to $x$; a new upper bound would require the reverse path. Both contradict incomparability. This is also seen directly by propagating the new fixed bounds. Apply \cref{lem:cone} in dimension $c+1$, then average over the fixed outside coordinates. This gives \eqref{eq:fiber-upper}--\eqref{eq:fiber-lower}. If $y$ is incomparable with $x$, it was fixed in this conditioning, so the projection $X_x-X_y$ has width $W_x$. The same is true for a fixed number $Y$. If $y$ is a successor of $x$, its upper endpoint $r_y$ is unchanged by fixing the outside labels: an outside upper bound propagating to $y$ would also make that outside label a successor of $x$. Fix $y$ at a feasible value within $\delta$ of $r_y$. By \cref{lem:interior}, $x$ can then range over \[ (\ell_x,\min(r_x,X_y)), \] of width at least $W_x-\delta$, since $r_y\ge r_x$. Thus the projection $X_x-X_y$ of the conditional region has width at least $W_x$, on letting $\delta\downarrow0$. For a predecessor, fix $y$ within $\delta$ of its unchanged lower endpoint and argue symmetrically. The upper part of \cref{lem:cone}, now for the linear coordinate $X_x-X_y$, bounds its conditional density by $(c+1)/W_x$. Integrate over $I$ and then over the outside coordinates to obtain \eqref{eq:gap}. \end{proof} Taking $I=[-z,z]$ gives $\Prb(|X_x-X_y|\le z)\le2(c+1)z/W_x$. The claim is for a difference of coordinates or a fixed threshold. It does not assert the same bound for an arbitrary interval chosen as an arbitrary function of all other coordinates. \subsection{A useful interval between middle quantiles} We need one shape fact. A positive function $f$ is \emph{log-concave} if \[ f((1-\lambda)a+\lambda b)\ge f(a)^{1-\lambda}f(b)^\lambda \quad(0\le\lambda\le1). \] It has no downward valley between two values. The following specialized proof keeps the argument self-contained. \begin{lemma}[Shape of a coordinate density]\label{lem:shape} A coordinate density in our interval-and-arrow region is positive and continuous on its effective interval and is log-concave there. \end{lemma} \begin{proof} Let $S(t)$ be its unnormalized section volume at $X_x=t$. Positivity follows from \cref{lem:interior}. Take feasible assignments $p,q$ with $p_x=t-\delta$, $q_x=t+\delta$, and put $h=q-\delta$ in every coordinate. Both $p,h$ satisfy the strict arrows, although $h$ need not satisfy the original intervals. Join the endpoints of an arrow $u\to v$ in an undirected graph when \[ \max(p_u,h_u)\ge\min(p_v,h_v). \] On any such edge, $h-p$ is nonzero and has the same sign at both ends. Otherwise strict increase of $p$ or $h$ would give the reverse inequality. At $x$ the sign is positive, so $h>p$ throughout its connected component. Swap $p,h$ on this component, and then add $\delta$ back to the second assignment. Both resulting assignments have coordinate $t$ at $x$. Within the swapped component, $a_ua$, and the secant slope of $\ln f_x$ from $a$ to $t$ exceeds $\ln6/m$. Concavity implies, for $ua)\le\E[Y^p]/a^p\) follows by integrating \(Y^p\ge a^p\) on that event. Apply it here: \begin{equation}\label{eq:coordinate-error} \Prb(\Delta_{x_*}(t)>uW_{x_*}) \le2^{-t}(R/u)^p \le2^{-\mu}\le\varepsilon/8. \end{equation} For two marked vertices, use this estimate for each one's component and width. The components may differ; independence of the two error events is unnecessary. An isolated coordinate can simply start at the same uniform value in both experiments. \subsection{From coordinate error to comparison error} Every mark has at most \(M\) comparable vertices. The dependent-difference estimate \eqref{eq:gap} therefore applies with the constant \(C=M+1\). Outside the two exceptional events in \eqref{eq:coordinate-error}, different signs of \(X_x-X_y\) in the two experiments require \[ |X_x-X_y| \le u(W_x+W_y)\le 2u\max(W_x,W_y). \] Use \eqref{eq:gap} at the endpoint of larger width. The interval for the difference has length at most \(4u\max(W_x,W_y)\), so its probability is at most \(4Cu=\varepsilon/4\). The two exceptional events have total probability at most \(\varepsilon/4\). Thus sign disagreement has probability at most \(\varepsilon/2\), which is more than sufficient. A threshold comparison uses one exceptional event and a shorter interval. Because both experiments preserve their original laws, a bound on disagreement is a bound on the difference of their probabilities. This proves locality. The local region has positive volume: restricting any full feasible assignment gives a local one. Its marked effective support is unchanged, because the old effective interval is retained explicitly and every value in it occurs in some full assignment. A degree-\(d\) radius-\(\rho\) neighborhood of two marks contains at most \(2(d+1)^{\rho+1}\) vertices. This completes the geometric part of Theorem~\ref{thm:local}. \section{Exact local calculation: which coordinate comes last?}\label{app:table} The local problem has \(b\) coordinates. We give a finite exact calculation that uses just subsets, polynomial integration, and integer arithmetic. It does not first count linear extensions. \subsection{A recurrence for every subset} For each subset \(S\) of the local vertices, let \(F_S(t)\) be the volume of assignments to \(S\) that respect their own intervals, the arrows with both endpoints in \(S\), and \(X_x