Manuscript Offprint
arXiv:2611.04569Abelian embeddings make useful promises: approximation of detrivialised equations
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We study the following family of search problems: given a system of equations promised to admit a solution that is nonconstant on every equation, find a -colouring of the variables that makes no equation monochromatic. For , the problem recovers known tractable Promise Constraint Satisfaction Problems (PCSPs). For , we obtain a complete complexity classification: the problem is polynomial-time solvable for , yet even its decision version is NP-hard for , and it is not well-defined for .
Our main conceptual contribution is a general tractability framework for PCSPs based on Abelian embeddings, a notion introduced by Bhangale, Khot, and Minzer [STOC 2022] in the study of quantitative approximation of satisfiable CSPs. We show that suitable Abelian embeddings yield polynomial-time PCSP reductions realised by singleton algorithms in the sense of Zhuk [FOCS 2026].
On the hardness side, the promise relation is far removed from the reconfigurable regime covered by the conditional hardness framework of Banakh, Barsukov, and Nakajima [LICS 2026]; our proof instead relies on a new additive-combinatorial rigidity theorem classifying special 3-colourings of .
1 Introduction
In a constraint satisfaction problem (CSP), variables take values in a fixed domain, and constraints specify which combinations of values are allowed. The task is to find an assignment that satisfies every constraint. Even when such an assignment is promised to exist, finding one can be computationally hard. This motivates studying approximation of satisfiable CSPs, where we relax the requirement either quantitatively or qualitatively. In quantitative approximation, we seek an assignment satisfying as many of the original constraints as possible. In qualitative approximation, we weaken the constraints and seek an assignment satisfying every weakened constraint. We illustrate this distinction with two examples of well-known NP-hard CSPs.
Given a graph promised to be 3-colourable, a quantitative approximation seeks an assignment of three colours that gives different colours to the endpoints of as many edges as possible. A randomised polynomial-time algorithm by Goemans and Williamson [GW04] based on semidefinite programming finds a 3-colouring that properly colours at least a 0.836 fraction of the edges in expectation. A qualitative approximation instead allows more colours—say, 100—while still requiring the endpoints of every edge to receive different colours. This problem was recently shown to be NP-hard [DMR09, GS20, FMW26].
*This work was supported by UKRI EP/X024431/1. For the purpose of open access, the authors have applied a CC BY public copyright licence to any Author Accepted Manuscript version arising from this submission. All data is provided in full in the results section of this paper.
In (monotone) 1-in-3-SAT, each clause requires exactly one of its three literals to be true. Given a satisfiable instance, quantitative approximation seeks an assignment satisfying as many clauses as possible. A qualitative approximation can instead weaken the requirement to Not-All-Equal: every clause must contain both a true and a false literal. This relaxation is solvable in polynomial time, as shown by Brakensiek and Guruswami [BG21]. Many other qualitative approximations of 1-in-3-SAT have been studied, with tractability of some and NP-hardness of others [BBB21, CKK 25, KV26]. These qualitative approximation tasks are examples of Promise Constraint Satisfaction Problems (PCSPs) [AGH17, BG21, BBKO21]. The contrasting complexity of these relaxations motivates studying which relations are promise-useful [AHM26]: which relations admit a nontrivial relaxation such that the associated PCSP is tractable? Once a relation is known to be promise-useful, one can study which of its nontrivial relaxations yield tractable PCSPs.
In their series of works, Bhangale, Khot, and Minzer [BKM25a, BKM25b, BKM23, BKM24, BKM26], and Bhangale, Khot, Liu, and Minzer [BKLM25a] identified Abelian embeddings as an important structural feature for the quantitative approximation of satisfiable CSPs. Informally, such an embedding captures additive structure within a constraint relation. Bhangale et al. use this structure in a hybrid approximation algorithm combining the solution of equations over Abelian groups with semidefinite programming [BKM26].
Definition 1.1. Suppose is an -ary relation with and is an Abelian group. We say that admits an Abelian embedding to if there exist functions such that (i) at least one of is nonconstant, and (ii) for all we have . We say simply that admits an Abelian embedding if it admits one to some Abelian group.
In this paper, we develop an approach to qualitative approximation based on Abelian embeddings and establish a sharp complexity dichotomy for approximating detrivialised equations over prime-order groups, a family of PCSPs whose promise relations admit such embeddings. In particular, we show that suitable Abelian embeddings are a structural source of promise-usefulness.
This algorithmic role of Abelian embeddings is complemented by recent hardness results based on connectivity properties of the promise relation. Extending work of Braverman, Khot, Lifshitz, and Minzer [BKLM25b], Banakh, Barsukov, and Nakajima [BBN26] show that, assuming the Rich 2-to-1 conjecture [BKM21], every (nontrivial) qualitative approximation of a symmetric reconfigurable relation is NP-hard. Here symmetry means closure under permutations of coordinates, while reconfigurability is defined as follows.
Definition 1.2. A relation R is reconfigurable if the graph whose vertices are tuples of R, and where edges are drawn between tuples which differ in exactly one coordinate, is connected.
For symmetric relations, Abelian embeddability imposes a separation between tuples that cannot be overcome by local changes, while reconfigurability requires local changes to connect all tuples. Indeed, the two regimes are disjoint: if adjacent tuples differ in coordinate i, then any Abelian embedding must assign the same value under to the two entries in that coordinate. Connectivity and symmetry therefore force every to be constant, so a reconfigurable relation admits no Abelian embedding. In fact, each detrivialised equations relation defined below has an edgeless reconfiguration graph. Our hardness results therefore concern promise relations at the opposite structural extreme from the reconfigurable relations covered by the framework of Banakh, Barsukov, and Nakajima [BBN26].
Concurrent work of Chan and Ng [CN26] also highlights the algorithmic role of Abelian embeddings, showing that an algorithm combining SDP and constraint singleton AIP subsumes the hybrid algorithm of Bhangale, Khot, and Minzer [BKM26]. Our tractability results give a complementary perspective for qualitative approximation (PCSPs).
Contributions. Our first contribution is a general reduction that uses suitable Abelian embeddings and roundings to strengthen the promise relation of a PCSP. The reduction applies to both decision and search, yielding a new source of tractability for qualitative approximation.
Our second contribution is a sharp complexity dichotomy for approximating detrivialised equations over prime-order groups.
Definition 1.3. Let be a finitely generated Abelian group. We define the ternary equations relation . Its detrivialised equations relation is .
If a ternary relation contains a constant tuple , then every instance of is satisfied by assigning to every variable. Detrivialisation removes precisely these tuples: is the largest subrelation of containing no constant tuple. When has no 3-torsion, as for with , this amounts to deleting only . For nontrivial , the identity map witnesses an Abelian embedding of into .
Although systems of equations over can be solved in polynomial time, , i.e. finding a solution to a system of homogeneous linear equations mod where no particular equation is assigned a constant tuple, is NP-hard.
We therefore study a qualitative relaxation of this problem: given a system promised to have a solution over that is nonconstant on every equation, find a -colouring of its variables that makes every equation nonmonochromatic. This retains the nonconstancy requirement while discarding the equations themselves, leaving a colouring problem on the underlying hypergraph of constraints. We write for the ternary not-all-equal relation on colours. For fixed , this is the largest target relation containing no constant tuple, and hence gives the weakest relaxation excluding constant solutions. For detrivialised equations over prime-order groups, the resulting problem is defined as follows.
Definition 1.4. Let be a prime and . An instance of is given by a system of linear equations of the form . The goal is to output Yes if there exists a solution to this system over which is nonconstant on every equation, and No if there is not even a solution over , i.e., a colouring of the variables with colours which renders each equation nonconstant.
For and , is (isomorphic via Boolean complementation to) the 1-in-3 vs. NAE-3-SAT problem, shown tractable by Brakensiek and Guruswami [BG21]. For , corresponds to the 3-rainbow vs. -normal hypergraph colouring problem, studied by McDiarmid [McD93], who gave a randomised algorithm. A deterministic algorithm for and all follows from the tractability of the problem for via homomorphic relaxation [BBKO21, Definition 4.6].
For however, the story is more complicated, as the following theorem shows. Note that for the problem is well-defined for ; when , some instances satisfy both the Yes and No conditions.
Theorem 1.5. Fix a prime . is (i) solvable in polynomial time if , (ii) NP-hard if .
In fact we prove a stronger theorem.
Theorem 1.6. Fix a nontrivial finite Abelian group without elements of order 2 or 3. Then is (i) solvable in polynomial time if , (ii) NP-hard if (provided the problem is well-defined).
This necessarily follows from the CSP dichotomy theorem, but rather than prove this separately we just note that this is a consequence of our hardness results for – indeed, we prove below that a relaxed version of this problem is NP-hard. For this problem is monotone 2-in-3 SAT, and for this is strong 3-colouring of 3-uniform hypergraphs, both NP-hard.
Formally, a finite ternary relation is promise-useful [AHM26] if is solvable in polynomial time for some finite ternary relation with and no constant tuple. Equivalently, is promise-useful if is tractable for some fixed , since, after relabelling its domain, every such is a subrelation of some .
The algorithm that solves this problem is a singleton algorithm [Zhu26], and its correctness relies on the fact that Eqn*(G) has an Abelian embedding to G. In fact, the algorithm generalises easily to one which works for all templates PCSP(R, NAE_c), where R has an Abelian embedding to a group with a “c-rounding”. We present this more general algorithm along with the notion of c-rounding in Section 3, and show that the tractability part of the theorem above is a simple consequence. However, neither k-consistency (for any fixed k) nor the combined Basic Linear Programming and Affine Integer Programming (BLP+AIP) relaxation [BGWŻ20] solves this problem (Appendix C.1). Thus this is an example of a natural fragment of finite-domain PCSPs solvable by a singleton algorithm but not by either of the above methods.
Algorithmic results. We illustrate the algorithm by running it on a small instance of PCSP(Eqn*(), NAE_4). In fact, we will run it on the search version of the problem, denoted by Search-PCSP(Eqn*(), NAE_4): Given an instance that is promised to admit a solution over Eqn*(), the goal is to find a solution over NAE_4. Consider the instance with variable set and the following eight equation constraints, where all equations are modulo 5:
This is a valid instance: the assignment
satisfies every equation nontrivially. The algorithm is not given the displayed assignment; it only uses the promise that such an assignment exists. We will now explain how the algorithm works (illustrated in Figure 1).
We start by picking some constraint, say . We know there exists some solution to the system such that does not get assigned the tuple . We find such a solution as follows. We choose a variable in , say , and look (using Gaussian elimination) for a solution to the system with fixed to 1 or some other nonzero value. In this case, no such solution exists, so we move on to another variable in , say , and look for a solution to the system with fixed to 1. We find such a solution , and fix the values of all variables that got a nonzero value. Next, we repeat the same process for the subinstance induced on the remaining variables. The final NAE_4-solution assigns each variable the first nonzero value it receives in . The end row of the lower table in Figure 1 lists the final tuple assigned to each constraint and shows that every constraint is nonmonochromatic. Informally, the reason this works is that, in the first step at which any variable in a constraint is coloured at all, it must be the case that 2 or 3 variables in that constraint are coloured, and indeed coloured with at least 2 different values. Hence, no matter what colour is assigned to the remaining variable (if it exists), the constraint is satisfied.
The algorithm as a reduction. Viewed more generally, the algorithm yields a polynomial-time reduction between the original PCSP and a PCSP obtained by restricting (and thus strengthening) its promise relation. The previous example is the special case in which the restricted promise relation is empty, and thus the target of the reduction is a trivial problem. The existence of this reduction contributes to the goal of the algebraic approach to PCSPs, which seeks to understand the complexity of all PCSPs through the algebraic characterisation of reductions between them [BBKO21, BK22, DO24, BHZ27]. To this end, we show (Appendix C.2) that the reduction can be implemented using (Constraint) Singleton AIP (CSingl AIP). We then characterise CSingl AIP reductions algebraically, along the lines of Dalmau and Opršal [DO24] (Appendix C.3).
Additive combinatorics. Our (hardness) results use tools and ideas from additive combinatorics. Fix some prime . We call a partition of into three sets valid if the only solution to with all in the same part is . Validity is preserved by permuting

