Abstract 1 Introduction 2 Preliminaries 3 The structure of 𝐏𝐨𝐥(𝐋𝐎𝟐,𝐋𝐎𝟑) 4 Proof of Theorem 1 and the hardness of 𝐏𝐂𝐒𝐏(𝐋𝐎𝟑,𝐋𝐎𝟒) revisited References

Approximating 1-In-3 SAT by Linearly Ordered Hypergraph 3-Colouring Is NP-Hard

Andrei Krokhin ORCID Durham University, UK    Danny Vagnozzi ORCID Durham University, UK
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 3-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 3-element domain.

Keywords and phrases:
Constraint satisfaction, complexity theory
Category:
Track B: Automata, Logic, Semantics, and Theory of Programming
Copyright and License:
[Uncaptioned image] © Andrei Krokhin and Danny Vagnozzi; licensed under Creative Commons License CC-BY 4.0
2012 ACM Subject Classification:
Theory of computation
Related Version:
Full Version: https://arxiv.org/abs/2508.14606 [32]
Acknowledgements:
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 Puppis

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 3k, given a graph promised to be k-colourable (but a k-colouring is not given), the goal is to find a -colouring. While it is generally believed that this problem is 𝖭𝖯-hard for all constants 3k, there are only a few unconditional results on this matter. The state of the art is that the problem is 𝖭𝖯-hard for k3 and 2k1 (see [6]) and for k4 and (kk/2)1 (see [31]), while the best known efficient algorithm to colour a 3-colourable n-vertex graph requires O(n0.19747) 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 k-colouring with k3 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 I 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 {0,1} - in order to ease the task of finding a satisfying assignment for I subject to the relaxed constraints. More precisely, we fix a finite set A and a ternary relation R on A, such that {0,1}A and R contains the relation/predicate of 1-in-3 SAT (that is, {(0,0,1),(0,1,0),(1,0,0)}R). Given a satisfiable instance I of 1-in-3 SAT, the goal is to find an assignment of elements from A to the variables of I so that every constraint in I is satisfied in R. Put otherwise, we aim to find an “R-solution” to I, which can be seen as an “R-approximation to a 1-in-3 solution”. The complexity of this task depends on R, 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 R 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 R (containing the k-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 R-approximation trivial if R contains a loop, i.e. a constant tuple. Obviously, trivial R-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 R-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 x,y,z) to a linear equation x+y+z=1 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 x+y+z=1 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 {0,1,2}, 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 {0,1,,k1}. A LO k-colouring of a hypergraph is an assignment of the colours to the vertices of a hypergraph so that, for each hyperedge e, if colour c is the largest colour that appears in it, then c is assigned to exactly one vertex in e. For example, in a LO 3-colouring, for a hyperedge (x,y,z), the colours (0,1,2) or (0,2,0) would be acceptable, but not (0,1,1). 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 2k:

Given a 3-uniform hypergraph that is promised to have a LO k-colouring, find a LO -colouring for it.

It was conjectured in [5] that this problem is 𝖭𝖯-hard for all constants 2k. The case k=2,=3 of this problem was exactly the only unclassified approximation of 1-in-3 SAT by a relation on {0,1,2}. Up to now, this conjecture was confirmed only in the following cases. It was observed [23] that, for 4k, there is a very easy reduction to the approximate LO colouring problems with constants k, from the approximate graph colouring problem with constants k1,1. 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 k=3,=4 [23], with a proof based on topological combinatorics. LO hypergraph colouring can naturally be defined not only for 3-uniform hypergraphs, but for r-uniform hypergraph with r3. The approximate LO colouring problem is known to be 𝖭𝖯-hard for all 3k and r4 and for k=2 and all r+2 (see [39, 40]). The best known efficient algorithm to find a LO -colouring for a LO 2-colourable 3-uniform hypergraph with n vertices uses logn colours [10, 27]. The problem of finding a LO 3-colouring for a given LO 2-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 3-colouring for a given LO 2-colourable 3-uniform hypergraph by PCSP(𝐋𝐎2,𝐋𝐎3) – the notation will be explained in Section 2.1. In this paper, our main result settles its complexity.

Theorem 1.

PCSP(𝐋𝐎2,𝐋𝐎3) is 𝖭𝖯-hard.

Combined with the partial classification obtained in [5], Theorem 1 implies a complete dichotomy for approximations of 1-in-3 SAT by 3-element structures.

Corollary 2.

