% Build with latexmk -pdf paper.tex. % Source: sections/preamble.tex % Article with an explicit coordinate-selection input. Build with latexmk -pdf paper.tex. % Editorial convention: a section devoted to a proof names the result % in its heading and explicitly announces that proof in its first sentence. % Repeat established mathematical names whenever needed for a clear referent. % Do not avoid repetition by using synonyms or ambiguous backward references. % Introduce a named notion only when repeated use makes the name useful. % State one-off conditions directly; do not add names for proof bookkeeping. % State global conventions once, then use them without re-announcing them. \documentclass[11pt]{article} \usepackage[margin=1in]{geometry} \usepackage[T1]{fontenc} \usepackage{lmodern,amsmath,amssymb,amsthm,mathtools,mathrsfs} \usepackage{booktabs,array,longtable,enumitem,microtype,xcolor,caption,needspace} \usepackage{tikz} \usetikzlibrary{arrows.meta,positioning,calc} \usepackage[colorlinks=true,linkcolor=blue!45!black,citecolor=blue!45!black, urlcolor=blue!45!black,bookmarksnumbered=true,pdfstartview=FitH]{hyperref} \usepackage{bookmark} % Terminology: define each notion once and mark every use with \term. % Plurals and capitalization keep the same key. Do not introduce new names % for an existing notion. Each complete identifying phrase is one link: % never put a link only on a word inside that phrase, and never nest term links. % Keep links on complete retained terms; ordinary descriptions are not terms. \usepackage[electronic]{knowledge} \knowledgeconfigure{notion} \knowledgestyle{notion}{color=blue!45!black} \knowledgestyle{intro notion}{emphasize,color=black} \DeclareRobustCommand{\term}[2]{\kl[#1]{#2}} \DeclareRobustCommand{\termdef}[2]{\AP\intro[#1]{#2}\label{notion:#1}} % Link the complete result name and number; \ref* avoids nested links. % The link color is the same blue!45!black used by knowledge notions. \DeclareRobustCommand{\resultref}[2]{% \hyperref[#2]{\textcolor{blue!45!black}{#1~\ref*{#2}}}% } \pdfstringdefDisableCommands{% \def\term#1#2{#2}% \def\termdef#1#2{#2}% \def\resultref#1#2{#1 \ref{#2}}% } \knowledge{signature}{notion} \knowledge{arity}{notion} \knowledge{structure}{notion} \knowledge{homomorphism}{notion} \knowledge{template}{notion} \knowledge{instance}{notion} \knowledge{constraint}{notion} \knowledge{scope}{notion} \knowledge{local-solution}{notion} \knowledge{assignment}{notion} \knowledge{global-solution}{notion} \knowledge{list}{notion} \knowledge{list-bound}{notion} \knowledge{decision-reduction}{notion} \knowledge{logspace}{notion} \knowledge{search-reduction}{notion} \knowledge{decoder}{notion} \knowledge{complete-graph}{notion} \knowledge{minion}{notion} \knowledge{operation}{notion} \knowledge{coordinate-set}{notion} \knowledge{coordinate-map}{notion} \knowledge{minor}{notion} \knowledge{surjective-minor}{notion} \knowledge{function-minion}{notion} \knowledge{power}{notion} \knowledge{polymorphism}{notion} \knowledge{polymorphism-minion}{notion} \knowledge{projection}{notion} \knowledge{projection-minion}{notion} \knowledge{essential-coordinate}{notion} \knowledge{dummy-coordinate}{notion} \knowledge{minor-chain}{notion} \knowledge{subchain}{notion} \knowledge{face}{notion} \knowledge{transport}{notion} \knowledge{surjective-chain}{notion} \knowledge{set-chain}{notion} \knowledge{minion-homomorphism}{notion} \knowledge{precomposition}{notion} \knowledge{postcomposition}{notion} \knowledge{exact-homomorphism}{notion} \knowledge{d-homomorphism}{notion} \knowledge{bk-homomorphism}{notion} \knowledge{compatible-pair}{notion} \knowledge{partial-assignment-system}{notion} \knowledge{variable-set-graph}{notion} \knowledge{edge-coloring}{notion} \knowledge{edge-pivot}{notion} \knowledge{rank-question}{notion} \knowledge{injective-list-solution}{notion} \knowledge{m-solution}{notion} \knowledge{coordinate-marks}{notion} \knowledge{injective-minion-homomorphism}{notion} \knowledge{injective-exact-homomorphism}{notion} \knowledge{injective-d-homomorphism}{notion} \knowledge{injective-bk}{notion} \knowledge{injective-variant}{notion} \knowledge{injective-chain}{notion} \knowledge{injective-chain-homomorphism}{notion} \knowledge{injective-chain-consistency}{notion} \knowledge{injective-babypcp}{notion} \knowledge{unate-operation}{notion} \knowledge{increasing-operation}{notion} \knowledge{linear-threshold-operation}{notion} \knowledge{symmetric-threshold}{notion} \knowledge{block-symmetric-operation}{notion} \knowledge{direction-certificate}{notion} \knowledge{substitute}{notion} \knowledge{injective-layered-choice}{notion} \knowledge{consistency-pruning}{notion} \knowledge{consistency-reduction}{notion} \knowledge{minion-level}{notion} \knowledge{chain-homomorphism}{notion} \knowledge{face-list-intersection}{notion} \knowledge{chain-condition}{notion} \knowledge{chain-consistency}{notion} \knowledge{chain-list}{notion} \knowledge{unpruned-construction}{notion} \knowledge{separated-subsets}{notion} \knowledge{matching-faces}{notion} \knowledge{selected-face}{notion} \knowledge{face-occurrence}{notion} \knowledge{coordinate-projection}{notion} \knowledge{gadget-reduction}{notion} \knowledge{union-composition}{notion} \knowledge{self-dual-function}{notion} \knowledge{threshold-minion}{notion} \knowledge{datalog-program}{notion} \knowledge{datalog-interpretation}{notion} \knowledge{datalog-unions}{notion} \knowledge{sort}{notion} \knowledge{surjective-minor-homomorphism}{notion} \knowledge{support-construction}{notion} \knowledge{support}{notion} \knowledge{surjective-chain-condition}{notion} \knowledge{arc-consistency}{notion} \knowledge{surjective-bk}{notion} \knowledge{surjective-chain-homomorphism}{notion} \knowledge{approximate-coloring}{notion} \knowledge{list-assignment}{notion} \knowledge{tight-cycle}{notion} \knowledge{coloring-template}{notion} \knowledge{grid-order}{notion} \knowledge{row-depth}{notion} \knowledge{nearby-color-predictor}{notion} \knowledge{prediction-witness}{notion} \knowledge{parameter-star}{notion} \knowledge{star-arm}{notion} \knowledge{star-product-cell}{notion} \knowledge{arm-completion}{notion} \knowledge{rotation-equivariance}{notion} \knowledge{path-box}{notion} \knowledge{vertex-opening}{notion} \knowledge{pivotal-coordinate}{notion} \setlength{\emergencystretch}{2em} \setcounter{tocdepth}{2} \setlist{itemsep=2pt,topsep=4pt} \newtheorem{theorem}{Theorem}[section] \newtheorem{proposition}[theorem]{Proposition} \newtheorem{lemma}[theorem]{Lemma} \newtheorem*{claim}{Claim} \newtheorem{corollary}[theorem]{Corollary} \theoremstyle{definition} \newtheorem{definition}[theorem]{Definition} \newtheorem*{basicdefinition}{Definition} \newtheorem{example}[theorem]{Example} \theoremstyle{remark} \newtheorem{remark}[theorem]{Remark} \newcommand{\M}{\mathscr M} \newcommand{\N}{\mathscr N} \newcommand{\PP}{\mathscr P} % A calligraphic alphabet with lowercase letters for the Lipschitz minion. \DeclareMathAlphabet{\minioncal}{U}{dutchcal}{m}{n} \newcommand{\LipMin}{\minioncal{Lipshitz}} \newcommand{\HH}{\mathscr H} \newcommand{\QQ}{\mathscr Q} \newcommand{\Pol}{\operatorname{Pol}} \newcommand{\PCSP}{\operatorname{PCSP}} \newcommand{\CSP}{\operatorname{CSP}} \newcommand{\BK}{\operatorname{BK}} \newcommand{\Ch}{\operatorname{Ch}} \newcommand{\ICh}{\Ch^{\mathrm{inj}}} \newcommand{\sBK}{\BK^{\mathrm{surj}}} \newcommand{\sCh}{\Ch^{\mathrm{surj}}} \newcommand{\Sol}{\operatorname{Sol}} \newcommand{\Hom}{\operatorname{Hom}} \newenvironment{contributors} {\renewcommand{\abstractname}{Contributors}\abstract} {\endabstract} \newenvironment{aidisclosure} {\renewcommand{\abstractname}{AI disclosure}\abstract} {\endabstract} \newenvironment{parallelwork} {\renewcommand{\abstractname}{Parallel work}\abstract} {\endabstract} \title{Approximate Coloring Is a Promise CSP} \author{} %\author{\normalsize } \date{} \hypersetup{ pdftitle={Approximate Coloring Is a Promise CSP}, pdfauthor={} } % Notation for tight cycles and the applications in Section 2. \newcommand{\NAE}{\operatorname{NAE}} \newcommand{\CYCLE}{\operatorname{CYCLE}} \newcommand{\CLOCK}{\operatorname{CLOCK}} \newcommand{\LO}{\operatorname{LO}} \newcommand{\cyc}[1]{\vec C_{#1}} \newcommand{\al}{\operatorname{al}} \newcommand{\reach}{\rightsquigarrow} \newcommand{\Z}{\mathbb Z} % End of sections/preamble.tex \begin{document} % Source: sections/frontmatter.tex \maketitle \begin{abstract} \noindent The contribution contains: \begin{enumerate}[leftmargin=*,topsep=.4\baselineskip,itemsep=.25\baselineskip,parsep=0pt] \item A direct reduction from 3-SAT to approximate coloring without using the PCP theorem. For each fixed $n\geq3$, the task is to find an $n$-coloring of a graph promised to be $3$-colorable. \item A new notion of minion homomorphism that explains this reduction. The polymorphism minions of 3-SAT and approximate coloring admit such maps in both directions. Soundness follows from an extension of the Barto--Kozik baby PCP theorem. \item A combination of existing and new reductions that prove a dichotomy for promise CSPs on pairs of finite digraphs without sources or sinks. \item An unconditional dichotomy for finite Boolean promise CSPs whose polymorphisms are unate. The tractable cases admit block-symmetric polymorphisms on two arbitrarily large blocks. The hardness proof uses an injective extension of the new baby PCP theorem. \item NP-hardness for seven families of promise CSPs studied in the literature. \end{enumerate} \end{abstract} \begin{contributors} \noindent Joshua Brakensiek (UC Berkeley), Venkatesan Guruswami (UC Berkeley), Marcin Kozik (Jagiellonian University), and Xuandi Ren (UC Berkeley) \end{contributors} \begin{aidisclosure} \noindent The vast majority of the proofs in this paper were devised by ChatGPT-6 Astra or in close collaboration with it. We carefully (and painfully) simplified and verified some of these proofs before presenting them here. We verified others without simplifying them. Some still await both verification and simplification. Future versions of this paper will clarify the presentation. \end{aidisclosure} \begin{parallelwork} \noindent In parallel work, Yuwen Zhou~\cite[Corollary~1.2]{zhou-circle} proved that for every fixed odd cycle $C$ and fixed $0<\delta<1/3$, it is NP-hard to distinguish graphs mapping to $C$ from graphs with independence ratio below $\delta$. \end{parallelwork} % End of sections/frontmatter.tex % Source: sections/introduction.tex \section*{Introduction} For a fixed integer $n\geq3$, \termdef{approximate-coloring}{approximate graph coloring} asks for an $n$-coloring of a graph promised to be $3$-colorable. We give a direct \term{logspace}{LOGSPACE} reduction from 3-SAT to this problem, together with a \term{logspace}{LOGSPACE} \term{decoder}{search decoder}. Thus a satisfying assignment produces a $3$-coloring of the output graph, and any $n$-coloring of that graph can be decoded into a satisfying assignment. The parameters of the reduction depend on $n$, which remains fixed. Fei, Minzer and Wang proved NP-hardness of this decision problem for every fixed $n\ge3$~\cite[Corollary~1.7]{fmw}. The starting point is the coordinate-\term{list}{list} argument in OpenAI's proof of hardness for finding large independent sets in three-colorable graphs~\cite{paper}. We seek an algebraic condition that captures the part of that argument needed for coloring and supplies a general reduction theorem for promise \term{constraint}{constraint} satisfaction problems. The conclusion here is the reduction to $\PCSP(K_3,K_n)$; we do not recover the stronger independent-set density conclusion of~\cite{paper}. Brakensiek and Guruswami conjectured decision hardness for every pair of finite loopless undirected graphs $G\to H$ with $G$ nonbipartite% ~\cite[Conjecture~1.2]{bg-pcsp}. A \term{chain-homomorphism}{chain homomorphism} assigns a bounded list of operations to each short \term{minor-chain}{minor chain}. On a chain with one more position, the lists of its \term{face}{faces} have a common value after \term{transport}{transport} to the last coordinate set. The graph-coloring application satisfies this condition on every chain. For Boolean applications we also assign bounded \term{coordinate-marks}{coordinate marks} to each operation. We require the same intersection on every \term{injective-chain}{injective chain}, where successive maps preserve distinctness on all marks accumulated so far. This gives an \term{injective-chain-homomorphism}{injective chain homomorphism}. The reduction evaluates the face lists on local solutions. Its soundness requires a global solution even when some restrictions identify marked local assignments. Two distinct assignments can be kept distinct by retaining one variable on which they differ. The difficulty is that the upper scope determines these variables, whereas the lower tests must already fit inside that scope. At each lower level of our \term{injective-babypcp}{injective baby PCP theorem}, an \term{edge-coloring}{edge-coloring} records which lists of tuples agree on a small set of variables. If one level has no \term{edge-pivot}{pivot}, ordinary baby PCP recovers a solution on that level. Otherwise we fix one \term{edge-pivot}{pivot} per level. Sampling the prospective lower scopes in advance lets us retain the variables needed for injectivity while avoiding all earlier lists. When lists depend on whole subchains, the same matrix argument is applied at the splits of a binary tree. Ramsey's theorem then forces a pair of matching faces. The instance map uses \term{logspace}{logspace}. Reconstruction is polynomial-time in general and uses logspace in the ordinary case. Our hardness source pairs a \term{tight-cycle}{tight cycle} with the relation of nonconstant $p$-tuples of colors. The continuous proof represents each \term{polymorphism}{polymorphism} by an equivariant Lipschitz map from a power of the circle to a sphere. For graphs, taking a minor changes a value by at most a right angle. For odd primes, it preserves the minimizing phases in each color column. These conditions keep the convex hull of the row values on a common input away from zero. To choose a \term{chain-list}{face list}, turn one terminal coordinate by $1/p$ and measure the mean change in the row values. Only boundedly many coordinates have appreciable effect. If the face lists had empty intersection, assign every terminal coordinate to a face missing it. The cyclic Borsuk--Ulam argument forces one such block to have appreciable effect, and a Lipschitz estimate then finds a selected coordinate in that block. The combinatorial proof works directly with a finite clock and uses cyclic covering to force a color on every rotation of a cell. The source maps to a cyclic relation exactly when the corresponding modular equations on ordered faces are inconsistent. For graphs these are the bipartiteness equations. This gives the approximate graph-coloring dichotomy, the smooth-digraph dichotomy through auxiliary constructions, and seven hypergraph-coloring applications. In each hypergraph application, a short periodic word supplies the required tight-cycle homomorphism. For Boolean templates whose polymorphisms are \term{unate-operation}{unate}, the tractable case has \term{block-symmetric-operation}{block-symmetric polymorphisms} on blocks of sizes $t,t+1$ for every $t$. A missing width gives a bounded \term{direction-certificate}{direction certificate} at every polymorphism. An \term{injective-chain}{injective chain} transports these certificates and allows the increasing operations to supply the tight-cycle obstruction. This gives a PCP-free hardness proof covering both monotone polymorphisms and signed linear thresholds. Section~\ref{sec:reductions} places the algebraic condition among existing reduction criteria and proves the reduction theorem in Section~\ref{sec:chain}. Section~\ref{sec:coloring} states the tight-cycle source, proves the sandwich characterization, and derives the applications. Appendix~\ref{app:tight-cycle} proves the source theorem. The following appendices contain the auxiliary hypergraph results, the smooth-digraph constructions, and the comparison, composition, and separation results. % End of sections/introduction.tex % Source: sections/preliminaries.tex \section*{Preliminaries} We write $[m]=\{1,\ldots,m\}$ and $\mathcal P_k(X)=\{U\subseteq X:|U|=k\}$. A \termdef{signature}{relational signature} is a collection of relation symbols, each with a specified \termdef{arity}{arity} (number of arguments). All \term{signature}{relational signatures} in this paper are finite, and all relation symbols have positive \term{arity}{arity}. Unless stated otherwise, domains are finite and nonempty. For a tuple $x$ indexed by $I$ and $J\subseteq I$, write $x|_J$ for restriction to $J$. For a set $S$ of such tuples, its \termdef{coordinate-projection}{coordinate projection} onto $J$ is $S|_J=\{x|_J:x\in S\}$. \begin{basicdefinition}[\term{structure}{Relational structures} and promise problems] A \termdef{structure}{relational structure} $\mathbf A$ consists of a set $A$ and a relation $R^{\mathbf A}\subseteq A^r$ for each $r$-ary relation symbol $R$. A \termdef{homomorphism}{homomorphism} $u:\mathbf A\to\mathbf B$ is a map $u:A\to B$ that sends every tuple in $R^{\mathbf A}$ to a tuple in $R^{\mathbf B}$, for every $R$. We write $\mathbf A\to\mathbf B$ when such a map exists. A \termdef{template}{promise template} is a pair $(\mathbf A,\mathbf B)$ of \term{structure}{relational structures} in the same \term{signature}{relational signature} with $\mathbf A\to\mathbf B$. An input to $\PCSP(\mathbf A,\mathbf B)$ is a finite \term{structure}{relational structure} $\mathbf X$ in the same \term{signature}{signature}, represented by its domain and lists of relation tuples; the template is fixed. The decision problem asks one to distinguish $\mathbf X\to\mathbf A$ from $\mathbf X\not\to\mathbf B$, with no requirement on inputs satisfying neither condition. The search problem asks for a \term{homomorphism}{homomorphism} $\mathbf X\to\mathbf B$ under the promise $\mathbf X\to\mathbf A$. We write $\CSP(\mathbf A)=\PCSP(\mathbf A,\mathbf A)$. \end{basicdefinition} We identify an input \term{structure}{relational structure} with a \termdef{instance}{instance}: its elements are variables, and a tuple in one of its relations is a \termdef{constraint}{constraint}. The \termdef{scope}{constraint scope} of a \term{constraint}{constraint} is the set of variables occurring in its tuple. For an \term{instance}{instance} $\Phi$ over a value set $B$, an \termdef{assignment}{assignment} on $U$ is a map $U\to B$. It is a \termdef{local-solution}{local solution} if it satisfies every \term{constraint}{constraint} whose \term{scope}{constraint scope} is contained in $U$; a \termdef{global-solution}{global solution} is a solution on all variables. In particular, a \term{local-solution}{local $\mathbf A$-solution} on $U\subseteq X$ is a \term{homomorphism}{homomorphism} $\mathbf X[U]\to\mathbf A$, where the induced \term{structure}{relational structure} $\mathbf X[U]$ retains exactly the relation tuples contained in $U$. A \termdef{list}{list} is a finite set of candidate \term{operation}{operations} or \term{assignment}{assignments}; it is unordered, and its \termdef{list-bound}{list bound} is an upper bound on its cardinality. A \termdef{list-assignment}{list assignment} is a rule assigning a \term{list}{list} to each \term{operation}{operation} or \term{minor-chain}{minor chain} in its domain. When enumerating a \term{list}{list}, we specify any repeated entries or extra padding symbols explicitly. A polynomial-time \termdef{decision-reduction}{decision reduction} from $\PCSP(\mathbf A,\mathbf B)$ to $\PCSP(\mathbf C,\mathbf D)$ is a polynomial-time map $T$ on \term{instance}{instances} such that \[ \mathbf X\to\mathbf A\ \Longrightarrow\ T(\mathbf X)\to\mathbf C, \qquad T(\mathbf X)\to\mathbf D\ \Longrightarrow\ \mathbf X\to\mathbf B. \] A \termdef{logspace}{LOGSPACE} \term{decision-reduction}{decision reduction} is such an \term{instance}{instance} map computable by a deterministic \term{logspace}{logspace} transducer: on an input of length $N$, its work tapes use $O(\log N)$ workspace, with read-only input and write-only output. A \termdef{search-reduction}{search reduction} additionally provides a polynomial-time procedure that constructs $\mathbf X\to\mathbf B$ from a given $T(\mathbf X)\to\mathbf D$. This procedure is the \termdef{decoder}{search decoder}. The \termdef{complete-graph}{complete graph} $K_c$ has vertex set $[c]$ and edge relation $\{(i,j):i\ne j\}$. Thus a \term{homomorphism}{homomorphism} to $K_c$ is a proper $c$-coloring. \begin{basicdefinition}[\term{minion}{Minions}] A \termdef{minion}{minion} $\M$ consists of sets $\M(I)$, indexed by finite nonempty sets $I$ and not all empty, together with maps $f\mapsto f^\pi$ from $\M(I)$ to $\M(J)$ for every map $\pi:I\to J$, satisfying \[ f^{\mathrm{id}_I}=f,\qquad (f^\pi)^\rho=f^{\rho\circ\pi}. \] An element of $\M(I)$ is called an $I$-ary \termdef{operation}{operation}. Its \termdef{coordinate-set}{coordinate set} is $I$, its \term{arity}{arity} is $|I|$, and a map $\pi:I\to J$ is a \termdef{coordinate-map}{coordinate map}. The \term{operation}{operation} $f^\pi$ is its \termdef{minor}{minor} along $\pi$. A \termdef{surjective-minor}{surjective minor} is one whose \term{coordinate-map}{coordinate map} is surjective. For functions $f:A^I\to B$, the \term{minor}{minor} is defined by $f^\pi(x)=f(x\circ\pi)$ for $x\in A^J$. A \termdef{function-minion}{function minion} is a nonempty family of such functions closed under all \term{minor}{minors}. Its \term{operation}{operations} are not required to be closed under composition. \end{basicdefinition} The \termdef{power}{power} $\mathbf A^I$ has domain $A^I$ and coordinatewise relations. A \termdef{polymorphism}{polymorphism} of $(\mathbf A,\mathbf B)$ with \term{coordinate-set}{coordinate set} $I$ is a \term{homomorphism}{homomorphism} $\mathbf A^I\to\mathbf B$. The \termdef{polymorphism-minion}{polymorphism minion} of a \term{template}{promise template} is \[ \Pol(\mathbf A,\mathbf B)(I) =\{f:\mathbf A^I\to\mathbf B:f\text{ is a \term{homomorphism}{homomorphism}}\}. \] We abbreviate $\Pol(\mathbf A,\mathbf A)$ to $\Pol(\mathbf A)$. A \termdef{projection}{projection} is the function $e_i(x)=x_i$. The \termdef{projection-minion}{projection minion} $\PP$ has one element $e_i$ for each $i\in I$, with $e_i^\pi=e_{\pi(i)}$; it may be realized by coordinate \term{projection}{projections} on $\{0,1\}$. Accordingly, a subset of $\PP(I)$ will also be regarded as a subset of $I$. For a function $f:A^I\to B$, $i\in I$ is an \termdef{essential-coordinate}{essential coordinate} if there are two inputs differing only at $i$ on which $f$ has different values. A coordinate that is not an \term{essential-coordinate}{essential coordinate} is a \termdef{dummy-coordinate}{dummy coordinate}. The \term{minor}{minors} of a family of functions form the \term{minion}{minion} generated by that family. \begin{basicdefinition}[\term{minor-chain}{Minor chains} and \term{transport}{transport}] A \termdef{minor-chain}{minor chain} of length $r$ is a sequence \[ C=(f_0\xrightarrow{\pi_{01}}f_1 \xrightarrow{\pi_{12}}\cdots \xrightarrow{\pi_{r-1,r}}f_r), \qquad f_i\in\M(I_i), \] where $f_{i+1}=f_i^{\pi_{i,i+1}}$. For $i=Latex, entry/.style={inner sep=3pt,minimum width=1.15cm,minimum height=.62cm}, result/.style={entry,draw=teal!60!black,fill=teal!7,rounded corners=2pt}, flow/.style={->,semithick,draw=black!65}, group/.style={font=\small\bfseries,align=center}] \node[group] (any) at (5.0,1.75) {Arbitrary coordinate maps}; \node[group] (onto) at (10.4,1.75) {Surjective coordinate maps}; \draw[flow] (any) -- (onto); \foreach \x/\txt in {3.8/All chains,6.2/Injective chains,9.2/All chains,11.6/Injective chains} \node[font=\footnotesize] at (\x,1.10) {\txt}; \newcommand{\criterionrow}[7]{% \node[anchor=east,font=\small] at (2.65,-#1) {\term{#2}{#3}}; \ifnum#1=4 \tikzset{cell/.style={result}}\else\tikzset{cell/.style={entry}}\fi \node[cell] (a#1) at (3.8,-#1) {\term{#2}{$#4$}}; \node[cell] (b#1) at (6.2,-#1) {\term{#5}{$#4^{\mathrm{inj}}$}}; \node[cell] (c#1) at (9.2,-#1) {\hyperref[#6]{$#4^{\mathrm{surj}}$}}; \node[cell] (d#1) at (11.6,-#1) {\hyperref[#7]{$#4^{\mathrm{surj,inj}}$}}; \draw[flow] (a#1) -- (b#1); \draw[flow] (c#1) -- (d#1);} \criterionrow{0}{minion-homomorphism}{Minion homomorphism}{\Hom}{injective-minion-homomorphism}{sec:arc}{sec:surj-chain} \criterionrow{1}{exact-homomorphism}{Exact set-valued}{\operatorname{Ex}_d}{injective-exact-homomorphism}{sec:surj-chain}{sec:surj-chain} \criterionrow{2}{d-homomorphism}{$d$-homomorphism}{\BK_{d,1}}{injective-d-homomorphism}{sec:surj-bk}{sec:surj-chain} \criterionrow{3}{bk-homomorphism}{Barto--Kozik}{\BK_{d,r}}{injective-bk}{sec:surj-bk}{sec:surj-chain} \criterionrow{4}{chain-homomorphism}{Chain homomorphism}{\Ch_{h,d}}{injective-chain-homomorphism}{sec:surj-chain}{sec:surj-chain} \foreach \i/\j in {0/1,1/2,2/3,3/4} \foreach \col in {a,b,c,d} \draw[flow] (\col\i) -- (\col\j); \node[result] (cr) at (10.4,-5.10) {\term{consistency-reduction}{Consistency reduction}}; \draw[flow] (d4) -- (cr); \end{tikzpicture} \end{center} % End of sections/reduction-diagram.tex Each entry asserts existence from $\M$ to $\N$ for some finite parameters, in the reduction direction~\eqref{eq:direction}. Here $\operatorname{Ex}_d$ denotes an \term{exact-homomorphism}{exact $d$-set-valued homomorphism}. Each downward arrow weakens the condition on the lists. Within each panel the horizontal arrows allow bounded \term{coordinate-marks}{coordinate marks}; the arrow between panel headings restricts every corresponding test to surjective maps. These restrictions are independent. The final arrow is \resultref{Theorem}{thm:surj-minion-reduction}. The first three downward implications in the all-chains column for arbitrary maps are strict (\resultref{Examples}{ex:meet-two}, \ref{ex:maj}, and~\ref{ex:quorum}). For minion homomorphisms, restriction to surjections can also be strict (\resultref{Example}{ex:surj-not-ordinary}). At the Barto--Kozik row, the \term{threshold-minion}{minion $\mathrm{ST}$} separates the test on all chains from its injective variant (\resultref{Example}{ex:st}). Even the bottom-right condition is strictly stronger than a consistency reduction for finite templates (\resultref{Example}{ex:consistency-separation}). Ordinary minion homomorphisms characterize \term{gadget-reduction}{gadget reductions} (Section~\ref{sec:ordinary}), surjective-minor homomorphisms characterize the \term{arc-consistency}{arc-consistency construction} (\resultref{Theorem}{thm:arc}), and consistency reductions characterize \term{datalog-unions}{Datalog-with-unions reductions} (\resultref{Theorem}{thm:consistency-characterization}). \subsection{\term{minion-homomorphism}{Minion homomorphisms} and \term{gadget-reduction}{gadget reductions}}\label{sec:ordinary} \term{minion-homomorphism}{Minion homomorphisms} are the \term{minor}{minor}-preserving maps used by Barto, Bul\'in, Krokhin, and Opr\v{s}al~\cite{bbko} to characterize \term{gadget-reduction}{gadget reductions} between finite \term{template}{promise templates}. \begin{definition}[\term{minion-homomorphism}{Minion homomorphism}]\label{def:ordinary} A \termdef{minion-homomorphism}{minion homomorphism} $\xi:\M\to\N$ is a family of maps $\xi_I:\M(I)\to\N(I)$ satisfying \[ \xi_J(f^\pi)=\xi_I(f)^\pi \qquad(f\in\M(I),\ \pi:I\to J). \] An \termdef{injective-minion-homomorphism}{injective minion homomorphism} chooses bounded \term{coordinate-marks}{coordinate marks} and requires this equality whenever $\pi$ is injective on the marks of $f$. We usually omit the coordinate-set subscripts. We write $\Hom(\M,\N)$ for the assertion that a \term{minion-homomorphism}{minion homomorphism} exists. \end{definition} \termdef{precomposition}{Precomposition} of a \term{list-assignment}{list assignment} $\Xi:\M\to\N$ by a \term{minion-homomorphism}{minion homomorphism} $\alpha:\mathscr L\to\M$ means applying $\Xi$ to the images under $\alpha$ of its inputs. \termdef{postcomposition}{Postcomposition} by a \term{minion-homomorphism}{minion homomorphism} $\beta:\N\to\mathscr Q$ means applying $\beta$ to every output \term{operation}{operation}. Ordinary function composition preserves the defining equality and has the identity maps as units. A map to $\PP$ selects one coordinate of each \term{operation}{operation} compatibly with every minor. A \termdef{gadget-reduction}{gadget reduction} replaces each variable by a copy of a fixed finite structure with a distinguished tuple. Each relation has a fixed finite gadget with one distinguished tuple per argument. For every input constraint, glue a fresh copy of its gadget to the corresponding variable copies along these tuples. For the finite templates in~\eqref{eq:direction}, such a reduction exists exactly when $\Hom(\M,\N)$ holds~\cite[Theorem~4.12]{bbko}. \subsection{\term{consistency-reduction}{Consistency reductions}}\label{sec:consistency} Dalmau and Opr\v{s}al~\cite{do} introduced \term{consistency-reduction}{consistency reductions} by pruning \term{local-solution}{local solutions} and gluing the corresponding \term{power}{powers}. Barto, Hadek, and Zhuk~\cite{bhz} characterize when this construction is sound by a \term{minion-homomorphism}{minion homomorphism}. \begin{definition}[$k$-consistency construction]\label{def:consistency} Fix $k\geq1$ and an input \term{structure}{relational structure} $\mathbf X$ with domain $V$. For each $U\subseteq V$ of size at most $k$, initially put $F_U=\Hom(\mathbf X[U],\mathbf A)$, the set of all \term{local-solution}{local $\mathbf A$-solutions} on $U$. \termdef{consistency-pruning}{Consistency pruning} means repeatedly deleting an \term{assignment}{assignment} if one of its restrictions is absent from a smaller family, or if it has no extension in a larger family under consideration. The process stops at the largest subfamilies satisfying \begin{equation}\label{eq:onto} \{s|_W:s\in F_U\}=F_W \qquad(W\subseteq U,\ |U|\leq k). \end{equation} Let $\rho_{UW}:F_U\to F_W$ be restriction. Take the disjoint union of the \term{power}{powers} $\mathbf C^{F_U}$ and identify $x\in C^{F_W}$ with $x\circ\rho_{UW}\in C^{F_U}$ for every such inclusion. Relations on the quotient are the images of the relations on these \term{power}{powers}. Empty families are allowed: $\mathbf C^\varnothing$ is the one-element \term{structure}{structure} with every relation full. Denote the quotient by $T_k(\mathbf X)$. We say that a \termdef{consistency-reduction}{consistency reduction} exists in~\eqref{eq:direction} if $T_k$ is a \term{decision-reduction}{decision reduction} for some fixed $k$. \end{definition} For fixed templates and $k$, the construction is polynomial-time computable and satisfies $\mathbf X\to\mathbf A\Longrightarrow T_k(\mathbf X)\to\mathbf C$ (\resultref{Proposition}{prop:consistency-completeness}). Thus the condition required for a reduction is soundness: \begin{equation}\label{eq:consistency-soundness} T_k(\mathbf X)\to\mathbf D \quad\Longrightarrow\quad \mathbf X\to\mathbf B \qquad\text{for every input }\mathbf X. \end{equation} The algebraic characterization uses the \term{support-construction}{support construction} $\omega(\M)$ of~\eqref{eq:omega} and the \term{minion-level}{level construction} $\mathrm{lvl}_{\ell}$ recalled in \resultref{Definition}{def:minion-level}. \begin{theorem}[Barto--Hadek--Zhuk]\label{thm:consistency-algebraic} For the finite templates in~\eqref{eq:direction}, a \term{consistency-reduction}{consistency reduction} exists if and only if \[ \Hom\bigl(\mathrm{lvl}_{\ell}(\omega(\M)),\N\bigr) \qquad\text{for some }\ell\geq1. \] \end{theorem} This is~\cite[Theorem~6.14]{bhz}. Their formulation uses saturated powers; \cite[Theorem~6.7]{bhz} compares these with families of \term{local-solution}{local solutions}. The comparison may change the level, so the $k$ in $T_k$ and the $\ell$ in the theorem need not agree. All the algebraic conditions in the diagram imply a \term{consistency-reduction}{consistency reduction} for finite templates. Pruning makes the restriction maps surjective; \resultref{Theorem}{thm:surj-minion-reduction} applies the injective chain argument to those maps. With arbitrary maps, the instance construction also works without pruning and uses \term{logspace}{logspace} (\resultref{Theorem}{thm:minion-reduction}). Consistency reductions compose by the Datalog characterization in \resultref{Theorem}{thm:consistency-characterization}. \begin{example}[Arc-digraph construction]\label{ex:arc-digraph} For a digraph $\mathbf X$, its arc digraph $\delta\mathbf X$ has vertices $E^{\mathbf X}$ and arcs \[ (x,y)\longrightarrow(y,z) \qquad\text{whenever }(x,y),(y,z)\in E^{\mathbf X}. \] An edgeless input can be sent to the one-vertex edgeless graph. Put $b(t)=\binom{t}{\lfloor t/2\rfloor}$. For a symmetric digraph $\mathbf X$ and $t\geq2$, \[ \delta\mathbf X\to K_t \quad\Longleftrightarrow\quad \mathbf X\to K_{b(t)} \] by~\cite[Lemma~4.15]{kowz}. Consequently, for $2\leq c\leq d$, the arc-digraph construction gives a reduction \[ \PCSP(K_{b(c)},K_{b(d)}) \longrightarrow \PCSP(K_c,K_d). \] This is the specialization $(\mathbf A,\mathbf B,\mathbf C,\mathbf D) =(K_{b(c)},K_{b(d)},K_c,K_d)$ of~\eqref{eq:direction}. For example, $c=4$ and $d=5$ give $\PCSP(K_6,K_{10})\to\PCSP(K_4,K_5)$. An arbitrary input relation may first be made symmetric by adding every reversed edge; this preserves its \term{homomorphism}{homomorphisms} to every $K_t$. To see why this is covered by \term{consistency-reduction}{consistency reductions}, express the arc construction by the rules \[ V'(x,y)\leftarrow E(x,y),\qquad E'(x,y,y,z)\leftarrow E(x,y)\wedge E(y,z). \] These rules, together with symmetrization, form a \term{datalog-interpretation}{Datalog interpretation}. To enforce nonempty output domains, add an isolated copy of the input domain as a second \term{sort}{sort} and take the disjoint union of the two sorts. This preserves the existence of a homomorphism to each nonempty \term{complete-graph}{complete graph} and gives a \term{datalog-unions}{Datalog-with-unions reduction}. The logical characterization therefore gives a \term{consistency-reduction}{consistency reduction} between the same templates. This is the line-digraph example of~\cite[Examples~3.4 and~4.4]{do}; the coloring reduction is \cite[Lemma~4.16]{kowz}. \end{example} \subsection{\term{exact-homomorphism}{Exact set-valued homomorphisms}}\label{sec:exact} Replacing a single output by a bounded nonempty set gives the following relaxation of a \term{minion-homomorphism}{minion homomorphism}. The set is still required to commute exactly with every \term{minor}{minor}. \begin{definition}[\term{exact-homomorphism}{Exact set-valued homomorphism}]\label{def:exact} Let $d\geq1$. An \termdef{exact-homomorphism}{exact $d$-set-valued homomorphism} $\xi:\M\to\N$ assigns to every $f\in\M(I)$ a set $\varnothing\ne\xi(f)\subseteq\N(I)$ of size at most $d$, and satisfies \[ \xi(f^\pi)=\xi(f)^\pi \qquad(f\in\M(I),\ \pi:I\to J). \] An \termdef{injective-exact-homomorphism}{injective exact $d$-set-valued homomorphism} requires this set equality on the arrows injective on the source marks. An exact list assignment is a \term{minion-homomorphism}{minion homomorphism} to the \term{minion}{minion} \[ \mathcal P_{\leq d}(\N)(I) =\{L\subseteq\N(I):1\leq|L|\leq d\}, \] whose \term{minor}{minors} are taken elementwise. \end{definition} Singleton lists recover ordinary minion homomorphisms. For bounded \term{list-assignment}{list assignments} $\xi:\M\to\N$ and $\eta:\N\to\mathscr L$, their \termdef{union-composition}{union composition} is \[ (\eta\star\xi)(f)=\bigcup_{g\in\xi(f)}\eta(g). \] Bounds $d$ and $e$ give bound $de$. Unions are associative, and $f\mapsto\{f\}$ is the identity. For exact lists, taking a minor commutes with each list assignment and hence with the union. Boolean conjunction on at most two coordinates shows that exact lists are strictly more general than singleton lists (\resultref{Example}{ex:meet-two}). \subsection{The \term{d-homomorphism}{\texorpdfstring{$d$}{d}-homomorphism} condition}\label{sec:multiple} We next require only that the transported set intersect the set assigned to the \term{minor}{minor}. This is the one-arrow case of the \term{bk-homomorphism}{Barto--Kozik condition}~\cite{bk}. \begin{definition}[\term{d-homomorphism}{$d$-homomorphism}]\label{def:multiple} Let $d\geq1$. A \termdef{d-homomorphism}{$d$-homomorphism} $\xi:\M\to\N$ assigns to every $f\in\M(I)$ a nonempty set $\xi(f)\subseteq\N(I)$ of size at most $d$ such that \[ \xi(f)^\pi\cap\xi(f^\pi)\ne\varnothing \qquad(f\in\M(I),\ \pi:I\to J). \] \end{definition} An \termdef{injective-d-homomorphism}{injective $d$-homomorphism} requires this intersection on every arrow injective on the source marks. Equal nonempty lists intersect, and intersecting singletons coincide. Thus exact lists give $d$-homomorphisms, and $d=1$ recovers ordinary minion homomorphisms. \term{union-composition}{Union composition} again works. Given $f\to f^\pi$, choose $g\in\xi(f)$ with $g^\pi\in\xi(f^\pi)$, then $u\in\eta(g)$ with $u^\pi\in\eta(g^\pi)$. The entry $u^\pi$ witnesses the intersection for the composite. Boolean majority gives a $3$-homomorphism to $\PP$ and admits no exact set-valued homomorphism to $\PP$ (\resultref{Example}{ex:maj}). \subsection{\term{bk-homomorphism}{Barto--Kozik homomorphisms}}\label{sec:bk} Barto and Kozik~\cite[Definition~3]{bk} introduced the following relaxation of \term{minor}{minor} preservation, in which a \term{compatible-pair}{compatible pair} may occur anywhere along a \term{minor-chain}{minor chain} of a fixed length. \begin{definition}[\term{bk-homomorphism}{Barto--Kozik homomorphism}]\label{def:bk} Let $d,r\geq1$. A $(d,r)$-\termdef{bk-homomorphism}{Barto--Kozik homomorphism} from $\M$ to $\N$ assigns to each $f\in\M(I)$ a nonempty \term{list}{list} $\xi(f)\subseteq\N(I)$ of size at most $d$, such that every \term{minor-chain}{minor chain} $f_0\to\cdots\to f_r$ has a \termdef{compatible-pair}{compatible pair}: positions $i\cdots>d_r\ge m$ with the following property for every finite $V$ with $|V|\ge d_0$ and every nonempty value set $B$. On level $i$, let $L_i$ be a \term{partial-assignment-system}{partial assignment system} of arity $d_i$, with at most $k$ entries and $s$ marks per scope. Suppose every \term{injective-chain}{injective chain} $U_0\supset\cdots\supset U_r$, $|U_i|=d_i$, has a pair $j\cdots>p_r\ge e$ with the following property. Let $V,Q$ be finite, $|V|\ge p_0$, $|Q|\ge e$, and $\sigma:Q\to V$. For $1\le i\le r$, give the edges $(W,Z)$ with $|W|=q$, $|Z|=p_i$ and $\sigma(W)\subseteq Z$ an \term{edge-coloring}{edge-coloring} $\Lambda_i$. At least one of the following holds. \begin{enumerate}[label=\textup{(\roman*)}] \item For some $i\ge1$ one can choose $f(W)\in C$ for every $W\in\mathcal P_q(Q)$ so that each $X\in\mathcal P_e(Q)$ has a $Z\in\mathcal P_{p_i}(V)$ containing $\sigma(X)$ with $f(W)\in\Lambda_i(W,Z)$ for all $W\in\mathcal P_q(X)$. \item There are fixed $W_1,\ldots,W_r\in\mathcal P_q(Q)$ and a $p_0$-set $U_0$ containing all their images. At step $i=1,\ldots,r$, after any choice of $\gamma_i\in C$ and $S_i\subseteq U_{i-1}$, $|S_i|\le h$, one can choose $U_i\in\mathcal P_{p_i}(U_{i-1})$ so that \[ S_i\cup\bigcup_{j=i}^r\sigma(W_j)\subseteq U_i, \qquad \gamma_i\notin\Lambda_i(W_i,U_i). \] The choice of $U_i$ works for all subsequent requests. \end{enumerate} For fixed parameters, if \textup{(ii)} is impossible, $i,f$ and the sets $Z$ in \textup{(i)} can be found in polynomial time on explicit input. \end{lemma} For $r=1$ the usual local hypothesis on $G_{p_1,q}(V)$ rules out \textup{(ii)}. Indeed, if every $p_0$-set $U$ and $q$-set $W\subseteq U$ admit $\gamma\in C$ and $S\subseteq U$, $|S|\le h$, with $\gamma$ allowed whenever $W\cup S\subseteq Z\subseteq U$ and $|Z|=p_1$, use this request at $U_0,W_1$. Thus \textup{(i)} gives the two-level \term{edge-coloring}{edge-coloring} conclusion. \begin{proof}[Proof of \resultref{Lemma}{lem:chain-edge-coloring}] Put $b=\binom eq$ and $\delta=1/(2b)$. For a sufficiently large integer $n$, take $p_r=n$ and $p_{i-1}=n^2p_i$ for $i=r,\ldots,1$. Put $a_i=\lfloor p_i/(2b)\rfloor$ for $i\ge1$. Then $e+q+b a_i\le p_i$. Order $V$, let $F_i$ consist of its first $p_i$ variables, and write $E_i(B)$ for $B$ filled to size $p_i$ in this order. At each $i\ge1$, $W\in\mathcal P_q(Q)$ and $\gamma\in C$ use the matrix with rows $S\subseteq V$, $|S|\le a_i$, and columns $T\subseteq V$, $|T|\le p_i-q-a_i$. Its entry is one if \[ \gamma\notin\Lambda_i\bigl(W,E_i(\sigma(W)\cup S\cup T)\bigr). \] Apply the finite matrix alternative (\resultref{Lemma}{lem:edge-matrix} in Appendix~\ref{app:implementation}). It returns either a distribution on rows giving the ones in every column mass less than $\delta$, or a distribution on columns giving the ones in every row mass at least $\delta/4$. Call $W$ a \termdef{edge-pivot}{pivot} at level $i$ if no color $\gamma$ at $W$ admits such a row distribution. At a pivot every color therefore admits the stated column distribution. \smallskip\noindent\emph{No \term{edge-pivot}{pivot} at one level.} At such a level $i$, choose for every $W$ a color $f(W)$ for which the row distribution exists. Fix $X\in\mathcal P_e(Q)$, choose a row $S_W$ independently from each of the $b$ distributions for $W\in\mathcal P_q(X)$, and put $Z=E_i(\sigma(X)\cup\bigcup_W S_W)$. With all other rows fixed, $T=\sigma(X)\cup\bigcup_{W'\ne W} S_{W'}$ is a column, since its size is at most $e+(b-1)a_i\le p_i-q-a_i$. The probability that $Z$ forbids $f(W)$ is less than $\delta$. Since $b\delta<1$, some $Z$ allows every chosen color. This gives \textup{(i)}. \smallskip\noindent\emph{A \term{edge-pivot}{pivot} at every level.} Choose one such $W_i$ at each $i\ge1$. Sample $n$ columns from each of the corresponding column distributions, with all samples independent. For $0\le i\le r$ let $R_i$ be the union, over $j>i$, of $\sigma(W_j)$, $F_j$, and all columns sampled at level $j$. Thus $R_r=\varnothing$, and for $iq\ge m$ and $n\ge p$ such that the following holds on any variable set $V$ of size at least $n$. Give every $p$-set $Z$ and $q$-set $W$ nonempty lists $J(Z)$ and $K(W)$, respectively, of at most $D$ assignments on that set. If $J(Z)|_W\cap K(W)\ne\varnothing$ whenever $W\subseteq Z$, then one of the two systems has an $m$-solution. One may take $n=p$. The parameters are independent of the value set. On finite explicit input a solution can be output in \term{logspace}{LOGSPACE}. \end{theorem} \paragraph{Arbitrary value sets.} For Boolean values we apply ordinary baby PCP directly to the tuples read on a set of variables. For general $B$ we read Boolean comparisons at those variables. Fix a finite family of input rows. At each $v\in V$, order the distinct values appearing there as $b_{v,1},\ldots,b_{v,t_v}$. If none occurs, use a one-element list from $B$ and set $t_v=1$. A \termdef{rank-question}{rank question} $(v,j)$ asks whether the value at $v$ has rank at least $j$, for $1\le j\le t_v$. Let $Q$ be the set of questions and let $\sigma(v,j)=v$. For $X\subseteq Q$ write $\sigma(X)$ for its underlying variables and $\tau_X(u)$ for the bit tuple answered by a row $u$ defined on $\sigma(X)$. Use the same notation for the set of tuples answered by a list. \begin{lemma}\label{lem:rank-questions} Suppose $|Q|\ge2m$. If a Boolean assignment on $Q$ agrees on every $2m$ \term{rank-question}{rank questions} with one row of a family $\mathcal F$ of input rows, then $\mathcal F$ has an \term{m-solution}{$m$-solution} on $V$. \end{lemma} \begin{proof} Support on at most $2m$ questions follows by extending to exactly $2m$. At each $v$ the first answer is yes, and support on pairs forces the yes answers to form an initial segment. Choose the value at its last yes. On an $m$-set of variables, ask for the last yes at each variable and the next answer whenever it exists. A single supporting row answers these at most $2m$ questions, hence takes all the chosen values. \end{proof} \begin{proof}[Proof of \resultref{Theorem}{thm:injective-babypcp}] For Boolean values take $Q=V$, take $\sigma$ to be the identity, and let $\tau_X$ be restriction to $X$. For arbitrary $B$ use the \term{rank-question}{rank questions} for all input lists. Take $e>q\ge2m$ from \resultref{Theorem}{inst:thm:bk} for a $2m$-solution and list bound $rk$. Fix an order on $Q$. Let $C$ be the set of all nonempty lists of at most $rk$ Boolean $q$-tuples, read in that order. Apply \resultref{Lemma}{lem:chain-edge-coloring} with $r$ lower levels and request bound $rs$. Write $d_i=p_i$ for the arities it supplies. The ordinary theorem applies on $Q$, since $|Q|\ge |V|\ge d_0\ge e$. At level $i\ge1$ the edges are the pairs $(W,Z)$ with $|W|=q$, $|Z|=d_i$ and $\sigma(W)\subseteq Z$. Use the \term{edge-coloring}{edge-coloring} \[ \Lambda_i(W,Z)=\{\gamma\in C:\ \gamma\cap\tau_W(L_i(Z))\ne\varnothing\}. \] \emph{No \term{edge-pivot}{pivot} at one lower level.} Let $i$ be the level and $f$ its choice of colors in the first alternative. At each $e$-set $X$ of questions choose its common right vertex $Z_X$ and give $X$ the list $\tau_X(L_i(Z_X))$. At each $q$-set $W$ take $f(W)$, keeping only tuples realized by some $L_i(Z)$ with $\sigma(W)\subseteq Z$. For every $W\subseteq X$ the two lists still meet after restriction to $W$: the overlap given by $\Lambda_i(W,Z_X)$ survives this deletion. Both lists are nonempty, have size at most $rk$, and every listed tuple comes from level $i$. The ordinary theorem gives a $2m$-solution in one of these two systems. It is supported on every $2m$ questions by an actual row of $L_i$. This gives an \term{m-solution}{$m$-solution} of $L_i$ directly for Boolean values and by \resultref{Lemma}{lem:rank-questions} for general $B$. \emph{A \term{edge-pivot}{pivot} at every lower level.} Take the fixed question sets $W_1,\ldots,W_r$ and the initial scope $U_0$ of the second alternative. Just before choosing $U_i$, all preceding scopes contain $\sigma(W_i)$. Request the color \[ \gamma_i=\bigcup_{j\cdots>k_t\ge a$ and $N_0\ge k_1$ with the following property for every nonempty value set $B$. Let $\Phi$ be an instance over $B$ of constraint arity at most $a$ on a finite set $V$, $|V|\ge N_0$. Mark at most $c$ auxiliary assignments on each scope of a prescribed size. For each decreasing $h$-term chain $F$ at those sizes give a nonempty list $L(F)$ of at most $d$ local solutions on $\min F$. Assume \termdef{injective-chain-consistency}{injective chain consistency}, meaning that every \term{injective-chain}{injective} $(h+1)$-term chain $C$ at those sizes satisfies \[ \bigcap_{U\in C}L(C\setminus\{U\})|_{\min C}\ne\varnothing. \] Then $\Phi$ has a global solution, computable in polynomial time from the explicit lists. With empty marks this is ordinary \termdef{chain-consistency}{chain consistency}. In that case existence also holds for infinite variable sets, and finite explicit input admits a \term{logspace}{LOGSPACE} decoder. \end{theorem} \begin{proof}[Proof of \resultref{Theorem}{thm:minion-reduction}] Fix an \term{injective-chain-homomorphism}{injective $(h,d)$-chain homomorphism} $\Xi$ with mark bound $c$. Apply \resultref{Theorem}{thm:chain-gap} to $B$ and the constraint arity bound $a$ of $\mathbf A,\mathbf B$, and choose $k\ge\max(k_1,N_0,a)$. \emph{Completeness.} If $s:\mathbf X\to\mathbf A$, then $s|_U\in F_U$ for every $U$. Thus every family is nonempty, and evaluation at $s|_U$ gives a \term{homomorphism}{homomorphism} $\mathbf C^{F_U}\to\mathbf C$. These evaluations agree on the defining identifications, and hence induce $\widetilde T_k(\mathbf X)\to\mathbf C$. \emph{Soundness.} Let $q:\widetilde T_k(\mathbf X)\to\mathbf D$. Every $F_U$ is nonempty, since the empty-family case outputs $\mathbf Z\not\to\mathbf D$. Composing $q$ with the canonical map from each \term{power}{power} to the quotient gives \[ f_U\in\Pol(\mathbf C,\mathbf D)(F_U),\qquad f_U^{\rho_{UW}}=f_W\quad(W\subseteq U), \] because the quotient identifies $x\in C^{F_W}$ with $x\circ\rho_{UW}\in C^{F_U}$. Thus a decreasing \term{set-chain}{set chain} $C$ of variable sets gives a \term{minor-chain}{minor chain} $\widehat C$. Restrictions compose, so taking a \term{face}{face} commutes with this correspondence. Fix one enumeration of each $F_U$ and apply $\Xi$ and its marking in these coordinates throughout. Mark on $U$ the local assignments corresponding to the marked coordinates of $f_U$. Consequently every injective set chain gives an injective minor chain, including the test on marks transported from different positions. For $g\in\Pol(\mathbf A,\mathbf B)(F_U)$, define \[ b_g(v)=g\bigl((s(v))_{s\in F_U}\bigr)\qquad(v\in U). \] This is a \term{local-solution}{local $\mathbf B$-solution}: for a \term{constraint}{constraint} $R(v_1,\ldots,v_m)$ contained in $U$, every $s\in F_U$ gives a tuple in $R^{\mathbf A}$, and preservation by $g$ gives $(b_g(v_1),\ldots,b_g(v_m))\in R^{\mathbf B}$. Moreover, \[ b_{g^{\rho_{UW}}}=b_g|_W, \] since $\rho_{UW}(s)(v)=s(v)$ for $v\in W$. For each $h$-term chain $F$ of the prescribed sizes give it the list $L(F)=\{b_g:g\in\Xi(\widehat F)\}$. It has size at most $d$. On an injective $(h+1)$-term chain the common face entry in~\eqref{eq:chain} evaluates to a common restricted assignment. Thus \resultref{Theorem}{thm:chain-gap} gives $\mathbf X\to\mathbf B$ for $|X|\ge N_0$. For $|X|q\ge 2m$ and the threshold $n$ from \resultref{Theorem}{inst:thm:bk} for diameter $2m$ and list bound $D_0$. Take the initial size floor at least $m$ and every such $n$. Thus $|Q|\ge |V|\ge n$ at every split. For an interval with size floor $k$, seed budget $w$ and request bound $g$, the builder must retain a given seed $S\subseteq V$, $|S|\le w$, throughout. We obtain \textup{(i)} or a random reserve $R\subseteq V$, independent of $S$, such that for each fixed $S$ the builder can win inside $S\cup R$ with probability $1-o(1)$. Winning means honoring the requests and preventing all matches across splits in the interval. The error tends to zero in one integer $N$, uniformly in $V$, the lists and the seed. All scope sizes and reserve bounds are polynomial in $N$. At a leaf of length $l$, use consecutive sizes ending at $\max(k,w+lg)$. A fixed reserve of the largest size suffices. At a split let $U,D$ be the left and right children, $l=|U|$, $b=\binom eq$, $\delta=1/(2b)$ and $w'=w+lg$. Prescribe $D$ first, with floor $k$, seed budget $e+bw'$ and request bound $bg$. Let $M_D$ bound its reserve size, $k_D$ its largest scope size, and put $t=e+bw'+M_D$. There are $K$ subsets of $\{0,1\}^q$ of size at most $D_0$. Prescribe $U$ with floor $k_D+1$, seed budget $w+q+KNt$ and request bound $g$. If either child gives \textup{(i)}, we are done. Fix $W\in\mathcal P_q(Q)$ and $\gamma\subseteq\{0,1\}^W$ of size at most $D_0$. Form a zero--one matrix with rows $S_0\subseteq V$ of size at most $w'$ and columns $T\subseteq V$ of size at most $t$. Its entry is one if the builder can play $D$ inside $\sigma(W)\cup S_0\cup T$, retaining $\sigma(W)\cup S_0$, honoring $g$ requests per position, preventing the internal matches and ensuring $\tau_W(a)\notin \gamma$ for every designated entry $a$ of $D$. Apply \resultref{Lemma}{lem:edge-matrix} with $\delta$. At a \term{edge-pivot}{pivot} $W$, no color admits the row distribution, so each $\gamma$ admits a column distribution with \begin{equation}\label{eq:retain-test} \Pr_T[(S_0,T)\text{ has entry one}]\ge\delta/4 \qquad\text{for every row }S_0. \end{equation} \smallskip\noindent\emph{No \term{edge-pivot}{pivot}.} For each $W$ take a $\gamma_W$ and a row distribution giving the ones in each column mass less than $\delta$. Given $X\in\mathcal P_e(Q)$, independently draw a row $S_W$ for each $W\in\mathcal P_q(X)$ and the reserve $R_D$. Set $S_*=\sigma(X)\cup\bigcup_W S_W$. For the game at $W$ use the column \[ T_W=\sigma(X)\cup R_D\cup\bigcup_{W'\ne W}S_{W'} . \] It is independent of $S_W$. The probability that some entry is one or the strategy for $D$ fails for seed $S_*$ is at most $b\delta+o(1)<1$. Fix draws for which all entries are zero and the strategy succeeds. Every one of the $b$ games has this same playing area. Run one winning opponent from each game against the strategy for $D$, passing it the union of their requests at each move. It can honor all $bg$ requests and prevent every internal match. In the resulting common play each opponent therefore forces a designated entry $a$ with $\tau_W(a)\in \gamma_W$. Use the traces on $X$ of all designated entries of this play as the upper list. On $W$ retain from $\gamma_W$ just the realized traces of designated entries of $D$ whose domains contain $\sigma(W)$. The common play gives ordinary overlap on every inclusion. Both lists have size at most $D_0$, and each entry comes from $D$. By \resultref{Theorem}{inst:thm:bk} the same family supports a bit assignment on every $2m$ questions. \resultref{Lemma}{lem:rank-questions} decodes an $m$-solution in \textup{(i)}. \smallskip\noindent\emph{A \term{edge-pivot}{pivot}.} Fix a \term{edge-pivot}{pivot} $W$. Draw $N$ columns for each $\gamma$ using \eqref{eq:retain-test}, all independently, and draw $R_U$ independently. The parent reserve is $R_U\cup\sigma(W)\cup\bigcup T$, where the union runs over all draws. Fix $S$. With probability $1-o(1)$ the strategy for $U$ succeeds with enlarged seed $S\cup\sigma(W)\cup\bigcup T$, by conditioning on the draws. With probability $1-o(1)$ every set $Z$ of up to $lg$ variables requested during $U$ and every $\gamma$ have a sampled column for $\gamma$ with a one in row $S\cup Z$. Indeed, fix $R_U$ and name the variables of $Z$ by positions in $S,R_U$, $\sigma(W)$ or the sampled columns, ordering each set in advance. There are polynomially many descriptions in $N$, since $lg$ is fixed. For a fixed description expose only the samples it names. If all positions exist, this fixes $S\cup Z$. The remaining at least $N-lg$ independent draws for $\gamma$ miss that row with probability at most $(1-\delta/4)^{N-lg}$. The union bound over descriptions and $\gamma$ gives error $o(1)$. Play $U$ with its enlarged seed. Take $Z$ to be its actual requests and $\gamma$ the traces on $W$ of its designated entries. A successful column for this $\gamma$ gives the required play of $D$. Its entire playing area lies in the last upper scope, which contains the seed, the requests and all sampled columns. The size floor gives strict inclusion, and equality of an upper and a lower entry on the lower scope would give equal traces on $W$. This wins the interval. The recursion for sizes uses only sums and products by constants or $N$, while the request bounds are independent of $N$. The tree is fixed, so one sufficiently large $N$ makes all the probability bounds hold. At the root take $w=0$. For the algorithm evaluate the matrices from the leaves upwards. At fixed parameters each finite game has a bounded number of moves, each with polynomially many choices. Backward induction computes its value, and \resultref{Lemma}{lem:edge-matrix} supplies the distributions. At the first split whose output gives a row distribution for some color at every $W$, find the common play for each $X$ by enumerating plays in $D$ retaining $\sigma(X)$ and checking the required hits. Decode the two lists as above. If there is no such split, at every split the output supplies a $W$ with column distributions for all colors. The second case then gives \textup{(ii)}, and backward induction in the root game supplies the strategy. \end{proof} % End of sections/retaining-variables.tex \paragraph{Matching subchains.} An $h$-face is a subchain at any $h$ selected positions. An assignment $f$ \termdef{face-occurrence}{occurs} on an $h$-face $G$ if its domain contains $\min G$ and $f|_{\min G}\in L(G)$. The same matching argument applies to restrictions of assignments and to minors of operations. In a sequence of sets and maps $S_1\to\cdots\to S_n$, write $\rho_{ij}:S_i\to S_j$ for the composite from $i$ to $j$, with $\rho_{ii}$ the identity. \begin{lemma}[Matching subchains]\label{inst:lem:matching} Fix $h,d\geq1$ and $t\geq2$. For all sufficiently large $n$, consider any sequence $S_1\to\cdots\to S_n$. Give each $h$-set $F\subseteq[n]$ a nonempty list $L(F)\subseteq S_{\max F}$ of size at most $d$. Suppose that for every $(h+1)$-set $A$ the images of its face lists in $S_{\max A}$ intersect. Then there are $h$-sets $B_1<\cdots1$ satisfy $L\equiv1\pmod p$, and suppose $\CYCLE_p[L]\to\NAE_p[q]$. There is a finite $d=d(p,q,L)$ such that \[ \Ch_{q(p-1),d}\bigl(\Pol(\CYCLE_p[L],\NAE_p[q]),\PP\bigr). \] Consequently $3\text{-SAT}\le_{\mathrm L}\PCSP(\CYCLE_p[L],\NAE_p[q])$ with a \term{logspace}{LOGSPACE} \term{decoder}{search decoder}. \end{theorem} % End of sections/tight-cycle-source.tex \resultref{Appendix}{app:tight-cycle} gives two proofs for every prime $p$. Both proofs assign a coordinate list to each face and show that, in every partition of the terminal coordinates among the faces, some block meets its own face list. The \hyperref[rel:alternative]{continuous proof} detects a block by a change in a sphere value. The \hyperref[tc:combinatorial]{combinatorial proof} detects it by a change in the distance to a color class on the finite clock. We can test whether a cyclic relation receives one of these sources by solving equations over $\mathbb F_p$. For a $p$-ary relation $R$, introduce one variable $z_{a_1,\ldots,a_{p-1}}$ for each ordered $(p-1)$-tuple that occurs as an initial or final segment of a tuple of $R$. Let $\mathcal F_p(R)$ be the system \begin{equation}\label{eq:face-system} z_{a_2,\ldots,a_p}-z_{a_1,\ldots,a_{p-1}}=1 \quad\text{in }\mathbb F_p, \qquad (a_1,\ldots,a_p)\in R. \end{equation} For graphs this is precisely the system specifying a bipartition. For higher arities its variables belong to ordered faces, not vertices. \Needspace{14\baselineskip} \begin{theorem}[Cyclic relations]\label{thm:cyclic} Let $p$ be prime and let $R\subseteq A^p$ be finite, nonempty, and invariant under the right rotation $\tau(a_1,\ldots,a_p)=(a_p,a_1,\ldots,a_{p-1})$. The following conditions are equivalent: \begin{enumerate}[label=\textup{(\roman*)}] \item $\mathcal F_p(R)$ has no solution; \item $\CYCLE_p[L]\to(A;R)$ for some $L>1$ with $L\equiv1\pmod p$; \item some tuple $a\in R$ can be joined to $\tau a$ by a finite sequence of tuples of $R$ with at least one step, changing at most one coordinate at each step; a step may leave the tuple unchanged. \end{enumerate} If these conditions hold and $(A;R)\to(B;S)$ is a finite promise template with $S$ containing no constant tuple, then, for $q=|B|$ and some finite $d$, \[ \Ch_{q(p-1),d}\bigl(\Pol((A;R),(B;S)),\PP\bigr). \] In particular $3\text{-SAT}\le_{\mathrm L}\PCSP((A;R),(B;S))$ with a \term{logspace}{LOGSPACE} \term{decoder}{search decoder}. \end{theorem} \begin{proof} Form the digraph whose vertices are the variables of \eqref{eq:face-system}, with an arc from $(a_1,\ldots,a_{p-1})$ to $(a_2,\ldots,a_p)$ for each tuple of $R$. Rotation invariance puts every arc on a closed directed walk of length $p$, so no arc joins different strongly connected components. The equations are solvable exactly when every closed directed walk has length divisible by $p$. Indeed, within one component choose a starting vertex and assign to each vertex the length modulo $p$ of a directed path to it. A return path shows that this is well defined under the stated divisibility condition. A closed directed walk is a periodic word all of whose length-$p$ windows belong to $R$. If its length $\ell$ is not divisible by $p$, repeat it $k$ times with $k\ell\equiv1\pmod p$, increasing $k$ by a multiple of $p$ if necessary to obtain $L=k\ell>1$. The resulting word defines the homomorphism in (ii). Conversely, the image of a \term{tight-cycle}{tight cycle} of length $L\equiv1\pmod p$ is such a closed walk, which contradicts solvability of the equations. This proves (i)$\Leftrightarrow$(ii). For (ii)$\Rightarrow$(iii), write $w_t$ for the images of the vertices, periodically modulo $L$. Place $w_{t+j}$ in position $t+j\bmod p$, for $0\le jg\bigl((S+d)\cup(S+d+1)\bigr) \qquad\text{for some } S\subseteq\Z_n. \] Here sets denote their indicator vectors and translations are modulo $n$. \end{lemma} \begin{proof}[Proof of \resultref{Theorem}{thm:unate-boolean}] The tractable case is the combined basic linear programming and affine integer programming algorithm of Brakensiek, Guruswami, Wrochna and \v Zivn\'y~\cite[Theorems~4.1 and~5.1]{bgwz}. The two block sizes are their exact criterion for this decision algorithm. Suppose the block sizes $t,t+1$ are missing. No operation can have a constant diagonal $x\mapsto f(x,\ldots,x)$, since its constant minors have every block symmetry. Normalize each $f$ by composing its output with the inverse of its diagonal. The resulting minion $\M'$ consists of \term{unate-operation}{unate operations} that send the all-zero input to zero and the all-one input to one. Normalization commutes with minors and preserves block symmetry in both directions. By \resultref{Proposition}{prop:unate-certificates} each operation of $\M'$ has a bounded \term{direction-certificate}{certificate}. If $(A,D)$ is decreasing then $(D,A)$ is increasing. Indeed for any decreasing set $S$, $f(S^c)\ge f(\mathbf1)=1>f(\mathbf0)$, and identifying $S^c$ gives a \term{unate-operation}{unate} minor. This one strict increase fixes its direction in all contexts. Put $m=t(t+1)$. A \term{symmetric-threshold}{symmetric threshold} of arity $m$ would give the missing block symmetry by taking $t+1$ copies of every first-block input. At arity $m+1$ take $t$ copies of each first-block input and one of each second-block input. Thus we may use $p,n,d$ from \resultref{Lemma}{lem:monotone-rotation}. Write $E$ for the tuples of $\CYCLE_p[n]$ and $\rho_a$ for the map taking entry $a$, $0\le ar$. \end{corollary} Each fibre of a colour map must have size at most $r-1$, and this is sufficient. At $c=r$, each colour occurs once, so use \resultref{Lemma}{lem:fixed-count}. At $c>r$, periodically repeat $r+1$ distinct colours; every $r$-window is injective. Apply \resultref{Lemma}{lem:prime-lift}. In particular the word $123456$ proves the five-uniform, strong-six-colour case, with height $8$ for Boolean output. The one-spare-colour cases were posed by Brakensiek and Guruswami \cite[Conjecture~1.2]{bg}. Their Theorem~1.3 gives a bound of $\lceil3r/2\rceil$ strong colours for Boolean output when $r\ge4$ and proves the $r+1$ bound for $r=3,4$. At $r=2,c=3,q=2$ the promise fails the fibre test. \subsection{At least a prescribed number of colours}\label{sec:distinct} Austrin, Bhangale and Potukuchi studied colourings with at least $t$ distinct colours on every edge and proved hardness in quantitative ranges of the parameters~\cite[Theorem~1.7 and Corollary~1.8]{abp}. Write $D_{r;c,t}$ for this strong relation. \begin{corollary}\label{thm:distinct} For $2\le t\le\min(c,r)$, the template $(D_{r;c,t},\NAE_r[q])$ is valid exactly when $c\le q(t-1)$. Among valid parameters, $c=t=r$ gives a polynomial algorithm and every other case is NP-hard. \end{corollary} A fibre of size $t$ can contain the colours of an entire strong edge; fibres of size at most $t-1$ therefore characterize validity. If $tq$, then $\LipMin[p,q\mid C]$ admits an $(h,D)$-chain homomorphism to projections for some finite $D$. \end{corollary} \begin{proof} Evaluating an ordinary chain on the pullbacks of a common terminal input gives a single unit vector. Apply \resultref{Theorem}{rel:lists} below with distance one from zero. \end{proof} \begin{definition}[Relaxed minion]\label{rel:def:minion} A relaxed minion has a set of operations for each finite nonempty coordinate set $I$ and, for each $\pi:I\to J$, a relation $f\mathrel{[\pi]}g$ between $I$-ary and $J$-ary operations. We require $f\mathrel{[\mathrm{id}]}f$. A homomorphism preserves arities and these relations. In an ordinary minion, $f\mathrel{[\pi]}g$ means $g=f^\pi$. A relaxed chain requires $f_i\mathrel{[\pi_{ij}]}f_j$ for every $iq$, then $\LipMin^{\mathrm{rel}}[p,q\mid C]$ admits an $(h,D)$-chain homomorphism to projections for some finite $D$. More generally, the conclusion holds for any minor relations on $\LipMin[p,q\mid C]$ satisfying the following condition. There is a $\rho>0$ such that for every relaxed chain of at most $h+1$ rows, with last row $r$, and every $x\in\mathbb T^{I_r}$, \begin{equation}\label{rel:eq:margin} \operatorname{dist}\!\left(0,\operatorname{conv} \{F_j(x\circ\pi_{jr}):j\text{ in the chain}\}\right)\ge\rho . \end{equation} Here $D$ depends only on $p,q,C,h,\rho$. The list can be chosen by measuring the mean change when one terminal coordinate turns by $1/p$. \end{theorem} The bound $h>q$ suffices for hardness.\footnote{Using the boundary of a product of $h+1$ disks gives the sharper bound $2h+1>q$. Keeping the same $1/p$-turn test then requires an additional degree argument.} For the stated relaxed minors, the margin follows directly. For $p=2$ the transported unit vectors have pairwise nonnegative inner products. Any convex combination with weights $\lambda_j$ has squared norm at least $\sum_j\lambda_j^2\ge1/(h+1)$. For odd $p$, fix a terminal input and choose a minimizing phase $a_c$ in each column of the first matrix. It minimizes that column in every transported matrix $U$. The linear functional $U\mapsto-\sum_c U_{a_c,c}$ therefore agrees on these matrices with $-\sum_c\min_a U_{a,c}$. The latter function is strictly positive on the unit sphere: every column sums to zero and some column is nonzero. By compactness it has a positive minimum. The linear functional has norm at most $\sqrt{k}$, so the same positive distance bound holds for every chain, after dividing this minimum by $\sqrt{k}$. \subsubsection{From the tight cycle to the sphere} In this section we construct the first homomorphism by placing the tight-cycle vertices on the circle. The colors attainable near each input determine its sphere value and control how it changes under a minor. \begin{proposition}\label{rel:representation} Let $L>1$ satisfy $L\equiv1\pmod p$ and suppose $\CYCLE_p[L]\to\NAE_p[k]$. With $q=(p-1)(k-1)-1$ and some $C=C(p,k,L)$, there is a homomorphism of relaxed minions \[ \Pol(\CYCLE_p[L],\NAE_p[k])\longrightarrow\LipMin^{\mathrm{rel}}[p,q\mid C]. \] \end{proposition} \begin{proof} Place vertex $pj\bmod L$ at the point $j/L$ of $\mathbb T$. Measure distances temporarily in units of the spacing $1/L$. Every point is within $1/2$ of a vertex. Choose a radius $r=(1+1/p)/2$, and write $B(t)$ for the cycle vertices at distance strictly less than $r$ from $t$ in these units. Any choice of one vertex from each $B(t-a/p)$, in phase order $a=0,\ldots,p-1$, forms a tight-cycle tuple. Indeed, write $L=p\ell+1$. The ideal backward step is $L/p=\ell+1/p$ spacings. The actual step is an integer differing from it by strictly less than $2r=1+1/p$, so it is $\ell$ or $\ell+1$. Around one turn the steps sum to $L$, including the return step, so exactly one is longer. The labels thus increase by $1$ except for a single increment $1-p$. For a polymorphism $f$, its color classes $f^{-1}(c)$ are now finite subsets of $\mathbb T^I$. Give color $c$ the weight $\max\{0,r-\operatorname{dist}_\infty(x,f^{-1}(c))\}$, using the same spacing units and weight zero for an empty class. A tuple of nearest vertices gives some color weight at least $r-1/2$. Each weight is $L$-Lipschitz in the unit-circle metric, so normalizing them to sum to one gives a probability vector $P_f(x)$ with an arity-independent Lipschitz bound. Its support is exactly the palette $f(\prod_i B(x_i))$. Let $P$ have rows $P_f(x-\tfrac ap\mathbf1)$, $a\in\Z_p$. Every column has a zero. A color present at every phase would have witnesses forming a tight-cycle tuple in each coordinate, with constant output. Subtract the mean row from each row and normalize to unit norm. This gives $\Phi(f)(x)$ on the sphere of matrices with zero row and column sums. The centered norm is bounded away from zero: on the compact set of such probability tables it could vanish only if all rows were equal, which is incompatible with a zero in each column. Thus $\Phi(f)$ is Lipschitz with a bound depending only on $p,k,L$. Translation by $1/p$ shifts row $a$ to row $a+1$. For $p=2$ the rows are negatives of one another, so this shift is the antipodal map. For a minor $f^\pi$, every witness of a color at $x$ pulls back to a witness of the same color at $x\circ\pi$. Thus every zero in the table for $f$ persists in the table for $f^\pi$. For odd $p$, the zero entries in each column are exactly its minimizing phases, and centering and normalization preserve those minimizers. For $p=2$ the two rows of $P$ have disjoint supports. In their difference, a surviving color therefore has the same sign before and after taking the minor. The products of corresponding entries of the two sphere values are nonnegative, so their dot product is nonnegative. \end{proof} \begin{proof}[Continuous proof of \resultref{Theorem}{thm:tight-cycle-chain}] Take $h=k(p-1)>q=(p-1)(k-1)-1$. \resultref{Proposition}{rel:representation} and \resultref{Theorem}{rel:lists} give the two arrows \[ \Pol(\CYCLE_p[L],\NAE_p[k]) \xrightarrow{\ \text{homomorphism}\ }\LipMin^{\mathrm{rel}}[p,q\mid C] \xrightarrow{\ \text{chain homomorphism}\ }\PP . \] Assign each source chain the list of its image. Taking a face commutes with the first arrow and leaves the transport maps unchanged, so these lists intersect as required. The constant-tuple constraint is a fixed \textup{NO} instance for $\NAE_p[k]$, and \resultref{Theorem}{thm:minion-reduction} gives the stated reduction and search decoder. \end{proof} \subsubsection{The obstruction to preserving minors exactly} In this section we prove the obstruction motivating the relaxed relation. Exact preservation of minors and a common Lipschitz bound would identify the images of the two binary projections. \begin{proposition}\label{rel:strict} Suppose $p=2$ and $k\ge5$, or $p$ is an odd prime and $k\ge3$. For the lengths $L$ of \resultref{Theorem}{thm:tight-cycle-chain} there is no ordinary minion homomorphism from $\Pol(\CYCLE_p[L],\NAE_p[k])$ to equivariant $C$-Lipschitz maps $\mathbb T^I\to S^q$ with ordinary coordinate substitution, for any fixed $C,q$ and free cyclic action on the sphere. \end{proposition} \begin{proof} We first join the two binary projections by recoloring one off-diagonal entry at a time in a smaller template. For $p=2$, precomposition with a $3$-coloring of $C_L$ and inclusion of five colors into $K_k$ let us use $\Pol(K_3,K_5)$. View its binary operations as $3$-by-$3$ tables, numbering the colors from zero. Starting with the row projection, recolor the off-diagonal cells of row zero with color $3$ and those of row one with color $4$, one cell at a time. Now recolor columns zero, one, and two in order with their column indices. Each change is proper, since the new color is confined to the row or column being filled. For $p\ge3$, alternating two colors around the cycle gives a map $\CYCLE_p[L]\to\NAE_p[2]$: even across the closing edge, three consecutive vertices cannot all have the same color. Including three colors into $[k]$ now lets us use $\Pol(\NAE_p[2],\NAE_p[3])$. Keep the values at $00,11$ equal to $0,1$ and change the pair of values at $01,10$ along \[ (0,1),\quad (2,1),\quad (2,0),\quad (1,0). \] Each table is a polymorphism. A tuple of Boolean pairs nonconstant in both coordinates contains either $00,11$ or $01,10$, and each opposite pair receives distinct colors. Let $a,b$ be consecutive tables differing at $(u,v)$, where $u\ne v$. Define $H_n(x,y,z_1,\ldots,z_n)$ to use table $b$ when an odd number of the switches $z_j$ equal $v$, and table $a$ otherwise. This is a polymorphism in either case. A constant output on a relation tuple would already be constant for one table: away from $(u,v)$ they agree, and at every occurrence of $(u,v)$ the chosen color would be the same. In particular $H_1(x,y,x)=a(x,y)$ and $H_1(x,y,y)=b(x,y)$. An exact homomorphism as in the statement would, by composition, give one on the smaller template. Denote it by $\Phi$. Equal switch pairs cancel in $H_n$. Fix the first two circle inputs and subdivide an arc from $z_0$ to $z_m$ into $m$ equal steps. By exact minor preservation, evaluating $\Phi(H_{2m+1})$ with the two switch lists \[ (z_0,z_1,z_1,\ldots,z_m,z_m),\qquad (z_0,z_0,\ldots,z_{m-1},z_{m-1},z_m) \] gives $\Phi(H_1)$ at $z_0$ and at $z_m$, respectively. The lists are within one arc step in the maximum metric. The common bound $C$ and $m\to\infty$ force the two values to agree. Thus the image of $H_1$ ignores its switch, and the two displayed minor identities give $\Phi(a)=\Phi(b)$. Following the recolorings identifies the images of the row and column projections. Both are minors of the unary color inclusion, so its image takes the same value at every two circle points. A constant equivariant sphere map would give a fixed point of the free action. \end{proof} % Source: sections/appendix-generator-proof.tex \subsubsection{From relaxed chains to projections}\label{rel:sec:geometric-proof} In this section we prove that the face lists intersect whenever $h>q$. Topology detects a block of coordinates whose turn changes a sphere value. A Lipschitz estimate detects a single coordinate in that block. \begin{definition}[Score of a block of coordinates] Fix a mesh of depths $0,1/N,\ldots,1$, with $N$ chosen below. On an $h$-row chain $E$, draw a uniform tuple $Y$ on the torus of its last row. In each earlier row draw independent offsets $\boldsymbol o_i\in[0,1]^{I_i}$ with uniform entries, independently of $Y$. Fix one mesh depth $t_i$ for each earlier row. Starting with $X_{\max E}=Y$, set, for consecutive rows $iq$, then $I_{E_j}(B_j)\ge c$ for some $j$, where $c>0$ and $N$ depend only on $p,q,C,h,\rho$. \end{lemma} \begin{proof} First fix arbitrary offsets on \emph{all} rows. Form a star with $p$ arms indexed by $\Z_p$, each subdivided at the mesh depths, and take the product of $h+1$ such stars with at least one factor at its tip. In row $j$ write $t_j$ for the depth and $a_j$ for the arm. At depth zero the arm can be chosen freely. This space is the join of $h+1$ copies of $\Z_p$, with join weights $t_j/\sum_k t_k$. For $p=2$ it is the boundary of an $(h+1)$-cube. Adding one to every arm acts freely. Pull the block labels back to each row, writing $\beta_i(v)$ for the block of $\pi_{i,h+1}(v)$. For completed arm choices, the input of row $i$ has entries \begin{equation}\label{rel:eq:arm-input} x_i(v)=\frac{a_{\beta_i(v)}}p+ \sum_{k=i}^{h+1}t_k o_{k,\pi_{ik}(v)}\pmod 1 . \end{equation} At each vertex let $i$ be the first positive-depth row. Copy its arm to all zero-depth rows and label the vertex by $F_i(x_i)$. Simultaneous rotation of the arms applies $T$ to the label. We claim that, for some vertex and completion, increasing one zero-depth arm $a_j$ by one changes $F_i(x_i)$ by at least a fixed $\delta>0$. To see this, take a product cell and choose one arm for each factor, using its arm in the cell whenever that factor can have positive depth. At the lower-depth corner let $k$ be the first positive row and $y=x_k$ its input on the chosen arms. At any vertex of the cell its first positive row satisfies $i\le k$. Change the copied arms of its zero-depth rows to the chosen ones. This takes at most $h\lfloor p/2\rfloor$ single turns in either direction. A backwards turn has the same absolute change as the forward turn from its endpoint. Then lower the depths to the corner. Each argument changes by at most $(h+1)/N$, since every offset lies in $[0,1]$. The resulting input in row $i$ is $y\circ\pi_{ik}$, as all depths before $k$ now vanish. Choose $\delta$ and $N$ so that $h\lfloor p/2\rfloor\delta+C(h+1)/N<\rho$. If every single turn had change less than $\delta$, each vertex label would be within $\rho$ of its corresponding $F_i(y\circ\pi_{ik})$. By the common-input margin~\eqref{rel:eq:margin}, the convex hull of the cell's labels would miss zero. Multilinearly interpolate the vertex labels on each product cell and normalize. These maps agree on common faces and give an equivariant map from the join to $S^q$. The join is $(h-1)$-connected, and $S^q$ is free of dimension $q0$ depending only on the stated parameters. For this choice let $k$ be the first row of depth one. It is at or after the observed row $i$. In~\eqref{rel:eq:arm-input}, $x_k$ is a uniform tuple independent of the offsets before $k$, since it contains the full independent offset $\boldsymbol o_k$. Turning $a_j$ shifts this same tuple by $1/p$ precisely on block $j$ in row $k$. Delete row $j$, whose depth is zero. Use the prescribed depths in \eqref{rel:eq:face-input} up to row $k$, and choose any unused depths. If $k$ is now terminal, $X_k=Y$ is uniform. Otherwise $t_k=1$, so its full offset again makes $X_k$ uniform. Turning $B_j$ in $Y$ induces exactly the same shift in row $k$, and both evaluations use the same earlier offsets. Thus the pair of values at row $i$ has the law of $(H,H^{B_j})$ on the face $E_j$. Its mean change is at least $c$. \end{proof} % Source: sections/coordinate-turn-estimate.tex \begin{lemma}[A block turn detects a coordinate]\label{rel:lem:influence} Let $H$ be real and $L$-Lipschitz on a finite product of unit circles and unit intervals with the maximum metric. Give the circles circumference one and all coordinates independent uniform measure. For $p\ge2$ an integer and $B$ a set of circle coordinates, put \[ I_B=\mathbb E\bigl|H(Y+\mathbf1_B/p)-H(Y)\bigr|, \qquad b_j=I_{\{j\}} . \] Then $\sum_j b_j\le L/p$. For every $c>0$ there is $\tau=\tau(p,L,c)>0$ such that $I_B\ge c$ implies $b_j>\tau$ for some $j\in B$. \end{lemma} The threshold assertion also follows from Austin's junta theorem~\cite[Theorem~1.1]{Austin16}. Pull circle coordinates back to $[0,1]$ and approximate $H$ in $L^1$ to error less than $c/4$ by a function of a bounded set $J$ of coordinates. Turning $B\setminus J$ changes $H$ in mean by less than $c/2$, so $I_B\le c/2+\sum_{j\in B\cap J}b_j$. We give a direct proof of both estimates. \begin{proof} The maximum metric gives $\sum_j|\partial_j H|\le L$ almost everywhere by testing the signs of the derivatives. Integrating along each coordinate turn gives $b_j\le p^{-1}\mathbb E|\partial_j H|$, proving the sum bound. We may take $L>0$ and $B\ne\varnothing$. Choose a multiple $m$ of $p$ with $4L/m0$ such that any block of score at least $c$ contains a coordinate $v$ with $I_E(\{v\})>\tau$. Only boundedly many singletons exceed this threshold for each test, and there are boundedly many tests. Assign $E$ the list of all such coordinates in its last row. If the transported lists on an $(h+1)$-row chain had empty intersection, assign each terminal coordinate to a face whose transported list misses it. The resulting blocks have $B_j$ disjoint from the list on $E_j$ for every $j$, contradicting \resultref{Lemma}{rel:lem:block-turn}. Every list is nonempty as well, by appending a copy of the last row with the identity minor. This gives the required chain homomorphism. \end{proof} % End of sections/appendix-generator-proof.tex % End of sections/appendix-relaxed.tex \clearpage \subsection{Combinatorial proof}\label{tc:combinatorial} In this section we prove the chain condition using only the finite clock. Each face tests how far one must move to see a given color. Cyclic covering forces a distance to change when one of the blocks turns, so that block must meet the list of its face. For $p=2$ the turn is antipodal and the covering argument is Tucker's lemma. \subsubsection{Reduction to the clock}\label{tc-sec:sandwich} In this section we map the clock to the tight cycle and deduce the restriction on the colors of rotated boxes that we will use throughout the proof. Fix a prime $p$ and $L>1$ with $L\equiv1\pmod p$, and assume $\CYCLE_p[L]\to\NAE_p[q]$. Write $s=q(p-1)+1$, the number of rows on which the face lists must intersect. Arrange $N$ positions in $L$ equal consecutive blocks around a circle, with the block size a multiple of $p$. The clock $H$ has vertex set $\Z_N$. A tuple $(x^0,\ldots,x^{p-1})$ belongs to its relation if every step, including the last one back to the start, satisfies \[ x^{a+1}-x^a\equiv -N/p+e\pmod N \qquad\text{for some integer }e\text{ with }|e|\le N/(pL). \] Here $a$ is taken modulo $p$. Each step is a backward $1/p$ turn with an error of at most $1/p$ of a block. For $p=2$ this joins each position to the closed arc of one block length centered at its antipode. \begin{lemma}[Clock sandwich]\label{tc-lem:sandwich} Number the blocks $0,\ldots,L-1$ in cyclic order. Sending block $j$ to $pj\bmod L$ gives a sandwich $H\to\CYCLE_p[L]\to\NAE_p[q]$. \end{lemma} \begin{proof} Write $L=p\ell+1$. A backward $1/p$ turn moves $\ell+1/p$ block lengths. With the allowed error it moves between $\ell$ and $\ell+2/p\le\ell+1$ block lengths, so the block index decreases by $\ell$ or $\ell+1$. The label therefore increases by $1$ or $1-p$ modulo $L$. If $m$ of the $p$ steps have increment $1-p$, closure gives $p(1-m)\equiv0\pmod L$. Since $p$ is coprime to $L$ and $0\le m\le p0$. For every finite index set $I$ and coloring $g:[m]^I\to[q]$, there are a set $J\subseteq I$ of size bounded in terms of $m,q,\varepsilon$ alone and a \termdef{nearby-color-predictor}{predictor} $\lambda:[m]^J\to[q]$ such that, for uniform $z\in[m]^I$, \[ \Pr\bigl[\ \exists z'\in[m]^I:\quad |z'_i-z_i|\le1\text{ for all }i\in I,\quad g(z')=\lambda(z|_J)\ \bigr] \ \ge\ 1-\varepsilon . \] \end{lemma} % End of sections/nearby-color-statement.tex Consider a face with $h=s-1$ rows, numbered $1,\ldots,h$ within the face. Write $I_i$ for the coordinates of row $i$ and $\pi_{ij}:I_i\to I_j$ for the composite minor maps, with $\pi_{ii}$ the identity. For each color $c$ let $d_{i,c}(x)$ be the distance from $x$ to $f_i^{-1}(c)$ in the maximum of the circular coordinate distances, measured in clock steps. Give an absent color distance $N$. Moving every argument by at most one step changes each distance by at most one. Draw a uniform terminal tuple $Y\in\Z_N^{I_h}$ and independent uniform offsets $o_{j,w}\in\{0,\ldots,N-1\}$ for $j0$, the face has a list $\Xi\subseteq I_h$ of size bounded in terms of $s,N,q,\varepsilon$. For every block $B\subseteq I_h$ missing $\Xi$, compare the experiment with the same one after adding $N/p$ to $Y$ on $B$. Except with probability $2\varepsilon$, the two readings of $d_{i,c}(X_i)$ differ by at most $2h$, simultaneously for every depth profile, row $i$ and color $c$. \end{lemma} \begin{proof} Color the independent parameters $(Y,o)$ by the table of all the readings, including all choices of the depths. Its entries belong to $\{0,\ldots,N\}$ and its length is at most $hqN^{h-1}$, independent of the arities. Apply \resultref{Lemma}{tc-lem:nearby} once to this finite coloring, representing the clock positions by $0,\ldots,N-1$. At a \termdef{prediction-witness}{witness} for the predicted table, each parameter moves at most one path step. In row $i$ the terminal entry and at most $h-1$ offset terms each change by at most one, so the predicted and actual distances differ by at most $h$. Keep in $\Xi$ just the terminal entries read by the predictor, adding one arbitrary terminal coordinate if needed. Turning $B$ preserves the uniform law and leaves all predictor reads unchanged, including its earlier offset reads. With probability at least $1-2\varepsilon$ both tables are within $h$ of the same prediction in every entry. \end{proof} The proof of the nearby-color lemma is in \resultref{Section}{tc-sec:prediction}. % End of sections/clock-prediction.tex \subsubsection{Intersection of the face lists}\label{tc-sec:intersection} In this section we show that every partition of the terminal coordinates has a block whose turn changes a color distance. The face test then forces that block to meet its list. The \termdef{parameter-star}{star} $S$ is the union of $p$ paths of $N-1$ edges with one endpoint of each path identified to a common center. The paths are its \termdef{star-arm}{arms}, indexed by $\Z_p$. The center has depth zero. On arm $a$, write $(a,t)$ for the vertex at \term{row-depth}{depth} $t\in[N-1]$, its distance from the center. The vertex $(a,N-1)$ is the tip. A \termdef{star-product-cell}{cell of $S^s$} is a product whose factors are vertices or edges of $S$. Its vertices are obtained by choosing a vertex in each factor. Let $\mathcal X$ consist of the cells with at least one factor equal to a single tip. Rotation $T$ adds one to every arm index and fixes each center. For $p=2$, the \term{parameter-star}{star} is a path and $\mathcal X$ is the boundary of a subdivided $s$-cube, with $T$ acting by negation about its center. \begin{lemma}[Cyclic covering]\label{tc-lem:cover} For every coloring of the vertices of $\mathcal X$ by $[q]$, some \term{star-product-cell}{cell} $D\in\mathcal X$ has a color occurring at a vertex of each of $D,T^{-1}D,\ldots,T^{-(p-1)}D$. \end{lemma} We prove the cyclic covering lemma in \resultref{Section}{tc-sec:cover-proof}. \begin{proof}[Conclusion of the proof of \resultref{Theorem}{tc-thm:chains}] Choose the lists of \resultref{Lemma}{tc-lem:completion} with $2\varepsilon<(sN^sp^s)^{-1}$. If their transported intersection is empty, label each terminal coordinate by a row whose deletion gives a list missing that coordinate. Let $\beta_i:I_i\to[s]$ be the pullback of these labels to row $i$. Give each row independent uniform offsets $o_{j,w}$ as in the face test, now including the last row. At a vertex of $\mathcal X$, an \termdef{arm-completion}{arm completion} $\alpha\in\Z_p^s$ keeps its positive-depth arms and chooses an arm at each center. For the first positive row $i$, the prescribed input is \begin{equation}\label{tc-eq:block} x_i(t,\alpha)_v=\alpha_{\beta_i(v)}N/p+ \sum_{j=i}^s\min\{t_j,o_{j,\pi_{ij}(v)}\}\pmod N . \end{equation} Changing the arm at a center turns just its block in this same row. Fix the offsets. Suppose adding one to the arm at any center changes each color distance by at most $2(s-1)$. At each vertex choose one completion and color it by the actual value $c=f_i(x_i(t,\alpha))$. Its distance to color $c$ is zero. Reach any other completion by changing the missing arms one generator step at a time. At most $(s-1)(p-1)$ steps are needed, so at the new input the distance to $c$ is at most $2(s-1)^2(p-1)$. By \resultref{Lemma}{tc-lem:cover}, one cell has a color $c$ on every rotation. Fix arms containing that cell, also at its centers, and use the rotated arms on its rotations. In each rotation take a vertex colored $c$ and pull its color-$c$ witness back along $\pi_{1i}$ to get the same color in row one. Its distance from the prescribed row-one input is no greater, since pullback just repeats coordinates and all depths before $i$ are zero. With the arms fixed, each depth varies by at most one across the cell, so the prescribed inputs vary by at most $s$ steps. On rotation by $T^{-a}$ all prescribed inputs shift by $-aN/p$. Thus for a row-one input $x$ in the chosen cell, color $c$ occurs within \[ 2(s-1)^2(p-1)+s\ \le\ 2ps^2\ \le\ N/(2pL) \] of $x-aN/p$ for every $a$. This contradicts~\eqref{tc-eq:palettes}. Consequently every draw of the offsets has a turn changing some distance by more than $2(s-1)$. There are at most $sN^sp^s$ choices of the moved row, depths and starting arms. One fixed choice has such a change with probability at least $(sN^sp^s)^{-1}$. Delete the moved row, whose depth is zero, and keep the prescribed depths from $i$ through the first full row $k$. In the last row of the face, take the inverse image of the moved block under its map to row $s$. The inputs in~\eqref{tc-eq:block} before and after the turn have exactly the joint law of the two row-$i$ inputs in the face test. Indeed the full row supplies a uniform tuple on $I_k$, absorbing all later contributions and the starting phases conditionally on them. If $k$ ends the face, the terminal tuple $Y$ supplies that uniform tuple directly. The offsets before $k$ remain independent, and the relative turn in both experiments is the pullback of the moved block. This block misses the face list by its label. \resultref{Lemma}{tc-lem:completion} bounds the probability of such a change by $2\varepsilon$, a contradiction. \end{proof} \subsubsection{Cyclic covering}\label{tc-sec:cover-proof} In this section we prove \resultref{Lemma}{tc-lem:cover} using the cyclic form of Tucker's lemma. If each color misses a rotation of each cell, the colors give a labeling that violates Tucker's conclusion. \begin{proof} The join of $s$ copies of $\Z_p$ has vertices $(j,a)\in[s]\times\Z_p$. Its simplices are the sets containing at most one vertex from each copy. Rotation adds one to $a$. On the label set $\Z_p\times[s-1]$, rotation adds one to the first entry and fixes the second. A map is \termdef{rotation-equivariance}{equivariant} if it commutes with these rotations. The cyclic form of Tucker's lemma states that on any rotation-invariant subdivision of the join, every \term{rotation-equivariance}{equivariant} vertex labeling by $\Z_p\times[s-1]$ has an edge whose labels differ in their first entries and agree in their second. Otherwise the labeling would give an \term{rotation-equivariance}{equivariant} simplicial map to the join of $s-1$ copies of $\Z_p$. Such a map is excluded by \cite[Corollary~5.10]{HSSZ09}, applied with $d=s-2$ and $m=s-1$, since a sequence of $s-1$ labels has at most $s-2$ changes. For $p=2$ this is ordinary Tucker's lemma. The subdivision used here refines the octahedral sphere and hence preserves the flag of coordinate hemispheres in \cite[Theorem~2]{tucker}. Use the barycentric subdivision of $\mathcal X$. Its vertices are the nonempty \term{star-product-cell}{cells}, and its simplices are chains of cells under inclusion. To see that it subdivides the join, realize each \term{star-arm}{arm} as $[0,N-1]$. A point of $\mathcal X$ then has depths $t_j\ge0$ with $\max_j t_j=N-1$. Give vertex $(j,a)$ of the join weight $t_j/\sum_k t_k$ if the point lies on arm $a$ in factor $j$, and zero otherwise. Zero depth gives zero weight on every arm. The inverse rescales the weights so that the largest is $N-1$. These maps commute with rotation. On each simplex, normalization is radial projection from a hyperplane with one depth fixed at $N-1$ to the hyperplane where the weights sum to one. It sends the simplex onto the convex hull of its vertex images. Suppose no cell has a color on all its rotations. For each cell $D$ put \[ P(D)=\{(i,b)\in\Z_p\times[q]:\text{some vertex of }T^{-i}D\text{ has color }b\}. \] The set is nonempty. Each color misses at least one rotation, so $|P(D)|\le q(p-1)=s-1$. Rotation of $D$ adds one to the first entries of $P(D)$. If a nonzero shift fixed this set, primality of $p$ would put any color present in all $p$ rotations. Every orbit of these sets therefore has size $p$. In each orbit, number one set $0$ and its successive shifts $1,\ldots,p-1$. Label $D$ by the number of $P(D)$ and by $|P(D)|$. This labeling is \term{rotation-equivariance}{equivariant}. Adjacent vertices of the subdivision represent nested cells, so their sets $P(D)$ are nested. If their sizes agree, the sets and their numbers agree. This contradicts Tucker's lemma. \end{proof} % Source: sections/nearby-color-proof.tex \subsubsection{Predicting a nearby color}\label{tc-sec:prediction} In this section we prove \resultref{Lemma}{tc-lem:nearby} by placing the input in a random product of vertices and edges of a path. Every point of this product is within one step of the input in each coordinate, so it suffices to predict a color that occurs in the product. The lemma also follows from Austin's junta theorem~\cite[Theorem~1.1]{Austin16} by representing the $m$ symbols as midpoints of equal intervals and approximating the distance to each nonempty color class on the unit cube. \begin{proof} Let $g:[m]^I\to[q]$ be the given coloring. When $I$ is empty, $g$ is constant, so assume $n=|I|\ge1$. Give $[m]$ the path edges $\{j,j+1\}$ for $j\in[m-1]$. Let $P$ consist of these edges and the singletons $\{j\}$ for $j\in[m]$. A \termdef{path-box}{box} is a product of factors $z_i\in P$ for $i\in I$. We identify it with the tuple $z\in P^I$. We adapt Russo's estimates for pivotal sets of increasing Bernoulli events and the sequential coupling in his proof of Proposition~2~\cite[Sections~3--5]{Rus82}. Choose a uniform path vertex $v$ and then a uniform incident edge $e$. Each incident pair has probability at least $1/(2m)$. \termdef{vertex-opening}{Opening a vertex} replaces $\{v\}$ by $e$. Open with probability $t$ and otherwise keep $\{v\}$. Make these choices independently in each coordinate to obtain a random \term{path-box}{box} $Z$. Write $\Pr_t$ and $\mathbb E_t$ for probability and expectation under this choice. For $b\in[q]$, let $H_b$ be the event that the box contains a vertex of color $b$. These events are increasing under inclusion and cover all boxes. \paragraph{Finding the coordinates.} For $z\in H_b$, a \termdef{pivotal-coordinate}{pivotal coordinate} for $b$ is an index $i$ at which some replacement of $z_i$ by an element of $P$ removes the box from $H_b$. Let $K_b(z)$ be the set of such indices, and put $K_b(z)=\varnothing$ outside $H_b$. Once a growing box enters $H_b$, $K_b$ can only shrink. Indeed, if every replacement at $i$ leaves color $b$ present, this remains true when the other factors grow. We will show that for each $\delta>0$ there are $t\in[1/4,1/2]$ and $J\subseteq I$, with size bounded in terms of $m,q,\delta$, such that \begin{equation}\label{tc-eq:captured-pivots} \sum_{b\in[q]}\Pr_t(K_b\not\subseteq J)\le\delta . \end{equation} For $G\subseteq P^I$, define $I_t(G)$ as follows. At coordinate $i$ draw the incident pair $(v,e)$ above, independently of the other factors of $Z$. Sum over $i$ the probability that changing $\{v\}$ to $e$ changes membership in $G$. First, suppose the events in a finite family $\mathcal G$ change membership at most $k$ times in total along any increasing sequence of boxes. Then \begin{equation}\label{tc-eq:opening-budget} \underset{t}{\operatorname{avg}}\ \sum_{G\in\mathcal G}I_t(G)\le8k, \qquad t=\frac14+\frac{j}{4n},\quad 0\le j0$, \[ a\log(1/a)-\mathbb E_t[\,a_{Z_i}\log(1/a_{Z_i})\,] \le a\log\bigl(\max_u a_u/a\bigr) \le \max_u a_u-\min_u a_u . \] Join a minimizing factor to a maximizing factor along the path of alternating vertices and edges. Across each incident pair the difference of section probabilities is at most the probability that their indicators differ on the same remaining factors. Each pair has probability at least $1/(2m)$, so the range is at most $2m$ times this coordinate's contribution to $I_t(G)$. Apply the same bound inductively to each section. Averaging over $u$ gives the contributions of all remaining coordinates, proving \eqref{tc-eq:rare-event}. The empty product has probability zero or one for every event, which starts the induction. With all other factors fixed, a \term{pivotal-coordinate}{pivotal coordinate} has a nonempty proper section of $H_b$. On that section at least one incident pair changes membership. Hence $\mathbb E_t|K_b|\le2m I_t(H_b)$. A growing box enters $H_b$ at most once, so this expectation averages at most $16m$ by~\eqref{tc-eq:opening-budget}. For an integer $r\ge1$, put $a_{b,i}=\Pr_t(i\in K_b,\ |K_b|\le r)$. At the first box in $H_b$ with $|K_b|\le r$, at most $r$ indices remain in $K_b$. Each can leave only once. Thus for fixed $b$ the events defining $a_{b,i}$ change membership at most $2r$ times in total. Equations \eqref{tc-eq:opening-budget} and \eqref{tc-eq:rare-event} show that $\sum_i a_{b,i}\log(1/a_{b,i})$ averages at most $32mr$. For some common $t$ in~\eqref{tc-eq:opening-budget}, summing these two estimates gives \[ \sum_b\mathbb E_t|K_b| +\frac1r\sum_{b,i}a_{b,i}\log(1/a_{b,i})\le48mq . \] For $0<\tau<1$, put $i$ in $J$ if $\Pr_t(i\in K_b)\ge\tau$ for some $b$. The first sum gives $|J|\le48mq/\tau$. A box with $K_b\not\subseteq J$ either has at least $r+1$ pivotal coordinates or has $i\in K_b\setminus J$ with $|K_b|\le r$. For each such $i$ we have $a_{b,i}<\tau$, so $a_{b,i}\log(1/a_{b,i})\ge a_{b,i}\log(1/\tau)$. Summing over colors gives \[ \sum_b\Pr_t(K_b\not\subseteq J) \le 48mq\left(\frac1{r+1}+\frac{r}{\log(1/\tau)}\right). \] Choose $r$ large and then $\tau$ small to obtain~\eqref{tc-eq:captured-pivots}. \paragraph{Predicting the color.} Given the input on $J$, \term{vertex-opening}{open its vertices} independently with probability $t$. For a uniform input the resulting factors have the same distribution as $Z|_J$. Given their values $z$, choose a color $b$ maximizing $\Pr_t(H_b\mid Z|_J=z)$. This probability is at least $1/q$, since every box contains a color. Condition $Z$ on $H_b$ and $Z|_J=z$, and couple its remaining factors with uniform input vertices outside $J$. On $J$ the input already lies in the chosen factors. For one coordinate, order $P$ as $\{1\},\{1,2\},\{2\},\ldots,\{m\}$. Partition a list of equally likely tickets into consecutive blocks of sizes proportional to the probabilities of these factors before conditioning. Partition the same list into $m$ equal blocks for the input vertices. The cut between input vertices $j$ and $j+1$ lies inside the block for $\{j,j+1\}$. The mass of that block on either side of the cut comes from opening the incident vertex to this edge, so it is at least $t/(2m)\ge1/(8m)$ on each side. Now change the factor law. If the mass of each initial segment of the ordered set $P$ changes by at most $1/(8m)$, every cut still lies in its edge block, possibly at an endpoint. Thus a single uniform ticket gives a factor with the specified law and a uniform input vertex contained in that factor. All laws used here are rational, so a finite common number of tickets suffices. Expose the factors of $Z$ outside $J$ in a fixed order. Given the factors already exposed, let $u_i$ be the conditional probability that the next index $i$ belongs to $K_b(Z)$. With all other factors fixed, the factor at $i$ has its original law conditioned on their section of $H_b$. This section is nonempty. It is proper exactly when $i\in K_b(Z)$, so only in this case can the law change. Averaging over the unexposed factors, the probability of any initial segment of $P$ differs from its unconditioned probability by at most $u_i$. Use a fresh ticket for this law and the uniform input vertex. The new input vertex is uniform independently of all previous draws. It belongs to its factor whenever $u_i\le1/(8m)$. At the first prefix with $u_i>1/(8m)$, the conditional probability of $K_b\not\subseteq J$ exceeds $1/(8m)$. These first prefixes are disjoint. Their total probability is therefore at most $8m\,\Pr_t(K_b\not\subseteq J\mid H_b,Z|_J=z)$. In every other outcome the whole input lies in $Z$, which contains a vertex of color $b$. Averaging over $z$ and using $\Pr_t(H_b\mid Z|_J=z)\ge1/q$ bounds the error by $8mq\sum_b\Pr_t(K_b\not\subseteq J)\le8mq\delta$. Take $\delta=\varepsilon/(8mq)$. Finally, for each fixed input on $J$, choose the color most likely to occur within one step in every coordinate of the full uniform input conditional on these values. This deterministic \term{nearby-color-predictor}{predictor} succeeds at least as often as the randomized choice above. \end{proof} % End of sections/nearby-color-proof.tex % End of sections/appendix-tight-cycle.tex \clearpage % Source: sections/appendix-hypergraphs.tex \section{Auxiliary results for hypergraph colouring}\label{app:hypergraphs} The first lemma extends the tight-cycle criterion to composite arities. A periodic word need not have the specified period as its least period. \begin{lemma}[Coprime periods]\label{lem:prime-lift} Let $r\ge2$ and let $T\subseteq A^r$ be cyclically invariant, let $T\to S\subseteq B^r$ be a finite promise template with no constant tuple in $S$, and suppose a periodic word of period $s$ has all its length-$r$ windows in $T$, where $\gcd(r,s)=1$. Then $3\text{-SAT}\le_{\mathrm L}\PCSP(T,S)$ with a \term{logspace}{LOGSPACE} \term{decoder}{search decoder}. Moreover, for every prime $p>\max\{2r,r+(r-1)s\}$, there is a finite $d$ with $\Ch_{|B|(p-1),d}(\Pol(T,S),\PP)$. If $r$ itself is prime, the height can instead be $|B|(r-1)$. \end{lemma} \begin{proof} We first construct a periodic sequence of length \(n=p-r\) with all its \(r\)-windows in \(T\). Form a digraph on the tuples of \(T\) by joining \((a_1,\ldots,a_r)\) to \((a_2,\ldots,a_r,b)\) whenever the latter tuple belongs to \(T\). The windows of the given sequence form a closed walk of length \(s\). At the same starting tuple its successive rotations form a closed walk of length \(r\). Choose \(0\le j(r-1)s\), concatenating \(j\) of the first walks and \((n-js)/r\) of the second gives a closed walk of length \(n\). Let \(a_i\), indexed modulo \(n\), be the first letter of its \(i\)-th tuple. Overlap of successive tuples gives \((a_i,\ldots,a_{i+r-1})\in T\) for all \(i\). For any \(r\)-ary relation \(U\), put \[ V_p(U)=\bigl\{x:(x_j,x_{j+1},\ldots,x_{j+r-1})\in U \text{ for each }j\in\Z/p\Z\bigr\}, \] where \(x\) ranges over length-\(p\) words on the domain of \(U\). Every \(p\)-letter window \(x=(a_i,\ldots,a_{i+p-1})\) lies in \(V_p(T)\). Ordinary \(r\)-windows inside it are legal by construction. A window crossing the end consists of the last \(k\) entries of \(x\) and its first \(r-k\), for some \(00$ variables, one of the first $n(d-1)+1$ positive integers $t$ makes every entry of $\sum_{j=1}^d t^{j-1}b_j$ nonzero, since each coordinate polynomial excludes at most $d-1$ choices. Gaussian elimination and these evaluations have polynomial bit complexity. An input without variables is immediate. \end{proof} \begin{lemma}[Distinct vertices]\label{lem:distinct-vertices} Let $R\to S\subseteq B^r$ be a fixed finite promise template, with $r\ge2$ and $B\ne\varnothing$. There is a LOGSPACE reduction from $\PCSP(R,S)$ to its restriction to instances in which every constraint uses pairwise distinct variables, with a LOGSPACE search decoder. \end{lemma} \begin{proof} Use the variable-copy construction of Brakensiek and Guruswami~\cite[Theorem~6.15]{bg-pcsp}. Replace each vertex by $q(r-1)+1$ copies, where $q=|B|$. Replace each constraint by all versions using pairwise distinct copies in its ordered positions. Strong colourings extend by copying values. In a weak colouring, choose for each original vertex a colour occurring on at least $r$ of its copies. Every original constraint can then be read on distinct copies of those colours. This construction and decoder use \term{logspace}{LOGSPACE} for fixed parameters. \end{proof} % End of sections/appendix-hypergraphs.tex \clearpage % Source: sections/appendix-smooth-digraphs.tex \section{Constructions for smooth digraphs}\label{app:smooth} The proof of \resultref{Theorem}{thm:smooth} uses two constructions. First, a path power reduces one weak component to algebraic length one. We then construct a digraph \(D\) that both admits the cyclic certificate from \resultref{Theorem}{thm:cyclic} and maps to the given component after finitely many arc-digraph iterations. \subsection{Transferring hardness through arc digraphs} The palette bound is due to Harner and Entringer~\cite{harner-entringer}. Its adjunction formulation is \cite[Observation~4.14]{kowz}. We give the decoder explicitly. \begin{lemma}\label{lem:arc-transfer} Let $D,Q,B$ be finite nonempty digraphs with $D$ smooth, $B$ loopless, and $\delta^tD\to Q\to B$ for some fixed $t\ge0$. If $\PCSP(D,K_M)$ is hard for every sufficiently large $M$, then $\PCSP(Q,B)$ is hard. More precisely, a LOGSPACE reduction from 3-SAT with a LOGSPACE search decoder to each sufficiently large-palette problem transfers to $\PCSP(Q,B)$. \end{lemma} \begin{proof} Choose $n\ge\max(2,|V(B)|,|V(D)|)$ large enough, set $n_t=n$, and put $n_i=2^{n_{i+1}}$ for $i=t-1,\ldots,0$. If $f:\delta X\to K_c$, assign to each vertex $v$ of $X$ the set of colors on arcs leaving $v$. For an arc $u\to v$, its color belongs to the set at $u$ and to none of the colors on arcs leaving $v$. The two sets therefore differ, giving $X\to K_{2^c}$. Together with $X\to D\Rightarrow\delta X\to\delta D$, this proves \[ \begin{aligned} \PCSP(D,K_{n_0}) &\le_{\mathrm L}\PCSP(\delta D,K_{n_1}) \le_{\mathrm L}\cdots\\ &\le_{\mathrm L}\PCSP(\delta^tD,K_n) \le_{\mathrm L}\PCSP(Q,B). \end{aligned} \] The last reduction is the identity, using $\delta^tD\to Q$ and $B\to K_n$. All intermediate pairs are promise templates: from $\delta^tD\to Q\to B\to K_n$, the same color-set argument gives $\delta^iD\to K_{n_i}$ for each $i$. To keep domains nonempty, each arc-digraph step may add an isolated vertex, which does not affect any homomorphism to the nonempty targets. All iteration counts and palettes are fixed. The instance maps enumerate walks of fixed length, and the decoder repeatedly takes outgoing color sets, so both use LOGSPACE. \end{proof} \subsection{Reducing the algebraic length} Barto, Kozik and Niven~\cite[Lemma~5.1 and the proof of Theorem~3.1]{bkn} use the same path power to obtain algebraic length one. We record the statement on a single cyclic class. \begin{lemma}[Reduction of algebraic length]\label{lem:smooth-period} Let $A$ be weakly connected and smooth with algebraic length $d$. Partition its vertices into classes $V_0,\ldots,V_{d-1}$ using a map to $\cyc d$. Let $P$ have vertex set $V_0$ and an arc for each pair joined in $A$ by a directed walk of exactly $d$ steps. Then $P$ is weakly connected, smooth, and has algebraic length one. \end{lemma} \begin{proof} For $d=1$ this is immediate. Suppose $d>1$. Smoothness follows by taking $d$ steps forwards and backwards. For $x\in V_j$, $j>0$, let $E(x)$ be the set of endpoints of $(d-j)$-step walks from $x$. They all lie in $V_0$. Take a $j$-step walk from some $z\in V_0$ to $x$, using smoothness. Every $y\in E(x)$ is a $P$-outneighbor of $z$. Thus these endpoints belong to a common weak component of $P$ and have equal images in any homomorphism $f:P\to\cyc e$. Put $E(x)=\{x\}$ on $V_0$. For an arc $x\to x'$ in $A$ with $x\notin V_0$, the sets $E(x),E(x')$ intersect. When $x\in V_0$, $x$ has a $P$-arc to every endpoint in $E(x')$. It follows from weak connectedness of $A$ that $P$ is weakly connected. Given $f:P\to\cyc e$, define a map to $\Z_{de}$ on $A$ by putting $F(x)=d f(x)$ on $V_0$ and \[ F(x)=d f(y)-(d-j),\qquad x\in V_j,\ j>0,\ y\in E(x). \] It is well defined because all such $f(y)$ agree. It advances by one on each arc. Inside the nonzero classes use a common endpoint. On entry to $V_0$ the endpoint is the vertex entered, and on departure from $V_0$ one has $f(y)=f(x)+1$ along the corresponding $P$-arc. Thus $A\to\cyc{de}$, forcing $de\mid d$, or $e=1$. The algebraic length of $P$ is therefore one. \end{proof} \subsection{Periodic walks and the auxiliary digraph}\label{app:smooth-tracks} Fix a finite smooth weakly connected loopless digraph $A$ of algebraic length one. Let $L\ge2$ be divisible by the lengths of all simple directed cycles of $A$. A \emph{track} is an $L$-periodic directed walk $c:\Z\to A$. Write $c\reach d$ if some bi-infinite directed walk in $A$ agrees with $c(t)$ for all sufficiently negative $t$ and with $d(t)$ for all sufficiently positive $t$. The same time coordinate $t$ fixes the phase on both tracks. \begin{lemma}\label{lem:smooth-tracks} For every track $c$ and integer $q$, there is a zigzag of tracks from $c(t)$ to $c(t-q)$ in which consecutive tracks are related by $\reach$ in one direction or the other. \end{lemma} \begin{proof} Give $F=A\times\cyc L$ the arcs $(x,r)\to(y,r+1)$ for $x\to y$ in $A$. This lift is weakly connected. In fact at a fixed vertex of $A$ a closed signed walk of algebraic length one shifts the second coordinate by one, and such walks together with lifts of connecting walks reach every point of $F$. Each track determines a directed cycle in $F$, comprising $(c(t),t\bmod L)$. To find such a track in a strongly connected component of $F$ containing a directed cycle, take a vertex $(x,r)$ on that cycle. Its projection puts $x$ on a positive closed walk, hence on some simple directed cycle through $x$. Traverse that simple cycle repeatedly for exactly $L$ steps. The lifted closed walk is in the same component. Call these components recurrent. For two specified tracks $c,d$, the condition $c\reach d$ is equivalent to directed reachability from their respective recurrent components in $F$. In the forward direction lift the two-sided walk using the time coordinate. In the other direction find a directed path starting on the chosen $c$-orbit and ending on the chosen $d$-orbit, using strong connectivity inside the two components. The time coordinate increases by one on every edge. Extending the path to the left by $c$ and to the right by $d$ thus gives precisely the prescribed phases. The recurrent components form a connected graph when comparable components are joined by an undirected edge. To see this, every vertex $v$ of $F$ has a recurrent predecessor and a recurrent successor, obtained by tracing walks backwards and forwards using smoothness. Every recurrent predecessor of $v$ is comparable with every recurrent successor of $v$, so all these recurrent components belong to one connected class. An arc $v\to w$ identifies the classes of $v$ and $w$ by comparing a recurrent predecessor of $v$ with a recurrent successor of $w$. The assertion follows by weak connectedness of $F$. Apply it to the components containing the two specified tracks, with arbitrary tracks in intermediate recurrent components. \end{proof} Fix a residue $q\pmod L$ containing arbitrarily large primes. Such a residue exists by infinitude of primes and the pigeonhole principle, and $\gcd(q,L)=1$. Choose a track $c_0$, and use \resultref{Lemma}{lem:smooth-tracks} to obtain a zigzag with last term $c_h(t)=c_0(t-q)$. Record a sign for each step, according as its allowed transition follows the indexing order or goes against it. We may assume the sequence of signs alternates, including at the cyclic seam. Indeed, at any junction of equal signs, duplicate the intermediate track and insert a step of the opposite sign, using the periodic walk from the track to itself. At the last-to-first junction do the same with a duplicate of $c_0$ at the start, or of its shifted copy at the end. If needed insert further pairs of duplicates so $h\ge4$. The result has even $h$ and unchanged net displacement. Extend the tracks to all $j\in\Z$ by $c_{j+h}(t)=c_j(t-q)$. \paragraph{The auxiliary digraph.} Define a finite digraph $D$ with $h$ distinct copies of $\cyc L$. Denote its vertices using \[ \pi(j,z)=\bigl(j\bmod h,\;z-\lfloor j/h\rfloor q\bmod L\bigr) \qquad (j,z\in\Z). \] In particular $\pi(j+h,z)=\pi(j,z-q)$. There is always an arc $\pi(j,z)\to\pi(j,z+1)$. Write $\epsilon_j=+1$ at the transition between $j-1$ and $j$ if its sign is forward, so that $c_{j-1}\reach c_j$. Write $\epsilon_j=-1$ otherwise, so that $c_j\reach c_{j-1}$. At each transition add, for every $z$, \[ \begin{cases} \pi(j-1,z)\to\pi(j,z+1),&\epsilon_j=+1,\\ \pi(j,z)\to\pi(j-1,z+1),&\epsilon_j=-1. \end{cases} \] These definitions are consistent under $j\mapsto j+h$, $z\mapsto z+q$. In the alternating index ring, every index is a source or a sink for transitions between distinct tracks. A directed walk in $D$ therefore changes tracks at most once. This generalizes the tambourine to an alternating ring of cycles with a phase change at the closing seam. Recall that vertices of $\delta^tX$ are directed walks of length $t$, with adjacency given by shifting one step along a walk of length $t+1$. \begin{lemma}\label{lem:smooth-window} For some fixed $t$, $\delta^tD\to A$. \end{lemma} \begin{proof} On a two-sided $D$-walk without a switch, the state $\pi(j,z)$ is read as the vertex $c_j(z)$. The phase convention makes this independent of the representation of the state. For each actual cross-edge $e$ fix one two-sided $A$-walk $W_e$ with the two required periodic tails, placing the $D$-edge $e$ at times $0,1$. Such a walk exists by the oriented connection between the specified tracks and a common shift of their time parameter. For example, if $e$ goes from $\pi(j-1,z)$ to $\pi(j,z+1)$, the required tails are $c_{j-1}(z+k)$ at time $k\ll0$ and $c_j(z+k)$ at time $k\gg0$. There are finitely many edges, so choose one $T$ so large that all these walks already agree with the required tails at $|k|\ge T-1$. Decode a two-sided $D$-walk with its unique switch $e$ at times $u,u+1$ by the translated walk $W_e(k-u)$ at time $k$. If there is no switch use its periodic track. The value at time $k$ depends only on the window $[k-T,k+T]$. A visible switch specifies its connector. If none is visible, the periodic value is correct. Every finite $D$-walk extends in both directions since its endpoints lie on directed cycles. Assign each length-$2T$ walk the decoded value at its center. Consecutive length-$2T$ walks extend to one common two-sided walk, so the assigned values form an $A$-arc. Take $t=2T$. \end{proof} \subsection{A cyclic relation gadget}\label{app:smooth-gadget} \begin{lemma}[Cyclic relation gadget]\label{lem:smooth-cyclic} For the digraph \(D\) constructed above and every \(M\ge |V(D)|\), there are a prime \(p\) and a finite promise template \((R_D,R_{K_M})\) of arity \(p\) with the following properties: \begin{enumerate} \item[\textup{(i)}] \(R_D\) is invariant under cyclic rotation and contains a tuple joined to its rotation by single-coordinate changes inside \(R_D\); \item[\textup{(ii)}] \(R_{K_M}\) contains no constant tuple; \item[\textup{(iii)}] a fixed gadget gives a LOGSPACE reduction \(\PCSP(R_D,R_{K_M})\le_{\mathrm L}\PCSP(D,K_M)\), with a LOGSPACE decoder. \end{enumerate} \end{lemma} \begin{proof} Set $m=M+1$, $\lambda=2L-1$ and $C=\lambda+1$. Pick $P>4Cm+2\lambda+2$ and a prime $p\equiv q\pmod L$ with $p>hP$. The gadget $Y$ has vertices $(i,r)$, where $0\le ii$ and use the lifts $s$ and $s-\lambda$. Its phases advance by one since $-\lambda\equiv1\pmod L$. To decide which tracks are used, compare the two ordered arrays of thresholds $b_j(i)$ and $b_j(k)+\lambda$ at $s-a$. The possible motion of each threshold is confined to $[u_j-Cm,u_j+Cm+\lambda]$. These intervals are disjoint, so at most one threshold can change the index. Its displacement is \[ b_j(k)+\lambda-b_j(i)=\lambda-\epsilon_j C(k-i). \] It is negative at a forward transition, allowing only a change from $j-1$ to $j$, and positive at a backward transition, allowing only a change from $j$ to $j-1$. Each possible change is an edge of $D$. Thus $w^a:Y\to D$ for every $a$. When $a$ increases by one, the only columns that can change are $r\equiv a+b_j(i)\pmod p$. For a fixed $j$, distinct such columns are at distance at least $C>\lambda$; for different $j$, the cyclic gaps are also greater than $\lambda$. Consequently there is no $Y$-edge between two columns that change in this step. Changing those columns separately and in any order therefore preserves every edge, which keeps either its old assignment or its new one. This gives a reconfiguration inside $R_D$. Choose a positive $a$ with $a\equiv1\pmod p$ and $a\equiv0\pmod L$. The Chinese remainder theorem applies. Now $s-a$ lifts $r-1$, and its phase equals that of $s$, so $w^a(i,r)=w^0(i,r-1)$. Concatenating the steps from $0$ to $a$ gives exactly the right rotation. This proves property~(i). The map $D\to K_M$ induces $R_D\to R_{K_M}$, so the pair is a promise template. The gadget has fixed size, and its decoder groups the $m$ vertex colours belonging to each relation variable. This proves the LOGSPACE guarantees in~(iii). \end{proof} % End of sections/appendix-smooth-digraphs.tex \clearpage % Source: sections/appendix-reduction-conditions.tex \section{Proofs for the reduction criteria of Section~\ref{sec:reductions}}\label{app:comparison} \subsection{Exact lists and intersecting lists} Boolean conjunction separates ordinary from exact set-valued homomorphisms. Boolean majority separates exact set-valued homomorphisms from $d$-homomorphisms. \begin{example}[A proper weakening]\label{ex:meet-two} Let $\mathscr C_2(I)$ consist of the Boolean functions $f_S(x)=\bigwedge_{i\in S}x_i$, where $S\subseteq I$ and $1\leq|S|\leq2$. Since $f_S^\pi=f_{\pi(S)}$, these functions form a \term{minion}{minion}. The \term{list-assignment}{list assignment} \[ \xi(f_S)=\{e_i:i\in S\} \] is an \term{exact-homomorphism}{exact $2$-set-valued homomorphism} to $\PP$. Binary conjunction is fixed by the transposition of its two coordinates. Neither binary projection is fixed, so there is no ordinary minion homomorphism to $\PP$. \end{example} \begin{example}[Majority separates the two \term{list}{list} conditions]\label{ex:maj} Let $\mathscr T$ be the \term{minion}{minion} generated by the Boolean majority function $m(x,y,z)$, which returns the value occurring at least twice. Every \term{operation}{operation} in $\mathscr T$ is a \term{projection}{projection} or majority on three distinct coordinates. Selecting all \term{essential-coordinate}{essential coordinates} gives a \term{d-homomorphism}{$3$-homomorphism} $\mathscr T\to\PP$: a \term{minor}{minor} is nonconstant and every \term{essential-coordinate}{essential coordinate} of the \term{minor}{minor} is the image of an \term{essential-coordinate}{essential coordinate} of the original \term{operation}{operation}. There is no \term{exact-homomorphism}{exact set-valued homomorphism} $\mathscr T\to\PP$, for any finite bound. Such an \term{exact-homomorphism}{exact set-valued homomorphism} must send each \term{projection}{projection} $e_i$ to $\{e_i\}$, since \term{projection}{projections} are \term{minor}{minors} of the unary \term{projection}{projection}. The invariance of $m$ under all permutations forces its nonempty \term{list}{list} to contain all three \term{projection}{projections}. Under the map $\pi(1)=\pi(2)=1$, $\pi(3)=2$, that \term{list}{list} has image $\{e_1,e_2\}$. But $m^\pi=e_1$, whose \term{list}{list} must be $\{e_1\}$, a contradiction. \end{example} \subsection{\term{bk-homomorphism}{Barto--Kozik homomorphisms}}\label{app:bk} Barto and Kozik observed that ordinary minion homomorphisms compose on either side of a $(d,r)$-homomorphism and asked about composing two $(d,r)$-homomorphisms~\cite[footnote~3 after Definition~3]{bk}. \begin{proposition}[Composition]\label{prop:bk-composition} The \term{union-composition}{union composition} of a $(d,r)$-Barto--Kozik homomorphism $\xi$ and an $(e,s)$-Barto--Kozik homomorphism $\eta$ has parameters $(de,R)$, where $R=r(d(s-1)+1)$. \end{proposition} \begin{proof} Put $\chi=\eta\star\xi$. Suppose a source \term{minor-chain}{minor chain} of $R+1$ \term{operation}{operations} has no $\chi$-\term{compatible-pair}{compatible pair}. Fix a position $i$ and $g\in\xi(f_i)$. There are at most $s-1$ later positions $j$ with $g^{\pi_{ij}}\in\xi(f_j)$. Otherwise $g$, followed by its images at $s$ such positions, forms an actual \term{minor-chain}{minor chain} in $\N$: all images come from the same $g$ and the \term{coordinate-map}{coordinate maps} compose. Applying $\eta$ to this \term{minor-chain}{minor chain} produces a $\chi$-\term{compatible-pair}{compatible pair}, a contradiction. Call $j>i$ a neighbour of $i$ if $\xi(f_i)^{\pi_{ij}}\cap\xi(f_j)\ne\varnothing$. Each position has at most $k=d(s-1)$ later neighbours. Select the earliest remaining position and delete it together with its later neighbours. Each selection removes at most $k+1$ positions. From $r(k+1)+1$ positions this gives at least $r+1$ selected positions with no \term{compatible-pair}{compatible pair}. The source \term{subchain}{subchain} on these positions contradicts the $(d,r)$ property of $\xi$. \end{proof} \begin{example}[Two layers are strictly more general than one]\label{ex:quorum} We use the minion $\QQ$ and its two-state selection from the project note~\cite{project-restricted}. Its elements are the following proper six-colorings. Take an upward-closed family $W\subseteq2^I$ satisfying $A\in W\iff I\setminus A\notin W$, and $i\in I$. Define $f_{W,i}:\{0,1,2\}^I\to\{0,1,\ldots,5\}$ by \[ f_{W,i}(x)= \begin{cases} a,&\{j:x_j=a\}\in W\quad(a\in\{0,1,2\}),\\ 3+x_i,&\text{if no color class belongs to }W. \end{cases} \] Any two members of $W$ intersect, so at most one color class belongs to $W$. Adjacent inputs cannot receive the same color in the first case; equal colors in the second case would force agreement at coordinate $i$. Thus $f_{W,i}$ is proper. Its \term{minor}{minors} obey \[ f_{W,i}^{\pi}=f_{W^\pi,\pi(i)},\qquad W^\pi=\{A\subseteq J:\pi^{-1}(A)\in W\}. \] The family $W^\pi$ has the same two properties as $W$, so $\QQ$ is a \term{minion}{minion}. The family $W$ is recovered from two-color inputs: the value on an input using only $0,1$ is zero exactly when its zero set belongs to $W$. If $W=\{A\subseteq I:j\in A\}$ for some $j$, then $f_{W,i}=e_j$. Otherwise the function determines $i$ uniquely: any two distinct coordinates can be separated by a partition of $I$ into three sets outside $W$, and the corresponding input distinguishes their functions. To construct such a partition when one coordinate $i$ belongs to a minimal member $A$ of $W$, use $\{i\},A\setminus\{i\},I\setminus A$. All three sets lie outside $W$: in particular, a singleton in $W$ would force $W$ to have the excluded form. If neither coordinate belongs to any minimal member of $W$, move the two coordinates into different parts of a partition just constructed. These moves preserve nonmembership in $W$, since they do not change which minimal members of $W$ are contained in a part. Select $j$ for a \term{projection}{projection} $e_j$, and $i$ for a nonprojection $f_{W,i}$. Assign these two cases states $0$ and $1$. States do not increase under \term{minor}{minors}, and selections \term{transport}{transport} exactly whenever states agree. In a two-arrow \term{minor-chain}{minor chain} two adjacent states agree; hence $\BK_{1,2}(\QQ,\PP)$ holds. Nevertheless there is no \term{d-homomorphism}{$D$-homomorphism} $\QQ\to\PP$ for any finite $D$, even if compatibility is tested only on \term{surjective-minor}{surjective minors}. Given proposed \term{list}{lists} $C$, set $m=D+1$, $q=4D+1$, choose an $m$-ary \term{projection}{projection} $e_j$, and take $f=f_{W,i}$ on $[q]$, where $W=\{A\subseteq[q]:|A|\geq2D+1\}$ and $i\in[q]$ is arbitrary. Choose $b\notin C(e_j)$. Send $C(f)$ to $b$, send $D$ unmarked coordinates bijectively to $[m]\setminus\{j\}$, and send all remaining coordinates to $j$. This map $\pi$ is onto, and at least $2D+1$ source coordinates map to $j$. Therefore $f^\pi=e_j$, whereas $\pi(C(f))\cap C(e_j)=\varnothing$. This separation is for the \term{function-minion}{function minion} $\QQ$. \end{example} \subsection{A separation at the Barto--Kozik condition}\label{app:injective} \begin{example}[A finite-template separation]\label{ex:st} \AP\phantomintro{threshold-minion}Let $\mathrm{ST}$ be the Boolean \term{minion}{minion} generated by \[ g_{2m+1}(x_1,\ldots,x_{2m+1}) =\mathbf1\left[x_1+\sum_{j=1}^{m}2^j(x_{2j}-x_{2j+1})>0\right], \qquad m\geq0. \] Here $\mathbf1[P]$ is one if the statement $P$ holds and zero otherwise. Banakh and Kozik realize $\mathrm{ST}$ as the \term{polymorphism-minion}{polymorphism minion} of a finite Boolean \term{template}{promise template} by naming both unary singletons~\cite[Theorem~3.8]{banakh}. Their proof gives \term{injective-layered-choice}{injective layered choice} for $\mathrm{ST}$ \cite[Observation~3.9 and the proof of Theorem~3.2 in Section~5.2]{banakh}. Their hardness proof~\cite[Theorem~3.1 and Appendix~B]{banakh} uses smooth layered Label Cover. \resultref{Theorem}{thm:minion-reduction} gives a PCP-free reduction through the injective variant of the Barto--Kozik condition in Section~\ref{sec:injective}. For every $d,r$, their counterexample to a $(d,r)$-Barto--Kozik homomorphism $\mathrm{ST}\to\PP$ uses only coordinate identifications, so it also excludes a surjective Barto--Kozik homomorphism \cite[proof of Observation~3.7]{banakh}. \end{example} \subsection{\term{consistency-reduction}{Consistency reductions}}\label{app:consistency} We recall the level construction in \resultref{Theorem}{thm:consistency-algebraic} and the two properties of consistency reductions used in the comparison, namely closure under composition and their separation from the chain condition. \begin{definition}[Levels of a minion {\cite[Definition~3.2]{bhz}}] \label{def:minion-level} Fix a \term{minion}{minion} $\mathscr R$ and $k\geq1$. Choose a finite nonempty family $\mathcal E=(E_x)_{x\in X}$ of finite nonempty sets. For $j\geq0$ and $\bar x=(x_1,\ldots,x_j)\in X^j$, put $E_{\bar x}=\prod_{i=1}^jE_{x_i}$; the empty product is a singleton. Choose elements $r_{\bar x}\in\mathscr R(E_{\bar x})$ for $\bar x\in X^k$. For $\sigma:[k]\to[k]$, let \[ p_{\bar x,\sigma}:E_{\bar x}\to E_{\bar x\circ\sigma}, \qquad (a_1,\ldots,a_k)\mapsto(a_{\sigma(1)},\ldots,a_{\sigma(k)}). \] Require compatibility under reindexing, \[ r_{\bar x\circ\sigma}=r_{\bar x}^{p_{\bar x,\sigma}} \qquad(\bar x\in X^k,\ \sigma:[k]\to[k]). \] An $I$-ary element of the \termdef{minion-level}{$k$-th level} $\mathrm{lvl}_k(\mathscr R)$ is a triple $(\mathcal E,r,w)$, where $w=(w_{\bar y})_{\bar y\in X^{k-1}}$ is obtained from some $z\in X$ and $\beta:E_z\to I$ by \[ w_{\bar y}=r_{(z,\bar y)}^{\,\beta\times\mathrm{id}_{E_{\bar y}}} \in\mathscr R(I\times E_{\bar y}) \qquad(\bar y\in X^{k-1}). \] The witnesses $z,\beta$ are not part of the triple. For $\pi:I\to J$, define \[ (\mathcal E,r,w)^\pi=(\mathcal E,r,w'), \qquad w'_{\bar y}=w_{\bar y}^{\,\pi\times\mathrm{id}_{E_{\bar y}}}. \] \end{definition} The fixed data $(\mathcal E,r)$ record a compatible table on products of $k$ coordinate sets; taking \term{minor}{minors} changes only the distinguished coordinate set $I$. The witness for the $\pi$-minor is $z,\pi\circ\beta$, and the \term{minor}{minor} identities follow from those of $\mathscr R$. \begin{proposition}\label{prop:consistency-completeness} For fixed templates and $k$, the map $T_k$ is computable in polynomial time and satisfies $\mathbf X\to\mathbf A\Longrightarrow T_k(\mathbf X)\to\mathbf C$. If some surviving family $F_U$ is empty, then $T_k(\mathbf X)\not\to\mathbf D$. \end{proposition} \begin{proof} The restrictions of a \term{global-solution}{global $\mathbf A$-solution} survive pruning: they supply one another's required restrictions and extensions, so none can be the first deleted \term{assignment}{assignment}. Evaluation at these restrictions gives compatible maps $\mathbf C^{F_U}\to\mathbf C$, and hence a map from the quotient. If $F_U$ is empty, the unique vertex of $\mathbf C^{F_U}$ belongs diagonally to every relation. Its image in $\mathbf D$ would have the same property, making every \term{instance}{instance} map constantly to $\mathbf D$, contrary to the NO-\term{instance}{instance} assumption. There are polynomially many \term{assignment}{assignments} in all families, and every pruning step deletes one. The tests, \term{power}{powers}, and quotient can all be computed in polynomial time. \end{proof} \paragraph{Logical characterization.} A \termdef{datalog-program}{Datalog program} is a finite collection of positive relational rules, without function symbols, evaluated by repeatedly adding all consequences until a fixed point is reached. A \termdef{datalog-interpretation}{Datalog interpretation} uses designated relations defined by \term{datalog-program}{Datalog programs} as domains of tuples and as relations of an output \term{structure}{relational structure}. It may have finitely many \term{sort}{sorts}; a \termdef{sort}{sort} is a separately tagged domain, and each argument of a relation has a prescribed \term{sort}{sort}. A union step merges selected \term{sort}{sorts} by disjoint union and merges the corresponding relations by union. A \termdef{datalog-unions}{Datalog-with-unions reduction} is a \term{datalog-interpretation}{Datalog interpretation} followed by such a union step. \begin{theorem}[Dalmau--Opr\v{s}al]\label{thm:consistency-characterization} For finite \term{template}{promise templates}, a \term{consistency-reduction}{consistency reduction} exists if and only if a \term{datalog-unions}{Datalog-with-unions reduction} exists. The existence of a \term{consistency-reduction}{consistency reduction} is reflexive and transitive. \end{theorem} The equivalence is~\cite[Theorem 3.12 and Corollary 3.13]{do}. Transitivity follows from their composition theorem \cite[Theorem 3.7]{do}, and reflexivity follows from the identity interpretation. \begin{lemma}[Small orbit]\label{lem:orbit} Suppose there is an \term{injective-chain-homomorphism}{injective chain homomorphism} $\M\to\N$ of height $h$ and list bound $d$ when tested on \term{surjective-chain}{surjective minor chains}. If a finite group $G$ of coordinate permutations fixes $f\in\M(I)$, then $G$ has an orbit in $\N(I)$ of size bounded in terms of $h,d$. \end{lemma} \begin{proof} Choose $n$ large enough for \resultref{Lemma}{inst:lem:matching} with $t=2$. Form a chain of $n$ copies of $f$, choosing each arrow independently and uniformly in $G$. Every arrow is a bijection and hence is injective on every set of accumulated marks. Write $b$ for the number of pairs of $h$-sets $F1$. Set $s=t=1$ if $u=1$. The first call has rank $(1,\ell)$, which is smaller even when $\ell=1$ because then $u>1$. The second call decreases $u$. Put \[ q=a+\binom ab t,\qquad M=\binom st q,\qquad p=1+\max\{s,q+\ell M\}. \] Suppose every $b$-set $W$ has a tuple $z_W$ and a $t$-set $Y_W$ such that $z_W\in K(Z)|_W$ whenever $Z$ is a $q$-set containing $W\cup Y_W$. For each $a$-set $X$, choose a $q$-set $Z_X$ containing $X$ and all $Y_W$ for $W\in\mathcal P_b(X)$. The upper lists $K(Z_X)|_X$ and lower singletons $\{z_W\}$ have ordinary overlap. All their entries are restrictions of entries of $K$, so induction gives an $m$-solution of $K$. Otherwise fix a $b$-set $W$ where every tuple can be avoided above every prescribed $t$-set. Choose a $q$-set $Z_0\supseteq W$. Some $z\in K(Z_0)|_W$ has the following property. For every set $T$ of at most $M$ variables, some $p$-set $U\supseteq W\cup T$ has $z\in J(U)|_W$. Indeed, if every candidate $z$ had a blocking set $T_z$, a $p$-set containing $Z_0$ and all the $T_z$ would contradict ordinary overlap at $Z_0$. For each $t$-set $Y$ choose a $q$-set $Z_Y\supseteq W\cup Y$ with $z\notin K(Z_Y)|_W$. For each $s$-set $X$, the union of the $Z_Y$ over $Y\in\mathcal P_t(X)$ contains $X$ and has at most $M$ variables. Choose a $p$-set $U_X$ containing that union with $z\in J(U_X)|_W$. Delete from $J(U_X)$ all entries restricting to $z$ on $W$, then restrict the survivors to $X$. For every $Y\in\mathcal P_t(X)$, ordinary overlap gives an upper entry matching an entry of $K(Z_Y)$ on $Z_Y$. It survives because $K(Z_Y)|_W$ avoids $z$. Thus the new upper lists are nonempty, have size at most $u-1$, and have ordinary overlap with $K(Z_Y)|_Y$. For $u=1$ a survivor is impossible. Otherwise induction gives an $m$-solution that lifts to the original system supplying its entries. On finite explicit input, break ties by input order. A candidate forced tuple on $W$ can be enumerated among restrictions of lower entries on scopes containing $W$. Every other test scans fixed-size sets and list entries. Store variable indices and pointers to value names, comparing names by rescanning the input. Regenerate the derived lists on demand. The induction depth and all arities are fixed, so outputting the chosen system and the assignment one variable at a time takes logarithmic work space~\cite[Appendix~B]{bk-unpublished}. \end{proof} % End of sections/ordinary-baby-pcp-proof.tex \paragraph{The empty-mark case of \resultref{Theorem}{thm:chain-gap}.}\label{app:chain-logspace} Under ordinary \term{chain-consistency}{chain consistency} the two children at a split can be joined by deterministic choices. We give the size bounds and choices here; they preserve the ordinary theorem for arbitrary value sets and the logspace bound for finite explicit input. For $h=1$ use \resultref{Theorem}{inst:thm:bk}. For $h\ge2$ take the full binary tree of the height excluded by the matching argument in Section~\ref{sec:certificate}. Prescribe sizes recursively at a node with minimum size $k$ and a required set of at most $\ell$ variables. Start with $k=a$ and $\ell=0$. At a leaf use $h$ consecutive sizes with smallest size $\max(k,\ell)$. If each child has $m$ positions, use \resultref{Theorem}{inst:thm:bk} with list bound $d\binom mh$ to obtain sizes $p>q$ and a threshold $n$. Prescribe the lower child with minimum size $k$ and budget $\ell+q$. If its largest size is $k_D$, prescribe the upper child with minimum size $k_D+1$ and budget $p+\binom pq k_D$. Take the threshold for $|V|$ to be at least the largest prescribed size and every $n$ so obtained. Choose a node of least height for which some set $Z$ within its budget cannot be retained throughout a block. Such a node exists since no root block exists, and every leaf can retain its required set. For every $q$-set $X$, its lower child admits a block $D_X$ retaining $X\cup Z$. For every $p$-set $T$, its upper child admits a block $U_T$ retaining $T\cup\bigcup_{X\in\mathcal P_q(T)}\max D_X$. At $X\subseteq T$ the concatenation $U_T D_X$ retains $Z$ and has the prescribed sizes. Some upper face therefore matches a lower face. Restrict all upper face entries to $T$ to form $J(T)$, and all lower face entries to $X$ to form $K(X)$. These lists meet the hypotheses of \resultref{Theorem}{inst:thm:bk}. All these choices also work on an infinite variable set. For finite explicit input the tree and all size bounds depend only on $a,h,d$. Enumerate nodes by increasing height, from left to right at each height. For each node enumerate the permitted sets $Z$, and for each $Z$ enumerate the decreasing chains of the prescribed sizes whose smallest member contains $Z$. Use lexicographic order on sets and chains, using the input indices of the variables. To test whether a candidate is a block, inspect each of its internal splits. For each pair of $h$-faces on opposite sides, scan their lists for entries agreeing on the smaller domain. A chain is a block exactly when no such pair matches at any split. This finds the first node and $Z$ for which no candidate is a block. For this node and $Z$, use the first qualifying lower block $D_X$ for each $X$. On a query for $U_T$, recompute the $D_X$ for $X\in\mathcal P_q(T)$ to form the required padding set, then take the first qualifying upper block. Generate $J(T)$ and $K(X)$ by restricting their face-list entries, suppressing duplicates by rescanning earlier entries. Each chain and padding set contains a bounded number of variables. Storing their input indices and pointers to value names, and comparing names by rescanning, uses $O(\log N)$ space. The two families of lists have polynomial total size. Simulate the decoder of \resultref{Theorem}{inst:thm:bk} on these lists, regenerating its input symbols on demand, to output a solution in $O(\log N)$ space. \paragraph{Proof of the \term{logspace}{LOGSPACE} decoding claim in \resultref{Theorem}{thm:minion-reduction}.}\label{app:chain-decoding-logspace} For the ordinary \term{chain-homomorphism}{chain homomorphism}, the input consists of $\mathbf X$ and an explicitly represented \term{homomorphism}{homomorphism} $q:\widetilde T_k(\mathbf X)\to\mathbf D$. For each bounded set $U$, enumerate $F_U$ in a fixed order. Each table $f_U$ is obtained by evaluating $q$ on the corresponding quotient representatives, which are computable in \term{logspace}{LOGSPACE} by \resultref{Proposition}{prop:unpruned-logspace}. The finite templates and $k$ bound all these table sizes by a constant. The values of $\Xi$ on the resulting bounded \term{minor-chain}{minor chains} can therefore be fixed in the algorithm. Evaluating $b_g$ as in the main proof gives \term{logspace}{LOGSPACE} query access to each $L(C)$. Simulate the reconstruction algorithm just proved on the polynomial-size explicit encoding of these \term{list}{lists}, regenerating requested symbols in \term{logspace}{LOGSPACE}. This gives the required \term{search-reduction}{search reduction} with a \term{logspace}{LOGSPACE} \term{decoder}{search decoder}. If $|X|1$, since both endpoints are then $g$. Thus $\xi(f)^\pi=\xi(g)$. Conversely, a minion homomorphism $\xi$ gives the singleton $\{\xi(g)\}$ on each chain ending at $g$. Precomposition preserves the coordinate maps of a chain, and postcomposition sends a common entry of the face lists to a common entry of their images. For the injective variants use the given marks throughout. A subchain of an injective chain is injective. In the singleton argument, inserting identity arrows and repeating either endpoint of an injective arrow preserves injectivity on the accumulated marks. \end{proof} \begin{theorem}[Composition of chain homomorphisms]\label{thm:chain-composition} If $\Xi:\M\to\N$ and $\eta:\N\to\mathscr Q$ are \term{chain-homomorphism}{chain homomorphisms} with parameters $(h,d)$ and $(k,e)$, then there is a chain homomorphism $\M\to\mathscr Q$ whose parameters depend only on $h,d,k,e$. \end{theorem} \begin{proof} Choose $H\ge h+k-1$ so that \resultref{Lemma}{inst:lem:matching} applies to $H+1$ positions with list bound $d$, face size $h$, and $t=k+1$. To form the list $\Theta(F)$ on an $H$-position chain $F$, choose an $h$-subchain $B$ and $k-1$ later positions of $F$. For each $g\in\Xi(B)$, follow $g$ by its minors at those positions. Apply $\eta$ to this $k$-position chain and transport its output list to the end of $F$. Take the union over all choices. These lists are nonempty, and there are at most $de\binom{H}{h+k-1}$ entries in the union. Now let $C$ have $H+1$ operations on coordinate sets $I_i$. Apply \resultref{Lemma}{inst:lem:matching} to $S_i=\N(I_i)$ with the minor maps $u\mapsto u^{\pi_{ij}}$ and lists $\Xi$. This gives disjoint $h$-subchains $B_0<\cdots0$. Otherwise $j$ could be added to $T_-$ while retaining $V$ and $s$ positive witnesses. Call $i$ exceptional if it satisfies this strict inequality for at least $4s$ negative tests. Counting the pairs $(i,j)$ gives fewer than $2s$ exceptional positives. Define the exceptional negatives by the reverse inequalities. There are fewer than $2s$ of these as well. For every exceptional positive $i$, take a block $B_i$ consisting of $i$ and negative coordinates from outside $T_-$, $V$, the negative tests and the exceptional negatives. Choose these blocks disjoint, maximizing their total size subject to $\sigma(T_-\cup B_i)\ge0$ for each $i$. The singletons are feasible, since removing $j$ from a positive test comparison can only increase its sign. If any $B_i$ were chosen, at least $s$ eligible negatives $j$ remain unused. Indeed, each $B_i$ is increasing after removing $T_-$ from $T_-\cup B_i$. Thus the set $T_-\cup\bigcup_i B_i$ is the union of $T_-\cup B_i$ for one $i$ with the other disjoint increasing blocks. It contains fewer than $2s$ positives. If fewer than $s$ eligible negatives remained, it would miss at most $s+8s+2s+s$ negatives, and give a \term{direction-certificate}{certificate} smaller than $100s$. By maximality every unused eligible $j$ satisfies \[ \sigma(T_-\cup B_i\cup\{j\})\le0 \qquad\text{for every exceptional positive }i . \] Perform the dual construction for exceptional negatives. The two constructions use disjoint coordinates, since exceptional coordinates of either sign can enter a block only as its distinguished coordinate. Identify $T_-,T_+$ and each of the enlarged blocks separately, leaving the remaining inputs single, to obtain $g$. Empty reference sets are represented by distinct dummy inputs. Denote the reference inputs by $r_-,r_+$. Give each enlarged input the sign of its distinguished coordinate. This is an admissible orientation because the block itself has that weak direction. Weak direction inequalities for unions of blocks survive every one of these identifications. Consider a positive input $x\ne r_+$. If $x$ is an enlarged block, the preceding maximality gives at least $s$ distinct untouched negatives $j$ such that $\{x,r_-,j\}$ is decreasing in $g$. If $x$ is a singleton, at least $4s$ negative tests gave this comparison, and fewer than $2s$ were enlarged as exceptional negatives. Each of the $s$ witnesses in $U$ still gives a positive input $u$ for which $\{u,r_-\}$ is increasing, even if the witness was enlarged. In the oriented cube these inequalities are \[ x\preceq\{r_-,j\},\qquad r_-\preceq\{u\}. \] They imply $x\preceq\{u,j\}$ whenever $u\ne x$. If the outside context contains $r_-$, first replace $r_-$ by $u$, then replace $x$ by $\{r_-,j\}$. Otherwise perform the replacements in reverse order. Pairing distinct $j$ with distinct $u\ne x$ gives $k$ disjoint \term{substitute}{substitutes}. The reference $r_-$ has its $s$ singleton \term{substitute}{substitutes}. Reversing the signs treats the negative inputs and $r_+$. \end{proof} \begin{proof}[Proof of \resultref{Proposition}{prop:unate-certificates}] Fix $t$. We show that for $k$ sufficiently large in terms of $t$, the second conclusion of \resultref{Lemma}{lem:unate-substitutes} gives a minor that is \term{block-symmetric-operation}{block-symmetric} on blocks of sizes $t,t+1$. Given $\alpha\in[1/4,3/4]$, send each positive coordinate of $g$ independently to the first block with probability $\alpha$, and otherwise to the second. For a negative coordinate use probability $1-\alpha$ for the first block. In the chosen block pick a uniform input position. This defines an ordinary random minor of $g$. At an input with densities of ones $a,b$ on the two blocks, the corresponding independent inputs to the oriented function $h$ have probabilities \[ b+\alpha(a-b)\quad\text{and}\quad 1-a+\alpha(a-b) \] of being one on the positive and negative coordinates, respectively. Both probabilities have slope $a-b$. Thus the mean $F_{a,b}(\alpha)$ is monotone in $\alpha$ for each density pair. For a nonconstant input, coprimality of $t,t+1$ gives $|a-b|\ge1/(t(t+1))$. Choose $\varepsilon>0$ so that $3\varepsilon 2^{2t+1}<1$. Divide $[1/4,3/4]$ into more than $(t+1)(t+2)/\varepsilon$ equal intervals. The sum of the oscillations over all intervals is at most one for each density pair. Thus some interval has oscillation at most $\varepsilon$ for every pair. Use its midpoint for the random minor. For a fixed nonconstant input, couple the endpoint and midpoint inputs to $h$ by thresholding independent uniform ranks. In increasing order of the biases write the resulting sets as $L\subseteq X\subseteq H$. Each coordinate belongs to $X\setminus L$ with probability at least $\delta>0$, and to $H\setminus X$ with probability at least $\delta$, where $\delta$ depends only on $t$ and the interval length. Use ranks uniform on $[M]$, taking a common denominator for all biases at endpoints and midpoints of the original partition, with $1/M\le\delta$. At a \term{prediction-witness}{witness} for a nearby color, each midpoint rank moves by at most one step, so the resulting set lies between $L$ and $H$. By \resultref{Lemma}{tc-lem:nearby} there is a predictor reading at most $b=b(M,\varepsilon)$ ranks, on a set $J$, whose answer lies between $h(L)$ and $h(H)$ except with probability $\varepsilon$. Independently refresh the ranks on $J$ to obtain $X'$. The predictor and $h(X')$ are independent. To bracket $h(X')$ by the same endpoints, choose $l$ disjoint sets outside $J$, each containing a separate \term{substitute}{substitute} for every $j\in J$. Use disjoint \term{substitute}{substitutes} across all these choices. Greedy selection works when $k>b+2bl$, since a previously occupied coordinate meets at most one candidate in the disjoint family for the next $j$. Each chosen set has size at most $2b$. The probability that one specified gap contains none of the $l$ sets is at most $(1-\delta^{2b})^l$, by independence across the sets. Choose $l$ so twice this probability is at most $\varepsilon$. All these bounds are independent of $g$ and its arity. For $J$ empty the bracketing is immediate. If each gap contains a chosen set, then $h(L)\le h(X')\le h(H)$ for every filling of $J$. Indeed every occupied member of $J$ in $L$ can be replaced by its fresh \term{substitute}{substitute} in $X\setminus L$ to yield a subset of $X\setminus J$. The same replacement in $X'$ using the upper gap gives a subset of $H\setminus J$. Finally $\Pr[h(L)\ne h(H)]\le\varepsilon$ by the choice of interval. The independent predictor and $h(X')$ therefore agree with probability at least $1-3\varepsilon$. Since $h(X')$ has mean $F_{a,b}$ at the midpoint, that mean lies within $3\varepsilon$ of an endpoint of $[0,1]$. Round each midpoint mean to that endpoint. The two constant inputs already have deterministic outputs. On every input the random minor disagrees with the rounded table with probability at most $3\varepsilon$. A union bound over all $2^{2t+1}$ inputs gives one minor agreeing everywhere with this table of the two densities. \end{proof} \subsection{Rotation for increasing operations} In this section we prove \resultref{Lemma}{lem:monotone-rotation}. Suppose that $g(S)\le g((S+d)\cup(S+d+1))$ for every $S$. We evaluate $g$ on random unions of cyclic intervals. First we find a bias at which a bounded number of intervals predicts the output, while both outputs occur with positive probability. The assumed inequality will allow us to rotate the predictor away from all its coordinates. Fix a prime $p\ge3$. Partition the cycle of length $n=pd+1$ at cuts $ id+t_i$, $0\le ib^2+2$ prime and then $W$ a large enough power of $M$ to make $2p(p+1)/W\le a/8$. Some rotation by $j$ moves all indices of the predictor off themselves, since there are at most $b^2$ differences between them. Then $J,J\circ R^j$ are independent with common mean in $[a-a/16,1-a+a/16]$, so their disagreement probability exceeds $a/2$. The two prediction errors and the rotation estimate bound it by $a/4$. This contradiction proves \resultref{Lemma}{lem:monotone-rotation}. \subsection{Direction certificates on an injective chain} In this section we use \term{direction-certificate}{direction certificates} to apply the tight-cycle proof to \term{injective-chain}{injective chains}. % Source: sections/guarded-cycle.tex \Needspace{9\baselineskip} \begin{lemma}\label{lem:guarded-cycle} Let $p$ be prime and $L>1$ satisfy $L\equiv1\pmod p$. Let $E$ be the set of tuples of $\CYCLE_p[L]$, and let $\rho_a:E\to\Z_L$ read entry $a$, for $0\le a4R+4$. For every $e\in E$ there is an interval $J_e$ of starting positions $z\in\Z_N$ for which the $p$ readings $\lambda(z-aN/p)$ give $e$, even when each position is independently moved by at most $R$ steps. Indeed, write $L=p\ell+1$. In units of clock blocks the turn is $-\ell-1/p$. The starting block specifies the initial label, and its $p$ equal subintervals specify which step crosses an extra block boundary. The extra crossing gives the increment $1-p$ in the labels, and all other increments are $1$ modulo $L$. This specifies all tuples of $E$. Take $J_e$ to be the middle half of the corresponding subinterval, rounding inwards to clock positions. Put $\gamma=\min_e |J_e|/N>0$. Fix $r$ large enough that \[ N^s p^s |E|(1-\gamma^b)^r<1/4 . \] For an increasing operation take an empty mark. For each other operation, take a maximal family of bounded increasing certificates with pairwise disjoint supports, stopping at $r$ certificates. Here and below the bound on each certificate is $b$. Mark the union of the chosen supports. These marks have size at most $rb$. First consider an \term{injective-chain}{injective chain} of $s$ operations, each increasing or having $r$ disjoint certificates. For its faces use the coordinate lists of \resultref{Lemma}{tc-lem:completion} for the colorings $c_f$, with $2\varepsilon sN^sp^s<1/4$. The face test applies to arbitrary finite colorings. We verify the intersection of these transported lists by the same cyclic covering. Suppose their intersection is empty. Label the terminal coordinates by missing faces and use the random offsets and the prescribed row-one input $x=x_1(t,\alpha)$ of~\eqref{tc-eq:block}, for all depth profiles and \term{arm-completion}{arm completions} on the star product with at least one full row. For a fixed profile and completion, the coordinates of $x$ on the first mark are independent and uniform. Indeed, condition on all offsets except those of one full row $k$. Each marked coordinate $v$ then receives the independent uniform offset at $\pi_{1k}(v)$, and injectivity makes these indices distinct. If the first operation has $r$ chosen certificates, fix $e\in E$ and choose $e'\ne e$. Each certificate $(A,D)$ has probability at least $\gamma^b$ of putting all $x_v$, $v\in A$, in $J_e$ and all $x_v$, $v\in D$, in $J_{e'}$. The $r$ events are independent. The choice of $r$ therefore gives probability greater than $3/4$ that every $e$ receives such a certificate at every tested input. For an increasing first operation its empty certificate already has this property. On this event choose arbitrary inputs $y^a$ at distance at most $R$ from $x-aN/p$. The columns $\theta(v)=(\lambda(y^a_v))_{0\le a