Figure 1: An example run of the algorithm.
the parts and by multiplying every element by the same nonzero scalar. A first step in the hardness proof is to classify these partitions: for every prime , there is exactly one up to these symmetries.
Theorem 1.7. For every prime , up to multiplication by a constant and permutation of parts, there exists exactly one valid partition of , namely the partition that puts into .
This fact follows from an application of the Cauchy–Davenport theorem, together with Vosper’s theorem. It does not hold for , as shown by the theorem below, which can be proved by a simple case analysis. The full proofs of both theorems are in Appendix D.
Theorem 1.8. Up to multiplication by a constant and permutation of parts, there exist exactly two valid partitions of , namely and .
For any relation of arity , let denote the set of values which appear in any tuple of . For , write for the restriction of to , also called the subrelation induced by . For two relations of arity , define . Note that in general , but for symmetric and this holds with equality. We define .
We write if there exists such that for any we have . We call such a map a homomorphism. If then . Let .
Let and be two relations of the same arity such that . An instance of PCSP consists of a set of variables and a set of constraints , where each constraint is a tuple of variables . In this paper, we deal specifically with ternary relations , so every constraint is a triple. For a ternary relation , an -solution to is a map such that for every . For , the induced subinstance is .
³This does no harm even for the general PCSP case; one could always take the domain of any relational structure to be just the set of all values appearing in any relation.
Definition 2.1. Fix . Decision-PCSP (or simply PCSP) asks us, given an instance promised to have either a -solution (YES) or to have no -solution (NO), to distinguish these two cases. Search-PCSP provides us with an instance which has a -solution (that is not part of the input), and asks us to find a -solution of the instance.
Note that we require for the problem to be well-defined, as otherwise the YES and NO cases overlap. It is well known that Decision-PCSP reduces to Search-PCSP [BBKO21]; the status of the converse is open.
We next state some simple lemmas that allow us to interpret Abelian embeddings as homomorphisms to certain “equation relations”. First, we note that when the relation is finite, one can assume without loss of generality that the target of an Abelian embedding is either the integers or a prime-order cyclic group. This is a direct consequence of the classification of finitely generated Abelian groups. The full proofs of this lemma and the next lemma are in Appendix A.
Lemma 2.2. Let be a finite set, , and . If admits an Abelian embedding, then it admits one to some .
For an Abelian group , a set , an element , and a positive integer , we define
The primal (Gaifman) graph of a relation has vertex set , with two values adjacent if they occur together in a tuple of ; we call connected if this graph is connected. For symmetric, connected, ternary relations, it is convenient to use the following homomorphism representation of an Abelian embedding.
Lemma 2.3. Let be a ternary symmetric and connected relation, and let be an Abelian group. Then admits an Abelian embedding to if and only if there exist and a nonconstant homomorphism .
Except in Appendix A (where we prove the two above lemmas), we henceforth use Abelian embedding exclusively in the homomorphism sense above.
Remark 2.4. Let be a ternary relation, and be a nonconstant homomorphism, where . If or with , then is a nonconstant homomorphism. Thus we may assume without loss of generality that . If and , then is an Abelian embedding, so we may assume without loss of generality that .
3 Tractability Results
Our tractability results will be based on a generic reduction, which targets relational structures with homomorphisms to Eqn(G). It will also require some extra data which we call a c-rounding, which we now define.
Definition 3.1 (c-rounding). Let be a finitely generated Abelian group. Write for . A -rounding for is a map such that, for every satisfying and , the nonzero values among do not all receive the same colour under .
Definition 3.2. A -rounding is efficient if, for some fixed representation of as a direct sum where is the torsion subgroup of , the value of for and can be computed in polynomial time with respect to , the number of bits needed to represent .
Every -rounding we will give below will be efficient. Note that an (efficient) -rounding for is also an (efficient) -rounding for for every .
Let us now state our goal for this section.
Theorem 3.3. Let be a finite relation, and . Suppose there exist a finitely generated Abelian group as well as a homomorphism from to Eqn, and a -rounding for . Then, Decision-PCSP reduces to Decision-PCSP in polynomial time. Furthermore, if is efficient, then Search-PCSP reduces to Search-PCSP in polynomial time.
Informal description. Given an instance of Search-PCSP, let be a promised -solution of (although it is not given to us). Then is an Eqn-solution of which takes values in . Starting from the given instance, we repeatedly perform the following four steps.
-
Solve the induced system of equations over , seeking a solution that assigns some variable a nonzero value from . If none exists, then we know that the image of maps to 0 through . Hence, we can restrict the domains of the variables to , reducing the problem to Search-PCSP as claimed. So assume we find such a solution .
-
Round each nonzero value to ; i.e., set variable to once and for all.
-
Peel off the nonzero support . By the definition of -rounding, every constraint which intersects is already satisfied, no matter what values are assigned to the variables outside of . Thus it is safe to remove all constraints intersecting , as well as all variables in .
-
Recurse on the subinstance induced by the remaining zero set . Since , each round removes at least one variable.
Remark 3.4. Since every -solution is an R-solution, Decision-PCSP reduces to Decision-PCSP in polynomial time. Thus, Theorem 3.3 implies a polynomial-time equivalence between Decision-PCSP and Decision-PCSP . The same holds for Search-PCSP.
Remark 3.5. For a finite Abelian group G, define the subequation relation
Let , and put . Provided , the proof of Theorem 3.3, with each nonzero value retained instead of mapped through a rounding, gives Decision-PCSP Decision-PCSP and Search-PCSP Search-PCSP. Indeed, when a constraint is first removed, either its three nonzero values sum to zero, or exactly two values are nonzero and sum to zero. Hence it is satisfied in , independently of values assigned later to the remaining variables. Moreover, a -rounding is exactly the same as a homomorphism .
Example 3.6. We give a few examples of roundings (and two nonexamples):
• The following is a 2-rounding for Z:
Here we use that G is finitely generated Abelian: decomposing G into its free and torsion parts and encoding the latter by integer equations reduces the problem to a linear Diophantine system, solvable in polynomial time [Sch86, Corollary 5.3b]. The resulting solution can be represented using a polynomial number of bits.
If is efficient, then these values can also be computed in polynomial time, since the torsion part of is of constant size, and the total number of bits used to represent the nontorsion part of is polynomial.
• The following is a 4-rounding for with prime:
- More generally, for every prime and every , the following is a 4-rounding for . Given , write , where and , and define . To see that this works, write in base , and for consider the least significant nonzero digits in . At least two must appear at the same position, and must sum up to – hence correctness follows from the correctness of .
• If is a c-rounding for G, then the following is a c-rounding for :
This follows by essentially the same reasoning as the previous example.
- More generally, suppose that is a -rounding for , for every . Then their direct product has the -rounding
- Nonexamples involve and as there are no -roundings for and , for any . In , the equation has two nonzero entries, both equal to 1, so they necessarily receive the same colour. In , the same obstruction is given by . Both equations violate the defining property of a rounding.
We defer a formal proof of Theorem 3.3 to Appendix B; the filling in of the informal description is, however, straightforward.
Remark 3.7 (Generalising to higher arities). For , define
where is the Euler totient function. An -ary -rounding of is a map such that, for every nonzero tuple , the nonzero entries receive at least two different colours. With these replacements, the proof of Theorem 3.3 applies verbatim in arity .
The existence of a rounding depends on the arity. An -ary rounding is an -ary rounding for every , by padding zero-sum -tuples with zeros, but the converse need not hold. If , then has no -ary -rounding for any . If on the other hand, we can generalise the construction of the ternary 4-rounding to get an -ary -rounding for as follows: construct the set . Note that for all . Then, identifying with , assign to each the colour indexed by the least element of greater than . This is an -ary -rounding of . There are however for many pairs roundings which use even fewer colours.
Finally, although Lemma 2.2 generalises immediately, the normalisation of an Abelian embedding described in Remark 2.4 also depends on the arity: if , then is a nonconstant homomorphism to provided . Primes dividing must be treated separately.
3.1 Consequences of Theorem 3.3
Corollary 3.8. Under the assumptions of Theorem 3.3 for the Search-PCSP reduction, if , then Search-PCSP( ) is solvable in polynomial time.
Proof. By Theorem 3.3, it suffices to solve Search-PCSP( , NAE ). Any promised instance of this problem has no constraints, so assigning an arbitrary colour to each remaining variable gives an NAE -solution.
Together with the existence of an Abelian embedding to for 1-in-3, this is enough to prove that Search-PCSP(1-in-3, NAE ) can be solved in polynomial time, a classical theorem in the literature [BG21]. This corollary is also sufficient to prove our tractability claim about detrivialised equations.
Corollary 3.9. For any finite Abelian group without elements of order 2 or 3, Search-PCSP(Eqn, NAE) is solvable in polynomial time.
Proof. By the classification theorem for finite Abelian groups, with . By Example 3.6, has a 4-rounding for , and the product of groups which admit 4-roundings also admits a 4-rounding. Hence admits a 4-rounding. Moreover, letting , is a homomorphism with , and since . The result now follows from Corollary 3.8.
Corollary 3.10. Let be a finite ternary relation. Suppose that every nonempty induced subrelation satisfies at least one of the following:
-
there is a nonconstant homomorphism from to or for some prime ;
-
there is a homomorphism .
Then Search-PCSP( ) is solvable in polynomial time.
Proof. Set , and consider the current nonempty induced subrelation . If there is a homomorphism , solve (by Gaussian elimination) the induced system of equations of the form . It has a solution because the instance has an -solution. Moreover, since contains no constant tuple, any solution is an -colouring, and hence an -colouring.
Otherwise, there is a nonconstant homomorphism , where or for some prime . In either case has an efficient 4-rounding (see Example 3.6), so Theorem 3.3 reduces the problem to the induced subrelation . Since is nonconstant, is a proper subset of .
We may repeat this argument because every is an induced subrelation of . After at most steps we therefore encounter the case or reach the empty relation. Both have a polynomial-time search algorithm, and the reductions lift the resulting solution to an -solution of the original instance.
Remark 3.11. Corollary 3.10 and its proof extend to every arity : replace Eqn by Eqn , NAE by NAE ( is as in Remark 3.7), the condition in item (1) by , and item (2) by
Example 3.12. Let be a nonempty symmetric ternary relation, and take two new elements . Define the suspension of as
The relation has an Abelian embedding to every nontrivial Abelian group, given by for some nonzero . Moreover, if admits a rounding, every nonconstant
satisfies , and hence . Thus no choice of embedding can remove more than one suspension layer, and iterating the construction makes arbitrarily many applications of Theorem 3.3 necessary before the original relation is reached.
For a prime , with , define the -suspension of as
Note that has an Abelian embedding to , given by for and for . Then . Moreover, every Abelian embedding has the form , where satisfies , and is a group homomorphism.
Hence embeds into none of for primes , so nested -suspensions can force different prime-order targets at successive steps.
Remark 3.13. One interesting open question is the complexity of PCSP(Eqn ( ), NAE ) for and sufficiently large. Eqn ( ) has an Abelian embedding (to for instance), but not the kind that gives tractability in Corollary 3.10.
4 Hardness of approximating detrivialised equations with 3 colours
For the hardness results, we will need the following notions from the algebraic approach to PC-SPs [BBKO21], which we specialise to the case of relational structures with one symmetric relation. An -ary polymorphism is a homomorphism . We let denote the set of all polymorphisms , and . For this, we need to define the notion of a minor of an operation. Suppose and are functions. We then define by
Definition 4.1. A (function) minion on a pair of finite sets is a nonempty subset of that is closed under taking minors, meaning that for each minor map and -ary , we have . For fixed , let denote the set of -ary functions in .
Note that for relations and , is closed under taking minors. If there is also a homomorphism from to , then is nonempty and hence forms a minion.
Definition 4.2. Let and be minions. A collection of maps with is a minion homomorphism from to if it preserves taking minors, meaning that for each minor map and , we have .
Theorem 4.3. [BBKO21, Theorem 3.1] Let be relations such that and . If there exists a minion homomorphism from to , then reduces to in logarithmic space.
Our goal is to prove that is NP-hard whenever has no elements of order 2 or 3, and the problem is well-defined, i.e. . We show that for this it suffices to consider the case for – in the subsequent sections we prove hardness for these cases.
Lemma 4.4. If an Abelian group admits an element of order , and , then reduces to . In particular, if is a nontrivial finite Abelian group with no elements of order 2 or 3 such that , then reduces to for some prime .
Note that is similar to, but not the same as the Vector valued punctured 3-Lin relation from [BKM26]. Vector valued punctured 3-Lin corresponds to the restriction of to .
Recall that for symmetric , .
Proof. Note that determines an injective homomorphism , which induces a homomorphism (since injectivity preserves the nonconstancy of tuples). Thus, as every -solution induces an -solution by composition with this homomorphism, the identity map gives the required reduction. For the second part, a nontrivial finite Abelian group must have some element of prime order, and by assumption it cannot have order 2 or 3.
The proof of hardness in Theorem 1.6 then follows by Lemma 4.4 with Theorem 4.13 and Theorem 4.19.
4.1 Hardness for
Definition 4.5. Following [HN04], a digraph is balanced if each of its oriented cycles has zero net length. Following [BBB21, CKK25], associate with a directed graph , viewed as a binary relation, the ternary symmetric relation .
Theorem 4.6. [CKK 25, Theorem 2] Let be a bipartite directed graph. Then is tractable if is balanced, and it is NP-hard otherwise.
Let . This is a directed cycle of net length 4, so it is bipartite and not balanced.
Corollary 4.7. PCSP(, NAE) is NP-hard.
Moreover, is the restriction of to .
We will construct a minion homomorphism from to . Let with .
Lemma 4.8. For every , we have .
Proof. Note that for every -ary polymorphism and every , is a homomorphism from to . Thus this follows from the classification of homomorphisms in Theorem 1.8, and the assumption .
Definition 4.9. For with , define by letting denote, for each , the unique element in .
Proposition 4.10. .
Proof. Suppose for a contradiction that satisfy but . Then for each , the triple is a constraint triple. Note that for all , , and . Hence every value in the first and fourth rows of the matrix below is in , and every value in the second and third rows is in . Consequently, 3 must appear at least once in each row (otherwise the row would be monochromatic, contradicting that is a polymorphism).
By the pigeonhole principle, some column has at least two occurrences of the value 3, but since also , this contradicts Theorem 1.8, applied to the homomorphism induced by that column.
Proposition 4.11. preserves minors.
Proof. Since , we have that .
Theorem 4.12. There exists a minion homomorphism from to .
Proof. Let be the permutation sending . For , let . Note that (since is an automorphism of ) . Also, since , we have . Now let be the map on given by . By Proposition 4.10, . It remains to show that preserves minors. Using Proposition 4.11, it is enough to show preserves minors.
Here the second equality is because and the third equality is because automorphisms commute with minors.
Theorem 4.13. PCSP(Eqn (Z ), NAE ) is NP-hard.
Proof. Theorem 4.12 provides a minion homomorphism which, by Theorem 4.3, gives a log-space reduction from PCSP( , NAE ) to PCSP(Eqn , NAE ). By Corollary 4.7, PCSP( , NAE ) is NP-hard, hence so is PCSP(Eqn , NAE ).
4.2 Hardness for
Now, we will show NP-hardness of PCSP(Eqn ( ), NAE ) for all primes . First we must recall a few more standard notions from the algebraic approach to PCSPs [BBKO21].
Definition 4.14. Let be a minion. The free structure of generated by 1-in-3 is the relation defined as the set of all triples of functions in for which there exists some such that the following identities hold for all in the domain of the 's:
Theorem 4.15 (Special case of Lemma 4.4 in [BBKO21]). Let be a minion. If , then there exists a minion homomorphism from to .
Definition 4.16. For relations and , define by
Observation 4.17. For any , restriction defines a minion homomorphism .
Theorem 4.18. For prime, every function in is nonconstant and essentially unary.
We prove Theorem 4.18 in Appendix E, using a proof obtained with GPT-5.6 Sol (cf. AI methodology).
Theorem 4.19. For prime, PCSP(Eqn ( ), NAE ) is NP-hard.
Proof. Let . We show . Define the map as follows:
This map is well defined by Theorem 4.18. Now, we must show that is a homomorphism from to . means such that
Write . Each of these 's is essentially unary by assumption, so for each either (and ) or (and ). We prove that exactly one of the 's has . If , we derive a contradiction by considering where maps the (rows of the) following tableau:
If exactly two of equal 1, then by symmetry we may assume that . We derive a contradiction by considering where maps the following tableau:
Thus, exactly one binary polymorphism in each tuple of gets assigned the value 1 by , which means that is a homomorphism from to 1-in-3.
Thus, combining Theorem 4.15, Observation 4.17, and Theorem 4.3 gives a reduction from CSP(1-in-3) to PCSP(Eqn ( ), NAE ), proving NP-hardness.
A Abelian embeddings
We prove the two lemmas about Abelian embeddings from the preliminaries.
Lemma 2.3. Let be a ternary symmetric and connected relation, and let be an Abelian group. Then admits an Abelian embedding to if and only if there exist and a nonconstant homomorphism .
Proof. Let . Suppose first that witness an Abelian embedding. If and are adjacent in the primal graph, symmetry lets us choose so that both and belong to . Subtracting the two corresponding equations gives
Thus is constant on every connected component of the primal graph, and hence on all of . The same argument, after permuting coordinates, shows that is constant. Consequently there are constants and a map such that
At least one is nonconstant, so is nonconstant. For every we now have
Taking proves the second condition.
Conversely, suppose that on R. Set
These maps are nonconstant and their coordinate-wise sum is zero on every tuple of .
Lemma 2.2. Let be a finite set, , and . If admits an Abelian embedding, then it admits one to some .
Proof of Lemma 2.2. Let witness an Abelian embedding to an Abelian group .
Fix , put
and let be the subgroup generated by all , for and . The group is finitely generated and nontrivial: the former follows from finiteness of , and the latter from nonconstancy of at least one . Moreover, if
then every satisfies
In particular, .
By the structure theorem for finitely generated Abelian groups, there is a nonconstant homomorphism , where if is infinite, and for some prime if is finite. Since the elements generate and , at least one map is nonconstant. Define
Again, at least one map is nonconstant. For every tuple ,
Hence these maps give an Abelian embedding to G.
B Proof of Theorem 3.3
Theorem 3.3. Let be a finite relation, and . Suppose there exist a finitely generated Abelian group as well as a homomorphism from to Eqn, and a -rounding for . Then, Decision-PCSP reduces to Decision-PCSP in polynomial time. Furthermore, if is efficient, then Search-PCSP reduces to Search-PCSP in polynomial time.
Proof. Let us start with the reduction for Search-PCSP. Fix an efficient -rounding for , and write and .
Let be an instance of Search-PCSP, and fix an -solution of for the analysis (the algorithm does not need access to ). We construct a decreasing sequence of sets of active variables, starting with , together with a partial colouring . At stage , the active instance is the induced instance . Notice that is an -solution of .
For every and every , we test whether has an Eqn(G)-solution satisfying . If such a solution is found, let be its nonzero support, and set . For each , extend the partial colouring by setting .
We claim that every constraint removed at this stage is already satisfied by . Indeed, let be a constraint of which is not a constraint of . Since is an Eqn(G)-solution, .
Moreover, at least one of belongs to , so these three values are not all zero. The defining property of therefore implies that the nonzero values among them receive at least two different colours. All variables carrying these nonzero values belong to , and hence their colours have just been fixed by . Thus is nonmonochromatic, independently of how the remaining variables are coloured later.
Since is nonempty, every successful stage strictly decreases the number of active variables. The process therefore reaches, after at most stages, an active set for which none of the tests above succeeds. We output the residual instance . This is a valid instance of Search-PCSP. To see this, consider the -solution of . The composition is an Eqn-solution of taking values in . If for some , then the test for the pair would have succeeded. Consequently for every , and hence is an -solution of .
Given any -solution of , extend the partial colouring by setting . Every constraint of is satisfied by , while every other constraint was already made nonmonochromatic at the stage when it was removed. Therefore is an -solution of .
Finally, all steps run in polynomial time. Since is a fixed finitely generated Abelian group, systems of linear equations over can be solved in polynomial time. At each of at most stages, we solve one such system for every pair . The set is fixed and finite, and is polynomial-time computable by assumption. The construction of and the lifting of are therefore both polynomial-time.
For the decision reduction, the residual instance is computed using only the solutions to the group equations and their zero supports; the algorithm does not evaluate . If has an -solution, the argument above shows that has an -solution. Conversely, if has an -solution, then this solution extends existentially, using the fixed rounding , to an -solution of . Thus No instances are preserved, even when is not efficiently computable.
C Comparison with known algorithms
C.1 Failure of k-consistency and BLP+AIP for approximating detrivialised equations
An -ary polymorphism is a weak near-unanimity (WNU) polymorphism if
for all in the left-hand domain. Atserias and Dalmau proved that the following condition is necessary even for sublinear width.
Theorem C.1 ([AD22, Corollary 2]). Let be a PCSP template. If PCSP is solvable by a consistency algorithm of bounded or sublinear width, then contains an -ary WNU polymorphism for every .
Proposition C.2. For every prime and every for which the template is defined, PCSP(Eqn, NAE) is not solvable by -consistency for any fixed .
Proof. It suffices to rule out a ternary WNU polymorphism. Suppose that were WNU. Since , we have , and each column of
is a permutation of the nonconstant zero-sum tuple and hence belongs to . The polymorphism property says that the tuple obtained by applying to the rows belongs to . But the WNU identities make its three entries , , equal, a contradiction. Thus no ternary WNU polymorphism exists, so Theorem C.1 rules out bounded-width, equivalently fixed -consistency, algorithms.
We say that a polymorphism of arity is block symmetric if its outputs are invariant under permutations of its first k inputs and of its last inputs. We recall the following classical result.
Theorem C.3 ([BGWŻ20]). PCSP(R, Q) is solved by BLP+AIP if and only if Pol(R, Q) contains a block-symmetric polymorphism of arity 2k + 1 for every .
Proposition C.4. For every prime , PCSP(Eqn, NAE) is not solved by BLP+AIP, for every for which the template is defined.
Proof. Suppose that is a block-symmetric polymorphism for , so that its two blocks have sizes 5 and 6. Consider the following three inputs to , where the vertical line separates the two blocks:
Every column is a nonconstant zero-sum tuple, hence belongs to Eqn . Within each block, the three rows are permutations of one another. Thus block symmetry makes their three images under equal, contradicting preservation of NAE .
Consequently there is no block-symmetric polymorphism for k = 5, and the result follows from Theorem C.3.
C.2 Implementing the reduction with SingIAIP or CSingIAIP
We begin by recalling AIP and the two singleton variants of AIP studied recently by Zhuk [Zhu26]. View a finite-domain CSP instance as having a current domain for every variable and a current relation for every constraint . For , let denote the instance obtained by replacing with and deleting all incompatible tuples from every constraint containing . For a constraint and a tuple , let denote the instance obtained by replacing the relation of this particular constraint with .
Definition C.5 (Affine Integer Programming). The AIP relaxation of has integer variables for and , and for every constraint and . They satisfy
together with the marginal equations
for every , , and . There are no nonnegativity constraints. AIP accepts if this system has an integer solution, and rejects it otherwise.
Definition C.6 (SinglAIP and CSinglAIP). Both algorithms repeatedly prune the instance until reaching a fixed point.
-
SinglAIP runs AIP on for every variable and every . If this affine relaxation is infeasible, it deletes from and deletes all tuples containing this value from every constraint incident with . It rejects if some domain becomes empty.
-
CSinglAIP runs AIP on for every constraint and every . If this affine relaxation is infeasible, it deletes from the relation of this constraint only. It rejects if some constraint relation becomes empty.
If no further deletion is possible, the corresponding algorithm accepts and returns the resulting reduced instance.
Both algorithms are sound: a value, respectively a constraint tuple, used by a genuine solution can never be deleted.
The reduction in Theorem 3.3 repeatedly solves systems of equations and rounds one solution at a time. We next show that the same reduction can be expressed as one run of either Singleton AIP (SinglAIP) or Constraint Singleton AIP (CSinglAIP).
Proof of Theorem 3.3 using CSinglAIP. Fix an efficient -rounding for , and write . Let be an instance of Search-PCSP, and fix an -solution of for the analysis (the algorithm does not need access to ). Colour variables that occur in no constraint arbitrarily, so we may assume that every variable occurs in a constraint. Run CSinglAIP on to a fixed point, obtaining an instance with nonempty surviving constraint relations .
Define the set of surviving constraint-tuple pairs
For each , choose an AIP solution of , and define the induced Eqn-solution
If and , then for ,
Moreover, for every constraint , the AIP marginal equations give
Thus each is indeed an Eqn-solution of .
Fix an ordering of and combine these solutions into the solution vector
This is an Eqn-solution of . Let
and let . For each , define a partial colouring by
Since is an Eqn-solution and is a -rounding for , every constraint not contained in contains two variables in that receive different colours under .
It remains to check that is a valid instance of Search-PCSP. Let , choose a constraint containing , and write . Since CSinglAIP never deletes the tuple
the pair belongs to . The corresponding coordinate of is
Since , it follows that . Therefore is an -solution of .
Given any NAE -solution of , extend the partial colouring by setting . Every constraint of is satisfied by , while every other constraint was already made nonmonochromatic. Therefore is an NAE -solution of ; assigning arbitrary colours to the isolated variables set aside at the beginning completes the solution of the original instance.
Finally, the construction runs in polynomial time. Indeed,
CSinglAIP and the extraction of the AIP solutions take polynomial time, and the product rounding is polynomial-time computable.
For the decision reduction, if CSinglAIP rejects, we output a fixed instance with no NAE -solution; this is safe because CSinglAIP cannot reject an -solvable instance. Otherwise, the residual instance is computed using only the induced group-valued solutions and their common zero set, without evaluating . If has an -solution, the argument above shows that has an -solution. Conversely, any NAE -solution of extends existentially, using the fixed product rounding , to an NAE -solution of . Thus No instances are preserved even when is not efficiently computable.
Remark C.7. The same reduction can also be implemented using SinglAIP. Indeed, after running SinglAIP to a fixed point, index the pinned AIP solutions by the surviving variable-value pairs . The corresponding coordinate solution satisfies . Hence, if the combined solution vector vanishes at , then every surviving value belongs to . The rounding and lifting arguments are otherwise identical. This is also consistent with the fact that every finite PCSP template solved by CSinglAIP is solved by SinglAIP.
Remark C.8. Both SinglAIP and CSinglAIP are idempotent: their outputs are fixed points, so rerunning the same algorithm makes no further deletions. Consequently, a single run of either singleton algorithm can provide several successive applications of Theorem 3.3.
C.3 A minion characterisation of CSinglAIP reductions
We now show that the reduction of Theorem 3.3 can also be performed by the broader class of CSingl AIP reductions. Following Dalmau and Opršal, we characterise when there exists a CSingl AIP reduction between PCSPs by a minion condition. The characterisation combines Zhuk’s [Zhu26] skeletal-matrix description of CSinglAIP, building on [CŻ23], with the minion formulation of arc-consistency reductions from [DO24].
We pass from function minions to the more general notion of an abstract minion. We also allow arities to be indexed by arbitrary nonempty finite sets, rather than only by sets of the form [n].
Definition C.9 (Abstract minion). An (abstract) minion consists of a set for every nonempty finite set and, for every map , an operation
such that
for all maps and . The elements of are said to have arity , and the operations are called minors.
A minion homomorphism is a collection of maps that preserve minors: for every and ,
A function minion is viewed in this form by taking to consist of functions whose coordinates are indexed by ; the minor corresponding to identifies, permutes, or introduces dummy coordinates according to .
We first define the minion of affine certificates arising from CSinglAIP. This is a special case of the skeletal-matrix descriptions of singleton algorithms from [Zhu26].
Definition C.10 (Skeletal affine minion). For a nonempty finite set , let consist of the integer matrices
where is an arbitrary nonempty finite set of columns, subject to the following two conditions:
- every column has sum one, so
- every row occurring nontrivially in has a unit column. More precisely, if
then, for every , some column of is the unit vector .
For a map , define
The second condition ensures that support cannot disappear through cancellation when rows are identified: a unit column becomes . Consequently,
The column-sum condition is also preserved by minors, and the unit columns remain unit columns after rows are identified. Hence is indeed an abstract minion, and the support map describes a minion homomorphism from to the nonempty-powerset minion
Dalmau and Opršal's construction is
Definition C.11. For an abstract minion , define
Mirroring Dalmau and Opršal's treatment of arc consistency, we describe the construction in the language of Label Cover and minions. A finite Label Cover instance consists of a finite directed multigraph, a nonempty finite domain for every vertex , and, for every directed edge , a projection map . We call the source and the target of and view the edge as the binary constraint with source coordinate first and relation
Let be an abstract minion. An -solution of assigns an element to every vertex such that
for every edge . We write if such an -solution exists.
For a CSP instance , its associated instance, denoted , has a variable of domain for every variable of , a variable of domain for every constraint , and the directed projection constraint , where is the th coordinate projection, whenever occurs in position of .
For any finite CSP instance , let denote the instance obtained by running CSinglAIP to a fixed point and then restricting each domain to the values occurring in the surviving constraint tuples; the domain of an isolated variable is left unchanged. If some constraint relation becomes empty, regard this instance as unsatisfiable. The following lemma is the analogue of [DO24, Lemma C.1].
Lemma C.12. For every finite Label Cover instance and every abstract minion ,
Proof. Write for the domain of in , provided CSinglAIP does not reject. Note that for every , the AIP relaxation of is feasible. This also implies that for every edge , .
Suppose first that is an -solution sending to . We define a map by
where is constructed as follows. Let . By assumption, we can choose for each an AIP solution to the LC instance , say . We write for its marginal distribution on , a -valued vector indexed by . We construct as the matrix whose column indexed by is padded with zeros in the entries corresponding to .
It is easy to check that , and , and that respects LC constraints/minors.
For the reverse implication, let , and write
Because is an -solution,
for every edge . Note that since taking the minor of a matrix does not change the column index set, all matrices in a connected component have the same column index set.
We claim that, for every edge and every , the ordered tuple is never removed by CSinglAIP.
Suppose such a tuple is deleted at some point, say the tuple on is the first such to be deleted. Fix a column of equal to the unit vector . If is in the same component as , set . For every other component , choose some in its column index set arbitrarily, and set for all in . Now define
is a valid solution to the AIP relaxation of the remaining LC instance: a nonzero coefficient requires , and by the choice of the first deletion the tuple is still present. Every column has sum one, while gives the marginal equation at the target of ; the marginal equation at its source is immediate. Moreover, on the distinguished edge , the choice of the unit column gives
Thus the AIP relaxation with forced on is feasible, contradicting the deletion. This proves the claim.
Since every is nonempty, the claim shows that every edge retains at least one tuple; hence CSinglAIP does not reject. Therefore the sets are defined. Moreover, for every : this follows directly from the claim when is the source of an edge, from when is only a target, and from when is isolated.
Define to be the minor of obtained by adding dummy coordinates indexed by . Using and , it follows that is an -solution, as required.
For a finite Label Cover instance and a relation , let denote the universal -gadget ([DO24, Definition A.13], presented as the indicator instance in [BBKO21]): take a copy of for every vertex , and for every edge identify each with . By [BBKO21, Lemma 3.16],
Definition C.13. Let be the instance with one variable x and the single constraint . Define
We write
if is a reduction from PCSP to PCSP .
Definition C.14 (Free structure [BBKO21]). Let be a nonempty relation on a finite set , and let be an abstract minion. The free structure of generated by , denoted , is the -ary relation on consisting of all tuples for which there exists such that
Theorem C.15 (Characterisation of the CSinglAIP reduction). For finite promise templates and such that T contains no constant tuple,
Proof. Note that the completeness of the reduction on the left is easy to show in general, so we show that the soundness of the reduction is equivalent to the property on the right.
Fix a finite instance I of PCSP(R, Q). The defining property of the universal gadget and Lemma C.12 give
The property we need is [DO24, Lemma C.4]
Moreover, by [BBKO21, Lemma 4.4],
Since Q is finite, compactness shows that
Setting completes the proof.
We next show that the reduction from Theorem 3.3 can indeed be placed in this broader reduction framework.
Corollary C.16. Under the hypotheses of Theorem 3.3, with ,
Proof. We construct the minion homomorphism required by Theorem C.15.
Let , let be the column index set of , put , and put
Extend to by setting for and otherwise. After fixing an order on each column index set, define
We must show that is indeed a polymorphism. Suppose . Then it is easy to see that . If some -vector is nonzero, the -rounding makes the three outputs nonconstant. Suppose instead that . For every , the unit column shows that . Hence , so the three outputs are nonconstant since .
Finally, let , put , and write . Since is surjective, for every we have
Thus , where the right-hand side denotes the same constant-1 extension to . Together with
this proves that preserves minors.
Remark C.17. Analogously to how the characterisation of arc-consistency reductions [DO24] was lifted to a characterisation of k-consistency reductions [BHZ27], the same approach extends to a characterisation of the corresponding higher-level CSingl AIP reductions using the and constructions of Barto, Hadek, and Zhuk [BHZ27].
D Classification of valid partitions of
Recall that we say a partition of into 3 sets is valid if the only solution to with for some is . Furthermore, we only consider such partitions up to (i) multiplication by a constant and (ii) permutation of parts.
Subsets of an Abelian group for which for all are known as 3-independent sets. Voloch constructed maximal 3-independent subsets of [Vol90, Section 2], and Szönyi studied their possible sizes and structure; in particular, he proved uniqueness up to automorphism for a 3-independent subset of of size when [Szö91, Proposition 4.2]. Theorem 1.7 instead concerns the simultaneous classification of partitions into three valid parts, with the trivial triple allowed in the part containing 0.
The proof of Theorem 1.7 relies on the following standard results from additive combinatorics.
Theorem D.1 (Cauchy–Davenport [Dav35]). Let be prime and let be nonempty. Then
Theorem D.2 (Vosper [Vos56]). Let be prime and let satisfy . If
then X and Y are arithmetic progressions with the same nonzero common difference.
Theorem 1.7. For every prime , up to multiplication by a constant and permutation of parts, there exists exactly one valid partition of , namely the partition that puts into .
Proof. It is easy to check that this is a valid partition of : indeed if and at least one of is not 0, then the rounding operation in the following expression is applied to a nonintegral value at least once, and hence
Hence . More easily,
Hence . So , and this is indeed a valid partition.
We now need to prove uniqueness up to multiplication by a constant and permutation of parts. Suppose without loss of generality that . We first prove a simple fact.
Claim D.3. .
Proof. Let . Note that by definition any solution to in is . Hence, . Thus . Note that , and furthermore by the Cauchy-Davenport theorem . Thus . If the minimum on the left-hand side is , then , which implies the desired bound. Otherwise we have , or, rearranging, .
Returning to the proof of uniqueness, we split into two cases: and .
Claim D.4. Uniqueness holds for .
Proof. In this case we have, by Claim D.3, that without loss of generality or . Note that if , the inequality of Claim D.3 is tight, hence (i) the inequality is tight – and hence – and (ii) our application of Cauchy-Davenport is tight. Since 0 can only be in one of the sets, we must be in the case and . Also, by Vosper's theorem, is an arithmetic progression. Multiplying by the inverse of the common difference of this arithmetic progression, we may assume that is an arithmetic progression with common difference 1, which contains 0. It cannot contain -1 and 1 (or else the nontrivial solution would be monochromatic). Hence it contains only one of these, and by multiplying perhaps with -1 we may assume without loss of generality that it contains . Hence .
At this point, we note . Note that since , we have that and are not both within the same part. Assume without loss of generality . We prove inductively that and for . The base case is already shown. Now suppose we have established this for some . Consider that
and implies ; and and implies , which completes the inductive step.
At , both containments are equalities by the known cardinalities of and . Hence , , , and thus . This concludes the proof of uniqueness.
Claim D.5. Uniqueness holds for .
Proof. Similarly to before, we see that and . Without loss of generality, suppose . Hence , , and Cauchy-Davenport holds with equality, since by disjointness . Hence, by Vosper's theorem, we see that is an arithmetic progression.
Suppose that is the arithmetic progression . Therefore . Note that , hence enumerates all values as ranges from 0 to 3k. Note furthermore that is a bijection on , so applying it to the value not mentioned before (i.e. ) yields the output not mentioned before (i.e. 0). In other words . Hence , and multiplying by we have . Hence .
Observe that . Suppose first, for contradiction, that . By the preceding argument, we see also that , and hence and by the process of elimination . But this is impossible, since then (as ) there exists some nonzero , and then is a monochromatic nontrivial solution. Hence we find that . Now, scale all sets by the inverse of to get to the following situation: , and .
Note that if contains and for any , by the pigeonhole principle there exists some such that , which is impossible as . Hence for every such pair, one element belongs to and one to . Assume (by negating) that and . We shall prove inductively that and , for . The base case is already proved. Now assume we have this for some . Note that as we have that ; and as we have that . This completes the induction.
Hence . This concludes the proof of uniqueness.
This concludes the proof of uniqueness in all cases.
Theorem 1.8. Up to multiplication by a constant and permutation of parts, there exist exactly two valid partitions of , namely and .
Proof. Regard a partition as a colouring
Since , , , and are nontrivial zero-sum triples,
Thus each element in cannot share a colour with each element in . Since only 3 colours are available, one of these sets must be monochromatic. By multiplying by 2 and permuting the parts if necessary,
Since is a nontrivial zero-sum triple, we also have that , so without loss of generality. Since is also a nontrivial zero-sum triple, and cannot both be 3. Thus, by multiplying by if necessary, the given partitions are the only possible options. It is easy to check that both of these are indeed valid.
E Proof of Theorem 4.18
Theorem 4.18. For prime, every function in is nonconstant and essentially unary.
This section will contain three parts. First, a set of technical preliminaries. Next, a general proof of our theorem for the case . Unfortunately this proof fails for the case , which we treat separately in the last part.
E.1 Technical Preliminaries
For every prime , let
where is represented by an integer in . By Theorem 1.7, is, up to scaling its input and permuting the colours, the unique homomorphism from to .
Lemma E.1. Let be an odd prime. Pick disjoint sets such that
Then either or .
Proof. The hypothesis gives . By the Cauchy–Davenport theorem (the conclusion is immediate if ), . If the minimum is , then . If it is , then ; hence equality holds and the disjoint sets partition .
Definition E.2. For an odd prime , we say that a set is midpoint-closed if, for any with , we have .
Corollary E.3. Let be an odd prime. If is midpoint closed and admits elements with , then .
Proof. Pick such . By assumption, are distinct and are all in , hence . The conclusion follows by Lemma E.1 with .
Lemma E.4. Let prime and let , , . Equivalently, , , . Then for :
(i) If , then .
(ii) If , then if , or if .
(iii) If , then .
We prove each point separately.
Proof of Lemma E.4 (i). Suppose . In the following, is taken to be its representative within .
Case . Then , and , contradicting the assumption .
Case . Then , likewise leading to a contradiction.
Case . This interval is empty for , so we may assume . Let and . By a simple computation we have and . Since is odd and ,
Using the inequality for , we finally have and hence .
Case . Then .
Proof of Lemma E.4 (iii). If , then squaring and taking the difference we have
The total sum of squares in is , hence as we have
Thus , proving item (3).
Proof of Lemma E.4 (ii). Since , we have . Thus, after replacing by if necessary, we may assume . We first deal directly with . Multiplying by each possible value of in the specified interval yields:
| p | M | |
|---|---|---|
| 7 | ||
| 11 | ||
| 13 | . |
Noting that , and completes the proof for this case.
Now, let and , so . Write . For , let be the representative of in the interval . Since for , we have . We now split in cases depending on whether or .
Case . Since , the value is strictly smaller than , so we must have for all . Hence by a telescoping sum, ; since , this implies . Since of course , we must have .
Case . As , we have , and since , we also have . Thus, for the 's to stay in , the increments must alternate between and .
Put , so is a positive odd integer. Since is even, put . The two parity subsequences have common difference , and hence and . As all the lie in , we obtain
where the final inequality uses and . Now , so . Since and , we have . Substituting into , we get
where the signs are the same on both sides. This implies .
As , we have . Since q is a positive odd integer, the inequality forces q = 1. Therefore
□
E.2 Restricted binary polymorphisms for
Throughout this subsection, let be an odd prime, and let . Let be the permutation swapping 2 and 3. Below we let denote addition modulo 2; of course . Let . Choose whose restriction to is . After simultaneously scaling both inputs and permuting the colours, we may assume by the classification of valid partitions that for every .
For each , the map is a homomorphism sending 0 to 1. Hence, by the classification of valid partitions, for every , there exist
where has slope (meaning for some ), such that
Note that since for every , we have and .
We want to show that f is essentially unary. Equivalently:
-
for all r and
-
either for all r or for all r.
First we need to prove some more lemmas. Since p = 13 is in some sense special, it will be useful to define
Lemma E.5. Let prime and . Define , , otherwise.
(i) Suppose , and let be such that . Then and
(ii) Suppose , and let be such that . Then
Proof of Lemma E.5 (i). Since , we have:
for all . In particular, taking , we get by Lemma E.4 (i) that .
If , we get for all . Now, consider possible values of . is valid from the zero-sum triple , and from . Also for every , as is immediate from the three intervals defining . The remaining tuples , , and fail respectively by taking in , , and .
Proof of Lemma E.5 (ii). Assume . Since , we have:
for all . Taking , we get that , hence (replacing by ) .
• If , the tuple implies , so Lemma E.4 (ii) gives for and for , i.e. .
• If , it implies that the symmetric set avoids . If met , symmetry would make it meet as well. Thus, contains neither 0 nor any point of , and therefore . Equal cardinalities give , and Lemma E.4 (iii) gives .
Lemma E.6. Let and define for
For every , there is such that
Proof. This follows by case exhaustion. Write . We calculate:
| Condition on a, b | t | |
|---|---|---|
| 2n - 1 | 2 | |
| 3 | ||
| -k | 2 | |
| 4n - 1 | 3 |
It remains to consider and the pairs involving 5. Since in , we can calculate:
\begin{array}{c|c|c}{{{\text{condition on}a,b}}}&{{{t}}}&{{{\phi_{a}(t)=\phi_{b}(t)=h_{p}(-2t)}}} \\{{{\hline5\in\{a,b\}\subseteq\{1,\frac{1}{2},5\}}}&{{{\frac{1}{2}}}}&{{{3}}} \\{{{\{a,b\}=\{2,5\}}}}&{{{4}}}&{{{2}}} \\\end{array}Lemma E.7. Assume . If , then for and we have
Proof. Suppose that neither coordinate of agrees up to sign with the corresponding coordinate of . This means that the sums and have no zero coefficients. Hence we may apply Lemma E.5 to deduce that and for some . Furthermore, .
Let ; note . Apply Lemma E.6 to and to yield . After applying to all three colours, the zero-sum triple is mapped to by , which is monochromatic. This is a contradiction.
Theorem E.8. Let prime and be as described at the start of this subsection. Then
-
for every , and
-
either for every , or for every .
Equivalently, f is essentially unary.
We will devote the remainder of the section to proving this theorem. Let us first give a schematic overview of the proof. We begin by creating a family of (two) graphs derived from the polymorphisms we are studying, with edges induced by the 's. We deduce that each such graph is bipartite and its edges intersect pairwise; hence it is a star, which enforces consistency (in some sense) between the edges within each graph. We then prove in stages that in fact only one graph within our family has any edges at all. The final step is to decode one such star into a coordinate unambiguously.
Stage 1: Graph representation. Let be quotiented by sign, writing for the equivalence class . For each , define the bipartite graph with vertex set two copies of and edge set
Note that every induces an edge in precisely one graph , namely in . By Lemma E.7, any two edges of are incident. A pairwise-intersecting family of edges in a bipartite graph has a common vertex — any intersecting family of edges is either a star or a triangle, and the triangle is not bipartite. Thus is a star, together with possibly some isolated vertices.
Choose such that, if we take , then we have . In particular, we then have . Consider the graph , and assume without loss of generality that the star has its central vertex on the left side of . (If it is on the right side, this can be fixed by swapping coordinates of , which swaps coordinates of every and thus also swaps the sides of .) Letting be this central vertex, we see that every with is of the form . For each , choose such that .
Stage 2: Characterising . Set . Our proof will first show that this set must be small, then it will show that in fact . For define so that . We shall use the following simple consequence of Lemma E.5.
Corollary E.9. Suppose and . Furthermore, suppose . Then .
Claim E.10. intersects at most one set of the form , and hence .
Proof. Suppose for contradiction that there exist with . These induce lines and which in turn induce the edges () and () within . These edges share a left endpoint (but not a right endpoint) — hence is a star with its central vertex at the shared vertex . But then every satisfies , and thus .
We now show is midpoint-closed: consider with , and take . Observe
for some constant (since at this point we already know that is either or ). Assume for contradiction that , hence and . Then we are exactly in the situation from Corollary E.9 and we deduce . This implies , hence , impossible in for .
Thus is midpoint-closed. Since it contains with Corollary E.3 gives , contradicting . Hence intersects at most 1 set of the form .
Claim E.11. .
Proof. Let with , and put . Then
for some constant . If , then . Otherwise, Corollary E.9 gives , hence and . Allowing also the case , we deduce .
Claim E.12. B = T.
Proof. Apply Lemma E.1 with and . We deduce that either or . But the first alternative is impossible: and thus , yet . Thus and partition . Since also and partition , it follows .
Stage 3: Eliminating . We next show that . First, partition in terms of the signs of the first coordinate, i.e. for , define
Claim E.13. . Hence .
Proof. Suppose otherwise, and choose . Write , so that .
We first claim that . Otherwise, . Hence, by Cauchy-Davenport, , so there exist such that . But then
contradicting Lemma E.5 (i). We may therefore choose with . Put . Then
If , comparison of first coordinates gives , whereas if , it gives . This contradicts Lemma E.5 (i): and are not equivalent modulo to . Therefore .
Stage 4: Eliminating one of and and decoding. We start by showing that and are midpoint closed.
Claim E.14. For , is midpoint-closed.
Proof. Take with . Setting , we have
Since , we have , and . Thus and . Conversely, by Lemma E.5 (i) we have , and as this implies . Thus , and .
At least one of and contains two elements which are not equal up to sign. Indeed, otherwise each would have size at most 2, giving , a contradiction. By Corollary E.3, this equals . Thus we deduce the following fact.
Fact E.15. For some , we have for all , or for all . Furthermore, for all .
Proof. Since and , we obtain and . Thus, if we did not interchange coordinates earlier, we have and for all . Conversely, if we did interchange coordinates we have and again for all .
Let us now briefly argue this implies that the operations are essentially unary. If , for , taking gives and hence . If again with we have and hence . Thus is essentially unary.
E.3 Restricted binary polymorphisms for p = 7
Much of the setup of this section will be similar to the previous one — we redo it to refresh the reader’s memory. Let be as in the preceding subsection, and let . Choose whose restriction to is . As in the preceding subsection, after simultaneously scaling both inputs and permuting the colours, we may assume that
For every , the map is a homomorphism from to which sends 0 to 1. Hence, by the classification of valid partitions, there exist
where has slope r, such that
Write for some . Equivalently,
The diagonal normalisation allows us to take
Thus, on each of the other five lines through the origin, the restriction of f is one of the twelve distinct maps
Claim E.16. Suppose that, for every , we choose , with , and define
If , then exactly one of the following holds:
-
for every ;
-
for every .
Proof. We prove the claim by exhaustion using the Python script in Listing 1, which was implemented with GPT-5.6 Sol (cf. AI methodology). Lines 3–13 of Listing 1 construct the set
and, for each , store the values of the map
in RAY_VALUES[(a,e)]. Line 13 verifies that these twelve maps are distinct.
Lines 14–26 identify a point with its ray coordinates and construct the set
up to permutation. There are 168 such three-element multisets, where repetitions of points are allowed; this count is printed on line 42. For a tuple
lines 28–33 evaluate using RAY_VALUES[(a_r,e_r)] and test that all 168 triples are mapped nonmonochromatically.
There are choices after fixing . Lines 35–39 exhaustively test all of them. The assertion on line 41 checks that the only two which pass all 168 constraints are
which are precisely the two choices in the statement.
Theorem E.17. Every function in is essentially unary.
Proof. Apply Claim E.16 to the parameters above. In the first case, for , put and . Then
In the second case, the same substitution gives
Thus the normalised function depends on only one coordinate. Undoing the simultaneous scaling of the inputs and the permutation of the colours preserves this property, so the original function is essentially unary as well.
Listing 1: Complete dependency-free Python verification of Claim E.16.
from itertools import product P = 7; U = range(1, P)
The twelve possible maps t -> tau^e(h_7(a*t)).
def h_P(x): return 1 + (3 * (x % P)) // P 6 TAU = (0, 1, 3, 2) TYPES = list(product(U, (0, 1))) RAY_VALUES = { (a, e): tuple((TAU[h_P(a * t)] if e else h_P(a * t)) for t in U) for a, e in TYPES } assert len(set(RAY_VALUES.values()) == (P-1)*2
The unordered triples in (Z_7^*)^2 which sum to (0,0).
def ray_coordinates(u): x, y = u return y * pow(x, -1, P) % P, x 18 POINTS = set(product(U, repeat=2)) TRIPLES = set() for u in POINTS: for v in POINTS: w = ((-u[0] - v[0]) % P, (-u[1] - v[1]) % P) if w in POINTS: TRIPLES.add(tuple(sorted((u, v, w))) CONSTRAINTS = [tuple(ray_coordinates(u) for u in c) for c in TRIPLES]
Test whether all triples are mapped nonmonochromatically.
def colour(choice, point): r, t = point return RAY_VALUES[choice[r - 1]][t - 1] 31 def is_valid(choice): return all(len([colour(choice, u) for u in c]) > 1 for c in CONSTRAINTS)
Fix (a_1, e_1)=(1,0) and exhaust the remaining 12^5 choices.
SOLUTIONS = [] for tail in product(TYPES, repeat=P-2): choice = ((1, 0),) + tail if is_valid(choice): SOLUTIONS.append(choice) EXPECTED = [((1, 0),) * 6, tuple((r, 0) for r in U)] assert SOLUTIONS == EXPECTED print("constraints:", len(CONSTRAINTS), "search space:", len(TYPES)**5) print(*SOLUTIONS, sep="\n")
Acknowledgements. Nakajima thanks Amey Bhangale for pointing out the connection between Abelian embeddings and reconfigurability, and Demian Banakh for useful discussions.
AI methodology. LLMs were used for proving the hardness side of our results. Nakajima used Opus 4.8, Opus 5, Sonnet 5, and DeepSeek interactively to help understand the combinatorics of our problems
(e.g. writing SAT code, searching for useful properties). Verwimp also used GPT-5.6 Sol to assist in proving Theorem 4.18. Following an iterative exchange and prompts by Verwimp to use Theorem 1.7, the model found the proof for primes presented in Appendix E. ChatGPT was also used to reimplement the self-contained verification in Listing 1. The models above also helped with a literature search. ChatGPT was also used to improve the presentation of the paper, including the generation of the figure; and to look for typos and minor errors. The authors take full responsibility for the final text.
References
[AD22] Albert Atserias and Victor Dalmau. Promise constraint satisfaction and width. In Proc. 2022 ACM-SIAM Symposium on Discrete Algorithms (SODA'22), pages 1129–1153. SIAM, 2022. doi: 10.1137/1.9781611977073.48.
[AGH17] Per Austrin, Venkatesan Guruswami, and Johan Håstad. -Sat is NP-hard. SIAM J. Comput., 46(5):1554–1573, 2017. doi: 10.1137/15M1006507.
[AHM26] Per Austrin, Johan Håstad, and Björn Martinsson. On the Usefulness of Promises, pages 6332–6378. 2026. doi:10.1137/1.9781611978971.228.
[BBB21] Libor Barto, Diego Battistelli, and Kevin M. Berg. Symmetric Promise Constraint Satisfaction Problems: Beyond the Boolean Case. In Proc. 38th International Symposium on Theoretical Aspects of Computer Science (STACS'21), volume 187 of LIPIcs, pages 10:1–10:16, Dagstuhl, Germany, 2021. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.STACS.2021.10.
[BBKO21] Libor Barto, Jakub Bulin, Andrei Krokhin, and Jakub Opršal. Algebraic Approach to Promise Constraint Satisfaction. J. ACM, 68(4):28:1–28:66, July 2021. doi: 10.1145/3457606.
[BBN26] Demian Banakh, Alexey Barsukov, and Tamio-Vesa Nakajima. Towards Infinite PCSP: A Dichotomy for Monochromatic Cliques. In Claudia Faggian and Joost-Pieter Katoen, editors, Proc. 41st Annual Symposium on Logic in Computer Science (LICS'26), volume 380 of LIPIcs, pages 13:1–13:28, Dagstuhl, Germany, 2026. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.LICS.2026.13.
[BG21] Joshua Brakensiek and Venkatesan Guruswami. Promise constraint satisfaction: Algebraic structure and a symmetric Boolean dichotomy. SIAM J. Comput., 50(6):1663–1700, 2021. arXiv:1704.01937, doi:10.1137/19M128212X.
[BGWŻ20] Joshua Brakensiek, Venkatesan Guruswami, Marcin Wrochna, and Stanislav Živný. The Power of the Combined Basic LP and Affine Relaxation for Promise CSPs. SIAM Journal on Computing, 49(6):1232–1248, January 2020. doi: 10.1137/20M1312745.
[BHZ27] Libor Barto, Maximilian Hadek, and Dmitriy Zhuk. Toward a uniform algorithm and uniform reduction for constraint problems. In Proc. 2027 ACM-SIAM Symposium on Discrete Algorithms (SODA'27), 2027. arXiv:2604.06335.
[BK22] Libor Barto and Marcin Kozik. Combinatorial Gap Theorem and Reductions between Promise CSPs. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), Proceedings, pages 1204–1220. January 2022. doi:10.1137/1.9781611977073.50.
[BKLM25a] Amey Bhangale, Subhash Khot, Yang P. Liu, and Dor Minzer. On inverse theorems and combinatorial lines. In Proc. 66th IEEE Annual Symposium on Foundations of Computer Science (FOCS'25), pages 1672–1684. IEEE, 2025. doi:10.1109/FOCS63196.2025.00089.
[BKLM25b] Mark Braverman, Subhash Khot, Noam Lifshitz, and Dor Minzer. An invariance principle for the multi-slice, with applications. Advances in Mathematics, 480:110460, November 2025. doi: 10.1016/j.aim.2025.110460.
[BKM21] Mark Braverman, Subhash Khot, and Dor Minzer. On rich 2-to-1 games. In Proc. 12th Innovations in Theoretical Computer Science Conference (ITCS'21), volume 185 of LIPIcs, pages 27:1–27:20. Schloss Dagstuhl - Leibniz-Zentrum für Informatik, 2021. doi:10.4230/LIPIcs.ITCS.2021.27.
[BKM23] Amey Bhangale, Subhash Khot, and Dor Minzer. On Approximability of Satisfiable k-CSPs: III. In Proc. 55th Annual ACM Symposium on Theory of Computing (STOC'23), pages 643–655. ACM, 2023. doi:10.1145/3564246.3585121.
[BKM24] Amey Bhangale, Subhash Khot, and Dor Minzer. On Approximability of Satisfiable k-CSPs: IV. In Proc. 56th Annual ACM Symposium on Theory of Computing (STOC'24), pages 1423–1434. ACM, 2024. doi:10.1145/3618260.3649610.
[BKM25a] Amey Bhangale, Subhash Khot, and Dor Minzer. On approximability of satisfiable k-CSPs: I. Comput. Complex., 34(2):8, 2025. doi:10.1007/S00037-025-00267-6.
[BKM25b] Amey Bhangale, Subhash Khot, and Dor Minzer. On approximability of satisfiable k-CSPs: II. Comb. Probab. Comput., 34(6):857–926, 2025. doi:10.1017/S0963548325100114.
[BKM26] Amey Bhangale, Subhash Khot, and Dor Minzer. On approximability of satisfiable k-CSPs: V. TheoreticS, 5:9, 2026. doi:10.46298/THEORETICS.26.9.
[CKK+25] Lorenzo Ciardo, Marcin Kozik, Andrei Krokhin, Tamio-Vesa Nakajima, and Stanislav Živný. 1-in-3 vs. Not-All-Equal: Dichotomy of a broken promise. ACM Transactions on Computational Logic, 26(2):1–22, April 2025. doi:10.1145/3719007.
[CN26] Siu On Chan and Hiu Tsun Ng. Universal Abelian Embedding and Affine Relaxation for CSP, 2026. Technical report. URL: https://ecc.weizmann.ac.il/report/2026/273/.
[CZ23] Lorenzo Ciardo and Stanislav Živný. CLAP: A new algorithm for promise CSPs. SIAM J. Comput., 52(1):1–37, 2023. arXiv:2107.05018, doi:10.1137/22M1476435.
[Dav35] H. Davenport. On the addition of residue classes. Journal of the London Mathematical Society, s1-10(1):30–32, 1935. doi:10.1112/jlms/s1-10.37.30.
[DMR09] Irit Dinur, Elchanan Mossel, and Oded Regev. Conditional Hardness for Approximate Coloring. SIAM Journal on Computing, 39(3):843–873, 2009. doi:10.1137/07068062X.
[DO24] Victor Dalmau and Jakub Opršal. Local consistency as a reduction between constraint satisfaction problems. In Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science, pages 1–15, July 2024. arXiv:2301.05084 [cs.LO]. doi:10.1145/3661814.3662068.
[FMW26] Yumou Fei, Dor Minzer, and Shuo Wang. On the Hardness of 4-to-1 Games with Perfect Completeness. Technical report, 2026. arXiv:2610.12378.
[GS20] Venkatesan Guruswami and Sai Sandeep. D-To-1 Hardness of Coloring 3-Colorable Graphs with O(1) Colors. In 47th International Colloquium on Automata, Languages, and Programming (ICALP 2020), pages 62:1–62:12, 2020. doi:10.4230/LIPIcs.ICALP.2020.62.
[GW04] Michel X. Goemans and David P. Williamson. Approximation algorithms for Max-3-Cut and other problems via complex semidefinite programming. Journal of Computer and System Sciences, 68(2):442–470, 2004. doi:10.1016/j.jcss.2003.07.012.
[HN04] Pavol Hell and Jaroslav Nesetril. Graphs and Homomorphisms. July 2004. doi:10.1093/acprof:oso/9780198528173.001.0001.
[KV26] Andrei Krokhin and Danny Vagnozzi. Approximating 1-In-3 SAT by Linearly Ordered Hypergraph 3-Colouring Is NP-Hard. In Proc. 53rd International Colloquium on Automata, Languages, and Programming (ICALP'26), volume 374 of LIPIcs, pages 184:1–184:18, Dagstuhl, Germany, 2026. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2026.184.
[McD93] Colin McDiarmid. A Random Recolouring Method for Graphs and Hypergraphs. Combinatorics, Probability and Computing, 2(3):363–365, 1993. doi:10.1017/S0963548300000730.
[Sch86] Alexander Schrijver. Theory of Linear and Integer Programming. John Wiley & Sons, 1986.
[Sző91] T. Szönyi. COMBINATORIAL PROBLEMS FOR ABELIAN GROUPS ARISING FROM GEOMETRY. Periodica Polytechnica Transportation Engineering, 19(1-2):91–100, 1991.
[Vol90] José Felipe Voloch. On the Completeness of Certain Plane Arcs-II. European Journal of Combinatorics, 11(5):491–496, September 1990. doi:10.1016/S0195-6698(13)80032-7.
[Vos56] A. G. Vosper. The critical pairs of subsets of a group of prime order. Journal of the London Mathematical Society, s1-31(2):200–205, 1956. doi:10.1112/jlms/s1-31.2.200.
[Zhu26] Dmitriy Zhuk. Singleton algorithms for the Constraint Satisfaction Problem. In Proc. 67th IEEE Annual Symposium on Foundations of Computer Science (FOCS'26), 2026. arXiv:2509.18434.