Let 𝐁 be a 3-element structure such that 𝐋𝐎2𝐁. Either 𝐁𝐋𝐎3 and PCSP(𝐋𝐎2,𝐁) is 𝖭𝖯-hard, or else PCSP(𝐋𝐎2,𝐁) is solvable in polynomial-time.

We remark that the confirmed case k=3,=4 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 PCSP(𝐋𝐎2,𝐋𝐎3) 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 [n]={1,,n}. The complement of a set X, usually with respect to [n], is denoted by X¯.

2.1 Promise CSPs

A relational structure is a tuple 𝐀=(A;R1,,Rm) where A is a set referred to as the domain of 𝐀, and each Ri is a relation on A of arity ari1; that is, RiAari. 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 3-uniform hypergraphs by slightly abusing standard terminology.

Relational structures 𝐀=(A;R1,,Rm) and 𝐁=(B;R1,,Rm) are said to be similar if m=m and the relations Ri and Ri have same arity for each i[m]. For similar relational structures 𝐀,𝐁 as above, a mapping f:AB is said to be a homomorphism if for all i[m] we have xRif(x)Ri, where f is applied component-wise to x. We write f:𝐀𝐁 to indicate that f 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 PCSP(𝐀,𝐁) 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 PCSP(𝐀,𝐁) asks, given an input structure 𝐗 with a promise that 𝐗𝐀, to find a homomorphism f:𝐗𝐁. 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 PCSP(𝐀,𝐁) is the same as the standard CSP(𝐀); 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 k2, an -colouring of an input k-colourable graph. This problem is PCSP(𝐊k,𝐊), where 𝐊n is the n-clique; that is, 𝐊n=([n];).

Example 5 (Approximate hypergraph colouring).

This problem is a natural generalisation of the above, by replacing the inequality with the “not-all-equal” relation:

NAEk={0,,k1}3\{(a,a,a)a{0,,k1}}.

A k-colouring of a hypergraph, is an assignment of the colours {0,,k1} to the vertices such that no hyperedge is monochromatic. Hence, the problem of finding, for fixed k2, an -colouring of a k-colourable 3-uniform hypergraph is PCSP(𝐇k,𝐇) where 𝐇n=({0,,n1};NAEn). Note that the classical 𝖭𝖯-hard problem NAE-SAT can be expressed as CSP(𝐇2).

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 NAEk with its subrelation

LOk={(a,b,c){0,,k1}3(a,b,c) has a unique maximum}.

For example, LO2={(0,0,1),(0,1,0),(1,0,0)}, while LO3 contains exactly the triples (0,1,2), (1,1,2), (0,0,1), (0,0,2) and all permutations thereof, but not (1,2,2) or (0,1,1). Let 𝐋𝐎k=({0,,k1};LOk). Then PCSP(𝐋𝐎k,𝐋𝐎) 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 CSP(𝐋𝐎2) is precisely (monotone) 1-in-3 SAT, so the class of problems of the form PCSP(𝐋𝐎2,𝐁), where the domain of 𝐁 contains {0,1} and 𝐁 has a unique ternary symmetric relation containing {(0,0,1),(0,1,0),(1,0,0)} 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 PCSP(𝐋𝐎2,𝐁) can be solved by essentially the same algorithm as the one for PCSP(𝐋𝐎2,𝐇2) that we described in Section 1.1. Consider the (infinite) structure 𝐙=(;{(x,y,z)x+y+z=1}). Trivially, we have 𝐋𝐎2𝐙 by inclusion. Assume that we additionally have 𝐙𝐁. Then the search version (and therefore the decision version as well) of PCSP(𝐋𝐎2,𝐁) can be solved in polynomial time by reducing it to solving a system of linear equations over . Indeed, for an input 𝐗 such that 𝐗𝐋𝐎2, 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 PCSP(𝐋𝐎2,𝐁) is solvable in polynomial time, or else PCSP(𝐋𝐎2,𝐁) is 𝖭𝖯-hard.

