Approximating -In- SAT by Linearly Ordered Hypergraph -Colouring Is NP-Hard
Abstract
1-in-3 SAT is a classical -hard constraint satisfaction problem (CSP). Given a satisfiable instance of 1-in-3 SAT, it is -hard to find a satisfying assignment for it, but it may be possible to efficiently find a solution subject to a weaker (not necessarily Boolean) predicate than “1-in-3”. There is a conjecture, which we call the Approximate 1-in-3 SAT conjecture, made independently by several researchers, that predicts a dichotomy: for certain choices of weaker predicates the problem becomes tractable and for the remaining choices the task remains -hard. Such problems belong to the Promise CSP (PCSP) framework, which studies how one CSP can be approximated by another, in a specific qualitative sense. The Approximate 1-in-3 SAT conjecture is notable because there is no P versus -hard dichotomy conjecture for general PCSPs yet (due to insufficient evidence). One specific predicate, corresponding to the problem of linearly ordered -colouring of 3-uniform hypergraphs, has been mentioned in several recent papers as an obstacle to further progress in proving the Approximate 1-in-3 SAT conjecture. We prove that the problem for this predicate is -hard, as predicted by the conjecture. This completes the proof of the conjecture for predicates on a -element domain.
Keywords and phrases:
Constraint satisfaction, complexity theoryCategory:
Track B: Automata, Logic, Semantics, and Theory of ProgrammingCopyright and License:
2012 ACM Subject Classification:
Theory of computationAcknowledgements:
We are grateful to Jakub Opršal, Tamio-Vesa Nakajima and Marek Filakovský for many a helpful discussion. We would also like to thank Joshua Brakensiek and the anonymous reviewers for useful feedback which improved the presentation.Funding:
Both authors are supported by the UK EPSRC grant EP/X033201/1.Editors:
Sayan Bhattacharya, Danupon Nanongkai, Michael Benedikt, and Gabriele PuppisSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
The Constraint Satisfaction Problem (CSP) framework is much studied in theoretical computer science (see e.g. [33]). Since the resolution of the Feder-Vardi CSP dichotomy conjecture [15, 42], there has been much interest in the study of qualitative approximations of -hard CSPs. The notion of Promise CSPs (PCSPs) provides the formal framework for studying these problems [2, 6, 12, 30]. In the PCSP paradigm, approximation is understood not with the aim of maximising the number of satisfied constraints (as, e.g., in [26, 35]), but via relaxing, in a uniform way, the constraints that must be satisfied. The approximate graph colouring problem is a prime example of a PCSP: for fixed constants , given a graph promised to be -colourable (but a -colouring is not given), the goal is to find a -colouring. While it is generally believed that this problem is -hard for all constants , there are only a few unconditional results on this matter. The state of the art is that the problem is -hard for and (see [6]) and for and (see [31]), while the best known efficient algorithm to colour a 3-colourable -vertex graph requires colours [29]. There are also many results about approximate hypergraph colouring (involving several different notions of colouring), see e.g. [1, 2, 5, 11, 21, 23, 25, 39, 40].
There are three classical -hard CSPs that play a big role in CSP theory [33]: graph -colouring with and (the monotone versions of) Not-All-Equal (NAE) SAT and 1-in-3 SAT. The last two problems can also be seen as colouring problems on 3-uniform hypergraph using 2 colours: respectively, requiring that no hyperedge is left monochromatic in the former case and that every hyperedge has exactly one vertex coloured as “1” in the latter case. Interestingly, the state-of-the-art for these three problems in the PCSP framework is very different.
Let us first describe in more detail the sort of problems we study in the present paper - formal definitions will be given in Section 2. Given a satisfiable instance of 1-in-3 SAT, it is -hard to find a satisfying assignment for it. We can try to relax the constraints - for example, by expanding the domain of values for the variables beyond - in order to ease the task of finding a satisfying assignment for subject to the relaxed constraints. More precisely, we fix a finite set and a ternary relation on , such that and contains the relation/predicate of 1-in-3 SAT (that is, ). Given a satisfiable instance of 1-in-3 SAT, the goal is to find an assignment of elements from to the variables of so that every constraint in is satisfied in . Put otherwise, we aim to find an “-solution” to , which can be seen as an “-approximation to a 1-in-3 solution”. The complexity of this task depends on , and the question to find the exact dependence was first asked in [6]. As observed in [5], one can assume without loss of generality that is symmetric; that is, invariant under all permutations of coordinates. By analogy with approximate graph colouring, we call this family of problems approximate 1-in-3 SAT. Approximate NAE SAT is defined in a similar way, and it has actually been studied under the name of “approximate hypergraph colouring” [21] before the introduction of the general PCSP framework. Approximate graph colouring can also be slightly expanded by using an arbitrary symmetric binary relation (containing the -colouring relation) in place of the -colouring relation.
Let us return to describing the status of the PCSPs approximating the three classical -hard CSPs. We call an -approximation trivial if contains a loop, i.e. a constant tuple. Obviously, trivial -approximations are easy. For graph colouring, all non-trivial approximations are widely believed to be -hard and this is known to hold assuming various UG-like conjectures [14, 20, 24]. Without any such assumptions, this is known to hold only for a small number of cases discussed above. In contrast, all non-trivial approximations for NAE SAT have been proven to be -hard [21, 39]. As for 1-in-3 SAT, there exist non-trivial approximations that are polynomial-time solvable. In fact, there is a conjecture, which we call the Approximate 1-in-3 Sat conjecture that predicts which -approximations are polynomial-time solvable and which are -hard. We will discuss it in detail later. It was made independently by several researchers (Opršal, Nakajima, Živný - see e.g. Conjecture 5 in [41]), and there are partial results confirming it in some special cases [5, 12, 18].
The main method in classifying the complexity of CSPs and PCSPs has been the algebraic approach, based on the notion of polymorphisms, which are multivariable functions capturing invariant properties of the relations/predicates used to specify constraints (see surveys [8, 30]). It is known that (certain abstract properties of) polymorphisms determine the complexity of CSPs and PCSPs [6, 9, 12]. For CSPs, the presence of non-trivial (in a specific sense) polymorphisms implies tractability, while the lack thereof implies -hardness [15, 16, 42]. In the PCSP realm, the situation is more complex as there are many known -hard PCSPs with non-trivial (but limited in some sense) polymorphisms. As opposed to CSPs, it is not clear at all why general PCSPs should exhibit a vs. -hard dichotomy. However, dichotomy is likely at least in some special cases.
In general, analysing the polymorphisms of a CSP or a PCSP is a highly non-trivial task. A rule of thumb is that problems with “rich enough” polymorphisms are tractable (i.e. polynomial-time solvable), whereas problems with “limited enough” polymorphisms are -hard. For PCSPs (as opposed to CSPs), it is not clear yet what exactly “rich enough” and “limited enough” mean or whether there even is a gap between them (which would indicate a non-dichotomy). See [6] or survey [30] for further discussion of the general picture of PCSP research.
Unlike work towards the CSP dichotomy, where the right -hardness condition was identified early in the process [16], polymorphism-based methods for proving -hardness of PCSPs are still very much in development [4, 6, 7, 13, 19]. Such methods typically involve identifying small special sets of variables in the polymorphisms. It was discovered recently that ideas from topological combinatorics [36] can be very useful in identifying these small sets. Such results have so far come in two distinct flavours. One flavour uses reasoning with colourings of Kneser graphs or similar (based on variants of the Borsuk-Ulam theorem) in order to find a small set of variables in polymorphisms such that setting these variables to a particular value restricts the output of the function regardless of how the remaining variables are set (see [1, 6, 39]). The other tries to show that each polymorphism is similar up certain changes (described in terms of homotopy transformations) to one with a small set of special variables, (see [3, 23, 31, 37]). Curiously, the behaviours of polymorphisms underlying applications of the two topological flavours have never been observed in the same PCSP – until now.
1.1 Related work
Classifying the complexity of PCSPs is a very active area of research (see, e.g. survey [30]). We will give a brief overview that focuses solely on the results that are closely related to approximating 1-in-3 SAT and to the topological method in PCSP.
Approximating 1-in-3 SAT by NAE was one of the first known tractable non-trivial approximation of a -hard CSP by another [12]. More specifically, one algorithm works as follows: given a satisfiable instance of 1-in-3 SAT, one relaxes each constraint in it (say on variables ) to a linear equation over the integers. One then solves the obtained linear system over integers (which can be done in polynomial time [28]), and rounds the obtained solution by mapping positive integers to 1 and non-positive ones to 0. It is easy to see that this rounding sends any triple of integers such that to a triple of Boolean values that cannot be constant, thus providing a NAE solution for the original instance. This polynomial-time algorithm is a special case of the basic AIP (affine integer programming) algorithm, whose applicability for PCSPs was characterised in [6]. The Approximate 1-in-3 Sat conjecture predicts that every approximation of 1-in-3 SAT either can be solved by the above algorithm with appropriately chosen rounding, or it remains -hard (see Section 2.1 for a formal statement). This conjecture was confirmed in [18] for approximations by so-called rainbow-free relations (in which no tuple has three pairwise different elements). The conjecture was also confirmed in [5] for relations on the set , with a single exception that the authors were not able to classify.
This unclassified case from [5] is related to a variant of the colouring problem for hypergraphs called linearly ordered (LO) colouring [5, 40] (also known as the unique maximum colouring [17]). This variant assumes that the set of colours is linearly ordered, e.g. equal to . A LO -colouring of a hypergraph is an assignment of the colours to the vertices of a hypergraph so that, for each hyperedge , if colour is the largest colour that appears in it, then is assigned to exactly one vertex in . For example, in a LO 3-colouring, for a hyperedge , the colours or would be acceptable, but not . Observe that the LO 2-colouring problem for 3-uniform hypergraph is precisely 1-in-3-SAT. Analogously to the approximate graph colouring problem, the approximate LO hypergraph colouring problem is defined [5] as follows, for fixed constants :
Given a 3-uniform hypergraph that is promised to have a LO -colouring, find a LO -colouring for it.
It was conjectured in [5] that this problem is -hard for all constants . The case of this problem was exactly the only unclassified approximation of 1-in-3 SAT by a relation on . Up to now, this conjecture was confirmed only in the following cases. It was observed [23] that, for , there is a very easy reduction to the approximate LO colouring problems with constants from the approximate graph colouring problem with constants . Hence, any known results about approximate graph colouring translate in this way to results about this conjecture. Apart from this, the only confirmed -hardness case for approximate LO colouring is for [23], with a proof based on topological combinatorics. LO hypergraph colouring can naturally be defined not only for 3-uniform hypergraphs, but for -uniform hypergraph with . The approximate LO colouring problem is known to be -hard for all and and for and all (see [39, 40]). The best known efficient algorithm to find a LO -colouring for a LO -colourable -uniform hypergraph with vertices uses colours [10, 27]. The problem of finding a LO -colouring for a given LO -colourable 3-uniform hypergarphs (which is the same as the problem of approximating 1-in-3-SAT by LO 3-colourings) was specifically mentioned in [5, 18, 23, 40, 39] as an open question and an obstacle for further progress in classifying the approximate 1-in-3 SAT problems.
1.2 Our contributions
We denote the problem of finding a LO -colouring for a given LO -colourable -uniform hypergraph by – the notation will be explained in Section 2.1. In this paper, our main result settles its complexity.
Theorem 1.
is -hard.
Combined with the partial classification obtained in [5], Theorem 1 implies a complete dichotomy for approximations of 1-in-3 SAT by -element structures.
Corollary 2.
Let be a 3-element structure such that . Either and is -hard, or else is solvable in polynomial-time.
We remark that the confirmed case of the LO colouring conjecture that we mentioned above easily follows from Theorem 1 (see Section 4), thus providing a more elementary proof of the main result in [23].
The proof of Theorem 1 is a combination of a structural result (Theorem 23) followed by a direct application of a well-known sufficient condition for -hardness of a PCSP [7, 13]. Theorem 23 states, roughly, that the polymorphisms of exhibit two kinds of behaviour - precisely the two kinds that are characteristic for the two flavours of applications of topology in PCSPs that we described above. Even though our proof is combinatorial, it shows that our problem is the first example where the features behind the two uses of topology in PCSP appear together. Thus, it is likely to be very useful in guiding further development of the topological method in Promise CSP. It is important to note that whilst some of the applications of topology lead to alternative proofs of known results, e.g. [37, 39], or to a modest step forward in comparison with existing results, e.g. [3, 23], their methodological contribution is highly meaningful. The classification of PCSPs is still in its infancy and requires a more diverse toolbox than for CSPs. The development of new methods or the identification of issues that said methods must be able to deal with are highly sought after by current research directions [30].
2 Preliminaries
Throughout the paper we use the convention The complement of a set , usually with respect to , is denoted by .
2.1 Promise CSPs
A relational structure is a tuple where is a set referred to as the domain of , and each is a relation on of arity ; that is, . In this paper we will only consider structures with a single symmetric binary relation (undirected graphs) or with a single ternary symmetric relation (i.e. invariant under permutations of coordinates), which we refer to as -uniform hypergraphs by slightly abusing standard terminology.
Relational structures and are said to be similar if and the relations and have same arity for each For similar relational structures as above, a mapping is said to be a homomorphism if for all we have , where is applied component-wise to . We write to indicate that is a homomorphism, and use the notation to indicate that a homomorphism from to exists.
Definition 3.
A PCSP template is a pair where are similar relational structures such that .
Every PCSP template defines a decision problem and a search problem as follows. The decision version of asks to decide, for a given input structure similar to and , whether or whether , the promise being that exactly one of these cases occurs. The search version of asks, given an input structure with a promise that , to find a homomorphism . The decision version trivially reduces to the search version, but it is not known whether the two versions are always polynomial-time equivalent (see [34] for recent results on this question). Hardness results are typically, and in this paper (cf. Theorems 1 and 13), proven for the decision version, and hence apply to the search version as well. Observe that if , then is the same as the standard ; that is, the problem of deciding whether . The PCSP framework allows a systematic study of problems that cannot be expressed as CSPs, and can be thought of as “qualitative” approximations of CSPs. Below are some examples of PCSPs relevant for this paper - more can be found in [1, 2, 5, 11, 21, 23, 25, 30, 39, 40].
Example 4 (Approximate graph colouring).
The problem asks to find, for fixed , an -colouring of an input -colourable graph. This problem is , where is the -clique; that is,
Example 5 (Approximate hypergraph colouring).
This problem is a natural generalisation of the above, by replacing the inequality with the “not-all-equal” relation:
A -colouring of a hypergraph, is an assignment of the colours to the vertices such that no hyperedge is monochromatic. Hence, the problem of finding, for fixed , an -colouring of a -colourable -uniform hypergraph is where . Note that the classical -hard problem NAE-SAT can be expressed as .
Example 6 (Approximate linearly ordered (LO) hypergraph colouring).
This is stricter version of colouring than the one from the previous example, the requirement being that in each hyperedge, the maximal colour assigned to its vertices occurs exactly once. Formally we replace with its subrelation
For example, , while contains exactly the triples , , , and all permutations thereof, but not or Let . Then is the Approximate LO hypergraph colouring problem that was discussed in detail in the previous section.
Example 7 (Approximate 1-in-3 SAT).
The problem is precisely (monotone) 1-in-3 SAT, so the class of problems of the form , where the domain of contains {0,1} and has a unique ternary symmetric relation containing can naturally be called Approximate 1-in-3 SAT. The question of classifying the complexity of problems in this class was first asked in [6].
All known tractable cases of can be solved by essentially the same algorithm as the one for that we described in Section 1.1. Consider the (infinite) structure . Trivially, we have by inclusion. Assume that we additionally have . Then the search version (and therefore the decision version as well) of can be solved in polynomial time by reducing it to solving a system of linear equations over . Indeed, for an input such that , we have because homomorphisms compose. Finding a homomorphism from to amounts to solving a system of linear equations over integers (which can done in polynomial time [28]). By composing the found homomorphism from to with the assumed homomorphism from to , we can find the required homomorphism from to . (There is a potential issue that all homomorphisms from to may be not computable, which can happen in a similar context in PCSPs [34], but has not occurred so far in Approximate 1-in-3 SAT). Now we can formally state the Approximate 1-in-3 SAT conjecture that we mentioned several times before.
Conjecture 8 (The approximate 1-in-3 SAT conjecture).
For each , either , in which case is solvable in polynomial time, or else is -hard.
As explained above, this conjecture has been confirmed in several special cases [5, 18]. It is easy to verify that for any , so that, indeed, stands on the hardness side of the approximate 1-in-3 SAT conjecture. The simple reasoning, which can be found, e.g., in (the proof of) Proposition 8 in [18] and which we now sketch, implies the following necessary condition for . Let be the digraph whose vertices are the elements of and edges are all pairs such that is in the relation of . Assume that there is a homomorphism . Consider all triples of the form from , and their images in under the assumed homomorphism. These images show that the digraph must contain a homomorphic image of an infinite directed path, which always contains a directed cycle or a loop, since is finite. It is easy to see that is a transitive tournament, so it contains neither a directed cycle nor a loop, and it follows that . We remark that the structures are the richest structures with the property that contains neither a directed cycle nor a loop - it is not hard to see that any (-element) structure with this property is isomorphic to a substructure of .
2.2 Polymorphisms
Polymorphisms are “higher order” homomorphisms that determine the complexity of CSPs and PCSPs. The body of work concerned with the use of polymorphisms for deriving reductions between PCSPs is generally referred to as the algebraic theory of PCSPs, the core of which can be found in [6, 12]. In this section we review some basic notions.
Definition 9.
Assume that is a PCSP template. A -ary polymorphism of a template is a function such that, for every and for every matrix with entries from , if all columns of belong to the relation in , then the column obtained by applying to the rows of belongs to the corresponding relation in . If , then we say that is a polymorphism of .
If is any PCSP template and , then it is easy to see that, for all and , all functions of the form are polymorphisms of . In the special case when and is the inclusion map, such polymorphisms are called projections (also known as dictators).
Example 10 (Polymorphisms of ).
A function is a polymorphism of if, for every matrix with 0/1 entries such that every column of contains exactly one 1, the column obtained by applying to the rows of also contains exactly one 1. It is well-known and not hard to verify directly, that projections are the only polymorphisms of .
Example 11 (Polymorphisms of ).
A function is a polymorphism of if, for every matrix with 0/1 entries, if every column of contains exactly one 1, then the column obtained by applying to the rows of contains both a 0 and a 1. This template has many polymorphisms different from projections.
One example is the -ary Boolean function which outputs 1 if and only if at least of its arguments are equal to 1. To see that this is a polymorphism, consider a matrix such that each column of contains exactly one 1. Since the total number of 1s in is , it is impossible that each row of contains at least 1s or that each row of contains or fewer 1s. Therefore applied to the rows of produces a column that contains both a 0 and a 1.
The polymorphisms of a structure are closed under composition; hence the success of applications of universal algebra in the classification of CSPs. This is not the case for PCSPs: indeed, for a general template, composition of polymorphisms is not well defined. Instead, we work with a “composition free” structure where the functions are closed under permuting the variables, identifying them or adding dummy ones. Formally, we refer to these operations as taking a minor.
Definition 12.
Let be a function. For a map , we say that a function is a minor (or a -minor) of , denoted , if
for all .
A set of finitary functions from to that is closed under taking minors is called a (function) minion.
It follows immediately from the definitions that, for any PCSP template , the set of all polymorphisms of is a minion. It is denoted by .
There are several polymorphism-based sufficient conditions for -hardness of PCSPs (see, e.g., [4, 6, 7, 13, 30]). We will use the following one in the proof of Theorem 1. A chain of minors in is a sequence where for each and .
3 The structure of
This section is dedicated to outlining the proof of the structural result (Theorem 23) that describes the general form of the polymorphisms of , and to showing how this implies our hardness result (Theorem 1).
3.1 -sets, -sets, -sets…
We use the notion of an -set as in [5] to describe the action of a polymorphism of . Fix some and consider a function . We can identify tuples from with subsets from , where a subset corresponds to the tuple having 1 exactly in positions in . Then notation has the obvious meaning. We say that is an -set of for some if . It is easy to see that if and is an -set of then is an -set of . If then we call a boolean set of , and we say that a 2-set of small if it contains three elements or less.
It is straightforward to check that a function is a polymorphism of if, and only if, for all partitions of into three subsets (some of which may be empty), we have that . Observe that the empty set can never be a 2-set. We say that a partition of is a boolean partition (for ) if . In the language of -sets, the -ary projections of are the mappings for which there exists some , such that is a -set if, and only if, and it is a -set otherwise.
When we use the above terminology (-set, boolean partition etc.) and is clear from the context, we will omit a reference to it. This should cause no confusion.
3.2 Reconfiguration graph of polymorphisms
Let us informally describe our result about the structure of by means of the so-called reconfiguration graph. For , consider a graph whose vertices are the -ary polymorphisms of and there is an edge between two polymorphisms if they differ (as functions) in a single position. Our structural result (Theorem 23) claims, intuitively, that if all polymorphisms with small -sets are removed from , then the resulting graph is disconnected, and each of its connected components contains a unique -ary projection. For our hardness result, we will need a more precise and technical version of this statement. It will follow from it that, in fact, each of these connected components has a very structured path from any function to the corresponding unique projection.
3.3 Recolouring and saturation
The -ary polymorphisms of can be understood as colourings of the subsets of using the colour set and subject to the constraints enforced by . We say that a set is recolourable for a -ary polymorphism if one can change the image of to a different value to obtain a mapping that is still a polymorphism of . Specifically, we say that is recolourable to or -recolourable for some if the mapping defined as
is a polymorphism of . We say that a boolean set is static (for ) if it is not recolourable to its opposite boolean value. That is, if it is an -set for and it is not -recolourable. The following lemma is straightforward.
Lemma 14.
A boolean set of a -ary polymorphism of is static if, and only if, there exist sets such that is a boolean partition of .
Recolouring is a central notion to our structural result: what we show is in fact, that polymorphisms of without small -sets are essentially projections modulo some recolouring.
Definition 15.
Let be a -ary polymorphism of . We say that is a recoloured projection if there is some such that for any static boolean set , it holds that where is the Iverson bracket (which evaluates to if and to otherwise). We refer to such as the dictating variable of .
The intuition behind this notion is that there is a simple recolouring (path in the graph ) from to the corresponding projection: first one recolours all boolean non-static sets to the value (this can be done in any order), and then one recolours each 2-set of to (which can also be done in any order).
It is easy to characterise all -recolourable boolean sets. The following is straightforward.
Lemma 16.
For any polymorphism of , there are no disjoint -sets. In particular, the empty set is never a -set. Furthermore, a boolean set is -recolourable if, and only if, has non-empty intersection with every -set of .
The above lemma states that the 2-sets of any polymorphism form an intersecting family (i.e. a family of pairwise intersecting subsets of a set), which is an object much studied in extremal combinatorics, see, e.g. [22]. We say that a -ary polymorphism is upwards closed if for every -set , we have that implies . If is upwards closed and is such that the complement of every boolean set is a -set (that is, for every either or is a -set), we say that is saturated. Note that in a saturated polymorphism no boolean set is -recolourable, so the -sets of a saturated polymorphism of arity form a maximal intersecting family of subsets, as studied in [38].
Definition 17.
Let be -ary polymorphisms of and assume that is saturated. We say that is a saturation of if there is a sequence of -ary polymorphisms where for each , is obtained from by recolouring a boolean set to . If, in addition, has no small -set, we say that is a pure saturation of . We call the sequence a saturation path for .
When using the fact that a polymorphism is saturated in a proof, we may say “by saturation” as a shorthand for “because is saturated” when is clear from the context. The following lemma implies that every polymorphism can be recoloured to one that is upwards closed.
Lemma 18.
Let be a polymorphism of . If is a -set and is a boolean set such that , then is -recolourable.
Proof.
By Lemma 16, has non-empty intersection with all -sets of . Since , the same holds for , so is -recolourable by Lemma 16. Using a similar argument, we can show that every polymorphism has a saturation, though this may not be unique.
Lemma 19.
Let be an upwards closed -ary polymorphism of . If are disjoint non-empty boolean sets for which , then both and are -recolourable.
Proof.
Since is upwards closed, there are no subsets of that are -sets. Thus, all -sets intersect , so by Lemma 16, is -recolourable. By symmetry, the same argument applies to .
Corollary 20.
Every polymorphism of has a saturation. Moreover, if has arity at least 7 and no small -sets, then has a pure saturation.
Proof.
Starting from , one can apply Lemmas 18 and 19 exhaustively to obtain a saturation. If has arity and no small 2-set, then, when applying Lemma 19, one can always choose to 2-recolour the set containing at least elements, thus never introducing small 2-sets. Being able to recolour a polymorphism to a saturated one is a handy trick: this gives more structure and makes analysing recolourings easier without affecting the “core” of the polymorphism itself. Note that it follows from Lemmas 18 and 19 that if a polymorphism has no small -set and is a pure saturation of , then there is a path in the reconfiguration graph connecting to that never passes through polymorphisms with small -sets. Put otherwise, the process of recolouring a polymorphism to a pure saturation can be done without the addition of any small -sets.
For saturated polymorphisms, the following Lemma is a useful characterisation of static boolean sets. Hereafter, for a saturated polymorphism , we denote the union of its minimal -sets by 111We understand minimality of -sets by inclusion: a -set is minimal if none of its non-trivial subsets is a -set..
Lemma 21.
For a -ary saturated polymorphism of , a boolean set is static if, and only if, is non-empty.
Proof.
Suppose is empty, and consider a partition of . If is boolean then is a -set by saturation and thus, there must be some minimal -set for which . In particular, is non-empty. Since is the disjoint union of and and is disjoint from we must have that . This implies that so is a -set, so is not part of any boolean partition and hence, it is not static by Lemma 14.
For the converse, let be a minimal -set such that is non-empty. Consider the partition . It is boolean since is boolean by assumption, is a proper subset of a minimal -set, and is disjoint from a -set, namely . Thus, is a part of a boolean partition, so it is static by Lemma 14. As mentioned above, polymorphisms may not have a unique saturation - projections being the most immediate example. For polymorphisms with unique pure saturation, we have the following characterisation of the boolean sets that are recoloured throughout a saturation path.
Lemma 22.
Let be a polymorphism of of arity and no small -sets. Let be a boolean set of and let be a pure saturation of . If or there is some such that , then . If, in addition, we assume that is the unique pure saturation of , then the converse holds.
Proof.
Let be a boolean set of . If , then , since cannot have small -sets and either or must be a -set of . If has a subset that is a -set of , then , since saturations are upwards closed. In both cases, as required.
For the converse, let be a boolean set of and suppose , where is the unique pure saturation of . Note that this implies . Suppose that and no subset of is a -set of . By Lemma 16, must be -recolourable in , so let be the polymorphism obtained by -recolouring . Since , has no small -sets; in particular, there is a saturation of with no small -sets (by Corollary 20) such that , which means that . But is by construction a pure saturation of , which contradicts the assumption that is unique.
We now state the structural theorem at the core of our main result (Theorem 1) and outline its proof strategy. The full proof can be found in Section 3.5 of [32].
Theorem 23 (Structural theorem).
For each -ary polymorphism of that has no small 2-sets, there exists a unique (depending on ) such that the following holds: and is a recoloured projection with dictating variable , or and every pure saturation of is a recoloured projection with dictating variable .
Let us relate this technical statement to the reconfiguration graph informally described in Section 3.2. For , the definition of a recoloured projection (Definition 15) gives a path in from any polymorphism of arity with no small -set, to the projection with the same dictating variable. If , a polymorphism of arity may not be a recoloured projection, even if there are no small -sets. However, the proof of Corollary 20 gives a path from to a pure saturation, say , from which, as before, the definition of a recoloured projection gives a path in from to the projection whose dictating variable is the same as that of . Note that in both cases, the constructed paths do not include any vertices corresponding to polymorphisms with small -sets. Hence the claim, in Section 3.2, that if the vertices corresponding to functions with small -sets are removed from , then the graph is disconnected and each connected component has exactly one projection.
We now outline the proof strategy of Theorem 23. The proof of the case is straightforward combinatorics. For , we proceed by induction on the number of variables that are not contained in a element -set. The majority of work is in proving the base case for this argument, i.e. that the theorem holds for the polymorphisms all of whose variables are contained in a -element -set. We show that such functions must satisfy the requirements in Theorem 23 by arguing with a minimal counterexample (that is, assuming the existence of a polymorphism contradicting Theorem 23 and taking one such of minimal arity). Throughout the proof, we will mostly use the recolouring properties of saturated functions proven in this section, as well as a consequence of Lovasz’s result on the chromatic number of Kneser graphs; namely, that if a polymorphsim of has no small -set, then it must have a small -set. This statement was first proven in a similar context in [5].
4 Proof of Theorem 1 and the hardness of revisited
In the section, we show how Theorem 23, with the help of Theorem 13 and some auxiliary lemmas, implies Theorem 1. First, we show a easy consequence of Theorem 23 and Lemma 21 that will be used throughout (Lemma 24). Next, we need to distinguish the cases in which polymorphisms have a unique pure saturation or otherwise. This is because in the latter case, a saturation path may “fool” the dictating variable when taking a minor (as illustrated in Example 28). In Lemmas 25 and 26 we show that this unhelpful behaviour does not occur in the cases when polymorphisms do not have unique saturation or the unique saturation has no large minimal -set. Finally, in the proof of Theorem 1 we show that if a minor chain is long enough and functions whose unique pure saturation has large minimal -sets occur, then the claim in Lemma 27 is sufficient to deal with these “bad” situations.
Lemma 24.
Assume that is a -ary polymorphism of for . Further assume that is a pure saturation and let be its dictating variable as in Theorem 23. Then any boolean set for which is a static -set if, and only if, .
Proof.
Let be a boolean set for and assume . Since is saturated, it follows from Lemma 21 that is static. In particular, since is a recoloured projection by Theorem 23, we must have that if, and only if, is a -set as required.
Lemma 25.
Assume that is a -ary polymorphism of with and no small 2-sets. Suppose that does not have a unique pure saturation and let be the dictating variable of any pure saturation of , as in Theorem 23. Then cannot have disjoint non-empty boolean sets such that and .
Proof.
Let be a pure saturation of . Since the choice of is not unique, there is a minimal 2-set of such that neither nor is a 2-set of and . It is easy to see that one can choose a saturation path from to so that 2-recolouring is the last step on this path. Suppose, for contradiction, that there exist disjoint non-empty that are boolean sets of for which and . We cannot have , since and are disjoint, so assume without loss of generality that , and hence . To get a contradiction, it suffices to show that is static for , because then by Theorem 23 and so . By Lemma 21, it suffices to show that . Hence, assume for contradiction that . Then . Suppose we have that and consider the saturation of such that if , and . Put otherwise, we follow the saturation path from to , but in the last step we make a different choice: we 2-recolour rather than . Note that, since , is a pure saturation of and is its minimal 2-set. Since , is a boolean set of , which is static by Lemma 21. But , and this contradicts being a dictating variable of (which is a recoloured projection by Theorem 23). So we must have that . Since is saturated and has no small 2-sets, it has a minimal 2-set distinct from . Then so as required.
Lemma 26.
Let be a polymorphism of with arity and no small -set. Suppose is the unique pure saturation of . Let be a -ary polymorphism for some minor map with and suppose has no small -set. If is the unique pure saturation of , and if has no minimal -set with or more elements, then , where are the respective dictating variables of as in Theorem 23.
Note that, by Definition 17, for a -ary saturated polymorphism with no small -set, all sets with or more elements are -sets, so it suffices to show the above statement assuming has no minimal -sets with exactly elements.
Proof.
First we show that and coincide on all boolean sets. Let be a boolean set of , so we have . Since is the unique pure saturation of and , it follows from Lemma 22 that either (or equivalently ) or there is some such that . Consider first the case . Since has no minimal -set of size or larger, and , it must hold that there is some such that is a -set of and . But is therefore a -set of , and thus, is a -set of . Since is disjoint from , it follows from Lemma 16 that is a boolean set of both and and, in particular, . But and , so is a boolean set of with . For the case where , we proceed with an argument verbatim as above and conclude that is a boolean set of and . In particular, this means that for all boolean sets of , we have as claimed.
Let be a partition of that is boolean for . From the above argument it follows that is also a boolean partition for and hence, is a partition of that is boolean for . In particular, for any static -set of , it holds that a static -set of . By Lemma 24, we may choose static -sets of , say and , such that . Then since are static -sets of it follows from Lemma 24 that . Thus, or, equivalently, as required.
Lemma 27.
Let be a polymorphism of with arity and no small -set. Suppose further that has a unique pure saturation . Let be the dictating variable of , and let be any set such that and . Then for any set such that and .
Proof.
Let be a -set of and suppose is non-empty. We distinguish the cases and . If , then is static in by Lemma 21, so by Theorem 23 and thus, is non-empty as required. Consider now the case . Because is the unique pure saturation of and , it follows from Lemma 22 that either or has a subset such that . Suppose has a subset for which . If is disjoint from then there must be a partition of with , and therefore are disjoint -sets - a contradiction to Lemma 16. If instead, and is disjoint from then there is a partition of where so , but , which is impossible since does not have any small -sets. Thus, is non-empty as required.
Proof of Theorem 1.
We apply Theorem 13 to with .
For each polymorphism of , we choose to be an arbitrary small 2-set of if there is one. Otherwise, if has arity then is a recoloured projection by Theorem 23 and we take where is the dictating variable of . If has arity and no small -set, consider a pure saturation of and let be its dictating variable as in Theorem 23. In this case, we take if ; otherwise, we take to be any -element -set containing (the existence of such sets is an easy consequence of Lemma 24). It may seem that it would be more natural to set and to let for all polymorphisms without small 2-sets. We will show in Example 28 below that this would not work.
First, observe that, for any polymorphisms and such that , the set is never empty. Indeed if is a -set, then is a -set of , and so is non-empty by Lemma 16. In all other cases, we have that contains the dictating variable of (if has arity at most ) or that of a pure saturation of . Then is non-empty; for otherwise, we would have for every . But there exists such that . Indeed, if the arity of is at most , then we may take to be any element, since must be a static set as it participates in some boolean partition. If, instead, the arity of is at least , we can take to be any element different from belonging to a minimal 2-set of a pure saturation of (by Lemma 24).
Consider a minor chain in . If (at least) two of , say and with , have small 2-sets, then is a 2-set of , and hence by Lemma 16, as required.
Assume now that no more than one polymorphism in the chain has a small -set. Suppose with have no small -set. Let the arities of the operations be and , respectively, and let be the dictating variables contained in the choice sets , and , respectively.
First we deal with the case when either (i) or (ii) and does not have a unique pure saturation. We show that we have , which implies the desired result. Assume, for contradiction, that . We claim that there exist two disjoint subsets and of such that , and , . Indeed, if then we can take , , and this will work because is a recoloured projection with dictating variable . If then one can take any pure saturation of and choose distinct (this is possible because ). Then by choosing and , it is easy to see that these have the required properties by using Lemma 24. Now let and similarly . Observe that and are disjoint (because and are disjoint) and non-empty (because and ). Moreover, and . If this cannot happen because is a recoloured projection with dictating variable , and if this would contradict Lemma 25.
Clearly, if either (i) or (ii) and does not have a unique pure saturation, the same reasoning as above applies to and .
It remains to consider the case when both and have arity at least 7 and both have a unique pure saturation. Let denote the unique saturation of . If has no minimal -set with elements, then by Lemma 26, we have that and we are done. If has a minimal -set with elements, since is saturated, this implies that for any , the set is a minimal -set of as it has exactly elements. We therefore have that . Then is a (non-empty) -set of , and, obviously, . Lemma 27 implies that is non-empty, as required.
We now give an example showing that setting to be for each polymorphism without small 2-sets would create an issue.
Example 28.
Consider the following function of arity 9:
Let be the same as , but . One can check that both and are polymorphisms of , and is the only pure saturation of .
Clearly, the first variable is dictating for , but choosing would lead to a problem. Let , where is such that for and for . It is easy to check that is the projection on the second coordinate, so . But then . Moreover, it is easy to see that one can select another minor of such that is a chain of minors and has a small 2-set.
The hardness of follows easily from Theorem 1. For those familiar with pp-definitions, the reduction from follows because the formula pp-defines from . For others, we spell this reduction out in elementary terms.
Corollary 29 (Theorem 1 in [23]).
is -hard.
Proof.
We give a simple (gadget) reduction from to . Given an instance of , modify it by adding a new element for every element of and adding the tuple to the relation of . Denote the obtained instance by . If then there is a homomorphism defined as for all old elements and for all new elements. It is easy to see that is a homomorphism. Assume that we can efficiently find a homomorphism . Observe that all the old elements (from ) must be mapped to because of the constraints added when building . Thus the restriction of to is a homomorphism from to .
References
- [1] Per Austrin, Amey Bhangale, and Aditya Potukuchi. Improved inapproximability of rainbow coloring. In Shuchi Chawla, editor, Proceedings of the 2020 ACM-SIAM Symposium on Discrete Algorithms, SODA 2020, Salt Lake City, UT, USA, January 5-8, 2020, pages 1479–1495. SIAM, 2020. doi:10.1137/1.9781611975994.90.
- [2] Per Austrin, Venkatesan Guruswami, and Johan Håstad. -SAT is NP-hard. SIAM Journal on Computing, 46(5):1554–1573, 2017. doi:10.1137/15M1006507.
- [3] Sergey Avvakumov, Marek Filakovský, Jakub Opršal, Gianluca Tasinato, and Uli Wagner. Hardness of 4-colouring -colourable graphs. In Michal Koucký and Nikhil Bansal, editors, Proceedings of the 57th Annual ACM Symposium on Theory of Computing, STOC 2025, Prague, Czechia, June 23-27, 2025, pages 72–83. ACM, 2025. doi:10.1145/3717823.3718154.
- [4] Demian Banakh and Marcin Kozik. Injective hardness condition for PCSPs. In Pawel Sobocinski, Ugo Dal Lago, and Javier Esparza, editors, Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2024, Tallinn, Estonia, July 8-11, 2024, pages 8:1–8:10. ACM, 2024. doi:10.1145/3661814.3662072.
- [5] Libor Barto, Diego Battistelli, and Kevin M. Berg. Symmetric Promise Constraint Satisfaction Problems: Beyond the Boolean Case. In Markus Bläser and Benjamin Monmege, editors, 38th International Symposium on Theoretical Aspects of Computer Science (STACS 2021), volume 187 of Leibniz International Proceedings in Informatics (LIPIcs), pages 10:1–10:16, Dagstuhl, Germany, 2021. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.STACS.2021.10.
- [6] Libor Barto, Jakub Bulín, Andrei Krokhin, and Jakub Opršal. Algebraic approach to promise constraint satisfaction. J. ACM, 68(4):28:1–28:66, 2021. doi:10.1145/3457606.
- [7] 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), pages 1204–1220, 2022. doi:10.1137/1.9781611977073.50.
- [8] Libor Barto, Andrei Krokhin, and Ross Willard. Polymorphisms, and how to use them. In Andrei A. Krokhin and Stanislav Zivný, editors, The Constraint Satisfaction Problem: Complexity and Approximability, volume 7 of Dagstuhl Follow-Ups, pages 1–44. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017. doi:10.4230/DFU.VOL7.15301.1.
- [9] Libor Barto, Jakub Opršal, and Michael Pinsker. The wonderland of reflections. Israel J. Math., 223(1):363–398, 2018.
- [10] Benjamin Bedert, Tamio-Vesa Nakajima, Karolina Okrasa, and Stanislav Živnỳ. Strong sparsification for 1-in-3-SAT via polynomial Freiman-Ruzsa, 2025. to appear in FOCS’25. arXiv:2507.17878.
- [11] Joshua Brakensiek and Venkatesan Guruswami. New hardness results for graph and hypergraph colorings. In Ran Raz, editor, 31st Conference on Computational Complexity, CCC 2016, May 29 to June 1, 2016, Tokyo, Japan, volume 50 of LIPIcs, pages 14:1–14:27. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2016. doi:10.4230/LIPIcs.CCC.2016.14.
- [12] Joshua Brakensiek and Venkatesan Guruswami. Promise constraint satisfaction: Algebraic structure and a symmetric boolean dichotomy. SIAM Journal on Computing, 50(6):1663–1700, 2021. doi:10.1137/19M128212X.
- [13] Alex Brandts, Marcin Wrochna, and Stanislav Živný. The complexity of promise SAT on non-Boolean domains. ACM Trans. Comput. Theory, 13(4), September 2021. doi:10.1145/3470867.
- [14] Mark Braverman, Subhash Khot, Noam Lifshitz, and Dor Minzer. An invariance principle for the multi-slice, with applications. In 2021 IEEE 62nd Annual Symposium on Foundations of Computer Science (FOCS), pages 228–236. IEEE, 2022.
- [15] Andrei Bulatov. A dichotomy theorem for nonuniform CSPs. In 2017 IEEE 58th Annual Symposium on Foundations of Computer Science (FOCS), pages 319–330. IEEE, 2017. doi:10.1109/FOCS.2017.37.
- [16] Andrei Bulatov, Peter Jeavons, and Andrei Krokhin. Classifying the complexity of constraints using finite algebras. SIAM J. Comput., 34(3):720–742, 2005. doi:10.1137/S0097539700376676.
- [17] Panagiotis Cheilaris, Balázs Keszegh, and Dömötör Pálvölgyi. Unique-maximum and conflict-free coloring for hypergraphs and tree graphs. SIAM J. Discret. Math., 27(4):1775–1787, 2013. doi:10.1137/120880471.
- [18] 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 Trans. Comput. Log., 26(2):10:1–10:22, 2025. doi:10.1145/3719007.
- [19] Víctor Dalmau and Jakub Opršal. Local consistency as a reduction between constraint satisfaction problems. In Pawel Sobocinski, Ugo Dal Lago, and Javier Esparza, editors, Proceedings of the 39th Annual ACM/IEEE Symposium on Logic in Computer Science, LICS 2024, Tallinn, Estonia, July 8-11, 2024, pages 29:1–29:15. ACM, 2024. doi:10.1145/3661814.3662068.
- [20] Irit Dinur, Elchanan Mossel, and Oded Regev. Conditional hardness for approximate coloring. SIAM J. Comput., 39(3):843–873, 2009. doi:10.1137/07068062X.
- [21] Irit Dinur, Oded Regev, and Clifford D. Smyth. The hardness of 3-uniform hypergraph coloring. Comb., 25(5):519–535, 2005. doi:10.1007/S00493-005-0032-4.
- [22] David Ellis. Intersection problems in extremal combinatorics: Theorems, techniques and questions old and new, 2021. arXiv:2107.06371.
- [23] Marek Filakovský, Tamio-Vesa Nakajima, Jakub Opršal, Gianluca Tasinato, and Uli Wagner. Hardness of linearly ordered 4-colouring of 3-colourable 3-uniform hypergraphs. ACM Trans. Comput. Theory, 18(2), May 2026. doi:10.1145/3779121.
- [24] Venkatesan Guruswami and Sai Sandeep. d-To-1 Hardness of Coloring 3-Colorable Graphs with O(1) Colors. In Artur Czumaj, Anuj Dawar, and Emanuela Merelli, editors, 47th International Colloquium on Automata, Languages, and Programming (ICALP 2020), volume 168 of Leibniz International Proceedings in Informatics (LIPIcs), pages 62:1–62:12, Dagstuhl, Germany, 2020. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.ICALP.2020.62.
- [25] Venkatesan Guruswami and Sai Sandeep. Rainbow coloring hardness via low sensitivity polymorphisms. SIAM J. Discret. Math., 34(1):520–537, 2020. doi:10.1137/19M127731X.
- [26] Johan Håstad. Some optimal inapproximability results. J. ACM, 48(4):798–859, 2001. doi:10.1145/502090.502098.
- [27] Johan Håstad, Björn Martinsson, Tamio-Vesa Nakajima, and Stanislav Živný. A Logarithmic Approximation of Linearly-Ordered Colourings. In Amit Kumar and Noga Ron-Zewi, editors, Approximation, Randomization, and Combinatorial Optimization. Algorithms and Techniques (APPROX/RANDOM 2024), volume 317 of Leibniz International Proceedings in Informatics (LIPIcs), pages 7:1–7:6, Dagstuhl, Germany, 2024. Schloss Dagstuhl – Leibniz-Zentrum für Informatik. doi:10.4230/LIPIcs.APPROX/RANDOM.2024.7.
- [28] Ravindran Kannan and Achim Bachem. Polynomial algorithms for computing the smith and hermite normal forms of an integer matrix. SIAM J. Comput., 8(4):499–507, 1979. doi:10.1137/0208040.
- [29] Ken-ichi Kawarabayashi, Mikkel Thorup, and Hirotaka Yoneda. Better coloring of 3-colorable graphs. In Bojan Mohar, Igor Shinkar, and Ryan O’Donnell, editors, Proceedings of the 56th Annual ACM Symposium on Theory of Computing, STOC 2024, Vancouver, BC, Canada, June 24-28, 2024, pages 331–339. ACM, 2024. doi:10.1145/3618260.3649768.
- [30] Andrei Krokhin and Jakub Opršal. An invitation to the promise constraint satisfaction problem. ACM SIGLOG News, 9(3):30–59, 2022. doi:10.1145/3559736.3559740.
- [31] Andrei Krokhin, Jakub Opršal, Marcin Wrochna, and Stanislav Živný. Topology and adjunction in promise constraint satisfaction. SIAM Journal on Computing, 52(1):38–79, 2023. doi:10.1137/20M1378223.
- [32] Andrei Krokhin and Danny Vagnozzi. Approximating 1-in-3 SAT by linearly ordered hypergraph 3-colouring is NP-hard. arXiv preprint, 2025. doi:10.48550/arXiv.2508.14606.
- [33] Andrei Krokhin and Stanislav Živný, editors. The Constraint Satisfaction Problem: Complexity and Approximability, volume 7 of Dagstuhl Follow-Ups. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017. URL: http://www.dagstuhl.de/dagpub/978-3-95977-003-3.
- [34] Alberto Larrauri. Ineffectiveness for search and undecidability of PCSP meta-problems. CoRR, abs/2504.04639, 2025. to appear in FOCS’25. doi:10.48550/arXiv.2504.04639.
- [35] Konstantin Makarychev and Yury Makarychev. Approximation algorithms for CSPs. In Andrei A. Krokhin and Stanislav Zivný, editors, The Constraint Satisfaction Problem: Complexity and Approximability, volume 7 of Dagstuhl Follow-Ups, pages 287–325. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2017. doi:10.4230/DFU.VOL7.15301.11.
- [36] Jiří Matoušek. Using the Borsuk-Ulam Theorem. Universitext. Springer, 2003.
- [37] Sebastian Meyer and Jakub Opršal. A topological proof of the Hell-Nešetřil dichotomy. In Proceedings of the 2025 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pages 4507–4519, 2025. doi:10.1137/1.9781611978322.154.
- [38] Aaron Meyerowitz. Maximal intersecting families. European Journal of Combinatorics, 16(5):491–501, 1995. doi:10.1016/0195-6698(95)90004-7.
- [39] Tamio-Vesa Nakajima, Zephyr Verwimp, Marcin Wrochna, and Stanislav Živný. Complexity of approximate conflict-free, linearly-ordered, and nonmonochromatic hypergraph colourings. In Keren Censor-Hillel, Fabrizio Grandoni, Joël Ouaknine, and Gabriele Puppis, editors, 52nd International Colloquium on Automata, Languages, and Programming, ICALP 2025, July 8-11, 2025, Aarhus, Denmark, volume 334 of LIPIcs, pages 169:1–169:10. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2025. to appear in ACM Transactions on Computation Theory. doi:10.4230/LIPIcs.ICALP.2025.169.
- [40] Tamio-Vesa Nakajima and Stanislav Živný. Linearly ordered colourings of hypergraphs. ACM Trans. Comput. Theory, 14(3–4), February 2023. doi:10.1145/3570909.
- [41] Tamio-Vesa Nakajima and Stanislav Živný. On the complexity of symmetric vs. functional PCSPs. ACM Trans. Algorithms, 20(4):33:1–33:29, 2024. doi:10.1145/3673655.
- [42] Dmitriy Zhuk. A proof of the CSP dichotomy conjecture. Journal of the ACM (JACM), 67(5):1–78, 2020. doi:10.1145/3402029.
