\section{A cubic lower bound for deterministic protocols}\label{sec:detlb}\label{detlb:deterministic-lower} \begin{theorem}\label{detlb:main} Let $n\ge10$, $\eps>0$, and $k=\lfloor n/10\rfloor$. Every deterministic RW protocol that always returns a complete envy-free allocation asks more than $k^3/2$ queries on some profile of normalized valuations whose densities are smooth and lie strictly between $1-\eps$ and $1+\eps$. This holds even if bundles may be arbitrary finite unions of intervals. \end{theorem} This section is self-contained and uses its own notation; in particular $B$ is a numeral base (not a residue), $k=\lfloor n/10\rfloor$ (not a population size), $L$ is a length, $h$ a transferred amount, and $M,D,Q$ are integers. Fix $n$, $\eps$ and $k$. Write $V_a(x)=v_a([0,x])$ for agent $a$'s cumulative value. It is convenient to work with \emph{prefix queries}: an evaluation of $V_a$ at a point, or the inversion of $V_a$ at a target value; the evaluated or returned point is a \emph{query point} of $a$. An RW evaluation of $[x,y]$ is simulated by two prefix evaluations, and a cut from $x$ by one prefix evaluation at $x$ and one inversion; since our densities are positive, inverses are unique. So it suffices to show that a correct protocol needs more than \[ Q=k^3 \] prefix queries. The adversary answers adaptively and constructs a consistent smooth profile at the end; on that profile the protocol sees exactly the constructed transcript. (This adaptivity is why the argument does not apply to randomized protocols.) The proof follows the plan of \cref{sec:why-cubic} in four steps: exact ties pin bundle boundaries to query points (\cref{detlb:boundary-certification}); the adversary's transcript, with one digit position per transfer (\cref{detlb:digit-choice}); its realization by smooth densities (\cref{detlb:smooth-realization}); and the two contradictory readings of one digit of $nL-1$ (\cref{detlb:shortfall-digit,detlb:grid-digit}). \subsection{Exact ties pin boundaries to query points} A \emph{uniform} agent values every set by its length; $|A|$ denotes length. \begin{lemma}[Uniform bundles and identical agents\leanmark]\label{detlb:uniform-shares} In a complete envy-free allocation $(A_1,\dots,A_n)$ with a set $U\neq\emptyset$ of uniform agents, all agents of $U$ receive bundles of a common length $L$, every bundle has length at most $L$, and $1/n\le L\le 1/|U|$. Two agents with identical valuations value their own bundles equally. \end{lemma} \begin{proof} A uniform agent who did not receive a longest bundle would envy its owner, so all of $U$ receive longest bundles, of a common length $L$. The $n$ bundles of length at most $L$ cover $[0,1]$, giving $L\ge1/n$, and the $|U|$ bundles of length $L$ are disjoint, giving $L\le 1/|U|$. If $a,b$ share the valuation $v$, then $v(A_a)\ge v(A_b)\ge v(A_a)$. \end{proof} \begin{lemma}[Boundary certification]\label{detlb:boundary-certification} Suppose a correct deterministic protocol returns an allocation on a profile of normalized smooth densities in $(1-\eps,1+\eps)$. If agent $a$ values her own bundle and the bundle of agent $b$ equally, then every boundary point of either bundle is a query point of $a$. \end{lemma} \begin{proof} Let $z$ be a boundary of $A_a$ or $A_b$ that is not a query point of $a$, and take a small open interval around $z$ that contains no query point of $a$ and no other boundary. The function $\ind_{A_b}-\ind_{A_a}$ takes two different values in $\{-1,0,1\}$ on the two sides of $z$. Move a small smooth bump of $a$'s density from the side with the smaller value to the side with the larger value, staying inside the interval. This preserves $V_a$ at every query point of $a$, hence all her answers (cut answers are unique by positivity), and keeps the density smooth and within $(1-\eps,1+\eps)$. The protocol therefore returns the same allocation, but now $v_a(A_b)>v_a(A_a)$, contradicting correctness. \end{proof} \noindent As a warm-up, these two lemmas alone already give a quadratic bound; the proof of \cref{detlb:main} does not use it. \begin{proposition}[Warm-up: every agent must see every cut]\label{ped:warm-lb} Let $n\ge2$ and $\eps>0$. Every deterministic RW protocol that returns a complete envy-free allocation on every profile of normalized smooth densities in $(1-\eps,1+\eps)$ asks at least $n(n-1)/2$ queries on the uniform profile. \end{proposition} \begin{proof} On the uniform profile every bundle has length $1/n$ (\cref{detlb:uniform-shares} with $U=[n]$), so every agent values all $n$ bundles equally. The bundles have positive length and partition $[0,1]$, so the partition has at least $n-1$ boundary points in $(0,1)$. Each such point $z$ is a boundary of some bundle $A_b$, and every agent $a$ values $A_a$ and $A_b$ equally; by \cref{detlb:boundary-certification}, $z$ is a query point of $a$. So each agent has at least $n-1$ query points. An RW query to $a$ creates at most two query points of $a$ (the endpoints of an evaluated interval, or the start and the answer of a cut), so $a$ receives at least $(n-1)/2$ queries, and in total there are at least $n(n-1)/2$. \end{proof} \noindent This bound is tight on the uniform profile, where one common grid of $n-1$ points serves all agents. The cubic adversary below prevents such reuse: every group hides a digit that envy-freeness forces into the uniform length $L$ (\cref{detlb:shortfall-digit}), so a grid fixed before the group was selected cannot serve it. \subsection{The adaptive transcript} A \emph{grid} is a finite set $P\subseteq[0,1]$ containing $0$ and $1$; its \emph{cells} are the intervals between consecutive points. Write $\mathcal L(P)$ for the set of lengths of unions of cells, and call the numbers $n\ell-1$, $\ell\in\mathcal L(P)$, the \emph{predictions} of $P$. They are the values that $nL-1$ could take if a uniform bundle of length $L$ were a union of cells of $P$; by \eqref{detlb:total-shortfall} below, $nL-1$ is the total length deficit of the output. \paragraph{Blocks and groups.} Split the first $Q$ prefix queries into $k$ blocks of $k^2$ queries (padding with dummy queries at $0$ if the protocol stops early). Let $P_g$ be the \emph{public grid} after block $g$: the points $0$, $1$, and all query points so far; $P_0=\{0,1\}$. Every agent answers uniformly until she is selected. At the end of block $g$, the five least-queried agents of that block among those not selected before form \emph{group $g$}: a \emph{positive pair} and a \emph{negative pair} of agents with identical valuations within each pair, and a uniform \emph{observer}. Let $G_g$ be the grid of $0$, $1$, and all query points of these five agents at selection time. At least $n-5(g-1)\ge5k$ agents are eligible, so the five least-queried received at most $5\cdot k^2/(5k)=k$ queries in block $g$, and \begin{equation}\label{detlb:few-new-points} |G_g\setminus P_{g-1}|\ \le\ k . \end{equation} Let $U$ consist of all observers and all agents never selected; they stay uniform and $|U|=n-4k\ge6k$. \paragraph{Balances.} After group $g$ is selected, maintain a grid containing all later query points of its members. Each cell $C$ carries a \emph{balance} $\beta(C)$, initially $0$, and a member with sign $\sigma\in\{+1,-1,0\}$ (positive pair, negative pair, observer) values the cell as \begin{equation}\label{detlb:cell-value} |C|+\sigma\beta(C). \end{equation} Initially all balances vanish, consistent with the uniform answers given before selection. When a new query point splits a cell, one side $J$ becomes a new cell and the rest keeps the old cell's identity; a positive amount $h$ of balance is \emph{transferred} from the old cell to the new one, so the positive pair sees the new cell as worth $|J|+h$ and the negative pair as $|J|-h$. The sum of balances is unchanged, so no earlier answer changes. For an evaluation inside a cell, the new cell is the shorter side, of length $s$. For an inversion whose target lies strictly inside the cell's value range, let $s$ be the smaller of the two values required on the two sides; the new cell is that side, with length $s-\sigma h$, so that its value is exactly $s$ by \eqref{detlb:cell-value}. Queries at existing grid points cause no split. We always take $0\frac{100\,n(Q+1)D}{\eta}. \end{equation} Digit position $p\ge1$ has unit $B^{-p}$; a number \emph{with $p$ places} is an integer multiple of $B^{-p}$, and its \emph{last digit} is that integer modulo $B$. If $S$ has $p$ places and $|y-S|0$ for every member, so cumulative values increase strictly along the grid; splits preserve old cumulative values, and each new point has exactly its requested value. For each final cell $C$ choose a smooth bump $\phi_C\ge0$ supported inside $C$ with integral one and maximum at most $2/|C|$. Give the positive pair the density $1+\sum_C\beta(C)\phi_C$ and the negative pair $1-\sum_C\beta(C)\phi_C$. The deviation from one is at most $2A<\min\{1,\eps\}/6$, the total integral is one because balances sum to zero, and the integral over each cell is its prescribed value. All other agents get density one. \end{proof} \subsection{Reading one digit in two ways} Suppose the protocol returns within $Q$ prefix queries, and fix the input of \cref{detlb:smooth-realization}; the output $(A_a)$ is envy-free. Let $L$ be the common length of the uniform bundles (\cref{detlb:uniform-shares}), and define the \emph{total length deficit} \begin{equation}\label{detlb:total-shortfall} X=\sum_{a=1}^n\bigl(L-|A_a|\bigr)=nL-1 , \end{equation} a sum of nonnegative terms. \paragraph{Labeled cells.} Fix a group $g$ and consider its four paired agents together with all of $U$. Every boundary of their bundles lies in the final grid of the group, by \cref{detlb:boundary-certification}: a paired agent has a tie with her identical partner, and an agent of $U$ has a tie (in the observer's eyes) with the observer, since both bundles have length $L$. Hence every final cell lies entirely in the bundle of one of these agents, which then labels it, or meets none of their bundles, in which case it is labeled $*$. For a transfer $\tau$ of amount $h_\tau$ from cell identity $C^-_\tau$ to $C^+_\tau$, let $\chi_\tau(r)=\ind\{\lambda(C^+_\tau)=r\}-\ind\{\lambda(C^-_\tau)=r\}$, where $\lambda$ is the final label. Summing the conserved transfers gives, for a paired agent $a$ with sign $\sigma_a$, \begin{equation}\label{detlb:transfer-valuation} v_a(A_r)=|A_r|+\sigma_a\sum_\tau h_\tau\chi_\tau(r). \end{equation} Only transfers whose two final labels differ contribute; call them \emph{effective}. \begin{lemma}[An old grid nearly predicts $L$\leanmark]\label{detlb:old-grid-length} Fix a group $g$ and $z\ge0$. If all but at most one effective transfer of group $g$ have $|J|\le z$, then some $\ell\in\mathcal L(P_{g-1})$ satisfies $|L-\ell|\le Qz$. \end{lemma} \begin{proof} We follow the cells of group $g$ backwards in time (\cref{detlb:lower-repainting}). A cell identity persists from its creation to the end, so at every moment of the construction we may color each current cell by the final label of its identity. A split recolors only the new interval $J$, and nothing at all if the transfer is not effective. At the end, the region colored by a uniform agent is exactly her bundle, of length $L$. At selection time at most $k$ points of the grid $G_g$ lie outside $P_{g-1}$ by \eqref{detlb:few-new-points}, and the cells adjacent to them carry at most $2k$ colors; the two cells of the exceptional transfer, if there is one, carry at most two more. Since $|U|\ge6k>2k+2$, some uniform agent's color appears in none of these places. At selection time every cell of her color has both endpoints in $P_{g-1}$, so her region is a union of cells of $P_{g-1}$, of some length $\ell\in\mathcal L(P_{g-1})$. The exceptional transfer never recolors a point into or out of her region, and each of the at most $Q$ other effective transfers changes the length of her region by at most $|J|\le z$. Hence $|L-\ell|\le Qz$. \end{proof} \begin{figure}[t] \centering \begin{tikzpicture}[x=1cm,y=1cm,font=\small] \node[anchor=east] at (-.2,1.4) {at selection}; \node[anchor=east] at (-.2,.35) {at the end}; \fill[uc!22] (0,1.1) rectangle (2,1.7); \fill[uc!22] (7.6,1.1) rectangle (10,1.7); \draw[thick] (0,1.1) rectangle (10,1.7); \draw (2,1.1)--(2,1.7) (4.4,1.1)--(4.4,1.7) (5.6,1.1)--(5.6,1.7) (7.6,1.1)--(7.6,1.7); \node at (1,1.4) {chosen}; \node at (3.2,1.4) {other}; \node at (5,1.4) {other}; \node at (6.6,1.4) {other}; \node at (8.8,1.4) {chosen}; \draw[dashed,negc] (4.4,.9)--(4.4,1.9); \node[above,negc] at (4.4,1.9) {new point (not in $P_{g-1}$)}; \fill[uc!22] (0,.05) rectangle (1.65,.65); \fill[uc!22] (7.85,.05) rectangle (10,.65); \draw[thick] (0,.05) rectangle (10,.65); \draw (1.65,.05)--(1.65,.65) (2,.05)--(2,.65) (4.4,.05)--(4.4,.65) (5.6,.05)--(5.6,.65) (7.6,.05)--(7.6,.65) (7.85,.05)--(7.85,.65); \draw[-{Stealth[length=2mm]}] (1.83,.98)--(1.83,.73); \draw[-{Stealth[length=2mm]}] (7.73,.98)--(7.73,.73); \node[below,align=center] at (5,-.05) {only short removed end intervals change the chosen color region}; \end{tikzpicture} \caption{Retrospective coloring in \cref{detlb:old-grid-length}. The chosen uniform agent's color avoids the $\le k$ new points and the exceptional transfer, so her initial region is a union of cells of the old grid $P_{g-1}$; short transfers change its length only slightly.} \label{detlb:lower-repainting} \end{figure} \paragraph{Choosing the digit: some group has two effective transfers.} Group $1$ has at least two effective transfers. Otherwise \cref{detlb:old-grid-length} with $z=0$ would give $L\in\mathcal L(P_0)=\{0,1\}$, but $0p}B^{-j}=Dw/(B-1)$. As $B-1>16nD$ by \eqref{detlb:lower-base}, we have $2nt2$. Her bundle has length $L$ and no middle term, so every paired agent of group $g$ values it at least $L-t$, and by envy-freeness values her own bundle at least $L-t$. \emph{Where the significant transfer goes.} Let $\mu_g>0$. A uniform agent cannot own a label of $\tau_g$: one of the two pairs would value her bundle at least $L+\mu_g-t>L+t$, more than its own. A paired agent of group $g$ cannot own a label whose middle term is negative for her, as her own value would be at most $L-\mu_g+tf$, so by \cref{detlb:digit-choice} its new cell is short: $|J|\le z=2DB^{-f}/\eta\le 2Dw/(\eta B)$. \Cref{detlb:old-grid-length} for group $i+1$ gives $\ell\in\mathcal L(P_i)$ with $|L-\ell|\le Qz$, so \[ |y-X|=n|\ell-L|\le\frac{2nQD}{\eta B}\,w<\frac w8 \] by \eqref{detlb:lower-base}. \end{proof} \begin{figure}[t] \centering \begin{tikzpicture}[x=1cm,y=1cm,font=\small,dg/.style={draw,minimum width=1.05cm,minimum height=.55cm,inner sep=1pt}] \node[anchor=east] at (-.2,1.5) {output reading}; \node[anchor=east] at (-.2,.4) {old-grid reading}; \foreach \x/\t in {0/{$\ast$},1.05/{$\ast$},2.1/{$\ast$}}{\node[dg,fill=gray!12] at (\x+.525,1.5) {\t}; \node[dg,fill=gray!12] at (\x+.525,.4) {\t};} \node[dg,fill=negc!20,minimum width=1.8cm] at (4.05,1.5) {$c$ or $2c$}; \node[dg,fill=uc!20,minimum width=1.8cm] at (4.05,.4) {$\notin\{c,2c\}$}; \foreach \x in {4.95,6.0}{\node[dg,pattern=north east lines,pattern color=gray!50] at (\x+.525,1.5) {}; \node[dg,pattern=north east lines,pattern color=gray!50] at (\x+.525,.4) {};} \node[font=\scriptsize] at (4.05,2.1) {digit $p$}; \node[font=\scriptsize,align=center] at (1.6,2.1) {coarser digits}; \node[font=\scriptsize,align=center] at (6.0,2.1) {finer: $