As explained above, this conjecture has been confirmed in several special cases [5, 18]. It is easy to verify that 𝐙↛𝐋𝐎k for any k2, so that, indeed, PCSP(𝐋𝐎2,𝐋𝐎k) 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 D(𝐁) be the digraph whose vertices are the elements of B and edges are all pairs (x,y) such that (x,x,y) is in the relation of 𝐁. Assume that there is a homomorphism 𝐙𝐁. Consider all triples of the form (a,a,12a) from 𝐙, and their images in 𝐁 under the assumed homomorphism. These images show that the digraph D(𝐁) must contain a homomorphic image of an infinite directed path, which always contains a directed cycle or a loop, since B is finite. It is easy to see that D(𝐋𝐎k) is a transitive tournament, so it contains neither a directed cycle nor a loop, and it follows that 𝐙↛𝐋𝐎k. We remark that the structures 𝐋𝐎k are the richest structures 𝐁 with the property that D(𝐁) contains neither a directed cycle nor a loop - it is not hard to see that any (k-element) structure with this property is isomorphic to a substructure of 𝐋𝐎k.

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 n-ary polymorphism of a template (𝐀,𝐁) is a function f:AnB such that, for every i and for every ari×n matrix M with entries from A, if all columns of M belong to the relation Ri in 𝐀, then the column obtained by applying f to the rows of M belongs to the corresponding relation Ri in 𝐁. If 𝐀=𝐁, then we say that f is a polymorphism of 𝐀.

If (𝐀,𝐁) is any PCSP template and φ:𝐀𝐁, then it is easy to see that, for all n1 and i[n], all functions of the form f(x1,,xn)=φ(xi) are polymorphisms of (𝐀,𝐁). In the special case when AB and φ is the inclusion map, such polymorphisms are called projections (also known as dictators).

Example 10 (Polymorphisms of 𝐋𝐎2).

A function f:{0,1}n{0,1} is a polymorphism of 𝐋𝐎2 if, for every 3×n matrix M with 0/1 entries such that every column of M contains exactly one 1, the column obtained by applying f to the rows of M also contains exactly one 1. It is well-known and not hard to verify directly, that projections are the only polymorphisms of 𝐋𝐎2.

Example 11 (Polymorphisms of (𝐋𝐎2,𝐇2)).

A function f:{0,1}n{0,1} is a polymorphism of (𝐋𝐎2,𝐇2) if, for every 3×n matrix M with 0/1 entries, if every column of M contains exactly one 1, then the column obtained by applying f to the rows of M contains both a 0 and a 1. This template has many polymorphisms different from projections.

One example is the (3n+1)-ary Boolean function f which outputs 1 if and only if at least n+1 of its arguments are equal to 1. To see that this is a polymorphism, consider a 3×(3n+1) matrix M such that each column of M contains exactly one 1. Since the total number of 1s in M is 3n+1, it is impossible that each row of M contains at least n+1 1s or that each row of M contains n or fewer 1s. Therefore f applied to the rows of M 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 f:AnB be a function. For a map π:[n][m], we say that a function g:AmB is a minor (or a π-minor) of f, denoted g=fπ, if

g(a1,,am)=f(aπ(1),,aπ(n))

for all a1,,amA.

A set of finitary functions from A to B 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 Pol(𝐀,𝐁).

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 Pol(𝐀,𝐁) is a sequence (f1,π1,2,f2,,fl1,πl1,l,fl) where fiPol(𝐀,𝐁) for each i[l] and fiπi,i+1=fi+1.

Theorem 13 ([7, 13]).

Fix k,l and let (𝐀,𝐁) be a PCSP template. Suppose that to each polymorphism fPol(𝐀,𝐁) we assign a subset I(f) of at most k of its variables. Suppose further that, for any chain of minors (f1,π1,2,f2,,fl1,πl1,l,fl) in Pol(𝐀,𝐁), there exist 1i<jl such that πi,j1(I(fj))I(fi) where πi,j=πj1,jπi,i+1. Then PCSP(𝐀,𝐁) is 𝖭𝖯-hard.

The above theorem was first proved in [13] by using the PCP theorem and the NP-hardness of (layered) Gap Label Cover problem. It was later shown in [7] that the 𝖭𝖯-hardness in fact follows by a direct and simple “bounded width” reduction from 1-in-3 SAT (or from any 𝖭𝖯-hard CSP).

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 (𝐋𝐎2,𝐋𝐎3), and to showing how this implies our hardness result (Theorem 1).

3.1 𝟎-sets, 𝟏-sets, 𝟐-sets…

We use the notion of an i-set as in [5] to describe the action of a polymorphism of (𝐋𝐎2,𝐋𝐎3). Fix some n and consider a function f:{0,1}n{0,1,2}. We can identify tuples from {0,1}n with subsets from [n], where a subset X corresponds to the tuple having 1 exactly in positions in X. Then notation f(X) has the obvious meaning. We say that X[n] is an i-set of f for some i{0,1,2} if f(X)=i. It is easy to see that if g=fπ and X is an i-set of g then π1(X) is an i-set of f. If f(X){0,1} then we call X a boolean set of f, and we say that a 2-set of f small if it contains three elements or less.

