\documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{lmodern,amsmath,amssymb,amsthm,mathtools,microtype} \usepackage{array,tikz} \usepackage[margin=1.12in]{geometry} \setlength{\belowcaptionskip}{4pt} \usepackage[hidelinks,pdfencoding=auto]{hyperref} \hypersetup{pdftitle={A density-one approximation to the Erdős–Graham two-set permutation problem},pdfauthor={Xuyang Peng}} \newtheorem{theorem}{Theorem}[section] \newtheorem{lemma}[theorem]{Lemma} \newtheorem{proposition}[theorem]{Proposition} \newtheorem{corollary}[theorem]{Corollary} \newcommand{\N}{\mathbb N} \newcommand{\Z}{\mathbb Z} \newcommand{\ph}{\phi} \newcommand{\eps}{\varepsilon} \title{A density-one approximation to the\\ Erd\H{o}s--Graham two-set permutation problem} \author{Xuyang Peng} \date{} \begin{document} \maketitle \begin{abstract} We construct two disjoint sets of positive integers, each admitting a permutation without monotone three-term arithmetic progressions and each having $X/2+O(X/\log X)$ elements up to $X$. Their complement also admits such a permutation. Let $\alpha$ and $\beta$ be the supremal upper and lower densities of sets admitting these permutations. LeSaulnier and Vijay conjectured $\beta=1/4$ and left open whether $\beta<1$. Our construction gives $\beta\ge1/2$. Together with Geneson's $\alpha\ge2/3$, this gives $\alpha+\beta\ge7/6$, ruling out the proposed obstruction $\alpha+\beta<1$ to a two-set partition. We prove $\alpha\le39/41$ and $\beta\le17/18$, answering the question whether $\beta<1$. Every such set misses at least $\delta_\lambda N$ integers in each sufficiently large $[N,\lambda N]$ for fixed $\lambda>2$, with $\delta_\lambda>0$ independent of the set. The threshold $2$ is sharp, and one may take $\delta_3=1/33$ and $\delta_4=3/43$. We formalize the partition theorem, the sharp interval threshold with its explicit bounds, and the extremal density bounds in Lean~4. \end{abstract} \section{The two-set problem and its density parameters} Call a set $S\subseteq\N=\{1,2,\ldots\}$ \emph{permutable} if its elements can be listed, each exactly once, so that no three entries in their order of appearance form an arithmetic progression. Equivalently, for each numerical progression $x2$ there is a $\delta_\lambda>0$ such that every permutable set $S$ satisfies \[ |[N,\lambda N]\cap(\N\setminus S)|\ge\delta_\lambda N \qquad(N\ge N_0(S,\lambda)). \] One may take $\delta_3=1/33$ and $\delta_4=3/43$. At $\lambda=2$, for every function $\omega(N)\to\infty$ there is a permutable set $S$ for which $[N,2N]$ has fewer than $\omega(N)$ missing integers for infinitely many $N$. \end{theorem} Davis et al.\ also asked how large the upper and lower densities of a permutable set can be \cite[Concluding Remark~4, p.~89]{DEGS}. Write $\overline d(S)$ and $\underline d(S)$ for the limit superior and limit inferior of $S(X)/X$. In the notation of LeSaulnier and Vijay \cite{LV}, put \[ \alpha=\sup_{S\text{ permutable}}\overline d(S),\qquad \beta=\sup_{S\text{ permutable}}\underline d(S). \] \begin{theorem}[Density bounds]\label{th:densities} The extremal upper and lower densities satisfy \[ \frac23\le\alpha\le\frac{39}{41},\qquad \frac12\le\beta\le\frac{17}{18}. \] More precisely, for every permutable $S$ and every fixed $c>0$, infinitely many $X=\lfloor c2^k\rfloor$ satisfy $|[1,X]\setminus S|>X/18$. \end{theorem} LeSaulnier and Vijay conjectured $\alpha=1/2$ and $\beta=1/4$, and noted that even $\beta<1$ was open \cite[p.~207]{LV}. Adenwalla subsequently highlighted the absence of an upper bound below one \cite[Section~6, Question~3]{Adenwalla}. Geneson refuted the conjecture for $\alpha$ by obtaining $\alpha\ge2/3$ with finite runs of intervals $[L4^j,2L4^j]$ trimmed at their lower ends \cite{Geneson}. The full partition into alternating dyadic intervals was ruled out by Kasel \cite{Kasel}. For $\beta$, a formalized construction already gives $\beta\ge4/15$ \cite{Omega}. Theorem~\ref{th:construction} raises this lower bound to $1/2$ and attains it with two disjoint sets, both of natural density $1/2$. The upper bounds in Theorem~\ref{th:densities} answer the strict inequality question for both $\alpha$ and $\beta$. A partition into two permutable sets $A,\N\setminus A$ would give $\alpha+\beta\ge\overline d(A)+\underline d(\N\setminus A)=1$. LeSaulnier and Vijay suggested excluding such a partition by proving $\alpha+\beta<1$. Theorem~\ref{th:construction} and Geneson's bound together rule out this approach, since \begin{equation}\label{eq:sum} \alpha+\beta\ge7/6. \end{equation} The construction with one interval per layer in Section~\ref{sec:dyadic-model} also recovers Geneson's bound. The Lean~4 proofs of Theorems~\ref{th:construction}--\ref{th:densities} are available at \url{https://github.com/Galuisss/erdos-197-lean}. Section~\ref{sec:main} starts with alternating dyadic layers, then subdivides each layer to balance the two principal colours. A slowly increasing height gives each colour an infinite enumeration. Section~\ref{sec:third} orders the points transferred to the third set and counts all three sets. Section~\ref{sec:upper} studies prefixes of a single enumeration. In a nearly full interval with $\lambda>2$, two consecutive early entries force a half-filled prefix to occupy asymptotically half of every fixed residue class. Sampling a long progression then contradicts the separation of its parity classes. For explicit bounds we count pairs separated by a cut of the enumeration. The reflection constraints force many such pairs, whereas finite admissible rows give a computable upper bound on their number. A single-difference count gives the constants for $[N,3N]$ and $[N,4N]$. For $\alpha$ and $\beta$ we count two differences, $\Delta$ and $2\Delta$, on the same row of marks. Averaging over nested moduli relates that count to a cut in an extremal initial segment for $\alpha$, and to cuts on successive doubling scales for $\beta$. \section{Ordering the two principal sets}\label{sec:main} \subsection{A model with one interval per layer}\label{sec:dyadic-model} Give every integer in the dyadic layer $I_k=[2^k,2^{k+1})$ the same nominal colour, red for even $k$ and blue for odd $k$. Doubling reverses the colour. The red progression $1,16,31$ shows where a triple can survive. Its last two terms are the first and last integers of the same red layer. More generally, take a monochromatic progression $x,>=stealth}] \node[box,text width=10.4cm] (grid) at (0,0) {\textbf{Assign nominal colours on dyadic layers}\\ Alternate red and blue across the leaves of the phase grid. Reverse the starting colour at each new layer.}; \node[rule] (split) at (-4.85,-2.20) {\textbf{At a split}\\ Take the enlarged middle child in the old layer.}; \node[rule] (boundary) at (0,-2.20) {\textbf{At a selected boundary}\\ Take the interval of radius $w(\xi)$ about its centre $\xi$.}; \node[rule] (height) at (4.85,-2.20) {\textbf{At a height increase}\\ Take that colour's changing class outside the strips at its right endpoints.}; \node[box,fill=black!5,text width=6cm] (test) at (0,-4.05) {Does any transfer rule take the point?}; \node[result] (principal) at (-3.82,-6.19) {\textbf{Retain the point in $R$ or $B$}\\ Order each colour by its own height $a$ and binary address $\ph(n)$, using \eqref{eq:key}.}; \node[result] (exception) at (3.82,-6.19) {\textbf{Put the point in $E$}\\ List groups by position. Use $\ph$ within each group. At a change of selections, order centres largest first and use $\ph$ within each interval.}; \draw[line] (grid.south) -- (0,-1.00); \draw[arrow] (0,-1.00) -| (split.north); \draw[arrow] (0,-1.00) -- (boundary.north); \draw[arrow] (0,-1.00) -| (height.north); \draw[line] (split.south) |- (0,-3.48); \draw[line] (height.south) |- (0,-3.48); \draw[arrow] (boundary.south) -- (test.north); \draw[line] (test.south) -- (0,-4.77); \draw[arrow] (0,-4.77) -| node[pos=.33,above,inner sep=2pt]{No} (principal.north); \draw[arrow] (0,-4.77) -| node[pos=.33,above,inner sep=2pt]{Yes} (exception.north); \end{tikzpicture} \caption{Construction of the three orders. Apply the transfer rules on the full grid according to Table~\ref{tab:operations}. Restricting the three lists to a common tail and translating gives the partition of $\N$. The layer counts in Section~\ref{sec:counts} give density $1/2$ for $R,B$ and zero for $E$.}\label{fig:construction} \end{figure} \subsection{The phase grid} The phase of a point $n$ in layer $I_k$ is $n/2^k$. The phase interval $[1,2)$ starts as a single leaf. In round $r\ge1$, split the $3^{r-1}$ leaves present at the start of the round, from left to right, into three nearly equal subintervals. The two new cut points are taken within $\eps_r$ times the parent length of its two trisection points, where $\eps_r=2^{-10}3^{-2r}$. All intervals are left closed and right open. With $m$ current leaves, let $A$ be their left endpoints (the phase $2$ is represented by $1$ in the next layer), and let $\mathcal D(A)=\{2^j a:a\in A,\ j\in\Z\}$. \begin{lemma}\label{lem:grid} The cuts can be chosen successively with the following properties, including partway through any round. \begin{enumerate} \item Every leaf has length $\asymp 1/m$. If $e(u)$ is the index of the leaf containing $u$, numbered from zero at the left, then \[ \sup_{1\le t\le 2}\left|\int_1^t(-1)^{e(u)}\,du\right|=O(1/m). \] \item There is $\eta\gg m^{-22}$ such that, for $U\le V\le W$ in $\mathcal D(A)$, the inequality $|U+W-2V|\le\eta W$ implies either $U=V=W$, or $W=2V$ and $U22$ makes the deleted neighbourhoods narrow enough for the grid separation test. Choosing $240>100$ makes them wide enough to absorb an endpoint from stage $l-1$. The additive $1000$ leaves room for the six layers grouped around a change of selections. Neighbouring boundaries, including those on either side of a layer end, are $\gg P/k$ apart. Their neighbourhoods are therefore disjoint on the tail. \subsection{The operation timetable} For each real $v\ge1$ in layer $k$, its nominal colour is $k+e(v/2^k)\pmod 2$, with $0$ red and $1$ blue. Consecutive nominal intervals have opposite colours, including across powers of two, since the number of leaves is odd. A boundary is a point $\xi=2^k a$ with $a$ a current left endpoint. When $\xi$ is selected, transfer to $E$ the integers within $w(\xi)$ of it. Write $G$ for the union of these intervals of integers. Both heights start at zero, and initially the even layers are selected on the single ray. \begin{table}[htb] \centering\small \caption{Operations at stage $s$ and their groups in $E$, for $r=0,1,\ldots$.}\label{tab:operations} \renewcommand{\arraystretch}{1.18} \begin{tabular}{@{}>{\raggedright\arraybackslash}p{.18\linewidth}@{\hspace{.025\linewidth}}>{\raggedright\arraybackslash}p{.39\linewidth}@{\hspace{.025\linewidth}}>{\raggedright\arraybackslash}p{.38\linewidth}@{}} \hline Stage & Grid, selections and heights & Group and order in $E$ \\ \hline Split batch\newline $s=60r+20$ & Split at the end of each of the first $\lfloor(t_{s+1}-t_s)/2\rfloor$ layers. After a split in layer $k$, select each new ray first in layer $k+2$. & Group the enlarged middle children in the old layers with all $G$-intervals centred in $[M_{s-5},M_{s+5})$. Use $\ph$. \\[2pt] Change selections\newline $s=60r+40$ & Select every boundary in layers $t_s,t_s+1$, then the left endpoints of the colour whose height increases next. & Group the $G$-intervals centred in layers $t_s-2,\ldots,t_s+3$. Use decreasing centre order and $\ph$ within each interval. \\[2pt] Height increase\newline $s=60r+60$ & At $M_s$ raise one colour by $1/q_j$, alternating colours at successive increases. Apply the residue-class transfer in stages $s-3,\ldots,s+2$. & Group the height transfers with all $G$-intervals centred in $[M_{s-5},M_{s+5})$. Use $\ph$. \\[2pt] Between operations & Keep the grid and heights fixed and continue the alternating selections on each ray. & Each $G$-interval outside the listed groups forms its own group, ordered by $\ph$. \\ \hline \end{tabular} \end{table} \paragraph{Splits.} A split at the end of layer $k$ changes the grid starting in layer $k+1$. If $J$ is the middle child, transfer the integers in the old layer at distance at most $w(2^k)$ from $2^kJ$ to $E$. This transition interval lies inside the layer since $J$ is $\gg1/k$ from either end in phase. Keep the selections on old rays. On each new ray leave the boundary in layer $k+1$ unselected, select the one in $k+2$, and alternate thereafter until a change of selections. Figure~\ref{fig:split} shows the first split. \begin{figure}[htb] \centering \begin{tikzpicture}[x=1cm,y=1cm,font=\small] \node[anchor=east] at (-.15,1.22) {layer $k$}; \node[anchor=east] at (-.15,.34) {layer $k+1$}; \fill[black!15] (2.4,1) rectangle (4.8,1.44); \draw (0,1) rectangle (7.2,1.44); \draw[dashed] (2.4,1.44) -- (2.4,.56) (4.8,1.44) -- (4.8,.56); \draw (0,.12) rectangle (7.2,.56); \draw (2.4,.12) -- (2.4,.56) (4.8,.12) -- (4.8,.56); \foreach \x/\upper/\lower in {1.2/c/\bar c,3.6/c\to E/c,6/c/\bar c} { \node at (\x,1.22) {$\upper$}; \node at (\x,.34) {$\lower$}; } \foreach \x/\name in {0/1,2.4/u,4.8/v,7.2/2} { \node[below] at (\x,.09) {$\name$}; } \foreach \x in {2.4,4.8} \draw[fill=white] (\x,.12) circle (1.7pt); \end{tikzpicture} \caption{The first split in phase coordinates. In layer $k$ the parent has nominal colour $c$. Its shaded middle child $[u,v)$ goes to $E$ together with a small enlargement. In the next layer the outer children have the opposite colour $\bar c$. The open circles mark the two boundaries left unselected at birth.}\label{fig:split} \end{figure} \paragraph{Change of selections.} With the grid fixed, the left endpoints of a given colour occur in alternate layers on each ray. The two fully selected layers join the old alternation to the new one. Thus for every existing boundary $\xi$, at least one of $\xi,2\xi$ is selected. Both may be selected near the change. This can happen only with their layer indices in $[t_s-1,t_s+2]$ at a change stage $s$, so the six layers in Table~\ref{tab:operations} keep both centres in one group. \paragraph{Height increase.} In stages $s-3$ through $s+2$, transfer the points of the designated nominal colour in the one residue class whose integer part changes in \eqref{eq:key}. In each nominal interval of that colour, with right endpoint $\xi$, exempt the points in $[\xi-10w(\xi),\xi)$. The exempted points outside $G$ retain their nominal colour. Write $H$ for the height transfers outside $G$. This leaves a neighbourhood of each right endpoint free of $H$ for the comparison in Lemma~\ref{lem:transferred-upper}. Apply the transfers on the full grid, then restrict all sets, groups and orders to $T=[M_{l_0},\infty)\cap\N$ for a sufficiently large stage index $l_0$. In $T$ the transferred points form $E$ and the remaining red and blue points form $R$ and $B$. Translation by $1-M_{l_0}$ carries this partition onto $\N$ and preserves progressions. \subsection{Verification of the principal orders}\label{sec:principal-check} Order each principal colour by \eqref{eq:key} with its own height. Each integer part gives a finite set of points because $\sum_j1/q_j=\infty$ for each colour. Listing by that key therefore gives an actual enumeration. Table~\ref{tab:progression-cases} collects the cases for this order and for the order on $E$. \begin{lemma}[Localization in the principal colours]\label{lem:local} If $xM_{l-1}$. Its three stage indices differ by at most two. \end{lemma} \begin{proof} Suppose $x\le M_{l-1}$ and put $v=z/2=y-x/2$. A retained triple would have $y$ and $2v$ of the same nominal colour, although $v$ is only $x/2$ to the left of $y$. There are two ways this could happen. If the layer $k$ of $v$ splits at its upper end and $v$ is in the middle child being flipped, $v$ and $2v$ have the same nominal colour. Since $v>M_l/2$, a layer containing $v$ below $M_l$ would be the last of stage $l-1$, which never splits. Thus $2^k\ge M_l$. The transition interval covers the whole middle child and extends by $w(2^k)$ on either side within the layer. By \eqref{eq:scale-separation}, $y-v=x/2v\ge M_l$. Now \[ 0\le y-\xi\le x/2,\qquad 0\le 2\xi-z\le x . \] Both widths exceed $x$ by \eqref{eq:scale-separation}. Selecting $\xi$ therefore removes $y$, and selecting $2\xi$ removes $z$. The selection rules guarantee at least one of the two. This proves $x>M_{l-1}$. Finally $z<2y<2M_{l+1}\le M_{l+2}$, so the three stages lie between $l-1$ and $l+1$. \end{proof} Consider the comparison of the middle term with either endpoint. If their heights are equal, the comparison agrees with $\ph$. If they differ, the triple crosses a height increase at stage $s$. Its stage indices span at most two by Lemma~\ref{lem:local}, so this is the only height increase it crosses. All three terms are within the transfer stages $s-3,\ldots,s+2$ in Table~\ref{tab:operations}. For a point outside the changing residue class, either height gives the same integer part. If either point being compared is outside that class, compare at the height of the other point to obtain the $\ph$ comparison. It remains to compare a middle term and an endpoint both in the changing class. Their reflection, the other endpoint, is in the same class. All three survived the height rule, so each is in the left neighbourhood of a right endpoint of the designated colour. These endpoints are in numerical order, since the neighbourhoods are disjoint, and differ from the three terms by at most ten local widths. Lemma~\ref{lem:grid} and \eqref{eq:scale-separation} make all three endpoints equal or the two larger ones exact doubles. Throughout these stages the grid is fixed, and doubling a right endpoint of the designated colour gives a left endpoint of that colour. This excludes the doubling case. The left neighbourhood of a single boundary lies within one stage, since all stage boundaries are grid boundaries and the neighbourhood is shorter than the spacing. Its three heights agree. This proves that in both principal orders the middle term is an extremum of every progression. \section{Ordering the third set and counting all three sets}\label{sec:third} \subsection{Finite groups for the third order} Order the groups in Table~\ref{tab:operations} by increasing numerical position. To see that their supports are disjoint and occur in this order, consider a height or split stage $s$. Its group contains a consecutive range of $G$-centres. All further points transferred by the operation lie in $[M_{s-3},M_{s+3})$, inside that range of stages. At the ends of the range the boundary widths are smaller than the gap to the next centre. The change-of-selections groups likewise use consecutive centres, and successive operations are twenty stages apart. This also shows that if two transfer rules apply to a point, they assign it to the same group. Each group is finite and their least elements tend to infinity. Infinitely many selected boundaries have $w(\xi)>1$, so the within-group orders in Table~\ref{tab:operations} give an enumeration of $E$. In a change-of-selections group the interval at $2\xi$ precedes the one at $\xi$ whenever both occur. \begin{proposition}\label{prop:third} The enumeration of $E$ avoids all monotone three-term arithmetic progressions. \end{proposition} Table~\ref{tab:progression-cases} gives the cases for all three lists. In the order by $\ph$, the middle term $y$ is an extremum by the first differing bit. The only other order needed for a retained triple is $x,z,y$, with $y$ last. To decide which applies in $E$, first locate the upper terms. Since $y{\raggedright\arraybackslash}p{.32\linewidth}@{\hspace{.035\linewidth}}>{\raggedright\arraybackslash}p{.64\linewidth}@{}} \hline Position of the terms & Transfer or order of the terms \\ \hline \multicolumn{2}{@{}l}{\textbf{One nominal principal colour}} \\[2pt] $x\le M_{l-1}$ & The split interval removes $y$, or a selected boundary near $y$ or $z$ removes that term (Lemma~\ref{lem:local}). \\[3pt] All retained, same height & The key \eqref{eq:key} orders the triple by $\ph$. \\[3pt] All retained, across a height increase & Lemma~\ref{lem:local} allows just one increase. If $y$ and an endpoint are both in the changing class, all three are in it. Survival then forces a common right endpoint and a single height, ruling out the crossing. In the remaining cases both comparisons with $y$ agree with $\ph$ (Section~\ref{sec:principal-check}). \\[3pt] \hline \multicolumn{2}{@{}l}{\textbf{All three terms in the exceptional set $E$}} \\[2pt] $y$ or $z$ outside $G$ & All three lie in one height or split group, ordered by $\ph$ (Lemma~\ref{lem:transferred-upper}). \\[3pt] $y,z\in G$ and $x\in G$ & Their centres coincide, or the upper centres are $V,2V$ with $x$ in an earlier group. The orders are respectively $\ph$ and $x,z,y$ (Lemma~\ref{lem:boundary-upper}). \\[3pt] $y,z\in G$ and $x\notin G$ & The group of $x$ contains all three and uses $\ph$, or $x$ is earlier and the upper centres are $V,2V$, giving $x,z,y$ (Lemma~\ref{lem:boundary-upper}). \\ \hline \end{tabular} \end{table} \begin{lemma}[An upper term outside $G$]\label{lem:transferred-upper} If $y$ or $z$ belongs to $E\setminus G$, then $x,y,z$ lie in the same height or split group. \end{lemma} \begin{proof} Let $s$ be the stage of that operation. The transferred upper term lies in $[M_{s-3},M_{s+3})$. The other upper term is within a factor two of it, so any associated $G$-centre lies in $[M_{s-5},M_{s+5})$. No other operation has a transfer in this range. Thus both upper terms are in the group for $s$. If $x$ were in an earlier group, then \[ x\le F:=2M_{s-5},\qquad |z-2y|=x\le F=o(w(y)). \] Indeed $y\ge M_{s-3}/2$ and \eqref{eq:scale-separation} at $P=M_{s-3}$ gives $M_{s-5}\le M_{s-4}=o(w(M_{s-3}/2))$. We show why neither operation can produce the upper terms this close to doubling. \emph{Height group.} The grid is fixed. Its selected centres near $y,z$ are left endpoints of the designated colour. Around every right endpoint $D$ the interval of radius $9w(D)$ is free of $H$. On the left this follows from the exemption of width $10w(D)$, and on the right the nominal colour changes. We locate an $H$ point in one of these intervals in each of the three cases. \begin{itemize} \item If $y,z\in H$, then $z/2$ and $y$ have opposite colours. Their distance $x/2$ is smaller than the boundary spacing, so $(z/2,y]$ crosses just the left endpoint $\xi$ of the interval containing $y$. Its double is a right endpoint and $|z-2\xi|\le F$. \item If $y\in G$ has centre $\xi$ and $z\in H$, the right endpoint is $2\xi$, with $|z-2\xi|\le 2w(\xi)+F$. \item If $z\in G$ has centre $\xi$ and $y\in H$, the right endpoint is $\xi/2$, with $|y-\xi/2|\le (w(\xi)+F)/2$. \end{itemize} In each case the distance is less than nine widths at the indicated right endpoint, since $F=o(w(y))$ and $w(2v)\sim2w(v)$. \emph{Split group.} A transition point in layer $j$ is within $w(2^j)/2^j=o(1/j)$ in phase of its middle child, which lies $\gg1/j$ from either end of the layer. Thus if either upper term is a transition point, $|z-2y|\le F$ puts $y,z$ in consecutive layers $k,k+1$. With $P=2^k$ their phases differ by \[ \frac{y}{P}-\frac{z}{2P}=\frac{x}{2P}. \] Two transition points would therefore require consecutive middle children to be within $O((w(P)+F)/P)=o(1/k)$ of each other. Their phase gap is $\gg1/k$ by the construction after Lemma~\ref{lem:grid}. If the other upper term is in $G$, its centre must be within the same $o(1/k)$ in phase of the transition child. In the preceding layer every boundary is at least an outer child's width from that child. In the following layer the only closer boundaries are its two endpoints, both unselected at birth (Figure~\ref{fig:split}). This rules out an earlier group for $x$. \end{proof} \begin{lemma}[Both upper terms in $G$]\label{lem:boundary-upper} Suppose $y,z\in G$ and let $V,W$ be their centres. Then the three terms lie in a group ordered by $\ph$, lie in a single $G$-interval, or satisfy $W=2V$ with $x$ in a group preceding the change-of-selections group of $y,z$. \end{lemma} \begin{proof} If $x\in G$ as well, let $U$ be its centre. The disjoint intervals give $U\le V\le W$. Replacing each term by its centre in $x+z-2y=0$ costs $O(w(W))$. By \eqref{eq:scale-separation} this is within the tolerance of Lemma~\ref{lem:grid} on the common refined grid. Thus either $U=V=W$, giving a single interval, or $W=2V$ and $U2$. If the first assertion of Theorem~\ref{th:window} fails, we can find permutable $S_i$, admissible enumerations of them, and $N_i\to\infty$ such that $I_i=[N_i,\lambda N_i]\cap\Z$ has $o(N_i)$ missing points. We may further take consecutive anchors $f_i,f_i+1\in S_i$, with $f_i=o(N_i)$ and both anchors preceding all of $I_i\cap S_i$. Indeed, for each small constant $1/i$ the negated assertion supplies one set with arbitrarily far windows missing fewer than $N/i$ points. Such a set contains a consecutive pair once $i$ is large. Fix a pair and then take a window beyond the largest entry up to the later anchor in its enumeration, with $N_i>if_i$. Stop the enumeration when $\lfloor |S_i\cap I_i|/2\rfloor$ entries of $I_i$ have appeared. Let $g_i$ be the indicator of the entries of $I_i$ already seen, setting it to zero at holes. For each fixed $q\ge1$ and residue $r\pmod q$, take a common subsequence on which the measures \[ \frac q{N_i}\sum_{\substack{n\in I_i\\ n\equiv r\pmod q}}g_i(n)\,\delta_{n/N_i} \] converge weakly and $f_i\bmod q$ stabilizes. Here $\delta_t$ denotes unit mass at $t$. To obtain the subsequence, extract diagonally on intervals with rational endpoints, using that the mass of each interval is at most its length plus $O(q/N_i)$. This bound also implies convergence on arbitrary intervals and domination of the limit by Lebesgue measure. \begin{lemma}\label{lem:homogeneous} For each $q,r$ the limiting measure has the form $b_{r,q}\,dt$ on $[1,\lambda]$, with $b_{0,1}=1/2$. \end{lemma} \begin{proof} Take an interval $J$ of length $a>0$ and a small displacement $D>0$ for which $J+[-3D,3D]\subset(1,\lambda)$. We compare the means in $J$ and $J+D$. Fix positive integers $u,L$ with $L>3u$. Choose a multiple $d_i$ of $q$ within $q$ of $DN_i/(L-u)$, and take $x$ uniformly among the integers of residue $r$ in $N_iJ$. The extended progression $x+jd_i$, $-L\le j\le 2L$, stays in $I_i$ for all large $i$. Only $o(N_i)$ starts hit a hole, since $L$ is fixed. For every other start $g_i$ marks an admissible prefix. Lemma~\ref{lem:interior} bounds the difference of its means on the first and last $u$ indices of $[0,L-1]$ by $O(u^{-1/2})$. The exceptional starts contribute $o(1)$ on averaging, since both means lie in $[0,1]$. Averaging the first $u$ shifts changes the residue-class mean on $N_iJ$ by $O(Du/(La))+o(1)$, as only the ends of the interval move, by at most $ud_i$. For the last $u$ shifts the same bound holds relative to $N_i(J+D)$ because $(L-u)d_i=DN_i+O(qL)$. Taking $i\to\infty$, then $L\to\infty$, then $u\to\infty$ shows that $J$ and $J+D$ have equal limiting mass. Any two compact interior intervals of equal length are connected by finitely many sufficiently short translations. Additivity and the length bound on the limit now give a constant density. The half-prefix cut gives $b_{0,1}=1/2$. \end{proof} \begin{lemma}\label{lem:halves} For every $q$ and every $r\pmod q$, one has $b_{r,q}=1/2$. \end{lemma} \begin{proof} Choose a closed interval $J$ of positive length in $(1,\lambda/2)$. For $y\in N_iJ$ the reflection $2y-f_i$ belongs to $I_i$ for large $i$. Apart from $o(N_i)$ choices, that reflection is in $S_i$. If $g_i(y)=1$, the old anchor $f_i$ precedes $y$, so $2y-f_i$ must precede $y$ and already be in the prefix. Apply the same argument to $f_i+1$. Restricting $y$ to $r\pmod q$ and counting in the image intervals gives \[ b_{r,q}\le b_{2r-f,2q},\qquad b_{r,q}\le b_{2r-f-1,2q}, \] where $f$ means the stabilized residue of $f_i$ at the modulus in use. Indeed the image ranges over precisely the corresponding class modulo $2q$ in $2N_iJ-f_i$ or $2N_iJ-f_i-1$. These shifts are $o(N_i)$, and the doubled interval and doubled modulus have the same number of opportunities as the source to leading order. As $r$ runs through $\Z/q\Z$, the right sides together exhaust the $2q$ classes. The mean of the $b_{r,q}$ at any modulus is $b_{0,1}$. Hence every inequality is an equality. To see the consequence at modulus $q$, put mass $b_{r,q}$ at residue $r$ and send half to each of $2r-f$ and $2r-f-1$ modulo $q$. Before reduction modulo $q$, the two lists of destinations run once through $\Z/(2q)\Z$ with masses $b_{t,2q}/2$. On reducing, the resulting mass at $t$ is $(b_{t,2q}+b_{t+q,2q})/2=b_{t,q}$, so the vector is stationary. From any residue the $2^s$ possible paths of length $s$ reach $2^s$ consecutive integers modulo $q$, once each before reduction, as the choices of subtracting $0$ or $1$ give the binary digits. Thus the transition probabilities tend uniformly to $1/q$. A stationary vector must be constant, with value $b_{0,1}=1/2$. \end{proof} \subsection{Sampling a progression} Take $L=100$. Choose $(x,d)$ uniformly among integer points in $N_i$ times a fixed axis-parallel rectangle of positive area such that $d>0$ and $x+jd\in I_i$ for all $-L\le j\le2L$. Such a rectangle is obtained by taking $x/N_i$ in a small interval about $(1+\lambda)/2$ and $d/N_i$ in a sufficiently small interval of positive numbers. With probability $1-o(1)$ the entire progression is present, since fixing $d$ leaves at most $o(N_i)$ choices of $x$ that hit a hole at each index. For each $0\le j2M$ and $\omega(L)>M$. This leaves only $M$ holes in $[L,2L]$ and creates no progression meeting both the old set and the new block. We give the equivalent construction that trims the right endpoint, using the block formula from LeSaulnier and Vijay \cite[proof of Theorem~3]{LV}. Let $\omega(N)\to\infty$. Starting with $B_0=1$, choose successively integers $A_j>2B_{j-1}$ with $\omega(A_j)>B_{j-1}+1$ and set $B_j=2A_j-B_{j-1}-1$. Take $S=\bigcup_{j\ge1}[A_j,B_j]\cap\N$. In any progression with last term in block $j$, two earlier terms in previous blocks would give a last term at most $2B_{j-1}B_{j-1}$. Thus every progression is internal to a block. List the blocks in numerical order and sort each by $\ph$. In $[A_j,2A_j]$ at most $B_{j-1}+1<\omega(A_j)$ integers are missing. Taking, for example, $\omega(N)=\sqrt N$ proves sharpness of the threshold. \subsection{Pairs across a cut}\label{sec:numeric} For the numerical bounds we count pairs separated by a cut of the enumeration. In an interval $I$ of $M$ integers, give visited entries mark $1$ and later entries mark $0$. Give each missing integer (a \emph{hole}) an independent fair binary mark. If a visited point $y$ comes after an anchor $a$, the reflection $2y-a$ must already have been visited whenever it belongs to the set. A suitable cut therefore forces both marks to occur frequently in many residue classes. On the other hand, an admissible prefix along an arithmetic progression allows only certain patterns of marks. We compare the resulting lower and upper counts. Let $Z_M(\Delta)$ be the expected number of differently marked pairs at positive difference $\Delta$ in $I$, and put $Z_M(\Delta)=0$ for $\Delta=0$ or $\Delta\ge M$. For any fixed modulus $q$ write \begin{equation}\label{eq:markpairs} E_{q,M}=\frac{2q}{M^2}\sum_{d\ge1}Z_M(qd) =\frac1q\sum_{j\bmod q}2p_j(1-p_j)+o(1), \end{equation} where $p_j$ is the expected fraction of ones in class $j$. Indeed, a class of size $n_j$ with $s_j$ ones contributes $s_j(n_j-s_j)$ unordered pairs. Here $n_j=M/q+O(1)$ and $\operatorname{Var}(s_j)\le n_j/4$ by independence at the holes. If every $p_j$ lies in $[t,1-t]$ up to $o(1)$, with $00$ each set sufficiently far along the sequence meets every class, since an empty class would bound its limsup by $(1-1/m)v$. Fix an old anchor in each class before choosing the window, and let $M$ denote its length. Take the window sufficiently far out that the entries preceding the anchors and the endpoint shifts they cause cost $o(M)$. The same choice enforces any of the finitely many eventual bounds below on fixed dilates of the window in these classes. Here we use $m=2Q$. The same observation for initial segments will be used below at a finer fixed modulus. \emph{Reflection at the cut.} Put $w_3=1/66$ and $w_4=1/43$, and suppose $\sigma_C\ge1-w_C$. Each fixed class in an extremal window has hole fraction $d_C+o(1)$, where $d_C=1-\sigma_C\le w_C$. In $I=[N,CN]$ stop when some class $r\bmod Q$ has marked a third of its opportunities in $J=[N,CN/2]$, rounding up. The hole budget ensures this threshold is reached. Every class of $I$ still has at least \[ u_C=\frac{C-2}{3(C-1)} \] of its positions still unvisited, up to $o(1)$, holes included. Indeed at least two thirds of each class in $J$ are unvisited and $|J|/|I|=(C-2)/(2(C-1))+o(1)$, counting integer points. For each $t\bmod2Q$ take an old anchor $a\equiv2r-t\pmod{2Q}$. Every marked $y$ of the winning class in $J$ gives a distinct $2y-a$ of class $t$. Apart from $o(M)$ exceptions the image belongs to $I$ and, if present, precedes $y$ by admissibility of $(a,y,2y-a)$. Combining the two lifts of each class modulo $Q$ supplies at least $u_C-o(1)$ marked or missing there. Give holes independent fair marks. If $a_j$ is the visited fraction and $h_j=d_C+o(1)$ the hole fraction, then $p_j=a_j+h_j/2$ satisfies \[ u_C-w_C/2-o(1)\le p_j\le1-u_C+w_C/2+o(1). \] Equation~\eqref{eq:markpairs} therefore gives a lower bound of $259/968-o(1)$ for $C=3$, using $u_3-w_3/2=7/44$, and $99593/299538-o(1)$ for $C=4$, using $u_4-w_4/2=163/774$. These exceed the respective bounds of Lemma~\ref{lem:discord}. The smaller margin, for $C=4$, is $99593/299538-0.332288>2\cdot10^{-4}$. Bounded hole charges absorb any $o(1)$ excess in the missing fraction. Thus $\sigma_3<65/66$ and $\sigma_4<42/43$, proving both local claims. The same eventual local claims apply to the indices of every fixed arithmetic progression. \end{proof} \subsection{Coupled differences and modulus averaging} A pair at difference $\Delta$ and one at difference $2\Delta$ can both be tested against the same row of marks. For a hole budget $h$ let $b_h(t)$ bound $Z_M(\Delta)/M$ and let $v_h(t)$ bound $2\bigl(Z_M(\Delta)+2Z_M(2\Delta)\bigr)/M$, up to $o(1)$, for $Q\mid\Delta$ and $t=\Delta/M$. Appendices~\ref{app:discord} and~\ref{app:joint-density} construct these bounded piecewise affine bounds. Summing over $\Delta$ samples the doubled differences on a coarser lattice. To use the joint estimate, we choose a cut at a fine modulus and average the pair counts over its dyadic divisors. \begin{lemma}[Modulus averaging]\label{lem:modulus-average} Suppose that for every fixed $K\ge0$ there are cuts on intervals of lengths $M\to\infty$ with at most $hM+o(M)$ holes and $E_{2^{K+1}Q,M}\ge \gamma-o(1)$. Then there is a measurable $\psi:[0,1]\to[0,1]$, extended by zero elsewhere, such that \begin{equation}\label{eq:averaged-profile} \psi(t)\le b_h(t),\qquad \psi(t)+2\psi(2t)\le v_h(t)/2\quad\text{a.e. on }[0,1], \qquad 2\int_0^1 \psi(t)\,dt\ge \gamma. \end{equation} \end{lemma} \begin{proof} Fix $K$ and take the corresponding cuts. Set $q_m=2^mQ$, $0\le m\le K+1$. A mark fraction in a coarse class is the weighted average of those in its finer classes. Concavity of $2p(1-p)$ in \eqref{eq:markpairs}, with rounding errors $o(1)$ for these fixed moduli, gives $E_{q_m,M}\ge \gamma-o(1)$ for all $m$ at the same cut. On $t\ge0$ set $\psi_{m,M}(t)=Z_M(q_m\lfloor Mt/q_m\rfloor)/M$. Its integral over $[0,1]$ is $E_{q_m,M}/2+o(1)$ by summing grid cells. For $\Delta=q_m\lfloor Mt/q_m\rfloor$ we have the exact identity $\psi_{m+1,M}(2t)=Z_M(2\Delta)/M$. Extract simultaneous weak-* limits $z_m$ on $[0,2]$; all vanish above $1$ since the support extends at most $q_m/M$ beyond $1$. The row bounds give $z_m\le b_h$ and $z_m(t)+2z_{m+1}(2t)\le v_h(t)/2$ almost everywhere on $[0,1]$. Indeed the sampled arguments differ from $t$ by at most $q_m/M$, and the finitely many domain boundaries have measure zero. Dilation passes to weak-* limits by substitution against an $L^1$ test function. Average $z_0,\ldots,z_K$ to obtain $g_K$. Its integral is at least $\gamma/2$ and $g_K\le b_h$. Summing the coupled inequalities gives \[ g_K(t)+2g_K(2t)\le v_h(t)/2+ \frac{2(z_0(2t)-z_{K+1}(2t))}{K+1}\le v_h(t)/2+\frac2{K+1}. \] Now let $K$ tend to infinity. A weak-* subsequential limit of $g_K$ satisfies \eqref{eq:averaged-profile}; the bounded sequences admit subsequences since $L^1$ on the interval is separable. \end{proof} For $s\in(1/2,1]$, the inequalities for $\psi$ bound both a single term $2^{-j}\psi(s/2^j)$ and the sum of two adjacent terms. Appendix~\ref{app:joint-density} covers the first twenty terms by these bounds, integrates over $s$, and accounts for the tail. Its two finite certificates give \begin{equation}\label{eq:profile-prices} \begin{array}{c|cc} h & 2/41 & 1/18 \\ \hline \text{upper bound on }2\int_0^1 \psi & 0.463062 & 0.493890 . \end{array} \end{equation} Thus it suffices to construct, for each fixed $K$, a cut at modulus $2^{K+1}Q$ that exceeds the corresponding entry. The next two proofs construct these cuts. The verifier also checks both strict comparisons with $K=4095$, allowing the finite averaging error $2/(K+1)=1/2048$ derived in Appendix~\ref{app:joint-density}. \subsection{The upper-density cut} \begin{proposition}\label{prop:joint-alpha} Every permutable set has upper density at most $39/41$. \end{proposition} \begin{proof} Suppose $h=1-\alpha\le2/41$. Fix an arbitrary $K$, and put $q_*=2^{K+1}Q$. Apply the extremal-window observation of Proposition~\ref{prop:numeric} with modulus $12q_*$. Thus the hole fraction in each fixed class is $h+o(1)$ in the chosen initial segments $[1,X]$. Old anchors in all required classes can be fixed before choosing these intervals. Measure hole mass in each class in units of $X$ divided by its modulus. The total mass is $h+o(1)$, and any fixed initial segment $[1,sX]$ has mass at least $sh-o(1)$ by the definition of $\alpha$ on the trace. Proposition~\ref{prop:numeric} gives lower bounds $1/99-o(1)$ on $[X/3,X]$ and $3/172-o(1)$ on $[X/4,X]$. Subtracting the indicated disjoint portions of the total mass gives the three upper bounds needed for the companion points, up to $o(1)$. \[ \begin{array}{c|c|l} \text{Companion interval} & \text{Portions subtracted} & \text{Hole mass bound} \\ \hline [1,X/3] & [X/3,X] & \mu_0=h-1/99 \\[2pt] [X/6,X/4] & [1,X/6],\ [X/4,X] & \mu_1=5h/6-3/172 \\[2pt] [X/3,X/2] & [1,X/3] & \mu_2=2h/3 \end{array} \] Set $a=16/41$ and $b=25/41=1-a$. Take the earlier of the times when a class modulo $3q_*$ has visited an $a$ fraction of its opportunities in $[1,X/2]$, or a $b$ fraction in $[1,X]$. At this cut every class modulo $q_*$ has visited fraction at most $b+o(1)$. If the half-window threshold fires first, a winning class $r$ modulo $3q_*$ supplies at least $aX/(6q_*)-O(1)$ sources. For each desired class $t$ modulo $6q_*$ take an anchor congruent to $2r-t$ there. Reflections of the sources give a visited-or-missing fraction at least $a-o(1)$ in every such class, hence in every class modulo $q_*$. Suppose the full-window threshold fires first, in class $r$ modulo $3q_*$. Measure source counts in units of $X/(3q_*)$. The visited source mass is $b+o(1)$; at most $a/2+o(1)$ comes from the lower half and at most $1/4+o(1)$ from the final quarter. Hence the visited source mass in $[X/2,3X/4]$ is at least $b-a/2-1/4-o(1)$. Write a source as $y=f+3d$, with a fixed old anchor $f$ in the appropriate class. The first image is $f+2d=(2y+f)/3$, and requires the companion $f+d=(y+2f)/3$. For a target class $t$ modulo $2q_*$ choose $f\equiv3t-2r\pmod{6q_*}$. The targets are injective in that class and lie in the lower two thirds; the companions lie in one class modulo $q_*$ in $[1,X/3]+O(f)$. Combining the two target lifts gives a visited-or-missing fraction at least $(2/3)b-2\mu_0-o(1)$ in each class modulo $q_*$. For the second image use only the middle-quarter sources and target $f+4d=(4y-f)/3$. Choose $f\equiv4r-3t\pmod{12q_*}$ for $t$ modulo $4q_*$. The two required companions $f+d,f+2d$ lie in single classes modulo $q_*,2q_*$ in $[X/6,X/4]+O(f)$ and $[X/3,X/2]+O(f)$, respectively. Combining four target lifts gives a further fraction $(4/3)(b-a/2-1/4)-4\mu_1-2\mu_2-o(1)$ in each class modulo $q_*$. For each fixed set the old anchors precede all but finitely many entries. Our choice of extremal windows absorbs those exceptions into $o(X)$. Alternation of adjacent comparisons on the first four terms of $f,f+d,f+2d,f+3d,f+4d$, or on all five for the second target, forces each retained target to precede its source when its stated companions are present. The two target ranges occupy disjoint lower two-thirds and upper-third intervals, apart from $o(X)$ boundary points. Their combined visited-or-missing contribution is therefore at least \[ 2b-\frac23a-\frac13-\mathcal L-o(1), \qquad \mathcal L=2\mu_0+4\mu_1+2\mu_2 =\frac{20}{3}h-\frac2{99}-\frac3{43}. \] The endpoint values are \[ \mathcal L\le\frac{41057}{174537},\qquad 2b-\frac23a-\frac13-\frac{41057}{174537}-a =\frac{94}{174537}>5\cdot10^{-4}. \] Thus this stopping case also gives visited-or-missing fraction at least $a-o(1)$ in every class. Give the holes independent fair marks. In each class modulo $q_*$ the expected marked fraction satisfies $a-h/2-o(1)\le p_j\le b+h/2+o(1)$. Since $h\le2/41$, \eqref{eq:markpairs} gives \[ \frac{15}{41}-o(1)\le p_j\le\frac{26}{41}+o(1), \qquad E_{q_*,X}\ge\frac{780}{1681}-o(1). \] For every fixed $K$ these cuts use at most $(2/41)X+o(X)$ holes. Lemma~\ref{lem:modulus-average} gives $2\int\psi\ge780/1681$, exceeding the upper bound $0.463062$ in \eqref{eq:profile-prices} by more than $9.4\cdot10^{-4}$. \end{proof} \subsection{The lower-density cut and its mirror envelope} \begin{proposition}\label{prop:joint-beta} For every permutable set $S$ and every fixed $c>0$, infinitely many $X=\lfloor c2^k\rfloor$ satisfy \[ |[1,X]\setminus S|>X/18. \] In particular $\beta\le17/18$. \end{proposition} \begin{proof} Put \[ \varepsilon=\frac1{18},\qquad h_*=\frac2{41},\qquad \kappa=\frac{21085}{18204}. \] The value of $h_*$ follows from Proposition~\ref{prop:joint-alpha}. Suppose that $H(X_k)\le\varepsilon X_k$ for all sufficiently large $k$, where $H(X)=|[1,X]\setminus S|$ and $X_k=\lfloor c2^k\rfloor$. Fix $K$, put $q_*=2^{K+1}Q$, and fix an old anchor in every nonempty class modulo $2q_*$. Let $T_k$ be the first time a class modulo $q_*$ has visited half its positions in $[1,X_k]$, rounding up. The total hole budget makes this threshold attainable. Since $T_k\to\infty$, infinitely many $k$ satisfy $T_{k-1}\le T_k$. At time $T_k$ write $a_j,h_j$ for the visited and missing fractions in class $j$ modulo $q_*$. Let $r$ attain the threshold at $T_{k-1}$ and put $\tau(j)=2r-j\pmod{q_*}$. For either lift $t$ of $j$ modulo $2q_*$, an anchor $f\equiv2r-t$ sends the visited sources $y$ of the preceding cut into class $t$ by $y\mapsto2y-f$. Their images in $[1,X_k]$ are visited or missing, apart from $O_{S,q_*}(1)$ anchor and endpoint exceptions. Each available lift thus contributes at least $X_k/(4q_*)-O_{S,q_*}(1)$ images. If $e_j$ counts the empty children of $\tau(j)$, then \[ 0\le a_j\le\min(1/2,1-h_j)+o(1),\qquad a_j+h_j\ge1/2-e_j/4-o(1). \] Since $\tau$ is an involution, $e_{\tau(j)}$ counts the empty children of $j$. Each has hole fraction one, and every other child, pulled back to its indices, has hole fraction at least $h_*-o(1)$ by Proposition~\ref{prop:joint-alpha}. Hence \[ h_j\ge h_*+(1-h_*)e_{\tau(j)}/2-o(1). \] Define $F_m(x)=\min(1-x,x+m/2)^2$. We use the inequality \begin{equation}\label{eq:new-mirror-envelope} F_m(x)+F_n(y) \le2h_*^2+\kappa(x+y-2h_*) \end{equation} whenever \[ x\ge h_*+(1-h_*)n/2,\quad y\ge h_*+(1-h_*)m/2,\quad x,y\le1. \] To verify it, on each side of its bend $(2-m)/4$ the function $F_m$ is convex. After subtracting the affine right side of \eqref{eq:new-mirror-envelope}, it suffices to check endpoints and bends in both variables. The largest incremental slopes for the six unordered types $(m,n)=(0,0),(0,1),(0,2),(1,1),(1,2),(2,2)$ are \[ \frac{45}{82},\quad\frac{21085}{18204},\quad \frac{1513}{1599},\quad\frac{1505}{3198},\quad \frac{1489}{9594},\quad-\frac4{1599}, \] respectively. When the denominator vanishes, both sides of the inequality agree. There are $24$ endpoint pairs to check, all rational; the maximum slope is attained at $(m,n,x,y)=(0,1,43/82,1/4)$. For $p_j=a_j+h_j/2$ the cut gives $|2p_j-1|^2\le F_{e_j}(h_j)+o(1)$. Since each $F_m$ is $2$-Lipschitz on $[0,1]$, \eqref{eq:new-mirror-envelope} applies to $h_j,h_{\tau(j)}$ up to $o(1)$. Averaging over $j$ and using the total hole budget gives \[ E_{q_*,X_k}\ge \frac{1-h_*^2-\kappa(\varepsilon-h_*)}2-o(1) =\frac{13297159}{26869104}-o(1). \] This is available along arbitrarily large windows for every fixed $K$. Apply Lemma~\ref{lem:modulus-average} with budget $1/18$. The cut lower bound exceeds $0.493890$ by more than $9.9\cdot10^{-4}$, contradicting \eqref{eq:profile-prices}. This proves the doubling-sequence assertion. Together with Proposition~\ref{prop:joint-alpha} and the constructions in Section~\ref{sec:third}, it completes Theorem~\ref{th:densities}. \end{proof} \paragraph{Open questions.} Is $\beta=1/2$, the density attained by each principal set in Theorem~\ref{th:construction}? The exact value of $\alpha$ is also open. Proposition~\ref{prop:one-split} gives the sharp order for grids with at most one split per layer. Can a different partition into three permutable sets improve all three counting errors in Theorem~\ref{th:construction} to $o(X/\log X)$? The original two-set question asks whether the exceptional set can be eliminated altogether. \appendix \section{Construction and separation of the phase boundaries}\label{app:grid} We prove Lemma~\ref{lem:grid}. In round $r$ choose both new cuts from the grid with denominator $D_r=2^{16r+32}$. We insert the cuts one at a time, maintaining that $\mathcal D(A)$ has no nonconstant three-term progression. Initially $A=\{1\}$ has this property, since the sum of two distinct powers of two is never a power of two. Write $D=D_r=2^b$. All earlier grids are contained in $D^{-1}\Z$. At the first cut of a parent interval of length $T$ use the interval of radius $\eps_rT$ about its first trisection point, and at the second use the interval of this radius about its second trisection point. Here is a bound for the number of forbidden choices when inserting one new phase $t$. Given a progression of positive ray points, normalize its largest term by a common power of two to put it in $[1,2)$. The three terms in increasing order then have the form \[ 2^{-i}\alpha_0,\quad 2^{-j}\beta_0,\quad \gamma_0, \qquad \alpha_0,\beta_0,\gamma_0\in A\cup\{t\}. \] The middle term exceeds half the largest, hence $j\in\{0,1\}$. The smallest term equals $2^{1-j}\beta_0-\gamma_0$, a positive multiple of $1/D$. This implies $0\le i\le b$. For fixed indices and symbols with at least one occurrence of $t$, the progression equation is linear in $t$. With one occurrence its coefficient is nonzero. With two, the one old symbol contributes a nonzero constant. With three, the equation reduces to $2^{-i}+1=2^{1-j}$, which forces $i=j=0$ and all terms equal. Thus each relevant choice forbids at most one phase. If $|A|=m_0$, at most \[ 2(b+1)\big((m_0+1)^3-m_0^3\big)\le 14(b+1)m_0^2 \] phases are forbidden. A child has length between $(1/3-2\eps_r)T$ and $(1/3+2\eps_r)T$. Multiplying these bounds down the tree shows that every depth-$r$ interval has length between $3^{-r}/2$ and $2\cdot3^{-r}$, since $\prod_r(1-6\eps_r)\ge1-\sum_r6\eps_r>1/2$ and $\prod_r(1+6\eps_r)\le\exp(\sum_r6\eps_r)<2$. Hence a parent in round $r$ has $T\ge3^{1-r}/2$. The number of denominator-$D$ grid points available in either interval of choices is at least $2D\eps_r T-1$, which exceeds $14(16r+33)9^r$ for $r\ge1$, since the exponential term in the lower bound divided by $9^r$ is $3\cdot2^{22}(2^{16}/3^5)^r$. Since $m_0\le3^r$ during the round, both cuts can be made. One can, for instance, take the least available grid point each time. For the prefix integral in Lemma~\ref{lem:grid}, let $V_r$ be the sum of absolute differences of adjacent leaf lengths after round $r$. Within a parent of length $T$, the three new lengths differ from $T/3$ by at most $\eps_rT,2\eps_rT,\eps_rT$, respectively. Their two internal differences contribute at most $6\eps_rT$. At an old junction of lengths $T,T'$ the new difference is at most $|T-T'|/3+\eps_r(T+T')$. Summing gives \[ V_r\le V_{r-1}/3+8\eps_r, \qquad V_0=0, \] so $V_r=O(3^{-r})$. During round $r$ the already refined prefix has variation at most $V_r$, the unsplit suffix at most $V_{r-1}$, and their junction costs $O(3^{-r})$. There are between $3^{r-1}$ and $3^r$ leaves. Pairing adjacent full leaves of opposite sign in any prefix and allowing up to two incomplete or unpaired contributions bounds the integral by the variation plus twice the largest length. This proves part~(1). Finally take $\eta=1/(10^4D^2)$ and normalize $W\in[1,2)$ in part~(2). If $|U+W-2V|\le\eta W$, then $V\ge W/4$, so $W-2V$ is a multiple of $1/(2D)$. For $U<1/(4D)$ this forces $W=2V$, and then $U\le\eta W