It is straightforward to check that a function f:{0,1}n{0,1,2} is a polymorphism of (𝐋𝐎2,𝐋𝐎3) if, and only if, for all partitions (X,Y,Z) of [n] into three subsets (some of which may be empty), we have that (f(X),f(Y),f(Z))LO3. Observe that the empty set can never be a 2-set. We say that a partition (X,Y,Z) of [n] is a boolean partition (for f) if {f(X),f(Y),f(Z)}={0,1}. In the language of i-sets, the n-ary projections of (𝐋𝐎2,𝐋𝐎3) are the mappings for which there exists some t[n], such that X[n] is a 1-set if, and only if, tX and it is a 0-set otherwise.

When we use the above terminology (i-set, boolean partition etc.) and f 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 Pol(𝐋𝐎2,𝐋𝐎3) by means of the so-called reconfiguration graph. For n1, consider a graph Gn whose vertices are the n-ary polymorphisms of (𝐋𝐎2,𝐋𝐎3) 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 2-sets are removed from Gn, then the resulting graph is disconnected, and each of its connected components contains a unique n-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 n-ary polymorphisms of (𝐋𝐎2,𝐋𝐎3) can be understood as colourings of the subsets of [n] using the colour set {0,1,2} and subject to the constraints enforced by 𝐋𝐎3. We say that a set X[n] is recolourable for a n-ary polymorphism f if one can change the image of X to a different value to obtain a mapping that is still a polymorphism of (𝐋𝐎2,𝐋𝐎3). Specifically, we say that X is recolourable to i or i-recolourable for some if(X) if the mapping f defined as

f(Y)={f(Y)ifYXiotherwise

is a polymorphism of (𝐋𝐎2,𝐋𝐎3). We say that a boolean set is static (for f) if it is not recolourable to its opposite boolean value. That is, if it is an i-set for i{0,1} and it is not (1i)-recolourable. The following lemma is straightforward.

Lemma 14.

A boolean set X of a n-ary polymorphism f of (𝐋𝐎2,𝐋𝐎3) is static if, and only if, there exist sets Y,Z such that (X,Y,Z) is a boolean partition of [n].

Recolouring is a central notion to our structural result: what we show is in fact, that polymorphisms of (𝐋𝐎2,𝐋𝐎3) without small 2-sets are essentially projections modulo some recolouring.

Definition 15.

Let f be a n-ary polymorphism of (𝐋𝐎2,𝐋𝐎3). We say that f is a recoloured projection if there is some t[n] such that for any static boolean set S, it holds that f(S)=[tS] where [tS] is the Iverson bracket (which evaluates to 1 if tS and to 0 otherwise). We refer to such t[n] as the dictating variable of f.

The intuition behind this notion is that there is a simple recolouring (path in the graph Gn) from f to the corresponding projection: first one recolours all boolean non-static sets S to the value [tS] (this can be done in any order), and then one recolours each 2-set S of f to [tS] (which can also be done in any order).

It is easy to characterise all 2-recolourable boolean sets. The following is straightforward.

Lemma 16.

For any polymorphism f of (𝐋𝐎2,𝐋𝐎3), there are no disjoint 2-sets. In particular, the empty set is never a 2-set. Furthermore, a boolean set X is 2-recolourable if, and only if, X has non-empty intersection with every 2-set of f.

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 n-ary polymorphism f is upwards closed if for every 2-set X, we have that XY implies f(Y)=2. If f is upwards closed and is such that the complement of every boolean set is a 2-set (that is, for every X[n] either X or X¯ is a 2-set), we say that f is saturated. Note that in a saturated polymorphism no boolean set is 2-recolourable, so the 2-sets of a saturated polymorphism of arity n form a maximal intersecting family of subsets, as studied in [38].

Definition 17.

Let f,g be n-ary polymorphisms of (𝐋𝐎2,𝐋𝐎3) and assume that g is saturated. We say that g is a saturation of f if there is a sequence f1=f,f2,,fl1,fl=g of n-ary polymorphisms where for each i[l], fi is obtained from fi1 by recolouring a boolean set to 2. If, in addition, g has no small 2-set, we say that g is a pure saturation of f. We call the sequence f1,,fl a saturation path for f.

When using the fact that a polymorphism f is saturated in a proof, we may say “by saturation” as a shorthand for “because f is saturated” when f is clear from the context. The following lemma implies that every polymorphism can be recoloured to one that is upwards closed.

Lemma 18.

Let f be a polymorphism of (𝐋𝐎2,𝐋𝐎3). If X is a 2-set and Y is a boolean set such that XY, then Y is 2-recolourable.

Proof.

By Lemma 16, X has non-empty intersection with all 2-sets of f. Since XY, the same holds for Y, so Y is 2-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 f be an upwards closed n-ary polymorphism of (𝐋𝐎2,𝐋𝐎3). If X,Y are disjoint non-empty boolean sets for which XY=[n], then both X and Y are 2-recolourable.

Proof.

Since f is upwards closed, there are no subsets of X that are 2-sets. Thus, all 2-sets intersect Y, so by Lemma 16, Y is 2-recolourable. By symmetry, the same argument applies to X.

Corollary 20.

Every polymorphism f of (𝐋𝐎2,𝐋𝐎3) has a saturation. Moreover, if f has arity at least 7 and no small 2-sets, then f has a pure saturation.

Proof.

Starting from f, one can apply Lemmas 18 and 19 exhaustively to obtain a saturation. If f has arity n7 and no small 2-set, then, when applying Lemma 19, one can always choose to 2-recolour the set containing at least n/2 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 f has no small 2-set and g is a pure saturation of f, then there is a path in the reconfiguration graph connecting f to g that never passes through polymorphisms with small 2-sets. Put otherwise, the process of recolouring a polymorphism to a pure saturation can be done without the addition of any small 2-sets.

For saturated polymorphisms, the following Lemma is a useful characterisation of static boolean sets. Hereafter, for a saturated polymorphism f, we denote the union of its minimal 2-sets by Tf 111We understand minimality of 2-sets by inclusion: a 2-set is minimal if none of its non-trivial subsets is a 2-set..

Lemma 21.

For a n-ary saturated polymorphism f of (𝐋𝐎2,𝐋𝐎3), a boolean set X is static if, and only if, XTf is non-empty.

Proof.

Suppose XTf is empty, and consider a partition (X,U,V) of [n]. If U is boolean then U¯ is a 2-set by saturation and thus, there must be some minimal 2-set Q for which QU¯. In particular, U¯Tf is non-empty. Since U¯ is the disjoint union of X and V and X is disjoint from Tf we must have that U¯TfV. This implies that QV so V is a 2-set, so X is not part of any boolean partition and hence, it is not static by Lemma 14.

For the converse, let Q be a minimal 2-set such that XQ is non-empty. Consider the partition (X,Q\X,QX¯). It is boolean since X is boolean by assumption, Q\X is a proper subset of a minimal 2-set, and QX¯ is disjoint from a 2-set, namely Q. Thus, X 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 f be a polymorphism of (𝐋𝐎2,𝐋𝐎3) of arity n7 and no small 2-sets. Let X be a boolean set of f and let g be a pure saturation of f. If |X|n3 or there is some ZX such that f(Z)=2, then g(X)f(X). If, in addition, we assume that g is the unique pure saturation of f, then the converse holds.

Proof.

Let X be a boolean set of f. If |X|n3, then g(X)=2, since g cannot have small 2-sets and either X or X¯ must be a 2-set of g. If X has a subset that is a 2-set of f, then g(X)=2, since saturations are upwards closed. In both cases, g(X)f(X) as required.

For the converse, let X be a boolean set of f and suppose g(X)f(X), where g is the unique pure saturation of f. Note that this implies g(X)=2. Suppose that |X|n4 and no subset of X is a 2-set of f. By Lemma 16, X¯ must be 2-recolourable in f, so let f be the polymorphism obtained by 2-recolouring X¯. Since |X¯|4, f has no small 2-sets; in particular, there is a saturation g of f with no small 2-sets (by Corollary 20) such that g(X)2, which means that g(X)=f(X)g(X). But g is by construction a pure saturation of f, which contradicts the assumption that g 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 n-ary polymorphism f of (𝐋𝐎2,𝐋𝐎3) that has no small 2-sets, there exists a unique t[n] (depending on f) such that the following holds: n6 and f is a recoloured projection with dictating variable t, or n7 and every pure saturation of f is a recoloured projection with dictating variable t.

Let us relate this technical statement to the reconfiguration graph Gn informally described in Section 3.2. For n6, the definition of a recoloured projection (Definition 15) gives a path in Gn from any polymorphism f of arity n with no small 2-set, to the projection with the same dictating variable. If n7, a polymorphism f of arity n may not be a recoloured projection, even if there are no small 2-sets. However, the proof of Corollary 20 gives a path from f to a pure saturation, say g, from which, as before, the definition of a recoloured projection gives a path in Gn from g to the projection whose dictating variable is the same as that of g. Note that in both cases, the constructed paths do not include any vertices corresponding to polymorphisms with small 2-sets. Hence the claim, in Section 3.2, that if the vertices corresponding to functions with small 2-sets are removed from Gn, 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 n6 is straightforward combinatorics. For n7, we proceed by induction on the number of variables that are not contained in a 4 element 2-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 4-element 2-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 (𝐋𝐎2,𝐋𝐎3) has no small 2-set, then it must have a small 1-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 2-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 2-sets occur, then the claim in Lemma 27 is sufficient to deal with these “bad” situations.

Lemma 24.

Assume that f is a n-ary polymorphism of (𝐋𝐎2,𝐋𝐎3) for n7. Further assume that f is a pure saturation and let t be its dictating variable as in Theorem 23. Then any boolean set A for which ATf is a static 1-set if, and only if, tA.

Proof.

Let A[n] be a boolean set for f and assume ATf. Since f is saturated, it follows from Lemma 21 that A is static. In particular, since f is a recoloured projection by Theorem 23, we must have that tA if, and only if, A is a 1-set as required.

Lemma 25.

Assume that f is a n-ary polymorphism of (𝐋𝐎2,𝐋𝐎3) with n7 and no small 2-sets. Suppose that f does not have a unique pure saturation and let t be the dictating variable of any pure saturation of f, as in Theorem 23. Then f cannot have disjoint non-empty boolean sets S,T[n] such that f(S)[tS] and f(T)[tT].

Proof.

Let g be a pure saturation of f. Since the choice of g is not unique, there is a minimal 2-set A of g such that neither A nor A¯ is a 2-set of f and |A|,|A¯|4. It is easy to see that one can choose a saturation path from f to g so that 2-recolouring A is the last step on this path. Suppose, for contradiction, that there exist disjoint non-empty S,T that are boolean sets of f for which f(S)[tS] and f(T)[tT]. We cannot have g(S)=g(T)=2, since S and T are disjoint, so assume without loss of generality that g(S)2, and hence g(S)=f(S). To get a contradiction, it suffices to show that S is static for g, because then g(S)=[tS] by Theorem 23 and so g(S)f(S). By Lemma 21, it suffices to show that STg. Hence, assume for contradiction that STg=. Then SA¯. Suppose we have that SA¯ and consider the saturation g of f such that g(X)=g(X) if X{A,A¯}, g(A)=f(A) and g(A¯)=2. Put otherwise, we follow the saturation path from f to g, but in the last step we make a different choice: we 2-recolour A¯ rather than A. Note that, since |A¯|4, g is a pure saturation of f and A¯ is its minimal 2-set. Since SA¯, S is a boolean set of g, which is static by Lemma 21. But g(S)=f(S)[tS], and this contradicts t being a dictating variable of g (which is a recoloured projection by Theorem 23). So we must have that S=A¯. Since g is saturated and has no small 2-sets, it has a minimal 2-set B distinct from A. Then SB so STg as required.

Lemma 26.

Let f be a polymorphism of (𝐋𝐎2,𝐋𝐎3) with arity n7 and no small 2-set. Suppose g is the unique pure saturation of f. Let f=fπ be a m-ary polymorphism for some minor map π:[n][m] with m7 and suppose f has no small 2-set. If g is the unique pure saturation of f, and if g has no minimal 2-set with m3 or more elements, then π(t)=t, where t,t are the respective dictating variables of g,g as in Theorem 23.

Note that, by Definition 17, for a m-ary saturated polymorphism with no small 2-set, all sets with m3 or more elements are 2-sets, so it suffices to show the above statement assuming g has no minimal 2-sets with exactly m3 elements.

Proof.

First we show that g and gπ coincide on all boolean sets. Let X be a boolean set of g, so we have g(X)=f(X). Since g is the unique pure saturation of f and g(X)=f(X), it follows from Lemma 22 that either |X¯|m3 (or equivalently |X|3) or there is some ZX¯ such that f(Z)=2. Consider first the case |X|3. Since g has no minimal 2-set of size m3 or larger, and g(X¯)=2, it must hold that there is some ZX¯ such that Z is a 2-set of g and |Z|m4. But Z is therefore a 2-set of f, and thus, π1(Z) is a 2-set of f. Since π1(X) is disjoint from π1(Z), it follows from Lemma 16 that π1(X) is a boolean set of both f and g and, in particular, f(π1(X))=g(π1(X)). But g(X)=f(X)=fπ(X)=f(π1(X)) and gπ(X)=g(π1(X)), so X is a boolean set of gπ with gπ(X)=g(X). For the case where ZX¯, we proceed with an argument verbatim as above and conclude that X is a boolean set of gπ and gπ(X)=g(X). In particular, this means that for all boolean sets X of g, we have g(X)=g(π1(X)) as claimed.

Let (W,X,Y) be a partition of [m] that is boolean for g. From the above argument it follows that (W,X,Y) is also a boolean partition for gπ and hence, (π1(W),π1(X),π1(Y)) is a partition of [n] that is boolean for g. In particular, for any static 1-set X of g, it holds that π1(X) a static 1-set of g. By Lemma 24, we may choose static 1-sets of g, say A and B, such that AB={t}. Then since π1(A),π1(B) are static 1-sets of g it follows from Lemma 24 that tπ1(A)π1(B). Thus, tπ1(t) or, equivalently, π(t)=t as required.

Lemma 27.

Let f be a polymorphism of (𝐋𝐎2,𝐋𝐎3) with arity n7 and no small 2-set. Suppose further that f has a unique pure saturation g. Let t be the dictating variable of g, and let X[n] be any set such that tX and f(X)=1. Then XY for any set Y[n] such that f(Y)=1 and YTg.

Proof.

Let Y be a 1-set of f and suppose YTg is non-empty. We distinguish the cases g(Y)=1 and g(Y)=2. If g(Y)=1, then Y is static in g by Lemma 21, so tY by Theorem 23 and thus, XY is non-empty as required. Consider now the case g(Y)=2. Because g is the unique pure saturation of f and g(Y)f(Y), it follows from Lemma 22 that either |Y|n3 or Y has a subset ZY such that f(Z)=2. Suppose Y has a subset Z for which f(Z)=2. If X is disjoint from Y then there must be a partition (W,X,Y) of [n] with f(W)=2, and therefore W,Z are disjoint 2-sets - a contradiction to Lemma 16. If instead, |Y|n3 and X is disjoint from Y then there is a partition (W,X,Y) of [n] where f(X)=f(Y)=1 so f(W)=2, but |W|3, which is impossible since f does not have any small 2-sets. Thus, XY is non-empty as required.

We now apply the properties proven in Lemmas 24, 25, 26 and 27 to show Theorem 1.

Proof of Theorem 1.

We apply Theorem 13 to Pol(𝐋𝐎2,𝐋𝐎3) with k=3,l=4.

For each polymorphism f of (𝐋𝐎2,𝐋𝐎3), we choose I(f) to be an arbitrary small 2-set of f if there is one. Otherwise, if f has arity n6 then f is a recoloured projection by Theorem 23 and we take I(f)={t} where t is the dictating variable of f. If f has arity n7 and no small 2-set, consider a pure saturation g of f and let t be its dictating variable as in Theorem 23. In this case, we take I(f)={t} if f({t})=1; otherwise, we take I(f) to be any 2-element 1-set containing t (the existence of such sets is an easy consequence of Lemma 24). It may seem that it would be more natural to set l=3 and to let I(f)={t} for all polymorphisms f without small 2-sets. We will show in Example 28 below that this would not work.

First, observe that, for any polymorphisms f and h such that h=fπ, the set π1(I(h)) is never empty. Indeed if I(h) is a 2-set, then π1(I(h)) is a 2-set of f, and so is non-empty by Lemma 16. In all other cases, we have that I(h) contains the dictating variable t of h (if h has arity at most 6) or that of a pure saturation of h. Then π1({t}) is non-empty; for otherwise, we would have h(X{t})=h(X) for every X. But there exists at such that h({a,t})h({a}). Indeed, if the arity of h is at most 6, then we may take a to be any element, since {a} must be a static set as it participates in some boolean partition. If, instead, the arity of h is at least 7, we can take a to be any element different from t belonging to a minimal 2-set of a pure saturation of h (by Lemma 24).

Consider a minor chain (f1,π12,f2,π23,f3,π34,f4) in Pol(𝐋𝐎2,𝐋𝐎3). If (at least) two of f1,f2,f3,f4, say fi and fj with i<j, have small 2-sets, then πij1(I(fj)) is a 2-set of fi, and hence πij1(I(fj))I(fi) by Lemma 16, as required.

Assume now that no more than one polymorphism in the chain has a small 2-set. Suppose fi,fj,fk with 1i<j<k4 have no small 2-set. Let the arities of the operations be ni,nj, and nk, respectively, and let ti,tj,tk be the dictating variables contained in the choice sets I(fi),I(fj), and I(fk), respectively.

First we deal with the case when either (i) ni6 or (ii) ni7 and fi does not have a unique pure saturation. We show that we have πij(ti)=tj, which implies the desired result. Assume, for contradiction, that πij(ti)=stj. We claim that there exist two disjoint subsets S and T of [nj] such that sS, fj(S)=0 and tjT, fj(T)=1. Indeed, if nj6 then we can take S={s}, T={tj}, and this will work because fj is a recoloured projection with dictating variable tj. If nj7 then one can take any pure saturation gj of fj and choose distinct a,bTgj\{s,tj} (this is possible because |Tgj|4). Then by choosing S={s,a} and T={tj,b}, it is easy to see that these have the required properties by using Lemma 24. Now let S=πij1(S)={x[ni]πij(x)S} and similarly T=πij1(T)={x[ni]πij(x)T}. Observe that S and T are disjoint (because S and T are disjoint) and non-empty (because tiS and πij1(tj)T). Moreover, fi(S)=fj(S)=0[tiS] and fi(T)=fj(T)=1[tiT]. If ni6 this cannot happen because fi is a recoloured projection with dictating variable ti, and if ni7 this would contradict Lemma 25.

Clearly, if either (i) nj6 or (ii) nj7 and fj does not have a unique pure saturation, the same reasoning as above applies to fj and fk.

It remains to consider the case when both fi and fj have arity at least 7 and both have a unique pure saturation. Let gj denote the unique saturation of fj. If gj has no minimal 2-set with nj3 elements, then by Lemma 26, we have that πij(ti)=tj and we are done. If gj has a minimal 2-set T with nj3 elements, since gj is saturated, this implies that for any xT, the set ([nj]\T){x} is a minimal 2-set of gj as it has exactly 4 elements. We therefore have that Tgj=[nj]. Then πjk1(I(fk)) is a (non-empty) 1-set of fj, and, obviously, πjk1(I(fk))Tgj. Lemma 27 implies that πjk1(I(fk))I(fj) is non-empty, as required.

We now give an example showing that setting I(f) to be {t} for each polymorphism f without small 2-sets would create an issue.

Example 28.

Consider the following function g of arity 9:

g(S)={2,if |S{3,,9}|41,if 1|S{3,,9}|3 and 1S0,otherwise

Let f be the same as g, but f({3,,9})=f({1,,9})=1. One can check that both f and g are polymorphisms of (𝐋𝐎2,𝐋𝐎3), and g is the only pure saturation of f.

Clearly, the first variable is dictating for g, but choosing I(f)={1} would lead to a problem. Let f=fπ, where π:[9][2] is such that π(i)=1 for i{1,2} and π(i)=2 for i{3,,9}. It is easy to check that f is the projection on the second coordinate, so I(f)={2}. But then π1(I(f))I(f)=. Moreover, it is easy to see that one can select another minor f′′ of f such that f,f′′,f is a chain of minors and f′′ has a small 2-set.

The hardness of PCSP(𝐋𝐎3,𝐋𝐎4) follows easily from Theorem 1. For those familiar with pp-definitions, the reduction from PCSP(𝐋𝐎2,𝐋𝐎3) follows because the formula ux,uy,uzR(x,y,z)R(x,x,ux)R(y,y,uy)R(z,z,uz) pp-defines (𝐋𝐎2,𝐋𝐎3) from (𝐋𝐎3,𝐋𝐎4). For others, we spell this reduction out in elementary terms.

Corollary 29 (Theorem 1 in [23]).

PCSP(𝐋𝐎3,𝐋𝐎4) is 𝖭𝖯-hard.

Proof.

We give a simple (gadget) reduction from PCSP(𝐋𝐎2,𝐋𝐎3) to PCSP(𝐋𝐎3,𝐋𝐎4). Given an instance 𝐗 of PCSP(𝐋𝐎2,𝐋𝐎3), modify it by adding a new element nx for every element x of 𝐗 and adding the tuple (x,x,nx) to the relation of 𝐗. Denote the obtained instance by 𝐗. If h:𝐗𝐋𝐎2 then there is a homomorphism h:𝐗𝐋𝐎3 defined as h(x)=h(x) for all old elements and h(nx)=h(x)+1 for all new elements. It is easy to see that h is a homomorphism. Assume that we can efficiently find a homomorphism h′′:𝐗𝐋𝐎4. Observe that all the old elements (from 𝐗) must be mapped to {0,1,2} because of the constraints added when building 𝐗. Thus the restriction of h′′ to 𝐗 is a homomorphism from 𝐗 to 𝐋𝐎3.

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. (2+ε)-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 k-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.