Disclaimer: these are course notes in draft state, and they might contain mistakes; in case that you find any, please report them to manuel.bodirsky@tu-dresden.de . Almost all of the material is not original; I have tried to provide references to the primary sources as much as possible, but might have failed at some places, in which case I am thankful for hints as well.
Course Goals. This course has different groups of readers in mind.
For readers interested in theoretical computer science, it provides an introduction to complexity analysis of constraint satisfaction problems.
For readers interested in graph theory and graph homomorphisms, it provides an introduction to a universal-algebraic approach to many fundamental questions in the area.
For readers interested in universal algebra, it treats the part of universal algebra that is most relevant for the study of graph homomorphism problems and constraint satisfaction.
Prerequisites. This course is designed for students of mathematics or computer science who have already had an introduction to discrete structures (so we assume that the reader knows basic set theory, the natural numbers N \mathbb{N} N , the integers Z \mathbb{Z} Z , the rational numbers Q \mathbb{Q} Q , and the residue rings Z n \mathbb{Z}_n Z n ). All further notions that we use in this text will be formally introduced, with the following notable exceptions.
Basic concepts from complexity theory. For example, we do not formally introduce the class of polynomial-time computable functions and NP-completeness, even though these concepts are used when we discuss computational aspects of graph homomorphisms. Here we refer to an introduction to the theory of computation as for instance the book of Papadimitriou [100]; we have also added a short appendix with the basics (Appendix B).
Basic concepts of first-order logic. For example, we assume that the reader knows the difference between bound and free variables, quantifier-free formulas , and prenex normal form . We refer to [24] or [22].
AI disclaimer. ChatGPT 5.6 Sol and 6 Astra, and Claude Opus 5 were used for proofreading the final text, solving the exercises and grading their difficulty, finding mistakes and fixing them.
Acknowledgements. Many thanks to Catarina Carvalho, Philipp Grzywaczyk, Lukas Juhrich, Mathison Knight, Sebastian Meyer, Andrew Moorhead, Michael Pinsker, Lukas Schneider, Moritz Schöbi, Žaneta Semanišinová, Mark Siggers, the participants of the course in the Corona spring semester 2020 and the course in spring 2023 for their suggestions and bug reports. Thanks also to Zarathustra Brady for his lecture notes [34] and to Zarathustra Brady and Dima Zhuk for answering my questions.
Exercises. The text contains 294 exercises; some of them are graded using the old Mandala colour scale (no longer in use).
Figure 23.
Possible Routes for Courses. This course has been taught several times in one semester, but never covering all sections. Possible selections of material can be deduced from the section diagram below; an arc from section A to section B indicates that section A should typically be treated before section B. After treating some basics about digraphs and homomorphisms, I always started with the arc-consistency procedure, because it is a fantastic algorithm (both from a theoretical and practical perspective), and because it is concrete and elementary, but with non-trivial and interesting results quite early in the course. These results will then be important examples for more general and abstract results later. For example, the material about minions strictly speaking does not rely on the arc-consistency procedure, but I prefer to teach it having the concrete example of the minion arising from the arc-consistency procedure.
Figure 24 (PDF p. 6).
Introduction
Around the turn of the millennium, several previously separate research communities realised that many of their central questions are essentially the same. In the late 80s and 90s, the graph homomorphism community intensively studied the computational complexity of the H H H -colouring problem [68]. Independently, the theoretical artificial intelligence community studied constraint satisfaction problems and their computational complexity (including the important Boolean CSPs which were classified by Schaefer [105] in 1978). In the late 90s, researchers realised that universal algebra provides the right tools for this task [41, 73].
The paper by Feder and Vardi, whose conference version appeared in 1993, is probably the most influential article in the area and has inspired generations of researchers [59, 60]. It formulates for the first time the dichotomy conjecture , which was solved in 2017 by Bulatov [39] and by Zhuk [115]. It also links the topic with finite model theory. For example, it identifies Datalog from database theory as an important framework that captures many of the central consistency algorithms that have been used to solve CSPs. Feder and Vardi prove that a complexity dichotomy for finite-domain CSPs implies a complexity classification for the fragment of NP called MMSNP. They also prove that every finite-domain CSP is computationally equivalent to the H H H -colouring problem for some finite digraph, thus further substantiating the connection between graph homomorphisms and constraint satisfaction.
This course starts very concretely, in the setting of digraphs rather than the more general setting of relational structures, because digraphs are notationally simpler than general structures. Digraphs are ideal for black-board teaching, because they are easy to draw and it is easy to come up with interesting examples. After having introduced the basics of the theory of graph homomorphisms in § 2 , we present an algorithm of outstanding importance: the so-called arc-consistency procedure . This algorithm is theoretically very well understood. Moreover, it is practically important, because of its low time and space requirements, because it is easy to implement, and because it is widely applicable. Numerous exercises that we formulate at the end of the subsections can be easily solved if the reader properly understands the underlying principles of arc-consistency.
The arc-consistency procedure can be generalised to the k k k -consistency procedure , which is more powerful, and still in P, but more demanding in time and space requirements. Theoretical results in later sections of this course show that if k k k -consistency solves the H H H -colouring problem, then so does the 3-consistency algorithm. This algorithm is sometimes referred to as the (strong) path-consistency procedure and it is the topic of § 4 . A full description of when this procedure solves the H H H -colouring problem has to wait until § 16 of the course, but we do see some sufficient conditions that can be used to answer the question for many concrete digraphs H H H .
At some point, the restriction to digraphs becomes unnatural; we step to general relational structures in § 5 . This will be the appropriate setting for presenting the main tools for complexity classification, which are, in increasing strength, primitive positive definitions , primitive positive interpretations , and primitive positive constructions . Primitive positive constructions are part of the statement of a solution to the Feder-Vardi dichotomy conjecture: if a finite structure admits a primitive positive construction of K 3 K_3 K 3 (the complete graph with three vertices), then its CSP is NP-hard (a statement that we prove in § 5 ); otherwise, its CSP is in P (this is the content of the result of Bulatov [39] and of Zhuk [115]).
All three of these concepts (pp definitions, pp interpretations, and pp constructions) can also be characterised universal-algebraically, in terms of polymorphisms. For primitive positive definability, this can be found in § 7 , where we also apply it to prove Schaefer’s complexity dichotomy result for CSPs of two-element structures. The universal-algebraic theory that captures primitive positive interpretations is presented in § 8 , and the universal-algebraic theory for primitive positive constructions in § 10 .
In § 11 we show the Hell-Nešetřil dichotomy for the H H H -colouring problem for finite undirected graphs H H H . From this result we obtain a universal-algebraic formulation of the complexity dichotomy for all finite structures in terms of a Siggers polymorphism (of arity six). A much more informative formulation of the complexity dichotomy uses cyclic polymorphisms in § 15 , which is substantially more difficult to prove. In particular, we need the fundamental theorem of abelian algebras from § 13 , and absorption theory, developed by Barto and Kozik [12] and presented in § 14 .
Concerning algorithms for CSPs, we treat the Bulatov-Dalmau algorithm for structures with a Maltsev polymorphism (§ 9 ), and in § 16 the bounded width case (i.e., the CSPs that can be solved by Datalog). A complete algorithm that solves all tractable finite-domain CSPs is outside of the scope of this course.
Many other topics are not treated by these course notes, most notably
The Basics
We mostly work with finite graphs; results that also hold for graphs with infinitely many vertices are mentioned only when this requires no extra effort.
Graphs and Digraphs
The concepts in this section are probably known to most students, and can safely be skipped; the section fixes standard terminology and conventions from graph theory and can be consulted later if needed. Almost all definitions in this section have generalisations to relational structures , which will be introduced in § 5 ; however, we focus exclusively on graphs in this section since they allow us to reach the key ideas of the underlying theory with a minimum of notation.
A directed graph (also digraph ) G G G is a pair ( V , E ) (V,E) ( V , E ) of a set V = V ( G ) V=V(G) V = V ( G ) of vertices and a binary relation E = E ( G ) E=E(G) E = E ( G ) on V V V . Note that in general we allow that V V V is an infinite set. For some definitions and results, we require that V V V is finite, in which case we say that G G G is a finite digraph . However, since this course deals mainly with finite digraphs, we will omit this most of the time. The elements ( u , v ) (u,v) ( u , v ) of E E E are called the arcs (or directed edges ) of G G G . Note that we allow loops , i.e., arcs of the form ( u , u ) (u,u) ( u , u ) ; a digraph without loops is called loopless . If ( u , v ) ∈ E ( G ) (u,v)\in E(G) ( u , v ) ∈ E ( G ) is an arc, then we say that v v v is an out-neighbour of u u u and that u u u is an in-neighbour of v v v ; a neighbour is an in-neighbour or an out-neighbour. The (in-, out- ) degree of a vertex u u u is the number of (in-, out-) neighbours of u u u . We say that the vertices u u u and v v v are incident to the edge ( u , v ) (u,v) ( u , v ) .
An (undirected) graph is a pair ( V , E ) (V,E) ( V , E ) of a set V = V ( G ) V=V(G) V = V ( G ) of vertices and a set E = E ( G ) E=E(G) E = E ( G ) of edges , each of which is an unordered pair of (not necessarily distinct) elements of V V V . In other words, we explicitly allow loops , which are edges that link a vertex with itself. Undirected graphs can be viewed as symmetric digraphs: a digraph G = ( V , E ) G=(V,E) G = ( V , E ) is called symmetric if ( u , v ) ∈ E (u,v)\in E ( u , v ) ∈ E if and only if ( v , u ) ∈ E (v,u)\in E ( v , u ) ∈ E . For a digraph G G G , we say that G ′ G' G ′ is the undirected graph of G G G if G ′ G' G ′ is the undirected graph with V ( G ′ ) = V ( G ) V(G')=V(G) V ( G ′ ) = V ( G ) and where { u , v } ∈ E ( G ′ ) \{u,v\}\in E(G') { u , v } ∈ E ( G ′ ) if ( u , v ) ∈ E ( G ) (u,v)\in E(G) ( u , v ) ∈ E ( G ) or ( v , u ) ∈ E ( G ) (v,u)\in E(G) ( v , u ) ∈ E ( G ) . For an undirected graph G G G , we say that G ′ G' G ′ is an orientation of G G G if G ′ G' G ′ is a directed graph such that V ( G ′ ) = V ( G ) V(G')=V(G) V ( G ′ ) = V ( G ) and E ( G ′ ) E(G') E ( G ′ ) contains for each edge { u , v } ∈ E ( G ) \{u,v\}\in E(G) { u , v } ∈ E ( G ) either the arc ( u , v ) (u,v) ( u , v ) or the arc ( v , u ) (v,u) ( v , u ) , and no other arcs.
For some notions for digraphs G G G one can just use the corresponding notions for undirected graphs applied to the undirected graph of G G G ; conversely, most notions for directed graphs, specialised to symmetric graphs, translate to notions for the respective undirected graphs.
Examples of graphs, and corresponding notation
The complete graph on n n n vertices [ n ] : = { 1 , … , n } [n]:=\{1,\ldots,n\} [ n ] := { 1 , … , n } , denoted by K n K_n K n . This is an undirected graph on n n n vertices in which every vertex is joined with any other distinct vertex (so K n K_n K n contains no loops).
The cyclic graph on n n n vertices, denoted by C n C_n C n ; this is the undirected graph with the vertex set { 0 , … , n − 1 } \{0,\ldots,n-1\} { 0 , … , n − 1 } and edge set
{ { 0 , 1 } , … , { n − 2 , n − 1 } , { n − 1 , 0 } } = { { i , i + 1 } : i ∈ Z n } . \{ \{0,1\},\ldots,\{n-2,n-1\},\{n-1,0\}\}=\{\{i,i+1\}:i\in\mathbb{Z}_n\}. {{ 0 , 1 } , … , { n − 2 , n − 1 } , { n − 1 , 0 }} = {{ i , i + 1 } : i ∈ Z n } .
Note that C 1 C_1 C 1 has a loop and C 2 = K 2 C_2=K_2 C 2 = K 2 .
The directed cycle on n n n vertices, denoted by C ⃗ n \vec{C}_n C n ; this is the digraph with the vertex set { 0 , … , n − 1 } \{0,\ldots,n-1\} { 0 , … , n − 1 } and the arc set
{ ( 0 , 1 ) , … , ( n − 2 , n − 1 ) , ( n − 1 , 0 ) } = { ( i , i + 1 ) : i ∈ Z n } . \{(0,1),\ldots,(n-2,n-1),(n-1,0)\}=\{(i,i+1):i\in\mathbb{Z}_n\}. {( 0 , 1 ) , … , ( n − 2 , n − 1 ) , ( n − 1 , 0 )} = {( i , i + 1 ) : i ∈ Z n } .
The path with n + 1 n+1 n + 1 vertices and n n n edges, denoted by P n P_n P n ; this is an undirected graph with the vertex set { 0 , … , n } \{0,\ldots,n\} { 0 , … , n } and edge set { { 0 , 1 } , … , { n − 1 , n } } \{\{0,1\},\ldots,\{n-1,n\}\} {{ 0 , 1 } , … , { n − 1 , n }} .
The directed path with n + 1 n+1 n + 1 vertices and n n n edges, denoted by P ⃗ n \vec{P}_n P n ; this is a digraph with the vertex set { 0 , … , n } \{0,\ldots,n\} { 0 , … , n } and edge set { ( 0 , 1 ) , … , ( n − 1 , n ) } \{(0,1),\ldots,(n-1,n)\} {( 0 , 1 ) , … , ( n − 1 , n )} .
A tournament is a directed loopless graph G G G with the property that for all distinct vertices x , y x,y x , y either ( x , y ) (x,y) ( x , y ) or ( y , x ) (y,x) ( y , x ) is an edge of G G G , but not both.
The transitive tournament on n ≥ 2 n\ge2 n ≥ 2 vertices, denoted by T n T_n T n ; this is a directed graph with the vertex set { 1 , … , n } \{1,\ldots,n\} { 1 , … , n } where ( i , j ) (i,j) ( i , j ) is an arc if and only if i < j i<j i < j .
Let G G G and H H H be graphs (we define the following notions both for directed and for undirected graphs). Then G ⊎ H G\uplus H G ⊎ H denotes the disjoint union of G G G and H H H , which is the graph with vertex set V ( G ) ∪ V ( H ) V(G)\cup V(H) V ( G ) ∪ V ( H ) (we assume that the two vertex sets are disjoint; if they are not, we take a copy of H H H on a disjoint set of vertices and form the disjoint union of G G G with the copy of H H H ) and edge set E ( G ) ∪ E ( H ) E(G)\cup E(H) E ( G ) ∪ E ( H ) . A graph G ′ G' G ′ is a subgraph of G G G if V ( G ′ ) ⊆ V ( G ) V(G')\subseteq V(G) V ( G ′ ) ⊆ V ( G ) and E ( G ′ ) ⊆ E ( G ) E(G')\subseteq E(G) E ( G ′ ) ⊆ E ( G ) . A graph G ′ G' G ′ is an induced subgraph of G G G if V ′ = V ( G ′ ) ⊆ V ( G ) V'=V(G')\subseteq V(G) V ′ = V ( G ′ ) ⊆ V ( G ) and ( u , v ) ∈ E ( G ′ ) (u,v)\in E(G') ( u , v ) ∈ E ( G ′ ) if and only if ( u , v ) ∈ E ( G ) (u,v)\in E(G) ( u , v ) ∈ E ( G ) for all u , v ∈ V ′ u,v\in V' u , v ∈ V ′ . We also say that G ′ G' G ′ is induced by V ′ V' V ′ in G G G , and write G [ V ′ ] G[V'] G [ V ′ ] for G ′ G' G ′ . We write G − u G-u G − u for G [ V ( G ) ∖ { u } ] G[V(G)\setminus\{u\}] G [ V ( G ) ∖ { u }] , i.e., for the subgraph of G G G where the vertex u u u and all incident arcs are removed.
We call ∣ V ( G ) ∣ + ∣ E ( G ) ∣ |V(G)|+|E(G)| ∣ V ( G ) ∣ + ∣ E ( G ) ∣ the size of a graph G G G . This quantity will be important when we analyse the efficiency of algorithms on graphs.
Paths and Cycles
We start with definitions for directed paths; the corresponding terminology is then also used for undirected graphs as explained in the beginning of this section.
A path P P P (from u 1 u_1 u 1 to u k u_k u k in G G G ) is a sequence ( u 1 , … , u k ) (u_1,\ldots,u_k) ( u 1 , … , u k ) of vertices of G G G and a sequence ( e 1 , … , e k − 1 ) (e_1,\ldots,e_{k-1}) ( e 1 , … , e k − 1 ) of edges of G G G such that e i = ( u i , u i + 1 ) ∈ E ( G ) e_i=(u_i,u_{i+1})\in E(G) e i = ( u i , u i + 1 ) ∈ E ( G ) or e i = ( u i + 1 , u i ) ∈ E ( G ) e_i=(u_{i+1},u_i)\in E(G) e i = ( u i + 1 , u i ) ∈ E ( G ) , for every 1 ≤ i < k 1\le i<k 1 ≤ i < k . The vertex u 1 u_1 u 1 is called the start vertex and the vertex u k u_k u k is called the terminal vertex of P P P , and we say that P P P is a path from u 1 u_1 u 1 to u k u_k u k . Edges ( u i , u i + 1 ) (u_i,u_{i+1}) ( u i , u i + 1 ) with u i ≠ u i + 1 u_i\ne u_{i+1} u i = u i + 1 are called forward edges and edges ( u i + 1 , u i ) (u_{i+1},u_i) ( u i + 1 , u i ) with u i ≠ u i + 1 u_i\ne u_{i+1} u i = u i + 1 are called backward edges . A loop edge is neither forward nor backward. The path is called directed if
e i = ( u i , u i + 1 ) e_i=(u_i,u_{i+1}) e i = ( u i , u i + 1 )
for every 1 ≤ i < k 1\le i<k 1 ≤ i < k . Thus, loop edges are permitted in a directed path. If u 1 , … , u k u_1,\ldots,u_k u 1 , … , u k are pairwise distinct then the path is called simple . We write ∣ P ∣ : = k − 1 |P|:=k-1 ∣ P ∣ := k − 1 for the length of P P P , i.e., we count the number of edges of P P P . The net length of a path P P P without edges of the form ( u , u ) (u,u) ( u , u ) is the difference between the number of forward and the number of backward edges. Hence, a loop-free path is directed if and only if its length equals its net length.
A sequence ( u 0 , … , u k − 1 ) (u_0,\ldots,u_{k-1}) ( u 0 , … , u k − 1 ) of vertices and a sequence of edges ( e 0 , … , e k − 1 ) (e_0,\ldots,e_{k-1}) ( e 0 , … , e k − 1 ) is called a cycle (of G G G ) if ( u 0 , … , u k − 1 , u 0 ) (u_0,\ldots,u_{k-1},u_0) ( u 0 , … , u k − 1 , u 0 ) and ( e 0 , … , e k − 1 ) (e_0,\ldots,e_{k-1}) ( e 0 , … , e k − 1 ) form a path. If all the vertices of the cycle are pairwise distinct then the cycle is called simple . We write ∣ C ∣ : = k |C|:=k ∣ C ∣ := k for the length of the cycle C = ( u 0 , … , u k − 1 ) C=(u_0,\ldots,u_{k-1}) C = ( u 0 , … , u k − 1 ) . If C C C has no loop edges, then its net length is the net length of the corresponding path ( u 0 , … , u k − 1 , u 0 ) (u_0,\ldots,u_{k-1},u_0) ( u 0 , … , u k − 1 , u 0 ) . The cycle C C C is called directed if the corresponding path is a directed path.
A digraph G G G is called (weakly) connected if there is a path in G G G from any vertex to any other vertex in G G G . Equivalently, G G G is connected if and only if it cannot be written as H 1 ⊎ H 2 H_1\uplus H_2 H 1 ⊎ H 2 for digraphs H 1 , H 2 H_1,H_2 H 1 , H 2 with at least one vertex each. A connected component of G G G is a maximal (with respect to inclusion of the vertex sets) connected induced subgraph of G G G . A digraph G G G is called strongly connected if for all vertices x , y ∈ V ( G ) x,y\in V(G) x , y ∈ V ( G ) there is a directed path from x x x to y y y in G G G . A strongly connected component of G G G is an inclusion-wise maximal strongly connected induced subgraph of G G G . Two vertices u , v ∈ V ( G ) u,v\in V(G) u , v ∈ V ( G ) are at distance k k k in G G G if the shortest path from u u u to v v v in G G G has length k k k .
Some particular notions for undirected graphs G G G . A (simple) cycle of G G G is a sequence ( v 1 , … , v k ) (v_1,\ldots,v_k) ( v 1 , … , v k ) of k ≥ 3 k\ge3 k ≥ 3 pairwise distinct vertices of G G G such that { v 1 , v k } ∈ E ( G ) \{v_1,v_k\}\in E(G) { v 1 , v k } ∈ E ( G ) and { v i , v i + 1 } ∈ E ( G ) \{v_i,v_{i+1}\}\in E(G) { v i , v i + 1 } ∈ E ( G ) for all 1 ≤ i ≤ k − 1 1\le i\le k-1 1 ≤ i ≤ k − 1 . An undirected graph is called acyclic if it does not contain a cycle. A sequence u 1 , … , u k ∈ V ( G ) u_1,\ldots,u_k\in V(G) u 1 , … , u k ∈ V ( G ) is called a (simple) path from u 1 u_1 u 1 to u k u_k u k in G G G if { u i , u i + 1 } ∈ E ( G ) \{u_i,u_{i+1}\}\in E(G) { u i , u i + 1 } ∈ E ( G ) for all 1 ≤ i < k 1\le i<k 1 ≤ i < k and if all vertices u 1 , … , u k u_1,\ldots,u_k u 1 , … , u k are pairwise distinct. We allow the case that k = 1 k=1 k = 1 , in which case the path consists of a single vertex and no edges. Two vertices u , v ∈ V ( G ) u,v\in V(G) u , v ∈ V ( G ) are at distance k k k in G G G if the shortest path in G G G from u u u to v v v has length k k k . We say that an undirected graph G G G is connected if for all vertices u , v ∈ V ( G ) u,v\in V(G) u , v ∈ V ( G ) there is a path from u u u to v v v . The connected components of G G G are the maximal connected induced subgraphs of G G G . A forest is an undirected acyclic graph, a tree is a connected forest.
A source in a digraph is a vertex with no incoming edges, and a sink is a vertex with no outgoing edges.
Graph Homomorphisms
Let G G G and H H H be directed graphs. A homomorphism from G G G to H H H is a mapping h : V ( G ) → V ( H ) h:V(G)\to V(H) h : V ( G ) → V ( H ) which preserves the edges , i.e., ( h ( u ) , h ( v ) ) ∈ E ( H ) (h(u),h(v))\in E(H) ( h ( u ) , h ( v )) ∈ E ( H ) whenever ( u , v ) ∈ E ( G ) (u,v)\in E(G) ( u , v ) ∈ E ( G ) . If such a homomorphism exists between G G G and H H H we say that G G G homomorphically maps to H H H , and write G → H G \to H G → H . Otherwise, we write G ↛ H G \not\to H G → H . Two directed graphs G G G and H H H are
A strong homomorphism from a digraph G G G to a digraph H H H is a function from V ( G ) V(G) V ( G ) to V ( H ) V(H) V ( H ) such that ( f ( u ) , f ( v ) ) ∈ E ( H ) (f(u), f(v)) \in E(H) ( f ( u ) , f ( v )) ∈ E ( H ) if and only if ( u , v ) ∈ E ( G ) (u, v) \in E(G) ( u , v ) ∈ E ( G ) for all u , v ∈ V ( G ) u, v \in V(G) u , v ∈ V ( G ) . An isomorphism between two directed graphs G G G and H H H is a bijective strong homomorphism from G G G to H H H . If an isomorphism between G G G and H H H exists, we call G G G and H H H isomorphic , and write G ≅ H G \cong H G ≅ H . Note that a homomorphism h : G → H h\colon G \to H h : G → H is an isomorphism if and only if it is bijective, and h − 1 h^{-1} h − 1 is a homomorphism from H H H to G G G . An automorphism of a digraph H H H is an isomorphism from H H H to H H H .
A homomorphism from G G G to H H H is sometimes also called an H H H -colouring of G G G . This terminology originates from the observation that H H H -colourings generalise classical colourings in the sense that a graph is n n n -colourable if and only if it has a K n K_n K n -colouring. Graph n n n -colorability is not the only natural graph property that can be described in terms of homomorphisms:
The equivalence classes of finite digraphs with respect to homomorphic equivalence will be denoted by D \mathcal{D} D . Let ≤ \leq ≤ be a binary relation defined on D \mathcal{D} D as follows: we set C 1 ≤ C 2 C_1 \leq C_2 C 1 ≤ C 2 if there exists a digraph H 1 ∈ C 1 H_1 \in C_1 H 1 ∈ C 1 and a digraph H 2 ∈ C 2 H_2 \in C_2 H 2 ∈ C 2 such that H 1 → H 2 H_1 \to H_2 H 1 → H 2 (note that this definition does not depend on the choice of the representatives H 1 H_1 H 1 of C 1 C_1 C 1 and H 2 H_2 H 2 of $C_2). If f f f is a homomorphism from H 1 H_1 H 1 to H 2 H_2 H 2 , and g g g is a homomorphism from H 2 H_2 H 2 to H 3 H_3 H 3 , then the composition g ∘ f g \circ f g ∘ f of these functions is a homomorphism from H 1 H_1 H 1 to H 3 H_3 H 3 , and therefore the relation ≤ \leq ≤ is transitive. Since every graph H H H homomorphically maps to H H H , the order ≤ \leq ≤ is also reflexive. Finally, ≤ \leq ≤ is antisymmetric since its elements are equivalence classes of directed graphs with respect to homomorphic equivalence. Define C 1 < C 2 C_1 < C_2 C 1 < C 2 if C 1 ≤ C 2 C_1 \leq C_2 C 1 ≤ C 2 and C 1 ≠ C 2 C_1 \ne C_2 C 1 = C 2 . We call ( D , ≤ ) (\mathcal{D}, \leq) ( D , ≤ ) the homomorphism order of finite digraphs.
The homomorphism order on digraphs turns out to be a lattice where every two elements have a supremum (also called join ) and an infimum (also called meet ; see Example 7.5). In the proof of this result, we need the notion of direct products of graphs. This notion of graph product1 can be seen as a special case of the notion of direct product as it is used in model theory [71]. The class of all graphs with respect to homomorphisms forms an interesting category in the sense of category theory [68] where the product introduced above is the product in the sense of category theory, which is why this product is sometimes also called the categorical graph product .
Definition 2.1 (direct product). Let H 1 H_1 H 1 and H 2 H_2 H 2 be two digraphs. Then the (direct-, cross-, categorical-) product H 1 × H 2 H_1 \times H_2 H 1 × H 2 of H 1 H_1 H 1 and H 2 H_2 H 2 is the graph with vertex set V ( H 1 ) × V ( H 2 ) V(H_1) \times V(H_2) V ( H 1 ) × V ( H 2 ) ; the pair ( ( u 1 , u 2 ) , ( v 1 , v 2 ) ) ((u_1,u_2),(v_1,v_2)) (( u 1 , u 2 ) , ( v 1 , v 2 )) is in E ( H 1 × H 2 ) E(H_1 \times H_2) E ( H 1 × H 2 ) if ( u 1 , v 1 ) ∈ E ( H 1 ) (u_1,v_1) \in E(H_1) ( u 1 , v 1 ) ∈ E ( H 1 ) and ( u 2 , v 2 ) ∈ E ( H 2 ) (u_2,v_2) \in E(H_2) ( u 2 , v 2 ) ∈ E ( H 2 ) .
Note that the product is symmetric and associative in the sense that H 1 × H 2 H_1 \times H_2 H 1 × H 2 is isomorphic to H 2 × H 1 H_2 \times H_1 H 2 × H 1 and H 1 × ( H 2 × H 3 ) H_1 \times(H_2 \times H_3) H 1 × ( H 2 × H 3 ) is isomorphic to ( H 1 × H 2 ) × H 3 (H_1 \times H_2) \times H_3 ( H 1 × H 2 ) × H 3 , and we therefore do not specify the order of multiplication when multiplying more than two graphs. The n n n -th power H n H^n H n of a graph H H H is inductively defined as follows. H 1 H^1 H 1 is by definition H H H . If H i H^i H i is already defined, then H i + 1 H^{i+1} H i + 1 is H i × H H^i \times H H i × H .
Proposition 2.2. The homomorphism order ( D , ≤ ) (\mathcal{D}, \leq) ( D , ≤ ) is a lattice; i.e., for all A 1 , A 2 ∈ D A_1,A_2 \in\mathcal{D} A 1 , A 2 ∈ D
there exists an element A 1 ∧ A 2 ∈ D A_1 \wedge A_2 \in\mathcal{D} A 1 ∧ A 2 ∈ D , the meet of A 1 A_1 A 1 and A 2 A_2 A 2 , such that ( A 1 ∧ A 2 ) ≤ A 1 (A_1 \wedge A_2) \leq A_1 ( A 1 ∧ A 2 ) ≤ A 1 and ( A 1 ∧ A 2 ) ≤ A 2 (A_1 \wedge A_2) \leq A_2 ( A 1 ∧ A 2 ) ≤ A 2 , and such that for every U ∈ D U \in\mathcal{D} U ∈ D with U ≤ A 1 U \leq A_1 U ≤ A 1 and U ≤ A 2 U \leq A_2 U ≤ A 2 we have U ≤ A 1 ∧ A 2 U \leq A_1 \wedge A_2 U ≤ A 1 ∧ A 2 ;
there exists an element A 1 ∨ A 2 ∈ D A_1 \vee A_2 \in\mathcal{D} A 1 ∨ A 2 ∈ D , the join of A 1 A_1 A 1 and A 2 A_2 A 2 , such that A 1 ≤ ( A 1 ∨ A 2 ) A_1 \leq(A_1 \vee A_2) A 1 ≤ ( A 1 ∨ A 2 ) and A 2 ≤ ( A 1 ∨ A 2 ) A_2 \leq(A_1 \vee A_2) A 2 ≤ ( A 1 ∨ A 2 ) , and such that for every U ∈ D U \in\mathcal{D} U ∈ D with A 1 ≤ U A_1 \leq U A 1 ≤ U and A 2 ≤ U A_2 \leq U A 2 ≤ U we have A 1 ∨ A 2 ≤ U A_1 \vee A_2 \leq U A 1 ∨ A 2 ≤ U .
Proof. Let H 1 ∈ A 1 H_1 \in A_1 H 1 ∈ A 1 and H 2 ∈ A 2 H_2 \in A_2 H 2 ∈ A 2 . For the meet, the equivalence class of H 1 × H 2 H_1 \times H_2 H 1 × H 2 has the desired properties. For the join, the equivalence class of the disjoint union H 1 ⊎ H 2 H_1 \uplus H_2 H 1 ⊎ H 2 has the desired properties.2
With the seemingly simple definitions of graph homomorphisms and direct products we can already formulate very difficult combinatorial questions.
Conjecture 1 (Hedetniemi). Let G G G and H H H be finite graphs, and suppose that G × H → K n G \times H \to K_n G × H → K n . Then G → K n G \to K_n G → K n or H → K n H \to K_n H → K n .
For a graph G G G without loops, the smallest n ∈ N n \in\mathbb{N} n ∈ N such that G → K n G \to K_n G → K n is also called the chromatic number of G G G , and denoted by χ ( G ) \chi(G) χ ( G ) . Clearly, χ ( G × H ) ≤ min ( χ ( G ) , χ ( H ) ) \chi(G \times H) \leq\min(\chi(G), \chi(H)) χ ( G × H ) ≤ min ( χ ( G ) , χ ( H )) . Hedetniemi’s conjecture can then be rephrased as
χ ( G × H ) = min ( χ ( G ) , χ ( H ) ) . \chi(G \times H) = \min(\chi(G), \chi(H)). χ ( G × H ) = min ( χ ( G ) , χ ( H )) .
This conjecture is easy for n = 1 n = 1 n = 1 and n = 2 n = 2 n = 2 (Exercise 4), and has been solved for n = 3 n = 3 n = 3 by El Zahar and Sauer [56]. The conjecture has been refuted in 2019 by Yaroslav Shitov [108].
Clearly, ( D , ≤ ) (\mathcal{D}, \leq) ( D , ≤ ) has infinite ascending chains , that is, sequences E 1 , E 2 , … E_1, E_2, \ldots E 1 , E 2 , … such that E i < E i + 1 E_i < E_{i+1} E i < E i + 1 for all i ∈ N i \in\mathbb{N} i ∈ N . Take for instance the equivalence class of P ⃗ i \vec{P}_i P i for E i E_i E i . More interestingly, ( D , ≤ ) (\mathcal{D}, \leq) ( D , ≤ ) also has infinite descending chains (Proposition 2.3 ). To show this, we use so-called zig-zags , which are frequently used in the theory of graph homomorphisms. We may write an orientation of a path as a word over { 0 , 1 } \{0,1\} { 0 , 1 } , where 0 0 0 represents a forward arc and 1 1 1 represents a backward arc.
There are two useful invariants of homomorphisms between orientations of paths. The first one is height . Let P P P be an orientation of a path with consecutive vertices v 0 , … , v m v_0,\ldots,v_m v 0 , … , v m . Define its height function λ P \lambda_P λ P by λ P ( v 0 ) = 0 \lambda_P(v_0) = 0 λ P ( v 0 ) = 0 and by adding 1 1 1 for every forward arc and − 1 -1 − 1 for every backward arc. Clearly, homomorphisms preserve height differences.
A second variant is distance : since a homomorphism maps the underlying path to a walk of the same length, homomorphisms cannot increase the distance between vertices.
Proposition 2.3. The lattice ( D , ≤ ) (\mathcal{D}, \leq) ( D , ≤ ) contains infinite descending chains E 1 > E 2 > ⋯ E_1 > E_2 > \cdots E 1 > E 2 > ⋯ .
Proof. For k ≥ 1 k \ge1 k ≥ 1 , let Z k Z_k Z k be the oriented path represented by
11 ( 01 ) k − 1 1. 11(01)^{k-1}1. 11 ( 01 ) k − 1 1.
It has length 2 k + 1 2k+1 2 k + 1 , height span 3 3 3 , and unique vertices of maximum and minimum height, namely its two endpoints. There is a homomorphism Z k + 1 → Z k Z_{k+1} \to Z_k Z k + 1 → Z k : numbering the vertices in their path order, map the vertices of Z k + 1 Z_{k+1} Z k + 1 to
0 , 1 , 2 , 1 , 2 , 3 , … , 2 k + 1 0,1,2,1,2,3,\ldots,2k+1 0 , 1 , 2 , 1 , 2 , 3 , … , 2 k + 1
in Z k Z_k Z k .
Conversely, a homomorphism Z k → Z k + 1 Z_k \to Z_{k+1} Z k → Z k + 1 would have to map the two endpoints to the two endpoints, since both paths have height span 3 3 3 and their extreme heights occur only at the endpoints. But the images of the endpoints are separated by 2 k + 3 2k+3 2 k + 3 edges in Z k + 1 Z_{k+1} Z k + 1 , whereas the image of Z k Z_k Z k gives a walk of length only 2 k + 1 2k+1 2 k + 1 between them. This is impossible. Hence, the classes of Z 1 , Z 2 , … Z_1,Z_2,\ldots Z 1 , Z 2 , … form a strictly descending chain.
Proposition 2.4. The lattice ( D , ≤ ) (\mathcal{D},\le) ( D , ≤ ) contains infinite antichains, that is, sets of pairwise incomparable elements of D \mathcal{D} D with respect to ≤ \le ≤ .
Proof. For k , l ≥ 1 k,l \ge1 k , l ≥ 1 , let the k , l k,l k , l multi zig-zag Z k , l Z_{k,l} Z k , l be the oriented path represented by
1 ( 1 ( 01 ) l ) k 1. 1(1(01)^l)^k1. 1 ( 1 ( 01 ) l ) k 1. The multi zig-zag Z k , k Z_{k,k} Z k , k has height span k + 2 k+2 k + 2 and length 2 k 2 + k + 2 2k^2+k+2 2 k 2 + k + 2 . Suppose that Z k , k → Z l , l Z_{k,k} \to Z_{l,l} Z k , k → Z l , l . Preservation of height differences implies that k ≤ l k \le l k ≤ l .
If k < l k<l k < l , the endpoints of Z k , k Z_{k,k} Z k , k must map to two vertices of Z l , l Z_{l,l} Z l , l whose heights differ by k + 2 k+2 k + 2 . Let P P P be the subpath between these vertices. The higher vertex occurs first in the word, since height can increase by at most 1 1 1 along any subpath read in the word order. Decompose P P P into m m m complete blocks 1 ( 01 ) l 1(01)^l 1 ( 01 ) l and at most two end pieces, each a partial block or an outer single edge. Each complete block decreases the height by 1 1 1 , and each end piece decreases it by at most 1 1 1 . Hence k + 2 ≤ m + 2 k+2 \le m+2 k + 2 ≤ m + 2 , so m ≥ k m \ge k m ≥ k . Consequently, P P P contains at least k l kl k l forward arcs. Writing u u u for the number of forward arcs, its height decrease implies that it has u + k + 2 u+k+2 u + k + 2 backward arcs, and therefore
∣ E ( P ) ∣ = 2 u + k + 2 ≥ 2 k l + k + 2 = k ( 2 l + 1 ) + 2. |E(P)| = 2u+k+2 \ge2kl+k+2 = k(2l+1)+2. ∣ E ( P ) ∣ = 2 u + k + 2 ≥ 2 k l + k + 2 = k ( 2 l + 1 ) + 2. On the other hand, the image of Z k , k Z_{k,k} Z k , k gives a walk between these vertices of length 2 k 2 + k + 2 2k^2+k+2 2 k 2 + k + 2 . This is impossible, since
k ( 2 l + 1 ) + 2 > 2 k 2 + k + 2 k(2l+1)+2 > 2k^2+k+2 k ( 2 l + 1 ) + 2 > 2 k 2 + k + 2 when l > k l>k l > k . Thus, Z k , k → Z l , l Z_{k,k} \to Z_{l,l} Z k , k → Z l , l implies k = l k=l k = l , and the classes of the graphs Z k , k Z_{k,k} Z k , k form an infinite antichain.
Exercise 1. How many connected components do we have in ( P 3 ) 3 (P_3)^3 ( P 3 ) 3 ?
Exercise 2. How many weakly and strongly connected components do we have in ( C ⃗ 3 ) 3 (\vec{C}_3)^3 ( C 3 ) 3 ?
Exercise 3. Let G G G and H H H be digraphs. Prove that G × H G \times H G × H has a directed cycle if and only if both G G G and H H H have a directed cycle.
Exercise 4. Prove the Hedetniemi conjecture for n = 1 n = 1 n = 1 and n = 2 n = 2 n = 2 .
Exercise 5. Show that a digraph G G G homomorphically maps to P ⃗ 1 = T 2 \vec{P}_1 = T_2 P 1 = T 2 if and only if P ⃗ 2 \vec{P}_2 P 2 does not homomorphically map to G G G .
Exercise 6. Show that for all digraphs G G G we have G → T 3 G \to T_3 G → T 3 if and only if P ⃗ 3 ↛ G \vec{P}_3 \not\to G P 3 → G .
Exercise 7. Show that for every k ∈ N k \in\mathbb{N} k ∈ N , every pair of adjacent vertices of ( K 3 ) k (K_3)^k ( K 3 ) k has exactly one common neighbour (that is, every edge lies in a unique subgraph of ( K 3 ) k (K_3)^k ( K 3 ) k isomorphic to K 3 K_3 K 3 ).
Exercise 8. Show that for every k ∈ N k \in\mathbb{N} k ∈ N , every pair of non-adjacent vertices in ( K 3 ) k (K_3)^k ( K 3 ) k has at least two common neighbours.
Exercise 9. Let G G G be a finite digraph without loops. Show that G → P ⃗ n G \to\vec{P}_n G → P n , for some n ≥ 1 n \ge1 n ≥ 1 , if and only if any two paths in G G G that start and end in the same vertex have the same net length.
Exercise 10. Let G G G be a digraph without loops and fix n ≥ 1 n \ge1 n ≥ 1 . Show that G → C ⃗ n G \to\vec{C}_n G → C n if and only if any two paths in G G G that start and end in the same vertex have the same net length modulo n n n .
Exercise 11. Show that the Hedetniemi conjecture is equivalent to each of the following two statements.
Let n n n be a positive integer. If for two graphs G G G and H H H we have G ↛ K n G \not\to K_n G → K n and H ↛ K n H \not\to K_n H → K n , then G × H ↛ K n G \times H \not\to K_n G × H → K n .
Let G G G and H H H be graphs with χ ( G ) = χ ( H ) = m \chi(G) = \chi(H) = m χ ( G ) = χ ( H ) = m . Then there exists a graph K K K with χ ( K ) = m \chi(K) = m χ ( K ) = m such that K → G K \to G K → G and K → H K \to H K → H .
Exercise 12. Construct an orientation of a tree that is not homomorphically equivalent to an orientation of a path.
Exercise 13. Construct a balanced orientation of a cycle that is not homomorphically equivalent to an orientation of a path.
Exercise 14. Let a a a be an automorphism of K n k K_n^k K n k , for n ≥ 3 n \ge3 n ≥ 3 . Show that there are permutations p 1 , … , p k p_1, \ldots, p_k p 1 , … , p k of { 1 , … , n } \{1, \ldots, n\} { 1 , … , n } and a permutation q q q of { 1 , … , k } \{1, \ldots, k\} { 1 , … , k } such that
a ( x 1 , … , x k ) = ( p 1 ( x q ( 1 ) ) , … , p k ( x q ( k ) ) ) . a(x_1, \ldots, x_k) = (p_1(x_{q(1)}), \ldots, p_k(x_{q(k)})). a ( x 1 , … , x k ) = ( p 1 ( x q ( 1 ) ) , … , p k ( x q ( k ) )) .
Exercise 15. Show that Hedetniemi’s conjecture is false for directed graphs. Hint: there are counterexamples G G G , H H H with four vertices each.
The H H H -colouring Problem and Variants
When does a given digraph G G G homomorphically map to a digraph H H H ? For every digraph H H H , this question defines a computational problem, called the H H H -colouring problem. The input of this problem consists of a finite digraph G G G , and the question is whether there exists a homomorphism from G G G to H H H .
There are many variants of this problem. In the precoloured H H H -colouring problem , the input consists of a finite digraph G G G , together with a mapping f f f from a subset of V ( G ) V(G) V ( G ) to V ( H ) V(H) V ( H ) . The question is whether there exists an extension of f f f to all of V ( G ) V(G) V ( G ) which is a homomorphism from G G G to H H H . In the list H H H -colouring problem , the input consists of a finite digraph G G G , together with a set S x ⊆ V ( H ) S_x \subseteq V(H) S x ⊆ V ( H ) for every vertex x ∈ V ( G ) x \in V(G) x ∈ V ( G ) . The question is whether there exists a homomorphism h h h from G G G to H H H such that h ( x ) ∈ S x h(x) \in S_x h ( x ) ∈ S x for all x ∈ V ( G ) x \in V(G) x ∈ V ( G ) . It is clear that the H H H -colouring problem reduces to the precoloured H H H -colouring problem (it is a special case: the partial map might have an empty domain), and that the precoloured H H H -colouring problem reduces to the list H H H -colouring problem (for vertices x x x in the domain of f f f , we set S x : = { f ( x ) } S_x := \{f(x)\} S x := { f ( x )} , and for vertices x x x outside the domain of f f f , we set S x : = V ( H ) S_x := V(H) S x := V ( H ) ).
The constraint satisfaction problem is a common generalisation of all these problems, and many more. It is defined not only for digraphs H H H , but more generally for relational structures . Relational structures are the generalisation of graphs that can have many relations of arbitrary arity instead of just one binary edge relation. The constraint satisfaction problem will be introduced formally in § 5 . If H H H is a digraph, then the constraint satisfaction problem for H H H , also denoted CSP ( H ) \operatorname{CSP}(H) CSP ( H ) , is precisely the H H H -colouring problem and we use the terminology interchangeably. Note that since graphs can be seen as a special case of digraphs, H H H -colouring is also defined for undirected graphs H H H . In this case we obtain essentially the same computational problem if we only allow undirected graphs in the input; this is made precise in Exercise 16.
For every finite graph H H H , the H H H -colouring problem is obviously in NP, because for every graph G G G it can be verified in polynomial time whether a given mapping from V ( G ) V(G) V ( G ) to V ( H ) V(H) V ( H ) is a homomorphism from G G G to H H H or not. Clearly, the same holds for the precoloured and the list H H H -colouring problem. We have also seen that the K n K_n K n -colouring problem is the classical n n n -colouring problem, which is NP-complete [61] for n ≥ 3 n \ge3 n ≥ 3 , and therefore, no polynomial-time algorithm exists for K n K_n K n -colouring with n ≥ 3 n \ge3 n ≥ 3 , unless P=NP. However, for many graphs and digraphs H H H (Exercise 21 and 5) the H H H -colouring problem can be solved in polynomial time. Since the 1990s, researchers have studied the question: for which digraphs H H H can the H H H -colouring problem be solved in polynomial time? It has been conjectured by Feder and Vardi [60] that H H H -colouring is for any finite digraph H H H either NP-complete or can be solved in polynomial time. This is the so-called dichotomy conjecture , and it was proved in 2017, independently by Bulatov [39] and by Zhuk [115].
Theorem 2.5 (Bulatov [39], Zhuk [115]). Let H H H be a finite digraph. Then CSP ( H ) \operatorname{CSP}(H) CSP ( H ) is in P P P or NP-complete.
It was shown by Ladner [85] that unless P=NP there are infinitely many complexity classes between P and NP; so the conjecture states that for H H H -colouring these intermediate complexities do not appear. Feder and Vardi also showed that if the dichotomy conjecture holds for H H H -colouring problems, then also the more general class of CSPs for finite relational structures exhibits a complexity dichotomy (see § 5.2 ).
The list H H H -colouring problem, on the other hand, is quickly NP-hard, and therefore less difficult to classify. And indeed, a complete classification has been obtained by Bulatov [36] already in 2003. Alternative proofs can be found in [6, 38]. For finite undirected graphs, it is known since 1990 that the dichotomy conjecture holds [66]; this text provides two fundamentally different proofs of the following.
Theorem 2.6 (of [66]). Let H H H be a finite undirected graph. If H H H homomorphically maps to K 2 K_2 K 2 , or contains a loop, then H H H -colouring can be solved in polynomial time. Otherwise, H H H -colouring is NP-complete.
The case that H H H homomorphically maps to K 2 K_2 K 2 will be the topic of Exercise 21. The entire proof of Theorem 2.6 can be found in § 11 , and an alternative proof in § 15.6 .
Exercise 16. Let G G G and H H H be directed graphs, and suppose that H H H is symmetric. Show that f : V ( G ) → V ( H ) f : V(G) \to V(H) f : V ( G ) → V ( H ) is a homomorphism from G G G to H H H if and only if f f f is a homomorphism from the undirected graph of G G G to the undirected graph of H H H .
Exercise 17. Prove that CSP ( T 3 ) \operatorname{CSP}(T_3) CSP ( T 3 ) can be solved in polynomial time.
Exercise 18. For graphs G G G and H H H , order the following sets by inclusion.
CSP ( G ) ∪ CSP ( H ) \operatorname{CSP}(G) \cup\operatorname{CSP}(H) CSP ( G ) ∪ CSP ( H ) .
CSP ( G × H ) \operatorname{CSP}(G \times H) CSP ( G × H ) .
CSP ( G ⊎ H ) \operatorname{CSP}(G \uplus H) CSP ( G ⊎ H ) .
CSP ( G ) ∩ CSP ( H ) \operatorname{CSP}(G) \cap\operatorname{CSP}(H) CSP ( G ) ∩ CSP ( H ) .
Which of the inclusions are strict?
Exercise 19. Let H H H be a finite directed graph. Find an algorithm that decides whether there is a strong homomorphism from a given graph G G G to the fixed graph H H H . The running time of the algorithm should be polynomial in the size of G G G (note that we consider ∣ V ( H ) ∣ \lvert V(H)\rvert ∣ V ( H )∣ to be constant).
Exercise 20. Let H H H be a finite digraph such that CSP ( H ) \operatorname{CSP}(H) CSP ( H ) can be solved in polynomial time. Find a polynomial-time algorithm that constructs for a given finite digraph G G G a homomorphism to H H H , if such a homomorphism exists.
Exercise 21. Show that for any graph H H H that homomorphically maps to K 2 K_2 K 2 the constraint satisfaction problem for H H H can be solved in polynomial time.
Exercise 22. Prove that CSP ( C ⃗ 3 ) \operatorname{CSP}(\vec{C}_3) CSP ( C 3 ) can be solved in polynomial time.
Exercise 23. Let N \mathcal{N} N be the set { Z 1 , Z 2 , Z 3 , … } \{Z_1, Z_2, Z_3, \ldots\} { Z 1 , Z 2 , Z 3 , … } . Show that a digraph G → P ⃗ 2 G \to\vec{P}_2 G → P 2 if and only if no digraph in N \mathcal{N} N homomorphically maps to G G G .
Exercise 24. Suppose that CSP ( G ) \operatorname{CSP}(G) CSP ( G ) and CSP ( H ) \operatorname{CSP}(H) CSP ( H ) , for two digraphs G G G and H H H , can be solved in polynomial time. Show that CSP ( G × H ) \operatorname{CSP}(G \times H) CSP ( G × H ) and CSP ( G ⊎ H ) \operatorname{CSP}(G \uplus H) CSP ( G ⊎ H ) can be solved in polynomial time as well.
Exercise 25. Suppose that G G G and H H H are homomorphically incomparable and suppose that CSP ( G ) ∪ CSP ( H ) \operatorname{CSP}(G) \cup\operatorname{CSP}(H) CSP ( G ) ∪ CSP ( H ) can be solved in polynomial time. Show that CSP ( G ) \operatorname{CSP}(G) CSP ( G ) and CSP ( H ) \operatorname{CSP}(H) CSP ( H ) can be solved in polynomial time as well.
Exercise 26. Suppose that G G G and H H H are homomorphically incomparable and connected, and suppose that CSP ( G ⊎ H ) \operatorname{CSP}(G \uplus H) CSP ( G ⊎ H ) can be solved in polynomial time. Show that CSP ( G ) \operatorname{CSP}(G) CSP ( G ) and CSP ( H ) \operatorname{CSP}(H) CSP ( H ) can be solved in polynomial time as well.
Exercise 27. Show that the assumption in Exercise 26 that G G G and H H H are connected is necessary. Specifically, find digraphs G G G and H H H such that CSP ( G ⊎ H ) \operatorname{CSP}(G \uplus H) CSP ( G ⊎ H ) can be solved in polynomial time, but CSP ( G ) \operatorname{CSP}(G) CSP ( G ) is NP-hard.
Exercise 28. Find digraphs G G G and H H H such that CSP ( G ⊎ H ) \operatorname{CSP}(G \uplus H) CSP ( G ⊎ H ) can be solved in polynomial time, but CSP ( G ) \operatorname{CSP}(G) CSP ( G ) is NP-hard and CSP ( H ) \operatorname{CSP}(H) CSP ( H ) is NP-hard.
Exercise 29. Find finite digraphs G G G and H H H such that CSP ( G ) \operatorname{CSP}(G) CSP ( G ) is NP-hard, CSP ( H ) \operatorname{CSP}(H) CSP ( H ) is NP-hard, but CSP ( G × H ) \operatorname{CSP}(G \times H) CSP ( G × H ) is in P.
Cores
An endomorphism of a digraph H H H is a homomorphism from H H H to H H H . A finite digraph H H H is called a core if every endomorphism of H H H is an automorphism. A graph G G G is called a core of H H H if H H H is homomorphically equivalent to G G G and G G G is a core.
Proposition 2.7. Every finite digraph H H H has a core, which is unique up to isomorphism, and which is isomorphic to an induced subgraph of H H H .
Proof. Any finite digraph H H H has a core, since we can select an endomorphism e e e of H H H such that the image of e e e has smallest cardinality; the subgraph of H H H induced by e ( V ( H ) ) e(V(H)) e ( V ( H )) is a core of $H. Let G 1 G_1 G 1 and G 2 G_2 G 2 be cores of H H H , and f 1 : H → G 1 f_1 : H \to G_1 f 1 : H → G 1 , g 1 : G 1 → H g_1 : G_1 \to H g 1 : G 1 → H , f 2 : H → G 2 f_2 : H \to G_2 f 2 : H → G 2 , and g 2 : G 2 → H g_2 : G_2 \to H g 2 : G 2 → H be homomorphisms. Let e 1 : = f 2 ∘ g 1 e_1 := f_2 \circ g_1 e 1 := f 2 ∘ g 1 and e 2 : = f 1 ∘ g 2 e_2 := f_1 \circ g_2 e 2 := f 1 ∘ g 2 . See Figure 1 (PDF p. 18) .
Figure 1 (PDF p. 18). Illustration of the uniqueness proof for cores.
We claim that e 1 e_1 e 1 is the desired isomorphism. Suppose for contradiction that e 1 e_1 e 1 is not injective, i.e., there are distinct x , y x, y x , y in V ( G 1 ) V(G_1) V ( G 1 ) such that e 1 ( x ) = e 1 ( y ) e_1(x) = e_1(y) e 1 ( x ) = e 1 ( y ) . It follows that e 2 ∘ e 1 e_2 \circ e_1 e 2 ∘ e 1 cannot be injective either. But e 2 ∘ e 1 e_2 \circ e_1 e 2 ∘ e 1 is an endomorphism of G 1 G_1 G 1 , contradicting the assumption that G 1 G_1 G 1 is a core. Similarly, e 2 e_2 e 2 is an injective homomorphism from G 2 G_2 G 2 to G 1 G_1 G 1 , and it follows that ∣ V ( G 1 ) ∣ = ∣ V ( G 2 ) ∣ |V(G_1)| = |V(G_2)| ∣ V ( G 1 ) ∣ = ∣ V ( G 2 ) ∣ and both e 1 e_1 e 1 and e 2 e_2 e 2 are bijective.
Now, since ∣ V ( G 1 ) ∣ |V(G_1)| ∣ V ( G 1 ) ∣ is finite, there exists an n ∈ N n \in\mathbb{N} n ∈ N such that
e 2 ∘ e 1 ∘ ⋯ ∘ e 2 ∘ e 1 = ( e 2 ∘ e 1 ) n = id . e_2 \circ e_1 \circ\cdots\circ e_2 \circ e_1 = (e_2 \circ e_1)^n = \operatorname{id}. e 2 ∘ e 1 ∘ ⋯ ∘ e 2 ∘ e 1 = ( e 2 ∘ e 1 ) n = id .
Hence, e 2 ∘ e 1 ∘ ⋯ ∘ e 2 = ( e 1 ) − 1 e_2 \circ e_1 \circ\cdots\circ e_2 = (e_1)^{-1} e 2 ∘ e 1 ∘ ⋯ ∘ e 2 = ( e 1 ) − 1 , so the inverse of e 1 e_1 e 1 is a homomorphism, and hence an isomorphism between G 1 G_1 G 1 and G 2 G_2 G 2 .
Since a core G G G of a finite digraph H H H is unique up to isomorphism, we call G G G the core of H H H .
We want to mention without proof that it is NP-complete to decide whether a given digraph H H H is not a core [67].
Cores can be characterised in many different ways; for some of them, see Exercise 33. There are examples of infinite digraphs that do not have a core in the sense defined above; see Exercise 35. Since a digraph H H H and its core have the same CSP, it suffices to study CSP(H H H ) for core digraphs H H H only. Working with cores has advantages; one of them is shown in Proposition 2.9 below. In the proof of this proposition, we need a concept that we will use again in later sections.
Definition 2.8. Let H H H be a digraph and a surjective map q : V ( H ) → X q: V(H) \to X q : V ( H ) → X for some set X X X . Then the homomorphic image of H H H under q q q , denoted by H / q H/q H / q , is the graph with vertex set X X X and edge set { ( q ( u ) , q ( v ) ) ∣ ( u , v ) ∈ E ( H ) } \{(q(u),q(v)) \mid(u,v) \in E(H)\} {( q ( u ) , q ( v )) ∣ ( u , v ) ∈ E ( H )} . If u , v ∈ V ( H ) u,v \in V(H) u , v ∈ V ( H ) , then the graph obtained from H H H by contracting u , v u,v u , v , denoted by H / { u , v } H/\{u,v\} H / { u , v } , is defined to be the homomorphic image of H H H with respect to the map q : V ( H ) → V ( H ) ∖ { u , v } ∪ { { u , v } } q: V(H) \to V(H) \setminus\{u,v\} \cup\{\{u,v\}\} q : V ( H ) → V ( H ) ∖ { u , v } ∪ {{ u , v }} defined by q ( x ) = x q(x)=x q ( x ) = x if x ∈ V ( H ) ∖ { u , v } x \in V(H) \setminus\{u,v\} x ∈ V ( H ) ∖ { u , v } and q ( x ) = { u , v } q(x)=\{u,v\} q ( x ) = { u , v } otherwise.
Proposition 2.9. Let H H H be a core. Then CSP(H H H ) and precoloured CSP(H H H ) are linear-time equivalent.
Proof. The reduction from CSP(H H H ) to precoloured CSP(H H H ) is immediate: an instance G G G of CSP(H H H ) is equivalent to the instance ( G , c ) (G,c) ( G , c ) of precoloured CSP(H H H ) where c c c is everywhere undefined.
For the converse reduction, let ( G , c ) (G,c) ( G , c ) be an instance of precoloured CSP(H H H ). Take the disjoint union of G G G and a copy H ′ H' H ′ of H H H . For every x x x in the domain of c c c , contract x x x with the vertex of H ′ H' H ′ corresponding to c ( x ) c(x) c ( x ) . Denote the resulting graph by G ′ G' G ′ . Clearly, ∣ V ( G ′ ) ∣ ≤ ∣ V ( G ) ∣ + ∣ V ( H ) ∣ |V(G')| \le|V(G)| + |V(H)| ∣ V ( G ′ ) ∣ ≤ ∣ V ( G ) ∣ + ∣ V ( H ) ∣ , and G ′ G' G ′ can be constructed in linear time.
We claim that G ′ → H G' \to H G ′ → H if and only if ( G , c ) (G,c) ( G , c ) has a solution. Suppose first that f : G → H f: G \to H f : G → H extends c c c . Extend f f f to the copy H ′ H' H ′ by mapping every vertex of H ′ H' H ′ to the corresponding vertex of H H H . This is well defined at the identified vertices, since f ( x ) = c ( x ) f(x)=c(x) f ( x ) = c ( x ) , and it is a homomorphism from G ′ G' G ′ to H H H .
Conversely, let f ′ : G ′ → H f':G'\to H f ′ : G ′ → H be a homomorphism. The restriction of f ′ f' f ′ to H ′ H' H ′ is an endomorphism β \beta β of H H H . Since H H H is a core, β \beta β is an automorphism. Define
f : = β − 1 ∘ f ′ ∣ V ( G ) . f:=\beta^{-1}\circ f'|_{V(G)}. f := β − 1 ∘ f ′ ∣ V ( G ) .
Then f f f is a homomorphism from G G G to H H H . If x x x is in the domain of c c c , then x x x is identified in G ′ G' G ′ with the copy of c ( x ) c(x) c ( x ) in H ′ H' H ′ . Therefore, f ′ ( x ) = β ( c ( x ) ) f'(x)=\beta(c(x)) f ′ ( x ) = β ( c ( x )) , and hence f ( x ) = β − 1 ( f ′ ( x ) ) = c ( x ) f(x)=\beta^{-1}(f'(x))=c(x) f ( x ) = β − 1 ( f ′ ( x )) = c ( x ) . Thus f f f extends c c c , which proves the claim.
Corollary 2.10. If for every finite digraph H H H , the precoloured H H H -colouring problem is in P P P or N P NP N P -complete, then C S P ( H ) CSP(H) C S P ( H ) is in P P P or N P NP N P -complete for every finite digraph H H H as well.
The following example shows that the assumption of Proposition 2.9 that H H H is a core is necessary (unless P = N P P=NP P = N P ).
Example 2.11. Let H H H be the disjoint union of K 3 K_3 K 3 and a loop. Then C S P ( H ) CSP(H) C S P ( H ) is trivial and in P P P . The precoloured H H H -colouring problem, however, is N P NP N P -complete: we may prove this by a reduction from the N P NP N P -complete C S P ( K 3 ) CSP(K_3) C S P ( K 3 ) as follows. Clearly, this problem is already N P NP N P -complete if restricted to input graphs that are connected. Let G G G be a connected finite graph. Let c c c be a partial map sending one vertex of G G G to some element of K 3 K_3 K 3 . Then G G G has a homomorphism to K 3 K_3 K 3 if and only if c c c can be extended to a homomorphism from G G G to H H H . To see this, let f : G → K 3 f:G\to K_3 f : G → K 3 be a homomorphism. Composing f f f with a permutation of V ( K 3 ) V(K_3) V ( K 3 ) is also a homomorphism from G G G to K 3 K_3 K 3 , and hence in particular to H H H . So we may obtain a homomorphism from G G G to H H H which extends c c c . Conversely, if f f f is a homomorphism from G G G to H H H which extends c c c then f ( V ( G ) ) ⊆ V ( K 3 ) f(V(G))\subseteq V(K_3) f ( V ( G )) ⊆ V ( K 3 ) , since f ( x ) ∈ V ( K 3 ) f(x)\in V(K_3) f ( x ) ∈ V ( K 3 ) and G G G is connected. △
We have already seen in Exercise 20 that the computational problem to construct a homomorphism from G G G to H H H , for fixed H H H and given G G G , can be reduced in polynomial-time to the problem of deciding whether there exists a homomorphism from G G G to H H H . The intended solution of Exercise 20 requires in the worst-case ∣ V ( G ) ∣ 2 |V(G)|^2 ∣ V ( G ) ∣ 2 many executions of the decision procedure for C S P ( H ) CSP(H) C S P ( H ) . Using the concept of cores and the precoloured CSP (and its equivalence to the CSP) we can give a faster method to construct homomorphisms.
Proposition 2.12. If there is an algorithm that decides C S P ( H ) CSP(H) C S P ( H ) in time T T T , then there is an algorithm that constructs a homomorphism from a given digraph G G G to H H H (if such a homomorphism exists) which runs in time O ( ∣ V ( G ) ∣ T ) O(|V(G)|T) O ( ∣ V ( G ) ∣ T ) .
Proof. Let C C C be the core of H H H ; we may suppose that C C C is a subgraph of H H H . By Proposition 2.9, and since C S P ( C ) CSP(C) C S P ( C ) and C S P ( H ) CSP(H) C S P ( H ) are the same problem, there is an algorithm A A A for precoloured C S P ( C ) CSP(C) C S P ( C ) with a running time in O ( T ) O(T) O ( T ) .
To construct a homomorphism from a given finite digraph G G G to H H H , we first apply A A A to ( G , c ) (G,c) ( G , c ) for the everywhere undefined function c c c to decide whether there exists a homomorphism from G G G to C C C . If no, then there is also no homomorphism to H H H and there is nothing to be shown. If yes, we select some x ∈ V ( G ) x\in V(G) x ∈ V ( G ) , and extend c c c by defining c ( x ) = u c(x)=u c ( x ) = u for some u ∈ V ( C ) u\in V(C) u ∈ V ( C ) . Then we use algorithm A A A to decide whether there is a homomorphism from G G G to C C C that extends c c c . If no, we try another vertex u ∈ V ( C ) u\in V(C) u ∈ V ( C ) . Clearly, for some u u u the algorithm must give the answer “yes”. We proceed with the extension c c c where c ( x ) = u c(x)=u c ( x ) = u , and repeat the procedure with another vertex x x x from V ( G ) V(G) V ( G ) . At the end, c c c is defined for all vertices x x x of G G G , and c c c is a homomorphism from G G G to C C C . Clearly, since H H H and C C C are fixed, algorithm A A A is executed O ( ∣ V ( G ) ∣ ) O(\lvert V(G)\rvert) O (∣ V ( G )∣) times.
Exercise 30. Prove that the core of a strongly connected digraph is strongly connected.
Exercise 31. Show that Z k , l Z_{k,l} Z k , l is a core for all k , l ≥ 2 k,l \ge2 k , l ≥ 2 .
Exercise 32. Prove that cores and products of digraphs without sources and sinks have no sources and sinks.
Exercise 33. Prove that for every finite digraph G G G the following is equivalent:
Every endomorphism of G G G is an automorphism.
Every endomorphism of G G G is injective.
Every endomorphism of G G G is surjective.
Exercise 34. Show that the three properties in the previous exercise are no longer equivalent if G G G is infinite.
Exercise 35. Show that the infinite tournament ( Q ; < ) (\mathbb{Q}; <) ( Q ; < ) has endomorphisms that are not automorphisms. Show that every digraph that is homomorphically equivalent to ( Q ; < ) (\mathbb{Q}; <) ( Q ; < ) also has endomorphisms that are not automorphisms.
Exercise 36. Let H H H be the core of G G G which we may assume to be a subgraph of G G G . Show that there exists a retraction from G G G to H H H , i.e., a homomorphism e e e from G G G to H H H such that e ( x ) = x e(x) = x e ( x ) = x for all x ∈ V ( H ) x \in V(H) x ∈ V ( H ) .
Exercise 37. A permutation group on a set V V V is called transitive if for all a , b ∈ V a,b \in V a , b ∈ V there exists g ∈ G g \in G g ∈ G such that g ( a ) = b g(a) = b g ( a ) = b . Show that if ( V , E ) (V,E) ( V , E ) is a graph with a transitive automorphism group, then the core of ( V , E ) (V,E) ( V , E ) also has a transitive automorphism group.
Exercise 38. Show that the connected components of a core are cores that form an antichain in ( D , ≤ ) (\mathcal{D}, \le) ( D , ≤ ) ; conversely, the disjoint union of an antichain of cores is a core.
Exercise 39. Prove that the core of a digraph with a transitive automorphism group is connected.
Exercise 40. Determine the computational complexity of CSP ( H ) \operatorname{CSP}(H) CSP ( H ) for
H : = ( Z ; { ( x , y ) : ∣ x − y ∣ ∈ { 1 , 2 } } ) . H := \left(\mathbb{Z}; \{(x,y) : \lvert x-y\rvert\in\{1,2\}\}\right). H := ( Z ; {( x , y ) : ∣ x − y ∣ ∈ { 1 , 2 }} ) .
Exercise 41. A permutation group G G G on a set X X X is called primitive if the only equivalence relations on X X X that are preserved by all permutations in G G G are the equality relation and the equivalence relation with only one equivalence class. Prove that the core of a digraph with a primitive automorphism group has a primitive automorphism group.
Polymorphisms
Polymorphisms are a powerful tool for analysing the computational complexity of constraint satisfaction problems; as we will see, they are useful both for NP-hardness proofs and for proving the correctness of polynomial-time algorithms for CSPs. Polymorphisms can be seen as multi-dimensional variants of endomorphisms.
Definition 2.13. Let H H H be a digraph and k ≥ 1 k \ge1 k ≥ 1 . Then a polymorphism of H H H of arity k k k is a homomorphism from H k H^k H k to H H H .
In other words, a mapping f : V ( H ) k → V ( H ) f\colon V(H)^k \to V(H) f : V ( H ) k → V ( H ) is a polymorphism of H H H if and only if ( f ( u 1 , … , u k ) , f ( v 1 , … , v k ) ) ∈ E ( H ) (f(u_1,\ldots,u_k), f(v_1,\ldots,v_k)) \in E(H) ( f ( u 1 , … , u k ) , f ( v 1 , … , v k )) ∈ E ( H ) whenever ( u 1 , v 1 ) , … , ( u k , v k ) (u_1,v_1),\ldots,(u_k,v_k) ( u 1 , v 1 ) , … , ( u k , v k ) are arcs in E ( H ) E(H) E ( H ) . Note that any digraph H H H has all projections as polymorphisms, i.e., all mappings π i k : V ( H ) k → V ( H ) \pi_i^k\colon V(H)^k \to V(H) π i k : V ( H ) k → V ( H ) , for i ≤ k i \le k i ≤ k given by π i k ( x 1 , … , x k ) = x i \pi_i^k(x_1,\ldots,x_k)=x_i π i k ( x 1 , … , x k ) = x i for all x 1 , … , x k ∈ V ( H ) x_1,\ldots,x_k \in V(H) x 1 , … , x k ∈ V ( H ) . The operation π i k \pi_i^k π i k is called the i i i -th projection of arity k k k .
Example 2.14. The operation ( x , y ) ↦ min ( x , y ) (x,y) \mapsto\min(x,y) ( x , y ) ↦ min ( x , y ) is a polymorphism of the digraph T n = ( { 1 , … , n } ; < ) T_n = (\{1,\ldots,n\};<) T n = ({ 1 , … , n } ; < ) .
An operation f : V ( H ) k → V ( H ) f\colon V(H)^k \to V(H) f : V ( H ) k → V ( H ) is called
idempotent if f ( x , … , x ) = x f(x,\ldots,x)=x f ( x , … , x ) = x for all x ∈ V ( H ) x \in V(H) x ∈ V ( H ) .
conservative if f ( x 1 , … , x k ) ∈ { x 1 , … , x k } f(x_1,\ldots,x_k) \in\{x_1,\ldots,x_k\} f ( x 1 , … , x k ) ∈ { x 1 , … , x k } for all x 1 , … , x k ∈ V ( H ) x_1,\ldots,x_k \in V(H) x 1 , … , x k ∈ V ( H ) .
A digraph H H H is called projective if every idempotent polymorphism is a projection. The following will be shown in § 7.5 .
Proposition 2.15. For all n ≥ 3 n \ge3 n ≥ 3 , the graph K n K_n K n is projective.
Exercise 42. Show that if f : H k → H f\colon H^k \to H f : H k → H is a polymorphism of a digraph H H H , then f ^ ( x ) : = f ( x , … , x ) \hat{f}(x):=f(x,\ldots,x) f ^ ( x ) := f ( x , … , x ) is an endomorphism of H H H .
Exercise 43. Show that if H H H is a finite core digraph with a symmetric binary polymorphism f f f , that is, f ( x , y ) = f ( y , x ) f(x,y)=f(y,x) f ( x , y ) = f ( y , x ) for all x , y ∈ V ( H ) x,y \in V(H) x , y ∈ V ( H ) , then H H H also has an idempotent symmetric polymorphism.
The Arc-consistency Procedure
The arc-consistency procedure is one of the most fundamental and well-studied algorithms used to solve CSPs. This procedure was first discovered for constraint satisfaction problems in artificial intelligence [93, 98]; in the graph homomorphism literature, the algorithm is sometimes called the consistency check algorithm .
Let H H H be a finite digraph, and let G G G be an instance of CSP(H H H ). The idea of the procedure is to maintain for each vertex of G G G a list of vertices of H H H , and each element in the list of x x x represents a candidate for an image of x x x under a homomorphism from G G G to H H H . The algorithm successively removes vertices from these lists; it only removes a vertex u ∈ V ( H ) u \in V(H) u ∈ V ( H ) from the list for x ∈ V ( G ) x \in V(G) x ∈ V ( G ) , if there is no homomorphism from G G G to H H H that maps x x x to u u u . To detect vertices x , u x,u x , u such that u u u can be removed from the list for x x x , the algorithm uses two rules (in fact, one rule and a symmetric version of the same rule): if ( x , y ) (x,y) ( x , y ) is an edge in G G G , then
remove u u u from L ( x ) L(x) L ( x ) if there is no v ∈ L ( y ) v \in L(y) v ∈ L ( y ) with ( u , v ) ∈ E ( H ) (u,v) \in E(H) ( u , v ) ∈ E ( H ) ;
remove v v v from L ( y ) L(y) L ( y ) if there is no u ∈ L ( x ) u \in L(x) u ∈ L ( x ) with ( u , v ) ∈ E ( H ) (u,v) \in E(H) ( u , v ) ∈ E ( H ) .
If eventually we can no longer remove any vertex from any list with these rules any more, the digraph G G G together with the lists for each vertex is called arc-consistent . The pseudo-code of the entire arc-consistency procedure is displayed in Figure 2 .
Figure 2. The arc-consistency procedure for CSP(H H H ).
Clearly, if the algorithm removes all vertices from one of the lists, then there is no homomorphism from G G G to H H H . It follows that if A C H \mathrm{AC}_{H} AC H rejects an instance of CSP(H H H ), it has no solution. The converse implication does not hold in general. For instance, let H H H be K 2 K_{2} K 2 , and let G G G be K 3 K_{3} K 3 . In this case, A C H \mathrm{AC}_{H} AC H does not remove any vertex from any list, but obviously there is no homomorphism from K 3 K_{3} K 3 to K 2 K_{2} K 2 .
However, there are digraphs H H H where A C H \mathrm{AC}_{H} AC H is a complete decision procedure for CSP(H H H ) in the sense that it rejects an instance G G G of CSP(H H H ) if and only if G G G does not homomorphically map to H H H . In this case we say that AC solves CSP(H H H ).
Remark 3.1. The running time of A C H \mathrm{AC}_{H} AC H is for any fixed digraph H H H polynomial in the size of G G G . If H H H is part of the input, we refer to the procedure as AC. Quite remarkably, AC has polynomial running time as well.
Implementation. In a naive implementation of the procedure, the inner loop of the algorithm would go over all edges of the digraph, in which case the running time of the algorithm is quadratic in the size of G G G . In the following we describe an implementation of the arc-consistency procedure, called AC-3, which is due to Mackworth [93], and has a worst-case running time that is linear in the size of G G G . Several other implementations of the arc-consistency procedure have been proposed in the Artificial Intelligence literature, aiming at reducing the costs of the algorithm in terms of the number of vertices of both G G G and H H H . But here we consider the size of H H H to be fixed, and therefore we do not present this line of research. With AC-3, we rather present one of the simplest implementations of the arc-consistency procedure with a linear running time.
Figure 3. The AC-3 implementation of the arc-consistency procedure for CSP(H H H ).
The idea of AC-3 is to maintain a worklist , which contains a list of arcs ( x 0 , x 1 ) (x_0,x_1) ( x 0 , x 1 ) of G G G that might help to remove a value from L ( x 0 ) L(x_0) L ( x 0 ) or L ( x 1 ) L(x_1) L ( x 1 ) . Whenever we remove a value from a list L ( x ) L(x) L ( x ) , we add all arcs that are in G G G incident to x x x . Note that then any arc in G G G might be added at most 2 ∣ V ( H ) ∣ 2|V(H)| 2∣ V ( H ) ∣ many times to the worklist, which is a constant in the size of G G G . Hence, the while loop of the implementation is iterated for at most a linear number of times. Altogether, the running time is linear in the size of G G G as well.
Arc-consistency for pruning search. Suppose that H H H is such that AC does not solve CSP(H H H ). Even in this situation the arc-consistency procedure might be useful for pruning the search space in exhaustive approaches to solve CSP(H H H ). In such an approach we might use the arc-consistency procedure as a subroutine as follows. Initially, we run A C H \mathrm{AC}_H AC H on the input instance G G G . If it computes an empty list, we reject. Otherwise, we select some vertex x ∈ V ( G ) x \in V(G) x ∈ V ( G ) , and set L ( x ) L(x) L ( x ) to { u } \{u\} { u } for some u ∈ L ( x ) u \in L(x) u ∈ L ( x ) . Then we proceed recursively with the resulting lists. If A C H \mathrm{AC}_H AC H now detects an empty list, we backtrack, but remove u u u from L ( x ) L(x) L ( x ) . Finally, if the algorithm never detects an empty list, we end up with singleton lists for each vertex x ∈ V ( G ) x \in V(G) x ∈ V ( G ) , which gives rise to a homomorphism from G G G to H H H .
Exercise 44. Adapt the arc-consistency procedure to precolored CSP(H H H ).
Exercise 45. Let G G G and H H H be finite digraphs, let x ∈ V ( G ) x \in V(G) x ∈ V ( G ) , and let L ( x ) L(x) L ( x ) be the list computed by the arc-consistency procedure. Show that L ( x ) L(x) L ( x ) is preserved by all polymorphisms of H H H .
The Powerset Graph
For which H H H does the Arc-Consistency procedure solve CSP(H H H )? In this section we present an elegant and effective characterisation of those finite digraphs H H H where AC solves CSP(H H H ), found by Feder and Vardi [60].
Definition 3.2. For a digraph H H H , the powerset graph P ( H ) P(H) P ( H ) is the digraph whose vertices are non-empty subsets of V ( H ) V(H) V ( H ) and where two subsets U U U and V V V are joined by an arc if the following holds:
for every vertex u ∈ U u \in U u ∈ U , there exists a vertex v ∈ V v \in V v ∈ V such that ( u , v ) ∈ E ( H ) (u,v) \in E(H) ( u , v ) ∈ E ( H ) , and
for every vertex v ∈ V v \in V v ∈ V , there exists a vertex u ∈ U u \in U u ∈ U such that ( u , v ) ∈ E ( H ) (u,v) \in E(H) ( u , v ) ∈ E ( H ) .
The definition of the powerset graph resembles the arc-consistency algorithm, and indeed, we have the following lemma which describes the correspondence.
Lemma 3.3. A C H \mathrm{AC}_H AC H accepts G G G if and only if G → P ( H ) G \to P(H) G → P ( H ) .
Proof. Suppose first that A C H \mathrm{AC}_H AC H accepts G G G . For u ∈ V ( G ) u \in V(G) u ∈ V ( G ) , let L ( u ) L(u) L ( u ) be the list derived at the final stage of the algorithm. Then by definition of E ( P ( H ) ) E(P(H)) E ( P ( H )) , the map x ↦ L ( x ) x \mapsto L(x) x ↦ L ( x ) is a homomorphism from G G G to P ( H ) P(H) P ( H ) .
Conversely, suppose that f : G → P ( H ) f:G \to P(H) f : G → P ( H ) is a homomorphism. We prove by induction over the execution of A C H \mathrm{AC}_H AC H that for all x ∈ V ( G ) x \in V(G) x ∈ V ( G ) the elements of f ( x ) f(x) f ( x ) are never removed from L ( x ) L(x) L ( x ) . To see that, let ( a , b ) ∈ E ( G ) (a,b) \in E(G) ( a , b ) ∈ E ( G ) be arbitrary. Then ( f ( a ) , f ( b ) ) ∈ E ( P ( H ) ) (f(a),f(b)) \in E(P(H)) ( f ( a ) , f ( b )) ∈ E ( P ( H )) , and hence for every u ∈ f ( a ) u \in f(a) u ∈ f ( a ) there exists a v ∈ f ( b ) v \in f(b) v ∈ f ( b ) such that ( u , v ) ∈ E ( H ) (u,v) \in E(H) ( u , v ) ∈ E ( H ) . By inductive assumption, v ∈ L ( b ) v \in L(b) v ∈ L ( b ) , and hence u u u will not be removed from L ( a ) L(a) L ( a ) . The other rule is symmetric. This concludes the inductive step.
Theorem 3.4. Let H H H be a finite digraph. Then AC solves CSP(H H H ) if and only if P ( H ) P(H) P ( H ) homomorphically maps to H H H .
Proof. Suppose first that AC solves CSP(H H H ). Apply A C H \mathrm{AC}_H AC H to P ( H ) P(H) P ( H ) . Since P ( H ) → P ( H ) P(H) \to P(H) P ( H ) → P ( H ) , the previous lemma shows that A C H \mathrm{AC}_H AC H does not reject P ( H ) P(H) P ( H ) . Hence, P ( H ) → H P(H) \to H P ( H ) → H by assumption.
Conversely, suppose that P ( H ) → H P(H) \to H P ( H ) → H . If A C H \mathrm{AC}_H AC H rejects a digraph G G G then G ↛ H G \not\to H G → H . If A C H \mathrm{AC}_H AC H does accept G G G , then the lemma asserts that G → P ( H ) G \to P(H) G → P ( H ) . Composing homomorphisms, we obtain that G → H G \to H G → H .
Observation 3.5. Let H H H be a core digraph. Note that if P ( H ) P(H) P ( H ) homomorphically maps to H H H , then there also exists a homomorphism that maps { x } \{x\} { x } to x x x for all x ∈ V ( H ) x \in V(H) x ∈ V ( H ) (here we use the assumption that H H H is a core!). We claim that in this case the precoloured CSP for H H H can be solved by the modification of A C H \mathrm{AC}_{H} AC H which starts with L ( x ) : = { c ( x ) } L(x) := \{c(x)\} L ( x ) := { c ( x )} for all x ∈ V ( G ) x \in V(G) x ∈ V ( G ) in the domain of the precolouring function c c c , instead of L ( x ) : = V ( H ) L(x) := V(H) L ( x ) := V ( H ) . This is a direct consequence of the proof of Theorem 3.4. If the modified version of A C H \mathrm{AC}_{H} AC H solves the precoloured CSP for H H H , then the classical version of A C H \mathrm{AC}_{H} AC H solves CSP ( H ) \operatorname{CSP}(H) CSP ( H ) . Hence, it follows that the following are equivalent:
Note that the condition given in Theorem 3.4 can be used to decide algorithmically whether AC solves CSP ( H ) \operatorname{CSP}(H) CSP ( H ) , because it suffices to test whether P ( H ) P(H) P ( H ) homomorphically maps to H H H . Such problems about deciding properties of CSP ( H ) \operatorname{CSP}(H) CSP ( H ) for given H H H are often called algorithmic meta-problems . A naive algorithm for the above test would be to first construct P ( H ) P(H) P ( H ) , and then to search non-deterministically for a homomorphism from P ( H ) P(H) P ( H ) to H H H , which puts the meta-problem for solvability of CSP ( H ) \operatorname{CSP}(H) CSP ( H ) by AC into the complexity class NExpTime (Non-deterministic Exponential Time ). This can be improved.
Proposition 3.6. There exists a deterministic exponential time algorithm that tests for a given finite core digraph H H H whether P ( H ) P(H) P ( H ) homomorphically maps to H H H .
Proof. We first explicitly construct P ( H ) P(H) P ( H ) , and then apply A C H \mathrm{AC}_{H} AC H to P ( H ) P(H) P ( H ) . If A C H \mathrm{AC}_{H} AC H rejects, then there is certainly no homomorphism from P ( H ) → H P(H) \to H P ( H ) → H by the properties of A C H \mathrm{AC}_{H} AC H , and we return ‘false’. If A C H \mathrm{AC}_{H} AC H accepts, then we cannot argue right away that P ( H ) P(H) P ( H ) homomorphically maps to H H H , since we do not know yet whether A C H \mathrm{AC}_{H} AC H is correct for CSP ( H ) \operatorname{CSP}(H) CSP ( H ) .
But here is the trick. What we do in this case is to pick an arbitrary x ∈ V ( P ( H ) ) x \in V(P(H)) x ∈ V ( P ( H )) , and remove all but one value u u u from L ( x ) L(x) L ( x ) , and continue with the execution of A C H \mathrm{AC}_{H} AC H . If A C H \mathrm{AC}_{H} AC H then derives the empty list, we try the same with another value u ′ u' u ′ from L ( x ) L(x) L ( x ) . If we obtain failure for all values of L ( x ) L(x) L ( x ) , then clearly there is no homomorphism from P ( H ) P(H) P ( H ) to H H H , and we return ‘false’. Otherwise, if A C H \mathrm{AC}_{H} AC H does not derive the empty list after removing all values but u u u from L ( x ) L(x) L ( x ) , we continue with another element y y y of V ( P ( H ) ) V(P(H)) V ( P ( H )) , setting L ( y ) L(y) L ( y ) to { v } \{v\} { v } for some v ∈ L ( y ) v \in L(y) v ∈ L ( y ) . We repeat this procedure until at the end we have constructed a homomorphism from P ( H ) P(H) P ( H ) to H H H . In this case we return ‘true’.
If A C H \mathrm{AC}_{H} AC H rejects for some x ∈ V ( P ( H ) ) x \in V(P(H)) x ∈ V ( P ( H )) when L ( x ) = { u } L(x) = \{u\} L ( x ) = { u } for all possible u ∈ V ( H ) u \in V(H) u ∈ V ( H ) , then the adaptation of A C H \mathrm{AC}_{H} AC H for the precoloured CSP would have given an incorrect answer for the previously selected variable (it said yes while it should have said no). By Observation 3.5, this means that P ( H ) P(H) P ( H ) does not homomorphically map to H H H . Again, we return ‘false’.
The computational complexity of deciding for a given digraph H H H whether P ( H ) → H P(H) \to H P ( H ) → H is not known; we refer to [48] for related questions and results.
Question 1. What is the computational complexity to decide for a given core digraph H H H whether P ( H ) → H P(H) \to H P ( H ) → H ? Is this problem in P?
Exercise 46. Show that if G G G and H H H are homomorphically equivalent, then P ( G ) P(G) P ( G ) and P ( H ) P(H) P ( H ) are also homomorphically equivalent.
Exercise 47. Solve the problems from Exercise 50 for infinite digraphs H H H .
Exercise 48. Let H H H be a finite digraph. Show that P ( H ) P(H) P ( H ) contains a loop if and only if H H H contains a directed cycle.
Exercise 49. Show that the previous statement is false for infinite digraphs H H H .
Exercise 50. Recall that a digraph is called balanced if it homomorphically maps to a directed path. Let H H H be a finite digraph. Prove or disprove:
if H H H is balanced, then P ( H ) P(H) P ( H ) is balanced;
if H H H is an orientation of a tree, then P ( H ) P(H) P ( H ) is an orientation of a forest;
P ( H ) → H P(H) \to H P ( H ) → H if and only if H H H is acyclic.
Exercise 51. Can the CSP for the digraph depicted in Figure 4 be solved by the arc-consistency procedure?
Figure 4. The graph from Exercise 51.
Exercise 52. Up to isomorphism, there is only one unbalanced cycle H H H on four vertices that is a core and not the directed cycle. Show that AC does not solve CSP ( H ) \operatorname{CSP}(H) CSP ( H ) .
Tree Duality
Another mathematical notion that is closely related to the arc-consistency procedure is tree duality . The idea of this concept is that for some digraphs H H H , we can show that there is no homomorphism from a digraph G G G to H H H by exhibiting a tree obstruction in G G G : this is an orientation of a finite tree which homomorphically maps to G G G , but not to H H H . This is relevant in the context of the arc-consistency procedure because of the following lemma.
Lemma 3.7. Let H H H and G G G be finite digraphs and suppose that A C H \mathrm{AC}_{H} AC H rejects G G G . Then there exists a tree obstruction in G G G .
Proof. By assumption, the arc-consistency procedure applied to G G G eventually derives the empty list for some vertex of G G G . We use the computation of the procedure to construct an orientation T T T of a tree, following the exposition in [86]. When deleting a vertex u ∈ V ( H ) u \in V(H) u ∈ V ( H ) from the list of a vertex x ∈ V ( G ) x \in V(G) x ∈ V ( G ) , we define an orientation of a rooted tree T x , u T_{x,u} T x , u with root r x , u r_{x,u} r x , u such that
there is a homomorphism from T x , u T_{x,u} T x , u to G G G mapping r x , u r_{x,u} r x , u to x x x ;
there is no homomorphism from T x , u T_{x,u} T x , u to H H H mapping r x , u r_{x,u} r x , u to u u u .
Assume that the vertex u u u is deleted from the list of x x x because we found an arc ( x , y ) ∈ E ( G ) (x,y) \in E(G) ( x , y ) ∈ E ( G ) such that there is no arc ( u , v ) ∈ E ( H ) (u,v) \in E(H) ( u , v ) ∈ E ( H ) with v ∈ L ( y ) v \in L(y) v ∈ L ( y ) ; if it was deleted because of an arc ( y , x ) ∈ E ( G ) (y,x) \in E(G) ( y , x ) ∈ E ( G ) the proof follows with the obvious changes.
If there is no v ∈ V ( H ) v \in V(H) v ∈ V ( H ) such that ( u , v ) ∈ E ( H ) (u,v) \in E(H) ( u , v ) ∈ E ( H ) , then we define T x , u T_{x,u} T x , u to be the tree that just contains an arc ( p , q ) (p,q) ( p , q ) with root r x , u = p r_{x,u}=p r x , u = p ; clearly, T x , u T_{x,u} T x , u satisfies property (1) and (2). Otherwise, for every arc ( u , v ) ∈ E ( H ) (u,v) \in E(H) ( u , v ) ∈ E ( H ) the vertex v v v has already been removed from the list L ( y ) L(y) L ( y ) , and hence by induction T y , v T_{y,v} T y , v having properties (1) and (2) is already defined. We then add a copy of T y , v T_{y,v} T y , v to T x , u T_{x,u} T x , u , contract all the roots of all copies into one vertex q q q , and finally add an arc from the root vertex r x , u r_{x,u} r x , u to q q q .
We verify that the resulting orientation of a tree T x , u T_{x,u} T x , u satisfies (1) and (2). For every v ∈ V ( H ) v \in V(H) v ∈ V ( H ) such that ( u , v ) ∈ E ( H ) (u,v) \in E(H) ( u , v ) ∈ E ( H ) , let f v f_v f v be the homomorphism from T y , v T_{y,v} T y , v mapping r y , v r_{y,v} r y , v to y y y , which exists due to (1). The common extension of all the maps f v f_v f v to V ( T x , u ) V(T_{x,u}) V ( T x , u ) that map r x , u r_{x,u} r x , u to x x x is a homomorphism from T x , u T_{x,u} T x , u to G G G , and this shows that (1) holds for T x , u T_{x,u} T x , u . Suppose for contradiction that there exists a homomorphism h h h from T x , u T_{x,u} T x , u to H H H that maps r x , u r_{x,u} r x , u to u u u . Let v = h ( q ) v=h(q) v = h ( q ) ; then h h h restricts to a homomorphism from T y , v T_{y,v} T y , v to H H H , a contradiction. This shows that (2) holds for T x , u T_{x,u} T x , u .
When the list L ( x ) L(x) L ( x ) of some vertex x ∈ V ( G ) x \in V(G) x ∈ V ( G ) becomes empty, we can construct an orientation of a tree T T T by contracting the roots of all T x , u T_{x,u} T x , u into a vertex r r r . We then find a homomorphism from T T T to G G G by mapping r r r to x x x and extending the homomorphism independently on each T x , u T_{x,u} T x , u . But any homomorphism from T T T to H H H must map r r r to some element u ∈ V ( H ) u \in V(H) u ∈ V ( H ) , and hence there is a homomorphism from T x , u T_{x,u} T x , u to H H H that maps r x , u r_{x,u} r x , u to u u u , a contradiction.
Lemma 3.7 also has a converse.
Lemma 3.8. Let H H H and G G G be finite digraphs such that there exists an orientation of a tree which maps homomorphically to G G G , but not to H H H . Then A C H \mathrm{AC}_H AC H rejects G G G .
Proof. We prove the contrapositive, and suppose that A C H \mathrm{AC}_H AC H accepts G G G . By Lemma 3.3, this implies that G → P ( H ) G \to P(H) G → P ( H ) . We have to show that every orientation T T T of a tree that maps to G G G also maps to H H H . Let f f f be a homomorphism from T T T to P ( H ) P(H) P ( H ) . We construct a homomorphism g g g from T T T to H H H inductively as follows. Let x x x be any vertex of T T T , and define g ( x ) g(x) g ( x ) to be some vertex from f ( x ) f(x) f ( x ) . Suppose inductively that we have already defined g g g for a vertex y y y at distance i i i from x x x in T T T such that g ( y ) ∈ f ( y ) g(y) \in f(y) g ( y ) ∈ f ( y ) , and that we want to define it for a neighbour y ′ y' y ′ of y y y at distance i + 1 i+1 i + 1 from x x x in $T. T T T is an orientation of a tree, either ( y , y ′ ) ∈ E ( T ) (y,y') \in E(T) ( y , y ′ ) ∈ E ( T ) or ( y ′ , y ) ∈ E ( T ) (y',y) \in E(T) ( y ′ , y ) ∈ E ( T ) . In case that ( y , y ′ ) ∈ E ( T ) (y,y') \in E(T) ( y , y ′ ) ∈ E ( T ) , we have ( f ( y ) , f ( y ′ ) ) ∈ P ( H ) (f(y),f(y')) \in P(H) ( f ( y ) , f ( y ′ )) ∈ P ( H ) . Since u : = g ( y ) ∈ f ( y ) u:=g(y) \in f(y) u := g ( y ) ∈ f ( y ) we get the existence of v ∈ f ( y ′ ) v \in f(y') v ∈ f ( y ′ ) such that ( u , v ) ∈ E ( H ) (u,v) \in E(H) ( u , v ) ∈ E ( H ) by the definition of P ( H ) P(H) P ( H ) . We then set g ( y ′ ) : = v g(y'):=v g ( y ′ ) := v . In case that ( y ′ , y ) ∈ E ( T ) (y',y) \in E(T) ( y ′ , y ) ∈ E ( T ) we proceed analogously. By construction, the mapping g g g is a homomorphism from T T T to H H H .
For easy reference, we combine the previous two lemmas into one.
Corollary 3.9. Let H H H and G G G be finite digraphs. Then A C H \mathrm{AC}_H AC H accepts G G G if and only if every orientation of a tree which homomorphically maps to G G G also maps to H H H .
For some digraphs H H H , to check whether there is a homomorphism from a given digraph G G G to H H H , it suffices to check for tree obstructions in G G G . This is formalised in the following definition.
Definition 3.10. A digraph H H H has tree duality if there exists a (not necessarily finite) set N \mathcal{N} N of orientations of finite trees such that for all digraphs G G G there is a homomorphism from G G G to H H H if and only if no digraph in N \mathcal{N} N homomorphically maps to G G G .
We refer to the set N \mathcal{N} N in Definition 3.10 as an obstruction set for CSP(H H H ). Note that no T ∈ N T \in\mathcal{N} T ∈ N homomorphically maps to H H H . The pair ( N , H ) (\mathcal{N},H) ( N , H ) is called a duality pair . We have already encountered such an obstruction set in Exercise 5, where H = T 2 H=T_2 H = T 2 , and N = { P ⃗ 2 } \mathcal{N}=\{\vec{P}_2\} N = { P 2 } . In other words, ( { P ⃗ 2 } , T 2 ) (\{\vec{P}_2\},T_2) ({ P 2 } , T 2 ) is a duality pair. Other duality pairs are ( { P ⃗ 3 } , T 3 ) (\{\vec{P}_3\},T_3) ({ P 3 } , T 3 ) (Exercise 6), and ( { Z 1 , Z 2 , … } , P ⃗ 2 ) (\{Z_1,Z_2,\ldots\},\vec{P}_2) ({ Z 1 , Z 2 , … } , P 2 ) (Exercise 23).
Theorem 3.11 is a surprising link between the completeness of the arc-consistency procedure, tree duality, and the powerset graph, and was discovered by Feder and Vardi [59] in the more general context of constraint satisfaction problems.
Theorem 3.11. Let H H H be a finite digraph. Then the following are equivalent.
H H H has tree duality;
P ( H ) P(H) P ( H ) homomorphically maps to H H H ;
AC solves CSP(H H H );
For every finite digraph G G G , if every orientation of a tree that homomorphically maps to G G G also homomorphically maps to H H H , then G G G homomorphically maps to H H H .
Proof. The equivalence 2 ⇔ 3 2 \Leftrightarrow3 2 ⇔ 3 has been shown in the previous section. We show 3 ⇒ 1 3 \Rightarrow1 3 ⇒ 1 , 1 ⇒ 4 1 \Rightarrow4 1 ⇒ 4 , and 4 ⇒ 2 4 \Rightarrow2 4 ⇒ 2 .
3 ⇒ 1 3 \Rightarrow1 3 ⇒ 1 : Suppose that AC solves CSP(H H H ). We have to show that H H H has tree duality. Let N \mathcal{N} N be the class of all orientations of finite trees that do not homomorphically map to H H H . If a finite digraph G G G does not homomorphically map to H H H , by assumption A C H \mathrm{AC}_{H} AC H rejects G G G , so by Lemma 3.7 there exists T ∈ N T \in\mathcal{N} T ∈ N that homomorphically maps to G G G . Hence, ( N , H ) (\mathcal{N},H) ( N , H ) is a duality pair.
1 ⇒ 4 1 \Rightarrow4 1 ⇒ 4 : If H H H has an obstruction set N \mathcal{N} N consisting of orientations of trees, and if G G G does not homomorphically map to H H H , there exists an orientation of a tree T ∈ N T \in\mathcal{N} T ∈ N that maps to G G G but not to H H H .
4 ⇒ 2 4 \Rightarrow2 4 ⇒ 2 : To show that P ( H ) P(H) P ( H ) homomorphically maps to H H H , it suffices to prove that every orientation T T T of a tree that homomorphically maps to P ( H ) P(H) P ( H ) also homomorphically maps to H H H . This is the content of Lemma 3.8. □ \square □
Exercise 53. Show that an orientation of a tree homomorphically maps to H H H if and only if it homomorphically maps to P ( H ) P(H) P ( H ) .
Exercise 54. Let H H H be a finite digraph. Then A C H \mathrm{AC}_{H} AC H rejects an orientation of a tree T T T if and only if there is no homomorphism from T T T to H H H (in other words, AC solves CSP(H H H ) if the input is restricted to orientations of trees).
Exercise 55. Show that there is a linear-time algorithm that tests whether a given orientation of a tree is a core.
Exercise 56. Show that the core of an orientation of a tree can be computed in polynomial time.
Totally Symmetric Polymorphisms
There is also a characterisation of the power of the arc-consistency procedure which is based on polymorphisms.
Definition 3.12. An operation f : D k → D f : D^k \to D f : D k → D is called totally symmetric if
f ( x 1 , … , x k ) = f ( y 1 , … , y k ) whenever { x 1 , … , x k } = { y 1 , … , y k } . f(x_1,\ldots,x_k) = f(y_1,\ldots,y_k) \text{ whenever } \{x_1,\ldots,x_k\} = \{y_1,\ldots,y_k\}. f ( x 1 , … , x k ) = f ( y 1 , … , y k ) whenever { x 1 , … , x k } = { y 1 , … , y k } .
Example 3.13. The operation ( x 1 , … , x k ) ↦ minimum ( x 1 , … , x k ) (x_1,\ldots,x_k) \mapsto\operatorname{minimum}(x_1,\ldots,x_k) ( x 1 , … , x k ) ↦ minimum ( x 1 , … , x k ) is totally symmetric. △
Example 3.14. The majority operation m : { 0 , 1 } 3 → { 0 , 1 } m : \{0,1\}^3 \to\{0,1\} m : { 0 , 1 } 3 → { 0 , 1 } given by
m ( x , x , y ) = m ( x , y , x ) = m ( y , x , x ) = x m(x,x,y) = m(x,y,x) = m(y,x,x) = x m ( x , x , y ) = m ( x , y , x ) = m ( y , x , x ) = x for all x ∈ { 0 , 1 } x \in\{0,1\} x ∈ { 0 , 1 } is
not totally symmetric because 0 = m ( 0 , 0 , 1 ) ≠ m ( 0 , 1 , 1 ) = 1 0 = m(0,0,1) \ne m(0,1,1) = 1 0 = m ( 0 , 0 , 1 ) = m ( 0 , 1 , 1 ) = 1 ;
is symmetric in the sense that m ( x 1 , x 2 , x 3 ) = m ( x α ( 1 ) , x α ( 2 ) , x α ( 3 ) ) m(x_1,x_2,x_3) = m(x_{\alpha(1)},x_{\alpha(2)},x_{\alpha(3)}) m ( x 1 , x 2 , x 3 ) = m ( x α ( 1 ) , x α ( 2 ) , x α ( 3 ) ) for every permutation α \alpha α of { 1 , 2 , 3 } \{1,2,3\} { 1 , 2 , 3 } . △
Theorem 3.15 (from [52]). Let H H H be a finite digraph. Then the following are equivalent.
P ( H ) P(H) P ( H ) homomorphically maps to H H H ;
H H H has totally symmetric polymorphisms of all arities;
H H H has a totally symmetric polymorphism of arity 2 ∣ V ( H ) ∣ 2|V(H)| 2∣ V ( H ) ∣ .
Proof. 1. ⇒ \Rightarrow ⇒ 2.: Suppose that g g g is a homomorphism from P ( H ) P(H) P ( H ) to H H H , and let k ∈ N k \in\mathbb{N} k ∈ N . Let f f f be defined by f ( x 1 , … , x k ) : = g ( { x 1 , … , x k } ) f(x_1,\ldots,x_k) := g(\{x_1,\ldots,x_k\}) f ( x 1 , … , x k ) := g ({ x 1 , … , x k }) . If ( x 1 , y 1 ) , … , ( x k , y k ) ∈ E ( H ) (x_1,y_1),\ldots,(x_k,y_k) \in E(H) ( x 1 , y 1 ) , … , ( x k , y k ) ∈ E ( H ) , then { x 1 , … , x k } \{x_1,\ldots,x_k\} { x 1 , … , x k } is adjacent to { y 1 , … , y k } \{y_1,\ldots,y_k\} { y 1 , … , y k } in P ( H ) P(H) P ( H ) , and hence ( f ( x 1 , … , x k ) , f ( y 1 , … , y k ) ) ∈ E ( H ) (f(x_1,\ldots,x_k),f(y_1,\ldots,y_k)) \in E(H) ( f ( x 1 , … , x k ) , f ( y 1 , … , y k )) ∈ E ( H ) . Therefore, f f f is a polymorphism of H H H , and it is clearly totally symmetric.
The implication 2. ⇒ \Rightarrow ⇒ 3. is trivial. To prove that 3. ⇒ \Rightarrow ⇒ 1., suppose that f f f is a totally symmetric polymorphism of arity 2 ∣ V ( H ) ∣ 2|V(H)| 2∣ V ( H ) ∣ . Let g : V ( P ( H ) ) → V ( H ) g : V(P(H)) \to V(H) g : V ( P ( H )) → V ( H ) be defined by
g ( { x 1 , … , x n } ) : = f ( x 1 , … , x n − 1 , x n , x n , … , x n ) g(\{x_1,\ldots,x_n\}) := f(x_1,\ldots,x_{n-1},x_n,x_n,\ldots,x_n) g ({ x 1 , … , x n }) := f ( x 1 , … , x n − 1 , x n , x n , … , x n )
which is well-defined because f f f is totally symmetric. Let ( U , W ) ∈ E ( P ( H ) ) (U,W) \in E(P(H)) ( U , W ) ∈ E ( P ( H )) , and let x 1 , … , x p x_1,\ldots,x_p x 1 , … , x p be an enumeration of the elements of U U U , and y 1 , … , y q y_1,\ldots,y_q y 1 , … , y q be an enumeration of the elements of W W W . The properties of P ( H ) P(H) P ( H ) imply that there are y 1 ′ , … , y p ′ ∈ W y'_1,\ldots,y'_p \in W y 1 ′ , … , y p ′ ∈ W and x 1 ′ , … , x q ′ ∈ U x'_1,\ldots,x'_q \in U x 1 ′ , … , x q ′ ∈ U such that ( x 1 , y 1 ′ ) , … , ( x p , y p ′ ) ∈ E ( H ) (x_1,y'_1),\ldots,(x_p,y'_p) \in E(H) ( x 1 , y 1 ′ ) , … , ( x p , y p ′ ) ∈ E ( H ) and ( x 1 ′ , y 1 ) , … , ( x q ′ , y q ) ∈ E ( H ) (x'_1,y_1),\ldots,(x'_q,y_q) \in E(H) ( x 1 ′ , y 1 ) , … , ( x q ′ , y q ) ∈ E ( H ) . Since f f f preserves E E E ,
g ( U ) = g ( { x 1 , … , x p } ) = f ( x 1 , … , x p , x 1 ′ , … , x q ′ , x 1 , … , x 1 ) g(U) = g(\{x_1,\ldots,x_p\}) = f(x_1,\ldots,x_p,x'_1,\ldots,x'_q,x_1,\ldots,x_1) g ( U ) = g ({ x 1 , … , x p }) = f ( x 1 , … , x p , x 1 ′ , … , x q ′ , x 1 , … , x 1 )
is adjacent to
g ( W ) = g ( { y 1 , … , y q } ) = f ( y 1 ′ , … , y p ′ , y 1 , … , y q , y 1 ′ , … , y 1 ′ ) . g(W) = g(\{y_1,\ldots,y_q\}) = f(y'_1,\ldots,y'_p,y_1,\ldots,y_q,y'_1,\ldots,y'_1). g ( W ) = g ({ y 1 , … , y q }) = f ( y 1 ′ , … , y p ′ , y 1 , … , y q , y 1 ′ , … , y 1 ′ ) .
:::
Given Theorem 3.15, it is natural to ask whether there exists a k k k so that the existence of a totally symmetric polymorphism of arity k k k implies totally symmetric polymorphisms of all arities. The following example shows that this is not the case.
Example 3.16. For every prime p ≥ 3 p \ge3 p ≥ 3 , the digraph C ⃗ p \vec{C}_p C p clearly does not have a totally symmetric polymorphism of arity p p p : if f : { 0 , … , p − 1 } p → { 0 , … , p − 1 } f:\{0,\ldots,p-1\}^{p}\to\{0,\ldots,p-1\} f : { 0 , … , p − 1 } p → { 0 , … , p − 1 } is a totally symmetric operation, then f ( 0 , 1 , … , p − 1 ) = f ( 1 , … , p − 1 , 0 ) f(0,1,\ldots,p-1)=f(1,\ldots,p-1,0) f ( 0 , 1 , … , p − 1 ) = f ( 1 , … , p − 1 , 0 ) , and hence f f f does not preserve the edge relation. On the other hand, if n < p n<p n < p then C ⃗ p \vec{C}_p C p has the totally symmetric polymorphism
f ( x 1 , … , x n ) : = ∣ S ∣ − 1 ∑ x ∈ S x ( m o d p ) f(x_1,\ldots,x_n):=|S|^{-1}\sum_{x\in S}x\pmod p f ( x 1 , … , x n ) := ∣ S ∣ − 1 x ∈ S ∑ x ( mod p ) where S = { x 1 , … , x n } S=\{x_1,\ldots,x_n\} S = { x 1 , … , x n } . (Note that ∣ S ∣ < p |S|<p ∣ S ∣ < p and hence has a multiplicative inverse.) The operation is clearly totally symmetric; the verification that it preserves the edge relation of C ⃗ p \vec{C}_p C p is Exercise 60.
Semilattice Polymorphisms
Some digraphs have a single binary polymorphism that generates operations satisfying the conditions in the previous theorem. A binary operation f : D 2 → D f:D^2\to D f : D 2 → D is called commutative if it satisfies
f ( x , y ) = f ( y , x ) for all x , y ∈ D . f(x,y)=f(y,x)\text{ for all }x,y\in D. f ( x , y ) = f ( y , x ) for all x , y ∈ D .
It is called associative if it satisfies
f ( x , f ( y , z ) ) = f ( f ( x , y ) , z ) for all x , y , z ∈ D . f(x,f(y,z))=f(f(x,y),z)\text{ for all }x,y,z\in D. f ( x , f ( y , z )) = f ( f ( x , y ) , z ) for all x , y , z ∈ D .
Definition 3.17. A binary operation is called a semilattice operation if it is associative, commutative, and idempotent.
Examples of semilattice operations are functions from D 2 → D D^2\to D D 2 → D defined as ( x , y ) ↦ min ( x , y ) (x,y)\mapsto\min(x,y) ( x , y ) ↦ min ( x , y ) ; here the minimum is taken with respect to any fixed linear order of D D D .
Theorem 3.18. Let H H H be a finite digraph. Then P ( H ) → H P(H)\to H P ( H ) → H if and only if H H H is homomorphically equivalent to a digraph with a semilattice polymorphism.
Proof. Suppose first that P ( H ) → H P(H)\to H P ( H ) → H . Thus, H H H and P ( H ) P(H) P ( H ) are homomorphically equivalent, and it suffices to show that P ( H ) P(H) P ( H ) has a semilattice polymorphism. The mapping ( X , Y ) ↦ X ∪ Y (X,Y)\mapsto X\cup Y ( X , Y ) ↦ X ∪ Y is clearly a semilattice operation; we claim that it preserves the edges of P ( H ) P(H) P ( H ) . Let ( U , V ) (U,V) ( U , V ) and ( A , B ) (A,B) ( A , B ) be edges in P ( H ) P(H) P ( H ) . Then for every u ∈ U u\in U u ∈ U there is a v ∈ V v\in V v ∈ V such that ( u , v ) ∈ E ( H ) (u,v)\in E(H) ( u , v ) ∈ E ( H ) , and for every u ∈ A u\in A u ∈ A there is a v ∈ B v\in B v ∈ B such that ( u , v ) ∈ E ( H ) (u,v)\in E(H) ( u , v ) ∈ E ( H ) . Hence, for every u ∈ U ∪ A u\in U\cup A u ∈ U ∪ A there is a v ∈ V ∪ B v\in V\cup B v ∈ V ∪ B such that ( u , v ) ∈ E ( H ) (u,v)\in E(H) ( u , v ) ∈ E ( H ) . Similarly, we can verify that for every v ∈ V ∪ B v\in V\cup B v ∈ V ∪ B there is a u ∈ U ∪ A u\in U\cup A u ∈ U ∪ A such that ( u , v ) ∈ E ( H ) (u,v)\in E(H) ( u , v ) ∈ E ( H ) . This proves the claim.
For the converse, suppose that H H H is homomorphically equivalent to a digraph G G G with a semilattice polymorphism f f f . Let h h h be the homomorphism from H H H to G G G . The operation ( x 1 , … , x n ) ↦ f ( x 1 , f ( x 2 , f ( … , f ( x n − 1 , x n ) … ) ) ) (x_1,\ldots,x_n)\mapsto f(x_1,f(x_2,f(\ldots,f(x_{n-1},x_n)\ldots))) ( x 1 , … , x n ) ↦ f ( x 1 , f ( x 2 , f ( … , f ( x n − 1 , x n ) … ))) is a totally symmetric polymorphism of G G G . Then Theorem 3.15 implies that P ( G ) → G P(G)\to G P ( G ) → G . The map S ↦ { h ( u ) ∣ u ∈ S } S\mapsto\{h(u)\mid u\in S\} S ↦ { h ( u ) ∣ u ∈ S } is a homomorphism from P ( H ) P(H) P ( H ) to P ( G ) P(G) P ( G ) . Therefore, P ( H ) → P ( G ) → G → H P(H)\to P(G)\to G\to H P ( H ) → P ( G ) → G → H , as desired.
By verifying the existence of semilattice polymorphisms for a concrete class of digraphs, we obtain the following consequence.
Corollary 3.19. AC solves CSP(H H H ) if H H H is an orientation of a path.
Proof. Suppose that 1 , … , n 1,\ldots,n 1 , … , n are the vertices of H H H such that either ( i , i + 1 ) (i,i+1) ( i , i + 1 ) or ( i + 1 , i ) (i+1,i) ( i + 1 , i ) is an arc in E ( H ) E(H) E ( H ) for all i < n i<n i < n . It is straightforward to verify that the mapping ( x , y ) ↦ min ( x , y ) (x,y) \mapsto\min(x,y) ( x , y ) ↦ min ( x , y ) is a polymorphism of H H H . The statement now follows from Theorem 3.18 .
We want to remark that there are orientations of trees H H H with an NP-complete H H H -colouring problem (the smallest ones have 20 vertices [25]; see Figure 5 ). It can be shown (using a condition that will be presented in § 15.3 ) that this digraph does not have tree-duality, without any complexity-theoretic assumptions.
Figure 5. One of the smallest orientations of a tree H H H such that CSP(H H H ) is NP-complete (assuming P ≠ \ne = NP; all orientations of trees with fewer vertices can be solved by path-consistency [25]).
Exercise 57. Does the following digraph have tree duality?
( { 0 , 1 , 2 , 3 , 4 , 5 } ; { ( 0 , 1 ) , ( 1 , 2 ) , ( 0 , 2 ) , ( 3 , 2 ) , ( 3 , 4 ) , ( 4 , 5 ) , ( 3 , 5 ) , ( 0 , 5 ) } ) (\{0,1,2,3,4,5\};\{(0,1),(1,2),(0,2),(3,2),(3,4),(4,5),(3,5),(0,5)\}) ({ 0 , 1 , 2 , 3 , 4 , 5 } ; {( 0 , 1 ) , ( 1 , 2 ) , ( 0 , 2 ) , ( 3 , 2 ) , ( 3 , 4 ) , ( 4 , 5 ) , ( 3 , 5 ) , ( 0 , 5 )})
Exercise 58. Show that AC solves CSP(T n T_n T n ), for every n ≥ 1 n \ge1 n ≥ 1 .
Exercise 59. Does Exercise 21 remain true for directed graphs?
Exercise 60. Prove the final statement in Example 3.16.
The Path-consistency Procedure
The path-consistency procedure is a well-studied generalization of the arc-consistency procedure from artificial intelligence. The path-consistency procedure is also known as the pair-consistency check algorithm in the graph theory literature.
Many CSPs that cannot be solved by the arc-consistency procedure can still be solved in polynomial time by the path-consistency procedure. The simplest examples are H = K 2 H=K_2 H = K 2 (see Exercise 21) and H = C ⃗ 3 H=\vec{C}_3 H = C 3 (see Exercise 22). The idea is to maintain a list of pairs from V ( H ) 2 V(H)^2 V ( H ) 2 for each pair of elements from V ( G ) V(G) V ( G ) (similarly to the arc-consistency procedure, where we maintained a list of vertices from V ( H ) V(H) V ( H ) for each vertex in V ( G ) V(G) V ( G ) ). We successively remove pairs from these lists when the pairs can be excluded locally. Some authors maintain a list only for each pair of distinct vertices of V ( G ) V(G) V ( G ) , and they refer to our (stronger) variant as the strong path-consistency procedure. Our procedure (where vertices need not be distinct) has the advantage that it is at least as strong as the arc-consistency procedure, because the lists L ( x , x ) L(x,x) L ( x , x ) and the rules of the path-consistency procedure for x = y x=y x = y simulate the rules of the arc-consistency procedure.
PCH(G)
Input: a finite digraph G.
Data structure: for all x, y ∈ V(G) a list L(x, y) of elements of V(H)^2
Initialise L(x, y) := V(H)^2 for all x, y ∈ V(G).
For each (x, y) ∈ V(G)^2
If (x, y) ∈ E(G) then
L(x, y) := L(x, y) ∩ E(H)
L(y, x) := L(y, x) ∩ {(b, a) | (a, b) ∈ E(H)}
If x = y then L(x, y) := L(x, y) ∩ {(u, u) | u ∈ V(H)}.
Do
For all vertices x, y, z ∈ V(G):
For each (u, w) ∈ L(x, z):
If there is no v ∈ V(H) such that (u, v) ∈ L(x, y) and (v, w) ∈ L(y, z) then
Remove (u, w) from L(x, z)
If L(x, z) is empty then reject
Loop until no list changesFigure 6. The (strong) path-consistency procedure for CSP(H H H ).
In Subsection 4.2 we will see many examples of digraphs H H H where the path-consistency procedure solves the H H H -colouring problem, but the arc-consistency procedure does not. The greater power of the path-consistency procedure comes at the price of a bigger worst-case running time: while the arc-consistency procedure has linear-time implementations, the best known implementations of the path-consistency procedure require cubic time in the size of the input (see Exercise 61).
Remark 4.1. Similarly as for AC, the path-consistency procedure is polynomial even if H H H is part of the input, in which case we refer to the procedure with PC.
The k k k -consistency procedure
The path-consistency procedure can be generalised further to the k k k -consistency procedure. In fact, arc- and path-consistency procedure are just a special case of the k k k -consistency for k = 2 k=2 k = 2 and k = 3 k=3 k = 3 , respectively. In other words, for digraphs H H H the path-consistency procedure is the 3-consistency procedure and the arc-consistency procedure is the 2-consistency procedure.
The idea of k k k -consistency is to maintain sets of ( k − 1 ) (k-1) ( k − 1 ) -tuples from V ( H ) k − 1 V(H)^{k-1} V ( H ) k − 1 for each ( k − 1 ) (k-1) ( k − 1 ) -tuple from V ( G ) k − 1 V(G)^{k-1} V ( G ) k − 1 , and to successively remove tuples by local inference. If the empty set is derived, the instance is rejected; otherwise, if eventually no more tuples can be removed from the sets and the empty list has not been derived, the algorithm accepts. We say that CSP(H H H ) is solved by the k k k -consistency procedure if it accepts an input graph G G G if and only if G → H G \to H G → H . It is straightforward to generalise also the details of the path-consistency procedure.
For fixed H H H and fixed k k k , the running time of the k k k -consistency procedure is still polynomial in the size of G G G . But the dependence of the running time on k k k is clearly exponential.
We would like to point out that path-consistency alias 3-consistency is of particular theoretical importance, due to the following result.
Theorem 4.2 (Barto and Kozik [11]). If CSP(H H H ) can be solved by k k k -consistency for some k ≥ 3 k \ge3 k ≥ 3 , then CSP(H H H ) can also be solved by 3-consistency.
More on the k k k -consistency procedure can be found in § 16 .
Exercise 61. Show that the path-consistency procedure for CSP(H H H ) can (for fixed H H H ) be implemented such that the worst-case running time is cubic in the size of the input digraph. (Hint: use a worklist as in AC-3.)
Exercise 62. Show that if the path-consistency procedure solves CSP(H 1 H_1 H 1 ) and the path-consistency procedure solves CSP(H 2 H_2 H 2 ), then the path-consistency procedure solves CSP(H 1 ⊎ H 2 H_1 \mathbin{\uplus} H_2 H 1 ⊎ H 2 ).
Majority Polymorphisms
In this section, we present a powerful criterion that shows that for certain digraphs H H H the path-consistency procedure solves the H H H -colouring problem. Again, this condition was first discovered in more general form by Feder and Vardi [60]; it subsumes many criteria that were studied in artificial intelligence and in graph theory before.
Definition 4.3. Let D D D be a set. An operation f : D 3 → D f:D^3 \to D f : D 3 → D is called a majority operation if f f f satisfies the following equations, for all x , y ∈ D x,y \in D x , y ∈ D :
f ( x , x , y ) = f ( x , y , x ) = f ( y , x , x ) = x f(x,x,y) = f(x,y,x) = f(y,x,x) = x f ( x , x , y ) = f ( x , y , x ) = f ( y , x , x ) = x
Example 4.4. As an example, let D D D be { 1 , … , n } \{1,\ldots,n\} { 1 , … , n } , and consider the ternary median operation, which is defined as follows. For x , y ∈ D x,y \in D x , y ∈ D , we define
median ( x , x , y ) = median ( x , y , x ) = median ( y , x , x ) ≔ x . \operatorname{median}(x,x,y) = \operatorname{median}(x,y,x) = \operatorname{median}(y,x,x) \coloneqq x. median ( x , x , y ) = median ( x , y , x ) = median ( y , x , x ) : = x . If x , y , z x,y,z x , y , z are pairwise distinct elements of D D D , suppose that { x , y , z } = { a , b , c } \{x,y,z\} = \{a,b,c\} { x , y , z } = { a , b , c } , where a < b < c a < b < c a < b < c . Then median ( x , y , z ) \operatorname{median}(x,y,z) median ( x , y , z ) is defined to be b b b . Note that
median ( x , y , z ) = min ( max ( x , y ) , max ( x , z ) , max ( y , z ) ) . \operatorname{median}(x,y,z) = \min(\max(x,y),\max(x,z),\max(y,z)). median ( x , y , z ) = min ( max ( x , y ) , max ( x , z ) , max ( y , z )) . △ \triangle △
If a digraph H H H has a polymorphism f f f that is a majority operation, then f f f is called a majority polymorphism of H H H .
Example 4.5. Let H H H be the transitive tournament on n n n vertices, T n T_n T n . Suppose the vertices of T n T_n T n are the first natural numbers, { 1 , … , n } \{1,\ldots,n\} { 1 , … , n } , and ( u , v ) ∈ E ( T n ) (u,v) \in E(T_n) ( u , v ) ∈ E ( T n ) if and only if u < v u < v u < v . Then the median operation is a polymorphism of T n T_n T n , because if u 1 < v 1 u_1 < v_1 u 1 < v 1 , u 2 < v 2 u_2 < v_2 u 2 < v 2 , and u 3 < v 3 u_3 < v_3 u 3 < v 3 , then clearly median ( u 1 , u 2 , u 3 ) < median ( v 1 , v 2 , v 3 ) \operatorname{median}(u_1,u_2,u_3) < \operatorname{median}(v_1,v_2,v_3) median ( u 1 , u 2 , u 3 ) < median ( v 1 , v 2 , v 3 ) .
△ \triangle △
Theorem 4.6 (of [60]). Let H H H be a finite digraph. If H H H has a majority polymorphism, then the H H H -colouring problem can be solved in polynomial time (by the path-consistency procedure).
For the proof of Theorem 4.6 we need the following lemma.
Lemma 4.7. Let G G G and H H H be finite digraphs. Let f f f be a polymorphism of H H H of arity k k k and let L : = L ( x , z ) L := L(x,z) L := L ( x , z ) be the final list computed by the path-consistency procedure for x , z ∈ V ( G ) x,z \in V(G) x , z ∈ V ( G ) . Then f f f preserves L L L , i.e., if ( u 1 , w 1 ) , … , ( u k , w k ) ∈ L (u_1,w_1),\ldots,(u_k,w_k) \in L ( u 1 , w 1 ) , … , ( u k , w k ) ∈ L , then ( f ( u 1 , … , u k ) , f ( w 1 , … , w k ) ) ∈ L (f(u_1,\ldots,u_k),f(w_1,\ldots,w_k)) \in L ( f ( u 1 , … , u k ) , f ( w 1 , … , w k )) ∈ L .
Proof. Let ( u 1 , w 1 ) , … , ( u k , w k ) ∈ L (u_1,w_1),\ldots,(u_k,w_k) \in L ( u 1 , w 1 ) , … , ( u k , w k ) ∈ L . We prove by induction over the execution of P C H \mathrm{PC}_H PC H on G G G that at all stages of P C H \mathrm{PC}_H PC H (i.e., after each synchronous pruning round) the pair ( u , w ) : = ( f ( u 1 , … , u k ) , f ( w 1 , … , w k ) ) (u,w) := (f(u_1,\ldots,u_k),f(w_1,\ldots,w_k)) ( u , w ) := ( f ( u 1 , … , u k ) , f ( w 1 , … , w k )) is contained in L L L . Initially, this is true because f f f is a polymorphism of H H H . For the inductive step, let y ∈ V ( G ) y \in V(G) y ∈ V ( G ) . By the definition of the procedure, for each i ∈ { 1 , … , k } i \in\{1,\ldots,k\} i ∈ { 1 , … , k } there exists v i v_i v i such that ( u i , v i ) ∈ L ( x , y ) (u_i,v_i) \in L(x,y) ( u i , v i ) ∈ L ( x , y ) and ( v i , w i ) ∈ L ( y , z ) (v_i,w_i) \in L(y,z) ( v i , w i ) ∈ L ( y , z ) . By the inductive assumption, ( f ( u 1 , … , u k ) , f ( v 1 , … , v k ) ) ∈ L ( x , y ) (f(u_1,\ldots,u_k),f(v_1,\ldots,v_k)) \in L(x,y) ( f ( u 1 , … , u k ) , f ( v 1 , … , v k )) ∈ L ( x , y ) and ( f ( v 1 , … , v k ) , f ( w 1 , … , w k ) ) ∈ L ( y , z ) (f(v_1,\ldots,v_k),f(w_1,\ldots,w_k)) \in L(y,z) ( f ( v 1 , … , v k ) , f ( w 1 , … , w k )) ∈ L ( y , z ) . Hence, ( f ( u 1 , … , u k ) , f ( w 1 , … , w k ) ) (f(u_1,\ldots,u_k),f(w_1,\ldots,w_k)) ( f ( u 1 , … , u k ) , f ( w 1 , … , w k )) will not be removed in the next step of the algorithm. □
Proof of Theorem 4.6. Let f : V ( H ) 3 → V ( H ) f : V(H)^3 \to V(H) f : V ( H ) 3 → V ( H ) be a majority polymorphism of H H H . Clearly, if the path-consistency procedure derives the empty list for some pair ( x , z ) (x,z) ( x , z ) from V ( G ) 2 V(G)^2 V ( G ) 2 , then there is no homomorphism from G G G to H H H .
Now suppose that after running the path-consistency procedure on G G G for all pairs ( x , z ) (x,z) ( x , z ) from V ( G ) 2 V(G)^2 V ( G ) 2 the list L ( x , z ) L(x,z) L ( x , z ) is non-empty. We have to show that there exists a homomorphism from G G G to H H H . A function h h h from an induced subgraph G ′ G' G ′ of G G G to H H H is said to preserve the lists if ( h ( x ) , h ( z ) ) ∈ L ( x , z ) (h(x),h(z)) \in L(x,z) ( h ( x ) , h ( z )) ∈ L ( x , z ) for all x , z ∈ V ( G ′ ) x,z \in V(G') x , z ∈ V ( G ′ ) . The proof shows by induction on i i i that every homomorphism from a subgraph of G G G with i i i vertices that preserves the lists can be extended to any other vertex in G G G such that the resulting mapping is a homomorphism to H H H that again preserves the lists.
For the base case of the induction, observe that for all vertices x , z ∈ V ( G ) x,z \in V(G) x , z ∈ V ( G ) every mapping h h h from { x , z } \{x,z\} { x , z } to V ( H ) V(H) V ( H ) such that ( h ( x ) , h ( z ) ) ∈ L ( x , z ) (h(x),h(z)) \in L(x,z) ( h ( x ) , h ( z )) ∈ L ( x , z ) can be extended to every y ∈ V ( G ) y \in V(G) y ∈ V ( G ) such that ( h ( x ) , h ( y ) ) ∈ L ( x , y ) (h(x),h(y)) \in L(x,y) ( h ( x ) , h ( y )) ∈ L ( x , y ) and ( h ( y ) , h ( z ) ) ∈ L ( y , z ) (h(y),h(z)) \in L(y,z) ( h ( y ) , h ( z )) ∈ L ( y , z ) (and hence preserves the lists), because otherwise the path-consistency procedure would have removed ( h ( x ) , h ( z ) ) (h(x),h(z)) ( h ( x ) , h ( z )) from L ( x , z ) L(x,z) L ( x , z ) .
For the inductive step, let h ′ h' h ′ be any homomorphism from a subgraph G ′ G' G ′ of G G G on i ≥ 3 i \ge3 i ≥ 3 vertices to H H H that preserves the lists, and let x x x be any vertex of G G G not in G ′ G' G ′ . Let x 1 , x 2 x_1,x_2 x 1 , x 2 , and x 3 x_3 x 3 be some vertices of G ′ G' G ′ , and h j ′ h'_j h j ′ be the restriction of h ′ h' h ′ to V ( G ′ ) ∖ { x j } V(G') \setminus\{x_j\} V ( G ′ ) ∖ { x j } , for j ∈ { 1 , 2 , 3 } j \in\{1,2,3\} j ∈ { 1 , 2 , 3 } . By inductive assumption, h j ′ h'_j h j ′ can be extended to x x x such that the resulting mapping h j h_j h j is a homomorphism to H H H that preserves the lists. We claim that the extension h h h of h ′ h' h ′ that maps x x x to f ( h 1 ( x ) , h 2 ( x ) , h 3 ( x ) ) f(h_1(x),h_2(x),h_3(x)) f ( h 1 ( x ) , h 2 ( x ) , h 3 ( x )) is a homomorphism to H H H that preserves the lists.
For all y ∈ V ( G ′ ) y \in V(G') y ∈ V ( G ′ ) , we have to show that ( h ( x ) , h ( y ) ) ∈ L ( x , y ) (h(x),h(y)) \in L(x,y) ( h ( x ) , h ( y )) ∈ L ( x , y ) (and that ( h ( y ) , h ( x ) ) ∈ L ( y , x ) (h(y),h(x)) \in L(y,x) ( h ( y ) , h ( x )) ∈ L ( y , x ) , which can be shown analogously). If y ∉ { x 1 , x 2 , x 3 } y \notin\{x_1,x_2,x_3\} y ∈ / { x 1 , x 2 , x 3 } , then h ( y ) = h ′ ( y ) = f ( h 1 ′ ( y ) , h 2 ′ ( y ) , h 3 ′ ( y ) ) h(y) = h'(y) = f(h'_1(y),h'_2(y),h'_3(y)) h ( y ) = h ′ ( y ) = f ( h 1 ′ ( y ) , h 2 ′ ( y ) , h 3 ′ ( y )) , by the properties of f f f . Since ( h i ( x ) , h i ( y ) ) ∈ L ( x , y ) (h_i(x),h_i(y)) \in L(x,y) ( h i ( x ) , h i ( y )) ∈ L ( x , y ) for all i ∈ { 1 , 2 , 3 } i \in\{1,2,3\} i ∈ { 1 , 2 , 3 } , and since f f f preserves L ( x , y ) L(x,y) L ( x , y ) by Lemma 4.7, we have ( h ( x ) , h ( y ) ) ∈ L ( x , y ) (h(x),h(y)) \in L(x,y) ( h ( x ) , h ( y )) ∈ L ( x , y ) , and are done in this case.
Clearly, y y y can be equal to at most one of { x 1 , x 2 , x 3 } \{x_1,x_2,x_3\} { x 1 , x 2 , x 3 } . Suppose that y = x 1 y = x_1 y = x 1 (the other two cases are analogous). Since ( h 1 ( x ) , h 1 ( x 2 ) ) ∈ L ( x , x 2 ) (h_1(x),h_1(x_2)) \in L(x,x_2) ( h 1 ( x ) , h 1 ( x 2 )) ∈ L ( x , x 2 ) , there exists v ∈ V ( H ) v \in V(H) v ∈ V ( H ) such that ( h 1 ( x ) , v ) ∈ L ( x , x 1 ) (h_1(x),v) \in L(x,x_1) ( h 1 ( x ) , v ) ∈ L ( x , x 1 ) and ( v , h 1 ( x 2 ) ) ∈ L ( x 1 , x 2 ) (v,h_1(x_2)) \in L(x_1,x_2) ( v , h 1 ( x 2 )) ∈ L ( x 1 , x 2 ) (otherwise, the path-consistency procedure would have removed ( h 1 ( x ) , h 1 ( x 2 ) ) (h_1(x),h_1(x_2)) ( h 1 ( x ) , h 1 ( x 2 )) from L ( x , x 2 ) L(x,x_2) L ( x , x 2 ) ). By the properties of f f f , we have
h ( y ) = h ′ ( y ) = f ( v , h 1 ′ ( y ) , h 1 ′ ( y ) ) = f ( v , h 2 ( y ) , h 3 ( y ) ) . h(y) = h'(y) = f(v,h'_1(y),h'_1(y)) = f(v,h_2(y),h_3(y)). h ( y ) = h ′ ( y ) = f ( v , h 1 ′ ( y ) , h 1 ′ ( y )) = f ( v , h 2 ( y ) , h 3 ( y )) .
Since ( h 1 ( x ) , v ) , ( h 2 ( x ) , h 2 ( y ) ) , ( h 3 ( x ) , h 3 ( y ) ) ∈ L ( x , y ) (h_1(x),v),(h_2(x),h_2(y)),(h_3(x),h_3(y)) \in L(x,y) ( h 1 ( x ) , v ) , ( h 2 ( x ) , h 2 ( y )) , ( h 3 ( x ) , h 3 ( y )) ∈ L ( x , y ) , Lemma 4.7 implies that
( h ( x ) , h ( y ) ) = ( f ( h 1 ( x ) , h 2 ( x ) , h 3 ( x ) ) , f ( v , h 2 ( y ) , h 3 ( y ) ) ) ∈ L ( x , y ) (h(x),h(y)) = (f(h_1(x),h_2(x),h_3(x)),f(v,h_2(y),h_3(y))) \in L(x,y) ( h ( x ) , h ( y )) = ( f ( h 1 ( x ) , h 2 ( x ) , h 3 ( x )) , f ( v , h 2 ( y ) , h 3 ( y ))) ∈ L ( x , y )
and we are done. We conclude that G G G has a homomorphism to H H H .
Corollary 4.8. The path-consistency procedure solves the H H H -colouring problem for H = T n H = T_n H = T n .
Another class of examples of digraphs having a majority polymorphism are unbalanced cycles , i.e., orientations of C n C_n C n that do not homomorphically map to a directed path [58]. We only prove a weaker result here.
Proposition 4.9. Directed cycles have a majority polymorphism.
Proof. Let C ⃗ n \vec{C}_n C n be a directed cycle. Let f f f be the ternary operation on the vertices of C ⃗ n \vec{C}_n C n that maps u , v , w u,v,w u , v , w to u u u if u , v , w u,v,w u , v , w are pairwise distinct, and otherwise acts as a majority operation. We claim that f f f is a polymorphism of C ⃗ n \vec{C}_n C n . Let ( u , u ′ ) , ( v , v ′ ) , ( w , w ′ ) ∈ E ( C ⃗ n ) (u,u'),(v,v'),(w,w') \in E(\vec{C}_n) ( u , u ′ ) , ( v , v ′ ) , ( w , w ′ ) ∈ E ( C n ) be arcs. If u , v , w u,v,w u , v , w are all distinct, then u ′ , v ′ , w ′ u',v',w' u ′ , v ′ , w ′ are clearly all distinct as well, and hence ( f ( u , v , w ) , f ( u ′ , v ′ , w ′ ) ) = ( u , u ′ ) ∈ E ( C ⃗ n ) (f(u,v,w),f(u',v',w'))=(u,u') \in E(\vec{C}_n) ( f ( u , v , w ) , f ( u ′ , v ′ , w ′ )) = ( u , u ′ ) ∈ E ( C n ) . Otherwise, if two elements of u , v , w u,v,w u , v , w are equal, say u = v u=v u = v , then u ′ u' u ′ and v ′ v' v ′ must be equal as well, and hence ( f ( u , v , w ) , f ( u ′ , v ′ , w ′ ) ) = ( u , u ′ ) ∈ E ( C ⃗ n ) (f(u,v,w),f(u',v',w'))=(u,u') \in E(\vec{C}_n) ( f ( u , v , w ) , f ( u ′ , v ′ , w ′ )) = ( u , u ′ ) ∈ E ( C n ) .
Exercise 63. Determine for which n ≥ 1 n \ge1 n ≥ 1 the operation f f f from Proposition 4.9 preserves T n T_n T n .
Exercise 64. Show that the digraph ( Z ; { ( x , y ) ∣ x − y = 1 } ) (\mathbb{Z};\{(x,y)\mid x-y=1\}) ( Z ; {( x , y ) ∣ x − y = 1 }) has a majority polymorphism and that its CSP can be solved in polynomial time.
Exercise 65. Show that every orientation of a path has a majority polymorphism.
Exercise 66. Show that C 4 C_4 C 4 has a majority polymorphism but C 6 C_6 C 6 does not.
Exercise 67. A quasi majority operation is an operation from V 3 V^3 V 3 to V V V satisfying
f ( x , x , y ) = f ( x , y , x ) = f ( y , x , x ) = f ( x , x , x ) f(x,x,y)=f(x,y,x)=f(y,x,x)=f(x,x,x) f ( x , x , y ) = f ( x , y , x ) = f ( y , x , x ) = f ( x , x , x )
for all x , y ∈ V x,y \in V x , y ∈ V .
Show that every digraph with a quasi majority polymorphism is homomorphically equivalent to a digraph with a majority polymorphism.
Use Theorem 2.6 to show that a finite undirected graph H H H has an H H H -colouring problem that can be solved in polynomial time if H H H has a quasi majority polymorphism, and is NP-complete otherwise.
Exercise 68. There is only one unbalanced cycle H H H on four vertices that is a core and not the directed cycle (we have seen this digraph already in Exercise 52). Show that for this digraph H H H the H H H -colouring problem can be solved by the path-consistency procedure.
Exercise 69. Determine for which n ≥ 1 n \ge1 n ≥ 1 there is a linear order on the vertices of C ⃗ n \vec{C}_n C n such that median with respect to this linear order is a polymorphism of C ⃗ n \vec{C}_n C n .
Exercise 70. Modify the path-consistency procedure such that it can deal with instances of the precoloured H H H -colouring problem. Show that if H H H has a majority polymorphism, then the modified path-consistency procedure solves the precoloured H H H -colouring problem.
Exercise 71. Modify the path-consistency procedure such that it can deal with instances of the list H H H -colouring problem. Show that if H H H has a conservative majority polymorphism, then the modified path-consistency procedure solves the list H H H -colouring problem.
Exercise 72. An interval graph H H H is an (undirected) graph H = ( V ; E ) H=(V;E) H = ( V ; E ) such that there is an interval I x I_x I x of the real numbers for each x ∈ V x\in V x ∈ V , and ( x , y ) ∈ E (x,y)\in E ( x , y ) ∈ E if and only if I x I_x I x and I y I_y I y have a non-empty intersection. Note that with this definition interval graphs are necessarily reflexive , i.e., ( x , x ) ∈ E (x,x)\in E ( x , x ) ∈ E . Show that the precoloured H H H -colouring problem for interval graphs H H H can be solved in polynomial time.
Hint: use the modified path-consistency procedure in Exercise 70.
Exercise 73. Show that ( Z ; ≠ ) (\mathbb{Z};\ne) ( Z ; = ) does not have a majority polymorphism, but a quasi majority polymorphism and that CSP ( Z ; ≠ ) \operatorname{CSP}(\mathbb{Z};\ne) CSP ( Z ; = ) can be solved in polynomial time.
Exercise 74. Show that if H H H is a (reflexive) interval graph, then H H H has a conservative majority polymorphism.
Exercise 75. Show that the digraph H = ( Z ; { ( x , y ) ∣ x − y ∈ { 1 , 3 } } ) H=(\mathbb{Z};\{(x,y)\mid x-y\in\{1,3\}\}) H = ( Z ; {( x , y ) ∣ x − y ∈ { 1 , 3 }}) has a majority polymorphism.
Exercise 76. For any set V V V , the dual discriminator operation is the operation d : V 3 → V d:V^3\to V d : V 3 → V defined by d ( x , y , z ) = y d(x,y,z)=y d ( x , y , z ) = y if y = z y=z y = z , and x x x otherwise. Note that d d d is a majority operation. Prove that E ⊆ V 2 E\subseteq V^2 E ⊆ V 2 is preserved by d d d if and only if there are A , B ⊆ V A,B\subseteq V A , B ⊆ V such that at least one of the following applies:
E = A × B E=A\times B E = A × B ,
there exists a bijection α : A → B \alpha:A\to B α : A → B such that E = { ( a , α ( a ) ) ∣ a ∈ A } E=\{(a,\alpha(a))\mid a\in A\} E = {( a , α ( a )) ∣ a ∈ A } ,
there are a ∈ A a\in A a ∈ A , and b ∈ B b\in B b ∈ B such that E = { ( a , b ′ ) ∣ b ′ ∈ B } ∪ { ( a ′ , b ) ∣ a ′ ∈ A } E=\{(a,b')\mid b'\in B\}\cup\{(a',b)\mid a'\in A\} E = {( a , b ′ ) ∣ b ′ ∈ B } ∪ {( a ′ , b ) ∣ a ′ ∈ A } .
Exercise 77. Show that every unbalanced orientation of a cycle has a majority polymorphism.
Exercise 78. Give a polynomial time algorithm for the H H H -colouring problem for the digraph H H H from Exercise 75.
Exercise 79. Consider the digraph C 2 + + C_2^{++} C 2 ++ depicted in Figure 7 (a so-called *semicomplete digraph). Show the following statements.3
Figure 7. The graph C 2 + + C_2^{++} C 2 ++ from Exercise 79.
CSP(C 2 + + C_2^{++} C 2 ++ ) cannot be solved by the arc-consistency procedure.
A finite digraph G G G homomorphically maps to C 2 + + C_2^{++} C 2 ++ if and only if no digraph of the following form maps to G G G : start with any orientation of an odd cycle, and if ( u , v ) (u,v) ( u , v ) , ( w , v ) (w,v) ( w , v ) are edges on the cycle, append to v v v an outgoing directed path with two edges.
C 2 + + C_2^{++} C 2 ++ does not have a majority polymorphism.
CSP(C 2 + + C_2^{++} C 2 ++ ) can be solved by the path-consistency procedure.
Exercise 80. Let H H H be a reflexive graph. Show that H H H has a conservative majority polymorphism if and only if H H H is an interval graph (see Exercise 72).
Exercise 81. Let H H H be an irreflexive graph. Then H H H has a conservative majority polymorphism if and only if H H H is bipartite and its complement is a circular arc graph , i.e., H H H can be represented by arcs on a circle so that two vertices are adjacent if and only if the corresponding arcs intersect.
Testing for Majority Polymorphisms
In this section we show that the question whether a given digraph has a majority polymorphism can be decided in polynomial time. The method that we present is sometimes referred to as a self-reduction and can be adapted for several other polymorphism conditions and several other algorithms (see Exercise 176).
Theorem 4.10. There is a polynomial-time algorithm to decide whether a given digraph H H H has a majority polymorphism.
Proof. The pseudo-code of the procedure can be found in Figure 8 . Given H H H , we construct a new digraph G G G as follows. We start from the third power H 3 H^3 H 3 , and precolour all vertices of the form ( u , u , v ) (u,u,v) ( u , u , v ) , ( u , v , u ) (u,v,u) ( u , v , u ) , ( v , u , u ) (v,u,u) ( v , u , u ) , and ( u , u , u ) (u,u,u) ( u , u , u ) with u u u . Let G G G be the resulting precoloured digraph. Note that there exists a homomorphism from G G G to H H H that respects the colours if and only if H H H has a majority polymorphism.
Figure 8. A polynomial-time algorithm to find majority polymorphisms.
To decide whether G G G has a homomorphism to H H H , we run the modification of P C H \mathrm{PC}_H PC H for the precoloured H H H -colouring problem on G G G (see Exercise 70). If this algorithm rejects, then
Majority-Test($H$)
Input: a finite digraph $H$.
Let $G := H^3$.
For all $u,v \in V(H)$, precolour the vertices $(u,u,v)$, $(u,v,u)$, $(v,u,u)$, $(u,u,u)$ with $u$.
If $\mathrm{PC}_H(G)$ derives the empty list, then reject.
For each $x \in V(G)$:
For each $(u,u) \in L(x,x)$:
Run $\mathrm{PC}_H(G)$ on a copy $L_u$ of the current lists with $L_u(x,x) := \{(u,u)\}$.
If every such run rejects, then reject.
Otherwise, choose one $u$ whose run does not reject
and replace $L$ by the resulting lists $L_u$.
End For.
Accept.
we can be sure that there is no homomorphism from G G G to H H H that respects the colours, and hence H H H has no majority polymorphism. Otherwise, we use the same idea as in the proof of Proposition 3.6 : create a copy L ′ L' L ′ of the lists L L L . Pick x ∈ V ( G ) x \in V(G) x ∈ V ( G ) and remove all but one pair ( u , u ) (u,u) ( u , u ) from L ′ ( x , x ) L'(x,x) L ′ ( x , x ) . If P C H \mathrm{PC}_H PC H derives the empty list on L ′ L' L ′ instead of L L L , we try the same with another pair ( v , v ) (v,v) ( v , v ) from L ( x , x ) L(x,x) L ( x , x ) .
If there exists x ∈ V ( G ) x \in V(G) x ∈ V ( G ) such that P C H \mathrm{PC}_H PC H detects an empty list for all ( u , u ) ∈ L ( x , x ) (u,u) \in L(x,x) ( u , u ) ∈ L ( x , x ) then the adaptation of P C H \mathrm{PC}_H PC H for the precoloured CSP would have given an incorrect answer for the previously selected variable: P C H \mathrm{PC}_H PC H did not detect the empty list even though the input was unsatisfiable. Hence, H H H cannot have a majority polymorphism by Theorem 4.6 .
Otherwise, if P C H \mathrm{PC}_H PC H does not derive the empty list after removing all pairs but ( u , u ) (u,u) ( u , u ) from L ( x , x ) L(x,x) L ( x , x ) , we continue with another vertex y ∈ V ( G ) y \in V(G) y ∈ V ( G ) , setting L ( y , y ) L(y,y) L ( y , y ) to { ( u , u ) } \{(u,u)\} {( u , u )} for some ( u , u ) ∈ L ( y , y ) (u,u) \in L(y,y) ( u , u ) ∈ L ( y , y ) . We repeat this procedure; if the algorithm never rejects, then eventually all lists for pairs of the form ( x , x ) (x,x) ( x , x ) are singleton sets { ( u , u ) } \{(u,u)\} {( u , u )} ; the map that sends x x x to u u u is a homomorphism from G G G to H H H that respects the colours. In this case we return ‘true’.
It is easy to see that the procedure described above has polynomial running time.
Exercise 82. Modify the algorithm ‘Majority-Test’ to obtain an algorithm that tests whether a given digraph H H H has a quasi majority polymorphism.
Digraphs with a Maltsev Polymorphism
If a digraph H H H has a majority polymorphism, then the path-consistency procedure solves CSP(H H H ). How about digraphs H H H with a minority polymorphism of H H H ? It turns out that this is an even stronger restriction.
Definition 4.11. A ternary operation f : D 3 → D f : D^3 \to D f : D 3 → D is called
∀ x , y ∈ D . f ( y , x , x ) = f ( x , y , x ) = f ( x , x , y ) = y \forall x,y \in D.\ f(y,x,x) = f(x,y,x) = f(x,x,y) = y ∀ x , y ∈ D . f ( y , x , x ) = f ( x , y , x ) = f ( x , x , y ) = y
@page 38/200 starts_mid=1 ends_mid=1
Majority-Test($H$)
Input: a finite digraph $H$.
Let $G := H^3$.
For all $u,v \in V(H)$, precolour the vertices $(u,u,v)$, $(u,v,u)$, $(v,u,u)$, $(u,u,u)$ with $u$.
If $\mathrm{PC}_H(G)$ derives the empty list, then reject.
For each $x \in V(G)$:
For each $(u,u) \in L(x,x)$:
Run $\mathrm{PC}_H(G)$ on a copy $L_u$ of the current lists with $L_u(x,x) := \{(u,u)\}$.
If every such run rejects, then reject.
Otherwise, choose one $u$ whose run does not reject
and replace $L$ by the resulting lists $L_u$.
End For.
Accept.
Figure 8 (PDF p. 38). A polynomial-time algorithm to find majority polymorphisms.
we can be sure that there is no homomorphism from G G G to H H H that respects the colours, and hence H H H has no majority polymorphism. Otherwise, we use the same idea as in the proof of Proposition 3.6 : create a copy L ′ L' L ′ of the lists L L L . Pick x ∈ V ( G ) x \in V(G) x ∈ V ( G ) and remove all but one pair ( u , u ) (u,u) ( u , u ) from L ′ ( x , x ) L'(x,x) L ′ ( x , x ) . If P C H \mathrm{PC}_H PC H derives the empty list on L ′ L' L ′ instead of L L L , we try the same with another pair ( v , v ) (v,v) ( v , v ) from L ( x , x ) L(x,x) L ( x , x ) .
If there exists x ∈ V ( G ) x \in V(G) x ∈ V ( G ) such that P C H \mathrm{PC}_H PC H detects an empty list for all ( u , u ) ∈ L ( x , x ) (u,u) \in L(x,x) ( u , u ) ∈ L ( x , x ) then the adaptation of P C H \mathrm{PC}_H PC H for the precoloured CSP would have given an incorrect answer for the previously selected variable: P C H \mathrm{PC}_H PC H did not detect the empty list even though the input was unsatisfiable. Hence, H H H cannot have a majority polymorphism by Theorem 4.6 .
Otherwise, if P C H \mathrm{PC}_H PC H does not derive the empty list after removing all pairs but ( u , u ) (u,u) ( u , u ) from L ( x , x ) L(x,x) L ( x , x ) , we continue with another vertex y ∈ V ( G ) y \in V(G) y ∈ V ( G ) , setting L ( y , y ) L(y,y) L ( y , y ) to { ( u , u ) } \{(u,u)\} {( u , u )} for some ( u , u ) ∈ L ( y , y ) (u,u) \in L(y,y) ( u , u ) ∈ L ( y , y ) . We repeat this procedure; if the algorithm never rejects, then eventually all lists for pairs of the form ( x , x ) (x,x) ( x , x ) are singleton sets { ( u , u ) } \{(u,u)\} {( u , u )} ; the map that sends x x x to u u u is a homomorphism from G G G to H H H that respects the colours. In this case we return ‘true’.
It is easy to see that the procedure described above has polynomial running time.
Exercise 82. Modify the algorithm ‘Majority-Test’ to obtain an algorithm that tests whether a given digraph H H H has a quasi majority polymorphism.
Digraphs with a Maltsev Polymorphism
If a digraph H H H has a majority polymorphism, then the path-consistency procedure solves CSP(H H H ). How about digraphs H H H with a minority polymorphism of H H H ? It turns out that this is an even stronger restriction.
Definition 4.11. A ternary operation f : D 3 → D f : D^3 \to D f : D 3 → D is called
∀ x , y ∈ D . f ( y , x , x ) = f ( x , y , x ) = f ( x , x , y ) = y \forall x,y \in D.\ f(y,x,x) = f(x,y,x) = f(x,x,y) = y ∀ x , y ∈ D . f ( y , x , x ) = f ( x , y , x ) = f ( x , x , y ) = y
∀ x , y ∈ D . f ( y , x , x ) = f ( x , x , y ) = y . \forall x,y \in D.\ f(y,x,x)=f(x,x,y)=y. ∀ x , y ∈ D . f ( y , x , x ) = f ( x , x , y ) = y .
Example 4.12. Let D : = { 0 , … , n − 1 } D := \{0,\ldots,n-1\} D := { 0 , … , n − 1 } . Then the operation f : D 3 → D f:D^3 \to D f : D 3 → D given by ( x , y , z ) ↦ x − y + z m o d n (x,y,z) \mapsto x-y+z \bmod n ( x , y , z ) ↦ x − y + z mod n is a Maltsev operation, since x − x + z = z x-x+z=z x − x + z = z and x − z + z = x x-z+z=x x − z + z = x . For n ∈ { 1 , 2 } n \in\{1,2\} n ∈ { 1 , 2 } , this is even a minority operation. If n > 2 n>2 n > 2 , this operation is not a minority, since then 1 − 2 + 1 = 0 ≢ 2 m o d n 1-2+1=0 \not\equiv2 \bmod n 1 − 2 + 1 = 0 ≡ 2 mod n . Note that f f f is a polymorphism of C ⃗ n \vec{C}_n C n . To see this, suppose that v 1 − u 1 ≡ 1 m o d n v_1-u_1 \equiv1 \bmod n v 1 − u 1 ≡ 1 mod n , v 2 − u 2 ≡ 1 m o d n v_2-u_2 \equiv1 \bmod n v 2 − u 2 ≡ 1 mod n , and v 3 − u 3 ≡ 1 m o d n v_3-u_3 \equiv1 \bmod n v 3 − u 3 ≡ 1 mod n . Then
f ( v 1 , v 2 , v 3 ) ≡ v 1 − v 2 + v 3 ≡ ( u 1 + 1 ) − ( u 2 + 1 ) + ( u 3 + 1 ) f(v_1,v_2,v_3) \equiv v_1-v_2+v_3 \equiv(u_1+1)-(u_2+1)+(u_3+1) f ( v 1 , v 2 , v 3 ) ≡ v 1 − v 2 + v 3 ≡ ( u 1 + 1 ) − ( u 2 + 1 ) + ( u 3 + 1 ) ≡ f ( u 1 , u 2 , u 3 ) + 1 ( m o d n ) . \equiv f(u_1,u_2,u_3)+1 \pmod n. ≡ f ( u 1 , u 2 , u 3 ) + 1 ( mod n ) .
The following result appeared in 2011.
Theorem 4.13 (Kazda [75]). If a finite digraph H H H has a Maltsev polymorphism then H H H also has a majority polymorphism.
Hence, for finite digraphs H H H with a Maltsev polymorphism, the strong path-consistency procedure solves the H H H -colouring problem, and in fact even the precoloured H H H -colouring problem. Theorem 4.13 is an immediate consequence of Theorem 4.19 below; to state it, we need the following concepts.
Definition 4.14. A digraph G G G is called rectangular if ( x , y ) (x,y) ( x , y ) , ( x ′ , y ) (x',y) ( x ′ , y ) , ( x ′ , y ′ ) ∈ E ( G ) (x',y') \in E(G) ( x ′ , y ′ ) ∈ E ( G ) implies that ( x , y ′ ) ∈ E ( G ) (x,y') \in E(G) ( x , y ′ ) ∈ E ( G ) .
We start with the fundamental observation: digraphs with a Maltsev polymorphism m m m are rectangular. This follows immediately from the definition of polymorphisms: we must have ( m ( x , x ′ , x ′ ) , m ( y , y , y ′ ) ) ∈ E ( G ) (m(x,x',x'),m(y,y,y')) \in E(G) ( m ( x , x ′ , x ′ ) , m ( y , y , y ′ )) ∈ E ( G ) , but m ( x , x ′ , x ′ ) = x m(x,x',x')=x m ( x , x ′ , x ′ ) = x and m ( y , y , y ′ ) = y ′ m(y,y,y')=y' m ( y , y , y ′ ) = y ′ , so ( x , y ′ ) ∈ E ( G ) (x,y') \in E(G) ( x , y ′ ) ∈ E ( G ) . The converse does not hold, as the following example shows.
Example 4.15. The digraph { a , b , c } ; { ( a , a ) , ( a , b ) , ( b , c ) , ( c , c ) } \{a,b,c\};\{(a,a),(a,b),(b,c),(c,c)\} { a , b , c } ; {( a , a ) , ( a , b ) , ( b , c ) , ( c , c )} is rectangular, but has no Maltsev polymorphism m m m . Indeed, such an m m m would have to satisfy m ( a , a , c ) = c m(a,a,c)=c m ( a , a , c ) = c and m ( a , c , c ) = a m(a,c,c)=a m ( a , c , c ) = a . Note that
( m ( a , a , c ) , m ( a , b , c ) ) ∈ E ( G ) (m(a,a,c),m(a,b,c)) \in E(G) ( m ( a , a , c ) , m ( a , b , c )) ∈ E ( G ) and
( m ( a , b , c ) , m ( a , c , c ) ) ∈ E ( G ) , (m(a,b,c),m(a,c,c)) \in E(G), ( m ( a , b , c ) , m ( a , c , c )) ∈ E ( G ) , but G G G has no vertex x x x such that ( c , x ) ∈ E ( G ) (c,x) \in E(G) ( c , x ) ∈ E ( G ) and ( x , a ) ∈ E ( G ) (x,a) \in E(G) ( x , a ) ∈ E ( G ) .
We are therefore interested in stronger consequences of the existence of a Maltsev polymorphism.
Definition 4.16. A digraph G G G is called k k k -rectangular if whenever G G G contains directed paths of length k k k from x x x to y y y , from x ′ x' x ′ to y y y , and from x ′ x' x ′ to y ′ y' y ′ , then also from x x x to y ′ y' y ′ . A digraph G G G is called totally rectangular if it is k k k -rectangular for all k ≥ 1 k \ge1 k ≥ 1 .
Lemma 4.17. Every digraph with a Maltsev polymorphism m m m is totally rectangular.
Proof. Let k ≥ 1 k \ge1 k ≥ 1 , and suppose that G G G is a digraph with directed paths ( x 0 , … , x k ) (x_0,\ldots,x_k) ( x 0 , … , x k ) , ( y 0 , … , y k ) (y_0,\ldots,y_k) ( y 0 , … , y k ) , and ( z 0 , … , z k ) (z_0,\ldots,z_k) ( z 0 , … , z k ) such that x k = y k x_k=y_k x k = y k and y 0 = z 0 y_0=z_0 y 0 = z 0 . We have to show that there exists a directed path ( u 0 , … , u k ) (u_0,\ldots,u_k) ( u 0 , … , u k ) in G G G with u 0 = x 0 u_0=x_0 u 0 = x 0 and u k = z k u_k=z_k u k = z k . It can be verified that u i : = m ( x i , y i , z i ) u_i:=m(x_i,y_i,z_i) u i := m ( x i , y i , z i ) has the desired properties.
An example of a totally rectangular digraph is given in Figure 9 . The next lemma points out an important consequence of k k k -rectangularity.
Figure 9. A totally rectangular digraph.
Lemma 4.18. Let G G G be a finite totally rectangular digraph with a cycle of net length d > 0 d>0 d > 0 . Then G G G contains a directed cycle of length d d d .
Proof. Let C C C be a cycle of net length d > 0 d>0 d > 0 . We argue by induction on k : = ∣ C ∣ k:=|C| k := ∣ C ∣ . Decompose C C C into maximal directed paths, where each such path is read in the direction of its arcs. If there is only one such path, then C C C is a directed cycle and k = d k=d k = d .
Otherwise, let P P P be a shortest path in this decomposition. Write P P P as a directed path from u u u to v v v , and put ℓ : = ∣ P ∣ \ell:=|P| ℓ := ∣ P ∣ . Let Q Q Q be the other directed path in the decomposition that starts at u u u , and let Q ′ Q' Q ′ be the other directed path that ends at v v v . Thus, ∣ Q ∣ , ∣ Q ′ ∣ ≥ ℓ |Q|,|Q'|\ge\ell ∣ Q ∣ , ∣ Q ′ ∣ ≥ ℓ . Let t t t be the vertex of Q Q Q at distance ℓ \ell ℓ from u u u , and let s s s be the vertex of Q ′ Q' Q ′ at distance ℓ \ell ℓ from v v v . Consequently, there are directed paths of length ℓ \ell ℓ from s s s to v v v , from u u u to v v v , and from u u u to t t t . By ℓ \ell ℓ -rectangularity, there is a directed path R R R of length ℓ \ell ℓ from s s s to t t t .
First suppose that Q ≠ Q ′ Q\ne Q' Q = Q ′ . In the cyclic traversal of C C C , the path P P P is traversed in one direction and the relevant parts of Q Q Q and Q ′ Q' Q ′ are traversed in the opposite direction. If P P P is traversed backwards, then the portion
s ⟶ v ⟶ u ⟶ t s \longrightarrow v \longrightarrow u \longrightarrow t s ⟶ v ⟶ u ⟶ t
consists of the final ℓ \ell ℓ edges of Q ′ Q' Q ′ , the path P P P traversed backwards, and the first ℓ \ell ℓ edges of Q Q Q . It has length 3 ℓ 3\ell 3 ℓ and net length ℓ \ell ℓ , and may be replaced by R R R . If P P P is traversed forwards, the same portion is traversed from t t t to s s s ; it has net length − ℓ -\ell − ℓ and may be replaced by R R R traversed backwards. In either case, we obtain a cycle C ′ C' C ′ with
∣ C ′ ∣ = ∣ C ∣ − 2 ℓ and net ( C ′ ) = net ( C ) = d . |C'|=|C|-2\ell\quad\text{and}\quad\operatorname{net}(C')=\operatorname{net}(C)=d. ∣ C ′ ∣ = ∣ C ∣ − 2 ℓ and net ( C ′ ) = net ( C ) = d .
The result follows from the induction hypothesis.
It remains to consider the case Q = Q ′ Q=Q' Q = Q ′ . Then C C C consists of the two directed paths P P P and Q Q Q , both from u u u to v v v . Put q : = ∣ Q ∣ q:=|Q| q := ∣ Q ∣ . Since q ≥ ℓ q\ge\ell q ≥ ℓ and the net length of C C C is positive, Q Q Q is traversed forwards and P P P backwards. Hence
d = q − ℓ > 0. d=q-\ell>0. d = q − ℓ > 0.
Suppose first that q ≥ 2 ℓ q \ge2\ell q ≥ 2 ℓ . Then t t t occurs on Q Q Q no later than s s s , and the portion of Q Q Q from t t t to s s s is a directed path of length q − 2 ℓ q - 2\ell q − 2 ℓ . Concatenating R R R with this portion gives a directed cycle of length
ℓ + ( q − 2 ℓ ) = q − ℓ = d . \ell+ (q - 2\ell) = q - \ell= d. ℓ + ( q − 2 ℓ ) = q − ℓ = d .
Finally, suppose that ℓ < q < 2 ℓ \ell< q < 2\ell ℓ < q < 2 ℓ . Then s s s occurs before t t t on Q Q Q , and the portion S S S of Q Q Q from s s s to t t t has length
∣ S ∣ = 2 ℓ − q . |S| = 2\ell- q. ∣ S ∣ = 2 ℓ − q .
The cycle obtained by traversing R R R forwards and S S S backwards has net length
ℓ − ( 2 ℓ − q ) = q − ℓ = d . \ell- (2\ell- q) = q - \ell= d. ℓ − ( 2 ℓ − q ) = q − ℓ = d .
Its length is 3 ℓ − q 3\ell- q 3 ℓ − q , which is strictly smaller than ℓ + q = ∣ C ∣ \ell+ q = |C| ℓ + q = ∣ C ∣ , since q > ℓ q > \ell q > ℓ . The induction hypothesis therefore applies and yields a directed cycle of length d d d .
The following is a strengthening of Theorem 4.13; we only prove that 1 implies 2, and 2 implies 3, which suffices for the already mentioned consequence that for digraphs H H H with a Maltsev polymorphism, the path-consistency procedure solves the H H H -colouring problem (cf. Exercise 62).
Theorem 4.19 (Theorem 3.3 and Corollary 4.11 in [46]). Let G G G be a finite digraph. Then the following are equivalent.
G G G has a Maltsev polymorphism.
G G G is totally rectangular.
If G G G is acyclic, then the core of G G G is a directed path. Otherwise, the core of G G G is a disjoint union of directed cycles.
G G G has a minority and a majority polymorphism.
Proof. The implication from 4 to 1 is trivial since every minority operation is in particular a Maltsev operation. The implication from 1 to 2 is Lemma 4.17. For the implication from 2 to 3, let us assume that G G G is connected. The general case then follows by applying the following argument to each of its connected components, and the observation that directed paths homomorphically map to longer directed paths and to directed cycles.
We first consider the case that G G G is acyclic, and claim that in this case G G G is balanced, i.e., there exists a surjective homomorphism h h h from G G G to P ⃗ n \vec{P}_n P n for some n ≥ 0 n \ge0 n ≥ 0 . Otherwise, there exist u , v ∈ V ( G ) u,v \in V(G) u , v ∈ V ( G ) and two paths P P P and Q Q Q from u u u to v v v of different net lengths ℓ 1 \ell_1 ℓ 1 and ℓ 2 \ell_2 ℓ 2 (see Exercise 9). Put these two paths together at u u u and v v v to form an unbalanced cycle C C C . Then Lemma 4.18 implies that G G G contains a directed cycle contrary to our assumptions.
Fix a surjective homomorphism h : G → P ⃗ n h: G \to\vec{P}_n h : G → P n , and choose u ∈ h − 1 ( 0 ) u \in h^{-1}(0) u ∈ h − 1 ( 0 ) and v ∈ h − 1 ( n ) v \in h^{-1}(n) v ∈ h − 1 ( n ) . The case n = 0 n = 0 n = 0 is trivial. Since G G G is connected, there exists a path O O O from u u u to v v v . We show that every path from u u u to v v v which is not directed can be replaced by a strictly shorter path with the same endpoints. Starting with O O O and repeating this replacement, we must eventually obtain a directed path from u u u to v v v .
Decompose O O O into maximal directed subpaths P 1 , … , P m P_1,\ldots,P_m P 1 , … , P m , where each P i P_i P i is written in the direction of its arcs. Along O O O , these paths are traversed alternately in the direction of their arcs and against the direction of their arcs. Since no edge enters h − 1 ( 0 ) h^{-1}(0) h − 1 ( 0 ) and no edge leaves h − 1 ( n ) h^{-1}(n) h − 1 ( n ) , the first and the last path in the decomposition are traversed in the direction of their arcs.
Suppose that m > 1 m > 1 m > 1 . We may choose an internal path P i P_i P i whose length ℓ \ell ℓ is not larger than the lengths of its two neighbours. Indeed, choose a path of minimum length in the decomposition. If only P 1 P_1 P 1 has minimum length, then ∣ P 2 ∣ ≤ ∣ P 1 ∣ |P_2| \le|P_1| ∣ P 2 ∣ ≤ ∣ P 1 ∣ , since the path cannot descend below level zero. Similarly, if only P m P_m P m has minimum length, then ∣ P m − 1 ∣ ≤ ∣ P m ∣ |P_{m-1}| \le|P_m| ∣ P m − 1 ∣ ≤ ∣ P m ∣ , since the path cannot rise above level n n n . Thus a path of minimum length can always be chosen internal.
First suppose that P i P_i P i is traversed against the direction of its arcs. Write P i P_i P i as a directed path of length ℓ \ell ℓ from b b b to a a a . The final ℓ \ell ℓ edges of P i − 1 P_{i-1} P i − 1 form a directed path from some vertex s s s to a a a , and the first ℓ \ell ℓ edges of P i + 1 P_{i+1} P i + 1 form a directed path from b b b to some vertex t t t . Hence there are directed paths of length ℓ \ell ℓ from s s s to a a a , from b b b to a a a , and from b b b to t t t . By ℓ \ell ℓ -rectangularity, there is a directed path of length ℓ \ell ℓ from s s s to t t t . Replacing the corresponding part of O O O , which has length 3 ℓ 3\ell 3 ℓ , by this path produces a shorter path from u u u to v v v .
Now suppose that P i P_i P i is traversed in the direction of its arcs, and write it as a directed path of length ℓ \ell ℓ from a a a to b b b . The part of P i − 1 P_{i-1} P i − 1 adjacent to a a a gives a directed path of length ℓ \ell ℓ from a a a to some vertex s s s , and the part of P i + 1 P_{i+1} P i + 1 adjacent to b b b gives a directed path of length ℓ \ell ℓ from some vertex t t t to b b b . Thus there are directed paths of length ℓ \ell ℓ from t t t to b b b , from a a a to b b b , and from a a a to s s s . By ℓ \ell ℓ -rectangularity, there is a directed path of length ℓ \ell ℓ from t t t to s s s . Traversing this path backwards replaces the corresponding part of O O O , again reducing its length from 3 ℓ 3\ell 3 ℓ to ℓ \ell ℓ .
Repeating this shortening procedure eventually yields a path from u u u to v v v whose directed path decomposition has only one member. It is therefore a directed path. Since h ( u ) = 0 h(u) = 0 h ( u ) = 0 , h ( v ) = n h(v) = n h ( v ) = n , and h h h increases by one along every arc, this directed path has length n n n . Write it as
u = w 0 , w 1 , … , w n = v . u = w_0, w_1, \ldots, w_n = v. u = w 0 , w 1 , … , w n = v .
The map from P ⃗ n \vec{P}_n P n to G G G that sends i i i to w i w_i w i is a homomorphism, and its composition with h h h is the identity on P ⃗ n \vec{P}_n P n . Consequently, P ⃗ n \vec{P}_n P n is a retract of G G G . Since P ⃗ n \vec{P}_n P n is a core, it is the core of G G G .
Now suppose that G G G contains a directed cycle. If G G G contains a loop, then G G G is homomorphically equivalent to C ⃗ 1 \vec{C}_1 C 1 . We may therefore assume that G G G is loopless. Let C C C be the shortest directed cycle of G G G . We prove that G G G homomorphically maps to C C C . It is easy to see that it suffices to show that for any two vertices u u u , v v v of G G G and for any two paths P P P and Q Q Q from u u u to v v v we have that their net lengths are congruent modulo m : = ∣ C ∣ m := |C| m := ∣ C ∣ (see Exercise 10). Suppose for contradiction that there are paths of net length ℓ 1 \ell_1 ℓ 1 and ℓ 2 \ell_2 ℓ 2 from u u u to v v v in G G G such that d : = ℓ 1 − ℓ 2 ≠ 0 d := \ell_1 - \ell_2 \ne0 d := ℓ 1 − ℓ 2 = 0 modulo m m m ; without loss of generality, ℓ 2 < ℓ 1 \ell_2 < \ell_1 ℓ 2 < ℓ 1 , so d > 0 d > 0 d > 0 . We can assume that u u u is an element of C C C , since otherwise we can choose a path S S S from a vertex of C C C to u u u by connectivity of G G G , and append S S S to both P P P and Q Q Q . We can also assume that d < m d < m d < m because if not, we can prepend C C C to Q Q Q to increase the length of Q Q Q by a multiple of m m m , until d = ℓ 1 − ℓ 2 < m d = \ell_1 - \ell_2 < m d = ℓ 1 − ℓ 2 < m . Lemma 4.18 then implies that G G G contains a directed cycle of length d d d , a contradiction to the choice of C C C .
For the missing implication from 3 to 4, we refer to [46] (Corollary 4.11).
Rectangularity will be revisited from a universal algebraic perspective in § 12.2 (Proposition 11.10).
Exercise 83. Let H H H be the digraph ( { 0 , 1 , … , 6 } ; { ( 0 , 1 ) , ( 1 , 2 ) , ( 3 , 2 ) , ( 4 , 3 ) , ( 4 , 5 ) , ( 5 , 6 ) } ) \left(\{0,1,\ldots,6\};\{(0,1),(1,2),(3,2),(4,3),(4,5),(5,6)\}\right) ( { 0 , 1 , … , 6 } ; {( 0 , 1 ) , ( 1 , 2 ) , ( 3 , 2 ) , ( 4 , 3 ) , ( 4 , 5 ) , ( 5 , 6 )} ) . For which k k k is it k k k -rectangular?
Exercise 84. Show that G = ( V , E ) G=(V,E) G = ( V , E ) is rectangular if and only if E E E is a disjoint union of sets of the form A × B A\times B A × B where A , B ⊆ V A,B\subseteq V A , B ⊆ V .
Logic
A signature is a set of relation and function symbols. The relation symbols are typically denoted by R , S , T , … R,S,T,\ldots R , S , T , … and the function symbols are typically denoted by f , g , h , … f,g,h,\ldots f , g , h , … ; each relation and function symbol is equipped with an arity from N \mathbb{N} N . Let τ \tau τ be a signature. A τ \tau τ -structure A \mathcal{A} A consists of
a set A A A (the domain, universe, or base set ; we typically use the same letter in the standard font),
a relation R A ⊆ A k R^{\mathcal{A}}\subseteq A^k R A ⊆ A k for each relation symbol R R R of arity k k k from τ \tau τ , and
an operation f A : A k → A f^{\mathcal{A}}\colon A^k\to A f A : A k → A for each function symbol f f f of arity k k k from τ \tau τ .
Function symbols of arity 0 are allowed; they are also called constant symbols (and the respective operations are called constants ). In this text it causes no harm to allow structures whose domain is empty (in this case, the signature must not contain constant symbols). A τ \tau τ -structure A \mathcal{A} A is called finite if its domain A A A is finite.
A homomorphism h h h from a τ \tau τ -structure A \mathcal{A} A to a τ \tau τ -structure B \mathcal{B} B is a function from A A A to B B B that preserves each relation and each function: that is,
if ( a 1 , … , a k ) (a_1,\ldots,a_k) ( a 1 , … , a k ) is in R A R^{\mathcal{A}} R A , then ( h ( a 1 ) , … , h ( a k ) ) (h(a_1),\ldots,h(a_k)) ( h ( a 1 ) , … , h ( a k )) must be in R B R^{\mathcal{B}} R B ;
for all a 1 , … , a k ∈ A a_1,\ldots,a_k\in A a 1 , … , a k ∈ A we have h ( f A ( a 1 , … , a k ) ) = f B ( h ( a 1 ) , … , h ( a k ) ) h(f^{\mathcal{A}}(a_1,\ldots,a_k))=f^{\mathcal{B}}(h(a_1),\ldots,h(a_k)) h ( f A ( a 1 , … , a k )) = f B ( h ( a 1 ) , … , h ( a k )) .
An isomorphism is a bijective homomorphism h h h such that the inverse mapping h − 1 : B → A h^{-1}\colon B\to A h − 1 : B → A that sends h ( x ) h(x) h ( x ) to x x x is a homomorphism, too. If there exists an isomorphism between two structures A \mathcal{A} A and B \mathcal{B} B , then they are called isomorphic , and we write A ≃ B \mathcal{A}\simeq\mathcal{B} A ≃ B .
A relational structure is a τ \tau τ -structure where τ \tau τ only contains relation symbols, and an algebra (in the sense of universal algebra) is a τ \tau τ -structure where τ \tau τ only contains function symbols. This section is mainly about relational structures; algebras will appear in Section 7.
Note that in a τ \tau τ -structure A \mathcal{A} A , every function symbol of arity n n n must be defined on all of A n A^n A n ; in some settings, this requirement is not natural and we therefore also define multi-sorted structures.
Exercise 85. Find (binary) structures A \mathcal{A} A and B \mathcal{B} B such that CSP ( A × B ) \operatorname{CSP}(\mathcal{A}\times\mathcal{B}) CSP ( A × B ) can be solved in polynomial time, but CSP ( A ) \operatorname{CSP}(\mathcal{A}) CSP ( A ) and CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) are NP-hard (if you have not already solved the harder Exercise 29).
Multisorted Structures
This section is for later reference, and can be skipped at the first reading. Multisorted structures will be used in Section 7.6 and in Section 9.
Let S S S be a set; the elements of S S S are called sorts . An S S S -sorted signature τ \tau τ consists of a set of function symbols (typically denoted by f , g , … f,g,\ldots f , g , … ) and a set of relation symbols (typically denoted by R , S , … R,S,\ldots R , S , … ). Each relation symbol R ∈ τ R\in\tau R ∈ τ of arity k k k is equipped with a type s ∈ S k s\in S^k s ∈ S k , and each function symbol f ∈ τ f\in\tau f ∈ τ of arity k k k is equipped with a type s ∈ S k + 1 s\in S^{k+1} s ∈ S k + 1 . If τ \tau τ is an S S S -sorted signature, then an S S S -sorted τ \tau τ -structure M \mathcal{M} M consists of
a relation R M ⊆ M s 1 × ⋯ × M s k R^{\mathcal{M}} \subseteq M_{s_1} \times\cdots\times M_{s_k} R M ⊆ M s 1 × ⋯ × M s k for each relation symbol R ∈ τ R \in\tau R ∈ τ of arity k k k of type ( s 1 , s 2 , … , s k ) (s_1,s_2,\ldots,s_k) ( s 1 , s 2 , … , s k ) ;
a function f M : M s 1 × ⋯ × M s k → M s 0 f^{\mathcal{M}}: M_{s_1} \times\cdots\times M_{s_k} \to M_{s_0} f M : M s 1 × ⋯ × M s k → M s 0 for each function symbol f ∈ τ f \in\tau f ∈ τ of arity k k k and type ( s 0 , s 1 , … , s k ) (s_0,s_1,\ldots,s_k) ( s 0 , s 1 , … , s k ) (we refer to s 0 s_0 s 0 as the output sort of f f f ).
Note that for the one-sorted case, i.e., if ∣ S ∣ = 1 |S|=1 ∣ S ∣ = 1 , we recover the notion of a structure as introduced earlier. Vector spaces or, more generally, modules may be viewed naturally as two-sorted structures; see Example 7.3.
The syntax and semantics of first-order logic over an S S S -sorted signature τ \tau τ are defined as follows. Let V V V be a set; the elements of V V V are called variables . Each variable x ∈ V x \in V x ∈ V is equipped with a sort s ∈ S s \in S s ∈ S ; we then write x : s x:s x : s . We require that for every s ∈ S s \in S s ∈ S there are infinitely many variables of sort s s s .
If x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n are variables of sort s 1 , … , s n s_1,\ldots,s_n s 1 , … , s n , respectively, then an S S S -sorted τ \tau τ -term t t t of type s = ( s 0 , s 1 , … , s n ) ∈ S n + 1 s=(s_0,s_1,\ldots,s_n) \in S^{n+1} s = ( s 0 , s 1 , … , s n ) ∈ S n + 1 over the variables x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n is defined inductively as follows.
t t t can be of the form x i x_i x i , for i ∈ { 1 , … , n } i \in\{1,\ldots,n\} i ∈ { 1 , … , n } , in which case it has type ( s i , s 1 , … , s n ) (s_i,s_1,\ldots,s_n) ( s i , s 1 , … , s n ) ;
t t t can be of the form f ( t 1 , … , t ℓ ) f(t_1,\ldots,t_\ell) f ( t 1 , … , t ℓ ) (a syntactic object), where f ∈ τ f \in\tau f ∈ τ is a function symbol of type ( s 0 , r 1 , … , r ℓ ) (s_0,r_1,\ldots,r_\ell) ( s 0 , r 1 , … , r ℓ ) , for ℓ ∈ N \ell\in\mathbb{N} ℓ ∈ N , and for each i ∈ { 1 , … , ℓ } i \in\{1,\ldots,\ell\} i ∈ { 1 , … , ℓ } the term t i t_i t i has type ( r i , s 1 , … , s n ) (r_i,s_1,\ldots,s_n) ( r i , s 1 , … , s n ) over the variables x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n ; in this case, t t t has type ( s 0 , s 1 , … , s n ) (s_0,s_1,\ldots,s_n) ( s 0 , s 1 , … , s n ) . The case ℓ = 0 \ell=0 ℓ = 0 is another base case of the induction and covers terms without variables.
As in the case of function symbols of type s s s , we refer to s 0 s_0 s 0 as the output sort of t t t . All τ \tau τ -terms t t t over the variables x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n are built in this way; we often write t ( x 1 , … , x n ) t(x_1,\ldots,x_n) t ( x 1 , … , x n ) to indicate that t t t is a term over these variables.
If M \mathcal{M} M is an S S S -sorted τ \tau τ -structure, n ≥ 1 n \ge1 n ≥ 1 , x 1 , … , x n ∈ V x_1,\ldots,x_n \in V x 1 , … , x n ∈ V , and t ( x 1 , … , x n ) t(x_1,\ldots,x_n) t ( x 1 , … , x n ) is a τ \tau τ -term of type ( s 0 , s 1 , … , s n ) (s_0,s_1,\ldots,s_n) ( s 0 , s 1 , … , s n ) , then the term function t M t^{\mathcal{M}} t M (in the one-sorted case called term operation ) is the function t M : M s 1 × ⋯ × M s n → M s 0 t^{\mathcal{M}}:M_{s_1} \times\cdots\times M_{s_n} \to M_{s_0} t M : M s 1 × ⋯ × M s n → M s 0 defined inductively as follows:
if t t t is of the form x i x_i x i , for i ∈ { 1 , … , n } i \in\{1,\ldots,n\} i ∈ { 1 , … , n } , then t M t^{\mathcal{M}} t M is the function ( a 1 , … , a n ) ↦ a i (a_1,\ldots,a_n) \mapsto a_i ( a 1 , … , a n ) ↦ a i ;
if t t t is of the form f ( t 1 , … , t ℓ ) f(t_1,\ldots,t_\ell) f ( t 1 , … , t ℓ ) and f f f has type ( s 0 , r 1 , … , r ℓ ) (s_0,r_1,\ldots,r_\ell) ( s 0 , r 1 , … , r ℓ ) , then t M t^{\mathcal{M}} t M is the function ( a 1 , … , a n ) ↦ f M ( t 1 M ( a 1 , … , a n ) , … , t ℓ M ( a 1 , … , a n ) ) (a_1,\ldots,a_n) \mapsto f^{\mathcal{M}}(t_1^{\mathcal{M}}(a_1,\ldots,a_n),\ldots,t_\ell^{\mathcal{M}}(a_1,\ldots,a_n)) ( a 1 , … , a n ) ↦ f M ( t 1 M ( a 1 , … , a n ) , … , t ℓ M ( a 1 , … , a n )) .
An atomic τ \tau τ -formula over variables x 1 , … , x k x_1,\ldots,x_k x 1 , … , x k of sort ( s 1 , … , s k ) (s_1,\ldots,s_k) ( s 1 , … , s k ) is
an expression of the form t 1 = t 2 t_1=t_2 t 1 = t 2 , for S S S -sorted τ \tau τ -terms t 1 ( x 1 , … , x k ) t_1(x_1,\ldots,x_k) t 1 ( x 1 , … , x k ) and t 2 ( x 1 , … , x k ) t_2(x_1,\ldots,x_k) t 2 ( x 1 , … , x k ) of type ( s 0 , s 1 , … , s k ) (s_0,s_1,\ldots,s_k) ( s 0 , s 1 , … , s k ) and ( s 0 , s 1 , … , s k ) (s_0,s_1,\ldots,s_k) ( s 0 , s 1 , … , s k ) , for some s 0 ∈ S s_0 \in S s 0 ∈ S ;
an expression of the form R ( t 1 , … , t ℓ ) R(t_1,\ldots,t_\ell) R ( t 1 , … , t ℓ ) , where t i t_i t i , for i ∈ { 1 , … , ℓ } i \in\{1,\ldots,\ell\} i ∈ { 1 , … , ℓ } , is a τ \tau τ -term of type ( r i , s 1 , … , s k ) (r_i,s_1,\ldots,s_k) ( r i , s 1 , … , s k ) , and where R ∈ τ R \in\tau R ∈ τ has type ( r 1 , … , r ℓ ) (r_1,\ldots,r_\ell) ( r 1 , … , r ℓ ) .
A first-order τ \tau τ -formula over the variables x 1 , … , x k ∈ V x_1,\ldots,x_k \in V x 1 , … , x k ∈ V of type ( s 1 , … , s k ) (s_1,\ldots,s_k) ( s 1 , … , s k ) is defined inductively as one of the following expressions:
an atomic first-order τ \tau τ -formula over x 1 , … , x k x_1,\ldots,x_k x 1 , … , x k of type ( s 1 , … , s k ) (s_1,\ldots,s_k) ( s 1 , … , s k ) ,
ϕ 1 ∧ ϕ 2 \phi_1 \land\phi_2 ϕ 1 ∧ ϕ 2 for first-order τ \tau τ -formulas ϕ 1 , ϕ 2 \phi_1,\phi_2 ϕ 1 , ϕ 2 over the variables x 1 , … , x k x_1,\ldots,x_k x 1 , … , x k of type ( s 1 , … , s k ) (s_1,\ldots,s_k) ( s 1 , … , s k ) ,
¬ ϕ \neg\phi ¬ ϕ for a first-order τ \tau τ -formula ϕ \phi ϕ over the variables x 1 , … , x k x_1,\ldots,x_k x 1 , … , x k of type ( s 1 , … , s k ) (s_1,\ldots,s_k) ( s 1 , … , s k ) ,
∃ x 0 . ϕ \exists x_0.\phi ∃ x 0 . ϕ where x 0 ∈ V x_0 \in V x 0 ∈ V and ϕ \phi ϕ is a first-order τ \tau τ -formula over the variables x 0 , x 1 , … , x k x_0,x_1,\ldots,x_k x 0 , x 1 , … , x k of type ( s 0 , s 1 , … , s k ) (s_0,s_1,\ldots,s_k) ( s 0 , s 1 , … , s k ) .
If M \mathcal{M} M is an S S S -sorted τ \tau τ -structure, x 1 , … , x k ∈ V x_1,\ldots,x_k \in V x 1 , … , x k ∈ V , and ϕ ( x 1 , … , x k ) \phi(x_1,\ldots,x_k) ϕ ( x 1 , … , x k ) is a τ \tau τ -formula of type ( s 1 , … , s k ) (s_1,\ldots,s_k) ( s 1 , … , s k ) , then ϕ M \phi^\mathcal{M} ϕ M is the relation defined as follows.
If ϕ \phi ϕ is atomic and of the form t 1 = t 2 t_1=t_2 t 1 = t 2 , then ϕ M \phi^\mathcal{M} ϕ M consists of all tuples ( a 1 , … , a k ) ∈ M s 1 × ⋯ × M s k (a_1,\ldots,a_k) \in M_{s_1} \times\cdots\times M_{s_k} ( a 1 , … , a k ) ∈ M s 1 × ⋯ × M s k such that t 1 M ( a 1 , … , a k ) = t 2 M ( a 1 , … , a k ) t_1^\mathcal{M}(a_1,\ldots,a_k)=t_2^\mathcal{M}(a_1,\ldots,a_k) t 1 M ( a 1 , … , a k ) = t 2 M ( a 1 , … , a k ) .
If ϕ \phi ϕ is atomic and of the form R ( t 1 , … , t l ) R(t_1,\ldots,t_l) R ( t 1 , … , t l ) for S S S -sorted τ \tau τ -terms t 1 , … , t l t_1,\ldots,t_l t 1 , … , t l and R ∈ τ R \in\tau R ∈ τ of type ( r 1 , … , r l ) (r_1,\ldots,r_l) ( r 1 , … , r l ) , then ϕ M \phi^\mathcal{M} ϕ M consists of all tuples ( a 1 , … , a k ) ∈ M s 1 × ⋯ × M s k (a_1,\ldots,a_k) \in M_{s_1} \times\cdots\times M_{s_k} ( a 1 , … , a k ) ∈ M s 1 × ⋯ × M s k such that ( t 1 M ( a 1 , … , a k ) , … , t l M ( a 1 , … , a k ) ) ∈ R M (t_1^\mathcal{M}(a_1,\ldots,a_k),\ldots,t_l^\mathcal{M}(a_1,\ldots,a_k)) \in R^\mathcal{M} ( t 1 M ( a 1 , … , a k ) , … , t l M ( a 1 , … , a k )) ∈ R M .
If ϕ \phi ϕ is of the form ϕ 1 ∧ ϕ 2 \phi_1 \land\phi_2 ϕ 1 ∧ ϕ 2 for τ \tau τ -formulas ϕ 1 \phi_1 ϕ 1 and ϕ 2 \phi_2 ϕ 2 over x 1 , … , x k x_1,\ldots,x_k x 1 , … , x k of type ( s 1 , … , s k ) (s_1,\ldots,s_k) ( s 1 , … , s k ) , then ϕ M : = ϕ 1 M ∩ ϕ 2 M \phi^\mathcal{M}:=\phi_1^\mathcal{M}\cap\phi_2^\mathcal{M} ϕ M := ϕ 1 M ∩ ϕ 2 M .
If ϕ \phi ϕ is of the form ¬ ψ \neg\psi ¬ ψ for some τ \tau τ -formula ψ \psi ψ over x 1 , … , x k x_1,\ldots,x_k x 1 , … , x k of type ( s 1 , … , s k ) (s_1,\ldots,s_k) ( s 1 , … , s k ) , then ϕ M : = ( M s 1 × ⋯ × M s k ) ∖ ψ M \phi^\mathcal{M}:=(M_{s_1}\times\cdots\times M_{s_k})\setminus\psi^\mathcal{M} ϕ M := ( M s 1 × ⋯ × M s k ) ∖ ψ M ;
If ϕ \phi ϕ is of the form ∃ x 0 . ψ \exists x_0.\psi ∃ x 0 . ψ for some x 0 ∈ V x_0\in V x 0 ∈ V and some τ \tau τ -formula ψ \psi ψ over x 0 , x 1 , … , x k x_0,x_1,\ldots,x_k x 0 , x 1 , … , x k of type ( s 0 , s 1 , … , s k ) (s_0,s_1,\ldots,s_k) ( s 0 , s 1 , … , s k ) , then ϕ M \phi^\mathcal{M} ϕ M consists of all tuples ( a 1 , … , a k ) ∈ M s 1 × ⋯ × M s k (a_1,\ldots,a_k)\in M_{s_1}\times\cdots\times M_{s_k} ( a 1 , … , a k ) ∈ M s 1 × ⋯ × M s k such that there exists a 0 ∈ M s 0 a_0\in M_{s_0} a 0 ∈ M s 0 such that ( a 0 , a 1 , … , a k ) ∈ ψ M (a_0,a_1,\ldots,a_k)\in\psi^\mathcal{M} ( a 0 , a 1 , … , a k ) ∈ ψ M .
We recover the syntax and semantics of usual first-order logic as the special case of the one-sorted case.
Exercise 86. Show that one can decide in polynomial time whether a given string is an S S S -sorted τ \tau τ -term over variables x 1 , … , x k x_1,\ldots,x_k x 1 , … , x k .
Exercise 87. Generalise the notion of a homomorphism between τ \tau τ -structures to S S S -sorted τ \tau τ -structures.
Primitive Positive Formulas
A first-order τ \tau τ -formula ϕ ( x 1 , … , x n ) \phi(x_1,\ldots,x_n) ϕ ( x 1 , … , x n ) is called primitive positive (in database theory also conjunctive query ) if it is of the form
∃ x n + 1 , … , x ℓ ( ψ 1 ∧ ⋯ ∧ ψ m ) \exists x_{n+1},\ldots,x_\ell(\psi_1\land\cdots\land\psi_m) ∃ x n + 1 , … , x ℓ ( ψ 1 ∧ ⋯ ∧ ψ m )
where ψ 1 , … , ψ m \psi_1,\ldots,\psi_m ψ 1 , … , ψ m are atomic τ \tau τ -formulas, i.e., formulas of the form R ( y 1 , … , y k ) R(y_1,\ldots,y_k) R ( y 1 , … , y k ) with R ∈ τ R\in\tau R ∈ τ and y i ∈ { x 1 , … , x ℓ } y_i\in\{x_1,\ldots,x_\ell\} y i ∈ { x 1 , … , x ℓ } , of the form y = y ′ y=y' y = y ′ for y , y ′ ∈ { x 1 , … , x ℓ } y,y'\in\{x_1,\ldots,x_\ell\} y , y ′ ∈ { x 1 , … , x ℓ } , or ⊤ \top ⊤ and ⊥ \bot ⊥ (for true and false). As usual, formulas without free variables are called sentences. If A \mathcal{A} A is a τ \tau τ -structure and ϕ \phi ϕ a τ \tau τ -sentence, then we write A ⊨ ϕ \mathcal{A}\models\phi A ⊨ ϕ if A \mathcal{A} A satisfies ϕ \phi ϕ (i.e., ϕ \phi ϕ holds in A \mathcal{A} A ).
Note that if we required that all our structures have a non-empty domain, we would not need the symbol ⊤ \top ⊤ since we can use the primitive positive sentence ∃ x . x = x \exists x.\ x=x ∃ x . x = x to express it.
It is possible to rephrase the H H H -colouring problem and its variants using primitive positive sentences.
Definition 5.1. Let B \mathbb{B} B be a structure with a finite relational signature τ \tau τ . Then CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) is the computational problem of deciding whether a given primitive positive τ \tau τ -sentence ϕ \phi ϕ is true in B \mathbb{B} B .
The given primitive positive τ \tau τ -sentence ϕ \phi ϕ is also called an instance of CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) . The conjuncts of an instance ϕ \phi ϕ are called the constraints of ϕ \phi ϕ . A mapping from the variables of ϕ \phi ϕ to the elements of B B B that is a satisfying assignment for the quantifier-free part of ϕ \phi ϕ is also called a solution to ϕ \phi ϕ .
Example 5.2 (Disequality constraints). Consider the problem CSP ( { 1 , 2 , … , n } ; ≠ ) \operatorname{CSP}(\{1,2,\ldots,n\};\mathord{\ne}) CSP ({ 1 , 2 , … , n } ; = ) . An instance of this problem can be viewed as an (existentially quantified) set of variables, some linked by disequality4 constraints. Such an instance holds in ( { 1 , 2 , … , n } ; ≠ ) (\{1,2,\ldots,n\};\mathord{\ne}) ({ 1 , 2 , … , n } ; = ) if and only if the graph whose vertices are the variables, and whose edges are the disequality constraints, has a homomorphism to K n K_n K n .
The dichotomy conjecture of Feder and Vardi was that CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) is always in P or NP-complete, for every finite structure B \mathbb{B} B with finite relational signature; this conjecture was proved by Bulatov [39] and by Zhuk [115]. For a first more informative formulation of their result, see Theorem 5.20 ; many more reformulations can be found later in the text. Feder and Vardi showed that their conjecture is equivalent to the special case of their conjecture for finite digraphs (see Theorem 2.5 ), because for every relational structure B \mathbb{B} B there exists a finite digraph H \mathbb{H} H such that CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) and CSP ( H ) \operatorname{CSP}(\mathbb{H}) CSP ( H ) are polynomial-time equivalent; this result has later been refined in [44].
Exercise 88. Generalise the notion of direct products from digraphs (Definition 2.1 ) to general relational τ \tau τ -structures.
Exercise 89. Generalise the k k k -consistency procedure from digraphs to general relational structures.
Exercise 90. Does the structure B \mathbb{B} B from Exercise 94 have a majority polymorphism?
Exercise 91. Show that CSP ( { 0 , 1 } ; R 0 , 1 , R 1 , 1 , R 0 , 0 ) \operatorname{CSP}(\{0,1\};R_{0,1},R_{1,1},R_{0,0}) CSP ({ 0 , 1 } ; R 0 , 1 , R 1 , 1 , R 0 , 0 ) , where the relation R i , j R_{i,j} R i , j equals { 0 , 1 } 2 ∖ { ( i , j ) } \{0,1\}^{2}\setminus\{(i,j)\} { 0 , 1 } 2 ∖ {( i , j )} , can be solved in polynomial time.
Exercise 92. Generalise the arc-consistency procedure and the powerset graph to general relational structures, and prove a generalisation of Theorem 3.4 .
Exercise 93. Generalise Theorem 3.15 to general relational structures.
Exercise 94. Does the arc-consistency procedure (see Exercise 92) solve CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) where B \mathbb{B} B has domain B = { 0 , 1 , 2 , 3 } B=\{0,1,2,3\} B = { 0 , 1 , 2 , 3 } , the unary relation U i B : = { i } U_i^{\mathbb{B}}:=\{i\} U i B := { i } for every i ∈ B i\in B i ∈ B , and the binary relations B 2 ∖ { ( 0 , 0 ) } B^{2}\setminus\{(0,0)\} B 2 ∖ {( 0 , 0 )} and { ( 1 , 2 ) , ( 2 , 3 ) , ( 3 , 1 ) , ( 0 , 0 ) } \{(1,2),(2,3),(3,1),(0,0)\} {( 1 , 2 ) , ( 2 , 3 ) , ( 3 , 1 ) , ( 0 , 0 )} ?
Exercise 95. Verify that the structure B \mathcal{B} B from Exercise 94 has the binary idempotent commutative polymorphism ∗ \ast ∗ defined as 1 ∗ 2 = 2 1 \ast2 = 2 1 ∗ 2 = 2 , 2 ∗ 3 = 3 2 \ast3 = 3 2 ∗ 3 = 3 , 3 ∗ 1 = 1 3 \ast1 = 1 3 ∗ 1 = 1 , and 0 ∗ b = b 0 \ast b = b 0 ∗ b = b for all b ∈ { 1 , 2 , 3 } b \in\{1,2,3\} b ∈ { 1 , 2 , 3 } . Verify that ∗ \ast ∗ satisfies ‘restricted associativity’, i.e., x ∗ ( x ∗ y ) = ( x ∗ x ) ∗ y x \ast(x \ast y) = (x \ast x) \ast y x ∗ ( x ∗ y ) = ( x ∗ x ) ∗ y for all x , y ∈ B x,y \in B x , y ∈ B (and since it is additionally idempotent and commutative it is called a 2-semilattice).
Exercise 96. Can you find a linear-time algorithm for the CSP from Exercise 91?
Exercise 97. Generalise the concept of tree duality to general relational structures, and prove a generalisation of Lemma 3.7, Lemma 3.8, and Theorem 3.11.
Exercise 98. Does the path-consistency procedure solve CSP(B \mathcal{B} B ) for the structure B \mathcal{B} B from Exercise 94?
Exercise 99. Let B \mathcal{B} B be the structure with domain B : = { − 1 , 0 , + 1 } B := \{-1,0,+1\} B := { − 1 , 0 , + 1 } and the ternary relations
R B : = { ( x , y , z ) ∈ B 3 ∣ x + y + z ≥ 1 } R^{\mathcal{B}} := \{(x,y,z) \in B^3 \mid x+y+z \ge1\} R B := {( x , y , z ) ∈ B 3 ∣ x + y + z ≥ 1 }
S B : = { ( x , y , z ) ∈ B 3 ∣ x + y + z ≤ − 1 } . S^{\mathcal{B}} := \{(x,y,z) \in B^3 \mid x+y+z \le-1\}. S B := {( x , y , z ) ∈ B 3 ∣ x + y + z ≤ − 1 } .
( x 1 , … , x k ) ↦ { + 1 ( x 1 + ⋯ + x k ) / k ≥ 1 / 3 − 1 ( x 1 + ⋯ + x k ) / k ≤ − 1 / 3 0 otherwise (x_1,\ldots,x_k) \mapsto
\begin{cases}
+1 & (x_1+\cdots+x_k)/k \ge1/3 \\
-1 & (x_1+\cdots+x_k)/k \le-1/3 \\
0 & \text{otherwise}
\end{cases} ( x 1 , … , x k ) ↦ ⎩ ⎨ ⎧ + 1 − 1 0 ( x 1 + ⋯ + x k ) / k ≥ 1/3 ( x 1 + ⋯ + x k ) / k ≤ − 1/3 otherwise
is a polymorphism of B \mathcal{B} B .
From Structures to Formulas
To every finite relational τ \tau τ -structure A \mathcal{A} A we can associate a τ \tau τ -sentence, called the canonical conjunctive query of A \mathcal{A} A , and denoted by ϕ ( A ) \phi(\mathcal{A}) ϕ ( A ) . The variables of this sentence are the elements of A \mathcal{A} A , all of which are existentially quantified in the quantifier prefix of the formula, which is followed by the conjunction of all formulas of the form R ( a 1 , … , a k ) R(a_1,\ldots,a_k) R ( a 1 , … , a k ) for R ∈ τ R \in\tau R ∈ τ and tuples ( a 1 , … , a k ) ∈ R A (a_1,\ldots,a_k) \in R^{\mathcal{A}} ( a 1 , … , a k ) ∈ R A .
For example, the canonical conjunctive query ϕ ( K 3 ) \phi(K_3) ϕ ( K 3 ) of the complete graph on three vertices K 3 K_3 K 3 is the formula
∃ u , v , w ( E ( u , v ) ∧ E ( v , u ) ∧ E ( v , w ) ∧ E ( w , v ) ∧ E ( u , w ) ∧ E ( w , u ) ) . \exists u,v,w\ (E(u,v) \land E(v,u) \land E(v,w) \land E(w,v) \land E(u,w) \land E(w,u)). ∃ u , v , w ( E ( u , v ) ∧ E ( v , u ) ∧ E ( v , w ) ∧ E ( w , v ) ∧ E ( u , w ) ∧ E ( w , u )) .
The proof of the following proposition is straightforward.
Proposition 5.3. Let B \mathcal{B} B be a structure with finite relational signature τ \tau τ , and let A \mathcal{A} A be a finite τ \tau τ -structure. Then there is a homomorphism from A \mathcal{A} A to B \mathcal{B} B if and only if B ⊨ ϕ ( A ) \mathcal{B} \models\phi(\mathcal{A}) B ⊨ ϕ ( A ) .
From Formulas to Structures
To present a converse of Proposition 5.3, we define the canonical structure S ( ϕ ) \mathcal{S}(\phi) S ( ϕ ) (in database theory this structure is called the canonical database ) of a primitive positive τ \tau τ -sentence, which is a relational τ \tau τ -structure defined as follows. We require that ϕ \phi ϕ does not contain ⊥ \bot ⊥ . If ϕ \phi ϕ contains an atomic formula of the form x = y x=y x = y , we remove it from ϕ \phi ϕ , and replace all occurrences of x x x in ϕ \phi ϕ by y y y . Repeating this step if necessary, we may assume that ϕ \phi ϕ does not contain atomic formulas of the form x = y x=y x = y .
Then the domain of S ( ϕ ) \mathcal{S}(\phi) S ( ϕ ) is the set of variables that occur in ϕ \phi ϕ . There is a tuple ( v 1 , … , v k ) (v_1,\ldots,v_k) ( v 1 , … , v k ) in a relation R R R of S ( ϕ ) \mathcal{S}(\phi) S ( ϕ ) if and only if ϕ \phi ϕ contains the conjunct R ( v 1 , … , v k ) R(v_1,\ldots,v_k) R ( v 1 , … , v k ) . The following is similarly straightforward as Proposition 5.3.
Proposition 5.4. Let B \mathcal{B} B be a relational τ \tau τ -structure and let ϕ \phi ϕ be a primitive positive τ \tau τ -sentence that does not contain ⊥ \bot ⊥ . Then B ⊨ ϕ \mathcal{B}\models\phi B ⊨ ϕ if and only if S ( ϕ ) \mathcal{S}(\phi) S ( ϕ ) homomorphically maps to B \mathcal{B} B .
Due to Proposition 5.4 and Proposition 5.3, we may freely switch between the homomorphism and the logic perspective whenever this is convenient. In particular, instances of CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) can from now on be either finite structures A \mathcal{A} A or primitive positive sentences ϕ \phi ϕ .
Note that the H H H -colouring problem, the precoloured H H H -colouring problem, and the list H H H -colouring problem can be viewed as constraint satisfaction problems for appropriately chosen relational structures.
Primitive Positive Definability
Let A \mathcal{A} A be a τ \tau τ -structure, and let A ′ \mathcal{A}' A ′ be a τ ′ \tau' τ ′ -structure with τ ⊆ τ ′ \tau\subseteq\tau' τ ⊆ τ ′ . If A \mathcal{A} A and A ′ \mathcal{A}' A ′ have the same domain and R A = R A ′ R^{\mathcal{A}}=R^{\mathcal{A}'} R A = R A ′ for all R ∈ τ R\in\tau R ∈ τ , then A \mathcal{A} A is called the τ \tau τ -reduct (or simply reduct ) of A ′ \mathcal{A}' A ′ , and A ′ \mathcal{A}' A ′ is called a τ ′ \tau' τ ′ -expansion (or simply expansion ) of A \mathcal{A} A . If A \mathcal{A} A is a structure, and R R R is a relation over the domain of A \mathcal{A} A , then we denote the expansion of A \mathcal{A} A by R R R by ( A , R ) (\mathcal{A},R) ( A , R ) .
If A \mathcal{A} A is a τ \tau τ -structure, and ϕ ( x 1 , … , x k ) \phi(x_1,\ldots,x_k) ϕ ( x 1 , … , x k ) is a formula with k k k free variables x 1 , … , x k x_1,\ldots,x_k x 1 , … , x k , then the relation defined by ϕ \phi ϕ is the relation
{ ( a 1 , … , a k ) ∣ A ⊨ ϕ ( a 1 , … , a k ) } . \{(a_1,\ldots,a_k)\mid\mathcal{A}\models\phi(a_1,\ldots,a_k)\}. {( a 1 , … , a k ) ∣ A ⊨ ϕ ( a 1 , … , a k )} .
If the formula is primitive positive, then this relation is called primitively positively definable .
Example 5.5. The relation { ( a , b ) ∈ { 0 , 1 , 2 , 3 , 4 } 2 ∣ a ≠ b } \{(a,b)\in\{0,1,2,3,4\}^2\mid a\ne b\} {( a , b ) ∈ { 0 , 1 , 2 , 3 , 4 } 2 ∣ a = b } is primitively positively definable in C 5 C_5 C 5 : the primitive positive definition is
∃ p 1 , p 2 ( E ( x 1 , p 1 ) ∧ E ( p 1 , p 2 ) ∧ E ( p 2 , x 2 ) ) . \exists p_1,p_2\left(E(x_1,p_1)\land E(p_1,p_2)\land E(p_2,x_2)\right). ∃ p 1 , p 2 ( E ( x 1 , p 1 ) ∧ E ( p 1 , p 2 ) ∧ E ( p 2 , x 2 ) ) .
Example 5.6. The non-negative integers are primitively positively definable in ( Z ; 0 , 1 , + , ∗ ) (\mathbb{Z};0,1,+,*) ( Z ; 0 , 1 , + , ∗ ) , namely by the following formula ϕ ( x ) \phi(x) ϕ ( x ) which states that x x x is the sum of four squares (where x 2 x^2 x 2 is a shortcut for x ∗ x x*x x ∗ x ).
∃ x 1 , x 2 , x 3 , x 4 ( x = x 1 2 + x 2 2 + x 3 2 + x 4 2 ) \exists x_1,x_2,x_3,x_4\left(x=x_1^2+x_2^2+x_3^2+x_4^2\right) ∃ x 1 , x 2 , x 3 , x 4 ( x = x 1 2 + x 2 2 + x 3 2 + x 4 2 ) Clearly, every integer that satisfies ϕ ( x ) \phi(x) ϕ ( x ) is non-negative; the converse is the famous four-square theorem of Lagrange [65].
Definition 5.7 (Relational product). For binary relations R 1 , R 2 ⊆ B 2 R_1,R_2 \subseteq B^2 R 1 , R 2 ⊆ B 2 , define R 1 ∘ R 2 R_1 \circ R_2 R 1 ∘ R 2 to be the binary relation
{ ( x , y ) ∣ ∃ z ( R 1 ( x , z ) ∧ R 2 ( z , y ) ) } . (1) \{(x,y) \mid\exists z(R_1(x,z) \wedge R_2(z,y))\}. \tag*{(1)} {( x , y ) ∣ ∃ z ( R 1 ( x , z ) ∧ R 2 ( z , y ))} . (1) For R ⊆ B 2 R \subseteq B^2 R ⊆ B 2 , define R 0 : = id B R^0 := \operatorname{id}_B R 0 := id B , R 1 : = R R^1 := R R 1 := R , and R k + 1 : = R k ∘ R R^{k+1} := R^k \circ R R k + 1 := R k ∘ R for k ≥ 1 k \ge1 k ≥ 1 . Note that R k R^k R k is primitively positively definable in ( B ; R ) (B;R) ( B ; R ) for all k ∈ N k \in\mathbb{N} k ∈ N .
The following lemma says that we can expand structures by primitive positive definable relations without changing the complexity of the corresponding CSP. Hence, primitive positive definitions are an important tool to prove NP-hardness: to show that CSP ( B ) \operatorname{CSP}(B) CSP ( B ) is NP-hard, it suffices to show that there is a primitive positive definition of a relation R R R such that CSP ( B , R ) \operatorname{CSP}(B,R) CSP ( B , R ) is already known to be NP-hard. Stronger tools to prove NP-hardness of CSPs will be introduced in § 5.7 and § 6.1 .
Lemma 5.8 (Jeavons, Cohen, Gyssens [73]). Let B B B be a structure with finite relational signature, and let R R R be a relation that has a primitive positive definition in B B B . Then CSP ( B ) \operatorname{CSP}(B) CSP ( B ) and CSP ( B , R ) \operatorname{CSP}(B,R) CSP ( B , R ) are linear-time equivalent.
Proof. It is clear that CSP ( B ) \operatorname{CSP}(B) CSP ( B ) reduces to the new problem. So suppose that ϕ \phi ϕ is an instance of CSP ( B , R ) \operatorname{CSP}(B,R) CSP ( B , R ) . Replace each conjunct R ( x 1 , … , x l ) R(x_1,\ldots,x_l) R ( x 1 , … , x l ) of ϕ \phi ϕ by its primitive positive definition ψ ( x 1 , … , x l ) \psi(x_1,\ldots,x_l) ψ ( x 1 , … , x l ) , using fresh variables for the existentially quantified variables. Move all quantifiers to the front, such that the resulting formula is in prenex normal form and hence primitive positive. Finally, equalities can be eliminated using graph connectivity: each equality x = y x=y x = y contributes an undirected edge on a graph whose vertex set are the variables. Let ϕ ′ \phi' ϕ ′ be the formula obtained from ϕ \phi ϕ as follows: the variables of ϕ ′ \phi' ϕ ′ are the connected components of the undirected graph constructed above, and each conjunct of ϕ \phi ϕ contributes a conjunct of ϕ ′ \phi' ϕ ′ where the variables are replaced by their connected components. The formula ϕ ′ \phi' ϕ ′ can be computed in linear time, using a linear-time algorithm to compute the connected components of a graph.
It is straightforward to verify that ϕ \phi ϕ is true in ( B , R ) (B,R) ( B , R ) if and only if ϕ ′ \phi' ϕ ′ is true in B B B , and it is also clear that ϕ ′ \phi' ϕ ′ can be constructed in linear time in the representation size of ϕ \phi ϕ .
Recall from § 2.4 that CSP ( K 5 ) \operatorname{CSP}(K_5) CSP ( K 5 ) is NP-hard. Since the edge relation of K 5 K_5 K 5 is primitively positively definable in C 5 C_5 C 5 (Example 5.5), Lemma 5.8 implies that CSP ( C 5 ) \operatorname{CSP}(C_5) CSP ( C 5 ) is NP-hard, too.
Exercise 100. Let f : A k → A f:A^k \to A f : A k → A be an operation. The graph of f f f is the relation
G f : = { ( a 1 , … , a k , a 0 ) ∣ a 0 = f ( a 1 , … , a k ) } . G_f := \{(a_1,\ldots,a_k,a_0) \mid a_0=f(a_1,\ldots,a_k)\}. G f := {( a 1 , … , a k , a 0 ) ∣ a 0 = f ( a 1 , … , a k )} . Show that a relation is primitively positively definable in the structure ( A ; f ) (A;f) ( A ; f ) if and only if it is primitively positively definable in ( A ; G f ) (A;G_f) ( A ; G f ) .
Exercise 101. Let B B B be a finite set. Show that if E ⊂ B 2 E \subset B^2 E ⊂ B 2 , then ( E ∪ id B ) n = B 2 (E \cup\operatorname{id}_B)^n = B^2 ( E ∪ id B ) n = B 2 for some n ∈ N n \in\mathbb{N} n ∈ N if and only if the digraph ( B ; E ) (B;E) ( B ; E ) is strongly connected.
Exercise 102. For a binary relation R ⊆ B 2 R \subseteq B^2 R ⊆ B 2 , define R − 1 : = { ( b , a ) ∣ ( a , b ) ∈ R } R^{-1} := \{(b,a) \mid(a,b) \in R\} R − 1 := {( b , a ) ∣ ( a , b ) ∈ R } (called the converse relation of R R R ). For n ∈ N n \in\mathbb{N} n ∈ N , define R − n : = ( R − 1 ) n R^{-n} := (R^{-1})^n R − n := ( R − 1 ) n (see Definition 5.7 ). Show that ( R n ) − 1 = R − n (R^n)^{-1}=R^{-n} ( R n ) − 1 = R − n .
Exercise 103. Let B B B be a finite set and let R ⊆ B 2 R \subseteq B^2 R ⊆ B 2 . Show that ( R ∪ R − 1 ∪ id B ) n = B 2 (R \cup R^{-1} \cup\operatorname{id}_B)^n = B^2 ( R ∪ R − 1 ∪ id B ) n = B 2 for some n ∈ N n \in\mathbb{N} n ∈ N , if and only if the graph ( B ; R ) (B; R) ( B ; R ) is weakly connected.
Exercise 104. Show that the relation R : = { ( a , b , c ) ∈ { 1 , 2 , 3 } 3 ∣ a = b or b = c or a = c } R := \{(a,b,c) \in\{1,2,3\}^3 \mid a=b \text{ or } b=c \text{ or } a=c\} R := {( a , b , c ) ∈ { 1 , 2 , 3 } 3 ∣ a = b or b = c or a = c } has a primitive positive definition over K 3 K_3 K 3 .
Exercise 105. Show that the relation ≠ \ne = on { 1 , 2 , 3 } \{1,2,3\} { 1 , 2 , 3 } has a primitive positive definition in the structure ( { 1 , 2 , 3 } ; R , { 1 } , { 2 } , { 3 } ) (\{1,2,3\}; R, \{1\}, \{2\}, \{3\}) ({ 1 , 2 , 3 } ; R , { 1 } , { 2 } , { 3 }) where R R R is the relation from Exercise 104.
Exercise 106. Let R + R_+ R + , R ∗ R_* R ∗ be the relations defined as follows.
R + : = { ( x , y , z ) ∈ Q 3 ∣ x + y = z } R_+ := \{(x,y,z) \in\mathbb{Q}^3 \mid x+y=z\} R + := {( x , y , z ) ∈ Q 3 ∣ x + y = z }
R ∗ : = { ( x , y , z ) ∈ Q 3 ∣ x ∗ y = z } . R_* := \{(x,y,z) \in\mathbb{Q}^3 \mid x*y=z\}. R ∗ := {( x , y , z ) ∈ Q 3 ∣ x ∗ y = z } .
Show that R ∗ R_* R ∗ is primitively positively definable in ( Q ; R + , { ( x , y ) ∣ y = x 2 } ) (\mathbb{Q}; R_+, \{(x,y) \mid y=x^2\}) ( Q ; R + , {( x , y ) ∣ y = x 2 }) .
Exercise 107. For R + : = { ( x , y , z ) ∈ Z p 3 ∣ x + y = z } R_+ := \{(x,y,z) \in\mathbb{Z}_p^3 \mid x+y=z\} R + := {( x , y , z ) ∈ Z p 3 ∣ x + y = z } , show that ( Z p ; R + , { 1 , … , p − 1 } ) (\mathbb{Z}_p; R_+, \{1,\ldots,p-1\}) ( Z p ; R + , { 1 , … , p − 1 }) is NP-complete if p ≥ 3 p \ge3 p ≥ 3 , and in P if p = 2 p=2 p = 2 .
Exercise 108. Let B B B be any set, and for n ∈ N n \in\mathbb{N} n ∈ N define the relation P B 2 n P_B^{2n} P B 2 n of arity 2 n 2n 2 n as follows.
P B 2 n : = { ( x 1 , y 1 , x 2 , y 2 , … , x n , y n ) ∈ B 2 n ∣ ⋁ i ∈ { 1 , … , n } x i = y i } P_B^{2n} := \{(x_1,y_1,x_2,y_2,\ldots,x_n,y_n) \in B^{2n} \mid\bigvee_{i \in\{1,\ldots,n\}} x_i=y_i\} P B 2 n := {( x 1 , y 1 , x 2 , y 2 , … , x n , y n ) ∈ B 2 n ∣ i ∈ { 1 , … , n } ⋁ x i = y i }
Show that for every n n n the relation P B 2 n P_B^{2n} P B 2 n has a primitive positive definition in ( B ; P B 4 ) (B; P_B^4) ( B ; P B 4 ) .
Exercise 109. Let n ≥ 4 n \ge4 n ≥ 4 . Is there a primitive positive definition of ≠ \ne = over the structure
M n : = ( { 1 , … , n } ; R , { 1 } , { 2 } , … , { n } ) M_n := (\{1,\ldots,n\}; R, \{1\}, \{2\}, \ldots, \{n\}) M n := ({ 1 , … , n } ; R , { 1 } , { 2 } , … , { n })
where R : = { ( 1 , … , 1 ) , ( 2 , … , 2 ) , … , ( n , … , n ) , ( 1 , 2 , … , n ) } R := \{(1,\ldots,1),(2,\ldots,2),\ldots,(n,\ldots,n),(1,2,\ldots,n)\} R := {( 1 , … , 1 ) , ( 2 , … , 2 ) , … , ( n , … , n ) , ( 1 , 2 , … , n )} ?
Cores and Constants
An automorphism of a structure B \mathfrak{B} B with domain B B B is an isomorphism between B \mathfrak{B} B and itself. The set of all automorphisms α \alpha α of B \mathfrak{B} B is denoted by Aut ( B ) \operatorname{Aut}(\mathfrak{B}) Aut ( B ) , and forms a permutation group. If G G G is a permutation group on a set B B B , and b ∈ B b \in B b ∈ B , then a set of the form
S = { α ( b ) ∣ α ∈ G } S = \{\alpha(b) \mid\alpha\in G\} S = { α ( b ) ∣ α ∈ G }
is called an orbit of G G G (the orbit of b b b ). Let ( b 1 , … , b k ) (b_1,\ldots,b_k) ( b 1 , … , b k ) be a k k k -tuple of elements of B \mathfrak{B} B . A set of the form
S = { ( α b 1 , … , α b k ) ∣ α ∈ Aut ( B ) } S = \{(\alpha b_1,\ldots,\alpha b_k) \mid\alpha\in\operatorname{Aut}(\mathfrak{B})\} S = {( α b 1 , … , α b k ) ∣ α ∈ Aut ( B )}
is called an orbit of k k k -tuples of B \mathfrak{B} B ; it is an orbit of the componentwise action of G G G on the set B k B^k B k of k k k -tuples from B B B .
Lemma 5.9. Let B \mathcal{B} B be a structure with a finite relational signature and domain B B B , and let R = { ( b 1 , … , b k ) } R = \{(b_1,\ldots,b_k)\} R = {( b 1 , … , b k )} be a k k k -ary relation that only contains one tuple ( b 1 , … , b k ) ∈ B k (b_1,\ldots,b_k) \in B^k ( b 1 , … , b k ) ∈ B k . If the orbit of ( b 1 , … , b k ) (b_1,\ldots,b_k) ( b 1 , … , b k ) in B \mathcal{B} B is primitively positively definable, then there is a polynomial-time reduction from CSP ( B , R ) \operatorname{CSP}(\mathcal{B},R) CSP ( B , R ) to CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) .
Proof. Let φ \varphi φ be an instance of CSP ( B , R ) \operatorname{CSP}(\mathcal{B},R) CSP ( B , R ) with variable set V V V . If φ \varphi φ contains two constraints R ( x 1 , … , x k ) R(x_1,\ldots,x_k) R ( x 1 , … , x k ) and R ( y 1 , … , y k ) R(y_1,\ldots,y_k) R ( y 1 , … , y k ) , then replace each occurrence of y 1 y_1 y 1 by x 1 x_1 x 1 , then each occurrence of y 2 y_2 y 2 by x 2 x_2 x 2 , and so on, and finally each occurrence of y k y_k y k by x k x_k x k . We repeat this step until all constraints that involve R R R are imposed on the same tuple of variables ( x 1 , … , x k ) (x_1,\ldots,x_k) ( x 1 , … , x k ) . Replace R ( x 1 , … , x k ) R(x_1,\ldots,x_k) R ( x 1 , … , x k ) by the primitive positive definition θ \theta θ of its orbit in B \mathcal{B} B . Finally, move all quantifiers to the front, such that the resulting formula ψ \psi ψ is in prenex normal form and thus an instance of CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) . Clearly, ψ \psi ψ can be computed from φ \varphi φ in polynomial time. We claim that φ \varphi φ is true in ( B , R ) (\mathcal{B},R) ( B , R ) if and only if ψ \psi ψ is true in B \mathcal{B} B .
Suppose φ \varphi φ has a solution s : V → B s: V \to B s : V → B . Since ( b 1 , … , b k ) (b_1,\ldots,b_k) ( b 1 , … , b k ) satisfies θ \theta θ , we can extend s s s to the existentially quantified variables of θ \theta θ to obtain a solution for ψ \psi ψ . In the opposite direction, suppose that s ′ s' s ′ is a solution to ψ \psi ψ over B \mathcal{B} B . Let s s s be the restriction of s ′ s' s ′ to V V V . Since ( s ( x 1 ) , … , s ( x k ) ) (s(x_1),\ldots,s(x_k)) ( s ( x 1 ) , … , s ( x k )) satisfies θ \theta θ , it lies in the same orbit as ( b 1 , … , b k ) (b_1,\ldots,b_k) ( b 1 , … , b k ) . Thus, there exists an automorphism α \alpha α of B \mathcal{B} B that maps ( s ( x 1 ) , … , s ( x k ) ) (s(x_1),\ldots,s(x_k)) ( s ( x 1 ) , … , s ( x k )) to ( b 1 , … , b k ) (b_1,\ldots,b_k) ( b 1 , … , b k ) . Then the extension of the map x ↦ α s ( x ) x \mapsto\alpha s(x) x ↦ α s ( x ) that maps variables y i y_i y i of φ \varphi φ that have been replaced by x i x_i x i in ψ \psi ψ to the value b i b_i b i is a solution to φ \varphi φ over ( B , R ) (\mathcal{B},R) ( B , R ) .
The definition of cores can be extended from finite digraphs to finite structures: as in the case of finite digraphs, we require that every endomorphism be an automorphism. All results we proved for cores of digraphs remain valid for cores of structures. In particular, every finite structure C \mathcal{C} C is homomorphically equivalent to a core structure B \mathcal{B} B , which is unique up to isomorphism (see § 2.5 ). The following proposition can be shown as in the proof of Proposition 2.9.
Proposition 5.10. Let B \mathcal{B} B be a finite core structure. Then the orbits of k k k -tuples of B \mathcal{B} B are primitively positively definable.
Proposition 5.10 and Lemma 5.9 have the following consequence.
Corollary 5.11. Let B \mathcal{B} B be a finite core with a finite relational signature. Let b 1 , … , b n ∈ B b_1,\ldots,b_n \in B b 1 , … , b n ∈ B . Then CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) and CSP ( B , { b 1 } , … , { b n } ) \operatorname{CSP}(\mathcal{B},\{b_1\},\ldots,\{b_n\}) CSP ( B , { b 1 } , … , { b n }) are polynomial-time equivalent.
Exercise 110. Show that if A \mathcal{A} A is the number of orbits of k k k -tuples of a finite structure A \mathcal{A} A , and C \mathcal{C} C is the core of A \mathcal{A} A , then C \mathcal{C} C has at most m m m orbits of k k k -tuples.
Exercise 111. Show that if A \mathcal{A} A is a finite structure, and C \mathcal{C} C its core, and if A \mathcal{A} A and C \mathcal{C} C have the same number of orbits of pairs, then A \mathcal{A} A and C \mathcal{C} C are isomorphic.
Primitive Positive Interpretations
Primitive positive interpretations are a powerful generalisation of primitive positive definability that can be used to also relate structures with different domains. They are a special case of (first-order) interpretations that play an important role in model theory (see, e.g., [70]).
If C C C and D D D are sets and g : C → D g:C \to D g : C → D is a map, then the kernel of g g g is the equivalence relation E E E on C C C where ( c , c ′ ) ∈ E (c,c') \in E ( c , c ′ ) ∈ E if g ( c ) = g ( c ′ ) g(c) = g(c') g ( c ) = g ( c ′ ) . For c ∈ C c \in C c ∈ C , we denote by c / E c/E c / E the equivalence class of c c c in E E E , and by C / E C/E C / E the set of all equivalence classes of elements of C C C . The index of E E E is defined to be ∣ C / E ∣ \lvert C/E\rvert ∣ C / E ∣ .
Definition 5.12. Let σ \sigma σ and τ \tau τ be relational signatures, let A \mathcal{A} A be a τ \tau τ -structure, and let B \mathcal{B} B be a σ \sigma σ -structure. A primitive positive interpretation I I I of B \mathcal{B} B in A \mathcal{A} A consists of
a natural number d d d , called the dimension of I I I ,
a primitive positive τ \tau τ -formula δ I ( x 1 , … , x d ) \delta_I(x_1,\ldots,x_d) δ I ( x 1 , … , x d ) , called the domain formula ,
for each atomic σ \sigma σ -formula ϕ ( y 1 , … , y k ) \phi(y_1,\ldots,y_k) ϕ ( y 1 , … , y k ) a primitive positive τ \tau τ -formula ϕ I ( x ‾ 1 , … , x ‾ k ) \phi_I(\overline{x}_1,\ldots,\overline{x}_k) ϕ I ( x 1 , … , x k ) , called the defining formulas , and
the coordinate map : a surjective map h : D → B h:D\to B h : D → B where
D : = { ( a 1 , … , a d ) ∈ A d ∣ A ⊨ δ I ( a 1 , … , a d ) } D := \{(a_1,\ldots,a_d)\in A^d \mid\mathcal{A}\models\delta_I(a_1,\ldots,a_d)\} D := {( a 1 , … , a d ) ∈ A d ∣ A ⊨ δ I ( a 1 , … , a d )} such that for all atomic σ \sigma σ -formulas ϕ \phi ϕ and all tuples a ‾ i ∈ D \overline{a}_i\in D a i ∈ D
B ⊨ ϕ ( h ( a ‾ 1 ) , … , h ( a ‾ k ) ) ⟺ A ⊨ ϕ I ( a ‾ 1 , … , a ‾ k ) . \mathcal{B}\models\phi(h(\overline{a}_1),\ldots,h(\overline{a}_k)) \Longleftrightarrow\mathcal{A}\models\phi_I(\overline{a}_1,\ldots,\overline{a}_k). B ⊨ ϕ ( h ( a 1 ) , … , h ( a k )) ⟺ A ⊨ ϕ I ( a 1 , … , a k ) . Sometimes, the same symbol is used for the interpretation I I I and the coordinate map. Note that the dimension d d d , the set D D D , and the coordinate map h h h determine the defining formulas up to logical equivalence; hence, we sometimes denote an interpretation by I = ( d , D , h ) I=(d,D,h) I = ( d , D , h ) . Note that the kernel of h h h coincides with the relation defined by ( y 1 = y 2 ) I (y_1=y_2)_I ( y 1 = y 2 ) I , for which we also write = I =_I = I , the defining formula for equality. Also note that the structures A \mathcal{A} A and B \mathcal{B} B and the coordinate map determine the defining formulas of the interpretation up to logical equivalence, which explains the following remark.
Example 5.14. Let G G G be a finite digraph and let q : V ( G ) → X q:V(G)\to X q : V ( G ) → X be a surjection. If the kernel of q q q has a primitive positive definition in G G G , then G / q G/q G / q (see Definition 2.8 ) has a primitive positive interpretation in G G G . △ \triangle △
Example 5.15. The field of rational numbers ( Q ; 0 , 1 , + , ∗ ) (\mathbb{Q};0,1,+,*) ( Q ; 0 , 1 , + , ∗ ) has a primitive positive 2-dimensional interpretation I I I in ( Z ; 0 , 1 , + , ∗ ) (\mathbb{Z};0,1,+,*) ( Z ; 0 , 1 , + , ∗ ) . Example 5.6 presented a primitive positive definition ϕ ( x ) \phi(x) ϕ ( x ) of the set of non-negative integers. The interpretation is now given as follows.
The domain formula δ I ( x , y ) \delta_I(x,y) δ I ( x , y ) is y ≥ 1 y\geq1 y ≥ 1 (using ϕ ( y − 1 ) \phi(y-1) ϕ ( y − 1 ) , it is straightforward to express this with a primitive positive formula);
The formula = I ( x 1 , y 1 , x 2 , y 2 ) =_I(x_1,y_1,x_2,y_2) = I ( x 1 , y 1 , x 2 , y 2 ) is x 1 y 2 = x 2 y 1 x_1y_2=x_2y_1 x 1 y 2 = x 2 y 1 ;
The formula 0 I ( x , y ) 0_I(x,y) 0 I ( x , y ) is x = 0 x=0 x = 0 , the formula 1 I ( x , y ) 1_I(x,y) 1 I ( x , y ) is x = y x=y x = y ;
The formula + I ( x 1 , y 1 , x 2 , y 2 , x 3 , y 3 ) +_I(x_1,y_1,x_2,y_2,x_3,y_3) + I ( x 1 , y 1 , x 2 , y 2 , x 3 , y 3 ) is y 3 ∗ ( x 1 ∗ y 2 + x 2 ∗ y 1 ) = x 3 ∗ y 1 ∗ y 2 y_3*(x_1*y_2+x_2*y_1)=x_3*y_1*y_2 y 3 ∗ ( x 1 ∗ y 2 + x 2 ∗ y 1 ) = x 3 ∗ y 1 ∗ y 2 ;
The formula ∗ I ( x 1 , y 1 , x 2 , y 2 , x 3 , y 3 ) *_I(x_1,y_1,x_2,y_2,x_3,y_3) ∗ I ( x 1 , y 1 , x 2 , y 2 , x 3 , y 3 ) is x 1 ∗ x 2 ∗ y 3 = x 3 ∗ y 1 ∗ y 2 x_1*x_2*y_3=x_3*y_1*y_2 x 1 ∗ x 2 ∗ y 3 = x 3 ∗ y 1 ∗ y 2 . △ \triangle △
Theorem 5.16. Let B \mathcal{B} B and C \mathcal{C} C be structures with finite relational signatures. If there is a primitive positive interpretation of B \mathcal{B} B in C \mathcal{C} C , then there is a polynomial-time reduction from CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) to CSP ( C ) \operatorname{CSP}(\mathcal{C}) CSP ( C ) .
Proof. Let d d d be the dimension of the primitive positive interpretation I I I of the τ \tau τ -structure B \mathcal{B} B in the σ \sigma σ -structure C \mathcal{C} C , let δ I ( x 1 , … , x d ) \delta_I(x_1,\ldots,x_d) δ I ( x 1 , … , x d ) be the domain formula, and let h : δ I ( C d ) → B h:\delta_I(\mathcal{C}^d)\to B h : δ I ( C d ) → B be the coordinate map. Let ϕ \phi ϕ be an instance of CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) with variable set U = { x 1 , … , x n } U=\{x_1,\ldots,x_n\} U = { x 1 , … , x n } . We construct an instance ψ \psi ψ of CSP ( C ) \operatorname{CSP}(\mathcal{C}) CSP ( C ) as follows.
Let V : = { y i j ∣ 1 ≤ i ≤ n , 1 ≤ j ≤ d } V:=\{y_i^j\mid1\leq i\leq n,\ 1\leq j\leq d\} V := { y i j ∣ 1 ≤ i ≤ n , 1 ≤ j ≤ d } be a set of pairwise distinct variables. In every occurrence of δ I \delta_I δ I or of a defining formula θ I \theta_I θ I below, rename the existentially quantified variables so that different occurrences use pairwise distinct fresh variables, all of them disjoint from V V V . We set ψ 1 \psi_1 ψ 1 to be the formula
⋀ 1 ≤ i ≤ n δ I ( y i 1 , … , y i d ) . \bigwedge_{1\leq i\leq n}\delta_I(y_i^1,\ldots,y_i^d). 1 ≤ i ≤ n ⋀ δ I ( y i 1 , … , y i d ) . Let ψ 2 \psi_2 ψ 2 be the conjunction of the formulas θ I ( y i 1 1 , … , y i 1 d , … , y i k 1 , … , y i k d ) \theta_I(y_{i_1}^1,\ldots,y_{i_1}^d,\ldots,y_{i_k}^1,\ldots,y_{i_k}^d) θ I ( y i 1 1 , … , y i 1 d , … , y i k 1 , … , y i k d ) over all conjuncts θ = R ( x i 1 , … , x i k ) \theta=R(x_{i_1},\ldots,x_{i_k}) θ = R ( x i 1 , … , x i k ) of ϕ \phi ϕ . By moving existential quantifiers to the front, the sentence
∃ y 1 1 , … , y n d ( ψ 1 ∧ ψ 2 ) \exists y_1^1,\ldots,y_n^d\;(\psi_1\wedge\psi_2) ∃ y 1 1 , … , y n d ( ψ 1 ∧ ψ 2 ) can be re-written into an equivalent primitive positive σ \sigma σ -sentence ψ \psi ψ , and clearly ψ \psi ψ can be constructed in polynomial time in the size of ϕ \phi ϕ .
We claim that ϕ \phi ϕ is true in B \mathcal{B} B if and only if ψ \psi ψ is true in C \mathcal{C} C . Suppose that f f f is a satisfying assignment of ψ \psi ψ in C \mathcal{C} C . Hence, by construction of ψ \psi ψ , if ϕ \phi ϕ has a conjunct θ = R ( x i 1 , … , x i k ) \theta=R(x_{i_1},\ldots,x_{i_k}) θ = R ( x i 1 , … , x i k ) , then
C ⊨ θ I ( ( f ( y i 1 1 ) , … , f ( y i 1 d ) ) , … , ( f ( y i k 1 ) , … , f ( y i k d ) ) ) . \mathcal{C}\models\theta_I((f(y_{i_1}^1),\ldots,f(y_{i_1}^d)),\ldots,(f(y_{i_k}^1),\ldots,f(y_{i_k}^d))). C ⊨ θ I (( f ( y i 1 1 ) , … , f ( y i 1 d )) , … , ( f ( y i k 1 ) , … , f ( y i k d ))) . By the definition of interpretations, this implies that
B ⊨ R ( h ( f ( y i 1 1 ) , … , f ( y i 1 d ) ) , … , h ( f ( y i k 1 ) , … , f ( y i k d ) ) ) . \mathcal{B}\models R(h(f(y_{i_1}^1),\ldots,f(y_{i_1}^d)),\ldots,h(f(y_{i_k}^1),\ldots,f(y_{i_k}^d))). B ⊨ R ( h ( f ( y i 1 1 ) , … , f ( y i 1 d )) , … , h ( f ( y i k 1 ) , … , f ( y i k d ))) . Hence, the mapping g : U → B g:U\to B g : U → B that sends x i x_i x i to h ( f ( y i 1 ) , … , f ( y i d ) ) h(f(y_i^1),\ldots,f(y_i^d)) h ( f ( y i 1 ) , … , f ( y i d )) satisfies all conjuncts of ϕ \phi ϕ in B \mathcal{B} B .
Now, suppose that f : U → B f:U\to B f : U → B satisfies all conjuncts of ϕ \phi ϕ over B \mathcal{B} B . Since h h h is a surjective mapping from δ I ( C d ) \delta_I(\mathcal{C}^d) δ I ( C d ) to B B B , there are elements c i 1 , … , c i d c_i^1,\ldots,c_i^d c i 1 , … , c i d in C \mathcal{C} C such that h ( c i 1 , … , c i d ) = f ( x i ) h(c_i^1,\ldots,c_i^d)=f(x_i) h ( c i 1 , … , c i d ) = f ( x i ) , for all i ∈ { 1 , … , n } i\in\{1,\ldots,n\} i ∈ { 1 , … , n } . Put c ˉ i : = ( c i 1 , … , c i d ) \bar{c}_i:=(c_i^1,\ldots,c_i^d) c ˉ i := ( c i 1 , … , c i d ) , and define g 0 : V → C g_0:V\to C g 0 : V → C by g 0 ( y i j ) : = c i j g_0(y_i^j):=c_i^j g 0 ( y i j ) := c i j . We extend g 0 g_0 g 0 to an assignment of all variables of ψ \psi ψ .
First, c ˉ i ∈ δ I ( C d ) \bar{c}_i\in\delta_I(\mathcal{C}^d) c ˉ i ∈ δ I ( C d ) for every i ∈ { 1 , … , n } i\in\{1,\ldots,n\} i ∈ { 1 , … , n } . Hence, for every copy of δ I ( y i 1 , … , y i d ) \delta_I(y_i^1,\ldots,y_i^d) δ I ( y i 1 , … , y i d ) occurring in ψ 1 \psi_1 ψ 1 , we may choose values for its existentially quantified variables that make this copy true under g 0 g_0 g 0 .
Now consider a conjunct θ = R ( x i 1 , … , x i k ) \theta=R(x_{i_1},\ldots,x_{i_k}) θ = R ( x i 1 , … , x i k ) of ϕ \phi ϕ . Since f f f satisfies ϕ \phi ϕ , we have
B ⊨ R ( f ( x i 1 ) , … , f ( x i k ) ) . \mathcal{B}\models R(f(x_{i_1}),\ldots,f(x_{i_k})). B ⊨ R ( f ( x i 1 ) , … , f ( x i k )) . By the choice of the tuples c ˉ i \bar{c}_i c ˉ i , this is equivalent to
B ⊨ R ( h ( c ˉ i 1 ) , … , h ( c ˉ i k ) ) . \mathcal{B}\models R(h(\bar{c}_{i_1}),\ldots,h(\bar{c}_{i_k})). B ⊨ R ( h ( c ˉ i 1 ) , … , h ( c ˉ i k )) . The definition of the interpretation therefore implies
C ⊨ θ I ( c ˉ i 1 , … , c ˉ i k ) . \mathcal{C}\models\theta_I(\bar{c}_{i_1},\ldots,\bar{c}_{i_k}). C ⊨ θ I ( c ˉ i 1 , … , c ˉ i k ) .
Consequently, we may choose values for the existentially quantified variables in the corresponding copy of θ I \theta_I θ I that make this copy true under g 0 g_0 g 0 . The existentially quantified variables belonging to distinct copies of the interpretation formulas are pairwise distinct. The choices of witnesses can therefore be made independently and combined with g 0 g_0 g 0 into a single assignment g g g of all variables of ψ \psi ψ . This assignment satisfies every conjunct of ψ 1 \psi_1 ψ 1 and ψ 2 \psi_2 ψ 2 , and hence satisfies ψ \psi ψ in C \mathcal{C} C .
In many hardness proofs we use Theorem 5.16 in the following way.
Corollary 5.17. Let B \mathcal{B} B be a finite relational structure. If there is a primitive positive interpretation of K 3 K_3 K 3 in B \mathcal{B} B , then CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) is NP-hard.
Proof. This is a direct consequence of Theorem 5.16 and the fact that CSP ( K 3 ) \operatorname{CSP}(K_3) CSP ( K 3 ) is NP-hard (see, e.g., [61]). □
Indeed, K 3 K_3 K 3 is one of the most expressive finite structures, in the following sense.
Theorem 5.18. If n ≥ 3 n \ge3 n ≥ 3 then every finite structure has a primitive positive interpretation in K n K_n K n .
Proof. Let A \mathcal{A} A be a finite τ \tau τ -structure with the domain A = { 1 , … , k } A = \{1,\ldots,k\} A = { 1 , … , k } . Our interpretation I I I of A \mathcal{A} A in K n K_n K n is 2 k 2k 2 k -dimensional. The domain formula δ I ( x 1 , … , x k , x 1 ′ , … , x k ′ ) \delta_I(x_1,\ldots,x_k,x'_1,\ldots,x'_k) δ I ( x 1 , … , x k , x 1 ′ , … , x k ′ ) expresses that for exactly one i ≤ k i \le k i ≤ k we have x i = x i ′ x_i = x'_i x i = x i ′ . Note that this formula is preserved by all automorphisms of K n K_n K n , that is, by every permutation of its domain { 1 , … , n } \{1,\ldots,n\} { 1 , … , n } . We will see in Proposition 6.24 that every such formula is equivalent to a primitive positive formula over K n K_n K n . Equality is interpreted by the formula
= I ( x 1 , … , x k , x 1 ′ , … , x k ′ , y 1 , … , y k , y 1 ′ , … , y k ′ ) : = ⋀ i = 1 k ( ( x i = x i ′ ) ⇔ ( y i = y i ′ ) ) =_I\left(x_1,\ldots,x_k,x'_1,\ldots,x'_k,y_1,\ldots,y_k,y'_1,\ldots,y'_k\right) := \bigwedge_{i=1}^{k}\left((x_i=x'_i)\Leftrightarrow(y_i=y'_i)\right) = I ( x 1 , … , x k , x 1 ′ , … , x k ′ , y 1 , … , y k , y 1 ′ , … , y k ′ ) := i = 1 ⋀ k ( ( x i = x i ′ ) ⇔ ( y i = y i ′ ) )
Note that = I =_I = I defines an equivalence relation on the set of all 2 k 2k 2 k -tuples ( u 1 , … , u k , u 1 ′ , … , u k ′ ) (u_1,\ldots,u_k,u'_1,\ldots,u'_k) ( u 1 , … , u k , u 1 ′ , … , u k ′ ) that satisfy δ I \delta_I δ I . The coordinate map sends this tuple to i i i if and only if u i = u i ′ u_i=u'_i u i = u i ′ . When R ∈ τ R\in\tau R ∈ τ is m m m -ary, then the formula R ( x 1 , … , x m ) I R(x_1,\ldots,x_m)_I R ( x 1 , … , x m ) I is any primitive positive formula which is equivalent to the following disjunction of conjunctions with 2 m k 2mk 2 mk variables x 1 , 1 , … , x m , k , x 1 , 1 ′ , … , x m , k ′ x_{1,1},\ldots,x_{m,k},x'_{1,1},\ldots,x'_{m,k} x 1 , 1 , … , x m , k , x 1 , 1 ′ , … , x m , k ′ : for each tuple ( t 1 , … , t m ) ∈ R A (t_1,\ldots,t_m)\in R^{\mathcal{A}} ( t 1 , … , t m ) ∈ R A the disjunction contains the disjunct ⋀ i ≤ m x i , t i = x i , t i ′ \bigwedge_{i\le m}x_{i,t_i}=x'_{i,t_i} ⋀ i ≤ m x i , t i = x i , t i ′ ; again, Proposition 6.24 implies that such a primitive positive formula exists. □
Exercise 112. Show that the digraph
( { a , b , c , d , e } ; { ( a , b ) , ( b , c ) , ( c , d ) , ( d , e ) , ( b , d ) , ( a , d ) , ( c , e ) } ) (\{a,b,c,d,e\};\{(a,b),(b,c),(c,d),(d,e),(b,d),(a,d),(c,e)\}) ({ a , b , c , d , e } ; {( a , b ) , ( b , c ) , ( c , d ) , ( d , e ) , ( b , d ) , ( a , d ) , ( c , e )})
has a pp-interpretation in ( { 0 , 1 } ; { 0 , 1 } 3 ∖ { ( 1 , 1 , 0 ) } , { 0 } , { 1 } ) (\{0,1\};\{0,1\}^3\setminus\{(1,1,0)\},\{0\},\{1\}) ({ 0 , 1 } ; { 0 , 1 } 3 ∖ {( 1 , 1 , 0 )} , { 0 } , { 1 }) , and vice versa.
Hints. Exercise 129. There is a 1-dimensional pp-interpretation of the second structure in the digraph.
Composing Interpretations
Primitive positive interpretations can be composed: if
C 1 \mathfrak{C}_1 C 1 has a d 1 d_1 d 1 -dimensional pp-interpretation I 1 I_1 I 1 in C 2 \mathfrak{C}_2 C 2 , and
C 2 \mathfrak{C}_2 C 2 has a d 2 d_2 d 2 -dimensional pp-interpretation I 2 I_2 I 2 in C 3 \mathfrak{C}_3 C 3 ,
then C 1 \mathfrak{C}_1 C 1 has a natural ( d 1 d 2 ) (d_1d_2) ( d 1 d 2 ) -dimensional pp-interpretation in C 3 \mathfrak{C}_3 C 3 , which we denote by I 1 ∘ I 2 I_1 \circ I_2 I 1 ∘ I 2 . To formally describe I 1 ∘ I 2 I_1 \circ I_2 I 1 ∘ I 2 , suppose that the signature of C i \mathfrak{C}_i C i is τ i \tau_i τ i for i = 1 , 2 , 3 i=1,2,3 i = 1 , 2 , 3 , and that I 1 = ( d 1 , S 1 , h 1 ) I_1=(d_1,S_1,h_1) I 1 = ( d 1 , S 1 , h 1 ) and I 2 = ( d 2 , S 2 , h 2 ) I_2=(d_2,S_2,h_2) I 2 = ( d 2 , S 2 , h 2 ) . If φ \varphi φ is a primitive positive τ 2 \tau_2 τ 2 -formula, let φ I 2 \varphi_{I_2} φ I 2 denote the τ 3 \tau_3 τ 3 -formula obtained from φ \varphi φ by
introducing d 2 d_2 d 2 new variables x 1 , … , x d 2 x^1,\ldots,x^{d_2} x 1 , … , x d 2 for each variable x x x in φ \varphi φ and adding the conjunct δ I 2 ( x 1 , … , x d 2 ) \delta_{I_2}(x^1,\ldots,x^{d_2}) δ I 2 ( x 1 , … , x d 2 ) ,
replacing each atomic τ 2 \tau_2 τ 2 -formula ψ ( x 1 , … , x k ) \psi(x_1,\ldots,x_k) ψ ( x 1 , … , x k ) in φ \varphi φ by the τ 3 \tau_3 τ 3 -formula
ψ I 2 ( x 1 1 , … , x 1 d 2 , … , x k 1 , … , x k d 2 ) , \psi_{I_2}(x_1^1,\ldots,x_1^{d_2},\ldots,x_k^1,\ldots,x_k^{d_2}), ψ I 2 ( x 1 1 , … , x 1 d 2 , … , x k 1 , … , x k d 2 ) ,
and replacing the existentially quantified variables by fresh variable names, and then moving all existential quantifiers to the front.
Note that φ I 2 \varphi_{I_2} φ I 2 is again primitive positive. The coordinate map of I 1 ∘ I 2 I_1 \circ I_2 I 1 ∘ I 2 is defined by
( a 1 1 , … , a d 2 1 , … , a 1 d 1 , … , a d 2 d 1 ) ↦ h 1 ( h 2 ( a 1 1 , … , a d 2 1 ) , … , h 2 ( a 1 d 1 , … , a d 2 d 1 ) ) (a_1^1,\ldots,a_{d_2}^1,\ldots,a_1^{d_1},\ldots,a_{d_2}^{d_1}) \mapsto h_1\bigl(h_2(a_1^1,\ldots,a_{d_2}^1),\ldots,h_2(a_1^{d_1},\ldots,a_{d_2}^{d_1})\bigr) ( a 1 1 , … , a d 2 1 , … , a 1 d 1 , … , a d 2 d 1 ) ↦ h 1 ( h 2 ( a 1 1 , … , a d 2 1 ) , … , h 2 ( a 1 d 1 , … , a d 2 d 1 ) )
(see Remark 5.13 ). Two pp-interpretations I 1 I_1 I 1 and I 2 I_2 I 2 of B \mathfrak{B} B in A \mathfrak{A} A are called homotopic 5 if the relation
{ ( x ˉ , y ˉ ) ∣ I 1 ( x ˉ ) = I 2 ( y ˉ ) } \{(\bar{x},\bar{y}) \mid I_1(\bar{x})=I_2(\bar{y})\} {( x ˉ , y ˉ ) ∣ I 1 ( x ˉ ) = I 2 ( y ˉ )}
of arity d 1 + d 2 d_1+d_2 d 1 + d 2 is pp-definable in A \mathfrak{A} A . Note that id C \operatorname{id}_{\mathfrak{C}} id C is a pp-interpretation of C \mathfrak{C} C in C \mathfrak{C} C , called the identity interpretation of C \mathfrak{C} C (in C \mathfrak{C} C ).
Definition 5.19. Two structures A \mathfrak{A} A and B \mathfrak{B} B with an interpretation I I I of B \mathfrak{B} B in A \mathfrak{A} A and an interpretation J J J of A \mathfrak{A} A in B \mathfrak{B} B are called mutually pp-interpretable . If both I ∘ J I \circ J I ∘ J and J ∘ I J \circ I J ∘ I are homotopic to the identity interpretation (of A \mathfrak{A} A and of B \mathfrak{B} B , respectively), then we say that A \mathfrak{A} A and B \mathfrak{B} B are primitively positively bi-interpretable (via I I I and J J J ).
We close this section with a more informative version of Theorem 2.5 . It has been conjectured (in slightly different, but equivalent form) by Bulatov, Jeavons, and Krokhin [42], and is known under the name tractability conjecture .
Theorem 5.20 (Tractability Theorem, Version 1). Let B \mathfrak{B} B be a relational structure with finite domain and finite signature, and let C \mathfrak{C} C be the expansion of the core of B \mathfrak{B} B by all singleton unary relations. If K 3 \mathfrak{K}_3 K 3 has a primitive positive interpretation in C \mathfrak{C} C , then CSP ( B ) \operatorname{CSP}(\mathfrak{B}) CSP ( B ) is NP-complete. Otherwise, CSP ( B ) \operatorname{CSP}(\mathfrak{B}) CSP ( B ) is in P.
Proof. The first part of the theorem easily follows from the results that we have already shown: B \mathfrak{B} B and its core C ′ \mathfrak{C}' C ′ have the same CSP. Let c 1 , … , c k c_1,\ldots,c_k c 1 , … , c k be the elements of C ′ \mathfrak{C}' C ′ . The orbit of ( c 1 , … , c k ) (c_1,\ldots,c_k) ( c 1 , … , c k ) is primitively positively definable in C ′ \mathfrak{C}' C ′ by Proposition 5.10 . Hence, there is a polynomial-time reduction from CSP ( C ) \operatorname{CSP}(\mathfrak{C}) CSP ( C ) to CSP ( C ′ ) \operatorname{CSP}(\mathfrak{C}') CSP ( C ′ ) by Lemma 5.9 . The first statement then follows from Corollary 5.17 . The second statement was shown by Bulatov [39] and by Zhuk [115]. □ \square □
A reformulation of this result can be found in § 6.1 .
Reduction to Binary Signatures
In this section we prove that every structure C \mathcal{C} C with a relational signature of maximal arity m ∈ N m \in\mathbb{N} m ∈ N is primitively positively bi-interpretable with a binary structure B \mathcal{B} B , i.e., a relational structure where every relation symbol has arity at most two. Moreover, if C \mathcal{C} C has a finite signature, then B \mathcal{B} B can be chosen to have a finite signature, too. It follows from Theorem 5.16 that every CSP is polynomial-time equivalent to a binary CSP. This transformation is known under the name dual encoding [49,53]. We want to stress that the transformation works for relational structures with domains of arbitrary cardinality.
A d d d -dimensional primitive positive interpretation I I I of B \mathcal{B} B in A \mathcal{A} A is called full if for every R ⊆ B k R \subseteq B^{k} R ⊆ B k we have that R R R is primitively positively definable in B \mathcal{B} B if and only if the relation I − 1 ( R ) I^{-1}(R) I − 1 ( R ) of arity k d kd k d is primitively positively definable in A \mathcal{A} A . Note that every structure with a primitive positive interpretation in A \mathcal{A} A is a reduct of a structure with a full primitive positive interpretation in A \mathcal{A} A .
Definition 5.21. Let C \mathcal{C} C be a structure and d ∈ N d \in\mathbb{N} d ∈ N . Then a d d d -th full power of C \mathcal{C} C is a structure D \mathcal{D} D with domain C d C^{d} C d such that the identity map on C d C^{d} C d is a full d d d -dimensional primitive positive interpretation of D \mathcal{D} D in C \mathcal{C} C .
In particular, for all i , j ∈ { 1 , … , d } i,j \in\{1,\ldots,d\} i , j ∈ { 1 , … , d } the relation
E i , j : = { ( ( x 1 , … , x d ) , ( y 1 , … , y d ) ) ∣ x 1 , … , x d , y 1 , … , y d ∈ C and x i = y j } E_{i,j}:=\{((x_{1},\ldots,x_{d}),(y_{1},\ldots,y_{d})) \mid x_{1},\ldots,x_{d},y_{1},\ldots,y_{d} \in C \text{ and } x_{i}=y_{j}\} E i , j := {(( x 1 , … , x d ) , ( y 1 , … , y d )) ∣ x 1 , … , x d , y 1 , … , y d ∈ C and x i = y j }
is primitively positively definable in D \mathcal{D} D .
Proposition 5.22. Let C \mathcal{C} C be a structure and D \mathcal{D} D a d d d -th full power of C \mathcal{C} C for d ≥ 1 d \ge1 d ≥ 1 . Then C \mathcal{C} C and D \mathcal{D} D are primitively positively bi-interpretable.
Proof. Let I I I be the identity map on C d C^{d} C d which is a full interpretation of D \mathcal{D} D in C \mathcal{C} C . Our interpretation J J J of C \mathcal{C} C in D \mathcal{D} D is one-dimensional and the coordinate map is the first projection. The domain formula is true . The pre-image of the equality relation in C \mathcal{C} C under the coordinate map has the primitive positive definition E 1 , 1 ( x , y ) E_{1,1}(x,y) E 1 , 1 ( x , y ) . To define the pre-image of a k k k -ary relation R R R of C \mathcal{C} C under the coordinate map it suffices to observe that the k k k -ary relation
S : = { ( ( a 1 , 1 , … , a 1 , d ) , … , ( a k , 1 , … , a k , d ) ) ∣ ( a 1 , 1 , … , a k , 1 ) ∈ R } S:=\{((a_{1,1},\ldots,a_{1,d}),\ldots,(a_{k,1},\ldots,a_{k,d})) \mid(a_{1,1},\ldots,a_{k,1}) \in R\} S := {(( a 1 , 1 , … , a 1 , d ) , … , ( a k , 1 , … , a k , d )) ∣ ( a 1 , 1 , … , a k , 1 ) ∈ R }
is primitively positively definable in D \mathcal{D} D and J ( S ) = R J(S)=R J ( S ) = R .
To show that C \mathcal{C} C and D \mathcal{D} D are primitively positive bi-interpretable we prove that I ∘ J I \circ J I ∘ J and J ∘ I J \circ I J ∘ I are pp-homotopic to the identity interpretation. The relation
{ ( u 0 , u 1 , … , u d ) ∣ u 0 = I ( J ( u 1 ) , … , J ( u d ) ) , u 1 , … , u d ∈ D } \{(u_{0},u_{1},\ldots,u_{d}) \mid u_{0}=I(J(u_{1}),\ldots,J(u_{d})),\ u_{1},\ldots,u_{d}\in D\} {( u 0 , u 1 , … , u d ) ∣ u 0 = I ( J ( u 1 ) , … , J ( u d )) , u 1 , … , u d ∈ D }
has the primitive positive definition ⋀ i ∈ { 1 , … , d } E i , 1 ( u 0 , u i ) \bigwedge_{i\in\{1,\ldots,d\}} E_{i,1}(u_{0},u_{i}) ⋀ i ∈ { 1 , … , d } E i , 1 ( u 0 , u i ) and the relation
{ ( v 0 , v 1 , … , v d ) ∣ v 0 = J ( I ( v 1 , … , v d ) ) , v 1 , … , v d ∈ C } \{(v_{0},v_{1},\ldots,v_{d}) \mid v_{0}=J(I(v_{1},\ldots,v_{d})),\ v_{1},\ldots,v_{d}\in C\} {( v 0 , v 1 , … , v d ) ∣ v 0 = J ( I ( v 1 , … , v d )) , v 1 , … , v d ∈ C }
has the primitive positive definition v 0 = v 1 v_{0}=v_{1} v 0 = v 1 .
\quad\Box
Note that for every relation R R R of arity k ≤ d k \le d k ≤ d of C \mathcal{C} C , in a d d d -th full power D \mathcal{D} D of C \mathcal{C} C the unary relation
R ′ : = { ( a 1 , … , a d ) ∣ ( a 1 , … , a k ) ∈ R } R^{\prime}:=\{(a_{1},\ldots,a_{d}) \mid(a_{1},\ldots,a_{k})\in R\} R ′ := {( a 1 , … , a d ) ∣ ( a 1 , … , a k ) ∈ R }
must be primitively positively definable. We now define a particular full power.
Definition 5.23. Let C \mathcal{C} C be a relational structure with maximal arity m m m and let d ≥ m d \ge m d ≥ m . Then the structure B : = C [ d ] \mathcal{B} := \mathcal{C}^{[d]} B := C [ d ] with domain C d C^d C d is defined as follows:
for every relation R ⊆ C k R \subseteq C^k R ⊆ C k of C \mathcal{C} C the structure B \mathcal{B} B has the unary relation R ′ ⊆ B = C d R' \subseteq B = C^d R ′ ⊆ B = C d defined above, and
for all i , j ∈ { 1 , … , d } i,j \in\{1,\ldots,d\} i , j ∈ { 1 , … , d } the structure B \mathcal{B} B has the binary relation symbol E i , j E_{i,j} E i , j .
It is clear that the signature of B \mathcal{B} B is finite if the signature of C \mathcal{C} C is finite. Also note that the signature of C [ d ] \mathcal{C}^{[d]} C [ d ] is always binary.
Lemma 5.24. Let C \mathcal{C} C be a relational structure with maximal arity m m m and let d ≥ m d \ge m d ≥ m . Then the binary structure C [ d ] \mathcal{C}^{[d]} C [ d ] is a full power of C \mathcal{C} C .
Proof. The identity map is a d d d -dimensional primitive positive interpretation I I I of B : = C [ d ] \mathcal{B} := \mathcal{C}^{[d]} B := C [ d ] in C \mathcal{C} C . Our interpretation J J J of C \mathcal{C} C in B \mathcal{B} B is one-dimensional. The domain formula is true , and the coordinate map is the first projection
J ( a 1 , … , a d ) : = a 1 . J(a_1,\ldots,a_d) := a_1. J ( a 1 , … , a d ) := a 1 .
The pre-image of the equality relation in C \mathcal{C} C under the coordinate map has the primitive positive definition E 1 , 1 ( x , y ) E_{1,1}(x,y) E 1 , 1 ( x , y ) . The pre-image of the relation R R R of C \mathcal{C} C under the coordinate map is defined by the primitive positive formula
∃ y ( ⋀ i ∈ { 1 , … , k } E 1 , i ( x i , y ) ∧ R ′ ( y ) ) . \exists y\left(\bigwedge_{i\in\{1,\ldots,k\}} E_{1,i}(x_i,y) \land R'(y)\right). ∃ y i ∈ { 1 , … , k } ⋀ E 1 , i ( x i , y ) ∧ R ′ ( y ) .
The proof that I ∘ J I \circ J I ∘ J and J ∘ I J \circ I J ∘ I are pp-homotopic to the identity interpretation is as in the proof of Proposition 5.22.
To prove that I I I is a full interpretation, let S ⊆ B k S \subseteq B^k S ⊆ B k and suppose that I − 1 ( S ) I^{-1}(S) I − 1 ( S ) has a primitive positive definition
ϕ ( x 1 , 1 , … , x 1 , d , … , x k , 1 , … , x k , d ) \phi(x_{1,1},\ldots,x_{1,d},\ldots,x_{k,1},\ldots,x_{k,d}) ϕ ( x 1 , 1 , … , x 1 , d , … , x k , 1 , … , x k , d )
in C \mathcal{C} C . Introduce, for every p ∈ { 1 , … , k } p \in\{1,\ldots,k\} p ∈ { 1 , … , k } and q ∈ { 1 , … , d } q \in\{1,\ldots,d\} q ∈ { 1 , … , d } , a variable x ^ p , q \widehat{x}_{p,q} x p , q over B B B , and define ψ ( x 1 , … , x k ) \psi(x_1,\ldots,x_k) ψ ( x 1 , … , x k ) as
∃ x ^ 1 , 1 , … , x ^ k , d ( ⋀ 1 ≤ p ≤ k 1 ≤ q ≤ d E q , 1 ( x p , x ^ p , q ) ∧ ϕ J ( x ^ 1 , 1 , … , x ^ 1 , d , … , x ^ k , 1 , … , x ^ k , d ) ) . \exists\widehat{x}_{1,1},\ldots,\widehat{x}_{k,d}\left(\bigwedge_{\substack{1\le p\le k\\1\le q\le d}} E_{q,1}(x_p,\widehat{x}_{p,q}) \land\phi_J(\widehat{x}_{1,1},\ldots,\widehat{x}_{1,d},\ldots,\widehat{x}_{k,1},\ldots,\widehat{x}_{k,d})\right). ∃ x 1 , 1 , … , x k , d 1 ≤ p ≤ k 1 ≤ q ≤ d ⋀ E q , 1 ( x p , x p , q ) ∧ ϕ J ( x 1 , 1 , … , x 1 , d , … , x k , 1 , … , x k , d ) .
This is a primitive positive formula over the signature of B \mathcal{B} B . For a ˉ p = ( a 1 p , … , a d p ) ∈ B \bar{a}^{p}=(a_1^p,\ldots,a_d^p)\in B a ˉ p = ( a 1 p , … , a d p ) ∈ B , the conjunct E q , 1 ( a ˉ p , x ^ p , q ) E_{q,1}(\bar{a}^{p},\widehat{x}_{p,q}) E q , 1 ( a ˉ p , x p , q ) ensures that the first coordinate of x ^ p , q \widehat{x}_{p,q} x p , q is a q p a_q^p a q p . Therefore,
B ⊨ ψ ( a ˉ 1 , … , a ˉ k ) ⟺ C ⊨ ϕ ( a 1 1 , … , a d 1 , … , a 1 k , … , a d k ) \mathcal{B}\models\psi(\bar{a}^{1},\ldots,\bar{a}^{k})\Longleftrightarrow\mathcal{C}\models\phi(a_1^1,\ldots,a_d^1,\ldots,a_1^k,\ldots,a_d^k) B ⊨ ψ ( a ˉ 1 , … , a ˉ k ) ⟺ C ⊨ ϕ ( a 1 1 , … , a d 1 , … , a 1 k , … , a d k )
⟺ ( a ˉ 1 , … , a ˉ k ) ∈ S . \Longleftrightarrow(\bar{a}^{1},\ldots,\bar{a}^{k})\in S. ⟺ ( a ˉ 1 , … , a ˉ k ) ∈ S .
Thus, S S S is primitively positively definable in B \mathcal{B} B . This proves that I I I is full, and hence that C [ d ] \mathcal{C}^{[d]} C [ d ] is a d d d -th full power of C \mathcal{C} C .
Corollary 5.25
Corollary 5.25. For every structure C \mathcal{C} C with maximal arity m m m there exists a structure B \mathcal{B} B with maximal arity 2 2 2 such that B \mathcal{B} B and C \mathcal{C} C are primitively positively bi-interpretable. If the signature of C \mathcal{C} C is finite, then the signature of B \mathcal{B} B can be chosen to be finite, too.
Proof. An immediate consequence of Lemma 5.24 and Proposition 5.22.
We will revisit primitive positive interpretations in Section 7 where we study them from a universal-algebraic perspective.
Primitive Positive Constructions
In the previous three sections we have seen several conditions on A \mathcal{A} A and B \mathcal{B} B that imply that CSP ( A ) \operatorname{CSP}(\mathcal{A}) CSP ( A ) reduces to CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) ; in this section we compare them. Let C \mathcal{C} C be a class of structures. We write
H ( C ) H(\mathcal{C}) H ( C ) for the class of structures homomorphically equivalent to structures in C \mathcal{C} C .
C ( C ) C(\mathcal{C}) C ( C ) for the class of all structures obtained by expanding a core structure in C \mathcal{C} C by singleton relations { a } \{a\} { a } . In the setting of relational structures, they play the role of constants (which formally are operation symbols of arity 0 0 0 ).
I ( C ) I(\mathcal{C}) I ( C ) for the class of all structures with a primitive positive interpretation in a structure from C \mathcal{C} C .
Let D \mathcal{D} D be the smallest class containing C \mathcal{C} C and closed under H H H , C C C , and I I I . Barto, Opršal, and Pinsker [17] showed that D = H I ( C ) : = H ( I ( C ) ) \mathcal{D} = HI(\mathcal{C}) := H(I(\mathcal{C})) D = H I ( C ) := H ( I ( C )) . In other words, if there is a chain of applications of the three operators H H H , C C C , and I I I to derive A \mathcal{A} A from B \mathcal{B} B , then there is also a two-step chain to derive A \mathcal{A} A from B \mathcal{B} B , namely by interpreting a structure B ′ \mathcal{B}' B ′ that is homomorphically equivalent to A \mathcal{A} A . This insight is conceptually important for the CSP since it leads to a better understanding of the power of the available tools. If A ∈ H I ( B ) \mathcal{A} \in HI(\mathcal{B}) A ∈ H I ( B ) , then we also say that A \mathcal{A} A has a primitive positive (pp) construction in B \mathcal{B} B , following [17].
Proposition 5.26 (from [17]). Suppose that B \mathcal{B} B is a finite core, and that C \mathcal{C} C is the expansion of B \mathcal{B} B by a relation of the form { c } \{c\} { c } for c ∈ B c \in B c ∈ B . Then B \mathcal{B} B pp-constructs C \mathcal{C} C . In symbols,
C ( C ) ⊆ H I ( C ) . C(\mathcal{C}) \subseteq HI(\mathcal{C}). C ( C ) ⊆ H I ( C ) .
Proof. By Proposition 5.10, the orbit O O O of c c c has a primitive positive definition φ ( x ) \varphi(x) φ ( x ) in B \mathcal{B} B . We give a 2-dimensional primitive positive interpretation in B \mathcal{B} B of a structure A \mathcal{A} A with the same signature τ \tau τ as C \mathcal{C} C . The domain formula δ I ( x 1 , x 2 ) \delta_I(x_1,x_2) δ I ( x 1 , x 2 ) for A \mathcal{A} A is φ ( x 2 ) \varphi(x_2) φ ( x 2 ) . Let R ∈ τ R \in\tau R ∈ τ . If R R R is from the signature of B \mathcal{B} B and has arity k k k then
R A : = { ( ( a 1 , b 1 ) , … , ( a k , b k ) ) ∈ A k ∣ ( a 1 , … , a k ) ∈ R B and b 1 = ⋯ = b k ∈ O } . R^{\mathcal{A}} := \{((a_1,b_1),\ldots,(a_k,b_k)) \in A^k \mid(a_1,\ldots,a_k) \in R^{\mathcal{B}} \text{ and } b_1=\cdots=b_k \in O\}. R A := {(( a 1 , b 1 ) , … , ( a k , b k )) ∈ A k ∣ ( a 1 , … , a k ) ∈ R B and b 1 = ⋯ = b k ∈ O } .
Otherwise, R C R^{\mathcal{C}} R C is of the form { c } \{c\} { c } and we define R A : = { ( a , a ) ∣ a ∈ O } R^{\mathcal{A}} := \{(a,a) \mid a \in O\} R A := {( a , a ) ∣ a ∈ O } . It is clear that A \mathcal{A} A has a primitive positive interpretation in B \mathcal{B} B .
We claim that A \mathcal{A} A and C \mathcal{C} C are homomorphically equivalent. The homomorphism from C \mathcal{C} C to A \mathcal{A} A is given by a ↦ ( a , c ) a \mapsto(a,c) a ↦ ( a , c ) :
if ( a 1 , … , a k ) ∈ R C = R B (a_1,\ldots,a_k) \in R^{\mathcal{C}} = R^{\mathcal{B}} ( a 1 , … , a k ) ∈ R C = R B then ( ( a 1 , c ) , … , ( a k , c ) ) ∈ R A ((a_1,c),\ldots,(a_k,c)) \in R^{\mathcal{A}} (( a 1 , c ) , … , ( a k , c )) ∈ R A ;
the relation R C = { c } R^{\mathcal{C}} = \{c\} R C = { c } is preserved since ( c , c ) ∈ R A (c,c) \in R^{\mathcal{A}} ( c , c ) ∈ R A .
To define a homomorphism h h h from A \mathcal{A} A to C \mathcal{C} C we pick for each a ∈ O a \in O a ∈ O an automorphism α a ∈ Aut ( B ) \alpha_a \in\operatorname{Aut}(\mathcal{B}) α a ∈ Aut ( B ) such that α a ( a ) = c \alpha_a(a) = c α a ( a ) = c . Note that b ∈ O b \in O b ∈ O since B ⊨ δ ( a , b ) \mathcal{B} \models\delta(a,b) B ⊨ δ ( a , b ) , and we define h ( a , b ) : = α b ( a ) h(a,b) := \alpha_b(a) h ( a , b ) := α b ( a ) . To check that this is indeed a homomorphism, let R ∈ τ R \in\tau R ∈ τ be k k k -ary, and let t = ( ( a 1 , b 1 ) , … , ( a k , b k ) ) ∈ R A t = ((a_1,b_1),\ldots,(a_k,b_k)) \in R^{\mathcal{A}} t = (( a 1 , b 1 ) , … , ( a k , b k )) ∈ R A . Then b 1 = ⋯ = b k = : b ∈ O b_1 = \cdots= b_k =: b \in O b 1 = ⋯ = b k =: b ∈ O and we have that h ( t ) = ( α b ( a 1 ) , … , α b ( a k ) ) h(t) = (\alpha_b(a_1),\ldots,\alpha_b(a_k)) h ( t ) = ( α b ( a 1 ) , … , α b ( a k )) is in R C R^{\mathcal{C}} R C since ( a 1 , … , a k ) ∈ R B = R C (a_1,\ldots,a_k) \in R^{\mathcal{B}} = R^{\mathcal{C}} ( a 1 , … , a k ) ∈ R B = R C and α b \alpha_b α b preserves R B = R C R^{\mathcal{B}} = R^{\mathcal{C}} R B = R C . If R A = { ( a , a ) ∣ a ∈ O } R^{\mathcal{A}} = \{(a,a) \mid a \in O\} R A = {( a , a ) ∣ a ∈ O } , then R R R is preserved as well, because
h ( ( a , a ) ) = α a ( a ) = c ∈ { c } = R C . h((a,a)) = \alpha_a(a) = c \in\{c\} = R^{\mathcal{C}}. h (( a , a )) = α a ( a ) = c ∈ { c } = R C .
Hence, C ∈ H ( A ) ⊆ HI ( B ) \mathcal{C} \in\operatorname{H}(\mathcal{A}) \subseteq\operatorname{HI}(\mathcal{B}) C ∈ H ( A ) ⊆ HI ( B ) .
Theorem 5.27 (from [17]). Suppose that A \mathcal{A} A can be obtained from C \mathcal{C} C by repeatedly applying H, C, and I. Then A ∈ HI ( C ) \mathcal{A} \in\operatorname{HI}(\mathcal{C}) A ∈ HI ( C ) , that is, a structure from C \mathcal{C} C pp-constructs A \mathcal{A} A .
Proof. We have to show that HI ( C ) \operatorname{HI}(\mathcal{C}) HI ( C ) is closed under H, C, and I. Homomorphic equivalence is transitive so H ( H ( C ) ) ⊆ H ( C ) \operatorname{H}(\operatorname{H}(\mathcal{C})) \subseteq\operatorname{H}(\mathcal{C}) H ( H ( C )) ⊆ H ( C ) .
We show that if A \mathcal{A} A and B \mathcal{B} B are homomorphically equivalent, and C \mathcal{C} C has a d d d -dimensional primitive positive interpretation I 1 I_1 I 1 in B \mathcal{B} B , then C \mathcal{C} C is homomorphically equivalent to a structure D \mathcal{D} D with a d d d -dimensional primitive positive interpretation I 2 I_2 I 2 in A \mathcal{A} A . Let h 1 : A → B h_1 : \mathcal{A} \to\mathcal{B} h 1 : A → B be the homomorphism from A \mathcal{A} A to B \mathcal{B} B , and h 2 h_2 h 2 the homomorphism from B \mathcal{B} B to A \mathcal{A} A . The interpreting formulas of I 2 I_2 I 2 are the same as the interpreting formulas of I 1 I_1 I 1 ; this describes the structure D \mathcal{D} D up to isomorphism. The map g 1 ( I 2 ( a 1 , … , a d ) ) : = I 1 ( h 1 ( a 1 ) , … , h 1 ( a d ) ) g_1(I_2(a_1,\ldots,a_d)) := I_1(h_1(a_1),\ldots,h_1(a_d)) g 1 ( I 2 ( a 1 , … , a d )) := I 1 ( h 1 ( a 1 ) , … , h 1 ( a d )) is well-defined. Indeed, if I 2 ( a ˉ ) = I 2 ( a ˉ ′ ) I_2(\bar{a}) = I_2(\bar{a}') I 2 ( a ˉ ) = I 2 ( a ˉ ′ ) , then ( a ˉ , a ˉ ′ ) (\bar{a},\bar{a}') ( a ˉ , a ˉ ′ ) satisfies the defining formula for equality of I 1 I_1 I 1 . The defining formula for equality of I 2 I_2 I 2 is the same, and since homomorphisms preserve pp-formulas, the pair ( h 1 ( a ˉ ) , h 1 ( a ˉ ′ ) ) (h_1(\bar{a}),h_1(\bar{a}')) ( h 1 ( a ˉ ) , h 1 ( a ˉ ′ )) satisfies that formula in B \mathcal{B} B . Hence, their I 1 I_1 I 1 -images coincide. We claim that g 1 g_1 g 1 is a homomorphism from D \mathcal{D} D to C \mathcal{C} C . Indeed, for a k k k -ary relation symbol from the signature of C \mathcal{C} C and D \mathcal{D} D , let ( ( a 1 1 , … , a d 1 ) , … , ( a 1 k , … , a d k ) ) ∈ R D ((a_1^1,\ldots,a_d^1),\ldots,(a_1^k,\ldots,a_d^k)) \in R^{\mathcal{D}} (( a 1 1 , … , a d 1 ) , … , ( a 1 k , … , a d k )) ∈ R D ; hence, the d k dk d k -tuple ( a 1 1 , … , a d 1 , … , a 1 k , … , a d k ) (a_1^1,\ldots,a_d^1,\ldots,a_1^k,\ldots,a_d^k) ( a 1 1 , … , a d 1 , … , a 1 k , … , a d k ) satisfies the primitive positive defining formula for R ( x 1 , … , x k ) R(x_1,\ldots,x_k) R ( x 1 , … , x k ) , and
( h 1 ( a 1 1 ) , … , h 1 ( a d 1 ) , … , h 1 ( a 1 k ) , … , h 1 ( a d k ) ) (h_1(a_1^1),\ldots,h_1(a_d^1),\ldots,h_1(a_1^k),\ldots,h_1(a_d^k)) ( h 1 ( a 1 1 ) , … , h 1 ( a d 1 ) , … , h 1 ( a 1 k ) , … , h 1 ( a d k ))
satisfies this formula, too. This in turn implies that
( I 1 ( h 1 ( a 1 1 ) , … , h 1 ( a d 1 ) ) , … , I 1 ( h 1 ( a 1 k ) , … , h 1 ( a d k ) ) ) ∈ R C . (I_1(h_1(a_1^1),\ldots,h_1(a_d^1)),\ldots,I_1(h_1(a_1^k),\ldots,h_1(a_d^k))) \in R^{\mathcal{C}}. ( I 1 ( h 1 ( a 1 1 ) , … , h 1 ( a d 1 )) , … , I 1 ( h 1 ( a 1 k ) , … , h 1 ( a d k ))) ∈ R C .
Similarly, g 2 ( I 1 ( b 1 , … , b d ) ) : = I 2 ( h 2 ( b 1 ) , … , h 2 ( b d ) ) g_2(I_1(b_1,\ldots,b_d)) := I_2(h_2(b_1),\ldots,h_2(b_d)) g 2 ( I 1 ( b 1 , … , b d )) := I 2 ( h 2 ( b 1 ) , … , h 2 ( b d )) is a well-defined homomorphism from C \mathcal{C} C to D \mathcal{D} D . So we conclude that
I ( HI ( C ) ) ⊆ H ( I ( I ( C ) ) ) ⊆ HI ( C ) \operatorname{I}(\operatorname{HI}(\mathcal{C})) \subseteq\operatorname{H}(\operatorname{I}(\operatorname{I}(\mathcal{C}))) \subseteq\operatorname{HI}(\mathcal{C}) I ( HI ( C )) ⊆ H ( I ( I ( C ))) ⊆ HI ( C )
because primitive positive interpretability is transitive, too. Finally, Proposition 5.26 shows that
C ( HI ( C ) ) ⊆ HI ( HI ( C ) ) ⊆ HI ( C ) \operatorname{C}(\operatorname{HI}(\mathcal{C})) \subseteq\operatorname{HI}(\operatorname{HI}(\mathcal{C})) \subseteq\operatorname{HI}(\mathcal{C}) C ( HI ( C )) ⊆ HI ( HI ( C )) ⊆ HI ( C )
where the last inclusion again follows from the observations above.
The following example shows that there are finite structures B \mathcal{B} B all of whose polymorphisms are idempotent such that HI ( B ) \operatorname{HI}(\mathcal{B}) HI ( B ) is strictly larger than I ( B ) \operatorname{I}(\mathcal{B}) I ( B ) .
Example 5.28. Let B \mathbb{B} B be the structure with domain ( Z 2 ) 2 (\mathbb{Z}_2)^2 ( Z 2 ) 2 and signature { R a , b ∣ a , b ∈ Z 2 } \{R_{a,b} \mid a,b \in\mathbb{Z}_2\} { R a , b ∣ a , b ∈ Z 2 } such that
R a , b B : = { ( x , y , z ) ∈ ( ( Z 2 ) 2 ) 3 ∣ x + y + z = ( a , b ) } . R^{\mathbb{B}}_{a,b}:=\{(x,y,z)\in((\mathbb{Z}_2)^2)^3\mid x+y+z=(a,b)\}. R a , b B := {( x , y , z ) ∈ (( Z 2 ) 2 ) 3 ∣ x + y + z = ( a , b )} . Let B ′ \mathbb{B}' B ′ be the reduct of B \mathbb{B} B with the signature τ : = { R 0 , 0 , R 1 , 0 } \tau:=\{R_{0,0},R_{1,0}\} τ := { R 0 , 0 , R 1 , 0 } . Let A \mathbb{A} A be the τ \tau τ -structure with domain Z 2 \mathbb{Z}_2 Z 2 such that for a = 0 a=0 a = 0 and a = 1 a=1 a = 1
R a , 0 A : = { ( x , y , z ) ∈ ( Z 2 ) 3 ∣ x + y + z = a } . R^{\mathbb{A}}_{a,0}:=\{(x,y,z)\in(\mathbb{Z}_2)^3\mid x+y+z=a\}. R a , 0 A := {( x , y , z ) ∈ ( Z 2 ) 3 ∣ x + y + z = a } . Now observe that
( x 1 , x 2 ) ↦ x 1 (x_1,x_2)\mapsto x_1 ( x 1 , x 2 ) ↦ x 1 is a homomorphism from B ′ \mathbb{B}' B ′ to A \mathbb{A} A , and x ↦ ( x , 0 ) x\mapsto(x,0) x ↦ ( x , 0 ) is a homomorphism from A \mathbb{A} A to B ′ \mathbb{B}' B ′ . Therefore A ∈ H ( B ′ ) \mathbb{A}\in\mathrm{H}(\mathbb{B}') A ∈ H ( B ′ ) .
Trivially, B ′ ∈ I ( B ) \mathbb{B}'\in\mathrm{I}(\mathbb{B}) B ′ ∈ I ( B ) and consequently A ∈ H I ( B ) \mathbb{A}\in\mathrm{HI}(\mathbb{B}) A ∈ HI ( B ) .
All polymorphisms of B \mathbb{B} B are idempotent.
We finally prove that A ∉ I ( B ) \mathbb{A}\notin\mathrm{I}(\mathbb{B}) A ∈ / I ( B ) . Suppose for contradiction that there is an n n n -dimensional primitive positive interpretation of A \mathbb{A} A in B \mathbb{B} B , with domain C ⊆ B n C\subseteq B^n C ⊆ B n and coordinate map c : C → Z 2 c:C\to\mathbb{Z}_2 c : C → Z 2 . Let
K : = { ( x ˉ , y ˉ ) ∈ C 2 ∣ c ( x ˉ ) = c ( y ˉ ) } K:=\{(\bar{x},\bar{y})\in C^2\mid c(\bar{x})=c(\bar{y})\} K := {( x ˉ , y ˉ ) ∈ C 2 ∣ c ( x ˉ ) = c ( y ˉ )} be the kernel of c c c , and let ϕ ( x ˉ , y ˉ ) \phi(\bar{x},\bar{y}) ϕ ( x ˉ , y ˉ ) be a primitive positive definition of K K K in B \mathbb{B} B .
We first observe that every nonempty primitively positively definable relation in B \mathbb{B} B has cardinality a power of 4. Indeed, after identifying
( ( Z 2 ) 2 ) k with ( Z 2 ) k × ( Z 2 ) k , ((\mathbb{Z}_2)^2)^k\text{ with }(\mathbb{Z}_2)^k\times(\mathbb{Z}_2)^k, (( Z 2 ) 2 ) k with ( Z 2 ) k × ( Z 2 ) k , a conjunction of atomic formulas over B \mathbb{B} B becomes two systems of linear equations over Z 2 \mathbb{Z}_2 Z 2 with the same coefficient matrix, one system for each coordinate of ( Z 2 ) 2 (\mathbb{Z}_2)^2 ( Z 2 ) 2 . Existential quantification amounts to projecting the solution sets. If the resulting relation is nonempty, its two coordinate projections are affine subspaces of the same dimension. Its cardinality is therefore of the form 2 ℓ ⋅ 2 ℓ = 4 ℓ 2^\ell\cdot2^\ell=4^\ell 2 ℓ ⋅ 2 ℓ = 4 ℓ for some ℓ ∈ N \ell\in\mathbb{N} ℓ ∈ N .
For ϵ ∈ Z 2 \epsilon\in\mathbb{Z}_2 ϵ ∈ Z 2 , choose
u ˉ ϵ = ( u 1 ϵ , … , u n ϵ ) ∈ C such that c ( u ˉ ϵ ) = ϵ . \bar{u}^{\epsilon}=(u_1^{\epsilon},\ldots,u_n^{\epsilon})\in C\quad\text{such that}\quad c(\bar{u}^{\epsilon})=\epsilon. u ˉ ϵ = ( u 1 ϵ , … , u n ϵ ) ∈ C such that c ( u ˉ ϵ ) = ϵ . Write u i ϵ = ( a i ϵ , b i ϵ ) u_i^{\epsilon}=(a_i^{\epsilon},b_i^{\epsilon}) u i ϵ = ( a i ϵ , b i ϵ ) for a i ϵ , b i ϵ ∈ Z 2 a_i^{\epsilon},b_i^{\epsilon}\in\mathbb{Z}_2 a i ϵ , b i ϵ ∈ Z 2 . Since y + y + y = y y+y+y=y y + y + y = y in ( Z 2 ) 2 (\mathbb{Z}_2)^2 ( Z 2 ) 2 , the formula
R a i ϵ , b i ϵ ( y i , y i , y i ) R_{a_i^{\epsilon},b_i^{\epsilon}}(y_i,y_i,y_i) R a i ϵ , b i ϵ ( y i , y i , y i ) defines the singleton { u i ϵ } \{u_i^{\epsilon}\} { u i ϵ } . Hence, the primitive positive formula
χ ϵ ( x ˉ ) : = ∃ y 1 , … , y n ( ϕ ( x ˉ , y ˉ ) ∧ ⋀ i = 1 n R a i ϵ , b i ϵ ( y i , y i , y i ) ) \chi_{\epsilon}(\bar{x}):=\exists y_1,\ldots,y_n\left(\phi(\bar{x},\bar{y})\wedge\bigwedge_{i=1}^{n}R_{a_i^{\epsilon},b_i^{\epsilon}}(y_i,y_i,y_i)\right) χ ϵ ( x ˉ ) := ∃ y 1 , … , y n ( ϕ ( x ˉ , y ˉ ) ∧ i = 1 ⋀ n R a i ϵ , b i ϵ ( y i , y i , y i ) ) defines the kernel class
C ϵ : = c − 1 ( { ϵ } ) . C_{\epsilon}:=c^{-1}(\{\epsilon\}). C ϵ := c − 1 ({ ϵ }) .
Thus, C 0 C_0 C 0 and C 1 C_1 C 1 are nonempty primitively positively definable relations in B \mathcal{B} B . The domain C C C is primitively positively definable as well, and C = C 0 ∪ ˙ C 1 C=C_0\mathbin{\dot\cup}C_1 C = C 0 ∪ ˙ C 1 . Consequently, there exist r , s , t ∈ N r,s,t\in\mathbb{N} r , s , t ∈ N such that
4 r = ∣ C ∣ = ∣ C 0 ∣ + ∣ C 1 ∣ = 4 s + 4 t . 4^r=|C|=|C_0|+|C_1|=4^s+4^t. 4 r = ∣ C ∣ = ∣ C 0 ∣ + ∣ C 1 ∣ = 4 s + 4 t .
But a power of 4 4 4 cannot be the sum of two powers of 4 4 4 , a contradiction. Therefore, A ∉ I ( B ) \mathcal{A}\notin\mathrm{I}(\mathcal{B}) A ∈ / I ( B ) . △
Using the operator H I \mathrm{HI} HI , we reformulate the tractability theorem (Theorem 5.20 ) as follows.
Theorem 5.29 (Tractability Theorem, Version 2). Let B \mathcal{B} B be a relational structure with finite domain and finite signature. If K 3 ∈ H I ( B ) K_3\in\mathrm{HI}(\mathcal{B}) K 3 ∈ HI ( B ) , then CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) is N P NP N P -complete. Otherwise, CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) is in P P P .
Proof. If K 3 ∈ H I ( B ) K_3\in\mathrm{HI}(\mathcal{B}) K 3 ∈ HI ( B ) , then the N P NP N P -hardness of CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) follows from Corollary 5.17 . Otherwise, let C \mathcal{C} C be the expansion of the core of B \mathcal{B} B by all singleton relations. Note that C ∈ H I ( B ) \mathcal{C}\in\mathrm{HI}(\mathcal{B}) C ∈ HI ( B ) by Proposition 5.26 . Hence, if K 3 ∈ H I ( C ) K_3\in\mathrm{HI}(\mathcal{C}) K 3 ∈ HI ( C ) , then K 3 ∈ H I ( B ) K_3\in\mathrm{HI}(\mathcal{B}) K 3 ∈ HI ( B ) by Theorem 5.27 , a contradiction. Hence, Theorem 5.20 implies that CSP ( C ) \operatorname{CSP}(\mathcal{C}) CSP ( C ) is in P P P , and therefore CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) is in P P P . □
Assuming that P ≠ N P P\ne NP P = N P , it follows that K 3 ∈ H I ( B ) K_3\in\mathrm{HI}(\mathcal{B}) K 3 ∈ HI ( B ) if and only if K 3 K_3 K 3 has a primitive positive interpretation in the expansion of the core of B \mathcal{B} B by all singleton unary relations; we will see a proof of this fact without complexity-theoretic assumptions (Corollary 9.19 ).
We will revisit primitive positive constructions in § 10 where we study them from a universal-algebraic perspective; in particular, the next reformulation of the tractability conjecture can be found in § 10.5 .
Exercise 113. Prove that C ⃗ 6 \vec{C}_6 C 6 pp-constructs C ⃗ 3 \vec{C}_3 C 3 .
Exercise 114. Prove that C ⃗ 2 ⊎ C ⃗ 3 \vec{C}_2\uplus\vec{C}_3 C 2 ⊎ C 3 pp-constructs C ⃗ 6 \vec{C}_6 C 6 .
Exercise 115. Prove that C ⃗ 3 \vec{C}_3 C 3 pp-constructs C ⃗ 9 \vec{C}_9 C 9 .
Relations and Operations
In this section we introduce operation clones . Most of our results concern operation clones on a finite domain; however, some results can naturally be proved for arbitrary domains without extra effort and we of course then state the general results.
Operation Clones
For n ≥ 1 n\ge1 n ≥ 1 and a set D D D (the domain ), denote by O D ( n ) \mathcal{O}_D^{(n)} O D ( n ) the set D D n : = ( D n → D ) D^{D^n}:=(D^n\to D) D D n := ( D n → D ) of n n n -ary operations on D D D . The elements of O D ( n ) \mathcal{O}_D^{(n)} O D ( n ) will typically be called the operations of arity n n n on D D D , and D D D will be called the domain . The set of all operations on D D D of finite arity will be denoted by O D : = ⋃ n ≥ 1 O D ( n ) \mathcal{O}_D:=\bigcup_{n\ge1}\mathcal{O}_D^{(n)} O D := ⋃ n ≥ 1 O D ( n ) . An operation clone (over D D D ) is a subset C \mathscr{C} C of O D \mathcal{O}_D O D satisfying the following two properties:
C \mathscr{C} C contains all projections, that is, for all 1 ≤ k ≤ n 1\le k\le n 1 ≤ k ≤ n it contains the operation π k n ∈ O D ( n ) \pi_k^n\in\mathcal{O}_D^{(n)} π k n ∈ O D ( n ) defined by π k n ( x 1 , … , x n ) = x k \pi_k^n(x_1,\ldots,x_n)=x_k π k n ( x 1 , … , x n ) = x k , and
C \mathcal{C} C is closed under composition, that is, for all f ∈ C ∩ O D ( n ) f \in\mathcal{C} \cap\mathcal{O}^{(n)}_{D} f ∈ C ∩ O D ( n ) and g 1 , … , g n ∈ C ∩ O D ( m ) g_1,\ldots,g_n \in\mathcal{C} \cap\mathcal{O}^{(m)}_{D} g 1 , … , g n ∈ C ∩ O D ( m ) it contains the operation f ( g 1 , … , g n ) ∈ O D ( m ) f(g_1,\ldots,g_n) \in\mathcal{O}^{(m)}_{D} f ( g 1 , … , g n ) ∈ O D ( m ) defined by
( x 1 , … , x m ) ↦ f ( g 1 ( x 1 , … , x m ) , … , g n ( x 1 , … , x m ) ) . (x_1,\ldots,x_m) \mapsto f(g_1(x_1,\ldots,x_m),\ldots,g_n(x_1,\ldots,x_m)). ( x 1 , … , x m ) ↦ f ( g 1 ( x 1 , … , x m ) , … , g n ( x 1 , … , x m )) .
A clone is an abstraction of an operation clone that will be introduced later in the course. In the literature, operation clones are often called clones, or concrete clones ; we prefer to use the terms ‘operation clone’ and ‘clone’ in analogy to ‘permutation group’ and ‘group’.
If C \mathcal{C} C is an operation clone, then C ′ \mathcal{C}' C ′ is called a subclone of C \mathcal{C} C if C ′ \mathcal{C}' C ′ is an operation clone and C ′ ⊆ C \mathcal{C}' \subseteq\mathcal{C} C ′ ⊆ C . A subclone C ′ \mathcal{C}' C ′ of C \mathcal{C} C is called proper if C ′ ≠ C \mathcal{C}' \ne\mathcal{C} C ′ = C . If F \mathcal{F} F is a set of operations, we write ⟨ F ⟩ \langle\mathcal{F}\rangle ⟨ F ⟩ for the smallest operation clone C \mathcal{C} C which contains F \mathcal{F} F , and call C \mathcal{C} C the clone generated by F \mathcal{F} F ; similarly, we also say that the elements of C \mathcal{C} C are generated by F \mathcal{F} F . Note that the set of all clones over a set B B B forms a lattice: the meet of two operation clones C \mathcal{C} C and D \mathcal{D} D is their intersection C ∩ D \mathcal{C} \cap\mathcal{D} C ∩ D (which is again a clone!); the join of C \mathcal{C} C and D \mathcal{D} D is the clone generated by their union, ⟨ C ∪ D ⟩ \langle\mathcal{C} \cup\mathcal{D}\rangle ⟨ C ∪ D ⟩ .
Inv-Pol
The most important source of operation clones in this text are polymorphism clones of digraphs and, more generally, structures. For simplicity, we only discuss relational structures; the step to structures that also involve function symbols is straightforward.
Let f f f be from O B ( n ) \mathcal{O}^{(n)}_{B} O B ( n ) , and let R ⊆ B m R \subseteq B^m R ⊆ B m be a relation. Then we say that f f f preserves R R R (and that R R R is invariant under f f f ) if f ( r 1 , … , r n ) ∈ R f(r_1,\ldots,r_n) \in R f ( r 1 , … , r n ) ∈ R whenever r 1 , … , r n ∈ R r_1,\ldots,r_n \in R r 1 , … , r n ∈ R , where f ( r 1 , … , r n ) f(r_1,\ldots,r_n) f ( r 1 , … , r n ) is calculated componentwise.
Example 6.2. A Boolean operation f : { 0 , 1 } k → { 0 , 1 } f \colon\{0,1\}^k \to\{0,1\} f : { 0 , 1 } k → { 0 , 1 } is called monotone if for all x 1 , … , x k x_1,\ldots,x_k x 1 , … , x k , y 1 , … , y k ∈ { 0 , 1 } y_1,\ldots,y_k \in\{0,1\} y 1 , … , y k ∈ { 0 , 1 } such that x i ≤ y i x_i \leq y_i x i ≤ y i we have f ( x 1 , … , x k ) ≤ f ( y 1 , … , y k ) f(x_1,\ldots,x_k) \leq f(y_1,\ldots,y_k) f ( x 1 , … , x k ) ≤ f ( y 1 , … , y k ) . Hence, f f f is monotone if and only if it preserves the Boolean relation { ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 1 ) } \{(0,0),(0,1),(1,1)\} {( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 1 )} .
If B \mathbb{B} B is a relational structure with domain B B B then Pol ( B ) \operatorname{Pol}(\mathbb{B}) Pol ( B ) contains precisely those operations that preserve all relations of B \mathbb{B} B .
Observation 6.3. Pol ( B ) \operatorname{Pol}(\mathbb{B}) Pol ( B ) is an operation clone.
Conversely, if F \mathcal{F} F is a set of operations on B B B , then we write Inv ( F ) \operatorname{Inv}(\mathcal{F}) Inv ( F ) for the set of all relations on B B B that are invariant under all operations in F \mathcal{F} F . It will be convenient to define the operator Pol \operatorname{Pol} Pol also for sets R \mathcal{R} R of relations over B B B , writing Pol ( R ) \operatorname{Pol}(\mathcal{R}) Pol ( R ) for the set of operations of O B \mathcal{O}_{B} O B that preserve all relations from R \mathcal{R} R .
Proposition 6.4. Let F \mathcal{F} F be a set of operations on a set B B B . Then ⟨ F ⟩ ⊆ Pol ( Inv ( F ) ) \langle\mathcal{F}\rangle\subseteq\operatorname{Pol}(\operatorname{Inv}(\mathcal{F})) ⟨ F ⟩ ⊆ Pol ( Inv ( F )) .
Proposition 6.5. Let F \mathcal{F} F be a set of operations on a finite set B B B . Then Pol ( Inv ( F ) ) = ⟨ F ⟩ \operatorname{Pol}(\operatorname{Inv}(\mathcal{F})) = \langle\mathcal{F}\rangle Pol ( Inv ( F )) = ⟨ F ⟩ .
Proof. Exercise 117. □ \square □
If B \mathbb{B} B is a relational structure, we write ⟨ B ⟩ p p \langle\mathbb{B}\rangle_{\mathrm{pp}} ⟨ B ⟩ pp for the set of all relations that are primitively positively definable over B \mathbb{B} B .
Proposition 6.6. Let B \mathcal{B} B be any relational structure. Then ⟨ B ⟩ p p ⊆ Inv ( Pol ( B ) ) \langle\mathcal{B}\rangle_{\mathrm{pp}} \subseteq\operatorname{Inv}(\operatorname{Pol}(\mathcal{B})) ⟨ B ⟩ pp ⊆ Inv ( Pol ( B )) .
Proof. Suppose that R R R is k k k -ary, has a primitive positive definition ψ ( x 1 , … , x k ) \psi(x_1,\ldots,x_k) ψ ( x 1 , … , x k ) , and let f f f be an l l l -ary polymorphism of B \mathcal{B} B . To show that f f f preserves R R R , let t 1 , … , t l t_1,\ldots,t_l t 1 , … , t l be k k k -tuples from R R R . Let x k + 1 , … , x n x_{k+1},\ldots,x_n x k + 1 , … , x n be the existentially quantified variables of ψ \psi ψ . Write s i s_i s i for the n n n -tuple which extends the k k k -tuple t i t_i t i such that s i s_i s i satisfies the quantifier-free part ψ ′ ( x 1 , … , x k , x k + 1 , … , x n ) \psi'(x_1,\ldots,x_k,x_{k+1},\ldots,x_n) ψ ′ ( x 1 , … , x k , x k + 1 , … , x n ) of ψ \psi ψ . Then the tuple f ( s 1 , … , s l ) f(s_1,\ldots,s_l) f ( s 1 , … , s l ) satisfies ψ ′ \psi' ψ ′ since f f f is a polymorphism. This shows that B ⊨ ψ ( f ( t 1 , … , t l ) ) \mathcal{B}\models\psi(f(t_1,\ldots,t_l)) B ⊨ ψ ( f ( t 1 , … , t l )) which is what we had to show.
Note that Proposition 6.6 also holds (and is useful!) for structures with an infinite domain; see, e.g., Exercise 122.
Theorem 6.7 (of [33, 62]). Let B \mathcal{B} B be a relational structure with a finite domain. Then
⟨ B ⟩ p p = Inv ( Pol ( B ) ) . \langle\mathcal{B}\rangle_{\mathrm{pp}}=\operatorname{Inv}(\operatorname{Pol}(\mathcal{B})). ⟨ B ⟩ pp = Inv ( Pol ( B )) . Proof. The left-to-right inclusion has been shown in Proposition 6.6. For the other inclusion, let R ∈ Inv ( Pol ( B ) ) R\in\operatorname{Inv}(\operatorname{Pol}(\mathcal{B})) R ∈ Inv ( Pol ( B )) be a relation of arity k k k . If R = ∅ R=\varnothing R = ∅ , then R R R is defined by ⊥ \bot ⊥ , so suppose that R R R is non-empty, and let a 1 , … , a w a^1,\ldots,a^w a 1 , … , a w be an enumeration of R R R . Let b 1 = ( b 1 1 , … , b 1 w ) b_1=(b_1^1,\ldots,b_1^w) b 1 = ( b 1 1 , … , b 1 w ) , b 2 = ( b 2 1 , … , b 2 w ) , … , b ℓ = ( b ℓ 1 , … , b ℓ w ) b_2=(b_2^1,\ldots,b_2^w),\ldots,b_\ell=(b_\ell^1,\ldots,b_\ell^w) b 2 = ( b 2 1 , … , b 2 w ) , … , b ℓ = ( b ℓ 1 , … , b ℓ w ) be an enumeration of B w B^w B w . Let φ \varphi φ be the quantifier-free part of the canonical query of B w \mathcal{B}^w B w (see Exercise 88 for the definition of B w \mathcal{B}^w B w and § 5.3 for the definition of canonical queries; hence, the variables of φ \varphi φ are w w w -tuples of elements of B B B ). Note that for every i ∈ [ k ] i\in[k] i ∈ [ k ] there exists j i ∈ [ ℓ ] j_i\in[\ell] j i ∈ [ ℓ ] such that ( a i 1 , … , a i w ) = b j i (a_i^1,\ldots,a_i^w)=b_{j_i} ( a i 1 , … , a i w ) = b j i .
We claim that
ψ ( x 1 , … , x k ) : = ∃ b 1 , … , b ℓ ( φ ∧ ⋀ i ∈ [ k ] x i = b j i ) \psi(x_1,\ldots,x_k):=\exists b_1,\ldots,b_\ell\left(\varphi\land\bigwedge_{i\in[k]}x_i=b_{j_i}\right) ψ ( x 1 , … , x k ) := ∃ b 1 , … , b ℓ φ ∧ i ∈ [ k ] ⋀ x i = b j i is a primitive positive definition of R R R .
We first show that a j a^j a j satisfies ψ \psi ψ for every j ∈ [ w ] j\in[w] j ∈ [ w ] . The elements b 1 j , … , b ℓ j ∈ B b_1^j,\ldots,b_\ell^j\in B b 1 j , … , b ℓ j ∈ B provide witnesses for the existentially quantified variables showing that a j = ( b j 1 j , … , b j k j ) a^j=(b_{j_1}^j,\ldots,b_{j_k}^j) a j = ( b j 1 j , … , b j k j ) satisfies ψ \psi ψ .
Conversely, suppose that ( t 1 , … , t k ) (t_1,\ldots,t_k) ( t 1 , … , t k ) satisfies ψ \psi ψ . The witnesses for the existentially quantified variables b 1 , … , b ℓ b_1,\ldots,b_\ell b 1 , … , b ℓ define a homomorphism f f f from B w \mathcal{B}^w B w to B \mathcal{B} B . Define b s : = ( b 1 s , … , b ℓ s ) ∈ B ℓ b^s:=(b_1^s,\ldots,b_\ell^s)\in B^\ell b s := ( b 1 s , … , b ℓ s ) ∈ B ℓ . Since ψ \psi ψ contains the conjuncts x i = b j i x_i=b_{j_i} x i = b j i , for i ∈ [ k ] i\in[k] i ∈ [ k ] , we have that t i = f ( b 1 , … , b w ) j i t_i=f(b^1,\ldots,b^w)_{j_i} t i = f ( b 1 , … , b w ) j i . Note that f f f is a polymorphism of B \mathcal{B} B and by assumption preserves R R R . Since the tuples a 1 , … , a w a^1,\ldots,a^w a 1 , … , a w are from R R R and
f ( a 1 , … , a w ) = ( f ( b 1 , … , b w ) j 1 , … , f ( b 1 , … , b w ) j k ) = ( t 1 , … , t k ) f(a^1,\ldots,a^w)=\left(f(b^1,\ldots,b^w)_{j_1},\ldots,f(b^1,\ldots,b^w)_{j_k}\right)=(t_1,\ldots,t_k) f ( a 1 , … , a w ) = ( f ( b 1 , … , b w ) j 1 , … , f ( b 1 , … , b w ) j k ) = ( t 1 , … , t k ) we obtain that $(t_1,\ldots,t_k)\in R.
Corollary 6.8. Let B \mathcal{B} B be a structure with a finite domain and a finite relational signature. The complexity of CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) only depends on Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) . If C \mathcal{C} C is such that Pol ( B ) ⊆ Pol ( C ) \operatorname{Pol}(\mathcal{B})\subseteq\operatorname{Pol}(\mathcal{C}) Pol ( B ) ⊆ Pol ( C ) , then CSP ( C ) \operatorname{CSP}(\mathcal{C}) CSP ( C ) reduces in linear time to CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) .
Proof. Direct consequence of Theorem 6.7 and Lemma 5.8.
signature of graphs. However, there is a modified version of the theorem, where primitive positive definitions are replaced by formulas that additionally allow to form unions of chains of relations and infinite intersections; see [21]. Theorem 6.7 is true without modification if the structure B \mathcal{B} B is countably infinite and ω \omega ω -categorical [26]. There are also many other infinite structures where Theorem 6.7 remains true; we give an example below.
Example 6.10. Let F F F be a field (fields will be explicitly introduced in Example 7.2). Let R + R_{+} R + be the graph { ( x , y , z ) ∈ F 3 ∣ x + y = z } \{(x,y,z)\in F^{3}\mid x+y=z\} {( x , y , z ) ∈ F 3 ∣ x + y = z } of the addition in F F F , and for α ∈ F \alpha\in F α ∈ F let S α S_{\alpha} S α be the binary relation { ( x , α x ) ∣ x ∈ F } \{(x,\alpha x)\mid x\in F\} {( x , α x ) ∣ x ∈ F } . We write F ~ \widetilde{F} F for the relational structure ( F ; R + , ( S λ ) λ ∈ F ) (F;R_{+},(S_{\lambda})_{\lambda\in F}) ( F ; R + , ( S λ ) λ ∈ F ) (so this structure can be viewed as a relational version of the reduct of F F F in the signature of modules; see Section 7.3).
The following statement is true for arbitrary fields, but already interesting for finite fields, and will be used in later sections.
⟨ F ~ ⟩ p p = Inv ( Pol ( F ~ ) ) (2) \langle\widetilde{F}\rangle_{\mathrm{pp}}=\operatorname{Inv}(\operatorname{Pol}(\widetilde{F})) \tag*{(2)} ⟨ F ⟩ pp = Inv ( Pol ( F )) (2)
= Inv ( { ( x , y ) ↦ x + y } ∪ { x ↦ α x ∣ α ∈ F } ) (3) =\operatorname{Inv}\left(\{(x,y)\mapsto x+y\}\cup\{x\mapsto\alpha x\mid\alpha\in F\}\right) \tag*{(3)} = Inv ( {( x , y ) ↦ x + y } ∪ { x ↦ α x ∣ α ∈ F } ) (3)
= { R ∣ n ∈ N , R linear subspace of F n } ∪ { ∅ } (4) =\left\{R\mid n\in\mathbb{N},\ R\text{ linear subspace of }F^{n}\right\}\cup\{\varnothing\} \tag*{(4)} = { R ∣ n ∈ N , R linear subspace of F n } ∪ { ∅ } (4)
= { { x ∈ F n ∣ A x = 0 } ∣ n , m ∈ N , A ∈ F m × n } ∪ { ∅ } (5) =\left\{\{x\in F^{n}\mid Ax=0\}\mid n,m\in\mathbb{N},\ A\in F^{m\times n}\right\}\cup\{\varnothing\} \tag*{(5)} = { { x ∈ F n ∣ A x = 0 } ∣ n , m ∈ N , A ∈ F m × n } ∪ { ∅ } (5)
Pol ( F ~ ) = ⟨ { ( x , y ) ↦ x + y } ∪ { x ↦ α x ∣ α ∈ F } ⟩ (6) \operatorname{Pol}(\widetilde{F})=\left\langle\{(x,y)\mapsto x+y\}\cup\{x\mapsto\alpha x\mid\alpha\in F\}\right\rangle \tag*{(6)} Pol ( F ) = ⟨ {( x , y ) ↦ x + y } ∪ { x ↦ α x ∣ α ∈ F } ⟩ (6)
= { ( x 1 , … , x k ) ↦ ∑ i = 1 k α i x i ∣ k ≥ 1 , α 1 , … , α k ∈ F } (7) =\left\{(x_{1},\ldots,x_{k})\mapsto\sum_{i=1}^{k}\alpha_{i}x_{i}\mid k\geq1,\alpha_{1},\ldots,\alpha_{k}\in F\right\} \tag*{(7)} = { ( x 1 , … , x k ) ↦ i = 1 ∑ k α i x i ∣ k ≥ 1 , α 1 , … , α k ∈ F } (7)
We prove (2), (3), (4), and (5) by showing inclusions in cyclic order. The inclusion ⟨ F ~ ⟩ p p ⊆ Inv ( Pol ( F ~ ) ) \langle\widetilde{F}\rangle_{\mathrm{pp}}\subseteq\operatorname{Inv}(\operatorname{Pol}(\widetilde{F})) ⟨ F ⟩ pp ⊆ Inv ( Pol ( F )) follows from Proposition 6.6.
Clearly, the relation R + R_{+} R + is preserved by ( x , y ) ↦ x + y (x,y)\mapsto x+y ( x , y ) ↦ x + y and preserved by x ↦ α x x\mapsto\alpha x x ↦ α x for every α ∈ F \alpha\in F α ∈ F . Similarly, for every λ ∈ F \lambda\in F λ ∈ F the relation S λ S_{\lambda} S λ is preserved by these operations. Hence,
{ ( x , y ) ↦ x + y } ∪ { x ↦ α x ∣ α ∈ F } ⊆ Pol ( F ~ ) . (8) \{(x,y)\mapsto x+y\}\cup\{x\mapsto\alpha x\mid\alpha\in F\}\subseteq\operatorname{Pol}(\widetilde{F}). \tag*{(8)} {( x , y ) ↦ x + y } ∪ { x ↦ α x ∣ α ∈ F } ⊆ Pol ( F ) . (8)
Since the Galois-connection Inv \operatorname{Inv} Inv -Pol \operatorname{Pol} Pol is antitone, we obtain the left-to-right inclusion for (3). The equality (4) is by definition of linear subspaces: they are the non-empty subsets closed under addition and scalar multiplication.
For the left-to-right inclusion of (5), suppose that U U U is a linear subspace of F n F^{n} F n and that ( u 1 , … , u m ) (u_{1},\ldots,u_{m}) ( u 1 , … , u m ) is a basis of U U U . By Steinitz’ theorem there exists a basis B B B of F n F^{n} F n of the form ( u 1 , … , u m , u m + 1 , … , u n ) (u_{1},\ldots,u_{m},u_{m+1},\ldots,u_{n}) ( u 1 , … , u m , u m + 1 , … , u n ) . Let T T T be the basis change matrix which maps u i u_{i} u i to e i : = ( 0 , … , 0 , 1 i , 0 , … , 0 ) e_{i}:=(0,\ldots,0,\underset{i}{1},0,\ldots,0) e i := ( 0 , … , 0 , i 1 , 0 , … , 0 ) , which can be written as T = ( X R ) T=\begin{pmatrix}X\\R\end{pmatrix} T = ( X R ) where X ∈ F ( m , n ) X\in F^{(m,n)} X ∈ F ( m , n ) and R ∈ F ( n − m , n ) R\in F^{(n-m,n)} R ∈ F ( n − m , n ) .
In the following, if S ⊆ F n S\subseteq F^{n} S ⊆ F n , we write
Span ( S ) : = { ∑ i ∈ { 1 , … , k } α i u i ∣ k ∈ N , u 1 , … , u k ∈ S , α 1 , … , α k ∈ F } \operatorname{Span}(S):=\left\{\sum_{i\in\{1,\ldots,k\}}\alpha_{i}u_{i}\mid k\in\mathbb{N},u_{1},\ldots,u_{k}\in S,\alpha_{1},\ldots,\alpha_{k}\in F\right\} Span ( S ) := ⎩ ⎨ ⎧ i ∈ { 1 , … , k } ∑ α i u i ∣ k ∈ N , u 1 , … , u k ∈ S , α 1 , … , α k ∈ F ⎭ ⎬ ⎫
for the linear hull of S S S (i.e., for the smallest subalgebra of F n F^{n} F n that contains S S S , in the signature of modules). Then
v ∈ U ⇔ v ∈ ⟨ u 1 , … , u m ⟩ ⇔ T v ∈ Span ( { T u 1 , … , T u m } ) = Span ( { e 1 , … , e m } ) ⇔ ( T v ) m + 1 = ⋯ = ( T v ) n = 0 ⇔ R v = 0 ⇔ v ∈ { x ∣ R x = 0 } . v \in U \Leftrightarrow v \in\langle u_1,\ldots,u_m\rangle
\Leftrightarrow Tv \in\operatorname{Span}(\{Tu_1,\ldots,Tu_m\}) = \operatorname{Span}(\{e_1,\ldots,e_m\})
\Leftrightarrow(Tv)_{m+1}=\cdots=(Tv)_n=0
\Leftrightarrow Rv=0
\Leftrightarrow v \in\{x \mid Rx=0\}. v ∈ U ⇔ v ∈ ⟨ u 1 , … , u m ⟩ ⇔ T v ∈ Span ({ T u 1 , … , T u m }) = Span ({ e 1 , … , e m }) ⇔ ( T v ) m + 1 = ⋯ = ( T v ) n = 0 ⇔ R v = 0 ⇔ v ∈ { x ∣ R x = 0 } .
Finally, it is a good exercise to write primitive positive definitions of the solution sets of systems of homogeneous linear equations over the structure F \mathfrak{F} F , which closes the chain of implications (Exercise 119).
We prove (6) and (7) by showing inclusions in cyclic order. The left-to-right inclusion in (6) follows from (8) and Observation 6.3 . Clearly, every operation that can be composed from the operations in { ( x , y ) ↦ x + y } ∪ { x ↦ α x ∣ α ∈ F } \{(x,y)\mapsto x+y\}\cup\{x\mapsto\alpha x\mid\alpha\in F\} {( x , y ) ↦ x + y } ∪ { x ↦ α x ∣ α ∈ F } can be written in the form ( x 1 , … , x k ) ↦ ∑ i = 1 k α i x i (x_1,\ldots,x_k)\mapsto\sum_{i=1}^{k}\alpha_i x_i ( x 1 , … , x k ) ↦ ∑ i = 1 k α i x i for some k ≥ 1 k\geq1 k ≥ 1 and some elements α 1 , … , α k ∈ F \alpha_1,\ldots,\alpha_k\in F α 1 , … , α k ∈ F , and this shows the left-to-right inclusion in (7). Finally, these operations preserve addition and multiplication with scalars, which closes the chain of inclusions. △ \triangle △
Example 6.11. Using the same notation as in the previous example, let G \mathfrak{G} G be the expansion of F \mathfrak{F} F by all unary relations of the form { α } \{\alpha\} { α } for α ∈ F \alpha\in F α ∈ F .
⟨ G ⟩ p p = Inv ( Pol ( G ) ) (9) \langle\mathfrak{G}\rangle_{\mathrm{pp}}=\operatorname{Inv}(\operatorname{Pol}(\mathfrak{G})) \tag*{(9)} ⟨ G ⟩ pp = Inv ( Pol ( G )) (9)
= Inv ( { ( x , y , z ) ↦ x − y + z } ∪ { ( x , y ) ↦ α 1 x + α 2 y ∣ α 1 + α 2 = 1 } ) (10) =\operatorname{Inv}(\{(x,y,z)\mapsto x-y+z\}\cup\{(x,y)\mapsto\alpha_1x+\alpha_2y\mid\alpha_1+\alpha_2=1\}) \tag*{(10)} = Inv ({( x , y , z ) ↦ x − y + z } ∪ {( x , y ) ↦ α 1 x + α 2 y ∣ α 1 + α 2 = 1 }) (10)
= { R ∣ n ∈ N , R affine subspace of F n } ∪ { ∅ } (11) =\{R\mid n\in\mathbb{N},R\text{ affine subspace of }F^n\}\cup\{\varnothing\} \tag*{(11)} = { R ∣ n ∈ N , R affine subspace of F n } ∪ { ∅ } (11)
= { { x ∈ F n ∣ A x = b } ∣ n , m ∈ N , A ∈ F m × n , b ∈ F m } (12) =\{\{x\in F^n\mid Ax=b\}\mid n,m\in\mathbb{N},A\in F^{m\times n},b\in F^m\} \tag*{(12)} = {{ x ∈ F n ∣ A x = b } ∣ n , m ∈ N , A ∈ F m × n , b ∈ F m } (12)
Pol ( G ) = ⟨ { ( x , y , z ) ↦ x − y + z } ∪ { ( x , y ) ↦ α 1 x + α 2 y ∣ α 1 + α 2 = 1 } ⟩ (13) \operatorname{Pol}(\mathfrak{G})=\langle\{(x,y,z)\mapsto x-y+z\}\cup\{(x,y)\mapsto\alpha_1x+\alpha_2y\mid\alpha_1+\alpha_2=1\}\rangle \tag*{(13)} Pol ( G ) = ⟨{( x , y , z ) ↦ x − y + z } ∪ {( x , y ) ↦ α 1 x + α 2 y ∣ α 1 + α 2 = 1 }⟩ (13)
= { ( x 1 , … , x n ) ↦ ∑ i = 1 n α i x i ∣ n ≥ 1 , α 1 + ⋯ + α n = 1 } (14) =\{(x_1,\ldots,x_n)\mapsto\sum_{i=1}^{n}\alpha_i x_i\mid n\geq1,\alpha_1+\cdots+\alpha_n=1\} \tag*{(14)} = {( x 1 , … , x n ) ↦ i = 1 ∑ n α i x i ∣ n ≥ 1 , α 1 + ⋯ + α n = 1 } (14)
We show the inclusions in cyclic order. The inclusion ⟨ G ⟩ p p ⊆ Inv ( Pol ( G ) ) \langle\mathfrak{G}\rangle_{\mathrm{pp}}\subseteq\operatorname{Inv}(\operatorname{Pol}(\mathfrak{G})) ⟨ G ⟩ pp ⊆ Inv ( Pol ( G )) follows from Proposition 6.6.
The operation m : F 3 → F m:F^3\to F m : F 3 → F given by ( x , y , z ) ↦ x − y + z (x,y,z)\mapsto x-y+z ( x , y , z ) ↦ x − y + z clearly preserves not only the relations from F \mathfrak{F} F , but also all unary relations of the form { α } \{\alpha\} { α } for α ∈ F \alpha\in F α ∈ F , so m ∈ Pol ( G ) m\in\operatorname{Pol}(\mathfrak{G}) m ∈ Pol ( G ) . Similarly, we verify that ( x , y ) ↦ α 1 x + α 2 y ∈ Pol ( G ) (x,y)\mapsto\alpha_1x+\alpha_2y\in\operatorname{Pol}(\mathfrak{G}) ( x , y ) ↦ α 1 x + α 2 y ∈ Pol ( G ) whenever α 1 + α 2 = 1 \alpha_1+\alpha_2=1 α 1 + α 2 = 1 . Since the Galois-connection Inv \operatorname{Inv} Inv -Pol \operatorname{Pol} Pol is antitone, we obtain the left-to-right inclusion for (10).
For the left-to-right inclusion in (11), let R ∈ Inv ( { m } ) R\in\operatorname{Inv}(\{m\}) R ∈ Inv ({ m }) . If R = ∅ R=\varnothing R = ∅ there is nothing to be shown. Otherwise, let o ∈ R o\in R o ∈ R . We have to show that S : = { v − o ∣ v ∈ R } S:=\{v-o\mid v\in R\} S := { v − o ∣ v ∈ R } is a linear subspace. Let u 1 , u 2 ∈ S u_1,u_2\in S u 1 , u 2 ∈ S . Then
u 1 + u 2 = v 1 − o + v 2 − o = ( v 1 − o + v 2 ) − o = m ( v 1 , o , v 2 ) ⏟ ∈ R − o ∈ S . u_1+u_2=v_1-o+v_2-o=(v_1-o+v_2)-o=\underbrace{m(v_1,o,v_2)}_{\in R}-o\in S. u 1 + u 2 = v 1 − o + v 2 − o = ( v 1 − o + v 2 ) − o = ∈ R m ( v 1 , o , v 2 ) − o ∈ S .
To see that S S S is invariant under scalar multiplication, let u ∈ S u\in S u ∈ S and α ∈ F \alpha\in F α ∈ F . By definition of S S S there exists v ∈ R v\in R v ∈ R such that u = v − o u=v-o u = v − o . Then
α u = α ( v − o ) = ( α v + ( 1 − α ) o ) ⏟ ∈ R − o ∈ S . \alpha u=\alpha(v-o)=\underbrace{(\alpha v+(1-\alpha)o)}_{\in R}-o\in S. α u = α ( v − o ) = ∈ R ( α v + ( 1 − α ) o ) − o ∈ S .
For the left-to-right inclusion of (12) , let R R R be an affine subspace of F n F^n F n . Then R = { w + u ∣ u ∈ U } R = \{w + u \mid u \in U\} R = { w + u ∣ u ∈ U } for a linear subspace U U U of F n F^n F n . In Example 6.10 we have seen that there exists A ∈ F m × n A \in F^{m \times n} A ∈ F m × n with U = { x ∣ A x = 0 } U = \{x \mid Ax = 0\} U = { x ∣ A x = 0 } . Then
R = { w + u ∣ A u = 0 } = { w ′ ∣ A ( w ′ − w ) = 0 } = { x ∣ A x = A w } , R = \{w + u \mid Au = 0\} = \{w' \mid A(w' - w) = 0\} = \{x \mid Ax = Aw\}, R = { w + u ∣ A u = 0 } = { w ′ ∣ A ( w ′ − w ) = 0 } = { x ∣ A x = A w } ,
so R R R is the solution set of a system of linear equations. Since ∅ \varnothing ∅ is the solution space of the unsatisfiable equation system { 0 = 1 } \{0 = 1\} { 0 = 1 } , this completes the proof.
Similarly as in Example 6.10, it is a good exercise to find a primitive positive definition of the solution space of a system of linear equations A x = b Ax = b A x = b in G \mathcal{G} G , which closes the chain of inclusions.
We prove (13) and (14) by showing inclusions in cyclic order. The left-to-right inclusion in (13) follows from the fact that all relations of G \mathcal{G} G are preserved by m m m and by ( x , y ) ↦ α 1 x + α 2 y (x,y) \mapsto\alpha_1x + \alpha_2y ( x , y ) ↦ α 1 x + α 2 y whenever α 1 , α 2 ∈ F \alpha_1,\alpha_2 \in F α 1 , α 2 ∈ F are such that α 1 + α 2 = 1 \alpha_1 + \alpha_2 = 1 α 1 + α 2 = 1 , and Observation 6.3. Every operation that can be composed from these operations can be written in the form ( x 1 , … , x n ) ↦ ∑ i = 1 n α i x i (x_1,\ldots,x_n) \mapsto\sum_{i=1}^{n}\alpha_i x_i ( x 1 , … , x n ) ↦ ∑ i = 1 n α i x i for some n ≥ 1 n \ge1 n ≥ 1 and some elements α 1 , … , α n ∈ F \alpha_1,\ldots,\alpha_n \in F α 1 , … , α n ∈ F such that α 1 + ⋯ + α n = 1 \alpha_1 + \cdots+ \alpha_n = 1 α 1 + ⋯ + α n = 1 , and this shows the left-to-right inclusion in (14) . Finally, these operations preserve all relations of G \mathcal{G} G , which closes the chain of inclusions. △ \triangle △
Finitely related clones
All the examples of clones C \mathcal{C} C on finite domains that we have seen so far have the following interesting property.
Definition 6.12. A clone C \mathcal{C} C with domain D D D is called finitely related if there is a structure D \mathcal{D} D with domain D D D and finitely many relations such that Pol ( D ) = C \operatorname{Pol}(\mathcal{D}) = \mathcal{C} Pol ( D ) = C .
Example 6.13. If F F F is a finite field, then the clone of all operations on F F F of the form ( x 1 , … , x k ) ↦ ∑ i = 1 k α i x i (x_1,\ldots,x_k) \mapsto\sum_{i=1}^{k}\alpha_i x_i ( x 1 , … , x k ) ↦ ∑ i = 1 k α i x i where α 1 , … , α k ∈ F \alpha_1,\ldots,\alpha_k \in F α 1 , … , α k ∈ F , is a finitely related clone C \mathcal{C} C , because C = Pol ( F ; R + , ( S λ ) λ ∈ F ) \mathcal{C} = \operatorname{Pol}(F; R_+,(S_\lambda)_{\lambda\in F}) C = Pol ( F ; R + , ( S λ ) λ ∈ F ) as we have seen in Example 6.10. Similarly, the clone D \mathcal{D} D of all operations of the form ( x 1 , … , x n ) ↦ ∑ i = 1 n α i x i (x_1,\ldots,x_n) \mapsto\sum_{i=1}^{n}\alpha_i x_i ( x 1 , … , x n ) ↦ ∑ i = 1 n α i x i for α 1 , … , α n ∈ F \alpha_1,\ldots,\alpha_n \in F α 1 , … , α n ∈ F such that α 1 + ⋯ + α n = 1 \alpha_1 + \cdots+ \alpha_n = 1 α 1 + ⋯ + α n = 1 from Example 6.11 is finitely related, because D = Pol ( F ; R + , ( S λ ) λ ∈ F , { 1 } ) \mathcal{D} = \operatorname{Pol}(F; R_+,(S_\lambda)_{\lambda\in F},\{1\}) D = Pol ( F ; R + , ( S λ ) λ ∈ F , { 1 }) . △ \triangle △
Example 6.14. Let p : { 0 , 1 } 3 → { 0 , 1 } p:\{0,1\}^3 \to\{0,1\} p : { 0 , 1 } 3 → { 0 , 1 } be the operation given by
( x , y , z ) ↦ x ∧ ( y ∨ z ) . (x,y,z) \mapsto x \wedge(y \vee z). ( x , y , z ) ↦ x ∧ ( y ∨ z ) .
The clone C \mathcal{C} C over { 0 , 1 } \{0,1\} { 0 , 1 } which is generated by p p p is not finitely related. This can be seen as follows. A relation R ⊆ { 0 , 1 } k R \subseteq\{0,1\}^k R ⊆ { 0 , 1 } k is preserved by p p p if and only if it can be defined by a conjunction of clauses such that each clause either consists of a single positive literal, or a positive and a negative literal, or only negative literals (Exercise 135). For any finite subset of these relations there is an n ∈ N n \in\mathbb{N} n ∈ N such that all clauses needed to define these relations have at most n − 1 n - 1 n − 1 literals. But then this set of relations is preserved by the operation f n f_n f n given by
( x 1 , … , x n ) ↦ ⋁ i = 1 n ⋀ j ≠ i x j (x_1,\ldots,x_n) \mapsto\bigvee_{i=1}^{n} \bigwedge_{j \ne i} x_j ( x 1 , … , x n ) ↦ i = 1 ⋁ n j = i ⋀ x j
That is, f n f_n f n returns 1 if all but at most one argument are 1; such operations will be generalised in Section 6.7.
Clearly, f n f_n f n is idempotent and hence preserves unit clauses;
f n f_n f n preserves clauses of the form x ∨ ¬ y x \lor\neg y x ∨ ¬ y , because f n f_n f n is monotone (Example 6.2);
f n f_n f n preserves negative clauses of the form ¬ x 1 ∨ ⋯ ∨ ¬ x ℓ \neg x_1 \lor\cdots\lor\neg x_\ell ¬ x 1 ∨ ⋯ ∨ ¬ x ℓ , where ℓ ≤ n − 1 \ell\le n - 1 ℓ ≤ n − 1 . To see this, suppose that t 1 , … , t n ∈ { 0 , 1 } ℓ t_1,\ldots,t_n \in\{0,1\}^{\ell} t 1 , … , t n ∈ { 0 , 1 } ℓ are such that f n ( t 1 , … , t n ) = ( 1 , … , 1 ) f_n(t_1,\ldots,t_n)=(1,\ldots,1) f n ( t 1 , … , t n ) = ( 1 , … , 1 ) . In each coordinate, at most one of the n n n input tuples contains a zero. Hence, at least one of the n n n input tuples equals 1 1 1 in all ℓ \ell ℓ coordinates, and hence does not satisfy the clause.
However, f n f_n f n does not preserve the relation { 0 , 1 } n ∖ { ( 1 , … , 1 ) } \{0,1\}^n \setminus\{(1,\ldots,1)\} { 0 , 1 } n ∖ {( 1 , … , 1 )} , because
f n ( ( 0 , 1 , … , 1 ) , ( 1 , 0 , 1 , … , 1 ) , … , ( 1 , … , 1 , 0 ) ) = ( 1 , … , 1 ) . f_n((0,1,\ldots,1),(1,0,1,\ldots,1),\ldots,(1,\ldots,1,0))=(1,\ldots,1). f n (( 0 , 1 , … , 1 ) , ( 1 , 0 , 1 , … , 1 ) , … , ( 1 , … , 1 , 0 )) = ( 1 , … , 1 ) .
This relation is preserved by p p p because it has the definition ¬ x 1 ∨ ⋯ ∨ ¬ x n \neg x_1 \lor\cdots\lor\neg x_n ¬ x 1 ∨ ⋯ ∨ ¬ x n (Exercise 135). This shows that C \mathcal{C} C is not finitely related. △
The question whether a given finite algebra is finitely related is undecidable [99]. On the positive side, note the following corollary of Theorem 6.7 .
Corollary 6.15. Let C \mathcal{C} C be an operation clone on a finite set B B B , and let k ≥ 1 k \ge1 k ≥ 1 . Then there exists a relational structure B \mathfrak{B} B on B B B with finite signature such that C ⊆ Pol ( B ) \mathcal{C} \subseteq\operatorname{Pol}(\mathfrak{B}) C ⊆ Pol ( B ) and Pol ( B ) ( n ) = C ( n ) \operatorname{Pol}(\mathfrak{B})^{(n)}=\mathcal{C}^{(n)} Pol ( B ) ( n ) = C ( n ) for every 1 ≤ n ≤ k 1 \le n \le k 1 ≤ n ≤ k . If C \mathcal{C} C is idempotent, we may additionally require that B \mathfrak{B} B contains all singleton unary relations.
Proof. By Proposition 6.5 , every operation f f f on B B B of arity at most k k k that does not belong to C \mathcal{C} C fails to preserve some relation R f ∈ Inv ( C ) R_f \in\operatorname{Inv}(\mathcal{C}) R f ∈ Inv ( C ) . There are only finitely many such operations; let B \mathfrak{B} B have precisely the chosen relations R f R_f R f as its basic relations. Then C ⊆ Pol ( B ) \mathcal{C} \subseteq\operatorname{Pol}(\mathfrak{B}) C ⊆ Pol ( B ) , and the choice of the R f R_f R f gives the asserted equalities. If C \mathcal{C} C is idempotent, all singleton unary relations belong to Inv ( C ) \operatorname{Inv}(\mathcal{C}) Inv ( C ) , so adding them preserves these properties.
Exercise 116. Show that the relation ≠ \ne = is not primitively positively definable in the graph C 6 C_6 C 6 (the undirected cycle with 6 vertices).
Exercise 117. Prove Proposition 6.5 .
Exercise 118. Find a digraph with the properties described in Remark 6.9.
Exercise 119. Let n , m ∈ N n,m \in\mathbb{N} n , m ∈ N , A ∈ F m × n A \in F^{m \times n} A ∈ F m × n , b ∈ F m b \in F^m b ∈ F m . Give a primitive positive definition of { x ∈ F n ∣ A x = b } \{x \in F^n \mid Ax=b\} { x ∈ F n ∣ A x = b } in the structure G \mathfrak{G} G from Example 6.11.
Exercise 120. For an operation f : A k → A f:A^k \to A f : A k → A and a relation R R R on A A A , we write ⟨ R ⟩ f \langle R\rangle_f ⟨ R ⟩ f for the smallest relation that contains R R R and is preserved by f f f . Similarly, if F \mathcal{F} F is a set of operations, we write ⟨ R ⟩ F \langle R\rangle_{\mathcal{F}} ⟨ R ⟩ F for the smallest relation that contains R R R and is preserved by all operations of F \mathcal{F} F . Show that if A \mathcal{A} A is a structure with a finite domain, then ⟨ R ⟩ Pol ( A ) \langle R\rangle_{\operatorname{Pol}(\mathcal{A})} ⟨ R ⟩ Pol ( A ) equals the smallest relation that contains R R R and has a primitive positive definition over A \mathcal{A} A .
Exercise 121. Show that (4) (replacing ‘subspace’ by ‘submodule’), (6), (7), and (14) also hold if F F F is a ring rather than a field.
Exercise 122. Let R + R_{+} R + and R ∗ R_{*} R ∗ be the relations as defined in Exercise 106. Show that R ∗ R_{*} R ∗ is not primitively positively definable in the structure ( Q ; R + , { ( x , y ) ∣ y ≥ x 2 } ) (\mathbb{Q}; R_{+}, \{(x,y) \mid y \ge x^{2}\}) ( Q ; R + , {( x , y ) ∣ y ≥ x 2 }) .
Exercise 123. Show that (5) fails in general if F F F is a ring (Example 7.2) rather than a field.
Essentially Unary Clones
An operation f : B k → B f : B^{k} \to B f : B k → B is called essentially unary if there is an i ∈ { 1 , … , k } i \in\{1,\ldots,k\} i ∈ { 1 , … , k } and a unary operation f 0 f_{0} f 0 such that f ( x 1 , … , x k ) = f 0 ( x i ) f(x_{1},\ldots,x_{k}) = f_{0}(x_{i}) f ( x 1 , … , x k ) = f 0 ( x i ) for all x 1 , … , x k ∈ B x_{1},\ldots,x_{k} \in B x 1 , … , x k ∈ B . Operations that are not essentially unary are called essential .6 We say that f f f depends on argument i i i if there are r , s ∈ B k r,s \in B^{k} r , s ∈ B k such that f ( r ) ≠ f ( s ) f(r) \ne f(s) f ( r ) = f ( s ) and r j = s j r_{j} = s_{j} r j = s j for all j ∈ { 1 , … , k } ∖ { i } j \in\{1,\ldots,k\} \setminus\{i\} j ∈ { 1 , … , k } ∖ { i } .
Lemma 6.16. Let f ∈ O B f \in\mathcal{O}_{B} f ∈ O B be an operation. Then the following are equivalent.
f f f is essentially unary.
f f f preserves P B 3 : = { ( a , b , c ) ∈ B 3 ∣ a = b or b = c } P_{B}^{3} := \{(a,b,c) \in B^{3} \mid a=b \text{ or } b=c\} P B 3 := {( a , b , c ) ∈ B 3 ∣ a = b or b = c } .
f f f preserves P B 4 : = { ( a , b , c , d ) ∈ B 4 ∣ a = b or c = d } P_{B}^{4} := \{(a,b,c,d) \in B^{4} \mid a=b \text{ or } c=d\} P B 4 := {( a , b , c , d ) ∈ B 4 ∣ a = b or c = d } .
f f f depends on at most one argument.
Proof. Let k k k be the arity of f f f . The implication from (1) to (2) is obvious, since unary operations clearly preserve P B 3 P_{B}^{3} P B 3 .
To show the implication from (2) to (3), we show the contrapositive, and assume that f f f violates P B 4 P_{B}^{4} P B 4 . By permuting arguments of f f f , we can assume that there are 4-tuples a 1 , … , a k ∈ P B 4 a^{1},\ldots,a^{k} \in P_{B}^{4} a 1 , … , a k ∈ P B 4 with f ( a 1 , … , a k ) ∉ P B 4 f(a^{1},\ldots,a^{k}) \notin P_{B}^{4} f ( a 1 , … , a k ) ∈ / P B 4 and l ≤ k l \le k l ≤ k such that in a 1 , … , a l a^{1},\ldots,a^{l} a 1 , … , a l the first two coordinates are equal, and in a l + 1 , … , a k a^{l+1},\ldots,a^{k} a l + 1 , … , a k the last two coordinates are equal. Let c : = ( a 1 1 , … , a l 1 , a l + 1 l + 1 , … , a k k ) c := (a_{1}^{1},\ldots,a_{l}^{1},a_{l+1}^{l+1},\ldots,a_{k}^{k}) c := ( a 1 1 , … , a l 1 , a l + 1 l + 1 , … , a k k ) . Since f ( a 1 , … , a k ) ∉ P B 4 f(a^{1},\ldots,a^{k}) \notin P_{B}^{4} f ( a 1 , … , a k ) ∈ / P B 4 we have f ( a 1 1 , … , a l 1 , a l + 1 l + 1 , … , a k k ) ≠ f ( a 1 2 , … , a l 2 , a l + 1 l + 1 , … , a k k ) f(a_{1}^{1},\ldots,a_{l}^{1},a_{l+1}^{l+1},\ldots,a_{k}^{k}) \ne f(a_{1}^{2},\ldots,a_{l}^{2},a_{l+1}^{l+1},\ldots,a_{k}^{k}) f ( a 1 1 , … , a l 1 , a l + 1 l + 1 , … , a k k ) = f ( a 1 2 , … , a l 2 , a l + 1 l + 1 , … , a k k ) , and therefore f ( c ) ≠ f ( a 1 1 , … , a l 1 , a l + 1 l + 1 , … , a k k ) f(c) \ne f(a_{1}^{1},\ldots,a_{l}^{1},a_{l+1}^{l+1},\ldots,a_{k}^{k}) f ( c ) = f ( a 1 1 , … , a l 1 , a l + 1 l + 1 , … , a k k ) or f ( c ) ≠ f ( a 1 2 , … , a l 2 , a l + 1 l + 1 , … , a k k ) f(c) \ne f(a_{1}^{2},\ldots,a_{l}^{2},a_{l+1}^{l+1},\ldots,a_{k}^{k}) f ( c ) = f ( a 1 2 , … , a l 2 , a l + 1 l + 1 , … , a k k ) . Let d = ( a 1 1 , … , a l 1 , a l + 1 l + 1 , … , a k k ) d=(a_{1}^{1},\ldots,a_{l}^{1},a_{l+1}^{l+1},\ldots,a_{k}^{k}) d = ( a 1 1 , … , a l 1 , a l + 1 l + 1 , … , a k k ) in the first case, and d = ( a 1 2 , … , a l 2 , a l + 1 l + 1 , … , a k k ) d=(a_{1}^{2},\ldots,a_{l}^{2},a_{l+1}^{l+1},\ldots,a_{k}^{k}) d = ( a 1 2 , … , a l 2 , a l + 1 l + 1 , … , a k k ) in the second case. Likewise, we have f ( c ) ≠ f ( a 1 3 , … , a l 3 , a l + 1 l + 1 , … , a k k ) f(c) \ne f(a_{1}^{3},\ldots,a_{l}^{3},a_{l+1}^{l+1},\ldots,a_{k}^{k}) f ( c ) = f ( a 1 3 , … , a l 3 , a l + 1 l + 1 , … , a k k ) or f ( c ) ≠ f ( a 1 4 , … , a l 4 , a l + 1 l + 1 , … , a k k ) f(c) \ne f(a_{1}^{4},\ldots,a_{l}^{4},a_{l+1}^{l+1},\ldots,a_{k}^{k}) f ( c ) = f ( a 1 4 , … , a l 4 , a l + 1 l + 1 , … , a k k ) , and let e = ( a 1 3 , … , a l 3 , a l + 1 l + 1 , … , a k k ) e=(a_{1}^{3},\ldots,a_{l}^{3},a_{l+1}^{l+1},\ldots,a_{k}^{k}) e = ( a 1 3 , … , a l 3 , a l + 1 l + 1 , … , a k k ) in the first, and e = ( a 1 4 , … , a l 4 , a l + 1 l + 1 , … , a k k ) e=(a_{1}^{4},\ldots,a_{l}^{4},a_{l+1}^{l+1},\ldots,a_{k}^{k}) e = ( a 1 4 , … , a l 4 , a l + 1 l + 1 , … , a k k ) in the second case. Then for each i ≤ k i \le k i ≤ k , the tuple ( d i , c i , e i ) (d_{i},c_{i},e_{i}) ( d i , c i , e i ) is from P B 3 P_{B}^{3} P B 3 , but ( f ( d ) , f ( c ) , f ( e ) ) ∉ P B 3 (f(d),f(c),f(e)) \notin P_{B}^{3} ( f ( d ) , f ( c ) , f ( e )) ∈ / P B 3 .
The proof of the implication from (3) to (4) is again by contraposition. Suppose f f f depends on the i i i -th and j j j -th argument, $1 \le i \ne j \le k$. Hence there exist tuples a 1 , b 1 , a 2 , b 2 ∈ B k a_{1},b_{1},a_{2},b_{2} \in B^{k} a 1 , b 1 , a 2 , b 2 ∈ B k such that a 1 , b 1 a_{1},b_{1} a 1 , b 1 and a 2 , b 2 a_{2},b_{2} a 2 , b 2 only differ at the entries i i i and j j j , respectively, and such that f ( a 1 ) ≠ f ( b 1 ) f(a_{1}) \ne f(b_{1}) f ( a 1 ) = f ( b 1 ) and f ( a 2 ) ≠ f ( b 2 ) f(a_{2}) \ne f(b_{2}) f ( a 2 ) = f ( b 2 ) . Then ( a 1 ( l ) , b 1 ( l ) , a 2 ( l ) , b 2 ( l ) ) ∈ P B 4 (a_{1}(l),b_{1}(l),a_{2}(l),b_{2}(l)) \in P_{B}^{4} ( a 1 ( l ) , b 1 ( l ) , a 2 ( l ) , b 2 ( l )) ∈ P B 4 for all l ≤ k l \le k l ≤ k , but ( f ( a 1 ) , f ( b 1 ) , f ( a 2 ) , f ( b 2 ) ) ∉ P B 4 (f(a_{1}),f(b_{1}),f(a_{2}),f(b_{2})) \notin P_{B}^{4} ( f ( a 1 ) , f ( b 1 ) , f ( a 2 ) , f ( b 2 )) ∈ / P B 4 , which shows that f f f violates P B 4 P_{B}^{4} P B 4 .
For the implication from (4) to (1), suppose that f f f depends only on the first argument. Let i ≤ k i \le k i ≤ k be minimal such that there is an operation g g g with f ( x 1 , … , x k ) = g ( x 1 , … , x i ) f(x_{1},\ldots,x_{k}) = g(x_{1},\ldots,x_{i}) f ( x 1 , … , x k ) = g ( x 1 , … , x i ) . If i = 1 i=1 i = 1 then f f f is essentially unary and we are done. Otherwise, observe that since f f f does not depend on the i i i -th argument, neither does g g g , and so there is an ( i − 1 ) (i-1) ( i − 1 ) -ary operation g ′ g' g ′ such that for all x 1 , … , x k ∈ B x_{1},\ldots,x_{k} \in B x 1 , … , x k ∈ B we have f ( x 1 , … , x k ) = g ( x 1 , … , x i ) = g ′ ( x 1 , … , x i − 1 ) f(x_{1},\ldots,x_{k}) = g(x_{1},\ldots,x_{i}) = g'(x_{1},\ldots,x_{i-1}) f ( x 1 , … , x k ) = g ( x 1 , … , x i ) = g ′ ( x 1 , … , x i − 1 ) , contradicting the choice of i i i .
Minimal Clones
A trivial clone is a clone all of whose operations are projections. Note that it follows from Lemma 6.16 that for any set B = { b 1 , … , b n } B=\{b_1,\ldots,b_n\} B = { b 1 , … , b n } the clone Pol ( B ; P B 4 , { b 1 } , … , { b n } ) \operatorname{Pol}(B;P_B^4,\{b_1\},\ldots,\{b_n\}) Pol ( B ; P B 4 , { b 1 } , … , { b n }) is trivial.
Definition 6.17. A clone C \mathcal{C} C is minimal if it is non-trivial, and for every non-trivial subclone E ⊆ C \mathcal{E}\subseteq\mathcal{C} E ⊆ C we have E = C \mathcal{E}=\mathcal{C} E = C .
Recall that ⟨ F ⟩ \langle\mathcal{F}\rangle ⟨ F ⟩ denotes the smallest clone that contains F \mathcal{F} F . If g ∈ ⟨ { f } ⟩ g\in\langle\{f\}\rangle g ∈ ⟨{ f }⟩ , then we say that f f f generates g g g .
Definition 6.18. An operation f ∈ O B f\in\mathcal{O}_B f ∈ O B is minimal if f f f is of minimal arity such that
The following is straightforward from the definitions.
Proposition 6.19. Every minimal f f f generates a minimal clone, and every minimal clone is generated by a minimal operation.
Theorem 6.20. Every non-trivial operation clone C ⊆ O B \mathcal{C}\subseteq\mathcal{O}_B C ⊆ O B over a finite set B B B contains a minimal operation.
Proof. Consider the set of all clones contained in C \mathcal{C} C , partially ordered by inclusion. From this poset we remove the trivial clone; the resulting poset will be denoted by P P P . We use Zorn’s lemma to show that P P P contains a minimal element. Observe that in P P P , all chains ( C i ) i ∈ κ (\mathcal{C}_i)_{i\in\kappa} ( C i ) i ∈ κ that are descending , i.e., C i ⊇ C j \mathcal{C}_i\supseteq\mathcal{C}_j C i ⊇ C j for i < j i<j i < j , are bounded , i.e., for all such chains there exists a D ∈ P \mathcal{D}\in P D ∈ P such that C i ⊇ D \mathcal{C}_i\supseteq\mathcal{D} C i ⊇ D for all i ∈ κ i\in\kappa i ∈ κ . To see this, observe that the set ⋃ i ∈ κ Inv ( C i ) \bigcup_{i\in\kappa}\operatorname{Inv}(\mathcal{C}_i) ⋃ i ∈ κ Inv ( C i ) is closed under primitive positive definability in the sense that it is the set of relations that is primitively positively definable over some relational structure B \mathcal{B} B (since only a finite number of relations can be mentioned in a formula, and since Inv ( C i ) \operatorname{Inv}(\mathcal{C}_i) Inv ( C i ) is closed under primitive positive definability, for each i ∈ κ i\in\kappa i ∈ κ ). Moreover, one of the relations P B 4 , { b 1 } , … , { b n } P_B^4,\{b_1\},\ldots,\{b_n\} P B 4 , { b 1 } , … , { b n } , for B = { b 1 , … , b n } B=\{b_1,\ldots,b_n\} B = { b 1 , … , b n } , is not contained in ⋃ i ∈ κ Inv ( C i ) \bigcup_{i\in\kappa}\operatorname{Inv}(\mathcal{C}_i) ⋃ i ∈ κ Inv ( C i ) ; otherwise, there would be a j ∈ κ j\in\kappa j ∈ κ such that Inv ( C j ) \operatorname{Inv}(\mathcal{C}_j) Inv ( C j ) contains all these relations, and hence C j \mathcal{C}_j C j is the trivial clone contrary to our assumptions. Hence, Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) is a non-trivial lower bound of the descending chain ( C i ) i ∈ κ (\mathcal{C}_i)_{i\in\kappa} ( C i ) i ∈ κ . By Zorn’s lemma, P P P contains a minimal element, and this element contains a minimal operation in C \mathcal{C} C (Proposition 6.19). □ \square □
Remark 6.21. Note that the statement above would be false if B B B is infinite: take for example the clone over the domain B : = N B:=\mathbb{N} B := N of the natural numbers generated by the operation x ↦ x + 1 x\mapsto x+1 x ↦ x + 1 . Every operation in this clone is essentially unary, and every unary operation in this clone is of the form x ↦ x + c x\mapsto x+c x ↦ x + c for c ∈ N c\in\mathbb{N} c ∈ N . Note that for c > 0 c>0 c > 0 , the operation x ↦ x + c x\mapsto x+c x ↦ x + c generates x ↦ x + 2 c x\mapsto x+2c x ↦ x + 2 c , but not vice versa, so the clone does not contain a minimal operation.
In the remainder of this section, we show that a minimal operation has one out of the following five types, due to Rosenberg [104]. An n n n -ary operation f f f is called a semiprojection if there exists an i ≤ n i\leq n i ≤ n such that f ( x 1 , … , x n ) = x i f(x_1,\ldots,x_n)=x_i f ( x 1 , … , x n ) = x i whenever ∣ { x 1 , … , x n } ∣ < n |\{x_1,\ldots,x_n\}|<n ∣ { x 1 , … , x n } ∣ < n . For the purpose of proving the next lemma, we call an n n n -ary operation f f f a weak semiprojection if for all distinct i , j ∈ { 1 , … , n } i,j\in\{1,\ldots,n\} i , j ∈ { 1 , … , n } there exists an index s ( i , j ) s(i,j) s ( i , j ) such that
∀ x 1 , … , x n : f ( x 1 , … , x n ) = x s ( i , j ) \forall x_1,\ldots,x_n:f(x_1,\ldots,x_n)=x_{s(i,j)} ∀ x 1 , … , x n : f ( x 1 , … , x n ) = x s ( i , j )
holds whenever x i x_i x i and x j x_j x j are the same variable. Note that in this case, f f f is a semiprojection if and only if s ( i , j ) s(i,j) s ( i , j ) is constant.
The following notation for weak semiprojections will be useful in the proof of the next lemma. Let f f f be an n n n -ary weak semiprojection and suppose that ∣ B ∣ ≥ 2 |B| \ge2 ∣ B ∣ ≥ 2 . For every S ⊆ [ n ] S \subseteq[n] S ⊆ [ n ] with ∣ S ∣ ≥ 2 |S| \ge2 ∣ S ∣ ≥ 2 , define
Δ S : = { ( a 1 , … , a n ) ∈ B n ∣ a i = a j for all i , j ∈ S } \Delta_S := \{(a_1,\ldots,a_n) \in B^n \mid a_i = a_j \text{ for all } i,j \in S\} Δ S := {( a 1 , … , a n ) ∈ B n ∣ a i = a j for all i , j ∈ S }
and
E ( S ) : = { r ∈ [ n ] ∣ f ( a 1 , … , a n ) = a r for every ( a 1 , … , a n ) ∈ Δ S } . E(S) := \{r \in[n] \mid f(a_1,\ldots,a_n) = a_r \text{ for every } (a_1,\ldots,a_n) \in\Delta_S\}. E ( S ) := { r ∈ [ n ] ∣ f ( a 1 , … , a n ) = a r for every ( a 1 , … , a n ) ∈ Δ S } .
The set E ( S ) E(S) E ( S ) is nonempty: if i , j ∈ S i,j \in S i , j ∈ S are distinct, then Δ S ⊆ Δ { i , j } \Delta_S \subseteq\Delta_{\{i,j\}} Δ S ⊆ Δ { i , j } , and hence s ( i , j ) ∈ E ( S ) s(i,j) \in E(S) s ( i , j ) ∈ E ( S ) . If r , s ∈ E ( S ) r,s \in E(S) r , s ∈ E ( S ) , then π r n \pi_r^n π r n and π s n \pi_s^n π s n have the same restriction to Δ S \Delta_S Δ S . Since ∣ B ∣ ≥ 2 |B| \ge2 ∣ B ∣ ≥ 2 , this implies that either r = s r=s r = s or both r r r and s s s belong to S S S . Consequently, E ( S ) E(S) E ( S ) is either S S S or a singleton { k } \{k\} { k } for some k ∉ S k \notin S k ∈ / S : indeed, if r ∈ E ( S ) ∩ S r \in E(S) \cap S r ∈ E ( S ) ∩ S , then every s ∈ S s \in S s ∈ S belongs to E ( S ) E(S) E ( S ) , whereas if k ∈ E ( S ) ∖ S k \in E(S) \setminus S k ∈ E ( S ) ∖ S , then no other index belongs to E ( S ) E(S) E ( S ) . Moreover, if S ⊆ T ⊆ [ n ] S \subseteq T \subseteq[n] S ⊆ T ⊆ [ n ] and ∣ S ∣ ≥ 2 |S| \ge2 ∣ S ∣ ≥ 2 , then Δ T ⊆ Δ S \Delta_T \subseteq\Delta_S Δ T ⊆ Δ S , and therefore E ( S ) ⊆ E ( T ) E(S) \subseteq E(T) E ( S ) ⊆ E ( T ) . Also note that if there exists a k ∈ { 1 , … , n } k \in\{1,\ldots,n\} k ∈ { 1 , … , n } such that k ∈ E ( S ) k \in E(S) k ∈ E ( S ) for every S ⊆ { 1 , … , n } S \subseteq\{1,\ldots,n\} S ⊆ { 1 , … , n } with at least two elements, then f f f is a semiprojection.
Lemma 6.22 (Swierczkowski). Let f : B n → B f : B^n \to B f : B n → B be a weak semiprojection of arity n ≥ 4 n \ge4 n ≥ 4 . Then f f f is a semiprojection.
Proof. The statement is trivial for ∣ B ∣ = 1 |B|=1 ∣ B ∣ = 1 ; so we may assume without loss of generality that B B B contains two distinct elements that we call 0 and 1. We first show that E ( { 1 , 2 } ) ∩ E ( { 3 , 4 } ) ≠ ∅ E(\{1,2\}) \cap E(\{3,4\}) \ne\varnothing E ({ 1 , 2 }) ∩ E ({ 3 , 4 }) = ∅ . If E ( { 1 , 2 , 3 , 4 } ) = { ℓ } E(\{1,2,3,4\})=\{\ell\} E ({ 1 , 2 , 3 , 4 }) = { ℓ } for some ℓ ∉ { 1 , 2 , 3 , 4 } \ell\notin\{1,2,3,4\} ℓ ∈ / { 1 , 2 , 3 , 4 } , then E ( { 1 , 2 } ) = { ℓ } = E ( { 3 , 4 } ) E(\{1,2\})=\{\ell\}=E(\{3,4\}) E ({ 1 , 2 }) = { ℓ } = E ({ 3 , 4 }) and we are done. So we assume that E ( { 1 , 2 , 3 , 4 } ) = { 1 , 2 , 3 , 4 } E(\{1,2,3,4\})=\{1,2,3,4\} E ({ 1 , 2 , 3 , 4 }) = { 1 , 2 , 3 , 4 } . First consider the case that E ( { 1 , 2 } ) = { i } ⊆ { 3 , 4 } E(\{1,2\})=\{i\}\subseteq\{3,4\} E ({ 1 , 2 }) = { i } ⊆ { 3 , 4 } so that f ( x , x , y , y , x 5 , … , x n ) = y f(x,x,y,y,x_5,\ldots,x_n)=y f ( x , x , y , y , x 5 , … , x n ) = y . If E ( { 3 , 4 } ) = { j } ⊆ { 1 , 2 } E(\{3,4\})=\{j\}\subseteq\{1,2\} E ({ 3 , 4 }) = { j } ⊆ { 1 , 2 } then f ( 0 , 0 , 1 , 1 , … ) = 0 f(0,0,1,1,\ldots)=0 f ( 0 , 0 , 1 , 1 , … ) = 0 , a contradiction. Hence, E ( { 3 , 4 } ) = { 3 , 4 } E(\{3,4\})=\{3,4\} E ({ 3 , 4 }) = { 3 , 4 } and i ∈ E ( { 1 , 2 } ) ∩ E ( { 3 , 4 } ) i \in E(\{1,2\}) \cap E(\{3,4\}) i ∈ E ({ 1 , 2 }) ∩ E ({ 3 , 4 }) . Similarly we can treat the case that E ( { 3 , 4 } ) = { i } ⊆ { 1 , 2 } E(\{3,4\})=\{i\}\subseteq\{1,2\} E ({ 3 , 4 }) = { i } ⊆ { 1 , 2 } . If E ( { 1 , 2 } ) = { 1 , 2 } E(\{1,2\})=\{1,2\} E ({ 1 , 2 }) = { 1 , 2 } and E ( { 3 , 4 } ) = { 3 , 4 } E(\{3,4\})=\{3,4\} E ({ 3 , 4 }) = { 3 , 4 } then f ( x , x , y , y , x 5 , … , x n ) = x f(x,x,y,y,x_5,\ldots,x_n)=x f ( x , x , y , y , x 5 , … , x n ) = x because of E ( { 1 , 2 } ) ⊆ { 1 , 2 } E(\{1,2\})\subseteq\{1,2\} E ({ 1 , 2 }) ⊆ { 1 , 2 } and f ( x , x , y , y , x 5 , … , x n ) = y f(x,x,y,y,x_5,\ldots,x_n)=y f ( x , x , y , y , x 5 , … , x n ) = y because of E ( { 3 , 4 } ) ⊆ { 3 , 4 } E(\{3,4\})\subseteq\{3,4\} E ({ 3 , 4 }) ⊆ { 3 , 4 } , a contradiction.
Let i ∈ E ( { 1 , 2 } ) ∩ E ( { 3 , 4 } ) i \in E(\{1,2\}) \cap E(\{3,4\}) i ∈ E ({ 1 , 2 }) ∩ E ({ 3 , 4 }) . Note that if i ∉ { 1 , 2 } i \notin\{1,2\} i ∈ / { 1 , 2 } , then E ( { 1 , 2 } ) = { i } E(\{1,2\})=\{i\} E ({ 1 , 2 }) = { i } . Similarly, if i ∉ { 3 , 4 } i \notin\{3,4\} i ∈ / { 3 , 4 } then E ( { 3 , 4 } ) = { i } E(\{3,4\})=\{i\} E ({ 3 , 4 }) = { i } . We therefore have a set S ⊆ { 1 , … , n } S \subseteq\{1,\ldots,n\} S ⊆ { 1 , … , n } of size two with E ( S ) = { i } E(S)=\{i\} E ( S ) = { i } . Let T ⊆ { 1 , … , n } T \subseteq\{1,\ldots,n\} T ⊆ { 1 , … , n } be of cardinality at least two. We will show that i ∈ E ( T ) i \in E(T) i ∈ E ( T ) . Observe that if T ⊆ { 1 , … , n } ∖ { i } T \subseteq\{1,\ldots,n\}\setminus\{i\} T ⊆ { 1 , … , n } ∖ { i } , then E ( T ) = E ( { 1 , … , n } ∖ { i } ) = E ( S ) = { i } E(T)=E(\{1,\ldots,n\}\setminus\{i\})=E(S)=\{i\} E ( T ) = E ({ 1 , … , n } ∖ { i }) = E ( S ) = { i } . Now suppose that T = { i , j } T=\{i,j\} T = { i , j } for some j ∈ { 1 , … , n } ∖ { i } j \in\{1,\ldots,n\}\setminus\{i\} j ∈ { 1 , … , n } ∖ { i } . Then { 1 , … , n } ∖ T \{1,\ldots,n\}\setminus T { 1 , … , n } ∖ T has at least two elements (since n ≥ 4 n \ge4 n ≥ 4 ). We can therefore apply the argument from the first paragraph, up to renaming arguments, to conclude that E ( { i , j } ) ∩ E ( { 1 , … , n } ∖ { i , j } ) E(\{i,j\}) \cap E(\{1,\ldots,n\}\setminus\{i,j\}) E ({ i , j }) ∩ E ({ 1 , … , n } ∖ { i , j }) contains an element k k k . If k ≠ { i , j } k \ne\{i,j\} k = { i , j } , then E ( { 1 , … , n } ∖ { i , j } ) = { i , j } E(\{1,\ldots,n\}\setminus\{i,j\})=\{i,j\} E ({ 1 , … , n } ∖ { i , j }) = { i , j } , which is in contradiction to E ( { 1 , … , n } ∖ { i } ) = { i } E(\{1,\ldots,n\}\setminus\{i\})=\{i\} E ({ 1 , … , n } ∖ { i }) = { i } . Hence, E ( { i , j } ) = { i , j } E(\{i,j\})=\{i,j\} E ({ i , j }) = { i , j } . This implies that E ( T ) = T E(T)=T E ( T ) = T for all T ⊆ { 1 , … , n } T \subseteq\{1,\ldots,n\} T ⊆ { 1 , … , n } of cardinality at least 2 containing i i i . We conclude that i ∈ E ( T ) i \in E(T) i ∈ E ( T ) for every T ⊆ { 1 , … , n } T \subseteq\{1,\ldots,n\} T ⊆ { 1 , … , n } with at least two elements, so f f f is a semiprojection.
Theorem 6.23 (Rosenberg’s five types theorem). Let f f f be a minimal operation. Then f f f has one of the following types:
a unary operation. If f f f is an operation on a finite set, then it is either a permutation such that f p ( x ) = x f^p(x)=x f p ( x ) = x , for some prime p p p , or satisfies f ( f ( x ) ) = f ( x ) f(f(x))=f(x) f ( f ( x )) = f ( x ) for all x x x ;
a binary idempotent operation;
a majority operation;
a minority operation;
a k k k -ary semiprojection, for k ≥ 3 k \ge3 k ≥ 3 , which is not a projection.
Proof. The statement is easy to prove if f f f is unary (see Exercises 127 and 128). If f f f is at least binary, then f ^ \hat{f} f ^ (see Exercise 42) must be the identity by the minimality of f f f , and hence f f f is idempotent. In particular, we are done if f f f is binary. If f f f is ternary, we have to show that f f f is majority, Maltsev, or a semiprojection. By the minimality of f f f , the binary operation f 1 ( x , y ) : = f ( y , x , x ) f_1(x,y) := f(y,x,x) f 1 ( x , y ) := f ( y , x , x ) is a projection, that is, f 1 ( x , y ) = x f_1(x,y) = x f 1 ( x , y ) = x or f 1 ( x , y ) = y f_1(x,y) = y f 1 ( x , y ) = y . Note that in particular f ( x , x , x ) = x f(x,x,x) = x f ( x , x , x ) = x . Similarly, the other operations f 2 ( x , y ) : = f ( x , y , x ) f_2(x,y) := f(x,y,x) f 2 ( x , y ) := f ( x , y , x ) , and f 3 ( x , y ) : = f ( x , x , y ) f_3(x,y) := f(x,x,y) f 3 ( x , y ) := f ( x , x , y ) obtained by identifications of two variables must be projections. We therefore distinguish eight cases.
f ( y , x , x ) = x f(y,x,x) = x f ( y , x , x ) = x , f ( x , y , x ) = x f(x,y,x) = x f ( x , y , x ) = x , f ( x , x , y ) = x f(x,x,y) = x f ( x , x , y ) = x . In this case, f f f is a majority.
f ( y , x , x ) = x f(y,x,x) = x f ( y , x , x ) = x , f ( x , y , x ) = x f(x,y,x) = x f ( x , y , x ) = x , f ( x , x , y ) = y f(x,x,y) = y f ( x , x , y ) = y . In this case, f f f is a semiprojection.
f ( y , x , x ) = x f(y,x,x) = x f ( y , x , x ) = x , f ( x , y , x ) = y f(x,y,x) = y f ( x , y , x ) = y , f ( x , x , y ) = x f(x,x,y) = x f ( x , x , y ) = x . In this case, f f f is a semiprojection.
f ( y , x , x ) = x f(y,x,x) = x f ( y , x , x ) = x , f ( x , y , x ) = y f(x,y,x) = y f ( x , y , x ) = y , f ( x , x , y ) = y f(x,x,y) = y f ( x , x , y ) = y . The operation g ( x , y , z ) : = f ( y , x , z ) g(x,y,z) := f(y,x,z) g ( x , y , z ) := f ( y , x , z ) is a Maltsev operation.
f ( y , x , x ) = y f(y,x,x) = y f ( y , x , x ) = y , f ( x , y , x ) = x f(x,y,x) = x f ( x , y , x ) = x , f ( x , x , y ) = x f(x,x,y) = x f ( x , x , y ) = x . In this case, f f f is a semiprojection.
f ( y , x , x ) = y f(y,x,x) = y f ( y , x , x ) = y , f ( x , y , x ) = x f(x,y,x) = x f ( x , y , x ) = x , f ( x , x , y ) = y f(x,x,y) = y f ( x , x , y ) = y . In this case, f f f is a Maltsev operation.
f ( y , x , x ) = y f(y,x,x) = y f ( y , x , x ) = y , f ( x , y , x ) = y f(x,y,x) = y f ( x , y , x ) = y , f ( x , x , y ) = x f(x,x,y) = x f ( x , x , y ) = x . The operation g ( x , y , z ) : = f ( x , z , y ) g(x,y,z) := f(x,z,y) g ( x , y , z ) := f ( x , z , y ) is a Maltsev operation.
f ( y , x , x ) = y f(y,x,x) = y f ( y , x , x ) = y , f ( x , y , x ) = y f(x,y,x) = y f ( x , y , x ) = y , f ( x , x , y ) = y f(x,x,y) = y f ( x , x , y ) = y . In this case, f f f is a Maltsev operation.
We claim that if f f f is a Maltsev operation, then either it is a minority operation (and we are done) or it generates a majority operation. Indeed, if f f f is not a minority then minimality of f f f implies that f ( x , y , x ) = x f(x,y,x) = x f ( x , y , x ) = x . Now consider the operation g g g defined by g ( x , y , z ) = f ( x , f ( x , y , z ) , z ) g(x,y,z) = f(x,f(x,y,z),z) g ( x , y , z ) = f ( x , f ( x , y , z ) , z ) . We have
g ( x , x , y ) = f ( x , f ( x , x , y ) , y ) = f ( x , y , y ) = x g ( x , y , x ) = f ( x , f ( x , y , x ) , x ) = f ( x , x , x ) = x g ( y , x , x ) = f ( y , f ( y , x , x ) , x ) = f ( y , y , x ) = x . \begin{aligned}
g(x,x,y) &= f(x,f(x,x,y),y) = f(x,y,y) = x \\
g(x,y,x) &= f(x,f(x,y,x),x) = f(x,x,x) = x \\
g(y,x,x) &= f(y,f(y,x,x),x) = f(y,y,x) = x .
\end{aligned} g ( x , x , y ) g ( x , y , x ) g ( y , x , x ) = f ( x , f ( x , x , y ) , y ) = f ( x , y , y ) = x = f ( x , f ( x , y , x ) , x ) = f ( x , x , x ) = x = f ( y , f ( y , x , x ) , x ) = f ( y , y , x ) = x .
Note that every ternary operation generated by a majority operation is either a projection or a majority operation (this can be shown by induction over terms). Also note that an operation cannot be a majority operation and a Maltsev operation at the same time, unless the domain has only one element. So we obtain in this case a contradiction to the minimality of f f f .
Finally, let f f f be k k k -ary, where k ≥ 4 k \ge4 k ≥ 4 . By minimality of f f f , the operations obtained from f f f by identifications of arguments must be projections. The lemma of Świerczkowski (Lemma 6.22 ) implies that f f f is a semiprojection.
Proposition 6.24. For all n ≥ 3 n \ge3 n ≥ 3 , the graph K n K_n K n is projective (i.e., all idempotent polymorphisms of K n K_n K n are projections). All relations that are preserved by Sym ( { 1 , … , n } ) \operatorname{Sym}(\{1,\ldots,n\}) Sym ({ 1 , … , n }) are primitively positively definable in K n K_n K n .
This provides for example a solution to Exercise 104.
Proof. By Theorem 6.20 , it suffices to show that the clone of idempotent polymorphisms of K n K_n K n does not contain a minimal operation. Hence, by Theorem 6.23 , we have to verify that Pol ( K n ) \operatorname{Pol}(K_n) Pol ( K n ) does not contain a binary idempotent, a Maltsev, a majority, or a k k k -ary semiprojection for k ≥ 3 k \ge3 k ≥ 3 .
Let f f f be a binary idempotent polymorphism of K n K_n K n .
Observation 1. f ( u , v ) ∈ { u , v } f(u,v) \in\{u,v\} f ( u , v ) ∈ { u , v } : otherwise, i : = f ( u , v ) i := f(u,v) i := f ( u , v ) is adjacent to both u u u and v v v , but f ( i , i ) = i f(i,i)=i f ( i , i ) = i is not adjacent to i i i , in contradiction to f f f being a polymorphism.
Observation 2. If f ( u , v ) = u f(u,v)=u f ( u , v ) = u , then f ( v , u ) = v f(v,u)=v f ( v , u ) = v : this is clear if u = v u=v u = v , and if u ≠ v u \ne v u = v it follows from f f f being a polymorphism.
By Observation 1, it suffices to show that there cannot be distinct u , v u,v u , v and distinct u ′ , v ′ u',v' u ′ , v ′ such that f ( u , v ) = u f(u,v)=u f ( u , v ) = u and f ( u ′ , v ′ ) = v ′ f(u',v')=v' f ( u ′ , v ′ ) = v ′ . Suppose for contradiction that there are such u , v , u ′ , v ′ u,v,u',v' u , v , u ′ , v ′ .
Case 1. u = u ′ u=u' u = u ′ . Since f ( u , v ′ ) = f ( u ′ , v ′ ) = v ′ f(u,v')=f(u',v')=v' f ( u , v ′ ) = f ( u ′ , v ′ ) = v ′ , we have f ( v ′ , u ) = u f(v',u)=u f ( v ′ , u ) = u by Observation 2. This is in contradiction to f ( u , v ) = u f(u,v)=u f ( u , v ) = u since u = u ′ u=u' u = u ′ is adjacent to v ′ v' v ′ , and E ( v , u ) E(v,u) E ( v , u ) .
Case 2. u ≠ u ′ u \ne u' u = u ′ .
Case 2.1. f ( u ′ , u ) = u f(u',u)=u f ( u ′ , u ) = u : this is impossible because f ( u , v ) = u f(u,v)=u f ( u , v ) = u , E ( u , u ′ ) E(u,u') E ( u , u ′ ) , and E ( u , v ) E(u,v) E ( u , v ) .
Case 2.2. f ( u ′ , u ) = u ′ f(u',u)=u' f ( u ′ , u ) = u ′ : this is impossible because f ( v ′ , u ′ ) = u ′ f(v',u')=u' f ( v ′ , u ′ ) = u ′ , E ( u ′ , v ′ ) E(u',v') E ( u ′ , v ′ ) , and E ( u ′ , u ) E(u',u) E ( u ′ , u ) .
Since ( 2 , 1 ) , ( 2 , 3 ) , ( 1 , 3 ) ∈ E ( K n ) (2,1),(2,3),(1,3) \in E(K_n) ( 2 , 1 ) , ( 2 , 3 ) , ( 1 , 3 ) ∈ E ( K n ) , but ( 1 , 1 ) ∉ E ( K n ) (1,1) \notin E(K_n) ( 1 , 1 ) ∈ / E ( K n ) , the graph K n K_n K n has no Maltsev polymorphism (it is not rectangular; see Section 4.4).
If f f f is a majority, note that f ( 1 , 2 , 3 ) = f ( x 1 , x 2 , x 3 ) f(1,2,3)=f(x_1,x_2,x_3) f ( 1 , 2 , 3 ) = f ( x 1 , x 2 , x 3 ) where x i x_i x i is some element distinct from i i i if f ( 1 , 2 , 3 ) = i f(1,2,3)=i f ( 1 , 2 , 3 ) = i , and x i : = f ( 1 , 2 , 3 ) x_i:=f(1,2,3) x i := f ( 1 , 2 , 3 ) otherwise. But ( i , x i ) ∈ E ( K n ) (i,x_i) \in E(K_n) ( i , x i ) ∈ E ( K n ) , so f f f is not a polymorphism of K n K_n K n .
Finally, let f f f be a k k k -ary semiprojection for k ≥ 3 k \ge3 k ≥ 3 which is not a projection. Suppose without loss of generality that f ( x 1 , … , x k ) = x 1 f(x_1,\ldots,x_k)=x_1 f ( x 1 , … , x k ) = x 1 whenever ∣ { x 1 , … , x k } ∣ < k \lvert\{x_1,\ldots,x_k\}\rvert< k ∣{ x 1 , … , x k }∣ < k (otherwise, permute the arguments of f f f ). If k > n k>n k > n , every tuple in K n k K_n^k K n k has fewer than k k k distinct entries, so the semiprojection identity holds everywhere and f f f is a projection. Hence we may assume that k ≤ n k \le n k ≤ n . Since f f f is not a projection, there exist pairwise distinct a 1 , … , a k ∈ V ( K n ) a_1,\ldots,a_k \in V(K_n) a 1 , … , a k ∈ V ( K n ) such that c : = f ( a 1 , … , a k ) ≠ a 1 c:=f(a_1,\ldots,a_k) \ne a_1 c := f ( a 1 , … , a k ) = a 1 . Let b 1 , … , b k b_1,\ldots,b_k b 1 , … , b k be such that b i b_i b i is any element of V ( K n ) ∖ { c } V(K_n)\setminus\{c\} V ( K n ) ∖ { c } if c = a i c=a_i c = a i , and b i : = c b_i:=c b i := c otherwise. Note that c c c can equal at most one of the a i a_i a i , and hence all but one of the b i b_i b i ’s are equal to c c c . Note that b 1 = c b_1=c b 1 = c since a 1 ≠ c a_1 \ne c a 1 = c , and that f ( b 1 , … , b k ) = b 1 = c f(b_1,\ldots,b_k)=b_1=c f ( b 1 , … , b k ) = b 1 = c because f f f is a semiprojection. But ( a i , b i ) ∈ E ( K n ) (a_i,b_i) \in E(K_n) ( a i , b i ) ∈ E ( K n ) for all i ≤ k i \le k i ≤ k , so f f f is not a polymorphism of K n K_n K n .
The second part of the statement follows from Theorem 6.7 : Let f f f be any k k k -ary polymorphism of K n K_n K n , and define α ( x ) : = f ( x , … , x ) \alpha(x) := f(x,\ldots,x) α ( x ) := f ( x , … , x ) . Then α \alpha α is an endomorphism of K n K_n K n , hence a permutation and therefore an automorphism. Consequently, g : = α − 1 ∘ f g := \alpha^{-1} \circ f g := α − 1 ∘ f is an idempotent polymorphism of K n K_n K n , so projectivity implies g = π i k g = \pi_i^k g = π i k for some i i i . Thus f = α ∘ π i k f = \alpha\circ\pi_i^k f = α ∘ π i k . Every relation invariant under all permutations of the domain is preserved by every operation of this form. It is therefore preserved by Pol ( K n ) \operatorname{Pol}(K_n) Pol ( K n ) , and Theorem 6.7 implies that it is pp-definable in K n K_n K n .
The presentation of the proof of the following result is inspired by (but not identical to7 ) a presentation of Csákány [50].
Theorem 6.25 (Plonka [101]). Let G \mathfrak{G} G be the structure obtained from a finite field F F F of prime order p p p as in Example 6.11. Then the clone
Pol ( G ) = { ( x 1 , … , x n ) ↦ ∑ i = 1 n α i x i | n ≥ 1 , α 1 , … , α n ∈ F , α 1 + ⋯ + α n = 1 } \operatorname{Pol}(\mathfrak{G}) = \left\{(x_1,\ldots,x_n) \mapsto\sum_{i=1}^{n} \alpha_i x_i \mathrel{}\middle|\mathrel{} n \ge1,\ \alpha_1,\ldots,\alpha_n \in F,\ \alpha_1+\cdots+\alpha_n=1\right\} Pol ( G ) = { ( x 1 , … , x n ) ↦ i = 1 ∑ n α i x i n ≥ 1 , α 1 , … , α n ∈ F , α 1 + ⋯ + α n = 1 } is minimal.
Proof. The statement is easy to prove for p = 2 p = 2 p = 2 , and it also follows from Theorem 6.27 that we prove later. For p > 2 p > 2 p > 2 , let f ∈ Pol ( G ) f \in\operatorname{Pol}(\mathfrak{G}) f ∈ Pol ( G ) be non-trivial. We have to show that the clone C : = ⟨ f ⟩ \mathcal{C} := \langle f\rangle C := ⟨ f ⟩ equals Pol ( G ) \operatorname{Pol}(\mathfrak{G}) Pol ( G ) . We already know that f f f can be written as ∑ i = 1 n α i x i \sum_{i=1}^{n} \alpha_i x_i ∑ i = 1 n α i x i for α 1 , … , α n ∈ F \alpha_1,\ldots,\alpha_n \in F α 1 , … , α n ∈ F such that α 1 + ⋯ + α n = 1 \alpha_1+\cdots+\alpha_n=1 α 1 + ⋯ + α n = 1 (Example 6.11).
We first show that f f f generates a non-trivial binary operation. Since f f f is non-trivial, there are distinct i , j ∈ { 1 , … , n } i,j \in\{1,\ldots,n\} i , j ∈ { 1 , … , n } such that α i , α j ≠ 0 \alpha_i,\alpha_j \ne0 α i , α j = 0 . If ( 1 − α i ) = α 1 + ⋯ + α n − α i ≠ 0 (1-\alpha_i)=\alpha_1+\cdots+\alpha_n-\alpha_i \ne0 ( 1 − α i ) = α 1 + ⋯ + α n − α i = 0 , then equating all arguments of f f f except the i i i -th argument with the j j j -th argument yields the non-trivial binary operation α i x i + ( 1 − α i ) x j \alpha_i x_i+(1-\alpha_i)x_j α i x i + ( 1 − α i ) x j . So we may assume that α i = 1 \alpha_i=1 α i = 1 . Similar reasoning applies to all i ′ ∈ { 1 , … , n } i' \in\{1,\ldots,n\} i ′ ∈ { 1 , … , n } with α i ′ ≠ 0 \alpha_{i'} \ne0 α i ′ = 0 instead of i i i . Therefore, we may suppose without loss of generality that α 1 = ⋯ = α k = 1 \alpha_1=\cdots=\alpha_k=1 α 1 = ⋯ = α k = 1 and α k + 1 = ⋯ = α n = 0 \alpha_{k+1}=\cdots=\alpha_n=0 α k + 1 = ⋯ = α n = 0 , for some k ∈ { 2 , … , n } k \in\{2,\ldots,n\} k ∈ { 2 , … , n } . We know that k ≡ 1 ( m o d p ) k \equiv1 \pmod p k ≡ 1 ( mod p ) , because α 1 + ⋯ + α k = 1 \alpha_1+\cdots+\alpha_k=1 α 1 + ⋯ + α k = 1 . Since p > 2 p>2 p > 2 , if we identify the first two arguments, and identify the remaining arguments, we again obtain a non-trivial binary operation.
Let s ∈ C s \in\mathcal{C} s ∈ C be the resulting non-trivial binary operation; s s s is of the form β x 1 + ( 1 − β ) x 2 \beta x_1+(1-\beta)x_2 β x 1 + ( 1 − β ) x 2 for some β ∈ F ∖ { 0 , 1 } \beta\in F\setminus\{0,1\} β ∈ F ∖ { 0 , 1 } . Note that γ p − 1 = 1 \gamma^{p-1}=1 γ p − 1 = 1 for every γ ∈ F ∖ { 0 } \gamma\in F\setminus\{0\} γ ∈ F ∖ { 0 } by Fermat’s lemma. Let l l l and r r r be the binary operations defined as follows.
l ( x , y ) : = s ( s ( … s ( x , y ) , … , y ) , y ⏟ p − 2 occurrences of s ) = β p − 2 x + β p − 3 ( 1 − β ) y + ⋯ + ( 1 − β ) y l(x,y):=s(\underbrace{s(\ldots s(x,y),\ldots,y),y}_{p-2\text{ occurrences of }s})=\beta^{p-2}x+\beta^{p-3}(1-\beta)y+\cdots+(1-\beta)y l ( x , y ) := s ( p − 2 occurrences of s s ( … s ( x , y ) , … , y ) , y ) = β p − 2 x + β p − 3 ( 1 − β ) y + ⋯ + ( 1 − β ) y
r ( y , z ) : = s ( y , s ( y , … , s ( y , z ) … ) ⏟ p − 2 occurrences of s ) = β y + ( 1 − β ) β y + ⋯ + ( 1 − β ) p − 3 β y + ( 1 − β ) p − 2 z (15) r(y,z):=s(\underbrace{y,s(y,\ldots,s(y,z)\ldots)}_{p-2\text{ occurrences of }s})=\beta y+(1-\beta)\beta y+\cdots+(1-\beta)^{p-3}\beta y+(1-\beta)^{p-2}z \tag*{(15)} r ( y , z ) := s ( p − 2 occurrences of s y , s ( y , … , s ( y , z ) … ) ) = β y + ( 1 − β ) β y + ⋯ + ( 1 − β ) p − 3 β y + ( 1 − β ) p − 2 z (15)
Note that for all x , y , z ∈ F x,y,z \in F x , y , z ∈ F we have
m ( x , y , z ) : = s ( l ( x , y ) , r ( y , z ) ) = β p − 1 ⏟ = 1 x + ( 1 − β ) ( β p − 2 + β p − 3 + ⋯ + β 2 + β ) y + β ( ( 1 − β ) p − 2 + ⋯ + ( 1 − β ) 2 + ( 1 − β ) ) y + ( 1 − β ) p − 1 ⏟ = 1 z = x + ( β − 1 ) y + ( ( 1 − β ) − 1 ) y + z = x − y + z . \begin{aligned}
m(x,y,z) &:= s(l(x,y),r(y,z)) \\
&= \underbrace{\beta^{p-1}}_{=1}x+(1-\beta)(\beta^{p-2}+\beta^{p-3}+\cdots+\beta^2+\beta)y \\
&\quad+\beta((1-\beta)^{p-2}+\cdots+(1-\beta)^2+(1-\beta))y+\underbrace{(1-\beta)^{p-1}}_{=1}z \\
&=x+(\beta-1)y+((1-\beta)-1)y+z \\
&=x-y+z.
\end{aligned} m ( x , y , z ) := s ( l ( x , y ) , r ( y , z )) = = 1 β p − 1 x + ( 1 − β ) ( β p − 2 + β p − 3 + ⋯ + β 2 + β ) y + β (( 1 − β ) p − 2 + ⋯ + ( 1 − β ) 2 + ( 1 − β )) y + = 1 ( 1 − β ) p − 1 z = x + ( β − 1 ) y + (( 1 − β ) − 1 ) y + z = x − y + z .
We conclude that m ∈ C m \in\mathcal{C} m ∈ C . Next, we show that C \mathcal{C} C contains all binary operations α 1 x 1 + α 2 x 2 \alpha_1x_1+\alpha_2x_2 α 1 x 1 + α 2 x 2 with α 1 + α 2 = 1 \alpha_1+\alpha_2=1 α 1 + α 2 = 1 . Indeed, let t ∈ N t \in\mathbb{N} t ∈ N be such that t ≡ α 1 − 1 ( m o d p ) t \equiv\alpha_1-1 \pmod p t ≡ α 1 − 1 ( mod p ) , and hence α 2 ≡ 1 − α 1 ≡ − t ( m o d p ) \alpha_2 \equiv1-\alpha_1 \equiv-t \pmod p α 2 ≡ 1 − α 1 ≡ − t ( mod p ) . Then for all x , y ∈ F x,y \in F x , y ∈ F we have
m ( x , y , m ( x , y , … ( m ( x , y , x ) ) … ) ) ⏟ t occurrences of m = ( t + 1 ) x − t y = α 1 x + α 2 y . \underbrace{m(x,y,m(x,y,\ldots(m(x,y,x))\ldots))}_{t\ \text{occurrences of }m}=(t+1)x-ty=\alpha_1x+\alpha_2y. t occurrences of m m ( x , y , m ( x , y , … ( m ( x , y , x )) … )) = ( t + 1 ) x − t y = α 1 x + α 2 y .
Finally, m m m and all operations of the form ( x , y ) ↦ α 1 x + α 2 y (x,y)\mapsto\alpha_1x+\alpha_2y ( x , y ) ↦ α 1 x + α 2 y with α 1 + α 2 = 1 \alpha_1+\alpha_2=1 α 1 + α 2 = 1 generate Pol ( G ) \operatorname{Pol}(\mathcal{G}) Pol ( G ) (Example 6.11). Hence, C = Pol ( G ) \mathcal{C}=\operatorname{Pol}(\mathcal{G}) C = Pol ( G ) , which concludes the proof.
Corollary 6.26. Let G \mathcal{G} G be the structure obtained from a finite field F F F of prime order p p p as in Example 6.11. Then for every n ∈ N n \in\mathbb{N} n ∈ N and R ⊆ F n R \subseteq F^n R ⊆ F n which is not primitively positively definable in G \mathcal{G} G , we have that CSP ( G , R ) \operatorname{CSP}(\mathcal{G},R) CSP ( G , R ) is NP-complete.
Proof. Since Pol ( G ) \operatorname{Pol}(\mathcal{G}) Pol ( G ) is minimal, Pol ( G , R ) \operatorname{Pol}(\mathcal{G},R) Pol ( G , R ) only contains the projections, and therefore every relation S ⊆ F k S \subseteq F^k S ⊆ F k is primitively positively definable in ( G , R ) (\mathcal{G},R) ( G , R ) . The statement then follows via Lemma 5.8 from the existence of an NP-hard CSP with a domain of size p p p (e.g., CSP ( K p ) \operatorname{CSP}(K_p) CSP ( K p ) if p > 2 p>2 p > 2 ; we will also see such examples for p = 2 p=2 p = 2 , see Theorem 6.33 ).
Exercise 124. Show that every semilattice operation (Definition 3.17 ) generates a minimal clone.
Schaefer’s Theorem
Schaefer’s theorem states that every CSP for a 2-element structure is either in P or NP-complete. By the general results in § 7.2 , most of the classification arguments in Schaefer’s article follow from earlier work of Post [102] (also see [90]), who classified all clones on a two-element domain. We present a short proof of Schaefer’s theorem here.
Note that on Boolean domains, there is precisely one minority operation, and precisely one majority operation.
Theorem 6.27 (Post [102]). Every minimal operation on { 0 , 1 } \{0,1\} { 0 , 1 } is one of the following:
a unary constant operation.
the unary operation x ↦ 1 − x x \mapsto1-x x ↦ 1 − x .
the binary operation ( x , y ) ↦ min ( x , y ) (x,y) \mapsto\min(x,y) ( x , y ) ↦ min ( x , y ) .
the binary operation ( x , y ) ↦ max ( x , y ) (x,y)\mapsto\max(x,y) ( x , y ) ↦ max ( x , y ) .
the Boolean minority operation.
the Boolean majority operation.
Proof. We use Theorem 6.23 . If f f f is unary the statement is trivial, so let f f f be a minimal at least binary idempotent operation. There are only four binary idempotent operations on { 0 , 1 } \{0,1\} { 0 , 1 } , two of which are projections and therefore cannot be minimal. The other two operations are min and max. Next, note that a semiprojection of arity at least three on a Boolean domain must be a projection. Thus, Theorem 6.23 implies that f f f is the majority or the minority operation. □
Definition 6.28. A Boolean relation R ⊆ { 0 , 1 } n R\subseteq\{0,1\}^{n} R ⊆ { 0 , 1 } n is called affine if it is the solution space of a system of linear equalities modulo 2 2 2 (see Example 6.11).
Lemma 6.29. A Boolean relation is affine if and only if it is preserved by the Boolean minority operation.
Proof. Let R R R be n n n -ary. We view R R R as a subset of the Boolean vector space { 0 , 1 } n \{0,1\}^{n} { 0 , 1 } n . We have seen in Example 6.11 that affine spaces are precisely those that are closed under affine combinations , i.e., linear combinations of the form α 1 x 1 + ⋯ + α k x k \alpha_{1}x_{1}+\cdots+\alpha_{k}x_{k} α 1 x 1 + ⋯ + α k x k such that α 1 + ⋯ + α k = 1 \alpha_{1}+\cdots+\alpha_{k}=1 α 1 + ⋯ + α k = 1 . In particular, if R R R is affine then it is preserved by ( x 1 , x 2 , x 3 ) ↦ x 1 + x 2 + x 3 (x_{1},x_{2},x_{3})\mapsto x_{1}+x_{2}+x_{3} ( x 1 , x 2 , x 3 ) ↦ x 1 + x 2 + x 3 which is the minority operation. Conversely, if R R R is preserved by the minority operation, then x 1 + ⋯ + x k x_{1}+\cdots+x_{k} x 1 + ⋯ + x k , for odd k k k , can be written as
minority ( x 1 , x 2 , minority ( x 3 , x 4 , … minority ( x k − 2 , x k − 1 , x k ) … ) ) \operatorname{minority}(x_{1},x_{2},\operatorname{minority}(x_{3},x_{4},\ldots\operatorname{minority}(x_{k-2},x_{k-1},x_{k})\ldots)) minority ( x 1 , x 2 , minority ( x 3 , x 4 , … minority ( x k − 2 , x k − 1 , x k ) … ))
and hence R R R is preserved by all affine combinations, and thus affine. □
It is well-known and easy to see (see, for example, [23]) that for every relation R ⊆ { 0 , 1 } n R\subseteq\{0,1\}^{n} R ⊆ { 0 , 1 } n there exists a propositional formula ϕ ( x 1 , … , x n ) \phi(x_{1},\ldots,x_{n}) ϕ ( x 1 , … , x n ) that defines R R R , and that ϕ \phi ϕ can even be chosen to be in conjunctive normal form (CNF). That is, there is a conjunction of disjunctions of variables or negated variables from x 1 , … , x n x_{1},\ldots,x_{n} x 1 , … , x n such that a tuple ( t 1 , … , t n ) ∈ { 0 , 1 } n (t_{1},\ldots,t_{n})\in\{0,1\}^{n} ( t 1 , … , t n ) ∈ { 0 , 1 } n is in R R R if and only if the formula ϕ \phi ϕ evaluates to true after replacing x i x_{i} x i by t i t_{i} t i , for i ∈ { 1 , … , n } i\in\{1,\ldots,n\} i ∈ { 1 , … , n } . The following definition is useful for proving that certain Boolean relations R R R can be defined in syntactically restricted propositional logic.
Definition 6.30. If ϕ \phi ϕ is a propositional formula in CNF that defines a Boolean relation R R R , we say that ϕ \phi ϕ is reduced if the following holds: whenever we remove a literal from a clause in ϕ \phi ϕ , then the resulting formula no longer defines R R R .
Clearly, every Boolean relation has a reduced definition: simply remove literals from any definition in CNF until the formula becomes reduced. A propositional formula in CNF is called Horn if every clause contains at most one positive literal.
Lemma 6.31. A Boolean relation has a Horn definition if and only if it is preserved by min.
Proof. It is easy to see that min preserves every relation defined by clauses that contain at most one positive literal, and hence every relation with a Horn definition. Conversely, let R R R be a Boolean relation preserved by min. Let ϕ \phi ϕ be a reduced propositional formula in CNF that defines R R R . Now suppose for contradiction that ϕ \phi ϕ contains a clause C C C with two positive literals u u u and v v v . Since ϕ \phi ϕ is reduced, there is an assignment s 1 s_1 s 1 that satisfies ϕ \phi ϕ such that s 1 ( u ) = 1 s_1(u)=1 s 1 ( u ) = 1 , and such that all other literals of C C C evaluate to 0 0 0 . Similarly, there is a satisfying assignment s 2 s_2 s 2 for ϕ \phi ϕ such that s 2 ( v ) = 1 s_2(v)=1 s 2 ( v ) = 1 and all other literals of C C C evaluate to 0 0 0 . Then s 0 : x ↦ min ( s 1 ( x ) , s 2 ( x ) ) s_0:x\mapsto\min(s_1(x),s_2(x)) s 0 : x ↦ min ( s 1 ( x ) , s 2 ( x )) does not satisfy C C C , and does not satisfy ϕ \phi ϕ , in contradiction to the assumption that min preserves R R R .
A Boolean relation is called bijunctive if it can be defined by a propositional formula in CNF where each disjunction has at most two disjuncts.
Lemma 6.32. A Boolean relation R R R is bijunctive if and only if it is preserved by the Boolean majority operation.
Proof. It is easy to see that the majority operation preserves every Boolean relation of arity two, and hence every bijunctive Boolean relation. We present the proof that if R R R is preserved by majority, and ϕ \phi ϕ is a reduced definition of R R R , then all clauses C C C have at most two literals. Suppose for contradiction that C C C has three literals l 1 , l 2 , l 3 l_1,l_2,l_3 l 1 , l 2 , l 3 . Since ϕ \phi ϕ is reduced, there must be satisfying assignments s 1 , s 2 , s 3 s_1,s_2,s_3 s 1 , s 2 , s 3 to ϕ \phi ϕ such that under s i s_i s i all literals of C C C evaluate to 0 0 0 except for l i l_i l i . Then the mapping s 0 : x ↦ majority ( s 1 ( x ) , s 2 ( x ) , s 3 ( x ) ) s_0:x\mapsto\operatorname{majority}(s_1(x),s_2(x),s_3(x)) s 0 : x ↦ majority ( s 1 ( x ) , s 2 ( x ) , s 3 ( x )) does not satisfy C C C and therefore does not satisfy ϕ \phi ϕ , in contradiction to the assumption that majority preserves R R R .
The following relation is called the (Boolean) not-all-equal relation.
NAE : = { ( 0 , 0 , 1 ) , ( 0 , 1 , 0 ) , ( 1 , 0 , 0 ) , ( 1 , 1 , 0 ) , ( 1 , 0 , 1 ) , ( 0 , 1 , 1 ) } (16) \operatorname{NAE}:=\{(0,0,1),(0,1,0),(1,0,0),(1,1,0),(1,0,1),(0,1,1)\} \tag*{(16)} NAE := {( 0 , 0 , 1 ) , ( 0 , 1 , 0 ) , ( 1 , 0 , 0 ) , ( 1 , 1 , 0 ) , ( 1 , 0 , 1 ) , ( 0 , 1 , 1 )} (16)
Theorem 6.33 (Schaefer [105]). Let B \mathcal{B} B be a structure over the two-element domain { 0 , 1 } \{0,1\} { 0 , 1 } . Then either the relation NAE has a primitive positive definition in B \mathcal{B} B , and B \mathcal{B} B has a finite-signature reduct B ′ \mathcal{B}' B ′ such that CSP ( B ′ ) \operatorname{CSP}(\mathcal{B}') CSP ( B ′ ) is NP-complete, or
B \mathcal{B} B is preserved by a constant operation.
B \mathcal{B} B is preserved by min. Equivalently, every relation of B \mathcal{B} B has a definition by a propositional Horn formula.
B \mathcal{B} B is preserved by max. Equivalently, every relation of B \mathcal{B} B has a definition by a dual-Horn formula, that is, by a propositional formula in CNF where every clause contains at most one negative literal.
B \mathcal{B} B is preserved by the majority operation. Equivalently, every relation of B \mathcal{B} B is bijunctive.
B \mathcal{B} B is preserved by the minority operation. Equivalently, every relation of B \mathcal{B} B can be defined by a conjunction of linear equations modulo 2 2 2 .
In cases (1)–(5), for every finite-signature reduct B ′ \mathcal{B}' B ′ of B \mathcal{B} B the problem CSP ( B ′ ) \operatorname{CSP}(\mathcal{B}') CSP ( B ′ ) can be solved in polynomial time.
Proof. If Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) contains a constant operation, then we are in case one; so suppose in the following that this is not the case. If NAE is primitively positively definable in B \mathcal{B} B , then CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) is NP-hard by reduction from positive not-all-equal-3SAT [61]. Otherwise, by Theorem 6.7 there is an operation f ∈ Pol ( B ) f\in\operatorname{Pol}(\mathcal{B}) f ∈ Pol ( B ) that violates NAE. If f f f defined as x ↦ f ( x , … , x ) x\mapsto f(x,\ldots,x) x ↦ f ( x , … , x ) equals the identity then f f f is idempotent. Otherwise, since Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) contains no constant operations, f ^ \hat{f} f ^ equals ¬ \neg ¬ . But then ¬ f ∈ Pol ( B ) \neg f \in\operatorname{Pol}(\mathcal{B}) ¬ f ∈ Pol ( B ) is idempotent and also violates NAE. So let us assume in the following that f f f is idempotent. Then f f f generates an at least binary minimal operation g ∈ Pol ( B ) g \in\operatorname{Pol}(\mathcal{B}) g ∈ Pol ( B ) .
By Theorem 6.27 , the operation g g g equals min, max, the Boolean minority, or the Boolean majority operation.
g = min g = \min g = min or g = max g = \max g = max . By Lemma 6.31 , the relations of B \mathcal{B} B are preserved by min if and only if they can be defined by propositional Horn formulas. It is well-known that positive unit-resolution is a polynomial-time decision procedure for the satisfiability problem of propositional Horn-clauses [106]. In fact, the adaptation of the arc-consistency procedure for relational structures (Exercise 92) solves CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) . The case that g = max g = \max g = max is dual to this case.
g = majority g = \operatorname{majority} g = majority . By Lemma 6.32 , the relations of B \mathcal{B} B are preserved by majority if and only if they are bijunctive. Hence, in this case the instances of CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) can be viewed as instances of the 2SAT problem, and can be solved in linear time [3] (Exercise 91).
This concludes the proof of the statement.
Exercise 125. What is the complexity of CSP ( { 0 , 1 } ; 1 I N 3 ) \operatorname{CSP}(\{0,1\};1\mathrm{IN}3) CSP ({ 0 , 1 } ; 1 IN 3 ) where
1 I N 3 : = { ( 0 , 0 , 1 ) , ( 0 , 1 , 0 ) , ( 1 , 0 , 0 ) } . 1\mathrm{IN}3 := \{(0,0,1),(0,1,0),(1,0,0)\}. 1 IN 3 := {( 0 , 0 , 1 ) , ( 0 , 1 , 0 ) , ( 1 , 0 , 0 )} .
Exercise 126. Show that if A A A is a finite set and f : A → A f:A \to A f : A → A , then g : = f ∣ A ∣ ! g := f^{|A|!} g := f ∣ A ∣ ! satisfies
g ( g ( x ) ) = g ( x ) for all x ∈ A . g(g(x)) = g(x) \quad\text{for all } x \in A. g ( g ( x )) = g ( x ) for all x ∈ A .
Exercise 127. Show that if f f f is a permutation on a finite set A A A , then either f f f is the identity or f f f generates a permutation g g g which is not the identity and additionally satisfies g p ( x ) = x g^p(x) = x g p ( x ) = x for some prime p p p .
Exercise 128. Show that if A A A is a finite set and f : A → A f:A \to A f : A → A is not a permutation, then f f f generates a non-identity operation g g g which additionally satisfies g ( g ( x ) ) = g ( x ) g(g(x)) = g(x) g ( g ( x )) = g ( x ) .
Exercise 129. Show that a Boolean relation R ⊆ { 0 , 1 } k R \subseteq\{0,1\}^{k} R ⊆ { 0 , 1 } k can be defined by a propositional Horn formula if and only if it is primitively positively definable in ( { 0 , 1 } ; { 0 , 1 } 3 ∖ { ( 1 , 1 , 0 ) } , { 0 } , { 1 } ) (\{0,1\};\{0,1\}^{3} \setminus\{(1,1,0)\},\{0\},\{1\}) ({ 0 , 1 } ; { 0 , 1 } 3 ∖ {( 1 , 1 , 0 )} , { 0 } , { 1 }) .
Exercise 130. Show that all polymorphisms of ( { 0 , 1 } ; N A E ) (\{0,1\};\mathrm{NAE}) ({ 0 , 1 } ; NAE ) are essentially unary. Hint: one way to prove this is to use Theorem 6.23 .
Exercise 131. Show that all polymorphisms of ( { 0 , 1 } ; { ( 0 , 0 , 1 ) , ( 0 , 1 , 0 ) , ( 1 , 0 , 0 ) } ) (\{0,1\};\{(0,0,1),(0,1,0),(1,0,0)\}) ({ 0 , 1 } ; {( 0 , 0 , 1 ) , ( 0 , 1 , 0 ) , ( 1 , 0 , 0 )}) are projections. Hint: one way to prove this is to use Theorem 6.23 .
Exercise 132. Show that
⟨ min ⟩ = Pol ( { 0 , 1 } ; { 0 } , { 1 } , { 0 , 1 } 3 ∖ { ( 1 , 1 , 0 ) } ) = { ( x 1 , … , x k ) ↦ min ( x i 1 , … , x i ℓ ) ∣ 1 ≤ ℓ ≤ k , i 1 , … , i ℓ ∈ [ k ] } . \begin{aligned}
\langle\min\rangle= \operatorname{Pol}(\{0,1\};\{0\},\{1\},\{0,1\}^{3}\setminus\{(1,1,0)\}) \\
&= \{(x_1,\ldots,x_k)\mapsto\min(x_{i_1},\ldots,x_{i_\ell})\mid1\leq\ell\leq k,\ i_1,\ldots,i_\ell\in[k]\}.
\end{aligned} ⟨ min ⟩ = Pol ({ 0 , 1 } ; { 0 } , { 1 } , { 0 , 1 } 3 ∖ {( 1 , 1 , 0 )}) = {( x 1 , … , x k ) ↦ min ( x i 1 , … , x i ℓ ) ∣ 1 ≤ ℓ ≤ k , i 1 , … , i ℓ ∈ [ k ]} .
Exercise 133. Show that the operation f f f from case 6 in the proof of Rosenberg’s five types theorem (Theorem 6.23 ) not only generates a majority operation, but also a minority operation.
Exercise 134. Determine the complexity of the following CSPs.
CSP ( { 0 , 1 } ; { ( 0 , 0 , 1 , 1 ) , ( 1 , 1 , 0 , 0 ) } ) \operatorname{CSP}(\{0,1\};\{(0,0,1,1),(1,1,0,0)\}) CSP ({ 0 , 1 } ; {( 0 , 0 , 1 , 1 ) , ( 1 , 1 , 0 , 0 )})
CSP ( { 0 , 1 } ; { ( 0 , 0 , 1 ) , ( 0 , 1 , 0 ) , ( 1 , 0 , 0 ) , ( 1 , 1 , 1 ) } , { ( 0 , 1 ) , ( 1 , 0 ) } ) \operatorname{CSP}(\{0,1\};\{(0,0,1),(0,1,0),(1,0,0),(1,1,1)\},\{(0,1),(1,0)\}) CSP ({ 0 , 1 } ; {( 0 , 0 , 1 ) , ( 0 , 1 , 0 ) , ( 1 , 0 , 0 ) , ( 1 , 1 , 1 )} , {( 0 , 1 ) , ( 1 , 0 )})
CSP ( { 0 , 1 } ; { 0 , 1 } 3 ∖ { ( 1 , 1 , 0 ) } , { ( 0 , 1 ) , ( 1 , 0 ) } ) . \operatorname{CSP}(\{0,1\};\{0,1\}^{3}\setminus\{(1,1,0)\},\{(0,1),(1,0)\}). CSP ({ 0 , 1 } ; { 0 , 1 } 3 ∖ {( 1 , 1 , 0 )} , {( 0 , 1 ) , ( 1 , 0 )}) .
Exercise 135. Show that a relation R ⊆ { 0 , 1 } k R\subseteq\{0,1\}^{k} R ⊆ { 0 , 1 } k is preserved by ( x , y , z ) ↦ x ∧ ( y ∨ z ) (x,y,z)\mapsto x\land(y\lor z) ( x , y , z ) ↦ x ∧ ( y ∨ z ) if and only if it can be defined by a conjunction of clauses such that each clause either consists of a single positive literal, or a positive and a negative literal, or only negative literals.
Exercise 136. The Rosenberg theorem is only a preclassification in the sense that not every operation which has one of the five types is minimal. For each of the following five questions, either present a proof or give a counterexample.
Which unary operations which are a permutation such that f p ( x ) = x f^{p}(x)=x f p ( x ) = x for some prime p p p , or which satisfy f ( f ( x ) ) = f ( x ) f(f(x))=f(x) f ( f ( x )) = f ( x ) , are minimal?
Is every binary idempotent operation minimal?
Is every majority operation minimal?
Is every minority operation minimal?
Is every k k k -ary semiprojection, for k ≥ 3 k\geq3 k ≥ 3 , which is not a projection, minimal?
Near Unanimity Polymorphisms
An operation f f f of arity at least 3 is a quasi near-unanimity operation if it satisfies the identities
f ( x , … , x , y ) ≈ f ( x , … , x , y , x ) ≈ ⋯ ≈ f ( y , x , … , x ) ≈ f ( x , … , x ) . f(x,\ldots,x,y)\approx f(x,\ldots,x,y,x)\approx\cdots\approx f(y,x,\ldots,x)\approx f(x,\ldots,x). f ( x , … , x , y ) ≈ f ( x , … , x , y , x ) ≈ ⋯ ≈ f ( y , x , … , x ) ≈ f ( x , … , x ) .
If f f f is additionally idempotent, then it is called a near-unanimity operation . Note that majority operations are exactly the ternary near-unanimity operations.
Example 6.34. We have already encountered a near-unanimity operation in Example 6.14. If D D D has two elements, say D = { 0 , 1 } D=\{0,1\} D = { 0 , 1 } , then there is a near unanimity f k f_k f k of arity k ≥ 3 k\geq3 k ≥ 3 which returns 0 if at least two of its arguments are 0, and returns 1 otherwise. An interesting relation in this context is
B k : = { 0 , 1 } k ∖ { ( 1 , … , 1 ) } . B_k:=\{0,1\}^{k}\setminus\{(1,\ldots,1)\}. B k := { 0 , 1 } k ∖ {( 1 , … , 1 )} .
Note that B k B_k B k is not preserved by f k f_k f k , because
( 1 , … , 1 , 0 ) , ( 1 , … , 1 , 0 , 1 ) , … , ( 0 , 1 , … , 1 ) ∈ B k , (1,\ldots,1,0),(1,\ldots,1,0,1),\ldots,(0,1,\ldots,1) \in B_k, ( 1 , … , 1 , 0 ) , ( 1 , … , 1 , 0 , 1 ) , … , ( 0 , 1 , … , 1 ) ∈ B k ,
but ( f k ( 1 , … , 1 , 0 ) , f k ( 1 , … , 1 , 0 , 1 ) , … , f k ( 0 , 1 , … , 1 ) ) = ( 1 , … , 1 ) ∉ B k (f_k(1,\ldots,1,0),f_k(1,\ldots,1,0,1),\ldots,f_k(0,1,\ldots,1))=(1,\ldots,1)\notin B_k ( f k ( 1 , … , 1 , 0 ) , f k ( 1 , … , 1 , 0 , 1 ) , … , f k ( 0 , 1 , … , 1 )) = ( 1 , … , 1 ) ∈ / B k .
However, B k B_k B k is preserved by f k + 1 f_{k+1} f k + 1 : if t 1 , … , t k + 1 ∈ { 0 , 1 } k t^1,\ldots,t^{k+1}\in\{0,1\}^k t 1 , … , t k + 1 ∈ { 0 , 1 } k are such that
f k + 1 ( t 1 , … , t k + 1 ) = ( 1 , … , 1 ) ∉ B k , f_{k+1}(t^1,\ldots,t^{k+1})=(1,\ldots,1)\notin B_k, f k + 1 ( t 1 , … , t k + 1 ) = ( 1 , … , 1 ) ∈ / B k ,
then for each i ∈ [ k ] i\in[k] i ∈ [ k ] there is at most one entry 0 0 0 in ( t i 1 , … , t i k + 1 ) (t_i^1,\ldots,t_i^{k+1}) ( t i 1 , … , t i k + 1 ) , and by the pigeon-hole principle there exists j ∈ [ k + 1 ] j\in[k+1] j ∈ [ k + 1 ] such that t j t^j t j equals ( 1 , … , 1 ) ∉ B k (1,\ldots,1)\notin B_k ( 1 , … , 1 ) ∈ / B k . △
We later often need a more flexible notation concerning projections.
Definition 6.35. For I = { i 1 , … , i k } ∈ ( [ n ] k ) I=\{i_1,\ldots,i_k\}\in\binom{[n]}{k} I = { i 1 , … , i k } ∈ ( k [ n ] ) , with i 1 < ⋯ < i k i_1<\cdots<i_k i 1 < ⋯ < i k , we write π I n : A n → A k \pi_I^n:A^n\to A^k π I n : A n → A k for the function defined by π I n ( t ) : = ( t i 1 , … , t i k ) \pi_I^n(t):=(t_{i_1},\ldots,t_{i_k}) π I n ( t ) := ( t i 1 , … , t i k ) . Sometimes, it will also be convenient to define π s n ( t ) \pi_s^n(t) π s n ( t ) for t ∈ A n t\in A^n t ∈ A n and s ∈ [ n ] k s\in[n]^k s ∈ [ n ] k , as follows: π s n ( t ) : = ( t s 1 , … , t s k ) ∈ A k \pi_s^n(t):=(t_{s_1},\ldots,t_{s_k})\in A^k π s n ( t ) := ( t s 1 , … , t s k ) ∈ A k . If s = ( s 1 , … , s k ) s=(s_1,\ldots,s_k) s = ( s 1 , … , s k ) , we may also omit the brackets in the subscript and write π s 1 , … , s k n ( t ) \pi_{s_1,\ldots,s_k}^n(t) π s 1 , … , s k n ( t ) instead of π s n ( t ) \pi_s^n(t) π s n ( t ) .
Note that Definition 6.35 is compatible with our earlier definition of the projection operations π i n \pi_i^n π i n . If n n n is clear from the context, the superscript n n n may also be omitted. We use compact notation for applying functions pointwise or setwise. In particular, if R ⊆ A n R\subseteq A^n R ⊆ A n , we write π i 1 , … , i k ( R ) \pi_{i_1,\ldots,i_k}(R) π i 1 , … , i k ( R ) for the relation { π i 1 , … , i k ( t ) ∣ t ∈ R } \{\pi_{i_1,\ldots,i_k}(t)\mid t\in R\} { π i 1 , … , i k ( t ) ∣ t ∈ R } . We also apply our notation for projections for relations R ⊆ A 1 × ⋯ × A n R\subseteq A_1\times\cdots\times A_n R ⊆ A 1 × ⋯ × A n instead of R ⊆ A n R\subseteq A^n R ⊆ A n .
Theorem 6.36 (Baker–Pixley [5]). A finite structure B \mathbb{B} B has a k + 1 k+1 k + 1 -ary near unanimity polymorphism if and only if every relation R R R with a primitive positive definition in B \mathbb{B} B of arity m ≥ k m\ge k m ≥ k satisfies
R = { t ∈ B m ∣ π S ( t ) ∈ π S ( R ) for every S ∈ ( [ m ] k ) } . (17) R=\left\{t\in B^m\mid\pi_S(t)\in\pi_S(R)\text{ for every }S\in\binom{[m]}{k}\right\}. \tag*{(17)} R = { t ∈ B m ∣ π S ( t ) ∈ π S ( R ) for every S ∈ ( k [ m ] ) } . (17)
We revisit the non-finitely-related clone from Example 6.14.
Example 6.37. Let D \mathcal{D} D be the structure with domain { 0 , 1 } \{0,1\} { 0 , 1 } which contains
the unary relation { 0 } \{0\} { 0 } ,
the binary relation ≤ : = { ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 1 ) } \le:=\{(0,0),(0,1),(1,1)\} ≤:= {( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 1 )} , and
for every n ∈ N n\in\mathbb{N} n ∈ N the relation B n : = { 0 , 1 } n ∖ { ( 1 , … , 1 ) } B_n:=\{0,1\}^n\setminus\{(1,\ldots,1)\} B n := { 0 , 1 } n ∖ {( 1 , … , 1 )} .
Note that all of these relations are preserved by the operation p : { 0 , 1 } 3 → { 0 , 1 } p:\{0,1\}^3\to\{0,1\} p : { 0 , 1 } 3 → { 0 , 1 } given by ( x , y , z ) ↦ x ∧ ( y ∨ z ) (x,y,z)\mapsto x\land(y\lor z) ( x , y , z ) ↦ x ∧ ( y ∨ z ) . We claim that Pol ( D ) = ⟨ p ⟩ \operatorname{Pol}(\mathcal{D})=\langle p\rangle Pol ( D ) = ⟨ p ⟩ . We already know that ⟨ p ⟩ ⊆ Pol ( D ) \langle p\rangle\subseteq\operatorname{Pol}(\mathcal{D}) ⟨ p ⟩ ⊆ Pol ( D ) . For the converse inclusion, note that every relation R R R that is preserved by p p p is also preserved by p ( x , y , y ) = min ( x , y ) p(x,y,y)=\min(x,y) p ( x , y , y ) = min ( x , y ) , and hence it is Horn (Lemma 6.31 ). Let φ \varphi φ be a propositional Horn formula in CNF that defines R R R ; we may assume that φ \varphi φ is reduced (Definition 6.30 ). Suppose for contradiction that φ \varphi φ contains a clause ψ \psi ψ with one positive literal u u u and two negative literals ¬ v \neg v ¬ v and ¬ w \neg w ¬ w . Since φ \varphi φ is reduced, this means that R R R has satisfying assignments s 1 , s 2 , s 3 s_1,s_2,s_3 s 1 , s 2 , s 3 such that u u u is the only literal in ψ \psi ψ satisfied by s 1 s_1 s 1 , ¬ v \neg v ¬ v is the only literal of ψ \psi ψ satisfied by s 2 s_2 s 2 , and ¬ w \neg w ¬ w is the only literal of ψ \psi ψ satisfied by s 3 s_3 s 3 . Define s : = p ( s 1 , s 2 , s 3 ) s:=p(s_1,s_2,s_3) s := p ( s 1 , s 2 , s 3 ) . Then s ( u ) = p ( 1 , 0 , 0 ) = 0 s(u)=p(1,0,0)=0 s ( u ) = p ( 1 , 0 , 0 ) = 0 , s ( v ) = p ( 1 , 0 , 1 ) = 1 s(v)=p(1,0,1)=1 s ( v ) = p ( 1 , 0 , 1 ) = 1 , and s ( w ) = p ( 1 , 1 , 0 ) = 1 s(w)=p(1,1,0)=1 s ( w ) = p ( 1 , 1 , 0 ) = 1 . Hence, s s s satisfies none of the literals u , ¬ v , ¬ w u,\neg v,\neg w u , ¬ v , ¬ w ;
moreover, the other literals of ψ \psi ψ are not satisfied as well, a contradiction to the assumption that R R R is preserved by p p p . Therefore, all clauses of ϕ \phi ϕ either consist of a single positive literal, or of one positive and one negative literal, or only of negative literals. This shows that R R R can even be defined by a conjunction of relations of D \mathcal{D} D (no existential quantification is needed), and hence
⟨ p ⟩ = Pol ( Inv ( { p } ) ) (Proposition 6.5) ⊇ Pol ( D p p ) (by the above) ⊇ Pol ( Inv ( Pol ( D ) ) ) (Proposition 6.6) = Pol ( D ) (Proposition 6.5). \begin{aligned}
\langle p\rangle&= \operatorname{Pol}(\operatorname{Inv}(\{p\})) && \text{(Proposition 6.5)}\\
&\supseteq\operatorname{Pol}(\mathcal{D}_{\mathrm{pp}}) && \text{(by the above)}\\
&\supseteq\operatorname{Pol}(\operatorname{Inv}(\operatorname{Pol}(\mathcal{D}))) && \text{(Proposition 6.6)}\\
&= \operatorname{Pol}(\mathcal{D}) && \text{(Proposition 6.5).}
\end{aligned} ⟨ p ⟩ = Pol ( Inv ({ p })) ⊇ Pol ( D pp ) ⊇ Pol ( Inv ( Pol ( D ))) = Pol ( D ) (Proposition 6.5) (by the above) (Proposition 6.6) (Proposition 6.5).
Suppose that E \mathcal{E} E is a reduct of D \mathcal{D} D with finite signature; let k k k be the maximal arity of the relations in E \mathcal{E} E . Then E \mathcal{E} E is preserved by the k + 1 k+1 k + 1 -ary near unanimity polymorphism f k + 1 f_{k+1} f k + 1 from Example 6.34. We have already mentioned that this operation does not preserve the relation B k + 1 = { 0 , 1 } k + 1 ∖ { ( 1 , … , 1 ) } B_{k+1} = \{0,1\}^{k+1} \setminus\{(1,\ldots,1)\} B k + 1 = { 0 , 1 } k + 1 ∖ {( 1 , … , 1 )} . It follows that Pol ( D ) \operatorname{Pol}(\mathcal{D}) Pol ( D ) is a proper subclone of Pol ( E ) \operatorname{Pol}(\mathcal{E}) Pol ( E ) . Note that this shows that there is no structure D ′ \mathcal{D}' D ′ over the domain { 0 , 1 } \{0,1\} { 0 , 1 } with finitely many relations such that Pol ( D ′ ) = Pol ( D ) \operatorname{Pol}(\mathcal{D}') = \operatorname{Pol}(\mathcal{D}) Pol ( D ′ ) = Pol ( D ) , because the relations of D ′ \mathcal{D}' D ′ would have a primitive positive definition in a reduct E \mathcal{E} E of D \mathcal{D} D with finite relational signature, as we have seen above. We have also seen that Pol ( D ) \operatorname{Pol}(\mathcal{D}) Pol ( D ) is a proper subclone of Pol ( E ) \operatorname{Pol}(\mathcal{E}) Pol ( E ) , and hence Pol ( D ′ ) ⊆ Pol ( E ) \operatorname{Pol}(\mathcal{D}') \subseteq\operatorname{Pol}(\mathcal{E}) Pol ( D ′ ) ⊆ Pol ( E ) is a proper subclone as well. △
Universal Algebra
We have seen in § 7 that for finite relational structures B \mathcal{B} B with finite relational signature, the computational complexity of CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) only depends on the polymorphisms of B \mathcal{B} B . For more advanced results that use this perspective, it will be useful to view the set of all polymorphisms of B \mathcal{B} B as an algebra, since we may then use ideas and results from universal algebra.
Algebras and Clones
In universal algebra, an algebra is simply a structure with a purely functional signature. We will typically use bold font letters, like A \mathbf{A} A , to denote algebras, and the corresponding capital roman letters, like A A A , to denote their domain.
Example 7.1 (Group). A group is an algebra with a binary function symbol ∘ \circ ∘ for composition, a unary function symbol − 1 {}^{-1} − 1 for taking the inverse, and a constant denoted by e e e , satisfying
∀ x , y , z . x ∘ ( y ∘ z ) = ( x ∘ y ) ∘ z \forall x,y,z.\ x \circ(y \circ z) = (x \circ y) \circ z ∀ x , y , z . x ∘ ( y ∘ z ) = ( x ∘ y ) ∘ z ,
∀ x . x ∘ x − 1 = e \forall x.\ x \circ x^{-1} = e ∀ x . x ∘ x − 1 = e ,
∀ x . e ∘ x = x \forall x.\ e \circ x = x ∀ x . e ∘ x = x , and ∀ x . x ∘ e = x \forall x.\ x \circ e = x ∀ x . x ∘ e = x .
Note that all axioms are universal in the sense that all the variables are universally quantified (more on that comes later). A group is called abelian if it additionally satisfies
∀ x , y . x ∘ y = y ∘ x \forall x,y.\ x \circ y = y \circ x ∀ x , y . x ∘ y = y ∘ x For abelian groups we sometimes use the signature { + , − , 0 } \{+,-,0\} { + , − , 0 } instead of { ∘ , − 1 , e } \{\circ,{}^{-1},e\} { ∘ , − 1 , e } . △
Example 7.2 (Ring). A (unital) ring is an algebra R \mathbf{R} R with the signature { ⋅ , + , − , 0 , 1 } \{\cdot,+,-,0,1\} { ⋅ , + , − , 0 , 1 } where ⋅ , + \cdot,+ ⋅ , + are binary8 , − - − is unary, and 0 , 1 0,1 0 , 1 are constants, such that ( R ; + , − , 0 ) (R; +,-,0) ( R ; + , − , 0 ) is an abelian group and additionally
∀ x , y , z . ( x ⋅ y ) ⋅ z = x ⋅ ( y ⋅ z ) (associativity) \forall x,y,z.\ (x \cdot y) \cdot z = x \cdot(y \cdot z) \qquad\text{(associativity)} ∀ x , y , z . ( x ⋅ y ) ⋅ z = x ⋅ ( y ⋅ z ) (associativity) ∀ x . 1 ⋅ x = x ⋅ 1 = x (multiplicative unit) \forall x.\ 1 \cdot x = x \cdot1 = x \qquad\text{(multiplicative unit)} ∀ x . 1 ⋅ x = x ⋅ 1 = x (multiplicative unit) ∀ x , y , z . x ⋅ ( y + z ) = x ⋅ y + x ⋅ z (left distributivity) \forall x,y,z.\ x \cdot(y+z) = x \cdot y + x \cdot z \qquad\text{(left distributivity)} ∀ x , y , z . x ⋅ ( y + z ) = x ⋅ y + x ⋅ z (left distributivity) ∀ x , y , z . ( y + z ) ⋅ x = y ⋅ x + z ⋅ x (right distributivity) \forall x,y,z.\ (y+z) \cdot x = y \cdot x + z \cdot x \qquad\text{(right distributivity)} ∀ x , y , z . ( y + z ) ⋅ x = y ⋅ x + z ⋅ x (right distributivity) A ring is called commutative if it additionally satisfies
∀ x , y . x ⋅ y = y ⋅ x (commutativity) \forall x,y.\ x \cdot y = y \cdot x \qquad\text{(commutativity)} ∀ x , y . x ⋅ y = y ⋅ x (commutativity) Fields are commutative rings where 0 ≠ 1 0 \ne1 0 = 1 and where every non-zero element x x x has a multiplicative inverse y y y , i.e., x ⋅ y = 1 x \cdot y = 1 x ⋅ y = 1 . We often omit the symbol ⋅ \cdot ⋅ for readability. △
The next example generalises vector spaces.
Example 7.3 (Module). Let R \mathbf{R} R be a ring. An R \mathbf{R} R -module is an algebra M \mathbf{M} M with the signature { + , − , 0 } ∪ { f r ∣ r ∈ R } \{+,-,0\} \cup\{f_r \mid r \in R\} { + , − , 0 } ∪ { f r ∣ r ∈ R } such that ( M ; + , − , 0 ) (M; +,-,0) ( M ; + , − , 0 ) is an abelian group and for all r , s ∈ R r,s \in R r , s ∈ R it holds that
∀ x , y . f r ( x + y ) = f r ( x ) + f r ( y ) (18) \forall x,y.\ f_r(x+y) = f_r(x) + f_r(y) \tag*{(18)} ∀ x , y . f r ( x + y ) = f r ( x ) + f r ( y ) (18) ∀ x . f r + s ( x ) = f r ( x ) + f s ( x ) (19) \forall x.\ f_{r+s}(x) = f_r(x) + f_s(x) \tag*{(19)} ∀ x . f r + s ( x ) = f r ( x ) + f s ( x ) (19) ∀ x . f r ( f s ( x ) ) = f r s ( x ) . (20) \forall x.\ f_r(f_s(x)) = f_{rs}(x). \tag*{(20)} ∀ x . f r ( f s ( x )) = f r s ( x ) . (20) An R \mathbf{R} R -module is called unitary if it additionally satisfies ∀ x . f 1 ( x ) = x \forall x.f_1(x)=x ∀ x . f 1 ( x ) = x . We usually write r x rx r x instead of f r ( x ) f_r(x) f r ( x ) .
An alternative formalisation of modules is to view them as structures with two sorts, one sort for R R R and one for M M M above (see § 5.1 ). The details of this perspective are the content of Exercise 141 and omitted because we do not need it in this text. △
Example 7.4 (Semilattice). A meet-semilattice S \mathcal{S} S is a { ≤ } \{\leq\} { ≤ } -structure with domain S S S such that ≤ S \leq^{\mathcal{S}} ≤ S denotes a partial order where any two u , v ∈ S u,v \in S u , v ∈ S have a (unique) greatest lower bound u ∧ v u \wedge v u ∧ v , i.e., an element w w w such that w ≤ u w \leq u w ≤ u , w ≤ v w \leq v w ≤ v , and for all w ′ w' w ′ with w ′ ≤ u w' \leq u w ′ ≤ u and w ′ ≤ v w' \leq v w ′ ≤ v we have w ′ ≤ w w' \leq w w ′ ≤ w . Dually, a join-semilattice is a partial order with least upper bounds, denoted by u ∨ v u \vee v u ∨ v . A semilattice is a meet-semilattice or a join-semilattice where the distinction between meet and join is either not essential or clear from the context.
Semilattices can also be characterised as { ∧ } \{\wedge\} { ∧ } -algebras where ∧ \wedge ∧ is a binary operation that must satisfy the following axioms
∀ x , y , z : x ∧ ( y ∧ z ) = ( x ∧ y ) ∧ z (associativity) \forall x,y,z:\ x \wedge(y \wedge z) = (x \wedge y) \wedge z \qquad\text{(associativity)} ∀ x , y , z : x ∧ ( y ∧ z ) = ( x ∧ y ) ∧ z (associativity) ∀ x , y : x ∧ y = y ∧ x (commutativity) \forall x,y:\ x \wedge y = y \wedge x \qquad\text{(commutativity)} ∀ x , y : x ∧ y = y ∧ x (commutativity) ∀ x : x ∧ x = x (idempotency, or idempotence). \forall x:\ x \wedge x = x \qquad\text{(idempotency, or idempotence).} ∀ x : x ∧ x = x (idempotency, or idempotence). Clearly, the operation ∧ S \wedge^{\mathcal{S}} ∧ S , defined as above in a semilattice S \mathcal{S} S viewed as a poset, satisfies these axioms. Conversely, if ( S ; ∧ ) (S;\wedge) ( S ; ∧ ) is a semilattice, then the formula x ∧ y = x x \wedge y = x x ∧ y = x defines a partial order on S S S which is a meet-semilattice (and x ∧ y = y x \wedge y = y x ∧ y = y defines a partial order on S S S which is a join-semilattice).
Note that the two ways of formalising semilattices differ when it comes to the notion of a substructure; a subsemilattice refers to the substructure of a semilattice when formalised as an algebraic structure.
Example 7.5 (Lattice). A lattice L \mathcal{L} L is a { ≤ } \{\leq\} { ≤ } -structure with domain L L L such that ≤ L \leq^{\mathcal{L}} ≤ L denotes a partial order such that any two u , v ∈ L u,v \in L u , v ∈ L have a greatest lower bound u ∧ v u \wedge v u ∧ v (meet) and a least upper bound, denoted by u ∨ v u \vee v u ∨ v (join). A lattice L \mathcal{L} L is called complete if every family ( u i ) i ∈ I (u_i)_{i \in I} ( u i ) i ∈ I of elements of L L L has a greatest lower bound, denoted by ⋀ i ∈ I u i \bigwedge_{i \in I} u_i ⋀ i ∈ I u i , and a least upper bound, denoted by ⋁ i ∈ I u i \bigvee_{i \in I} u_i ⋁ i ∈ I u i . This includes the empty family: its meet is the greatest element of L L L , and its join is the least element of L L L . Every non-empty finite lattice is complete.
Lattices can also be viewed as { ∧ , ∨ } \{\wedge,\vee\} { ∧ , ∨ } -algebras L \mathbf{L} L where ∧ L \wedge^{\mathbf{L}} ∧ L and ∨ L \vee^{\mathbf{L}} ∨ L are semilattice operations (Example 7.4) that additionally satisfy
∀ x , y : x ∧ ( x ∨ y ) = x and x ∨ ( x ∧ y ) = x (absorption). \forall x,y:\ x \wedge(x \vee y) = x \text{ and } x \vee(x \wedge y) = x \qquad\text{(absorption).} ∀ x , y : x ∧ ( x ∨ y ) = x and x ∨ ( x ∧ y ) = x (absorption). If L \mathbf{L} L is a lattice and the operations ∧ \wedge ∧ and ∨ \vee ∨ are defined as above for semilattices, then these two operations also satisfy the absorption axiom. Conversely, if we are given an algebra ( S ; ∧ , ∨ ) (S;\wedge,\vee) ( S ; ∧ , ∨ ) satisfying the mentioned axioms, then the formula x ∧ y = x x \wedge y = x x ∧ y = x (equivalently, the formula x ∨ y = y x \vee y = y x ∨ y = y ) defines a partial order on S S S which is a lattice. Of course, there is potential danger of confusion of the symbols for lattice operations ∧ \wedge ∧ and ∨ \vee ∨ with the propositional connectives ∧ \wedge ∧ for conjunction and ∨ \vee ∨ for disjunction (which can be seen as lattice operations on the set { 0 , 1 } ) \{0,1\}) { 0 , 1 }) which luckily should not cause trouble here. A lattice L = ( L ; ∧ , ∨ ) \mathbf{L}=(L;\wedge,\vee) L = ( L ; ∧ , ∨ ) is called distributive if it satisfies
∀ x , y , z : x ∧ ( y ∨ z ) = ( x ∧ y ) ∨ ( x ∧ z ) (distributivity). \forall x,y,z:\ x \wedge(y \vee z) = (x \wedge y) \vee(x \wedge z) \qquad\text{(distributivity).} ∀ x , y , z : x ∧ ( y ∨ z ) = ( x ∧ y ) ∨ ( x ∧ z ) (distributivity).
Exercise 141. Formalise modules (Example 7.3) as two-sorted structures as introduced in § 5.1 .
Exercise 142. Let A = ( A ; + , − , 0 ) \mathbf{A}=(A; +, -, 0) A = ( A ; + , − , 0 ) be an abelian group. Let R R R be the set of all endomorphisms of A \mathbf{A} A . Prove the following operations define a ring R \mathbf{R} R on R R R : addition is defined pointwise, and multiplication is defined as function composition. The constant 0 R 0^{\mathbf{R}} 0 R denotes the endomorphism which is constant 0, and the constant 1 R 1^{\mathbf{R}} 1 R denotes the identity.
The clone of an algebra. If A \mathbf{A} A is an algebra with the signature τ \tau τ and n ≥ 1 n \ge1 n ≥ 1 , then a τ \tau τ -term t ( x 1 , … , x n ) t(x_1,\ldots,x_n) t ( x 1 , … , x n ) gives rise to a term operation t A : A n → A t^{\mathbf{A}}: A^n \to A t A : A n → A ; the value of t A t^{\mathbf{A}} t A at a 1 , … , a n ∈ A a_1,\ldots,a_n \in A a 1 , … , a n ∈ A can be obtained by replacing the variables x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n by a 1 , … , a n a_1,\ldots,a_n a 1 , … , a n and evaluating in A \mathbf{A} A .
Example 7.6. If A \mathbf{A} A is a group, then the term operation for the term ( x ∘ y − 1 ) ∘ z (x \circ y^{-1}) \circ z ( x ∘ y − 1 ) ∘ z is a Maltsev operation on A A A . △
Example 7.7. If t ( x 1 , x 2 ) t(x_1,x_2) t ( x 1 , x 2 ) is the term that just consists of the variable x 1 x_1 x 1 , then t A t^{\mathbf{A}} t A equals the projection π 1 A \pi_1^{\mathbf{A}} π 1 A . △
Algebras give rise to clones in the following way. We denote by Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) the set of all term operations of A \mathbf{A} A of arity at least one. Clearly, Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) is an operation clone since it is closed under compositions, and contains the projections.
Polymorphism algebras. In the context of complexity classification of CSPs, algebras arise as follows.
Definition 7.8. Let B \mathbb{B} B be a relational structure with domain B B B . An algebra B \mathbf{B} B with domain B B B such that Clo ( B ) = Pol ( B ) \operatorname{Clo}(\mathbf{B})=\operatorname{Pol}(\mathbb{B}) Clo ( B ) = Pol ( B ) is called a polymorphism algebra of B \mathbb{B} B .
Note that a structure B \mathbb{B} B has many different polymorphism algebras, since Definition 7.8 does not prescribe how to assign function symbols to the polymorphisms of B \mathbb{B} B .
Any clone C \mathcal{C} C on a set D D D can be viewed as an algebra A \mathbf{A} A with domain D D D whose signature consists of the operations of C \mathcal{C} C themselves; that is, if f ∈ C f \in\mathcal{C} f ∈ C , then f A : = f f^{\mathbf{A}} := f f A := f . We will therefore use concepts defined for algebras also for clones. In particular, the polymorphism clone Pol ( B ) \operatorname{Pol}(\mathbb{B}) Pol ( B ) of a structure B \mathbb{B} B might be viewed as an algebra, which we refer to as the polymorphism algebra of B \mathbb{B} B . Note that the signature of the polymorphism algebra is always infinite, since we have polymorphisms of arbitrary finite arity.
Subalgebras, Products, Homomorphic Images
In this section we recall some basic universal-algebraic facts that will be used in the following subsections.
Subalgebras. Let A \mathbf{A} A be a τ \tau τ -algebra with domain A A A . A τ \tau τ -algebra B \mathbf{B} B with domain B ⊆ A B \subseteq A B ⊆ A is called a subalgebra of A \mathbf{A} A if for each f ∈ τ f \in\tau f ∈ τ of arity k k k we have f B ( b 1 , … , b k ) = f A ( b 1 , … , b k ) f^{\mathbf{B}}(b_1,\ldots,b_k)=f^{\mathbf{A}}(b_1,\ldots,b_k) f B ( b 1 , … , b k ) = f A ( b 1 , … , b k ) for all b 1 , … , b k ∈ B b_1,\ldots,b_k \in B b 1 , … , b k ∈ B ; in this case, we write B ≤ A \mathbf{B} \le\mathbf{A} B ≤ A . We write B < A \mathbf{B} < \mathbf{A} B < A if B ≤ A \mathbf{B} \le\mathbf{A} B ≤ A and additionally A ≠ B A \ne B A = B . A subuniverse of A \mathbf{A} A is the domain of some subalgebra of A \mathbf{A} A . Note that as for structures, we do not exclude algebras whose domain is empty (which is of course only possible if the signature does not contain any constant symbols). A subalgebra B \mathbf{B} B of A \mathbf{A} A is called proper if ∅ ≠ B ≠ A \varnothing\ne B \ne A ∅ = B = A (we use the same terminology also for subuniverses; this applies to all the terminology that we introduce for subalgebras and subuniverses). The smallest subuniverse of A \mathbf{A} A that contains a given set S ⊆ A S \subseteq A S ⊆ A is called the *subuniverse of A \mathbf{A} A generated by S S S , and the corresponding subalgebra is called the *subalgebra of A \mathbf{A} A generated by S S S , and denoted by ⟨ S ⟩ A \langle S\rangle_{\mathbf{A}} ⟨ S ⟩ A .
Products. Let A , B \mathbf{A},\mathbf{B} A , B be τ \tau τ -algebras with domain A A A and B B B , respectively. Then the product A × B \mathbf{A}\times\mathbf{B} A × B is the τ \tau τ -algebra with domain A × B A\times B A × B such that for each f ∈ τ f\in\tau f ∈ τ of arity k k k we have
f A × B ( ( a 1 , b 1 ) , … , ( a k , b k ) ) = ( f A ( a 1 , … , a k ) , f B ( b 1 , … , b k ) ) f^{\mathbf{A}\times\mathbf{B}}\left((a_1,b_1),\ldots,(a_k,b_k)\right)=\left(f^{\mathbf{A}}(a_1,\ldots,a_k),f^{\mathbf{B}}(b_1,\ldots,b_k)\right) f A × B ( ( a 1 , b 1 ) , … , ( a k , b k ) ) = ( f A ( a 1 , … , a k ) , f B ( b 1 , … , b k ) )
for all a 1 , … , a k ∈ A a_1,\ldots,a_k\in A a 1 , … , a k ∈ A and b 1 , … , b k ∈ B b_1,\ldots,b_k\in B b 1 , … , b k ∈ B . More generally, when ( A i ) i ∈ I (\mathbf{A}_i)_{i\in I} ( A i ) i ∈ I is a sequence of τ \tau τ -algebras, indexed by some set I I I , then ∏ i ∈ I A i \prod_{i\in I}\mathbf{A}_i ∏ i ∈ I A i is the τ \tau τ -algebra A \mathbf{A} A with domain ∏ i ∈ I A i \prod_{i\in I}A_i ∏ i ∈ I A i such that for a i 1 , … , a i k ∈ A i a_i^1,\ldots,a_i^k\in A_i a i 1 , … , a i k ∈ A i
f A ( ( a i 1 ) i ∈ I , … , ( a i k ) i ∈ I ) : = ( f A i ( a i 1 , … , a i k ) ) i ∈ I . f^{\mathbf{A}}\left((a_i^1)_{i\in I},\ldots,(a_i^k)_{i\in I}\right):=\left(f^{\mathbf{A}_i}(a_i^1,\ldots,a_i^k)\right)_{i\in I}. f A ( ( a i 1 ) i ∈ I , … , ( a i k ) i ∈ I ) := ( f A i ( a i 1 , … , a i k ) ) i ∈ I .
Lemma 7.9. Let A \mathbf{A} A be the polymorphism algebra of a finite structure A \mathcal{A} A . Then the (domains of the) subalgebras of A k \mathbf{A}^k A k are precisely the relations that have a primitive positive definition in A \mathcal{A} A .
Proof. A relation R ⊆ A k R\subseteq A^k R ⊆ A k is a subalgebra of A k \mathbf{A}^k A k if and only if for all m m m -ary f f f in the signature of A \mathbf{A} A and t 1 , … , t m ∈ R \mathbf{t}^1,\ldots,\mathbf{t}^m\in R t 1 , … , t m ∈ R , we have ( f ( t 1 1 , … , t 1 m ) , … , f ( t k 1 , … , t k m ) ) ∈ R \left(f(t_1^1,\ldots,t_1^m),\ldots,f(t_k^1,\ldots,t_k^m)\right)\in R ( f ( t 1 1 , … , t 1 m ) , … , f ( t k 1 , … , t k m ) ) ∈ R , which is the case if and only if R R R is preserved by all polymorphisms of A \mathcal{A} A , which is the case if and only if R R R is primitively positively definable in A \mathcal{A} A by Theorem 6.7. □ \square □
Homomorphic Images. Let A \mathbf{A} A and B \mathbf{B} B be τ \tau τ -algebras. Then a homomorphism from A \mathbf{A} A to B \mathbf{B} B is a mapping h : A → B h:A\to B h : A → B such that for all k k k -ary f ∈ τ f\in\tau f ∈ τ and a 1 , … , a k ∈ A a_1,\ldots,a_k\in A a 1 , … , a k ∈ A we have
h ( f A ( a 1 , … , a k ) ) = f B ( h ( a 1 ) , … , h ( a k ) ) . h\left(f^{\mathbf{A}}(a_1,\ldots,a_k)\right)=f^{\mathbf{B}}\left(h(a_1),\ldots,h(a_k)\right). h ( f A ( a 1 , … , a k ) ) = f B ( h ( a 1 ) , … , h ( a k ) ) .
Note that if h h h is a homomorphism from A \mathbf{A} A to B \mathbf{B} B then the image of h h h is the domain of a subalgebra of B \mathbf{B} B , which is called a homomorphic image of A \mathbf{A} A .
Definition 7.10. A congruence of an algebra A \mathbf{A} A is an equivalence relation C C C that is preserved by all operations in A \mathbf{A} A . 9
Lemma 7.11. Let B \mathcal{B} B be a finite structure, and let B \mathbf{B} B be a polymorphism algebra of B \mathcal{B} B . Then the congruences of B \mathbf{B} B are exactly the primitively positively definable equivalence relations over B \mathcal{B} B .
Proof. A direct consequence of Theorem 6.7. □ \square □
Example 7.12. Let G = ( V , E ) G=(V,E) G = ( V , E ) be the undirected graph with V = { a 1 , … , a 4 , b 1 , … , b 4 } V=\{a_1,\ldots,a_4,b_1,\ldots,b_4\} V = { a 1 , … , a 4 , b 1 , … , b 4 } such that a 1 , … , a 4 a_1,\ldots,a_4 a 1 , … , a 4 and b 1 , … , b 4 b_1,\ldots,b_4 b 1 , … , b 4 induce a clique, for each i ∈ { 1 , … , 4 } i\in\{1,\ldots,4\} i ∈ { 1 , … , 4 } there is an edge between a i a_i a i and b i b_i b i , and otherwise there are no edges in G G G . Let A \mathbf{A} A be a polymorphism algebra of G G G . Then A \mathbf{A} A has a congruence with two classes. By Lemma 7.11, it suffices to show that an equivalence relation of index two is primitively positively definable. The following primitive positive formula
∃ u , v ( E ( x , u ) ∧ E ( y , u ) ∧ E ( x , v ) ∧ E ( y , v ) ∧ E ( u , v ) ) \exists u,v\ \bigl(E(x,u)\land E(y,u)\land E(x,v)\land E(y,v)\land E(u,v)\bigr) ∃ u , v ( E ( x , u ) ∧ E ( y , u ) ∧ E ( x , v ) ∧ E ( y , v ) ∧ E ( u , v ) ) defines an equivalence relation whose classes are precisely { a 1 , … , a 4 } \{a_1,\ldots,a_4\} { a 1 , … , a 4 } and { b 1 , … , b 4 } \{b_1,\ldots,b_4\} { b 1 , … , b 4 } . △ \triangle △
Example 7.13. Let A \mathbf{A} A be the algebra with domain
A : = S 3 = { id , ( 123 ) , ( 132 ) , ( 12 ) , ( 23 ) , ( 13 ) } A := S_3 = \{ \operatorname{id}, (123), (132), (12), (23), (13) \} A := S 3 = { id , ( 123 ) , ( 132 ) , ( 12 ) , ( 23 ) , ( 13 )} (the symmetric group on three elements), and a single binary operation, the composition function of permutations. Note that A \mathbf{A} A has the subalgebra induced by { id , ( 123 ) , ( 132 ) } \{ \operatorname{id}, (123), (132) \} { id , ( 123 ) , ( 132 )} . Also note that A \mathbf{A} A homomorphically maps to ( { 0 , 1 } , + ) (\{0,1\}, +) ({ 0 , 1 } , + ) where + + + is addition modulo 2 2 2 : the preimage of 0 0 0 is { id , ( 123 ) , ( 132 ) } \{\operatorname{id}, (123), (132)\} { id , ( 123 ) , ( 132 )} and the preimage of 1 1 1 is { ( 12 ) , ( 23 ) , ( 13 ) } \{(12), (23), (13)\} {( 12 ) , ( 23 ) , ( 13 )} .
Definition 7.14. If A \mathbf{A} A is a τ \tau τ -algebra with a congruence K K K , then we write A / K \mathbf{A}/K A / K for the quotient algebra whose domain is the set A / K A/K A / K of congruence classes of K K K , and where
f A / K ( a 1 / K , … , a k / K ) = f A ( a 1 , … , a k ) / K f^{A/K}(a_1/K,\ldots,a_k/K) = f^A(a_1,\ldots,a_k)/K f A / K ( a 1 / K , … , a k / K ) = f A ( a 1 , … , a k ) / K for all a 1 , … , a k ∈ A a_1,\ldots,a_k \in A a 1 , … , a k ∈ A and k k k -ary f ∈ τ f \in\tau f ∈ τ . This is well-defined since K K K is preserved by all operations of A \mathbf{A} A .
Note that a ↦ a / K a \mapsto a/K a ↦ a / K is a surjective homomorphism from A \mathbf{A} A to A / K \mathbf{A}/K A / K , called the natural homomorphism from A \mathbf{A} A to A / K \mathbf{A}/K A / K . This essentially proves the following (see [45]).
Proposition 7.15. Let A \mathbf{A} A be an algebra. Then K K K is a congruence of A \mathbf{A} A if and only if K K K is the kernel of a homomorphism from A \mathbf{A} A to some other algebra B \mathbf{B} B .
The following is well known (see e.g. Theorem 6.3 in [45]).
Lemma 7.16. Let A \mathbf{A} A and B \mathbf{B} B be algebras with the same signature, and let h : A → B h:\mathbf{A}\to\mathbf{B} h : A → B be a homomorphism. Then
the image of any subalgebra A ′ \mathbf{A}' A ′ of A \mathbf{A} A under h h h is a subalgebra of B \mathbf{B} B , and
the preimage of any subalgebra B ′ \mathbf{B}' B ′ of B \mathbf{B} B under h h h is a subalgebra of A \mathbf{A} A .
Proof. Let f ∈ τ f \in\tau f ∈ τ be k k k -ary. Then for all a 1 , … , a k ∈ A ′ a_1,\ldots,a_k \in A' a 1 , … , a k ∈ A ′ ,
f B ( h ( a 1 ) , … , h ( a k ) ) = h ( f A ( a 1 , … , a k ) ) ∈ h ( A ′ ) , f^B(h(a_1),\ldots,h(a_k)) = h(f^A(a_1,\ldots,a_k)) \in h(A'), f B ( h ( a 1 ) , … , h ( a k )) = h ( f A ( a 1 , … , a k )) ∈ h ( A ′ ) ,
so h ( A ′ ) h(A') h ( A ′ ) is a subalgebra of B \mathbf{B} B .
Now suppose that h ( a 1 ) , … , h ( a k ) h(a_1),\ldots,h(a_k) h ( a 1 ) , … , h ( a k ) are elements of B ′ B' B ′ ; then f B ( h ( a 1 ) , … , h ( a k ) ) ∈ B ′ f^B(h(a_1),\ldots,h(a_k)) \in B' f B ( h ( a 1 ) , … , h ( a k )) ∈ B ′ and hence h ( f A ( a 1 , … , a k ) ) ∈ B ′ h(f^A(a_1,\ldots,a_k)) \in B' h ( f A ( a 1 , … , a k )) ∈ B ′ . So, f A ( a 1 , … , a k ) ∈ h − 1 ( B ′ ) f^A(a_1,\ldots,a_k) \in h^{-1}(B') f A ( a 1 , … , a k ) ∈ h − 1 ( B ′ ) which shows that h − 1 ( B ′ ) h^{-1}(B') h − 1 ( B ′ ) induces a subalgebra of A \mathbf{A} A .
Remark 7.17. If A ′ ≤ A \mathbf{A}' \leq\mathbf{A} A ′ ≤ A and K K K is a congruence of A \mathbf{A} A , then Lemma 7.16 shows that the restriction K ′ : = K ∩ ( A ′ ) 2 K' := K \cap(A')^2 K ′ := K ∩ ( A ′ ) 2 is a congruence of A ′ \mathbf{A}' A ′ ; we then sometimes abuse notation and write A ′ / K \mathbf{A}'/K A ′ / K instead of A ′ / K ′ \mathbf{A}'/K' A ′ / K ′ .
Exercise 143. Show that for all τ \tau τ -algebras A \mathbf{A} A and B \mathbf{B} B with Clo ( A ) = Clo ( B ) \operatorname{Clo}(\mathbf{A}) = \operatorname{Clo}(\mathbf{B}) Clo ( A ) = Clo ( B ) we have Clo ( A 2 ) = Clo ( B 2 ) \operatorname{Clo}(\mathbf{A}^2) = \operatorname{Clo}(\mathbf{B}^2) Clo ( A 2 ) = Clo ( B 2 ) .
Exercise 144. Find a relational signature τ \tau τ and τ \tau τ -structures A , B \mathfrak{A}, \mathfrak{B} A , B such that Pol ( A ) = Pol ( B ) \operatorname{Pol}(\mathfrak{A}) = \operatorname{Pol}(\mathfrak{B}) Pol ( A ) = Pol ( B ) but Pol ( A 2 ) ≠ Pol ( B 2 ) \operatorname{Pol}(\mathfrak{A}^2) \ne\operatorname{Pol}(\mathfrak{B}^2) Pol ( A 2 ) = Pol ( B 2 ) .
Exercise 145. Prove Proposition 7.15.
Exercise 146. Let p p p be a positive prime. Show that the only proper subalgebras of A p \mathbf{A}_p A p from Exercise 147 are of the form { a } \{a\} { a } for some a ∈ { 0 , … , p − 1 } a \in\{0,\ldots,p-1\} a ∈ { 0 , … , p − 1 } .
Hint. Use Exercise 147 and Example 6.10.
Exercise 147. Consider the algebra A n : = ( Z n ; m ) \mathbf{A}_n := (\mathbb{Z}_n;m) A n := ( Z n ; m ) where m ( x , y , z ) : = x − y + z m(x,y,z):=x-y+z m ( x , y , z ) := x − y + z . Then for every k ≥ 1 k \ge1 k ≥ 1 the clone Clo ( A n ) ( k ) \operatorname{Clo}(\mathbf{A}_n)^{(k)} Clo ( A n ) ( k ) consists of precisely the operations defined as
g ( x 0 , … , x k − 1 ) : = ∑ i a i x i g(x_0,\ldots,x_{k-1}) := \sum_i a_i x_i g ( x 0 , … , x k − 1 ) := i ∑ a i x i where a 0 , … , a k − 1 ∈ Z a_0,\ldots,a_{k-1} \in\mathbb{Z} a 0 , … , a k − 1 ∈ Z with ∑ i a i = 1 \sum_i a_i = 1 ∑ i a i = 1 .
Algebras and CSPs
Let A \mathbf{A} A and B \mathbf{B} B be algebras with the same signature, and let R ≤ A × B R \le\mathbf{A} \times\mathbf{B} R ≤ A × B be a subalgebra. The relation R R R can be viewed as the edge relation of a bipartite graph with colour classes A A A and B B B . Note that if A = B \mathbf{A} = \mathbf{B} A = B and Clo ( A ) = Pol ( A ) \operatorname{Clo}(\mathbf{A}) = \operatorname{Pol}(\mathcal{A}) Clo ( A ) = Pol ( A ) , then the relations R R R that arise in this way are precisely the binary relations on A A A that are primitively positively definable in A \mathcal{A} A . For example, if Clo ( A ) = Pol ( K 3 ) \operatorname{Clo}(\mathbf{A}) = \operatorname{Pol}(K_3) Clo ( A ) = Pol ( K 3 ) , then E ( K 3 ) ≤ A 2 E(K_3) \le\mathbf{A}^2 E ( K 3 ) ≤ A 2 and the corresponding bipartite graph is drawn in Figure 10 .
Figure 10. Illustration of E ( K 3 ) ≤ A 2 E(K_3) \le A^2 E ( K 3 ) ≤ A 2 , where Clo ( A ) = Pol ( K 3 ) \operatorname{Clo}(A) = \operatorname{Pol}(K_3) Clo ( A ) = Pol ( K 3 ) , as a bipartite graph.
The importance of the set-up of R ≤ A × B R \le\mathbf{A} \times\mathbf{B} R ≤ A × B for CSPs is that we may imagine A A A as the possible values for a variable x x x in an instance of the CSP, and B B B as the possible values for a variable y y y in the CSP, and R R R represents a binary constraint between x x x and y y y . The advantage of this perspective is that many important definitions are very intuitively phrased in the language of bipartite graphs.
We start with the following fundamental definition from universal algebra which is highly relevant for the universal-algebraic approach to CSPs, in particular in § 14 .
Definition 7.18. Let k ≥ 1 k \ge1 k ≥ 1 and A 1 , … , A k \mathbf{A}_1,\ldots,\mathbf{A}_k A 1 , … , A k be τ \tau τ -algebras. Then R ≤ A 1 × ⋯ × A k R \le\mathbf{A}_1 \times\cdots\times\mathbf{A}_k R ≤ A 1 × ⋯ × A k is called subdirect if π i ( R ) = A i \pi_i(R) = A_i π i ( R ) = A i for every i ∈ { 1 , … , k } i \in\{1,\ldots,k\} i ∈ { 1 , … , k } .
Remark 7.20. E ( H ) E(H) E ( H ) is subdirect in A 2 \mathbf{A}^{2} A 2 if and only if H H H has no sources and no sinks. Digraphs without sources and sinks are also called smooth .
Proposition 7.21. Let B \mathcal{B} B be a finite structure and let B \mathbf{B} B be such that Pol ( B ) = Clo ( B ) \operatorname{Pol}(\mathcal{B})=\operatorname{Clo}(\mathbf{B}) Pol ( B ) = Clo ( B ) . Then for any R ⊆ B k R \subseteq B^{k} R ⊆ B k , the following are equivalent.
R R R is primitively positively definable in B \mathcal{B} B ;
R ≤ B k R \leq B^{k} R ≤ B k ;
R R R is a subdirect subalgebra of B 1 × ⋯ × B k \mathbf{B}_{1} \times\cdots\times\mathbf{B}_{k} B 1 × ⋯ × B k for some uniquely determined subalgebras B 1 , … , B k \mathbf{B}_{1},\ldots,\mathbf{B}_{k} B 1 , … , B k of B \mathbf{B} B .
The perspective of viewing relations of B \mathcal{B} B as subdirect subalgebras of finite products of subalgebras of B \mathbf{B} B (as in Proposition 7.21 ) is sometimes also referred to as multisorted .
Exercise 148. Prove Proposition 7.21 .
Exercise 149. Show that a digraph G = ( V , E ) G=(V,E) G = ( V , E ) is rectangular if and only if E E E , when regarded as a bipartite graph with color classes A A A and B B B as described in this section, is a disjoint union of bicliques, i.e., if a ∈ A a \in A a ∈ A has a path to b ∈ B b \in B b ∈ B , then ( a , b ) ∈ E (a,b) \in E ( a , b ) ∈ E .
Pseudovarieties and Varieties
Varieties are a fascinatingly powerful concept to study classes of algebras. The fundamental result about varieties is Birkhoff’s theorem, which links varieties with equational theories (§ 8.5 ). By Birkhoff’s theorem, there is also a close relationship between varieties and the concept of an abstract clone (§ 8.8 ).
Throughout this section, we study classes K \mathcal{K} K of algebras with the same fixed signature.
P ( K ) \operatorname{P}(\mathcal{K}) P ( K ) denotes the class of all products of algebras from K \mathcal{K} K .
P f i n ( K ) \operatorname{P}^{\mathrm{fin}}(\mathcal{K}) P fin ( K ) denotes the class of all finite products of algebras from K \mathcal{K} K .
S ( K ) \operatorname{S}(\mathcal{K}) S ( K ) denotes the class of all subalgebras of algebras from K \mathcal{K} K .
H ( K ) \operatorname{H}(\mathcal{K}) H ( K ) denotes the class of all homomorphic images of algebras from K \mathcal{K} K .
Note that closure under homomorphic images implies in particular closure under isomorphism. For the operators P \operatorname{P} P , P f i n \operatorname{P}^{\mathrm{fin}} P fin , S \operatorname{S} S and H \operatorname{H} H we often omit the brackets when applying them to single singleton classes that just contain one algebra, i.e., we write H ( A ) \operatorname{H}(\mathbf{A}) H ( A ) instead of H ( { A } ) \operatorname{H}(\{\mathbf{A}\}) H ({ A }) . The elements of HS ( A ) \operatorname{HS}(\mathbf{A}) HS ( A ) are also called the factors of A \mathbf{A} A .
A class V \mathcal{V} V of algebras with the same signature τ \tau τ is called a pseudovariety if V \mathcal{V} V contains all homomorphic images, subalgebras, and finite direct products of algebras in V \mathcal{V} V , i.e., H ( V ) = S ( V ) = P f i n ( V ) = V \operatorname{H}(\mathcal{V})=\operatorname{S}(\mathcal{V})=\operatorname{P}^{\mathrm{fin}}(\mathcal{V})=\mathcal{V} H ( V ) = S ( V ) = P fin ( V ) = V . The class V \mathcal{V} V is called a variety if V \mathcal{V} V also contains all (finite and infinite) products of algebras in V \mathcal{V} V . So the only difference between pseudovarieties and varieties is that pseudovarieties need not be closed under direct products of infinite cardinality. The smallest pseudovariety (variety) that contains an algebra A \mathbf{A} A is called the pseudovariety (variety) generated by $\mathbf{A}.
Lemma 7.22 (HSP lemma). Let A \mathbf{A} A be an algebra.
The pseudovariety generated by A \mathbf{A} A equals HSP f i n ( A ) \operatorname{HSP}^{\mathrm{fin}}(\mathbf{A}) HSP fin ( A ) .
The variety generated by A \mathbf{A} A equals HSP ( A ) \operatorname{HSP}(\mathbf{A}) HSP ( A ) .
Proof. Clearly, HSP f i n ( A ) \operatorname{HSP}^{\mathrm{fin}}(\mathbf{A}) HSP fin ( A ) is contained in the pseudovariety generated by A \mathbf{A} A , and HSP ( A ) \operatorname{HSP}(\mathbf{A}) HSP ( A ) is contained in the variety generated by A \mathbf{A} A . For the converse inclusion, it suffices to verify that HSP f i n ( A ) \operatorname{HSP}^{\mathrm{fin}}(\mathbf{A}) HSP fin ( A ) is closed under H, S, and P f i n \mathrm{P}^{\mathrm{fin}} P fin . It is clear that H ( HSP f i n ( A ) ) = HSP f i n ( A ) \mathrm{H}(\operatorname{HSP}^{\mathrm{fin}}(\mathbf{A})) = \operatorname{HSP}^{\mathrm{fin}}(\mathbf{A}) H ( HSP fin ( A )) = HSP fin ( A ) . The second part of Lemma 7.16 implies that S ( HSP f i n ( A ) ) ⊆ H S ( SP f i n ( A ) ) = HSP f i n ( A ) \mathrm{S}(\operatorname{HSP}^{\mathrm{fin}}(\mathbf{A})) \subseteq\mathrm{HS}(\operatorname{SP}^{\mathrm{fin}}(\mathbf{A})) = \operatorname{HSP}^{\mathrm{fin}}(\mathbf{A}) S ( HSP fin ( A )) ⊆ HS ( SP fin ( A )) = HSP fin ( A ) . Finally,
P f i n ( HSP f i n ( A ) ) ⊆ H P f i n S P f i n ( A ) ⊆ HSP f i n P f i n ( A ) = HSP f i n ( A ) . \mathrm{P}^{\mathrm{fin}}(\operatorname{HSP}^{\mathrm{fin}}(\mathbf{A})) \subseteq\mathrm{H}\mathrm{P}^{\mathrm{fin}}\mathrm{S}\mathrm{P}^{\mathrm{fin}}(\mathbf{A}) \subseteq\operatorname{HSP}^{\mathrm{fin}}\mathrm{P}^{\mathrm{fin}}(\mathbf{A}) = \operatorname{HSP}^{\mathrm{fin}}(\mathbf{A}). P fin ( HSP fin ( A )) ⊆ H P fin S P fin ( A ) ⊆ HSP fin P fin ( A ) = HSP fin ( A ) . The proof that HSP ( A ) \operatorname{HSP}(\mathbf{A}) HSP ( A ) is closed under H, S, and P is analogous.
Pseudo-varieties are linked to primitive positive interpretability from Section 5.7.
Theorem 7.23. Let C \mathcal{C} C be a finite structure with polymorphism algebra C \mathbf{C} C . Then B ∈ I ( C ) \mathcal{B} \in\operatorname{I}(\mathcal{C}) B ∈ I ( C ) if and only if there exists B ∈ HSP f i n ( C ) \mathbf{B} \in\operatorname{HSP}^{\mathrm{fin}}(\mathbf{C}) B ∈ HSP fin ( C ) such that Clo ( B ) ⊆ Pol ( B ) \operatorname{Clo}(\mathbf{B}) \subseteq\operatorname{Pol}(\mathcal{B}) Clo ( B ) ⊆ Pol ( B ) .
Proof. We only prove the ‘if’ part of the statement here; the proof of the ‘only if’ part is similarly easy. There exists a finite number d ≥ 1 d \ge1 d ≥ 1 , a subalgebra D \mathbf{D} D of C d \mathbf{C}^{d} C d , and a surjective homomorphism h h h from D \mathbf{D} D to B \mathbf{B} B . We claim that B \mathcal{B} B has a primitive positive interpretation I I I of dimension d d d in C \mathcal{C} C . All operations of C \mathbf{C} C preserve D D D (viewed as a d d d -ary relation over C \mathcal{C} C ), since D D D is a subalgebra of C d \mathbf{C}^{d} C d . By Theorem 6.7, this implies that D D D has a primitive positive definition δ ( x 1 , … , x d ) \delta(x_{1},\ldots,x_{d}) δ ( x 1 , … , x d ) in C \mathcal{C} C , which becomes the domain formula δ I \delta_{I} δ I of I I I . As coordinate map we choose the mapping h h h . Since h h h is an algebra homomorphism, the kernel K K K of h h h is a congruence of D \mathbf{D} D . It follows that K K K , viewed as a 2 d 2d 2 d -ary relation over C \mathcal{C} C , is preserved by all operations from C \mathbf{C} C . Theorem 6.7 implies that K K K has a primitive positive definition in C \mathcal{C} C . This definition becomes the formula = I =_{I} = I . Finally, let R R R be a relation of B \mathcal{B} B and let f f f be a function symbol from the signature of B \mathbf{B} B . By assumption, f B f^{\mathbf{B}} f B preserves R R R . It is easy to verify that then f C f^{\mathbf{C}} f C preserves h − 1 ( R ) h^{-1}(R) h − 1 ( R ) . Hence, all polymorphisms of C \mathcal{C} C preserve h − 1 ( R ) h^{-1}(R) h − 1 ( R ) , and the relation h − 1 ( R ) h^{-1}(R) h − 1 ( R ) has a primitive positive definition in C \mathcal{C} C (Theorem 6.7), which becomes the defining formula for the atomic formula R ( x 1 , … , x k ) R(x_{1},\ldots,x_{k}) R ( x 1 , … , x k ) in I I I . This concludes our construction of the primitive positive interpretation I I I of B \mathcal{B} B in C \mathcal{C} C .
Primitive positive bi-interpretability can also be characterised with the varieties and pseudo-varieties generated by polymorphism algebras. The following is a special case of Proposition 25 in [27] (where it is proved for a much larger class of countable structures).
Proposition 7.24. Let A \mathcal{A} A and B \mathcal{B} B be structures with finite domains. Then the following are equivalent.
there are polymorphism algebras A \mathbf{A} A of A \mathcal{A} A and B \mathbf{B} B of B \mathcal{B} B such that HSP f i n ( A ) = HSP f i n ( B ) \operatorname{HSP}^{\mathrm{fin}}(\mathbf{A}) = \operatorname{HSP}^{\mathrm{fin}}(\mathbf{B}) HSP fin ( A ) = HSP fin ( B ) ;
A \mathcal{A} A and B \mathcal{B} B are primitively positively bi-interpretable.
Proof. For the forward implication, we assume that there is a d 1 ≥ 1 d_{1} \ge1 d 1 ≥ 1 , a subalgebra S 1 \mathbf{S}_{1} S 1 of A d 1 \mathbf{A}^{d_{1}} A d 1 , and a surjective homomorphism h 1 h_{1} h 1 from S 1 \mathbf{S}_{1} S 1 to B \mathbf{B} B . Moreover, we assume that there is a d 2 ≥ 1 d_{2} \ge1 d 2 ≥ 1 , a subalgebra S 2 \mathbf{S}_{2} S 2 of B d 2 \mathbf{B}^{d_{2}} B d 2 , and a surjective homomorphism h 2 h_{2} h 2 from S 2 \mathbf{S}_{2} S 2 to A \mathbf{A} A . The proof of Theorem 7.23 shows that I 1 : = ( d 1 , S 1 , h 1 ) I_{1} := (d_{1},S_{1},h_{1}) I 1 := ( d 1 , S 1 , h 1 ) is an interpretation of B \mathcal{B} B in A \mathcal{A} A , and I 2 : = ( d 2 , S 2 , h 2 ) I_{2} := (d_{2},S_{2},h_{2}) I 2 := ( d 2 , S 2 , h 2 )
is an interpretation of A \mathcal{A} A in B \mathcal{B} B . Because the statement is symmetric it suffices to show that the (graph of the) function h 1 ∘ h 2 : ( S 2 ) d 1 → B h_1 \circ h_2 : (S_2)^{d_1} \to B h 1 ∘ h 2 : ( S 2 ) d 1 → B defined by
( y 1 , 1 , … , y 1 , d 2 , … , y d 1 , 1 , … , y d 1 , d 2 ) ↦ h 1 ( h 2 ( y 1 , 1 , … , y 1 , d 2 ) , … , h 2 ( y d 1 , 1 , … , y d 1 , d 2 ) ) (y_{1,1},\ldots,y_{1,d_2},\ldots,y_{d_1,1},\ldots,y_{d_1,d_2}) \mapsto h_1(h_2(y_{1,1},\ldots,y_{1,d_2}),\ldots,h_2(y_{d_1,1},\ldots,y_{d_1,d_2})) ( y 1 , 1 , … , y 1 , d 2 , … , y d 1 , 1 , … , y d 1 , d 2 ) ↦ h 1 ( h 2 ( y 1 , 1 , … , y 1 , d 2 ) , … , h 2 ( y d 1 , 1 , … , y d 1 , d 2 ))
(which is undefined whenever the expression above is undefined) is primitively positively definable in B \mathcal{B} B . Theorem 6.7 asserts that this is equivalent to showing that h 1 ∘ h 2 h_1 \circ h_2 h 1 ∘ h 2 is preserved by all operations f B f^{\mathcal{B}} f B of B \mathcal{B} B . So let k k k be the arity of f B f^{\mathcal{B}} f B and let b i = ( b 1 i , … , b d 1 i ) b^i=(b^i_1,\ldots,b^i_{d_1}) b i = ( b 1 i , … , b d 1 i ) be elements of ( S 2 ) d 1 (S_2)^{d_1} ( S 2 ) d 1 , for 1 ≤ i ≤ k 1\leq i\leq k 1 ≤ i ≤ k . Then indeed
f B ( ( h 1 ∘ h 2 ) ( b 1 ) , … , ( h 1 ∘ h 2 ) ( b k ) ) = h 1 ( f A ( h 2 ( b 1 1 ) , … , h 2 ( b 1 k ) ) , … , f A ( h 2 ( b d 1 1 ) , … , h 2 ( b d 1 k ) ) ) = ( h 1 ∘ h 2 ) ( f B ( b 1 , … , b k ) ) . \begin{aligned}
f^{\mathcal{B}}((h_1\circ h_2)(b^1),\ldots,(h_1\circ h_2)(b^k))
&=h_1(f^{\mathcal{A}}(h_2(b^1_1),\ldots,h_2(b^k_1)),\ldots,f^{\mathcal{A}}(h_2(b^1_{d_1}),\ldots,h_2(b^k_{d_1})))\\
&=(h_1\circ h_2)(f^{\mathcal{B}}(b^1,\ldots,b^k)).
\end{aligned} f B (( h 1 ∘ h 2 ) ( b 1 ) , … , ( h 1 ∘ h 2 ) ( b k )) = h 1 ( f A ( h 2 ( b 1 1 ) , … , h 2 ( b 1 k )) , … , f A ( h 2 ( b d 1 1 ) , … , h 2 ( b d 1 k ))) = ( h 1 ∘ h 2 ) ( f B ( b 1 , … , b k )) .
For the backwards implication, suppose that A \mathcal{A} A and B \mathcal{B} B are primitive positive bi-interpretable via an interpretation I 1 = ( d 1 , S 1 , h 1 ) I_1=(d_1,S_1,h_1) I 1 = ( d 1 , S 1 , h 1 ) of B \mathcal{B} B in A \mathcal{A} A and an interpretation I 2 = ( d 2 , S 2 , h 2 ) I_2=(d_2,S_2,h_2) I 2 = ( d 2 , S 2 , h 2 ) of A \mathcal{A} A in B \mathcal{B} B . Let A \mathbf{A} A be a polymorphism algebra of A \mathcal{A} A . The proof of Theorem 7.23 shows that S 1 S_1 S 1 induces an algebra S 1 \mathbf{S}_1 S 1 in A d 1 \mathbf{A}^{d_1} A d 1 and h 1 h_1 h 1 is a surjective homomorphism from S 1 \mathbf{S}_1 S 1 to an algebra B \mathbf{B} B satisfying Clo ( B ) ⊆ Pol ( B ) \operatorname{Clo}(\mathcal{B})\subseteq\operatorname{Pol}(\mathcal{B}) Clo ( B ) ⊆ Pol ( B ) (the reverse inclusion is established later in the proof). Similarly, S 2 S_2 S 2 is the domain of a subalgebra S 2 \mathbf{S}_2 S 2 of B d 2 \mathbf{B}^{d_2} B d 2 and h 2 h_2 h 2 is a homomorphism from S 2 \mathbf{S}_2 S 2 onto an algebra A ′ \mathbf{A}' A ′ such that Clo ( A ′ ) ⊆ Pol ( A ) \operatorname{Clo}(\mathcal{A}')\subseteq\operatorname{Pol}(\mathcal{A}) Clo ( A ′ ) ⊆ Pol ( A ) .
We claim that HSP f i n ( A ) = HSP f i n ( B ) \operatorname{HSP}^{\mathrm{fin}}(\mathbf{A})=\operatorname{HSP}^{\mathrm{fin}}(\mathbf{B}) HSP fin ( A ) = HSP fin ( B ) . The inclusion ‘⊇ \supseteq ⊇ ’ is clear since B ∈ HSP f i n ( A ) \mathbf{B}\in\operatorname{HSP}^{\mathrm{fin}}(\mathbf{A}) B ∈ HSP fin ( A ) . For the reverse inclusion it suffices to show that A = A ′ \mathbf{A}=\mathbf{A}' A = A ′ since A ′ ∈ HSP f i n ( B ) \mathbf{A}'\in\operatorname{HSP}^{\mathrm{fin}}(\mathbf{B}) A ′ ∈ HSP fin ( B ) . Let f ∈ τ f\in\tau f ∈ τ be k k k -ary; we show that f A = f A ′ f^{\mathbf{A}}=f^{\mathbf{A}'} f A = f A ′ . Let a 1 , … , a k ∈ A a_1,\ldots,a_k\in A a 1 , … , a k ∈ A . Since h 2 ∘ h 1 h_2\circ h_1 h 2 ∘ h 1 is surjective onto A A A , there are c i = ( c 1 i , … , c d 1 , d 2 i ) ∈ A d 1 d 2 c^i=(c^i_1,\ldots,c^i_{d_1,d_2})\in A^{d_1d_2} c i = ( c 1 i , … , c d 1 , d 2 i ) ∈ A d 1 d 2 such that a i = h 2 ∘ h 1 ( c i ) a_i=h_2\circ h_1(c^i) a i = h 2 ∘ h 1 ( c i ) . Then
f A ′ ( a 1 , … , a k ) = f A ′ ( h 2 ∘ h 1 ( c 1 ) , … , h 2 ∘ h 1 ( c k ) ) = h 2 ( f B ( h 1 ( c 1 , 1 1 , … , c d 1 , 1 1 ) , … , h 1 ( c 1 , 1 k , … , c d 1 , 1 k ) ) , … , f B ( h 1 ( c 1 , d 2 1 , … , c d 1 , d 2 1 ) , … , h 1 ( c 1 , d 2 k , … , c d 1 , d 2 k ) ) ) = h 2 ∘ h 1 ( f A ( c 1 , … , c k ) ) = f A ( h 2 ∘ h 1 ( c 1 ) , … , h 2 ∘ h 1 ( c k ) ) = f A ( a 1 , … , a k ) \begin{aligned}
f^{\mathbf{A}'}(a_1,\ldots,a_k)
&=f^{\mathbf{A}'}(h_2\circ h_1(c^1),\ldots,h_2\circ h_1(c^k))\\
&=h_2\bigl(f^{\mathbf{B}}(h_1(c^1_{1,1},\ldots,c^1_{d_1,1}),\ldots,h_1(c^k_{1,1},\ldots,c^k_{d_1,1})),\ldots,\\
&\qquad f^{\mathbf{B}}(h_1(c^1_{1,d_2},\ldots,c^1_{d_1,d_2}),\ldots,h_1(c^k_{1,d_2},\ldots,c^k_{d_1,d_2}))\bigr)\\
&=h_2\circ h_1(f^{\mathbf{A}}(c^1,\ldots,c^k))\\
&=f^{\mathbf{A}}(h_2\circ h_1(c^1),\ldots,h_2\circ h_1(c^k))\\
&=f^{\mathbf{A}}(a_1,\ldots,a_k)
\end{aligned} f A ′ ( a 1 , … , a k ) = f A ′ ( h 2 ∘ h 1 ( c 1 ) , … , h 2 ∘ h 1 ( c k )) = h 2 ( f B ( h 1 ( c 1 , 1 1 , … , c d 1 , 1 1 ) , … , h 1 ( c 1 , 1 k , … , c d 1 , 1 k )) , … , f B ( h 1 ( c 1 , d 2 1 , … , c d 1 , d 2 1 ) , … , h 1 ( c 1 , d 2 k , … , c d 1 , d 2 k )) ) = h 2 ∘ h 1 ( f A ( c 1 , … , c k )) = f A ( h 2 ∘ h 1 ( c 1 ) , … , h 2 ∘ h 1 ( c k )) = f A ( a 1 , … , a k )
where the second and third equations hold since h 2 h_2 h 2 and h 1 h_1 h 1 are algebra homomorphisms, and the fourth equation holds because f A f^{\mathbf{A}} f A preserves h 2 ∘ h 1 h_2\circ h_1 h 2 ∘ h 1 , because I 2 ∘ I 1 I_2\circ I_1 I 2 ∘ I 1 is pp-homotopic to the identity.
Exercise 150. Show that an algebra has the empty subuniverse if and only if the signature does not contain constants (i.e., function symbols of arity 0).
Exercise 151. Show that the operators H S \mathrm{HS} HS and S H \mathrm{SH} SH are distinct.
Exercise 152. Show that the operators S P \mathrm{SP} SP and P S \mathrm{PS} PS are distinct.
Exercise 153. Let B B B be a subuniverse of an algebra A A A generated by S ⊆ A S\subseteq A S ⊆ A . Show that an element a ∈ A a\in A a ∈ A belongs to B B B if and only if there exists a term t ( x 1 , … , x k ) t(x_1,\ldots,x_k) t ( x 1 , … , x k ) and elements s 1 , … , s k ∈ S s_1,\ldots,s_k\in S s 1 , … , s k ∈ S such that a = t A ( s 1 , … , s k ) a=t^{A}(s_1,\ldots,s_k) a = t A ( s 1 , … , s k ) .
Birkhoff's Theorem
Birkhoff’s theorem provides a characterisation of varieties in terms of sets of identities . A sentence in a functional signature τ \tau τ is called a ( τ (\tau ( τ -) identity if it is of the form
∀ x 1 , … , x n : s = t \forall x_{1},\ldots,x_{n}: s=t ∀ x 1 , … , x n : s = t
where s s s and t t t are τ \tau τ -terms over the variables x 1 , … , x n x_{1},\ldots,x_{n} x 1 , … , x n (such sentences are also called universally conjunctive ). We follow the usual notation in universal algebra and sometimes write such sentences as
If K \mathcal{K} K is a class of τ \tau τ -algebras, then we say that K \mathcal{K} K satisfies s ≈ t s\approx t s ≈ t (or: s ≈ t s\approx t s ≈ t holds in K \mathcal{K} K ), in symbols K ⊨ s ≈ t \mathcal{K}\models s\approx t K ⊨ s ≈ t , if every algebra in K \mathcal{K} K satisfies s ≈ t s\approx t s ≈ t .
Theorem 7.25 (Birkhoff [? ]; see e.g. [? ] or [? ]). Let τ \tau τ be a functional signature, let K \mathcal{K} K be a class of τ \tau τ -algebras, and let A \mathbf{A} A be a τ \tau τ -algebra. Then the following are equivalent.
All identities that hold in K \mathcal{K} K also hold in A \mathbf{A} A ;
A ∈ HSP ( K ) \mathbf{A}\in\operatorname{HSP}(\mathcal{K}) A ∈ HSP ( K ) .
If A \mathbf{A} A has a finite domain, and K = { B } \mathcal{K}=\{\mathbf{B}\} K = { B } for some algebra B \mathbf{B} B with a finite domain, then this is also equivalent to
A ∈ HSP f i n ( B ) \mathbf{A}\in\operatorname{HSP}^{\mathrm{fin}}(\mathbf{B}) A ∈ HSP fin ( B ) .
Proof. To show that 2. implies 1., let s ( x 1 , … , x n ) ≈ t ( x 1 , … , x n ) s(x_{1},\ldots,x_{n})\approx t(x_{1},\ldots,x_{n}) s ( x 1 , … , x n ) ≈ t ( x 1 , … , x n ) be an identity that holds in K \mathcal{K} K . Then s ≈ t s\approx t s ≈ t is preserved in products A = ∏ i ∈ I B i \mathbf{A}=\prod_{i\in I}\mathbf{B}_{i} A = ∏ i ∈ I B i of algebras B i ∈ K \mathbf{B}_{i}\in\mathcal{K} B i ∈ K . To see this, let a 1 , … , a n ∈ A a_{1},\ldots,a_{n}\in A a 1 , … , a n ∈ A be arbitrary. Since B i ⊨ s ≈ t \mathbf{B}_{i}\models s\approx t B i ⊨ s ≈ t we have s B i ( a 1 [ i ] , … , a n [ i ] ) = t B i ( a 1 [ i ] , … , a n [ i ] ) s^{\mathbf{B}_{i}}(a_{1}[i],\ldots,a_{n}[i])=t^{\mathbf{B}_{i}}(a_{1}[i],\ldots,a_{n}[i]) s B i ( a 1 [ i ] , … , a n [ i ]) = t B i ( a 1 [ i ] , … , a n [ i ]) for every i ∈ I i\in I i ∈ I , and thus s A ( a 1 , … , a n ) = t A ( a 1 , … , a n ) s^{\mathbf{A}}(a_{1},\ldots,a_{n})=t^{\mathbf{A}}(a_{1},\ldots,a_{n}) s A ( a 1 , … , a n ) = t A ( a 1 , … , a n ) by the definition of products. Since a 1 , … , a n a_{1},\ldots,a_{n} a 1 , … , a n were chosen arbitrarily, we have A ⊨ s ≈ t \mathbf{A}\models s\approx t A ⊨ s ≈ t . Moreover, universal sentences are preserved by taking subalgebras. Finally, suppose that B \mathbf{B} B is an algebra that satisfies s ≈ t s\approx t s ≈ t , and μ \mu μ is a surjective homomorphism from B \mathbf{B} B to some algebra A \mathbf{A} A . Let a 1 , … , a n ∈ A a_{1},\ldots,a_{n}\in A a 1 , … , a n ∈ A . By the surjectivity of μ \mu μ we can choose b 1 , … , b n b_{1},\ldots,b_{n} b 1 , … , b n such that μ ( b i ) = a i \mu(b_{i})=a_{i} μ ( b i ) = a i for all i ≤ n i\leq n i ≤ n . Then
s B ( b 1 , … , b n ) = t B ( b 1 , … , b n ) ⇒ μ ( s B ( b 1 , … , b n ) ) = μ ( t B ( b 1 , … , b n ) ) ⇒ t A ( μ ( b 1 ) , … , μ ( b n ) ) = s A ( μ ( b 1 ) , … , μ ( b n ) ) ⇒ t A ( a 1 , … , a n ) = s A ( a 1 , … , a n ) . \begin{aligned}
s^{\mathbf{B}}(b_{1},\ldots,b_{n})=t^{\mathbf{B}}(b_{1},\ldots,b_{n})\Rightarrow\mu\bigl(s^{\mathbf{B}}(b_{1},\ldots,b_{n})\bigr)=\mu\bigl(t^{\mathbf{B}}(b_{1},\ldots,b_{n})\bigr) \\
&\Rightarrow t^{\mathbf{A}}(\mu(b_{1}),\ldots,\mu(b_{n}))=s^{\mathbf{A}}(\mu(b_{1}),\ldots,\mu(b_{n})) \\
&\Rightarrow t^{\mathbf{A}}(a_{1},\ldots,a_{n})=s^{\mathbf{A}}(a_{1},\ldots,a_{n}).
\end{aligned} s B ( b 1 , … , b n ) = t B ( b 1 , … , b n ) ⇒ μ ( s B ( b 1 , … , b n ) ) = μ ( t B ( b 1 , … , b n ) ) ⇒ t A ( μ ( b 1 ) , … , μ ( b n )) = s A ( μ ( b 1 ) , … , μ ( b n )) ⇒ t A ( a 1 , … , a n ) = s A ( a 1 , … , a n ) .
We only show the implication from 1. to 3. (and hence to 2.) if A \mathbf{A} A and B \mathbf{B} B have finite domains and K = { B } \mathcal{K}=\{\mathbf{B}\} K = { B } ; the proof of the general case is similar (see Exercise 155). Let a 1 , … , a k a_{1},\ldots,a_{k} a 1 , … , a k be the elements of A A A , define m : = ∣ B ∣ k m:=|B|^{k} m := ∣ B ∣ k and C : = B k C:=B^{k} C := B k . Let c 1 , … , c m c^{1},\ldots,c^{m} c 1 , … , c m be the elements of C C C ; write c i c_{i} c i for ( c i 1 , … , c i m ) (c_{i}^{1},\ldots,c_{i}^{m}) ( c i 1 , … , c i m ) . Let S S S be the smallest subalgebra of B m \mathbf{B}^{m} B m that contains c 1 , … , c k c_{1},\ldots,c_{k} c 1 , … , c k ; so the elements of S S S are precisely those of the form t B m ( c 1 , … , c k ) t^{\mathbf{B}^{m}}(c_{1},\ldots,c_{k}) t B m ( c 1 , … , c k ) , for a k k k -ary τ \tau τ -term t t t . See Figure 11 .
Figure 11. Illustration for the proof of Birkhoff’s theorem.
Define μ : S → A \mu:S\to A μ : S → A by
μ ( t B m ( c 1 , … , c k ) ) : = t A ( a 1 , … , a k ) . (21) \mu\bigl(t^{\mathbf{B}^{m}}(c_{1},\ldots,c_{k})\bigr):=t^{\mathbf{A}}(a_{1},\ldots,a_{k}). \tag*{(21)} μ ( t B m ( c 1 , … , c k ) ) := t A ( a 1 , … , a k ) . (21)
Claim 1: μ \mu μ is well-defined.
Since c 1 , … , c m c^{1},\ldots,c^{m} c 1 , … , c m enumerate all of B k B^{k} B k , the equality t B m ( c 1 , … , c k ) = s B m ( c 1 , … , c k ) t^{B^{m}}(c_{1},\ldots,c_{k})=s^{B^{m}}(c_{1},\ldots,c_{k}) t B m ( c 1 , … , c k ) = s B m ( c 1 , … , c k ) implies t B = s B t^{B}=s^{B} t B = s B . The assumption therefore gives t A ( a 1 , … , a k ) = s A ( a 1 , … , a k ) t^{A}(a_{1},\ldots,a_{k})=s^{A}(a_{1},\ldots,a_{k}) t A ( a 1 , … , a k ) = s A ( a 1 , … , a k ) .
Claim 2: μ \mu μ is surjective. For all i ≤ k i\leq k i ≤ k , the element c i c_{i} c i is mapped to a i a_{i} a i .
Claim 3: μ \mu μ is a homomorphism from S S S to A A A . Let f ∈ τ f\in\tau f ∈ τ be of arity n n n and let s 1 , … , s n ∈ S s_{1},\ldots,s_{n}\in S s 1 , … , s n ∈ S . For i ≤ n i\leq n i ≤ n , write s i = t i S ( c 1 , … , c k ) s_{i}=t_{i}^{S}(c_{1},\ldots,c_{k}) s i = t i S ( c 1 , … , c k ) for some τ \tau τ -term t i t_{i} t i (see Exercise 153). Then
μ ( f S ( s 1 , … , s n ) ) = μ ( f S ( t 1 S ( c 1 , … , c k ) , … , t n S ( c 1 , … , c k ) ) ) = μ ( ( f S ( t 1 S , … , t n S ) ( c 1 , … , c k ) ) = μ ( ( f ( t 1 , … , t n ) ) S ( c 1 , … , c k ) ) = ( f ( t 1 , … , t n ) ) A ( a 1 , … , a k ) = f A ( t 1 A ( a 1 , … , a k ) , … , t n A ( a 1 , … , a k ) ) = f A ( μ ( s 1 ) , … , μ ( s n ) ) . \begin{aligned}
\mu(f^{S}(s_{1},\ldots,s_{n})) &= \mu(f^{S}(t_{1}^{S}(c_{1},\ldots,c_{k}),\ldots,t_{n}^{S}(c_{1},\ldots,c_{k}))) \\
&= \mu((f^{S}(t_{1}^{S},\ldots,t_{n}^{S})(c_{1},\ldots,c_{k})) \\
&= \mu((f(t_{1},\ldots,t_{n}))^{S}(c_{1},\ldots,c_{k})) \\
&= (f(t_{1},\ldots,t_{n}))^{A}(a_{1},\ldots,a_{k}) \\
&= f^{A}(t_{1}^{A}(a_{1},\ldots,a_{k}),\ldots,t_{n}^{A}(a_{1},\ldots,a_{k})) \\
&= f^{A}(\mu(s_{1}),\ldots,\mu(s_{n})).
\end{aligned} μ ( f S ( s 1 , … , s n )) = μ ( f S ( t 1 S ( c 1 , … , c k ) , … , t n S ( c 1 , … , c k ))) = μ (( f S ( t 1 S , … , t n S ) ( c 1 , … , c k )) = μ (( f ( t 1 , … , t n ) ) S ( c 1 , … , c k )) = ( f ( t 1 , … , t n ) ) A ( a 1 , … , a k ) = f A ( t 1 A ( a 1 , … , a k ) , … , t n A ( a 1 , … , a k )) = f A ( μ ( s 1 ) , … , μ ( s n )) .
Therefore, A is the homomorphic image of the subalgebra S of B m B^{m} B m , and so A ∈ HSP f i n ( B ) A\in\operatorname{HSP}^{\mathrm{fin}}(B) A ∈ HSP fin ( B ) .
Theorem 7.25 is important for analysing the constraint satisfaction problem for a structure B \mathbb{B} B , since it can be used to transform the ‘negative’ statement of not interpreting certain finite structures, which is equivalent to not having a certain finite algebra in the pseudo-variety generated by a polymorphism algebra of B \mathbb{B} B , into a ‘positive’ statement of having polymorphisms satisfying non-trivial identities. We will learn several concrete identities that must be satisfied in later sections, e.g., in § 10.5 , § 11.2 , § 15.2 , and § 15.3 .
The Free Algebra
In the following we extract an important idea from the proof of Birkhoff’s theorem and present it in different words which will be useful later. Fix a functional signature τ \tau τ and a class of τ \tau τ -algebras K \mathcal{K} K .
Definition 7.26. Let F \mathbf{F} F be a τ \tau τ -algebra generated by X ⊆ F X \subseteq F X ⊆ F . We say that F \mathbf{F} F has the universal mapping property for K \mathcal{K} K over X X X if for every A ∈ K \mathbf{A} \in\mathcal{K} A ∈ K and f : X → A f:X \to A f : X → A there exists a (unique) extension of f f f to a homomorphism from F \mathbf{F} F to A \mathbf{A} A .
Proposition 7.27 (Uniqueness). Suppose that F 1 , F 2 ∈ K \mathbf{F}_1,\mathbf{F}_2 \in\mathcal{K} F 1 , F 2 ∈ K have the universal mapping property for K \mathcal{K} K over X i X_i X i , for i ∈ { 1 , 2 } i \in\{1,2\} i ∈ { 1 , 2 } . If ∣ X 1 ∣ = ∣ X 2 ∣ \lvert X_1\rvert=\lvert X_2\rvert ∣ X 1 ∣ = ∣ X 2 ∣ then F 1 \mathbf{F}_1 F 1 and F 2 \mathbf{F}_2 F 2 are isomorphic.
Proof. Fix any bijection between X 1 X_1 X 1 and X 2 X_2 X 2 . It extends uniquely to homomorphisms in both directions. Each composite fixes the generators pointwise and is therefore the identity by uniqueness, so the two extensions are inverse isomorphisms. □ \square □
Proposition 7.28 (Existence). For every class K \mathcal{K} K of τ \tau τ -algebras and for every set X X X there exists a τ \tau τ -algebra F ∈ SP ( K ) \mathbf{F} \in\operatorname{SP}(\mathcal{K}) F ∈ SP ( K ) which has the universal mapping property for HSP ( K ) \operatorname{HSP}(\mathcal{K}) HSP ( K ) over X X X .
Definition 7.29 (Free algebra). The up to isomorphism unique algebra F ∈ SP ( K ) \mathbf{F} \in\operatorname{SP}(\mathcal{K}) F ∈ SP ( K ) with the universal mapping property for HSP ( K ) \operatorname{HSP}(\mathcal{K}) HSP ( K ) over X X X is called the free algebra for K \mathcal{K} K over X X X , and will be denoted by F K ( X ) \mathbf{F}_{\mathcal{K}}(X) F K ( X ) .
Lemma 7.30. Let F \mathbf{F} F be free for K \mathcal{K} K over { x 1 , … , x n } \{x_1,\ldots,x_n\} { x 1 , … , x n } and let s ( y 1 , … , y n ) s(y_1,\ldots,y_n) s ( y 1 , … , y n ) , t ( y 1 , … , y n ) t(y_1,\ldots,y_n) t ( y 1 , … , y n ) be τ \tau τ -terms. Then the following are equivalent.
K ⊨ s ( y 1 , … , y n ) ≈ t ( y 1 , … , y n ) \mathcal{K} \models s(y_1,\ldots,y_n) \approx t(y_1,\ldots,y_n) K ⊨ s ( y 1 , … , y n ) ≈ t ( y 1 , … , y n )
s ( y 1 , … , y n ) ≈ t ( y 1 , … , y n ) s(y_1,\ldots,y_n) \approx t(y_1,\ldots,y_n) s ( y 1 , … , y n ) ≈ t ( y 1 , … , y n ) holds in F \mathbf{F} F ;
s F = t F s^{\mathbf{F}}=t^{\mathbf{F}} s F = t F ;
s F ( x 1 , … , x n ) = t F ( x 1 , … , x n ) s^{\mathbf{F}}(x_1,\ldots,x_n)=t^{\mathbf{F}}(x_1,\ldots,x_n) s F ( x 1 , … , x n ) = t F ( x 1 , … , x n ) .
Proof. 1. ⇒ \Rightarrow ⇒ 2. : If s ≈ t s \approx t s ≈ t holds in every algebra of K \mathcal{K} K , then it also holds in products and subalgebras of algebras in K \mathcal{K} K , and hence also in F \mathbf{F} F .
⇒ \Rightarrow ⇒ 3. and 3. ⇒ \Rightarrow ⇒ 4. hold trivially.
⇒ \Rightarrow ⇒ 1. Let A ∈ K \mathbf{A} \in\mathcal{K} A ∈ K . If a 1 , … , a n ∈ A a_1,\ldots,a_n \in A a 1 , … , a n ∈ A , then the map that sends x i x_i x i to a i a_i a i for all i ∈ { 1 , … , n } i \in\{1,\ldots,n\} i ∈ { 1 , … , n } can be extended to a homomorphism from F \mathbf{F} F to A \mathbf{A} A , and since s F ( x 1 , … , x n ) = t F ( x 1 , … , x n ) s^{\mathbf{F}}(x_1,\ldots,x_n)=t^{\mathbf{F}}(x_1,\ldots,x_n) s F ( x 1 , … , x n ) = t F ( x 1 , … , x n ) we have s A ( a 1 , … , a n ) = t A ( a 1 , … , a n ) s^{\mathbf{A}}(a_1,\ldots,a_n)=t^{\mathbf{A}}(a_1,\ldots,a_n) s A ( a 1 , … , a n ) = t A ( a 1 , … , a n ) . Since a 1 , … , a n ∈ A a_1,\ldots,a_n \in A a 1 , … , a n ∈ A were chosen arbitrarily, this shows that A ⊨ s ( y 1 , … , y n ) ≈ t ( y 1 , … , y n ) \mathbf{A} \models s(y_1,\ldots,y_n) \approx t(y_1,\ldots,y_n) A ⊨ s ( y 1 , … , y n ) ≈ t ( y 1 , … , y n ) . □ \square □
Remark 7.31. Note that if K : = HSP ( B ) \mathcal{K}:=\operatorname{HSP}(\mathbf{B}) K := HSP ( B ) , and B \mathbf{B} B and X X X are finite, then F K ( X ) ≤ B B X \mathbf{F}_{\mathcal{K}}(X) \leq\mathbf{B}^{B^X} F K ( X ) ≤ B B X is finite as well.
Equational Theories
Birkhoff’s theorem provides for every class K \mathcal{K} K of τ \tau τ -algebras a characterisation of the class of all τ \tau τ -algebras that satisfy all identities satisfied by K \mathcal{K} K . Conversely, there is for every set of τ \tau τ -identities Σ \Sigma Σ a syntactic characterisation of the set of all τ \tau τ -identities that are satisfied in all algebras that satisfy Σ \Sigma Σ (i.e., we have a proof-theoretic characterisation of the set of all universal conjunctive consequences of Σ \Sigma Σ ; this can be seen as a special case of the completeness theorem of first-order logic for universally conjunctive sentences in an algebraic signature τ \tau τ ).
Theorem 7.32. A τ \tau τ -identity f ≈ g f \approx g f ≈ g is implied by Σ \Sigma Σ (i.e., holds in all algebras that satisfy Σ \Sigma Σ ) if and only if ( f , g ) (f,g) ( f , g ) is contained in the smallest equivalence relation E E E which
contains ( r , s ) (r,s) ( r , s ) for every ( r ≈ s ) ∈ Σ (r \approx s) \in\Sigma ( r ≈ s ) ∈ Σ ,
is compatible: if f ∈ τ f \in\tau f ∈ τ is a function symbol of arity n n n and ( r 1 , s 1 ) , … , ( r n , s n ) ∈ E (r_1,s_1),\ldots,(r_n,s_n) \in E ( r 1 , s 1 ) , … , ( r n , s n ) ∈ E , then ( f ( r 1 , … , r n ) , f ( s 1 , … , s n ) ) ∈ E (f(r_1,\ldots,r_n),f(s_1,\ldots,s_n)) \in E ( f ( r 1 , … , r n ) , f ( s 1 , … , s n )) ∈ E ,
is fully invariant: if ( r ( x 1 , … , x n ) , s ( x 1 , … , x n ) ) ∈ E (r(x_1,\ldots,x_n),s(x_1,\ldots,x_n)) \in E ( r ( x 1 , … , x n ) , s ( x 1 , … , x n )) ∈ E and t 1 , … , t n t_1,\ldots,t_n t 1 , … , t n are τ \tau τ -terms, then ( r ( t 1 , … , t n ) , s ( t 1 , … , t n ) ) ∈ E (r(t_1,\ldots,t_n),s(t_1,\ldots,t_n)) \in E ( r ( t 1 , … , t n ) , s ( t 1 , … , t n )) ∈ E .
Exercise 154. Prove Proposition 7.28.
Exercise 155. Show the implication from 1. to 2. in Birkhoff’s theorem in full generality.
Abstract Clones
Clones (in the literature often abstract clones ) relate to operation clones in the same way as (abstract) groups relate to permutation groups: the elements of a clone correspond to the operations of an operation clone, and the signature contains composition symbols to code how operations compose. Since an operation clone contains operations of various arities, a clone will be formalized as a multi-sorted structure, with a sort for each arity.
Definition 7.33. An (abstract) clone C \mathbf{C} C is a multi-sorted structure with sorts { C ( i ) ∣ i ∈ N ≥ 1 } \{C^{(i)} \mid i \in\mathbb{N}_{\geq1}\} { C ( i ) ∣ i ∈ N ≥ 1 } and the signature { π i k ∣ 1 ≤ i ≤ k } ∪ { comp l k ∣ k , l ≥ 1 } \{\pi_i^k \mid1 \leq i \leq k\} \cup\{\operatorname{comp}_l^k \mid k,l \geq1\} { π i k ∣ 1 ≤ i ≤ k } ∪ { comp l k ∣ k , l ≥ 1 } . For k ≥ 1 k \geq1 k ≥ 1 , the elements of the sort C ( k ) C^{(k)} C ( k ) will be called the k k k -ary operations of C \mathbf{C} C . We denote a clone by
C = ( C ( 1 ) , C ( 2 ) , … ; ( π i k ) 1 ≤ i ≤ k , ( comp l k ) k , l ≥ 1 ) \mathbf{C} = (C^{(1)}, C^{(2)}, \ldots;(\pi_i^k)_{1\leq i\leq k},(\operatorname{comp}_l^k)_{k,l\geq1}) C = ( C ( 1 ) , C ( 2 ) , … ; ( π i k ) 1 ≤ i ≤ k , ( comp l k ) k , l ≥ 1 ) and require that π i k \pi_i^k π i k is a constant in C ( k ) C^{(k)} C ( k ) , and that comp l k : C ( k ) × ( C ( l ) ) k → C ( l ) \operatorname{comp}_l^k:C^{(k)}\times(C^{(l)})^k\to C^{(l)} comp l k : C ( k ) × ( C ( l ) ) k → C ( l ) is an operation of arity k + 1 k+1 k + 1 . Moreover, for f ∈ C ( k ) f\in C^{(k)} f ∈ C ( k ) , g 1 , … , g k ∈ C ( m ) g_1,\ldots,g_k\in C^{(m)} g 1 , … , g k ∈ C ( m ) , and f 1 , … , f k , h 1 , … , h m ∈ C ( l ) f_1,\ldots,f_k,h_1,\ldots,h_m\in C^{(l)} f 1 , … , f k , h 1 , … , h m ∈ C ( l ) it holds that
comp k k ( f , π 1 k , … , π k k ) = f (22) \operatorname{comp}_k^k(f,\pi_1^k,\ldots,\pi_k^k)=f \tag*{(22)} comp k k ( f , π 1 k , … , π k k ) = f (22) comp l k ( π i k , f 1 , … , f k ) = f i (23) \operatorname{comp}_l^k(\pi_i^k,f_1,\ldots,f_k)=f_i \tag*{(23)} comp l k ( π i k , f 1 , … , f k ) = f i (23) comp l k ( f , comp m l ( g 1 , h 1 , … , h m ) , … , comp m l ( g k , h 1 , … , h m ) ) = comp m l ( comp l k ( f , g 1 , … , g k ) , h 1 , … , h m ) . (24) \begin{aligned}
\operatorname{comp}_l^k\bigl(f,\operatorname{comp}_m^l(g_1,h_1,\ldots,h_m),\ldots,\operatorname{comp}_m^l(g_k,h_1,\ldots,h_m)\bigr)={}&\\
\operatorname{comp}_m^l\bigl(\operatorname{comp}_l^k(f,g_1,\ldots,g_k),h_1,\ldots,h_m\bigr). \tag*{(24)}
\end{aligned} comp l k ( f , comp m l ( g 1 , h 1 , … , h m ) , … , comp m l ( g k , h 1 , … , h m ) ) = comp m l ( comp l k ( f , g 1 , … , g k ) , h 1 , … , h m ) . (24) The final equation generalises associativity in groups and monoids, and we therefore refer to it by associativity . We also write f ( g 1 , … , g k ) f(g_1,\ldots,g_k) f ( g 1 , … , g k ) instead of comp l k ( f , g 1 , … , g k ) \operatorname{comp}_l^k(f,g_1,\ldots,g_k) comp l k ( f , g 1 , … , g k ) when l l l is clear from the context. So associativity might be more readable as
f ( g 1 ( h 1 , … , h m ) , … , g k ( h 1 , … , h m ) ) = f ( g 1 , … , g k ) ( h 1 , … , h m ) . f(g_1(h_1,\ldots,h_m),\ldots,g_k(h_1,\ldots,h_m))=f(g_1,\ldots,g_k)(h_1,\ldots,h_m). f ( g 1 ( h 1 , … , h m ) , … , g k ( h 1 , … , h m )) = f ( g 1 , … , g k ) ( h 1 , … , h m ) . Every operation clone C \mathcal{C} C gives rise to an abstract clone C \mathbf{C} C in the obvious way: π i k ∈ C ( k ) \pi_i^k\in C^{(k)} π i k ∈ C ( k ) denotes the k k k -ary i i i -th projection in C \mathcal{C} C , and comp l k ( f , g 1 , … , g k ) ∈ C ( l ) \operatorname{comp}_l^k(f,g_1,\ldots,g_k)\in C^{(l)} comp l k ( f , g 1 , … , g k ) ∈ C ( l ) denotes the composed operation ( x 1 , … , x l ) ↦ f ( g 1 ( x 1 , … , x l ) , … , g k ( x 1 , … , x l ) ) ∈ C (x_1,\ldots,x_l)\mapsto f(g_1(x_1,\ldots,x_l),\ldots,g_k(x_1,\ldots,x_l))\in\mathcal{C} ( x 1 , … , x l ) ↦ f ( g 1 ( x 1 , … , x l ) , … , g k ( x 1 , … , x l )) ∈ C . Conversely, every abstract clone arises from an operation clone - this will follow from Proposition 7.41.
Example 7.34. An algebra A \mathbf{A} A satisfies f ( x 1 , x 2 ) ≈ f ( x 2 , x 1 ) f(x_1,x_2)\approx f(x_2,x_1) f ( x 1 , x 2 ) ≈ f ( x 2 , x 1 ) if and only if
Clo ( A ) ⊨ comp 2 2 ( f A , π 1 2 , π 2 2 ) = comp 2 2 ( f A , π 2 2 , π 1 2 ) . \operatorname{Clo}(\mathbf{A}) \models\operatorname{comp}_2^2(f^{\mathbf{A}},\pi_1^2,\pi_2^2)=\operatorname{comp}_2^2(f^{\mathbf{A}},\pi_2^2,\pi_1^2). Clo ( A ) ⊨ comp 2 2 ( f A , π 1 2 , π 2 2 ) = comp 2 2 ( f A , π 2 2 , π 1 2 ) .
In the following, we will also use the term ‘abstract clone’ in situations where we want to stress that we are working with a clone and not with an operation clone. The notion of a homomorphism between clones is just the usual notion of homomorphisms for algebras, adapted to the multi-sorted case. Since we did not formally introduce homomorphisms for multi-sorted structures, we spell out the definition in the special case of clones.
Definition 7.35. Let C and D be clones. A function ξ : C → D \xi:C\to D ξ : C → D is called a (clone) homomorphism if
ξ \xi ξ preserves arities of operations, i.e., ξ ( C ( i ) ) ⊆ D ( i ) \xi(C^{(i)})\subseteq D^{(i)} ξ ( C ( i ) ) ⊆ D ( i ) for all i ≥ 1 i\geq1 i ≥ 1 ;
ξ ( ( π i ) C ) = ( π i ) D \xi((\pi_i)^C)=(\pi_i)^D ξ (( π i ) C ) = ( π i ) D for all k ≥ 1 k\geq1 k ≥ 1 and 1 ≤ i ≤ k 1\leq i\leq k 1 ≤ i ≤ k ;
ξ ( f ( g 1 , … , g n ) ) = ξ ( f ) ( ξ ( g 1 ) , … , ξ ( g n ) ) \xi(f(g_1,\ldots,g_n))=\xi(f)(\xi(g_1),\ldots,\xi(g_n)) ξ ( f ( g 1 , … , g n )) = ξ ( f ) ( ξ ( g 1 ) , … , ξ ( g n )) for all n , m ≥ 1 n,m\geq1 n , m ≥ 1 , f ∈ C ( n ) f\in C^{(n)} f ∈ C ( n ) , g 1 , … , g n ∈ C ( m ) g_1,\ldots,g_n\in C^{(m)} g 1 , … , g n ∈ C ( m ) .
Moreover, ξ \xi ξ is a (clone) isomorphism if ξ \xi ξ is bijective and both ξ \xi ξ and ξ − 1 \xi^{-1} ξ − 1 are a homomorphism.
Example 7.36. We write Proj for the abstract clone of an algebra with at least two elements all of whose operations are projections; note that any such algebra has the same abstract clone (up to isomorphism), and that Proj has a homomorphism into any other clone. △
Example 7.37. All abstract clones of an algebra on a one-element set are isomorphic, too, but of course not isomorphic to Proj . Any clone homomorphically maps to this trivial clone. △
Example 7.38. Using Proposition 6.24 , it is easy to see that there exists a clone homomorphism from Pol ( K 3 ) \operatorname{Pol}(K_3) Pol ( K 3 ) to Proj . △
The following definition plays an important role throughout the later sections in this text.
Definition 7.39 (Star composition). Let l , m ∈ N l,m\in\mathbb{N} l , m ∈ N and n = l m n=lm n = l m . We write f ∗ g f\ast g f ∗ g as a shortcut for
comp n l ( f , comp n m ( g , π 1 n , … , π m n ) , … , comp n m ( g , π ( l − 1 ) m + 1 n , … , π l n ) ) . \operatorname{comp}_{n}^{l}\left(f,\operatorname{comp}_{n}^{m}(g,\pi_1^n,\ldots,\pi_m^n),\ldots,\operatorname{comp}_{n}^{m}(g,\pi_{(l-1)m+1}^n,\ldots,\pi_l^n)\right). comp n l ( f , comp n m ( g , π 1 n , … , π m n ) , … , comp n m ( g , π ( l − 1 ) m + 1 n , … , π l n ) ) . Note that if f : A l → A f:A^l\to A f : A l → A and g : A m → A g:A^m\to A g : A m → A , then f ∗ g f\ast g f ∗ g denotes the operation from A l m → A A^{lm}\to A A l m → A given by
( x 1 , 1 , … , x 1 , m , … , x l , 1 , … , x l , m ) ↦ f ( g ( x 1 , 1 , … , x 1 , m ) , … , g ( x l , 1 , … , x l , m ) ) . (x_{1,1},\ldots,x_{1,m},\ldots,x_{l,1},\ldots,x_{l,m})\mapsto f\left(g(x_{1,1},\ldots,x_{1,m}),\ldots,g(x_{l,1},\ldots,x_{l,m})\right). ( x 1 , 1 , … , x 1 , m , … , x l , 1 , … , x l , m ) ↦ f ( g ( x 1 , 1 , … , x 1 , m ) , … , g ( x l , 1 , … , x l , m ) ) .
Clone Formulation of Birkhoff’s Theorem
One can translate back and forth between varieties and abstract clones.
Definition 7.40 (Var(C)). For any abstract clone C, the variety Var ( C ) \operatorname{Var}(C) Var ( C ) is defined as follows. We use the elements of C as a functional signature τ \tau τ , where the elements of C ( n ) C^{(n)} C ( n ) are n n n -ary function symbols. We consider the set Σ \Sigma Σ of τ \tau τ -identities defined as follows. If f ∈ C ( k ) f\in C^{(k)} f ∈ C ( k ) and g 0 , g 1 , … , g k ∈ C ( m ) g_0,g_1,\ldots,g_k\in C^{(m)} g 0 , g 1 , … , g k ∈ C ( m ) are such that C ⊨ ( g 0 = comp m k ( f , g 1 , … , g k ) ) C\models(g_0=\operatorname{comp}_m^k(f,g_1,\ldots,g_k)) C ⊨ ( g 0 = comp m k ( f , g 1 , … , g k )) , then we add the identity g 0 ( y 1 , … , y m ) ≈ f ( g 1 ( y 1 , … , y m ) , … , g k ( y 1 , … , y m ) ) g_0(y_1,\ldots,y_m)\approx f(g_1(y_1,\ldots,y_m),\ldots,g_k(y_1,\ldots,y_m)) g 0 ( y 1 , … , y m ) ≈ f ( g 1 ( y 1 , … , y m ) , … , g k ( y 1 , … , y m )) to Σ \Sigma Σ . Moreover, we add the identities π i n ( y 1 , … , y n ) ≈ y i \pi_i^n(y_1,\ldots,y_n)\approx y_i π i n ( y 1 , … , y n ) ≈ y i to Σ \Sigma Σ . Then Var ( C ) \operatorname{Var}(C) Var ( C ) denotes the class of τ \tau τ -algebras that satisfy Σ \Sigma Σ .
Conversely, to every variety V \mathcal{V} V we may associate the clone Clo ( V ) : = Clo ( F V ( { x 1 , x 2 , … } ) ) \operatorname{Clo}(\mathcal{V}):=\operatorname{Clo}(\mathbf{F}_{\mathcal{V}}(\{x_1,x_2,\ldots\})) Clo ( V ) := Clo ( F V ({ x 1 , x 2 , … })) of the algebra F V ( { x 1 , x 2 , … } ) \mathbf{F}_{\mathcal{V}}(\{x_1,x_2,\ldots\}) F V ({ x 1 , x 2 , … }) which is free for V \mathcal{V} V over countably many generators.
Proposition 7.41. Let C \mathbf{C} C be an abstract clone. Then Clo ( Var ( C ) ) \operatorname{Clo}(\operatorname{Var}(\mathbf{C})) Clo ( Var ( C )) is isomorphic to C \mathbf{C} C .
Proof. Let V : = Var ( C ) \mathcal{V} := \operatorname{Var}(\mathbf{C}) V := Var ( C ) , and let Σ \Sigma Σ be the set of τ \tau τ -identities that defines V \mathcal{V} V . Let F : = F V ( { x 1 , x 2 , … } ) \mathbf{F} := \mathbf{F}_{\mathcal{V}}(\{x_1,x_2,\ldots\}) F := F V ({ x 1 , x 2 , … }) and let D : = Clo ( F ) \mathbf{D} := \operatorname{Clo}(\mathbf{F}) D := Clo ( F ) .
Claim 1. The map ξ \xi ξ that sends f ∈ C ( n ) f \in C^{(n)} f ∈ C ( n ) to f F ∈ D ( n ) f^{\mathbf{F}} \in D^{(n)} f F ∈ D ( n ) is a clone homomorphism C → D \mathbf{C} \to\mathbf{D} C → D :
If i ∈ [ n ] i \in[n] i ∈ [ n ] then Σ \Sigma Σ contains π i n ( y 1 , … , y n ) ≈ y i \pi_i^n(y_1,\ldots,y_n) \approx y_i π i n ( y 1 , … , y n ) ≈ y i . Since F ⊨ Σ \mathbf{F} \models\Sigma F ⊨ Σ we have ( π i n ) F ( a 1 , … , a n ) = a i (\pi_i^n)^{\mathbf{F}}(a_1,\ldots,a_n) = a_i ( π i n ) F ( a 1 , … , a n ) = a i for all a 1 , … , a n ∈ F a_1,\ldots,a_n \in F a 1 , … , a n ∈ F . Hence, ξ ( ( π i n ) C ) = ( π i n ) F = ( π i n ) D \xi((\pi_i^n)^{\mathbf{C}}) = (\pi_i^n)^{\mathbf{F}} = (\pi_i^n)^{\mathbf{D}} ξ (( π i n ) C ) = ( π i n ) F = ( π i n ) D .
If n , m ≥ 1 n,m \ge1 n , m ≥ 1 , f ∈ C ( n ) f \in C^{(n)} f ∈ C ( n ) , g 1 , … , g n ∈ C ( m ) g_1,\ldots,g_n \in C^{(m)} g 1 , … , g n ∈ C ( m ) , and g 0 = f ( g 1 , … , g n ) g_0 = f(g_1,\ldots,g_n) g 0 = f ( g 1 , … , g n ) , then Σ \Sigma Σ contains g 0 ( y 1 , … , y m ) ≈ f ( g 1 ( y 1 , … , y m ) , … , g n ( y 1 , … , y m ) ) g_0(y_1,\ldots,y_m) \approx f(g_1(y_1,\ldots,y_m),\ldots,g_n(y_1,\ldots,y_m)) g 0 ( y 1 , … , y m ) ≈ f ( g 1 ( y 1 , … , y m ) , … , g n ( y 1 , … , y m )) , and since F ⊨ Σ \mathbf{F} \models\Sigma F ⊨ Σ it follows that ξ ( g 0 ) = ξ ( f ) ( ξ ( g 1 ) , … , ξ ( g n ) ) \xi(g_0) = \xi(f)(\xi(g_1),\ldots,\xi(g_n)) ξ ( g 0 ) = ξ ( f ) ( ξ ( g 1 ) , … , ξ ( g n )) .
Claim 2. ξ \xi ξ is surjective. Every element of D D D is of the form t F t^{\mathbf{F}} t F , for some τ \tau τ -term t t t . It can be shown by induction over the term structure that there exists s ∈ τ s \in\tau s ∈ τ such that s F = t F s^{\mathbf{F}} = t^{\mathbf{F}} s F = t F , and hence ξ ( s ) = t F \xi(s) = t^{\mathbf{F}} ξ ( s ) = t F .
Claim 3. ξ \xi ξ is injective. Suppose that ξ ( f ) = ξ ( g ) \xi(f) = \xi(g) ξ ( f ) = ξ ( g ) for some f , g ∈ C ( n ) f,g \in C^{(n)} f , g ∈ C ( n ) . We construct a τ \tau τ -algebra A n \mathbf{A}_n A n with domain C ( n ) C^{(n)} C ( n ) . For every function symbol h ∈ C ( k ) h \in C^{(k)} h ∈ C ( k ) , define
h A n ( q 1 , … , q k ) : = comp n k ( h , q 1 , … , q k ) for q 1 , … , q k ∈ C ( n ) . h^{\mathbf{A}_n}(q_1,\ldots,q_k) := \operatorname{comp}_n^k(h,q_1,\ldots,q_k) \qquad\text{for } q_1,\ldots,q_k \in C^{(n)}. h A n ( q 1 , … , q k ) := comp n k ( h , q 1 , … , q k ) for q 1 , … , q k ∈ C ( n ) . We claim that A n ∈ V \mathbf{A}_n \in\mathcal{V} A n ∈ V , that is, that A n \mathbf{A}_n A n satisfies Σ \Sigma Σ . First, if q 1 , … , q m ∈ C ( n ) q_1,\ldots,q_m \in C^{(n)} q 1 , … , q m ∈ C ( n ) , then
( π i m ) A n ( q 1 , … , q m ) = comp n m ( π i m , q 1 , … , q m ) = q i , (\pi_i^m)^{\mathbf{A}_n}(q_1,\ldots,q_m) = \operatorname{comp}_n^m(\pi_i^m,q_1,\ldots,q_m) = q_i, ( π i m ) A n ( q 1 , … , q m ) = comp n m ( π i m , q 1 , … , q m ) = q i , so A n \mathbf{A}_n A n satisfies the projection identities from Σ \Sigma Σ . Now let h ∈ C ( k ) h \in C^{(k)} h ∈ C ( k ) and g 0 , g 1 , … , g k ∈ C ( m ) g_0,g_1,\ldots,g_k \in C^{(m)} g 0 , g 1 , … , g k ∈ C ( m ) be such that
g 0 = comp m k ( h , g 1 , … , g k ) . g_0 = \operatorname{comp}_m^k(h,g_1,\ldots,g_k). g 0 = comp m k ( h , g 1 , … , g k ) . For all q 1 , … , q m ∈ C ( n ) q_1,\ldots,q_m \in C^{(n)} q 1 , … , q m ∈ C ( n ) , the associativity axioms of the abstract clone give
g 0 A n ( q 1 , … , q m ) = comp n m ( g 0 , q 1 , … , q m ) = comp n k ( h , comp n m ( g 1 , q 1 , … , q m ) , … , comp n m ( g k , q 1 , … , q m ) ) = h A n ( g 1 A n ( q 1 , … , q m ) , … , g k A n ( q 1 , … , q m ) ) . \begin{aligned}
g_0^{\mathbf{A}_n}(q_1,\ldots,q_m)
&= \operatorname{comp}_n^m(g_0,q_1,\ldots,q_m) \\
&= \operatorname{comp}_n^k\left(h,\operatorname{comp}_n^m(g_1,q_1,\ldots,q_m),\ldots,\operatorname{comp}_n^m(g_k,q_1,\ldots,q_m)\right) \\
&= h^{\mathbf{A}_n}\left(g_1^{\mathbf{A}_n}(q_1,\ldots,q_m),\ldots,g_k^{\mathbf{A}_n}(q_1,\ldots,q_m)\right).
\end{aligned} g 0 A n ( q 1 , … , q m ) = comp n m ( g 0 , q 1 , … , q m ) = comp n k ( h , comp n m ( g 1 , q 1 , … , q m ) , … , comp n m ( g k , q 1 , … , q m ) ) = h A n ( g 1 A n ( q 1 , … , q m ) , … , g k A n ( q 1 , … , q m ) ) . Thus A n \mathbf{A}_n A n also satisfies every composition identity from Σ \Sigma Σ , and hence A n ∈ V \mathbf{A}_n \in\mathcal{V} A n ∈ V .
The assumption ξ ( f ) = ξ ( g ) \xi(f) = \xi(g) ξ ( f ) = ξ ( g ) means that f F = g F f^{\mathbf{F}} = g^{\mathbf{F}} f F = g F and thus
F ⊨ f ( y 1 , … , y n ) ≈ g ( y 1 , … , y n ) . \mathbf{F} \models f(y_1,\ldots,y_n) \approx g(y_1,\ldots,y_n). F ⊨ f ( y 1 , … , y n ) ≈ g ( y 1 , … , y n ) . By Lemma 7.30, this identity holds in every algebra of V \mathcal{V} V , and in particular in A n \mathbf{A}_n A n . Evaluating it in A n \mathbf{A}_n A n at the elements π 1 n , … , π n n ∈ C ( n ) \pi_1^n,\ldots,\pi_n^n \in C^{(n)} π 1 n , … , π n n ∈ C ( n ) , we obtain
comp n n ( f , π 1 n , … , π n n ) = comp n n ( g , π 1 n , … , π n n ) . \operatorname{comp}_n^n(f,\pi_1^n,\ldots,\pi_n^n) = \operatorname{comp}_n^n(g,\pi_1^n,\ldots,\pi_n^n). comp n n ( f , π 1 n , … , π n n ) = comp n n ( g , π 1 n , … , π n n ) . The projection axioms of the abstract clone imply that the left-hand side is f f f and the right-hand side is g g g . Hence f = g f = g f = g , proving that ξ \xi ξ is injective. □ \square □
Proposition 7.41 in particular shows the following, which can be seen as an analog of Cayley’s theorem for clones.
Corollary 7.42. Every abstract clone is isomorphic to an operation clone.
Proposition 7.41 has a converse; to state it, we need the following definition.
Definition 7.43. Let V \mathcal{V} V , W \mathcal{W} W be varieties with signatures σ \sigma σ and ρ \rho ρ , respectively. An interpretation of V \mathcal{V} V in W \mathcal{W} W is a map I I I from σ \sigma σ to ρ \rho ρ -terms such that symbols of arity k k k are sent to terms with k k k free variables, and V \mathcal{V} V contains { I ( A ) ∣ A ∈ W } \{I(\mathbf{A}) \mid\mathbf{A} \in\mathcal{W}\} { I ( A ) ∣ A ∈ W } where I ( A ) I(\mathbf{A}) I ( A ) is the σ \sigma σ -algebra with domain A A A and the operation I ( f ) A I(f)^{\mathbf{A}} I ( f ) A for f ∈ σ f \in\sigma f ∈ σ .
The following lemma is straightforward from the definitions.
Lemma 7.44. Let V \mathcal{V} V and W \mathcal{W} W be varieties. Then there is an interpretation of V \mathcal{V} V in W \mathcal{W} W if and only if there exists a clone homomorphism from Clo ( V ) \operatorname{Clo}(\mathcal{V}) Clo ( V ) to Clo ( W ) \operatorname{Clo}(\mathcal{W}) Clo ( W ) .
Proposition 7.45. Let V \mathcal{V} V be a variety. Then Var ( Clo ( V ) ) \operatorname{Var}(\operatorname{Clo}(\mathcal{V})) Var ( Clo ( V )) and V \mathcal{V} V mutually interpret each other.
Proof. Let σ \sigma σ be the signature of V \mathcal{V} V and let ρ \rho ρ be the signature of W : = Var ( Clo ( V ) ) \mathcal{W} := \operatorname{Var}(\operatorname{Clo}(\mathcal{V})) W := Var ( Clo ( V )) . Let F : = F V ( { x 1 , x 2 , … } ) \mathbf{F} := \mathbf{F}_{\mathcal{V}}(\{x_1, x_2, \ldots\}) F := F V ({ x 1 , x 2 , … }) . The identities that hold in every algebra of V \mathcal{V} V are precisely those that hold in F \mathbf{F} F by Lemma 7.30 . Then the map that sends f ∈ σ f \in\sigma f ∈ σ of arity k k k to f F ( x 1 , … , x k ) f^{\mathbf{F}}(x_1, \ldots, x_k) f F ( x 1 , … , x k ) , viewed as a ρ \rho ρ -term, is an interpretation of V \mathcal{V} V in W \mathcal{W} W .
Conversely, every f ∈ ρ f \in\rho f ∈ ρ of arity n n n has been introduced for an element of F \mathbf{F} F which equals t F ( x i 1 , … , x i n ) t^{\mathbf{F}}(x_{i_1}, \ldots, x_{i_n}) t F ( x i 1 , … , x i n ) for some i 1 , … , i n ∈ N i_1, \ldots, i_n \in\mathbb{N} i 1 , … , i n ∈ N and some σ \sigma σ -term t ( y 1 , … , y n ) t(y_1, \ldots, y_n) t ( y 1 , … , y n ) . The map J J J that sends f f f to t ( y 1 , … , y n ) t(y_1, \ldots, y_n) t ( y 1 , … , y n ) is an interpretation of W \mathcal{W} W in V \mathcal{V} V .
:::
The following proposition links the existence of clone homomorphisms with the language of algebras, and in particular identities and (pseudo-) varieties.
Proposition 7.46. Let C \mathcal{C} C and D \mathcal{D} D be operation clones on finite sets. Then the following are equivalent.
There is a surjective clone homomorphism from C \mathcal{C} C to D \mathcal{D} D ;
there are algebras A \mathbf{A} A and B \mathbf{B} B with the same signature τ \tau τ such that Clo ( A ) = D \operatorname{Clo}(\mathbf{A}) = \mathcal{D} Clo ( A ) = D , Clo ( B ) = C \operatorname{Clo}(\mathbf{B}) = \mathcal{C} Clo ( B ) = C , and all universal conjunctive τ \tau τ -sentences that hold in B \mathbf{B} B also hold in A \mathbf{A} A ;
there are algebras A \mathbf{A} A and B \mathbf{B} B with the same signature such that Clo ( A ) = D \operatorname{Clo}(\mathbf{A}) = \mathcal{D} Clo ( A ) = D , Clo ( B ) = C \operatorname{Clo}(\mathbf{B}) = \mathcal{C} Clo ( B ) = C , and A ∈ HSP f i n ( B ) \mathbf{A} \in\operatorname{HSP}^{\mathrm{fin}}(\mathbf{B}) A ∈ HSP fin ( B ) (equivalently, A ∈ HSP ( B ) \mathbf{A} \in\operatorname{HSP}(\mathbf{B}) A ∈ HSP ( B ) ).
Moreover, the following are equivalent.
There is a clone isomorphism between C \mathcal{C} C and D \mathcal{D} D .
there are algebras A \mathbf{A} A and B \mathbf{B} B with the same signature such that Clo ( A ) = D \operatorname{Clo}(\mathbf{A}) = \mathcal{D} Clo ( A ) = D , Clo ( B ) = C \operatorname{Clo}(\mathbf{B}) = \mathcal{C} Clo ( B ) = C , and HSP f i n ( A ) = HSP f i n ( B ) \operatorname{HSP}^{\mathrm{fin}}(\mathbf{A}) = \operatorname{HSP}^{\mathrm{fin}}(\mathbf{B}) HSP fin ( A ) = HSP fin ( B ) (equivalently: HSP ( A ) = HSP ( B ) \operatorname{HSP}(\mathbf{A}) = \operatorname{HSP}(\mathbf{B}) HSP ( A ) = HSP ( B ) ).
In the study of the complexity of CSPs, the equivalence between (1) and (3) in the above is the most relevant, since (3) is related to our most important tool to prove NP-hardness of CSPs (because of the link between pseudovarieties and primitive positive interpretations from Theorem 7.23 , and since (1) is the universal-algebraic property that will be used in the following (see e.g. Theorem 9.16 below). The following lemma is central for our applications of abstract clones when studying the complexity of CSPs; it applies to all operation clones F \mathbf{F} F on a finite set.
Lemma 7.47. Let C \mathbf{C} C be a clone and let F \mathbf{F} F be a clone that has finitely many elements of each sort such that there is no clone homomorphism from C \mathbf{C} C to F \mathbf{F} F . Then there is a primitive positive sentence in the signature τ \tau τ of (abstract) clones that holds in C \mathbf{C} C but not in F \mathbf{F} F .
Proof. Let E \mathbf{E} E be the expansion of C \mathbf{C} C by constant symbols such that every element e e e of E \mathbf{E} E is named by a constant c e c_e c e . Let V V V be the set of atomic sentences that hold in E \mathbf{E} E . Let U U U be the first-order theory of F \mathbf{F} F . Suppose for contradiction that U ∪ V U \cup V U ∪ V has a model M \mathbf{M} M .
For n ≥ 1 n \ge1 n ≥ 1 , let F ≤ n \mathbf{F}_{\leq n} F ≤ n and M ≤ n \mathbf{M}_{\leq n} M ≤ n be the τ \tau τ -reducts of F \mathbf{F} F and M \mathbf{M} M restricted to the first n n n sorts. These are finite (multisorted) structures. Since F \mathbf{F} F and M \mathbf{M} M satisfy the same first-order theory, F ≤ n \mathbf{F}_{\leq n} F ≤ n and M ≤ n \mathbf{M}_{\leq n} M ≤ n are isomorphic. The isomorphisms between these finite reducts form a finitely branching tree under restriction. By König’s lemma, this tree has an infinite branch. The union of the isomorphisms on this branch is an isomorphism between F \mathbf{F} F and the restriction of the τ \tau τ -reduct of M \mathbf{M} M to ⋃ i M ( i ) \bigcup_i M^{(i)} ⋃ i M ( i ) (note that there might be elements in M \mathbf{M} M outside of ⋃ i M ( i ) \bigcup_i M^{(i)} ⋃ i M ( i ) ); we identify it with F \mathbf{F} F . Note that for all constants c e c_e c e we have that c e M ∈ F c_e^{\mathbf{M}} \in\mathbf{F} c e M ∈ F . Since M \mathbf{M} M satisfies all atomic formulas that hold in E \mathbf{E} E , we have that the mapping e ↦ c e M e \mapsto c_e^{\mathbf{M}} e ↦ c e M , for e e e an element of E \mathbf{E} E , is a homomorphism from C \mathbf{C} C to F \mathbf{F} F , in contradiction to our assumptions.
So U ∪ V U \cup V U ∪ V is unsatisfiable, and by compactness of first-order logic10 there exists a finite subset V ′ V' V ′ of V V V such that V ′ ∪ U V' \cup U V ′ ∪ U is unsatisfiable. Replace each of the new constant symbols in V ′ V' V ′ by an existentially quantified variable; then the conjunction of the resulting sentences from V ′ V' V ′ is a primitive positive τ \tau τ -sentence, and it must be false in F \mathbf{F} F . □ \square □
Similarly as in Definition 7.40, a primitive positive sentence in the signature of abstract clones that holds in Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) translates into the existence of a set of identities in the signature of A \mathbf{A} A that holds in A \mathbf{A} A . A set of identities Σ \Sigma Σ is called trivial if there exists an algebra A \mathbf{A} A that satisfies Σ \Sigma Σ and Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) is isomorphic to Proj \operatorname{Proj} Proj .
Corollary 7.48. Let A \mathbf{A} A be an algebra. If there is no clone homomorphism from Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) to Proj \operatorname{Proj} Proj , then there exists a non-trivial finite set of identities that holds in A \mathbf{A} A .
Clone Homomorphisms and Primitive Positive Interpretations
Clone homomorphisms can be linked to pseudovarieties of algebras, and pseudo-varieties of polymorphism algebras can be linked to primitive positive interpretations; in this section, we present shortcuts that directly link the existence of clone homomorphisms of polymorphism clones with primitive positive interpretations. The proofs will be merely combinations of previous results, but the combinations are often easier to cite and this will be convenient later in the text.
Corollary 7.50. A finite structure A \mathfrak{A} A has a primitive positive interpretation in a finite structure B \mathfrak{B} B if and only if there exists a clone homomorphism from Pol ( B ) \operatorname{Pol}(\mathfrak{B}) Pol ( B ) to Pol ( A ) \operatorname{Pol}(\mathfrak{A}) Pol ( A ) .
Proof. The proof is a straightforward combination of Theorem 7.23 with Proposition 7.46. Let B \mathbf{B} B be a polymorphism algebra of B \mathfrak{B} B . If A \mathfrak{A} A has a primitive positive interpretation in B \mathfrak{B} B then by Theorem 7.23 there exists A ∈ HSP f i n ( B ) \mathbf{A} \in\operatorname{HSP}^{\mathrm{fin}}(\mathbf{B}) A ∈ HSP fin ( B ) such that Clo ( A ) ⊆ Pol ( A ) \operatorname{Clo}(\mathbf{A}) \subseteq\operatorname{Pol}(\mathfrak{A}) Clo ( A ) ⊆ Pol ( A ) . Then Proposition 7.46 implies that there exists a surjective clone homomorphism from Clo ( B ) \operatorname{Clo}(\mathcal{B}) Clo ( B ) to Clo ( A ) \operatorname{Clo}(\mathcal{A}) Clo ( A ) , which is a clone homomorphism from Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) to Pol ( A ) \operatorname{Pol}(\mathcal{A}) Pol ( A ) . Conversely, suppose that there exists a clone homomorphism from Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) to Pol ( A ) \operatorname{Pol}(\mathcal{A}) Pol ( A ) . Let C ⊆ Pol ( A ) \mathcal{C} \subseteq\operatorname{Pol}(\mathcal{A}) C ⊆ Pol ( A ) be the image of this clone homomorphism. Then by Proposition 7.46 there are algebras A \mathcal{A} A and B \mathcal{B} B with the same signature such that Clo ( A ) = C \operatorname{Clo}(\mathcal{A}) = \mathcal{C} Clo ( A ) = C , Clo ( B ) = Pol ( B ) \operatorname{Clo}(\mathcal{B}) = \operatorname{Pol}(\mathcal{B}) Clo ( B ) = Pol ( B ) , and A ∈ HSP f i n ( B ) \mathcal{A} \in\operatorname{HSP}^{\mathrm{fin}}(\mathcal{B}) A ∈ HSP fin ( B ) . This in turn means that A \mathcal{A} A has a primitive positive interpretation in B \mathcal{B} B by Theorem 7.23 .
Corollary 7.51. Two finite structures A \mathcal{A} A and B \mathcal{B} B are primitively positively bi-interpretable if and only if Pol ( A ) \operatorname{Pol}(\mathcal{A}) Pol ( A ) and Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) are isomorphic as abstract clones.
Proof. Combine Proposition 7.24 and the second part of Proposition 7.46 .
Exercise 156. Prove that if C \mathcal{C} C and D \mathcal{D} D are clones on finite sets that are isomorphic, and C \mathcal{C} C is finitely related (Definition 6.12), then so is D \mathcal{D} D .
Hardness from Factors
An algebra is called idempotent if all of its operations are idempotent. For idempotent algebras A \mathcal{A} A there is another characterisation for the existence of a clone homomorphism to Proj \operatorname{Proj} Proj by Bulatov and Jeavons [41, Proposition 4.14] (Corollary 7.53 below). We present a slightly strengthened version of their result by Zhuk [113, Lemma 4.2].
Theorem 7.52. Let B \mathcal{B} B be an idempotent algebra and suppose that A ∈ HSP f i n ( B ) \mathcal{A} \in\operatorname{HSP}^{\mathrm{fin}}(\mathcal{B}) A ∈ HSP fin ( B ) has at least two elements. Then HS ( B ) \operatorname{HS}(\mathcal{B}) HS ( B ) contains a subalgebra A ′ \mathcal{A}' A ′ of A \mathcal{A} A with at least two elements.
Proof. Suppose that C ∈ S ( B d ) \mathcal{C} \in\operatorname{S}(\mathcal{B}^{d}) C ∈ S ( B d ) for some d ∈ N d \in\mathbb{N} d ∈ N has a congruence K K K such that A : = C / K \mathcal{A} := \mathcal{C}/K A := C / K has at least two elements. We show the statement by induction on d d d . For d = 1 d = 1 d = 1 there is nothing to be shown, because we can choose A ′ : = A \mathcal{A}' := \mathcal{A} A ′ := A . If for any two equivalence classes E 1 E_1 E 1 and E 2 E_2 E 2 of K K K the intersection π 1 ( E 1 ) ∩ π 1 ( E 2 ) \pi_1(E_1) \cap\pi_1(E_2) π 1 ( E 1 ) ∩ π 1 ( E 2 ) is empty, then let
C ′ : = π 1 ( C ) \mathcal{C}' := \pi_1(\mathcal{C}) C ′ := π 1 ( C )
K ′ : = { ( π 1 ( a ) , π 1 ( b ) ) ∣ ( a , b ) ∈ K } . K' := \{(\pi_1(a), \pi_1(b)) \mid(a,b) \in K\}. K ′ := {( π 1 ( a ) , π 1 ( b )) ∣ ( a , b ) ∈ K } .
Then C ′ \mathcal{C}' C ′ is the universe of a subalgebra C ′ \mathcal{C}' C ′ of B \mathcal{B} B , K ′ K' K ′ is a congruence of C ′ \mathcal{C}' C ′ , and C ′ / K ′ \mathcal{C}'/K' C ′ / K ′ is isomorphic to C / K = A \mathcal{C}/K = \mathcal{A} C / K = A . Again, we have A ∈ HS ( B ) \mathcal{A} \in\operatorname{HS}(\mathcal{B}) A ∈ HS ( B ) .
Now suppose that K K K has two equivalence classes E 1 E_1 E 1 and E 2 E_2 E 2 such that π 1 ( E 1 ) ∩ π 1 ( E 2 ) ≠ ∅ \pi_1(E_1) \cap\pi_1(E_2) \ne\varnothing π 1 ( E 1 ) ∩ π 1 ( E 2 ) = ∅ . Let a ∈ π 1 ( E 1 ) ∩ π 1 ( E 2 ) a \in\pi_1(E_1) \cap\pi_1(E_2) a ∈ π 1 ( E 1 ) ∩ π 1 ( E 2 ) and define
C ′ : = π { 2 , … , d } ( C ∩ ( { a } × B d − 1 ) ) \mathcal{C}' := \pi_{\{2,\ldots,d\}}\bigl(\mathcal{C} \cap(\{a\} \times\mathcal{B}^{d-1})\bigr) C ′ := π { 2 , … , d } ( C ∩ ({ a } × B d − 1 ) )
K ′ : = { ( ( b 2 , … , b d ) , ( c 2 , … , c d ) ) ∣ ( ( a , b 2 , … , b d ) , ( a , c 2 , … , c d ) ) ∈ K } . K' := \{((b_2,\ldots,b_d),(c_2,\ldots,c_d)) \mid((a,b_2,\ldots,b_d),(a,c_2,\ldots,c_d)) \in K\}. K ′ := {(( b 2 , … , b d ) , ( c 2 , … , c d )) ∣ (( a , b 2 , … , b d ) , ( a , c 2 , … , c d )) ∈ K } .
Since B \mathcal{B} B and C \mathcal{C} C are idempotent, the set C ′ \mathcal{C}' C ′ is the universe of a subalgebra C ′ \mathcal{C}' C ′ of C \mathcal{C} C , and K ′ K' K ′ is a congruence of C ′ \mathcal{C}' C ′ . The algebra C ′ / K ′ \mathcal{C}'/K' C ′ / K ′ has at least two elements and is isomorphic to a subalgebra of C / K = A \mathcal{C}/K = \mathcal{A} C / K = A . Thus, the statement follows from the inductive assumption.
Corollary 7.53. Let B \mathcal{B} B be an idempotent algebra. Then HSP f i n ( B ) \operatorname{HSP}^{\mathrm{fin}}(\mathcal{B}) HSP fin ( B ) contains an algebra with at least two elements all of whose operations are projections if and only if HS ( B ) \operatorname{HS}(\mathcal{B}) HS ( B ) does.
Proof. If all operations of an algebra A \mathcal{A} A are projections, then the same applies to all subalgebras of A \mathcal{A} A . Therefore the statement follows from Theorem 7.52 .
Since the size of the algebras in HS ( B ) \operatorname{HS}(\mathbf B) HS ( B ) is bounded by the size of B \mathbf B B , this leads to an algorithm that decides whether a given finite structure B \mathcal B B satisfies the equivalent conditions in Theorem 9.16. We summarise various equivalent conditions for finite idempotent algebras that were treated in this chapter.
Corollary 7.54. Let B \mathbf B B be a finite idempotent algebra. Then the following are equivalent.
There is no homomorphism from Clo ( B ) \operatorname{Clo}(\mathbf B) Clo ( B ) to Proj \operatorname{Proj} Proj .
B \mathbf B B satisfies some non-trivial finite set of identities.
HSP ( B ) \operatorname{HSP}(\mathbf B) HSP ( B ) does not contain an at least 2-element algebra all of whose operations are projections.
HS ( B ) \operatorname{HS}(\mathbf B) HS ( B ) does not contain an at least 2-element algebra all of whose operations are projections.
Proof. The equivalence of (1) and (2) follows from Corollary 7.48. The equivalence of (1) and (3) follows from Proposition 7.46. The equivalence of (3) and (4) follows from Theorem 7.25 combined with Theorem 7.52.
Exercise 157. Let B \mathbf B B be an idempotent algebra such that HSP f i n ( B ) \operatorname{HSP}^{\mathrm{fin}}(\mathbf B) HSP fin ( B ) contains an affine Maltsev algebra (see Section 8.2) with at least two elements. Then HS ( B ) \operatorname{HS}(\mathbf B) HS ( B ) contains an affine algebra with at least two elements.
Maltsev Polymorphisms
Recall from Section 4.4 the definition of a Maltsev operation: a ternary operation f : D 3 → D f \colon D^3 \to D f : D 3 → D satisfying
f ( y , x , x ) ≈ f ( x , x , y ) ≈ y . f(y,x,x) \approx f(x,x,y) \approx y . f ( y , x , x ) ≈ f ( x , x , y ) ≈ y .
As we have seen in Theorem 4.19, every digraph with a Maltsev polymorphism can be solved by the path-consistency procedure. However, when considering arbitrary relational structures then there are many examples with a Maltsev polymorphism that cannot be solved by the path-consistency procedure [60] (see Theorem 8.9 below). In this section, we present the algorithm of Bulatov and Dalmau for CSP ( A ) \operatorname{CSP}(\mathcal A) CSP ( A ) when A \mathcal A A is preserved by a Maltsev polymorphism [40].
Theorem 8.1. Let A \mathcal A A be a finite structure with finite relational signature and a Maltsev polymorphism. Then CSP ( A ) \operatorname{CSP}(\mathcal A) CSP ( A ) can be solved in polynomial time.
Before we present the proof of this important result, we present some examples of Maltsev operations.
Heap Operations
The most prominent class of structures A \mathcal A A with a Maltsev polymorphism comes from groups. For any group G \mathbf G G (see Example 7.1), the operation m m m given by ( x , y , z ) ↦ x y − 1 z (x,y,z) \mapsto xy^{-1}z ( x , y , z ) ↦ x y − 1 z is obviously Maltsev. Besides the Maltsev identities, such operations additionally satisfy
m ( u , x , m ( v , y , w ) ) ≈ m ( m ( u , x , v ) , y , w ) m(u,x,m(v,y,w)) \approx m(m(u,x,v),y,w) m ( u , x , m ( v , y , w )) ≈ m ( m ( u , x , v ) , y , w )
Such operations are also called heap operations ; see Exercise 158.
For general finite groups G \mathbf{G} G , and if all relations of B \mathfrak{B} B are cosets g H : = { g h ∣ h ∈ H } gH := \{gh \mid h \in H\} g H := { g h ∣ h ∈ H } of subgroups H H H of G k \mathbf{G}^{k} G k , then Feder and Vardi [60] showed how to solve CSP( B ) (\mathfrak{B}) ( B ) in polynomial time using a previously known algorithm to find small generating sets for a permutation group. We will not discuss this approach, but rather present the more general algorithm of Bulatov and Dalmau which works for all finite structures preserved by a Maltsev polymorphism. The following proposition shows that this is indeed more general.
Proposition 8.2. Let G \mathbf{G} G be a group and let m : G 3 → G m\colon G^{3} \to G m : G 3 → G be the Maltsev operation defined by m ( x , y , z ) : = x y − 1 z m(x,y,z) := xy^{-1}z m ( x , y , z ) := x y − 1 z . Then m m m preserves a non-empty relation R ⊆ G k R \subseteq G^{k} R ⊆ G k if and only if R R R is a coset of a subgroup of G k G^{k} G k , for all k ∈ N k \in\mathbb{N} k ∈ N .
Proof. Let k ∈ N k \in\mathbb{N} k ∈ N and let H H H be a subgroup of G k \mathbf{G}^{k} G k . Let a ∈ G k a \in G^{k} a ∈ G k and h 1 , h 2 , h 3 ∈ H h_{1},h_{2},h_{3} \in H h 1 , h 2 , h 3 ∈ H . As usual, we may apply m m m to elements of G k G^{k} G k componentwise; then
m ( a h 1 , a h 2 , a h 3 ) = a h 1 ( a h 2 ) − 1 a h 3 = a h 1 h 2 − 1 a − 1 a h 3 = a h 1 h 2 − 1 h 3 ∈ a H m(ah_{1},ah_{2},ah_{3}) = ah_{1}(ah_{2})^{-1}ah_{3} = ah_{1}h_{2}^{-1}a^{-1}ah_{3} = ah_{1}h_{2}^{-1}h_{3} \in aH m ( a h 1 , a h 2 , a h 3 ) = a h 1 ( a h 2 ) − 1 a h 3 = a h 1 h 2 − 1 a − 1 a h 3 = a h 1 h 2 − 1 h 3 ∈ a H
so m m m indeed preserves all cosets of H H H .
Conversely, suppose that R ⊆ G k R \subseteq G^{k} R ⊆ G k is non-empty and preserved by m m m . Choose y ∈ R y \in R y ∈ R arbitrarily. We claim that y − 1 R y^{-1}R y − 1 R is a subgroup H H H of G k G^{k} G k . This will show that R = y H R = yH R = y H is a coset of a subgroup of G k G^{k} G k . Arbitrarily choose a , b ∈ y − 1 R a,b \in y^{-1}R a , b ∈ y − 1 R . Then x : = y a ∈ R x := ya \in R x := y a ∈ R and z : = y b ∈ R z := yb \in R z := y b ∈ R . Hence, m ( x , y , z ) = y a y − 1 y b = y a b ∈ R m(x,y,z) = yay^{-1}yb = yab \in R m ( x , y , z ) = y a y − 1 y b = y ab ∈ R , so a b ∈ y − 1 R ab \in y^{-1}R ab ∈ y − 1 R and y − 1 R y^{-1}R y − 1 R is closed under the group operation. Moreover, m ( y , y a , y ) = y ( y a ) − 1 y = y a − 1 ∈ R m(y,ya,y) = y(ya)^{-1}y = ya^{-1} \in R m ( y , y a , y ) = y ( y a ) − 1 y = y a − 1 ∈ R , so a − 1 ∈ y − 1 R a^{-1} \in y^{-1}R a − 1 ∈ y − 1 R and y − 1 R y^{-1}R y − 1 R is also closed under taking inverses.
Corollary 8.3. Let G \mathbf{G} G be a finite group, let m m m be as in Proposition 8.2, and let G \mathfrak{G} G be the structure with the same domain G G G as G \mathbf{G} G whose relations are all cosets of subgroups of G k G^{k} G k , for all k ∈ N k \in\mathbb{N} k ∈ N . Then Pol ( G ) = Clo ( G ; m ) \operatorname{Pol}(\mathfrak{G}) = \operatorname{Clo}(G;m) Pol ( G ) = Clo ( G ; m ) .
Proof. By Proposition 8.2, the operation m m m preserves every relation of G \mathfrak{G} G . Since projections preserve every relation and polymorphisms are closed under composition, it follows that Clo ( G ; m ) ⊆ Pol ( G ) \operatorname{Clo}(G;m) \subseteq\operatorname{Pol}(\mathfrak{G}) Clo ( G ; m ) ⊆ Pol ( G ) .
Conversely, Proposition 8.2 shows that the basic relations of G \mathfrak{G} G are precisely the non-empty relations in Inv ( { m } ) \operatorname{Inv}(\{m\}) Inv ({ m }) . Empty relations impose no condition on polymorphisms, and hence
Pol ( G ) = Pol ( Inv ( { m } ) ) . \operatorname{Pol}(\mathfrak{G}) = \operatorname{Pol}(\operatorname{Inv}(\{m\})). Pol ( G ) = Pol ( Inv ({ m })) .
At this point we use that G G G is finite: Proposition 6.5 gives
Pol ( Inv ( { m } ) ) = ⟨ m ⟩ = Clo ( G ; m ) , \operatorname{Pol}(\operatorname{Inv}(\{m\})) = \langle m\rangle= \operatorname{Clo}(G;m), Pol ( Inv ({ m })) = ⟨ m ⟩ = Clo ( G ; m ) ,
which proves the reverse inclusion.
Aichinger, Mayr, and McKenzie showed that every finite algebra with a Maltsev term is finitely related [2]. We illustrate this with important examples below; they will be special cases of the following example.
Example 8.4. For n ≥ 3 n \ge3 n ≥ 3 , the dihedral group D n D_{n} D n is defined to be Aut ( C n ) \operatorname{Aut}(C_{n}) Aut ( C n ) . Let m : D n 3 → D n m\colon D_{n}^{3} \to D_{n} m : D n 3 → D n be defined by m ( x , y , z ) : = x y − 1 z m(x,y,z) := xy^{-1}z m ( x , y , z ) := x y − 1 z . Our goal in the following is to prove that Clo ( D n ; m ) \operatorname{Clo}(D_{n};m) Clo ( D n ; m ) is finitely related, i.e., that there is a structure D n \mathfrak{D}_{n} D n with domain D n D_{n} D n and finitely many relations such that Pol ( D n ) = Clo ( D n ) \operatorname{Pol}(\mathfrak{D}_{n}) = \operatorname{Clo}(D_{n}) Pol ( D n ) = Clo ( D n ) .
For this task, it will be useful to first describe D n D_n D n more abstractly, as a semidirect product of the abelian groups Z n \mathbb{Z}_n Z n and Z 2 \mathbb{Z}_2 Z 2 . The definition of the semi-direct product of two groups G and H depends on a fixed homomorphism ϕ \phi ϕ from H H H to Aut ( G ) \operatorname{Aut}(\mathbf{G}) Aut ( G ) . The semi-direct product G ⋊ ϕ H \mathbf{G} \mathbin{\rtimes_\phi} \mathbf{H} G ⋊ ϕ H is the group with elements { ( g , h ) ∣ g ∈ G , h ∈ H } \{(g,h) \mid g \in G, h \in H\} {( g , h ) ∣ g ∈ G , h ∈ H } and the group multiplication defined by
( g 1 , h 1 ) ⋅ ( g 2 , h 2 ) = ( g 1 ϕ ( h 1 ) ( g 2 ) , h 1 h 2 ) . (g_1,h_1)\cdot(g_2,h_2)=(g_1\phi(h_1)(g_2),h_1h_2). ( g 1 , h 1 ) ⋅ ( g 2 , h 2 ) = ( g 1 ϕ ( h 1 ) ( g 2 ) , h 1 h 2 ) .
In our case, let ϕ \phi ϕ be the homomorphism that maps 1 ∈ Z 2 1 \in\mathbb{Z}_2 1 ∈ Z 2 to the automorphism x ↦ x − 1 x \mapsto x^{-1} x ↦ x − 1 of Z n \mathbb{Z}_n Z n . The map ϕ \phi ϕ will also be called action of Z 2 \mathbb{Z}_2 Z 2 on Z n \mathbb{Z}_n Z n by inversion . Then D n D_n D n is isomorphic to Z n ⋊ ϕ Z 2 \mathbb{Z}_n \mathbin{\rtimes_\phi} \mathbb{Z}_2 Z n ⋊ ϕ Z 2 . This can be seen as follows. The group D n D_n D n has a distinguished cyclic subgroup R R R of order n n n , the rotations of C n C_n C n , which is isomorphic to Z n \mathbb{Z}_n Z n . It also has subgroups of size 2 2 2 that are generated by reflections of C n C_n C n . The idea of the action by inversion is that, informally speaking, the action of a reflection on a rotation changes the direction of the rotation. △
For the heap operation m m m from Example 8.4, it is surprisingly interesting to find relational structures B \mathbb{B} B with finitely many relations from Inv ( { m } ) \operatorname{Inv}(\{m\}) Inv ({ m }) such that Pol ( B ) = ⟨ { m } ⟩ \operatorname{Pol}(\mathbb{B})=\langle\{m\}\rangle Pol ( B ) = ⟨{ m }⟩ . We will do this for two special cases: the first is the case that 4 ∤ n 4\nmid n 4 ∤ n (Example 8.7), and the second is n = 4 n=4 n = 4 (Example 8.8).
Let S 3 ( G ) : = Sub ( G 3 ) \mathcal{S}_3(G):=\operatorname{Sub}(G^3) S 3 ( G ) := Sub ( G 3 ) be the family of all subgroups of G 3 G^3 G 3 , and let C 3 ( G ) : = { K a ∣ K ≤ G 3 , a ∈ G 3 } \mathcal{C}_3(G):=\{Ka\mid K\leq G^3,\ a\in G^3\} C 3 ( G ) := { K a ∣ K ≤ G 3 , a ∈ G 3 } be the family of all right cosets of subgroups of G 3 G^3 G 3 . Here multiplication in G 3 G^3 G 3 is coordinatewise. Since G G G is finite, C 3 ( G ) \mathcal{C}_3(G) C 3 ( G ) is a finite family of ternary relations. The following result from [77, Theorem 2.1] will be used as a black box.
Theorem 8.5 (Kearnes–Szendrei). Let G G G be a finite group whose Sylow subgroups are abelian. A finitary operation f : G m → G f:G^m\to G f : G m → G is a group term operation if and only if it preserves every subgroup of G 3 G^3 G 3 . Equivalently,
Clo ( G ) = Pol ( S 3 ( G ) ) , \operatorname{Clo}(G)=\operatorname{Pol}(\mathcal{S}_3(G)), Clo ( G ) = Pol ( S 3 ( G )) , where Clo ( G ) \operatorname{Clo}(G) Clo ( G ) is the ordinary group term clone of G G G .
The passage from this group result to heaps uses the following elementary observation.
Proposition 8.6 (Torsorization). Let G G G be a finite group such that Clo ( G ) = Pol ( S 3 ( G ) ) \operatorname{Clo}(G)=\operatorname{Pol}(\mathcal{S}_3(G)) Clo ( G ) = Pol ( S 3 ( G )) . Then Clo ( { m } ) = Pol ( C 3 ( G ) ) \operatorname{Clo}(\{m\})=\operatorname{Pol}(\mathcal{C}_3(G)) Clo ({ m }) = Pol ( C 3 ( G )) .
Proof. We have already seen in Proposition 8.2 that every heap term preserves every coset of every subgroup of every finite power of G G G . Consequently, Clo ( { m } ) ⊆ Pol ( C 3 ( G ) ) \operatorname{Clo}(\{m\})\subseteq\operatorname{Pol}(\mathcal{C}_3(G)) Clo ({ m }) ⊆ Pol ( C 3 ( G )) .
For the converse, let f : G m → G f:G^m\to G f : G m → G preserve every relation in C 3 ( G ) \mathcal{C}_3(G) C 3 ( G ) . Since every subgroup of G 3 G^3 G 3 is also a coset, f f f preserves every member of S 3 ( G ) \mathcal{S}_3(G) S 3 ( G ) . By the hypothesis of the proposition, f f f is therefore a group term operation.
We next show that f f f is right-equivariant: An m m m -ary operation f : G m → G f:G^m\to G f : G m → G on a group G G G is right-equivariant if, for all x 1 , … , x m , a ∈ G x_1,\ldots,x_m,a\in G x 1 , … , x m , a ∈ G ,
f ( x 1 a , … , x m a ) = f ( x 1 , … , x m ) a . f(x_1a,\ldots,x_ma)=f(x_1,\ldots,x_m)a. f ( x 1 a , … , x m a ) = f ( x 1 , … , x m ) a .
Thus f f f commutes with the simultaneous right translation of all its arguments. Equivalently, every right translation R a ( x ) = x a R_a(x)=xa R a ( x ) = x a is an automorphism of f f f . For a ∈ G a\in G a ∈ G , consider
E a : = { ( x , x a , 1 ) ∣ x ∈ G } ⊆ G 3 . E_a:=\{(x,xa,1)\mid x\in G\}\subseteq G^3. E a := {( x , x a , 1 ) ∣ x ∈ G } ⊆ G 3 .
The set E : = { ( x , x , 1 ) ∣ x ∈ G } E := \{(x,x,1) \mid x \in G\} E := {( x , x , 1 ) ∣ x ∈ G } is a subgroup of G 3 G^3 G 3 , and E a = E ( 1 , a , 1 ) E_a = E(1,a,1) E a = E ( 1 , a , 1 ) . Thus, E a ∈ C 3 ( G ) E_a \in\mathcal{C}_3(G) E a ∈ C 3 ( G ) .
For arbitrary x 1 , … , x m ∈ G x_1,\ldots,x_m \in G x 1 , … , x m ∈ G , all the tuples
( x i , x i a , 1 ) , 1 ≤ i ≤ m , (x_i,x_i a,1), \qquad1 \leq i \leq m, ( x i , x i a , 1 ) , 1 ≤ i ≤ m ,
belong to E a E_a E a . Since f f f preserves E a E_a E a , coordinatewise application of f f f gives
( f ( x 1 , … , x m ) , f ( x 1 a , … , x m a ) , f ( 1 , … , 1 ) ) ∈ E a . (f(x_1,\ldots,x_m),f(x_1a,\ldots,x_ma),f(1,\ldots,1)) \in E_a. ( f ( x 1 , … , x m ) , f ( x 1 a , … , x m a ) , f ( 1 , … , 1 )) ∈ E a .
By the definition of E a E_a E a , this implies
f ( 1 , … , 1 ) = 1 , (25) f(1,\ldots,1)=1, \tag*{(25)} f ( 1 , … , 1 ) = 1 , (25)
f ( x 1 a , … , x m a ) = f ( x 1 , … , x m ) a . (26) f(x_1a,\ldots,x_ma)=f(x_1,\ldots,x_m)a. \tag*{(26)} f ( x 1 a , … , x m a ) = f ( x 1 , … , x m ) a . (26)
Hence, f f f is right-equivariant.
It remains to show that every right-equivariant group term operation is a heap term operation. Let w ( x 1 , … , x m ) w(x_1,\ldots,x_m) w ( x 1 , … , x m ) be a group word representing f f f . Introduce one additional variable y y y and interpret the word w w w in the retract group with identity y y y . Its multiplication and inverse are
u ∗ y v : = m ( u , y , v ) = u y − 1 v , u y − 1 : = m ( y , u , y ) = y u − 1 y . u *_{y} v := m(u,y,v)=uy^{-1}v, \qquad u^{-1}_{y}:=m(y,u,y)=yu^{-1}y. u ∗ y v := m ( u , y , v ) = u y − 1 v , u y − 1 := m ( y , u , y ) = y u − 1 y .
Replacing multiplication, inverse, and the identity in w w w by these retract terms produces a heap term
w ~ ( x 1 , … , x m , y ) . \widetilde{w}(x_1,\ldots,x_m,y). w ( x 1 , … , x m , y ) .
The map
ρ y : ( G , ∗ y ) → ( G , ⋅ ) , ρ y ( u ) : = u y − 1 , \rho_y:(G,*_y)\to(G,\cdot), \qquad\rho_y(u):=uy^{-1}, ρ y : ( G , ∗ y ) → ( G , ⋅ ) , ρ y ( u ) := u y − 1 ,
is a group isomorphism. It follows that
w ~ ( x 1 , … , x m , y ) = f ( x 1 y − 1 , … , x m y − 1 ) y . \widetilde{w}(x_1,\ldots,x_m,y)=f(x_1y^{-1},\ldots,x_my^{-1})y. w ( x 1 , … , x m , y ) = f ( x 1 y − 1 , … , x m y − 1 ) y .
Applying (24) with a = y − 1 a=y^{-1} a = y − 1 gives
f ( x 1 y − 1 , … , x m y − 1 ) = f ( x 1 , … , x m ) y − 1 . f(x_1y^{-1},\ldots,x_my^{-1})=f(x_1,\ldots,x_m)y^{-1}. f ( x 1 y − 1 , … , x m y − 1 ) = f ( x 1 , … , x m ) y − 1 .
Therefore
w ~ ( x 1 , … , x m , y ) = f ( x 1 , … , x m ) . \widetilde{w}(x_1,\ldots,x_m,y)=f(x_1,\ldots,x_m). w ( x 1 , … , x m , y ) = f ( x 1 , … , x m ) .
The right-hand side is independent of y y y . Substituting, for example, y = x 1 y=x_1 y = x 1 shows that f f f is represented by a term in the single operation m m m . Hence f ∈ Clo ( { m } ) f \in\operatorname{Clo}(\{m\}) f ∈ Clo ({ m }) . This proves the reverse inclusion. □
We now apply the proposition to dihedral groups.
Example 8.7 (Dihedral heaps). Let m m m be the heap operation of D n D_n D n . If 4 ∤ n 4 \nmid n 4 ∤ n , then
Clo ( D n ; m ) = Pol ( C 3 ( D n ) ) . \operatorname{Clo}(D_n;m)=\operatorname{Pol}(\mathcal{C}_3(D_n)). Clo ( D n ; m ) = Pol ( C 3 ( D n )) . Thus, the heap clone of D n D_n D n is described by the finite family of cosets of subgroups of D n 3 D_n^3 D n 3 . Indeed, put G : = D n G:=D_n G := D n and let A : = ⟨ r ⟩ A:=\langle r\rangle A := ⟨ r ⟩ . Then A A A is a cyclic normal subgroup of order n n n , and
G / A ≅ C 2 G/A \cong C_2 G / A ≅ C 2 . Every Sylow subgroup of odd order is contained in A A A , because G / A G/A G / A has order 2. Hence every odd Sylow subgroup of G G G is cyclic and therefore abelian.
It remains to consider the Sylow 2-subgroups. Write n = 2 e m n = 2^e m n = 2 e m for odd m m m . Then P : = ⟨ r m , s ⟩ P := \langle r^m, s\rangle P := ⟨ r m , s ⟩ is a Sylow 2-subgroup of G G G . The element r m r^m r m has order 2 e 2^e 2 e , so ∣ P ∣ = 2 e + 1 |P| = 2^{e+1} ∣ P ∣ = 2 e + 1 . If e = 0 e = 0 e = 0 , then P = ⟨ s ⟩ ≅ C 2 P = \langle s\rangle\cong C_2 P = ⟨ s ⟩ ≅ C 2 . If e = 1 e = 1 e = 1 , then r m r^m r m has order 2, and inversion acts trivially on ⟨ r m ⟩ \langle r^m\rangle ⟨ r m ⟩ . Hence P ≅ C 2 × C 2 P \cong C_2 \times C_2 P ≅ C 2 × C 2 . In both cases P P P is abelian.
If e ≥ 2 e \ge2 e ≥ 2 , then r m r^m r m has order at least 4, and
s ( r m ) s = ( r m ) − 1 ≠ r m . s(r^m)s = (r^m)^{-1} \ne r^m. s ( r m ) s = ( r m ) − 1 = r m .
Thus P P P is nonabelian. We have therefore proved that the Sylow subgroups of D n D_n D n are all abelian precisely when e ≤ 1 e \le1 e ≤ 1 , or, equivalently, when 4 ∤ n 4 \nmid n 4 ∤ n .
Assume now that 4 ∤ n 4 \nmid n 4 ∤ n . The Kearnes–Szendrei theorem, Theorem 8.5 , gives
Clo ( G ) = Pol ( S 3 ( G ) ) . \operatorname{Clo}(G) = \operatorname{Pol}(\mathcal{S}_3(G)). Clo ( G ) = Pol ( S 3 ( G )) .
Proposition 8.6 then yields
Clo ( { m } ) = Pol ( C 3 ( G ) ) . \operatorname{Clo}(\{m\}) = \operatorname{Pol}(\mathcal{C}_3(G)). Clo ({ m }) = Pol ( C 3 ( G )) .
Substituting G = D n G = D_n G = D n proves the claim. △
Example 8.8 (A relational description of the heap clone of D 4 D_4 D 4 ). The following is adapted from notes of Dima Zhuk. Let A : = F 2 3 A := \mathbb{F}_2^3 A := F 2 3 , and define a group operation on A A A by
( x 1 , x 2 , x 3 ) ∘ ( y 1 , y 2 , y 3 ) : = ( x 1 + y 1 , x 2 + y 2 , x 3 + y 3 + x 1 y 2 ) . (27) (x_1,x_2,x_3) \circ(y_1,y_2,y_3) := (x_1+y_1, x_2+y_2, x_3+y_3+x_1y_2). \tag*{(27)} ( x 1 , x 2 , x 3 ) ∘ ( y 1 , y 2 , y 3 ) := ( x 1 + y 1 , x 2 + y 2 , x 3 + y 3 + x 1 y 2 ) . (27) All coordinates and all calculations in coordinates are over F 2 \mathbb{F}_2 F 2 . The resulting group is isomorphic to the dihedral group D 4 D_4 D 4 of order eight: its identity is 1 : = ( 0 , 0 , 0 ) 1 := (0,0,0) 1 := ( 0 , 0 , 0 ) , and
( x 1 , x 2 , x 3 ) − 1 = ( x 1 , x 2 , x 3 + x 1 x 2 ) . (x_1,x_2,x_3)^{-1} = (x_1,x_2,x_3+x_1x_2). ( x 1 , x 2 , x 3 ) − 1 = ( x 1 , x 2 , x 3 + x 1 x 2 ) . Define
σ ( x 1 , x 2 , x 3 ) : = ( x 2 , x 1 , x 3 + x 1 x 2 ) . \sigma(x_1,x_2,x_3) := (x_2,x_1,x_3+x_1x_2). σ ( x 1 , x 2 , x 3 ) := ( x 2 , x 1 , x 3 + x 1 x 2 ) . This is an automorphism of A : = ( A ; ∘ , ⋅ − 1 , 1 ) A := (A;\circ,\cdot^{-1},1) A := ( A ; ∘ , ⋅ − 1 , 1 ) . We use the following relations. First, define three binary relations:
E : = { ( a , b ) ∈ A 2 ∣ a 1 = b 2 } , E := \{(a,b) \in A^2 \mid a_1=b_2\}, E := {( a , b ) ∈ A 2 ∣ a 1 = b 2 } , P : = { ( a , b ) ∈ A 2 ∣ a 1 = b 1 = 0 , a 2 = b 3 } , P := \{(a,b) \in A^2 \mid a_1=b_1=0,\ a_2=b_3\}, P := {( a , b ) ∈ A 2 ∣ a 1 = b 1 = 0 , a 2 = b 3 } , R : = { ( a , b ) ∈ A 2 ∣ b = σ ( a ) } = { ( a , b ) ∈ A 2 ∣ a 1 = b 2 , a 2 = b 1 , a 3 + b 3 = a 1 b 1 } . R := \{(a,b) \in A^2 \mid b=\sigma(a)\} = \{(a,b) \in A^2 \mid a_1=b_2,\ a_2=b_1,\ a_3+b_3=a_1b_1\}. R := {( a , b ) ∈ A 2 ∣ b = σ ( a )} = {( a , b ) ∈ A 2 ∣ a 1 = b 2 , a 2 = b 1 , a 3 + b 3 = a 1 b 1 } . Let Z : = { ( 0 , 0 , t ) : t ∈ F 2 } : = { a ∈ A ∣ a ∘ b = b ∘ a for all b ∈ A } Z := \{(0,0,t) : t \in\mathbb{F}_2\} := \{a \in A \mid a \circ b = b \circ a \text{ for all } b \in A\} Z := {( 0 , 0 , t ) : t ∈ F 2 } := { a ∈ A ∣ a ∘ b = b ∘ a for all b ∈ A } be the center of A A A , and define the ternary relation
T : = { ( x , x ∘ z , z ) ∈ A 3 ∣ x ∈ A , z ∈ Z } T := \{(x,x \circ z,z) \in A^3 \mid x \in A,\ z \in Z\} T := {( x , x ∘ z , z ) ∈ A 3 ∣ x ∈ A , z ∈ Z } = { ( x , y , z ) ∈ A 3 ∣ z 1 = z 2 = 0 , y 1 = x 1 , y 2 = x 2 , y 3 = x 3 + z 3 } . = \{(x,y,z) \in A^3 \mid z_1=z_2=0,\ y_1=x_1,\ y_2=x_2,\ y_3=x_3+z_3\}. = {( x , y , z ) ∈ A 3 ∣ z 1 = z 2 = 0 , y 1 = x 1 , y 2 = x 2 , y 3 = x 3 + z 3 } . Define the quaternary relation
L : = { ( a , b , c , d ) ∈ A 4 | a 1 = b 1 = c 1 = d 1 , a 2 + b 2 + c 2 + d 2 = 0 , a 3 + b 3 + c 3 + d 3 = 0 } . L := \left\{(a,b,c,d) \in A^4 \ \middle|\
\begin{aligned}
&a_1=b_1=c_1=d_1,\\
&a_2+b_2+c_2+d_2=0,\\
&a_3+b_3+c_3+d_3=0
\end{aligned}
\right\}. L := ⎩ ⎨ ⎧ ( a , b , c , d ) ∈ A 4 a 1 = b 1 = c 1 = d 1 , a 2 + b 2 + c 2 + d 2 = 0 , a 3 + b 3 + c 3 + d 3 = 0 ⎭ ⎬ ⎫ .
Finally, define the unary relation
C : = { ( 0 , 1 , 0 ) , ( 1 , 1 , 1 ) } . C := \{(0,1,0),(1,1,1)\}. C := {( 0 , 1 , 0 ) , ( 1 , 1 , 1 )} .
We claim that
Pol ( A ; E , P , R , T , L , C ) = Clo ( m ) (28) \operatorname{Pol}(A;E,P,R,T,L,C)=\operatorname{Clo}(m) \tag*{(28)} Pol ( A ; E , P , R , T , L , C ) = Clo ( m ) (28)
where m m m is the heap operation for D 4 D_4 D 4 . We first prove
Pol ( A ; E , P , R , T , L ) = Clo ( ∘ ) . (29) \operatorname{Pol}(A;E,P,R,T,L)=\operatorname{Clo}(\circ). \tag*{(29)} Pol ( A ; E , P , R , T , L ) = Clo ( ∘ ) . (29)
Put Γ 0 : = { E , P , R , T , L } \Gamma_0 := \{E,P,R,T,L\} Γ 0 := { E , P , R , T , L } .
Each relation in Γ 0 \Gamma_0 Γ 0 is a subgroup of the corresponding direct power of ( A ; ∘ ) (A;\circ) ( A ; ∘ ) . For R R R , this follows from the fact that it is the graph of the automorphism σ \sigma σ . For T T T , it follows from the centrality of Z Z Z . The remaining cases follow directly from their coordinate descriptions. Hence every group-word operation preserves all relations in Γ 0 \Gamma_0 Γ 0 , and therefore
Clo ( ∘ ) ⊆ Pol ( Γ 0 ) . \operatorname{Clo}(\circ)\subseteq\operatorname{Pol}(\Gamma_0). Clo ( ∘ ) ⊆ Pol ( Γ 0 ) .
For the converse, let f ∈ Pol ( Γ 0 ) f\in\operatorname{Pol}(\Gamma_0) f ∈ Pol ( Γ 0 ) be n n n -ary. Write
x ( i ) = ( u i , v i , w i ) x^{(i)}=(u_i,v_i,w_i) x ( i ) = ( u i , v i , w i )
and put
u = ( u 1 , … , u n ) , v = ( v 1 , … , v n ) , w = ( w 1 , … , w n ) . u=(u_1,\ldots,u_n),\qquad v=(v_1,\ldots,v_n),\qquad w=(w_1,\ldots,w_n). u = ( u 1 , … , u n ) , v = ( v 1 , … , v n ) , w = ( w 1 , … , w n ) .
Preservation of E E E implies that there is a single function g : F 2 n → F 2 g:\mathbb{F}_2^n\to\mathbb{F}_2 g : F 2 n → F 2 such that
f 1 ( x ( 1 ) , … , x ( n ) ) = g ( u ) , f 2 ( x ( 1 ) , … , x ( n ) ) = g ( v ) . f_1(x^{(1)},\ldots,x^{(n)})=g(u),\qquad f_2(x^{(1)},\ldots,x^{(n)})=g(v). f 1 ( x ( 1 ) , … , x ( n ) ) = g ( u ) , f 2 ( x ( 1 ) , … , x ( n ) ) = g ( v ) .
Preservation of T T T implies that f f f is equivariant under coordinatewise multiplication by central elements. Moreover, the restriction of f f f to Z n Z^n Z n is a homomorphism from Z n Z^n Z n to Z Z Z . Consequently, there are α = ( α 1 , … , α n ) ∈ F 2 n \alpha=(\alpha_1,\ldots,\alpha_n)\in\mathbb{F}_2^n α = ( α 1 , … , α n ) ∈ F 2 n and a function
q : F 2 n × F 2 n → F 2 q:\mathbb{F}_2^n\times\mathbb{F}_2^n\to\mathbb{F}_2 q : F 2 n × F 2 n → F 2
such that
f ( x ( 1 ) , … , x ( n ) ) = ( g ( u ) , g ( v ) , ∑ i = 1 n α i w i + q ( u , v ) ) . (30) f(x^{(1)},\ldots,x^{(n)})=\left(g(u),g(v),\sum_{i=1}^{n}\alpha_iw_i+q(u,v)\right). \tag*{(30)} f ( x ( 1 ) , … , x ( n ) ) = ( g ( u ) , g ( v ) , i = 1 ∑ n α i w i + q ( u , v ) ) . (30)
Since R R R is the graph of σ \sigma σ , preservation of R R R is equivalent to
f ( σ ( x ( 1 ) ) , … , σ ( x ( n ) ) ) = σ ( f ( x ( 1 ) , … , x ( n ) ) ) . f\bigl(\sigma(x^{(1)}),\ldots,\sigma(x^{(n)})\bigr)=\sigma\bigl(f(x^{(1)},\ldots,x^{(n)})\bigr). f ( σ ( x ( 1 ) ) , … , σ ( x ( n ) ) ) = σ ( f ( x ( 1 ) , … , x ( n ) ) ) .
Comparison of the third components in this identity gives
q ( u , v ) + q ( v , u ) = g ( u ) g ( v ) + ∑ i = 1 n α i u i v i . (31) q(u,v)+q(v,u)=g(u)g(v)+\sum_{i=1}^{n}\alpha_iu_iv_i. \tag*{(31)} q ( u , v ) + q ( v , u ) = g ( u ) g ( v ) + i = 1 ∑ n α i u i v i . (31)
Setting v = u v=u v = u in (29) yields
g ( u ) = ∑ i = 1 n α i u i . (32) g(u)=\sum_{i=1}^{n}\alpha_iu_i. \tag*{(32)} g ( u ) = i = 1 ∑ n α i u i . (32)
Preservation of P P P , together with (32) , implies q ( 0 , v ) = 0 q(0,v)=0 q ( 0 , v ) = 0 . Taking v = 0 v=0 v = 0 in (31) this gives
q ( u , 0 ) = 0. (33) q(u,0)=0. \tag*{(33)} q ( u , 0 ) = 0. (33)
To use L L L , fix u , v , v ′ ∈ F 2 n u,v,v'\in\mathbb{F}_2^n u , v , v ′ ∈ F 2 n and apply f f f to quadruples whose first-coordinate vectors are all u u u , whose second-coordinate vectors are
v , v ′ , v + v ′ , 0 , v,\quad v',\quad v+v',\quad0, v , v ′ , v + v ′ , 0 ,
and whose third-coordinate vectors are all zero. Preservation of L L L and (33) give
q ( u , v + v ′ ) = q ( u , v ) + q ( u , v ′ ) . q(u,v+v')=q(u,v)+q(u,v'). q ( u , v + v ′ ) = q ( u , v ) + q ( u , v ′ ) .
Thus q q q is linear in its second argument. Equation (31) then implies that q q q is linear in its first argument as well. Therefore q q q is bilinear, so there is a matrix β = ( β i j ) ∈ F 2 n × n \beta=(\beta_{ij})\in\mathbb{F}_2^{n\times n} β = ( β ij ) ∈ F 2 n × n such that
q ( u , v ) = ∑ i , j = 1 n β i j u i v j . (34) q(u,v)=\sum_{i,j=1}^{n}\beta_{ij}u_i v_j. \tag*{(34)} q ( u , v ) = i , j = 1 ∑ n β ij u i v j . (34)
Comparing coefficients in (31) gives
β i j + β j i = α i α j for all distinct i , j . (35) \beta_{ij}+\beta_{ji}=\alpha_i\alpha_j\qquad\text{for all distinct }i,j. \tag*{(35)} β ij + β j i = α i α j for all distinct i , j . (35)
It follows from (30) , (32) , and (34) that every operation in Pol ( Γ 0 ) \operatorname{Pol}(\Gamma_0) Pol ( Γ 0 ) has the form
f ( x ( 1 ) , … , x ( n ) ) = ( ∑ i α i u i , ∑ i α i v i , ∑ i α i w i + ∑ i , j β i j u i v j ) , (36) f(x^{(1)},\ldots,x^{(n)})=\left(\sum_i\alpha_i u_i,\sum_i\alpha_i v_i,\sum_i\alpha_i w_i+\sum_{i,j}\beta_{ij}u_i v_j\right), \tag*{(36)} f ( x ( 1 ) , … , x ( n ) ) = ( i ∑ α i u i , i ∑ α i v i , i ∑ α i w i + i , j ∑ β ij u i v j ) , (36)
where (35) holds.
Conversely, every operation of the form (36) satisfying (35) is a group-word operation. Indeed, put e i : = α i + 2 β i i ( m o d 4 ) e_i:=\alpha_i+2\beta_{ii}\pmod4 e i := α i + 2 β ii ( mod 4 ) and, for i < j i<j i < j , put c i j : = β j i c_{ij}:=\beta_{ji} c ij := β j i . With the convention
[ x , y ] : = x − 1 y − 1 x y , [x,y]:=x^{-1}y^{-1}xy, [ x , y ] := x − 1 y − 1 x y ,
consider the word
x 1 e 1 ∘ ⋯ ∘ x n e n ∘ ∏ i < j [ x i , x j ] c i j . (37) x_1^{e_1}\circ\cdots\circ x_n^{e_n}\circ\prod_{i<j}[x_i,x_j]^{c_{ij}}. \tag*{(37)} x 1 e 1 ∘ ⋯ ∘ x n e n ∘ i < j ∏ [ x i , x j ] c ij . (37)
The commutators are central, so the order of the final product is irrelevant. Moreover,
[ x ( i ) , x ( j ) ] = ( 0 , 0 , u i v j + u j v i ) , [x^{(i)},x^{(j)}]=(0,0,u_i v_j+u_j v_i), [ x ( i ) , x ( j ) ] = ( 0 , 0 , u i v j + u j v i ) ,
and (35) gives precisely the required off-diagonal coefficients.
Since every element of D 4 D_4 D 4 has fourth power equal to the identity, inverses and the constant identity operation are expressible using ∘ \circ ∘ . Thus (37) belongs to Clo ( ∘ ) \operatorname{Clo}(\circ) Clo ( ∘ ) . This proves (29) .
It remains to determine which operations in (36) preserve C C C . Every element of C C C has the form ( t , 1 , t ) (t,1,t) ( t , 1 , t ) for t ∈ F 2 t\in\mathbb{F}_2 t ∈ F 2 . For inputs x ( i ) = ( u i , 1 , u i ) ∈ C x^{(i)}=(u_i,1,u_i)\in C x ( i ) = ( u i , 1 , u i ) ∈ C the value of f f f is
( ∑ i α i u i , ∑ i α i , ∑ i α i u i + ∑ i ( ∑ j β i j ) u i ) . \left(\sum_i\alpha_i u_i,\sum_i\alpha_i,\sum_i\alpha_i u_i+\sum_i\left(\sum_j\beta_{ij}\right)u_i\right). ( i ∑ α i u i , i ∑ α i , i ∑ α i u i + i ∑ ( j ∑ β ij ) u i ) .
This belongs to C C C for every u ∈ F 2 n u \in\mathbb{F}_2^n u ∈ F 2 n if and only if
∑ i = 1 n α i = 1 (38) \sum_{i=1}^{n} \alpha_i = 1 \tag*{(38)} i = 1 ∑ n α i = 1 (38)
∑ j = 1 n β i j = 0 for every i ∈ { 1 , … , n } . (39) \sum_{j=1}^{n} \beta_{ij} = 0 \qquad\text{for every } i \in\{1,\ldots,n\}. \tag*{(39)} j = 1 ∑ n β ij = 0 for every i ∈ { 1 , … , n } . (39)
We claim that (33), (36), and (37) characterize exactly the heap-term operations. First observe that H : = { ( 0 , 0 , 0 ) , ( 1 , 0 , 0 ) } H := \{(0,0,0),(1,0,0)\} H := {( 0 , 0 , 0 ) , ( 1 , 0 , 0 )} is a subgroup of ( A , ∘ ) (A,\circ) ( A , ∘ ) and that C = H ∘ ( 0 , 1 , 0 ) C = H \circ(0,1,0) C = H ∘ ( 0 , 1 , 0 ) . Thus, C C C is a coset of a subgroup and hence a subheap. It follows that every heap-term operation preserves C C C . Since the relations in Γ 0 \Gamma_0 Γ 0 are subgroups and therefore also subheaps, we obtain
Clo ( m ) ⊆ Pol ( Γ 0 ∪ { C } ) . (40) \operatorname{Clo}(m) \subseteq\operatorname{Pol}(\Gamma_0 \cup\{C\}). \tag*{(40)} Clo ( m ) ⊆ Pol ( Γ 0 ∪ { C }) . (40)
For the reverse inclusion, we use the following general fact: in any group, the subheap generated by a 1 , … , a n a_1,\ldots,a_n a 1 , … , a n is
⟨ a 1 a n − 1 , … , a n − 1 a n − 1 ⟩ a n . (41) \left\langle a_1a_n^{-1},\ldots,a_{n-1}a_n^{-1}\right\rangle a_n. \tag*{(41)} ⟨ a 1 a n − 1 , … , a n − 1 a n − 1 ⟩ a n . (41)
Apply (39) in the group of n n n -ary group-word operations under pointwise multiplication, taking a i a_i a i to be the i i i -th projection.
Let n ≥ 2 n \ge2 n ≥ 2 , and suppose that f f f satisfies (33), (36), and (37). Put y i : = x i ∘ x n − 1 y_i := x_i \circ x_n^{-1} y i := x i ∘ x n − 1 for 1 ≤ i < n 1 \le i < n 1 ≤ i < n . Choose a group word s s s in y 1 , … , y n − 1 y_1,\ldots,y_{n-1} y 1 , … , y n − 1 whose parameters are α 1 , … , α n − 1 \alpha_1,\ldots,\alpha_{n-1} α 1 , … , α n − 1 and ( β i j ) i , j < n (\beta_{ij})_{i,j<n} ( β ij ) i , j < n . Such a word exists by the group-word normal form proved above. Consider
s ( y 1 , … , y n − 1 ) ∘ x n . (42) s(y_1,\ldots,y_{n-1}) \circ x_n. \tag*{(42)} s ( y 1 , … , y n − 1 ) ∘ x n . (42)
Put U : = u n U := u_n U := u n , V : = v n V := v_n V := v n , and W : = w n W := w_n W := w n . Since
x n − 1 = ( U , V , W + U V ) , x_n^{-1} = (U,V,W+UV), x n − 1 = ( U , V , W + U V ) ,
we have, for every i < n i<n i < n ,
y i = x i ∘ x n − 1 = ( u i + U , v i + V , w i + W + U V + u i V ) = ( u ~ i , v ~ i , w ~ i ) , y_i = x_i \circ x_n^{-1} = (u_i+U,v_i+V,w_i+W+UV+u_iV)
= (\widetilde{u}_i,\widetilde{v}_i,\widetilde{w}_i), y i = x i ∘ x n − 1 = ( u i + U , v i + V , w i + W + U V + u i V ) = ( u i , v i , w i ) ,
where
u ~ i : = u i + U , v ~ i : = v i + V , w ~ i : = w i + W + u ~ i V . \widetilde{u}_i := u_i+U,\qquad\widetilde{v}_i := v_i+V,\qquad\widetilde{w}_i := w_i+W+\widetilde{u}_iV. u i := u i + U , v i := v i + V , w i := w i + W + u i V .
Let
A : = ∑ i < n α i u ~ i , B : = ∑ i < n α i v ~ i . A := \sum_{i<n} \alpha_i\widetilde{u}_i,\qquad B := \sum_{i<n} \alpha_i\widetilde{v}_i. A := i < n ∑ α i u i , B := i < n ∑ α i v i .
By the choice of s s s and the group-word normal form,
s ( y 1 , … , y n − 1 ) = ( A , B , ∑ i < n α i w ~ i + ∑ i , j < n β i j u ~ i v ~ j ) . s(y_1,\ldots,y_{n-1}) =
\left(A,B,\sum_{i<n}\alpha_i\widetilde{w}_i+\sum_{i,j<n}\beta_{ij}\widetilde{u}_i\widetilde{v}_j\right). s ( y 1 , … , y n − 1 ) = ( A , B , i < n ∑ α i w i + i , j < n ∑ β ij u i v j ) .
Using the group operation from (25), the third coordinate of
s ( y 1 , … , y n − 1 ) ∘ x n s(y_1,\ldots,y_{n-1}) \circ x_n s ( y 1 , … , y n − 1 ) ∘ x n
is therefore
∑ i < n α i w ~ i + ∑ i , j < n β i j u ~ i v ~ j + W + A V = ∑ i < n α i ( w i + W + u ~ i V ) + ∑ i , j < n β i j u ~ i v ~ j + W + A V = ∑ i < n α i w i + ( 1 + ∑ i < n α i ) W + ∑ i , j < n β i j ( u i + U ) ( v j + V ) . \sum_{i<n}\alpha_i\widetilde{w}_i+\sum_{i,j<n}\beta_{ij}\widetilde{u}_i\widetilde{v}_j+W+AV
=
\sum_{i<n}\alpha_i(w_i+W+\widetilde{u}_iV)+\sum_{i,j<n}\beta_{ij}\widetilde{u}_i\widetilde{v}_j+W+AV
=
\sum_{i<n}\alpha_iw_i+\left(1+\sum_{i<n}\alpha_i\right)W+\sum_{i,j<n}\beta_{ij}(u_i+U)(v_j+V). i < n ∑ α i w i + i , j < n ∑ β ij u i v j + W + A V = i < n ∑ α i ( w i + W + u i V ) + i , j < n ∑ β ij u i v j + W + A V = i < n ∑ α i w i + ( 1 + i < n ∑ α i ) W + i , j < n ∑ β ij ( u i + U ) ( v j + V ) .
Indeed, the two occurrences of
A V = ∑ i < n α i u ~ i V AV=\sum_{i<n}\alpha_i\widetilde{u}_iV A V = i < n ∑ α i u i V
cancel over F 2 \mathbb{F}_2 F 2 . Similarly, the first two coordinates are
A + U = ∑ i < n α i u i + ( 1 + ∑ i < n α i ) U , A+U=\sum_{i<n}\alpha_iu_i+\left(1+\sum_{i<n}\alpha_i\right)U, A + U = i < n ∑ α i u i + ( 1 + i < n ∑ α i ) U ,
B + V = ∑ i < n α i v i + ( 1 + ∑ i < n α i ) V . B+V=\sum_{i<n}\alpha_iv_i+\left(1+\sum_{i<n}\alpha_i\right)V. B + V = i < n ∑ α i v i + ( 1 + i < n ∑ α i ) V .
Condition (36) gives
α n = 1 + ∑ i < n α i . \alpha_n=1+\sum_{i<n}\alpha_i. α n = 1 + i < n ∑ α i .
Consequently, all three linear parts of (40) agree with those of f f f . Its remaining quadratic part is
∑ i , j < n β i j ( u i + u n ) ( v j + v n ) . (43) \sum_{i,j<n}\beta_{ij}(u_i+u_n)(v_j+v_n). \tag*{(43)} i , j < n ∑ β ij ( u i + u n ) ( v j + v n ) . (43)
We now verify that this expression also has the required coefficients involving the final index. First, (33) and (36) imply that the column sums of β \beta β vanish whenever its row sums vanish. Indeed, for every k ∈ [ n ] k\in[n] k ∈ [ n ] ,
∑ j = 1 n β k j + ∑ i = 1 n β i k = ∑ j = 1 j ≠ k n ( β k j + β j k ) = α k ∑ j = 1 j ≠ k n α j = α k ( 1 + α k ) = 0. \sum_{j=1}^{n}\beta_{kj}+\sum_{i=1}^{n}\beta_{ik}
=
\sum_{\substack{j=1\\j\ne k}}^{n}(\beta_{kj}+\beta_{jk})
=
\alpha_k\sum_{\substack{j=1\\j\ne k}}^{n}\alpha_j
=
\alpha_k(1+\alpha_k)=0. j = 1 ∑ n β k j + i = 1 ∑ n β ik = j = 1 j = k ∑ n ( β k j + β j k ) = α k j = 1 j = k ∑ n α j = α k ( 1 + α k ) = 0.
Thus both
∑ j = 1 n β i j = 0 and ∑ i = 1 n β i j = 0. \sum_{j=1}^{n}\beta_{ij}=0
\qquad\text{and}\qquad
\sum_{i=1}^{n}\beta_{ij}=0. j = 1 ∑ n β ij = 0 and i = 1 ∑ n β ij = 0.
Expanding (41) gives
∑ i , j < n β i j u i v j + ∑ i < n ( ∑ j < n β i j ) u i v n + ∑ j < n ( ∑ i < n β i j ) u n v j + ( ∑ i , j < n β i j ) u n v n . \sum_{i,j<n}\beta_{ij}u_iv_j
+\sum_{i<n}\left(\sum_{j<n}\beta_{ij}\right)u_iv_n
+\sum_{j<n}\left(\sum_{i<n}\beta_{ij}\right)u_nv_j
+\left(\sum_{i,j<n}\beta_{ij}\right)u_nv_n. i , j < n ∑ β ij u i v j + i < n ∑ ( j < n ∑ β ij ) u i v n + j < n ∑ ( i < n ∑ β ij ) u n v j + ( i , j < n ∑ β ij ) u n v n .
The vanishing row and column sums give, for i , j < n i,j<n i , j < n ,
∑ j < n β i j = β i n , ∑ i < n β i j = β n j . \sum_{j<n}\beta_{ij}=\beta_{in},
\qquad
\sum_{i<n}\beta_{ij}=\beta_{nj}. j < n ∑ β ij = β in , i < n ∑ β ij = β nj .
They also give
∑ i , j < n β i j = ∑ i < n β i n = β n n , \sum_{i,j<n}\beta_{ij}=\sum_{i<n}\beta_{in}=\beta_{nn}, i , j < n ∑ β ij = i < n ∑ β in = β nn ,
where the final equality is the vanishing of the n n n -th column sum. Hence the expanded quadratic part is
∑ i , j < n β i j u i v j + ∑ i < n β i n u i v n + ∑ j < n β n j u n v j + β n n u n v n = ∑ i , j = 1 n β i j u i v j . \sum_{i,j<n}\beta_{ij}u_iv_j+\sum_{i<n}\beta_{in}u_iv_n+\sum_{j<n}\beta_{nj}u_nv_j+\beta_{nn}u_nv_n=\sum_{i,j=1}^{n}\beta_{ij}u_iv_j. i , j < n ∑ β ij u i v j + i < n ∑ β in u i v n + j < n ∑ β nj u n v j + β nn u n v n = i , j = 1 ∑ n β ij u i v j .
Thus (42) has exactly the normal form (36) of f f f , and therefore induces the operation f f f . By (41) , the operation in (42) is a heap term. The case n = 1 n=1 n = 1 is immediate, since (38) and (39) force f f f to be the identity operation. Therefore
Pol ( Γ 0 ∪ { C } ) ⊆ Clo ( m ) . (44) \operatorname{Pol}(\Gamma_0\cup\{C\})\subseteq\operatorname{Clo}(m). \tag*{(44)} Pol ( Γ 0 ∪ { C }) ⊆ Clo ( m ) . (44)
Combining (40) and (44) proves (28) . △
Exercise 158. Show that m m m is a heap if and only if there exists a group G G G such that m ( x , y , z ) = x y − 1 z m(x,y,z)=xy^{-1}z m ( x , y , z ) = x y − 1 z with respect to G G G .
Exercise 159. Show that a heap operation m m m is commutative , i.e., additionally satisfies m ( x , y , z ) ≈ m ( z , y , x ) m(x,y,z)\approx m(z,y,x) m ( x , y , z ) ≈ m ( z , y , x ) , if and only if there exists an abelian group G G G such that m ( x , y , z ) = x − y + z m(x,y,z)=x-y+z m ( x , y , z ) = x − y + z with respect to G G G .
Affine Maltsev Operations
If G G G is abelian, then the heap operation of G G G is called an affine Maltsev operation . Structures with an affine Maltsev polymorphism are also called affine Maltsev. Note that if the group G G G is ( Z p ; + , − , 0 ) (\mathbb{Z}_p; +,-,0) ( Z p ; + , − , 0 ) , for some prime number p p p , then the k k k -ary relations preserved by m m m are precisely the affine subspaces of ( Z p ) k (\mathbb{Z}_p)^k ( Z p ) k (Example 6.11). In this case one can use Gaussian elimination to solve CSP ( A ) \operatorname{CSP}(\mathfrak{A}) CSP ( A ) .
Theorem 8.9 (from [60]). Let G G G be an abelian group with at least two elements. For c ∈ G c\in G c ∈ G and k ∈ N k\in\mathbb{N} k ∈ N , define
R c k : = { ( x 1 , … , x k ) ∈ G k ∣ x 1 + ⋯ + x k = c } . R_c^k:=\{(x_1,\ldots,x_k)\in G^k\mid x_1+\cdots+x_k=c\}. R c k := {( x 1 , … , x k ) ∈ G k ∣ x 1 + ⋯ + x k = c } . For some a ∈ G ∖ { 0 } a\in G\setminus\{0\} a ∈ G ∖ { 0 } , let B \mathfrak{B} B be the structure ( G ; R 0 3 , R 0 2 , R a 3 ) (G;R_0^3,R_0^2,R_a^3) ( G ; R 0 3 , R 0 2 , R a 3 ) . Then for any k ∈ N k\in\mathbb{N} k ∈ N , the problem CSP ( B ) \operatorname{CSP}(\mathfrak{B}) CSP ( B ) cannot be solved by k k k -consistency.
Proof. We construct an unsatisfiable instance A \mathfrak{A} A of CSP ( B ) \operatorname{CSP}(\mathfrak{B}) CSP ( B ) as follows. In the proof of this theorem, we work with structures of large girth . The girth of a graph H H H is the length of the shortest cycle in H H H . It is known that there are finite graphs of arbitrarily large girth that are cubic , i.e., all vertices have degree three (much stronger results are known; see, e.g., [18]). Let ( V ; E ) (V;E) ( V ; E ) be a finite cubic graph of girth at least 4 k + 1 4k+1 4 k + 1 . Orient the edges E E E arbitrarily, so that ( V ; E ) (V;E) ( V ; E ) is an oriented graph.
The domain of A \mathfrak{A} A is { ( v , e ) ∈ V × E ∣ v ∈ e } \{(v,e)\in V\times E\mid v\in e\} {( v , e ) ∈ V × E ∣ v ∈ e } . For each v ∈ V v\in V v ∈ V we add ( ( v , e 1 ) , ( v , e 2 ) , ( v , e 3 ) ) ((v,e_1),(v,e_2),(v,e_3)) (( v , e 1 ) , ( v , e 2 ) , ( v , e 3 )) to ( R 0 3 ) A (R_0^3)^\mathfrak{A} ( R 0 3 ) A . For each e = ( v , w ) ∈ E e=(v,w)\in E e = ( v , w ) ∈ E we add ( ( v , e ) , ( w , e ) ) ((v,e),(w,e)) (( v , e ) , ( w , e )) to ( R 0 2 ) A (R_0^2)^\mathfrak{A} ( R 0 2 ) A . Finally, we move exactly
one of the tuples from ( R 0 3 ) A (R_0^3)^{\mathcal A} ( R 0 3 ) A to ( R a 3 ) A (R_a^3)^{\mathcal A} ( R a 3 ) A . Suppose for contradiction that s : A → G s:A\to G s : A → G is a solution for A \mathcal A A . Sum over all constraints. Grouping the resulting terms first by incidences and then by edges, the left-hand side is
∑ v ∈ V ∑ e ∈ E , v ∈ e s ( v , e ) + ∑ e = { u , v } ∈ E ( s ( u , e ) + s ( v , e ) ) = 2 ∑ e = { u , v } ∈ E ( s ( u , e ) + s ( v , e ) ) = 0. \sum_{v\in V}\sum_{e\in E,v\in e}s(v,e)+\sum_{e=\{u,v\}\in E}(s(u,e)+s(v,e))=2\sum_{e=\{u,v\}\in E}(s(u,e)+s(v,e))=0. v ∈ V ∑ e ∈ E , v ∈ e ∑ s ( v , e ) + e = { u , v } ∈ E ∑ ( s ( u , e ) + s ( v , e )) = 2 e = { u , v } ∈ E ∑ ( s ( u , e ) + s ( v , e )) = 0.
because s ( u , e ) + s ( v , e ) = 0 s(u,e)+s(v,e)=0 s ( u , e ) + s ( v , e ) = 0 for every edge e = { u , v } e=\{u,v\} e = { u , v } . On the right-hand side we obtain a 1 1 1 , since we have precisely one tuple in R a 3 R_a^3 R a 3 in A \mathcal A A . Hence, s s s cannot be a homomorphism. Using high girth, it can be shown that the k k k -consistency procedure does not derive ‘false’ on A \mathcal A A ; for the details of this last part, see Theorem 8.6.11 in [21]. □
Further Examples
We now present examples of Maltsev operations that do not come from groups in the way described above.
Example 8.10. On the domain { 0 , 1 , 2 } \{0,1,2\} { 0 , 1 , 2 } , let m m m be the minority defined by
m ( x , y , z ) = x whenever ∣ { x , y , z } ∣ = 3. m(x,y,z)=x\text{ whenever }|\{x,y,z\}|=3. m ( x , y , z ) = x whenever ∣ { x , y , z } ∣ = 3. Note that m m m preserves all unary relations, for every permutation α \alpha α of { 0 , 1 , 2 } \{0,1,2\} { 0 , 1 , 2 } the relation { ( x , y ) ∣ α ( x ) = y } \{(x,y)\mid\alpha(x)=y\} {( x , y ) ∣ α ( x ) = y } , and for i ∈ { 0 , 1 } i\in\{0,1\} i ∈ { 0 , 1 } and n ≥ 1 n\geq1 n ≥ 1 the relation
R n , i : = { ( x 1 , … , x n ) ∈ { 0 , 1 } n ∣ x 1 + x 2 + ⋯ + x n = i mod 2 } . R_{n,i}:=\{(x_1,\ldots,x_n)\in\{0,1\}^n\mid x_1+x_2+\cdots+x_n=i\mathbin{\operatorname{mod}}2\}. R n , i := {( x 1 , … , x n ) ∈ { 0 , 1 } n ∣ x 1 + x 2 + ⋯ + x n = i mod 2 } . This example will be revisited in Exercise 187, Example 13.14, Exercise 252, and Exercise 254. △
Example 8.11. On the domain { 0 , 1 , 2 } \{0,1,2\} { 0 , 1 , 2 } , let m m m be the minority operation defined by
m ( x , y , z ) : = 2 whenever ∣ { x , y , z } ∣ = 3. m(x,y,z):=2\text{ whenever }|\{x,y,z\}|=3. m ( x , y , z ) := 2 whenever ∣ { x , y , z } ∣ = 3. Let A \mathcal A A be the algebra ( { 0 , 1 , 2 } , m ) (\{0,1,2\},m) ({ 0 , 1 , 2 } , m ) . Note that m m m preserves all unary relations, the graph H H H of the endomorphism of A \mathcal A A which maps 0 , 1 0,1 0 , 1 to 1 1 1 and which maps 2 2 2 to 0 0 0 , and
L = { ( x , y , z ) ∣ x = y = z = 2 or x , y , z ∈ { 0 , 1 } and x + y + z = 0 mod 2 } . L=\{(x,y,z)\mid x=y=z=2\text{ or }x,y,z\in\{0,1\}\text{ and }x+y+z=0\mathbin{\operatorname{mod}}2\}. L = {( x , y , z ) ∣ x = y = z = 2 or x , y , z ∈ { 0 , 1 } and x + y + z = 0 mod 2 } . The following relations are primitively positively definable with these relations, and hence belong to Inv ( m ) \operatorname{Inv}(m) Inv ( m ) as well:
∃ z ( L ( x , y , z ) ∧ z ∈ { 1 , 2 } ) . \exists z\bigl(L(x,y,z)\land z\in\{1,2\}\bigr). ∃ z ( L ( x , y , z ) ∧ z ∈ { 1 , 2 } ) . The relation C : = { ( 2 , 0 ) , ( 0 , 2 ) , ( 2 , 1 ) , ( 1 , 2 ) } C:=\{(2,0),(0,2),(2,1),(1,2)\} C := {( 2 , 0 ) , ( 0 , 2 ) , ( 2 , 1 ) , ( 1 , 2 )} , has the primitive positive definition
∃ u , v ( H ( x , u ) ∧ T ( u , v ) ∧ H ( y , v ) ) . \exists u,v\bigl(H(x,u)\land T(u,v)\land H(y,v)\bigr). ∃ u , v ( H ( x , u ) ∧ T ( u , v ) ∧ H ( y , v ) ) . Indeed, if h h h denotes the endomorphism whose graph is H H H and τ = ( 01 ) \tau=(01) τ = ( 01 ) , then the displayed formula is equivalent to h ( y ) = τ ( h ( x ) ) h(y)=\tau(h(x)) h ( y ) = τ ( h ( x )) . Since h ( 0 ) = h ( 1 ) = 1 h(0)=h(1)=1 h ( 0 ) = h ( 1 ) = 1 and h ( 2 ) = 0 h(2)=0 h ( 2 ) = 0 , this gives precisely the displayed relation C C C .
The equivalence relation E E E with the equivalence classes { 2 } \{2\} { 2 } and { 0 , 1 } \{0,1\} { 0 , 1 } has the primitive positive definition ∃ z ( C ( x , z ) ∧ C ( z , y ) ) \exists z\,(C(x,z) \land C(z,y)) ∃ z ( C ( x , z ) ∧ C ( z , y )) .
L n = { ( 2 , … , 2 ) } ∪ { ( x 1 , … , x n ) ∈ { 0 , 1 } n ∣ x 1 + x 2 + ⋯ + x n = 0 m o d 2 } . L_n = \{(2,\ldots,2)\} \cup\{(x_1,\ldots,x_n) \in\{0,1\}^n \mid x_1+x_2+\cdots+x_n = 0 \mathop{\rm mod} 2\}. L n = {( 2 , … , 2 )} ∪ {( x 1 , … , x n ) ∈ { 0 , 1 } n ∣ x 1 + x 2 + ⋯ + x n = 0 mod 2 } .
See Exercise 161.
{ ( x 1 , … , x n ) ∈ { 0 , 1 , 2 } n ∣ an even number of the x i ’s is from { 0 , 1 } } . \{(x_1,\ldots,x_n) \in\{0,1,2\}^n \mid\text{an even number of the }x_i\text{'s is from }\{0,1\}\}. {( x 1 , … , x n ) ∈ { 0 , 1 , 2 } n ∣ an even number of the x i ’s is from { 0 , 1 }} .
A primitive positive definition is
∃ y 1 , … , y n ( L n ( y 1 , … , y n ) ∧ H ( x 1 , y 1 ) ∧ ⋯ ∧ H ( x n , y n ) ) . \exists y_1,\ldots,y_n\left(L_n(y_1,\ldots,y_n) \land H(x_1,y_1) \land\cdots\land H(x_n,y_n)\right). ∃ y 1 , … , y n ( L n ( y 1 , … , y n ) ∧ H ( x 1 , y 1 ) ∧ ⋯ ∧ H ( x n , y n ) ) .
This example will be revisited in Exercise 253. △
Remark 8.12. It is unclear whether Maltsev operations on finite sets can be classified completely. However, it is known that for every n ∈ N n \in\mathbb{N} n ∈ N there are only countably many clones on { 1 , … , n } \{1,\ldots,n\} { 1 , … , n } that contain a Maltsev operation [2].
Exercise 160. Check the claims made in Example 8.10.
Exercise 161. Prove the claim in Example 8.11 that L n L_n L n is primitively positively definable from the unary relations, H H H , and L L L .
Exercise 162. Let B \mathcal{B} B be the structure ( Z 3 2 ; R 1 , R 2 , R 3 ) (\mathbb{Z}_3^2;R_1,R_2,R_3) ( Z 3 2 ; R 1 , R 2 , R 3 ) where
R i : = { ( ( x i , x i , x i ) , ( x 1 , x 2 , x 3 ) ) ∣ x 1 + x 2 = x 3 } . R_i := \{((x_i,x_i,x_i),(x_1,x_2,x_3)) \mid x_1+x_2=x_3\}. R i := {(( x i , x i , x i ) , ( x 1 , x 2 , x 3 )) ∣ x 1 + x 2 = x 3 } .
Show that B \mathcal{B} B has a Maltsev polymorphism, but no majority polymorphism.
Exercise 163. Let A \mathcal{A} A be the structure ( { 0 , 1 , 2 } ; { 1 , 2 } , H , L ) (\{0,1,2\};\{1,2\},H,L) ({ 0 , 1 , 2 } ; { 1 , 2 } , H , L ) with the relations H H H and L L L as defined in Example 8.11, and let B \mathcal{B} B be its substructure with domain { 0 , 1 } \{0,1\} { 0 , 1 } . Show that B \mathcal{B} B has a primitive positive construction in A \mathcal{A} A (easy), and that A \mathcal{A} A has a primitive positive construction in B \mathcal{B} B (not so easy).
Exercise 164. Show that if a Maltsev operation m : D 3 → D m:D^3 \to D m : D 3 → D preserves the graph { ( x , y , z , u ) ∣ m ′ ( x , y , z ) = u } \{(x,y,z,u) \mid m'(x,y,z)=u\} {( x , y , z , u ) ∣ m ′ ( x , y , z ) = u } of a Maltsev operation m ′ : D 3 → D m':D^3 \to D m ′ : D 3 → D , then m = m ′ m=m' m = m ′ .
Compact Representations of Relations
Our presentation of the proof closely follows that of Bulatov and Dalmau [40].
Definition 8.13 (Forks and Representations). Let R ⊆ A n R \subseteq A^n R ⊆ A n be a relation.
A fork of R R R is a triple ( i , a , b ) (i,a,b) ( i , a , b ) such that there exist s , t ∈ R s,t \in R s , t ∈ R with ( s 1 , … , s i − 1 ) = ( t 1 , … , t i − 1 ) (s_1,\ldots,s_{i-1})=(t_1,\ldots,t_{i-1}) ( s 1 , … , s i − 1 ) = ( t 1 , … , t i − 1 ) , s i = a s_i=a s i = a , and t i = b t_i=b t i = b . We say that s s s and t t t witness ( i , a , b ) (i,a,b) ( i , a , b ) .
Clearly, every relation has a compact representation. Recall Exercise 120 for the relevance of the following lemma.
Lemma 8.14. Let A A A be a finite set and let m : A 3 → A m:A^3 \to A m : A 3 → A be a Maltsev operation. Let R ⊆ A k R \subseteq A^k R ⊆ A k be a relation preserved by m m m , and let R ′ R' R ′ be a representation of R R R . Then R = ⟨ R ′ ⟩ m R = \langle R' \rangle_m R = ⟨ R ′ ⟩ m .
Proof. We show by induction on i ∈ { 1 , … , k } i \in\{1,\ldots,k\} i ∈ { 1 , … , k } that π 1 , … , i ( ⟨ R ′ ⟩ m ) = π 1 , … , i ( R ) \pi_{1,\ldots,i}(\langle R' \rangle_m) = \pi_{1,\ldots,i}(R) π 1 , … , i (⟨ R ′ ⟩ m ) = π 1 , … , i ( R ) . Clearly, π 1 , … , i ( ⟨ R ′ ⟩ m ) ⊆ π 1 , … , i ( R ) \pi_{1,\ldots,i}(\langle R' \rangle_m) \subseteq\pi_{1,\ldots,i}(R) π 1 , … , i (⟨ R ′ ⟩ m ) ⊆ π 1 , … , i ( R ) , so we only need to show the converse inclusion. The case i = 1 i=1 i = 1 follows from the fact that R R R has for every t ∈ R t \in R t ∈ R the fork ( 1 , t 1 , t 1 ) (1,t_1,t_1) ( 1 , t 1 , t 1 ) , and since R ′ R' R ′ must also have this fork it must contain a tuple t ′ t' t ′ such that t 1 ′ = t 1 t'_1=t_1 t 1 ′ = t 1 .
So let us assume that the statement holds for i < k i<k i < k . We have to show that for every t ∈ R t \in R t ∈ R we have ( t 1 , … , t i + 1 ) ∈ π 1 , … , i + 1 ( ⟨ R ′ ⟩ m ) (t_1,\ldots,t_{i+1}) \in\pi_{1,\ldots,i+1}(\langle R' \rangle_m) ( t 1 , … , t i + 1 ) ∈ π 1 , … , i + 1 (⟨ R ′ ⟩ m ) . By induction hypothesis there exists a tuple s ∈ ⟨ R ′ ⟩ m s \in\langle R' \rangle_m s ∈ ⟨ R ′ ⟩ m such that ( s 1 , … , s i ) = ( t 1 , … , t i ) (s_1,\ldots,s_i)=(t_1,\ldots,t_i) ( s 1 , … , s i ) = ( t 1 , … , t i ) . Then ( i + 1 , s i + 1 , t i + 1 ) (i+1,s_{i+1},t_{i+1}) ( i + 1 , s i + 1 , t i + 1 ) is a fork of R R R , so there exist tuples s ′ , s ′ ′ ∈ R ′ s',s'' \in R' s ′ , s ′′ ∈ R ′ witnessing it. Then the tuple t ′ : = m ( s , s ′ , s ′ ′ ) ∈ ⟨ R ′ ⟩ m t' := m(s,s',s'') \in\langle R' \rangle_m t ′ := m ( s , s ′ , s ′′ ) ∈ ⟨ R ′ ⟩ m is such that
( t 1 ′ , … , t i ′ , t i + 1 ′ ) = ( m ( t 1 , s 1 ′ , s 1 ′ ′ ) , … , m ( t i , s i ′ , s i ′ ′ ) , m ( s i + 1 , s i + 1 , t i + 1 ) ) = ( t 1 , … , t i , t i + 1 ) \begin{aligned}
(t'_1,\ldots,t'_i,t'_{i+1}) &=
(m(t_1,s'_1,s''_1),\ldots,m(t_i,s'_i,s''_i),m(s_{i+1},s_{i+1},t_{i+1})) \\
&= (t_1,\ldots,t_i,t_{i+1})
\end{aligned} ( t 1 ′ , … , t i ′ , t i + 1 ′ ) = ( m ( t 1 , s 1 ′ , s 1 ′′ ) , … , m ( t i , s i ′ , s i ′′ ) , m ( s i + 1 , s i + 1 , t i + 1 )) = ( t 1 , … , t i , t i + 1 )
since s 1 ′ = s 1 ′ ′ , … , s i ′ = s i ′ ′ s'_1=s''_1,\ldots,s'_i=s''_i s 1 ′ = s 1 ′′ , … , s i ′ = s i ′′ . Hence, ( t 1 , … , t i , t i + 1 ) (t_1,\ldots,t_i,t_{i+1}) ( t 1 , … , t i , t i + 1 ) is a tuple from π 1 , … , i + 1 ( ⟨ R ′ ⟩ m ) \pi_{1,\ldots,i+1}(\langle R' \rangle_m) π 1 , … , i + 1 (⟨ R ′ ⟩ m ) , as required.
Exercise 165. Let A A A be a finite set. How many forks does the n n n -ary relation R : = A n R := A^n R := A n have? Explicitly construct a compact representation for R R R .
Exercise 166. Let R R R be the relation { ( x , y , z , u ) ∈ { 0 , 1 } 4 ∣ x + y + z = 1 m o d 2 } \{(x,y,z,u) \in\{0,1\}^4 \mid x+y+z=1 \mathbin{\mathrm{mod}} 2\} {( x , y , z , u ) ∈ { 0 , 1 } 4 ∣ x + y + z = 1 mod 2 } . Find a smallest possible representation R ′ R' R ′ for R R R . Explicitly compute ⟨ R ′ ⟩ m \langle R' \rangle_m ⟨ R ′ ⟩ m where m m m is the Boolean minority.
The Bulatov-Dalmau Algorithm
Let ∃ x 1 , … , x n ( φ 1 ∧ ⋯ ∧ φ m ) \exists x_1,\ldots,x_n(\varphi_1 \land\cdots\land\varphi_m) ∃ x 1 , … , x n ( φ 1 ∧ ⋯ ∧ φ m ) be an instance of CSP(A \mathcal{A} A ). For ℓ ≤ m \ell\le m ℓ ≤ m , we write R ℓ R_\ell R ℓ for the relation
{ ( s 1 , … , s n ) ∈ A n ∣ A ⊨ ( φ 1 ∧ ⋯ ∧ φ ℓ ) ( s 1 , … , s n ) } . \{(s_1,\ldots,s_n) \in A^n \mid\mathcal{A} \models(\varphi_1 \land\cdots\land\varphi_\ell)(s_1,\ldots,s_n)\}. {( s 1 , … , s n ) ∈ A n ∣ A ⊨ ( φ 1 ∧ ⋯ ∧ φ ℓ ) ( s 1 , … , s n )} .
The idea of the algorithm is to inductively construct a compact representation R ℓ ′ R'_\ell R ℓ ′ of R ℓ R_\ell R ℓ , adding constraints one by one. Initially, for ℓ = 0 \ell=0 ℓ = 0 , we have R ℓ = A n R_\ell=A^n R ℓ = A n , and it is easy to come up with a compact representation for this relation. Note that when we manage to compute the compact representation R m ′ R'_m R m ′ for R m R_m R m , we can decide satisfiability of the instance: it is unsatisfiable if and only if R m ′ R'_m R m ′ is empty. For the inductive step, we need a procedure called Next which is more involved; we first introduce two auxiliary procedures.
The procedure N o n e m p t y Nonempty N o n e m pt y
The procedure N o n e m p t y Nonempty N o n e m pt y receives as input
a compact representation R ′ R' R ′ of a relation R R R which is preserved by m m m ,
a sequence i 1 , … , i k i_1,\ldots,i_k i 1 , … , i k of elements in [ n ] [n] [ n ] where n n n is the arity of R R R , and
a k k k -ary relation S S S which is also preserved by m m m .
The output of the procedure is either a tuple t ∈ R t \in R t ∈ R such that ( t i 1 , … , t i k ) ∈ S (t_{i_1},\ldots,t_{i_k}) \in S ( t i 1 , … , t i k ) ∈ S , or ‘No’ if no such tuple exists. The procedure can be found in Figure 12 .
Figure 12. The procedure N o n e m p t y Nonempty N o n e m pt y .
Correctness. For the correctness of N o n e m p t y Nonempty N o n e m pt y we note the following:
R ′ ⊆ U ⊆ R R' \subseteq U \subseteq R R ′ ⊆ U ⊆ R : initially we start from U : = R ′ ⊆ R U := R' \subseteq R U := R ′ ⊆ R , and only add tuples to U U U obtained by applying m m m to tuples in U U U , so the added tuples are again in R R R .
It follows that if N o n e m p t y Nonempty N o n e m pt y returns a tuple t t t , then ( t i 1 , … , t i k ) (t_{i_1},\ldots,t_{i_k}) ( t i 1 , … , t i k ) is indeed from π i 1 , … , i k ( R ) \pi_{i_1,\ldots,i_k}(R) π i 1 , … , i k ( R ) and the output of the algorithm is correct.
When the algorithm exits the while loop then π i 1 , … , i k ( ⟨ U ⟩ m ) = π i 1 , … , i k ( U ) \pi_{i_1,\ldots,i_k}(\langle U\rangle_m) = \pi_{i_1,\ldots,i_k}(U) π i 1 , … , i k (⟨ U ⟩ m ) = π i 1 , … , i k ( U ) . Since R ′ ⊆ U R' \subseteq U R ′ ⊆ U we have that ⟨ U ⟩ m = R \langle U\rangle_m = R ⟨ U ⟩ m = R . Hence, every tuple t ∈ π i 1 , … , i k ( R ) = π i 1 , … , i k ( ⟨ U ⟩ m ) t \in\pi_{i_1,\ldots,i_k}(R) = \pi_{i_1,\ldots,i_k}(\langle U\rangle_m) t ∈ π i 1 , … , i k ( R ) = π i 1 , … , i k (⟨ U ⟩ m ) is contained in π i 1 , … , i k ( U ) \pi_{i_1,\ldots,i_k}(U) π i 1 , … , i k ( U ) , and so the answer of the algorithm is also correct when it returns ‘No’.
We mention that this procedure does not use the particular properties of a Maltsev polymorphism, but works for any explicitly given polymorphism.
Running time. The number of iterations of the while loop can be bounded by the size ∣ U ∣ |U| ∣ U ∣ of the set U U U at the end of the execution of the procedure. Hence, when we want to use this procedure to obtain a polynomial-time running time, we have to make sure that the size of U U U remains polynomial in the input size. The way this is done in the Bulatov-Dalmau algorithm is to guarantee that at each call of N o n e m p t y Nonempty N o n e m pt y the size L L L of π i 1 , … , i k ( R ) \pi_{i_1,\ldots,i_k}(R) π i 1 , … , i k ( R ) is polynomial in the input size. Then ∣ U ∣ |U| ∣ U ∣ is bounded by L + ∣ R ′ ∣ L + |R'| L + ∣ R ′ ∣ which is also polynomial.
We have to test all tuples r , s , t ∈ U r,s,t \in U r , s , t ∈ U ; this can be implemented so that ∣ U ∣ 3 |U|^3 ∣ U ∣ 3 steps suffice. In each step we have to compute m ( r , s , t ) m(r,s,t) m ( r , s , t ) and test whether π i 1 , … , i k ( m ( r , s , t ) ) ∈ π i 1 , … , i k ( U ) \pi_{i_1,\ldots,i_k}(m(r,s,t)) \in\pi_{i_1,\ldots,i_k}(U) π i 1 , … , i k ( m ( r , s , t )) ∈ π i 1 , … , i k ( U ) , which can be done in O ( k L ) O(kL) O ( k L ) . In the important case that L L L is bounded by a constant in the size of the input N N N , the running time of N o n e m p t y Nonempty N o n e m pt y is in O ( N 4 ) O(N^4) O ( N 4 ) .
The procedure Fix-values
The procedure Fix-values receives as input
a compact representation R ′ R' R ′ of an n n n -ary relation R R R preserved by m m m , and
a sequence c 1 , … , c k ∈ A c_1,\ldots,c_k \in A c 1 , … , c k ∈ A for k ≤ n k \le n k ≤ n .
The output of Fix-values is a compact representation of the relation
R ∩ ( { c 1 } × ⋯ × { c k } × A × ⋯ × A ) R \cap(\{c_1\} \times\cdots\times\{c_k\} \times A \times\cdots\times A) R ∩ ({ c 1 } × ⋯ × { c k } × A × ⋯ × A )
The procedure can be found in Figure 13 . The algorithm computes inductively a compact representation U j U_j U j of the relation
Figure 13. The procedure Fix-values.
R j = R ∩ ( { c 1 } × ⋯ × { c j } × A × ⋯ × A ) R_j = R \cap(\{c_1\} \times\cdots\times\{c_j\} \times A \times\cdots\times A) R j = R ∩ ({ c 1 } × ⋯ × { c j } × A × ⋯ × A )
This is immediate for U 0 = R ′ U_0 = R' U 0 = R ′ , and the set U k U_k U k is the relation that we have to compute.
For its correctness, suppose inductively that U j U_j U j is a compact representation of R j R_j R j . We have to show that the set U j + 1 U_{j+1} U j + 1 computed by the procedure is a compact representation of R j + 1 R_{j+1} R j + 1 :
U j + 1 ⊆ R j + 1 U_{j+1} \subseteq R_{j+1} U j + 1 ⊆ R j + 1 . Suppose that the procedure adds { r , m ( r , s , t ) } \{r,m(r,s,t)\} { r , m ( r , s , t )} to U j + 1 U_{j+1} U j + 1 , where s s s and t t t witness the fork ( i , a , b ) (i,a,b) ( i , a , b ) of U j U_j U j processed in the for-loop of the procedure. Note that r ∈ R j + 1 r \in R_{j+1} r ∈ R j + 1 since r ∈ ⟨ U j ⟩ m ⊆ R j r \in\langle U_j\rangle_m \subseteq R_j r ∈ ⟨ U j ⟩ m ⊆ R j and r j + 1 = c j + 1 r_{j+1}=c_{j+1} r j + 1 = c j + 1 . Since m m m preserves R R R and is idempotent, it also preserves R j R_j R j , and since r , s , t ∈ R j r,s,t \in R_j r , s , t ∈ R j it follows that m ( r , s , t ) ∈ R j m(r,s,t) \in R_j m ( r , s , t ) ∈ R j . To show that m ( r , s , t ) ∈ R j + 1 m(r,s,t) \in R_{j+1} m ( r , s , t ) ∈ R j + 1 it suffices to show that s j + 1 = t j + 1 s_{j+1}=t_{j+1} s j + 1 = t j + 1 because then m ( r , s , t ) j + 1 = r j + 1 = c j + 1 m(r,s,t)_{j+1}=r_{j+1}=c_{j+1} m ( r , s , t ) j + 1 = r j + 1 = c j + 1 since m m m is Maltsev. If i > j + 1 i>j+1 i > j + 1 then we have that s j + 1 = t j + 1 s_{j+1}=t_{j+1} s j + 1 = t j + 1 since s , t s,t s , t witness ( i , a , b ) (i,a,b) ( i , a , b ) . Otherwise, we must have a = b = c i a=b=c_i a = b = c i because of the innermost if-clause of the procedure. But then s = t s=t s = t by the stipulation of the algorithm on the choice of s s s and t t t .
All forks ( i , a , b ) (i,a,b) ( i , a , b ) of R j + 1 R_{j+1} R j + 1 are forks of U j + 1 U_{j+1} U j + 1 . If R j + 1 R_{j+1} R j + 1 has the fork ( i , a , b ) (i,a,b) ( i , a , b ) , then by inductive assumption U j U_j U j must contain witnesses s , t s,t s , t for ( i , a , b ) (i,a,b) ( i , a , b ) . Therefore, the first if-clause of the procedure is positive. Moreover, s j + 1 = c j + 1 s_{j+1}=c_{j+1} s j + 1 = c j + 1 and s i = a s_i=a s i = a , so $r :=
N o n e m p t y ( U j , j + 1 , i , { ( c j + 1 , a ) } ) ≠ Nonempty(U_j,j+1,i,\{(c_{j+1},a)\}) \ne N o n e m pt y ( U j , j + 1 , i , {( c j + 1 , a )}) = ‘No’. Also note that if i ≤ j + 1 i \le j+1 i ≤ j + 1 , then a = s i = c i = t i = b a=s_i=c_i=t_i=b a = s i = c i = t i = b . So all the if-clauses of the procedure are positive, and the procedure adds r r r and m ( r , s , t ) m(r,s,t) m ( r , s , t ) to U j + 1 U_{j+1} U j + 1 . The tuples r r r and m ( r , s , t ) m(r,s,t) m ( r , s , t ) witness ( i , a , b ) (i,a,b) ( i , a , b ) . Since s , t s,t s , t witness ( i , a , b ) (i,a,b) ( i , a , b ) we have that ( s 1 , … , s i − 1 ) = ( t 1 , … , t i − 1 ) (s_1,\ldots,s_{i-1})=(t_1,\ldots,t_{i-1}) ( s 1 , … , s i − 1 ) = ( t 1 , … , t i − 1 ) . Hence, π 1 , … , i − 1 ( m ( r , s , t ) ) = ( r 1 , … , r i − 1 ) \pi_{1,\ldots,i-1}(m(r,s,t))=(r_1,\ldots,r_{i-1}) π 1 , … , i − 1 ( m ( r , s , t )) = ( r 1 , … , r i − 1 ) . Furthermore, we have that π i ( m ( r , s , t ) ) = m ( a , a , b ) = b \pi_i(m(r,s,t))=m(a,a,b)=b π i ( m ( r , s , t )) = m ( a , a , b ) = b .
The representation U j + 1 U_{j+1} U j + 1 of R j + 1 R_{j+1} R j + 1 is compact since at most two tuples are added to U j + 1 U_{j+1} U j + 1 for each fork of R j + 1 R_{j+1} R j + 1 .
Running time. The while loop is performed k ≤ n k \le n k ≤ n times; the inner for-loop is executed for each ( i , a , b ) ∈ [ n ] × A 2 (i,a,b) \in[n] \times A^2 ( i , a , b ) ∈ [ n ] × A 2 , which is linear for fixed A \mathcal{A} A . The cost of each iteration is dominated by the cost of calling the procedure N o n e m p t y Nonempty N o n e m pt y . Note that when calling N o n e m p t y Nonempty N o n e m pt y , the size of π j + 1 , i ( U j ) \pi_{j+1,i}(U_j) π j + 1 , i ( U j ) is polynomial in the input size (even constant size when A \mathcal{A} A is fixed), so the cost of N o n e m p t y Nonempty N o n e m pt y is in O ( N 4 ) O(N^4) O ( N 4 ) where N N N is the size of the input. Therefore, the total time complexity of the procedure F i x Fix F i x -v a l u e s values v a l u es is polynomial in the input size (for fixed A \mathcal{A} A it is in O ( N 5 ) O(N^5) O ( N 5 ) ).
The procedure Next
Now comes the heart of the algorithm, which is the procedure N e x t Next N e x t that updates a compact representation of the solution space when constraints are added one by one. The input of the procedure is
a compact representation R ′ R' R ′ of a relation R ⊆ A n R \subseteq A^n R ⊆ A n that is preserved by m m m ,
a sequence i 1 , … , i k i_1,\ldots,i_k i 1 , … , i k of elements from [ n ] [n] [ n ] ,
a k k k -ary relation S S S which is also preserved by m m m .
The output of the procedure is a compact representation of the relation
R ∗ : = { t ∈ R ∣ ( t i 1 , … , t i k ) ∈ S } . R^* := \{t \in R \mid(t_{i_1},\ldots,t_{i_k}) \in S\}. R ∗ := { t ∈ R ∣ ( t i 1 , … , t i k ) ∈ S } .
The procedure N e x t Next N e x t can be found in Figure 14 . Observe that
Figure 14. The procedure N e x t Next N e x t .
the condition N o n e m p t y ( R ′ , i 1 , … , i k , i , S × { a } ) ≠ Nonempty(R',i_1,\ldots,i_k,i,S \times\{a\}) \ne N o n e m pt y ( R ′ , i 1 , … , i k , i , S × { a }) = ‘No’ from the first if-clause is satisfied if and only if there exists a tuple t ∈ R t \in R t ∈ R such that ( t i 1 , … , t i k ) ∈ S (t_{i_1},\ldots,t_{i_k}) \in S ( t i 1 , … , t i k ) ∈ S and t i = a t_i=a t i = a . Hence, if such a tuple does not exist, then ( i , a , b ) (i,a,b) ( i , a , b ) cannot be a fork of R ∗ R^* R ∗ , and nothing needs to be done.
the condition Nonempty ( Fix-values ( R ′ , t 1 , … , t i − 1 ) , i 1 , … , i k , i , S × { b } ) ≠ ‘No’ \operatorname{Nonempty}(\operatorname{Fix\text{-}values}(R',t_1,\ldots,t_{i-1}),i_1,\ldots,i_k,i,S\times\{b\})\ne\text{‘No’} Nonempty ( Fix - values ( R ′ , t 1 , … , t i − 1 ) , i 1 , … , i k , i , S × { b }) = ‘No’ from the second if-clause is satisfied if and only if there exists a tuple t ′ ∈ R t'\in R t ′ ∈ R such that
( t 1 ′ , … , t i − 1 ′ ) = ( t 1 , … , t i − 1 ) (t'_1,\ldots,t'_{i-1})=(t_1,\ldots,t_{i-1}) ( t 1 ′ , … , t i − 1 ′ ) = ( t 1 , … , t i − 1 ) ,
( t i 1 ′ , … , t i k ′ ) ∈ S (t'_{i_1},\ldots,t'_{i_k})\in S ( t i 1 ′ , … , t i k ′ ) ∈ S , and
t i ′ = b t'_i=b t i ′ = b .
If this condition holds, and since t i = a t_i=a t i = a , we have that t t t and t ′ t' t ′ witness ( i , a , b ) (i,a,b) ( i , a , b ) . It only remains to show that if ( i , a , b ) (i,a,b) ( i , a , b ) is a fork of R ∗ R^* R ∗ , then such a tuple t ′ t' t ′ must exist. So let r r r and s s s be witnesses for ( i , a , b ) (i,a,b) ( i , a , b ) in R ∗ R^* R ∗ . Then the tuple t ′ : = m ( t , r , s ) t':=m(t,r,s) t ′ := m ( t , r , s ) has the desired properties:
for j < i j<i j < i we have that t j ′ = m ( t j , r j , s j ) = t j t'_j=m(t_j,r_j,s_j)=t_j t j ′ = m ( t j , r j , s j ) = t j ;
t ′ ∈ R ∗ t'\in R^* t ′ ∈ R ∗ , because ( r i 1 , … , r i k ) , ( s i 1 , … , s i k ) , ( t i 1 , … , t i k ) ∈ S (r_{i_1},\ldots,r_{i_k}),(s_{i_1},\ldots,s_{i_k}),(t_{i_1},\ldots,t_{i_k})\in S ( r i 1 , … , r i k ) , ( s i 1 , … , s i k ) , ( t i 1 , … , t i k ) ∈ S and m m m preserves S S S .
t i ′ = m ( t i , r i , s i ) = m ( a , a , b ) = b t'_i=m(t_i,r_i,s_i)=m(a,a,b)=b t i ′ = m ( t i , r i , s i ) = m ( a , a , b ) = b .
Running time. The for-loop of the procedure N e x t Next N e x t is performed n ∣ A ∣ 2 n|A|^2 n ∣ A ∣ 2 times and the cost of each iteration is polynomial in the cost of N o n e m p t y Nonempty N o n e m pt y and F i x Fix F i x -values. Also note that k k k is bounded by the maximal arity of the relations in A \mathcal{A} A , so constant for fixed A \mathcal{A} A . It follows that π i 1 , … , i k , i ( R ) \pi_{i_1,\ldots,i_k,i}(R) π i 1 , … , i k , i ( R ) is polynomial, so the running time of the calls to N o n e m p t y Nonempty N o n e m pt y are polynomial. For fixed A \mathcal{A} A , the global running time of the procedure N e x t Next N e x t is in O ( N 6 ) O(N^6) O ( N 6 ) where N N N is the size of the input.
Proof of Theorem 8.1. Starting from an empty list of constraints, we add constraints on the variables x 1 , … , x n x_1,\ldots,x_n x 1 , … , x n one by one, and maintain a compact representation of the n n n -ary relation defined by the constraints considered so far. Initially, we start with a compact representation of the full relation A n A^n A n . In later steps, we use the procedure N e x t Next N e x t to compute a compact representation when a constraint is added, in O ( N 6 ) O(N^6) O ( N 6 ) for fixed A \mathcal{A} A and N N N the size of the input. The instance is unsatisfiable if and only if at the final stage we end up with an empty representation. The entire running time of the algorithm is in O ( N 7 ) O(N^7) O ( N 7 ) .
Exercise 167. Let A \mathcal{A} A be the structure ( { 0 , 1 } ; L 0 , L 1 ) (\{0,1\};L_0,L_1) ({ 0 , 1 } ; L 0 , L 1 ) where L i : = { ( x , y , z ) ∣ x + y + z = i mod 2 } L_i:=\{(x,y,z)\mid x+y+z=i\mathbin{\operatorname{mod}}2\} L i := {( x , y , z ) ∣ x + y + z = i mod 2 } , which has the Boolean minority m m m as polymorphism. Consider the instance
∃ x 1 , … , x 5 ( L 1 ( x 1 , x 2 , x 3 ) ∧ L 1 ( x 2 , x 3 , x 4 ) ∧ L 1 ( x 3 , x 4 , x 5 ) ∧ L 0 ( x 1 , x 3 , x 5 ) ) \exists x_1,\ldots,x_5\ (L_1(x_1,x_2,x_3)\land L_1(x_2,x_3,x_4)\land L_1(x_3,x_4,x_5)\land L_0(x_1,x_3,x_5)) ∃ x 1 , … , x 5 ( L 1 ( x 1 , x 2 , x 3 ) ∧ L 1 ( x 2 , x 3 , x 4 ) ∧ L 1 ( x 3 , x 4 , x 5 ) ∧ L 0 ( x 1 , x 3 , x 5 ))
Compute compact representations R ℓ ′ R'_\ell R ℓ ′ of R ℓ R_\ell R ℓ , for ℓ ∈ { 1 , 2 , 3 , 4 } \ell\in\{1,2,3,4\} ℓ ∈ { 1 , 2 , 3 , 4 } .
Exercise 168. Let B \mathcal{B} B be a structure with a Maltsev polymorphism f f f and an infinite relational signature. Note that we have defined CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) only if B \mathcal{B} B has a finite signature. If we want to define CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) also for structures B \mathcal{B} B with an infinite signature, it is important to discuss how the relation symbols in the signature of B \mathcal{B} B are represented in the input. We choose to represent a relation symbol R R R from B \mathcal{B} B by listing the tuples in R B R^{\mathcal{B}} R B . Adapt the Dalmau algorithm such that it can solve CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) in polynomial time for this choice of representing the relations in B \mathcal{B} B .
Exercise 169. The graph isomorphism problem (GI) is a famous computational problem that is neither known to be solvable in polynomial time, nor expected to be NP-hard. An instance of GI consists of two graphs G G G and H H H , and the question is to decide whether G G G and H H H are isomorphic. Consider the variant of the graph-isomorphism problem where the vertices are coloured, each color appears at most k k k times for some constant k k k , and the isomorphism between H H H and G G G that we are looking for is required to additionally preserve the colours. Show that this problem can be solved in polynomial time using Dalmau’s algorithm (use Exercise 168).
Minions
(Abstract) minions generalise (abstract) clones, and function minions generalise operation clones. The name has been introduced in 2018 when it became clear that function minions over finite domains capture the complexity of so-called promise CSPs , which generalise CSPs [9]. This text does not cover promise CSPs; however, we still introduce minions, because minion homomorphisms play an important role when studying clones as well (see, e.g., [17, 30, 32]). In particular, minion homomorphisms can be used to characterise the operator HI from the second formulation of the tractability theorem, Theorem 5.29.
Minors and Minions
Let A , B A,B A , B be sets and k , m ∈ N ≥ 1 k,m \in\mathbb{N}_{\ge1} k , m ∈ N ≥ 1 . Let f : A k → B f:A^k \to B f : A k → B be a function and let α : [ k ] → [ m ] \alpha:[k]\to[m] α : [ k ] → [ m ] . Then f α f_\alpha f α denotes the function g : A m → B g:A^m\to B g : A m → B given by g ( x 1 , … , x m ) : = f ( x α ( 1 ) , … , x α ( k ) ) g(x_1,\ldots,x_m):=f(x_{\alpha(1)},\ldots,x_{\alpha(k)}) g ( x 1 , … , x m ) := f ( x α ( 1 ) , … , x α ( k ) ) . A minor of f f f is a function of the form f α f_\alpha f α , for some α : [ k ] → [ m ] \alpha:[k]\to[m] α : [ k ] → [ m ] . Note that
( f α ) β = f β ∘ α , (f_\alpha)_\beta=f_{\beta\circ\alpha}, ( f α ) β = f β ∘ α ,
so the minor relation is transitive.
if f f f and g g g are operations on A A A , then for all α 1 , … , α k : [ m ] → [ n ] \alpha_1,\ldots,\alpha_k:[m]\to[n] α 1 , … , α k : [ m ] → [ n ] there exists β : [ k m ] → [ n ] \beta:[km]\to[n] β : [ k m ] → [ n ] such that
f ( g α 1 , … , g α k ) = ( f ∗ g ) β f(g_{\alpha_1},\ldots,g_{\alpha_k})=(f\ast g)_\beta f ( g α 1 , … , g α k ) = ( f ∗ g ) β
(recall Definition 7.39).
Definition 9.1. A function minion is a subset M \mathcal{M} M of ⋃ k ≥ 1 B A k \bigcup_{k\ge1}B^{A^k} ⋃ k ≥ 1 B A k , where A A A and B B B are sets, which is closed under taking minors.
Note that every operation clone is a function minion where A = B A=B A = B and where we additionally require the presence of the projections and closure under composition. A minion is the abstract version of a function minion, analogously as clones can be viewed as the abstract version of operation clones.
Definition 9.2. An (abstract ) minion is a multi-sorted algebra M \mathbf{M} M with sorts M ( 1 ) , M ( 2 ) , … M^{(1)}, M^{(2)},\ldots M ( 1 ) , M ( 2 ) , … and for each α : [ n ] → [ m ] \alpha\colon[n]\to[m] α : [ n ] → [ m ] the operation α : M ( n ) → M ( m ) \alpha\colon M^{(n)}\to M^{(m)} α : M ( n ) → M ( m ) such that for every f ∈ M ( n ) f\in M^{(n)} f ∈ M ( n ) we have f id [ n ] = f f_{\operatorname{id}_{[n]}}=f f id [ n ] = f , and for every σ : [ n ] → [ m ] \sigma\colon[n]\to[m] σ : [ n ] → [ m ] and ρ : [ m ] → [ k ] \rho\colon[m]\to[k] ρ : [ m ] → [ k ] we have
( f σ ) ρ = f ρ ∘ σ . (f_{\sigma})_{\rho}=f_{\rho\circ\sigma}. ( f σ ) ρ = f ρ ∘ σ .
Clearly, every function minion gives rise to a minion in the obvious way. This statement has a converse, which is analogous to Cayley’s theorem for groups (see Proposition 7.41 for the corresponding statement for clones); see Exercise 175.
Definition 9.3. Let M \mathbf{M} M and N \mathbf{N} N be minions.
A minion homomorphism from M \mathbf{M} M to N \mathbf{N} N is a map ξ : M → N \xi\colon M\to N ξ : M → N such that for every n ∈ N n\in\mathbb{N} n ∈ N and f ∈ M ( n ) f\in M^{(n)} f ∈ M ( n ) we have ξ ( f ) ∈ N ( n ) \xi(f)\in N^{(n)} ξ ( f ) ∈ N ( n ) and for every m , n ∈ N ≥ 1 m,n\in\mathbb{N}_{\geq1} m , n ∈ N ≥ 1 and α : [ n ] → [ m ] \alpha\colon[n]\to[m] α : [ n ] → [ m ] and f ∈ M ( n ) f\in M^{(n)} f ∈ M ( n ) we have ξ ( f α ) = ξ ( f ) α \xi(f_{\alpha})=\xi(f)_{\alpha} ξ ( f α ) = ξ ( f ) α .
Similarly as for clones in Lemma 7.47 , we may apply the compactness theorem of first-order logic11 to characterise the existence of minion homomorphisms to function minions on finite sets.
Lemma 9.4. Let M \mathbf{M} M be a minion and let F \mathbf{F} F be a minion with finitely many elements of each sort. If there is no minion homomorphism from M \mathbf{M} M to F \mathbf{F} F , then there exists a primitive positive sentence over the signature of (abstract) minions that holds in M \mathbf{M} M but not in F \mathbf{F} F .
Exercise 170. Let C \mathbf{C} C and D \mathbf{D} D be clones. Show that ξ : C → D \xi\colon C\to D ξ : C → D is a minion homomorphism if and only if
ξ \xi ξ preserves arities, i.e., ξ ( C ( i ) ) ⊆ D ( i ) \xi(C^{(i)})\subseteq D^{(i)} ξ ( C ( i ) ) ⊆ D ( i ) for all i ∈ N i\in\mathbb{N} i ∈ N , and
ξ \xi ξ preserves composition with projections, that is, for all n , k ≥ 1 n,k\geq1 n , k ≥ 1 and f ∈ C ( k ) f\in C^{(k)} f ∈ C ( k )
ξ ( f ( ( π i 1 n ) C , … , ( π i k n ) C ) ) = ξ ( f ) ( ( π i 1 n ) D , … , ( π i k n ) D ) . \xi\left(f\left((\pi^n_{i_1})^{\mathbf{C}},\ldots,(\pi^n_{i_k})^{\mathbf{C}}\right)\right)=\xi(f)\left((\pi^n_{i_1})^{\mathbf{D}},\ldots,(\pi^n_{i_k})^{\mathbf{D}}\right). ξ ( f ( ( π i 1 n ) C , … , ( π i k n ) C ) ) = ξ ( f ) ( ( π i 1 n ) D , … , ( π i k n ) D ) .
Exercise 171. Let α : [ k ] → [ m ] \alpha\colon[k]\to[m] α : [ k ] → [ m ] . Write down a primitive positive formula ϕ ( x , y ) \phi(x,y) ϕ ( x , y ) in the language of clones such that for every operation clone C \mathcal{C} C and all f , g ∈ C f,g\in\mathcal{C} f , g ∈ C we have C ⊨ ϕ ( f , g ) \mathcal{C}\models\phi(f,g) C ⊨ ϕ ( f , g ) if and only if g = f α g=f_{\alpha} g = f α .
Exercise 172. Let M \mathbf{M} M be a minion. Show that for every injective α : [ n ] → [ m ] \alpha\colon[n]\to[m] α : [ n ] → [ m ] the operation f ↦ f α f\mapsto f_{\alpha} f ↦ f α from M ( n ) M^{(n)} M ( n ) to M ( m ) M^{(m)} M ( m ) is injective, and for every surjective α : [ n ] → [ m ] \alpha\colon[n]\to[m] α : [ n ] → [ m ] the operation f ↦ f α f\mapsto f_{\alpha} f ↦ f α from M ( n ) M^{(n)} M ( n ) to M ( m ) M^{(m)} M ( m ) is surjective.
Exercise 173. (For readers familiar with basic category theory) Let S e t \mathbf{Set} Set denote the category of all sets and mappings between them, and let F i n O r d \mathbf{FinOrd} FinOrd denote the category of finite ordinals and mappings between them.
Explain how minions can be viewed as S e t \mathbf{Set} Set -endofunctors F F F such that F ( ∅ ) = ∅ F(\varnothing)=\varnothing F ( ∅ ) = ∅ and F F F is finitary : that is, if X X X is a set and x ∈ F ( X ) x\in F(X) x ∈ F ( X ) , there exists a finite subset Y ⊆ X Y\subseteq X Y ⊆ X and y ∈ F ( Y ) y\in F(Y) y ∈ F ( Y ) such that F ( f ) ( y ) = x F(f)(y)=x F ( f ) ( y ) = x , where f : Y → X f:Y\to X f : Y → X is the inclusion map. Show that natural transformations between such S e t \mathbf{Set} Set -endofunctors correspond to minion homomorphisms.
Reflections
In § 8.4 we have seen that the H S P f i n \mathrm{HSP}^{\mathrm{fin}} HSP fin operator is the algebraic counterpart to full primitive positive interpretations. This section treats a relatively new universal-algebraic operator, for forming reflections (introduced in [17]), which can be used to characterise the structure-building operator H I \mathrm{HI} HI . Recall from § 6.1 that H I \mathrm{HI} HI is the operator that is most relevant for constraint satisfaction.
Definition 9.5. Let B \mathbf{B} B be a τ \tau τ -algebra, let A A A be a set, and let h : B → A h:B\to A h : B → A and g : A → B g:A\to B g : A → B be two maps. Then the reflection of B \mathbf{B} B with respect to ( h , g ) (h,g) ( h , g ) is the τ \tau τ -algebra A \mathbf{A} A with domain A A A where for all a 1 , … , a n ∈ A a_1,\ldots,a_n\in A a 1 , … , a n ∈ A and f ∈ τ f\in\tau f ∈ τ of arity n n n we define
f A ( a 1 , … , a n ) : = h ( f B ( g ( a 1 ) , … , g ( a n ) ) ) . f^{\mathbf{A}}(a_1,\ldots,a_n):=h\left(f^{\mathbf{B}}(g(a_1),\ldots,g(a_n))\right). f A ( a 1 , … , a n ) := h ( f B ( g ( a 1 ) , … , g ( a n )) ) . The class of reflections of a class of τ \tau τ -algebras C \mathcal{C} C is denoted by Refl ( C ) \operatorname{Refl}(\mathcal{C}) Refl ( C ) .
As for the other operators on algebras, we write Refl ( B ) \operatorname{Refl}(\mathbf{B}) Refl ( B ) instead of Refl ( { B } ) \operatorname{Refl}(\{\mathbf{B}\}) Refl ({ B }) . The following is an analog to the HSP-lemma (Lemma 7.22).
Lemma 9.6 (from [17]). Let C \mathcal{C} C be a class of τ \tau τ -algebras. If the empty τ \tau τ -algebra exists, assume that it belongs to C \mathcal{C} C .
The smallest class of τ \tau τ -algebras that contains C \mathcal{C} C and is closed under Refl \operatorname{Refl} Refl , H, S, and P equals Refl P ( C ) \operatorname{Refl}\operatorname{P}(\mathcal{C}) Refl P ( C ) .
The smallest class of τ \tau τ -algebras that contains C \mathcal{C} C and is closed under Refl \operatorname{Refl} Refl , H, S, and P f i n \mathrm{P}^{\mathrm{fin}} P fin equals Refl P f i n ( C ) \operatorname{Refl}\operatorname{P}^{\mathrm{fin}}(\mathcal{C}) Refl P fin ( C ) .
Proof. For the first statement, it suffices to prove that Refl P ( C ) \operatorname{Refl}\operatorname{P}(\mathcal{C}) Refl P ( C ) is closed under Refl \operatorname{Refl} Refl , H, S, P, and for the second that Refl P f i n ( C ) \operatorname{Refl}\operatorname{P}^{\mathrm{fin}}(\mathcal{C}) Refl P fin ( C ) is closed under Refl \operatorname{Refl} Refl , H, S, P f i n \mathrm{P}^{\mathrm{fin}} P fin . For the operator Refl \operatorname{Refl} Refl this follows from the simple fact that Refl Refl ( K ) = Refl ( K ) \operatorname{Refl}\operatorname{Refl}(\mathcal{K})=\operatorname{Refl}(\mathcal{K}) Refl Refl ( K ) = Refl ( K ) for any class K \mathcal{K} K .
To prove that Refl P ( C ) \operatorname{Refl}\operatorname{P}(\mathcal{C}) Refl P ( C ) and Refl P f i n ( C ) \operatorname{Refl}\operatorname{P}^{\mathrm{fin}}(\mathcal{C}) Refl P fin ( C ) are closed under H, we show that H ( K ) ⊆ Refl ( K ) \mathrm{H}(\mathcal{K})\subseteq\operatorname{Refl}(\mathcal{K}) H ( K ) ⊆ Refl ( K ) for any class K \mathcal{K} K . Let B ∈ K \mathbf{B}\in\mathcal{K} B ∈ K and h : B → A h:B\to A h : B → A be a surjective homomorphism to an algebra A \mathbf{A} A . Pick any function g g g such that h ∘ g h\circ g h ∘ g is the identity on A A A . Then h h h and g g g witness that A \mathbf{A} A is a reflection of B \mathbf{B} B since
h ( f B ( g ( x 1 ) , … , g ( x n ) ) ) = f A ( h ∘ g ( x 1 ) , … , h ∘ g ( x n ) ) (since h is a homomorphism) = f A ( x 1 , … , x n ) (by the choice of g ). \begin{aligned}
h\left(f^{\mathbf{B}}(g(x_1),\ldots,g(x_n))\right)=f^{\mathbf{A}}\left(h\circ g(x_1),\ldots,h\circ g(x_n)\right)\qquad\text{(since }h\text{ is a homomorphism)} \\
&=f^{\mathbf{A}}(x_1,\ldots,x_n)\qquad\text{(by the choice of }g\text{).}
\end{aligned} h ( f B ( g ( x 1 ) , … , g ( x n )) ) = f A ( h ∘ g ( x 1 ) , … , h ∘ g ( x n ) ) (since h is a homomorphism) = f A ( x 1 , … , x n ) (by the choice of g ).
To prove that Refl P ( C ) \operatorname{Refl}\operatorname{P}(\mathcal{C}) Refl P ( C ) and Refl P f i n ( C ) \operatorname{Refl}\operatorname{P}^{\mathrm{fin}}(\mathcal{C}) Refl P fin ( C ) are closed under S, we show that S ( K ) ⊆ Refl ( K ) \mathrm{S}(\mathcal{K})\subseteq\operatorname{Refl}(\mathcal{K}) S ( K ) ⊆ Refl ( K ) for any class K \mathcal{K} K . Let B ∈ K \mathbf{B}\in\mathcal{K} B ∈ K and suppose that A \mathbf{A} A is a subalgebra of B \mathbf{B} B . Let g : A → B g:A\to B g : A → B be the identity on A A A , and h : B → A h:B\to A h : B → A be any extension of g g g to B B B . Then h h h and g g g show that A A A is a reflection of B B B since
h ( f B ( g ( x 1 ) , … , g ( x n ) ) ) = f B ( x 1 , … , x n ) = f A ( x 1 , … , x n ) . h(f^{\mathbb{B}}(g(x_1),\ldots,g(x_n)))=f^{\mathbb{B}}(x_1,\ldots,x_n)=f^{\mathbb{A}}(x_1,\ldots,x_n). h ( f B ( g ( x 1 ) , … , g ( x n ))) = f B ( x 1 , … , x n ) = f A ( x 1 , … , x n ) .
Let I I I be an arbitrary set, ( B i ) i ∈ I (\mathbb{B}_i)_{i\in I} ( B i ) i ∈ I be algebras from P ( C ) \operatorname{P}(\mathcal{C}) P ( C ) , and suppose that A i \mathbb{A}_i A i is a reflection of B i \mathbb{B}_i B i for every i ∈ I i\in I i ∈ I , witnessed by functions h i : B i → A i h_i:B_i\to A_i h i : B i → A i and g i : A i → B i g_i:A_i\to B_i g i : A i → B i . Then the map h : ∏ i ∈ I B i → ∏ i ∈ I A i h:\prod_{i\in I}B_i\to\prod_{i\in I}A_i h : ∏ i ∈ I B i → ∏ i ∈ I A i that sends ( b i ) i ∈ I (b_i)_{i\in I} ( b i ) i ∈ I to ( h i ( b i ) ) i ∈ I (h_i(b_i))_{i\in I} ( h i ( b i ) ) i ∈ I and the map g : ∏ i ∈ I A i → ∏ i ∈ I B i g:\prod_{i\in I}A_i\to\prod_{i\in I}B_i g : ∏ i ∈ I A i → ∏ i ∈ I B i that sends ( a i ) i ∈ I (a_i)_{i\in I} ( a i ) i ∈ I to ( g i ( a i ) ) i ∈ I (g_i(a_i))_{i\in I} ( g i ( a i ) ) i ∈ I witness that ∏ i ∈ I A i \prod_{i\in I}A_i ∏ i ∈ I A i is a reflection of ∏ i ∈ I B i \prod_{i\in I}B_i ∏ i ∈ I B i . This shows that P ( Refl P ( C ) ) ⊆ Refl P ( C ) \operatorname{P}(\operatorname{Refl}\operatorname{P}(\mathcal{C}))\subseteq\operatorname{Refl}\operatorname{P}(\mathcal{C}) P ( Refl P ( C )) ⊆ Refl P ( C ) and likewise that P f i n ( Refl P f i n ( C ) ) ⊆ Refl P f i n ( C ) \operatorname{P}^{\mathrm{fin}}(\operatorname{Refl}\operatorname{P}^{\mathrm{fin}}(\mathcal{C}))\subseteq\operatorname{Refl}\operatorname{P}^{\mathrm{fin}}(\mathcal{C}) P fin ( Refl P fin ( C )) ⊆ Refl P fin ( C ) .
Theorem 9.7. Let B , C \mathbb{B},\mathcal{C} B , C be finite relational structures and let C \mathbb{C} C be a polymorphism algebra of C \mathcal{C} C . Then
B ∈ H ( C ′ ) \mathbb{B}\in\operatorname{H}(\mathcal{C}') B ∈ H ( C ′ ) for some structure C ′ \mathcal{C}' C ′ which is primitively positively definable in C \mathcal{C} C if and only if there is an algebra B ∈ Refl ( C ) \mathbb{B}\in\operatorname{Refl}(\mathcal{C}) B ∈ Refl ( C ) such that Clo ( B ) ⊆ Pol ( B ) \operatorname{Clo}(\mathbb{B})\subseteq\operatorname{Pol}(\mathbb{B}) Clo ( B ) ⊆ Pol ( B ) .
B ∈ H I ( C ) \mathbb{B}\in\operatorname{H}\operatorname{I}(\mathcal{C}) B ∈ H I ( C ) if and only if there is an algebra B ∈ Refl P f i n ( C ) \mathbb{B}\in\operatorname{Refl}\operatorname{P}^{\mathrm{fin}}(\mathcal{C}) B ∈ Refl P fin ( C ) such that Clo ( B ) ⊆ Pol ( B ) \operatorname{Clo}(\mathbb{B})\subseteq\operatorname{Pol}(\mathbb{B}) Clo ( B ) ⊆ Pol ( B ) .
Proof. To show (1), first suppose that B ∈ H ( C ′ ) \mathbb{B}\in\operatorname{H}(\mathcal{C}') B ∈ H ( C ′ ) for some C ′ \mathcal{C}' C ′ which is pp definable in C \mathcal{C} C ; let h : C ′ → B h:\mathcal{C}'\to\mathbb{B} h : C ′ → B and g : B → C ′ g:\mathbb{B}\to\mathcal{C}' g : B → C ′ be homomorphisms witnessing homomorphic equivalence of B \mathbb{B} B and C ′ \mathcal{C}' C ′ . Let C ′ \mathbb{C}' C ′ be an expansion of C \mathbb{C} C which is a polymorphism algebra of C ′ \mathcal{C}' C ′ . Let B ′ \mathbb{B}' B ′ be the reflection of C ′ \mathbb{C}' C ′ with respect to ( h , g ) (h,g) ( h , g ) . Every operation of Clo ( B ′ ) \operatorname{Clo}(\mathbb{B}') Clo ( B ′ ) is obtained as a composition of homomorphisms, so preserves all the relations of B \mathbb{B} B , so Clo ( B ′ ) ⊆ Pol ( B ) \operatorname{Clo}(\mathbb{B}')\subseteq\operatorname{Pol}(\mathbb{B}) Clo ( B ′ ) ⊆ Pol ( B ) . Let B \mathbb{B} B be the reduct of B ′ \mathbb{B}' B ′ where we only keep the operations for the signature of C \mathcal{C} C , and note that B ∈ Refl ( C ) \mathbb{B}\in\operatorname{Refl}(\mathcal{C}) B ∈ Refl ( C ) is such that Clo ( B ) ⊆ Pol ( B ) \operatorname{Clo}(\mathbb{B})\subseteq\operatorname{Pol}(\mathbb{B}) Clo ( B ) ⊆ Pol ( B ) .
Conversely, suppose that the reflection B \mathbb{B} B of C \mathcal{C} C at h : C → B h:\mathcal{C}\to\mathbb{B} h : C → B and g : B → C g:\mathbb{B}\to\mathcal{C} g : B → C is such that Clo ( B ) ⊆ Pol ( B ) \operatorname{Clo}(\mathbb{B})\subseteq\operatorname{Pol}(\mathbb{B}) Clo ( B ) ⊆ Pol ( B ) . Let C ′ \mathcal{C}' C ′ be the structure with domain C C C and the same signature as B \mathbb{B} B which contains for every k k k -ary relation symbol R R R of B \mathbb{B} B the relation
R C ′ : = { ( f ( g ( b 1 1 ) , … , g ( b 1 ℓ ) ) , … , f ( g ( b k 1 ) , … , g ( b k ℓ ) ) ) ∣ ℓ ≥ 1 , f ∈ Pol ( C ) ( ℓ ) , ( b 1 1 , … , b k 1 ) , … , ( b 1 ℓ , … , b k ℓ ) ∈ R B } . R^{\mathcal{C}'}:=\{(f(g(b_1^1),\ldots,g(b_1^\ell)),\ldots,f(g(b_k^1),\ldots,g(b_k^\ell)))\mid\ell\geq1,\ f\in\operatorname{Pol}(\mathcal{C})^{(\ell)},\ (b_1^1,\ldots,b_k^1),\ldots,(b_1^\ell,\ldots,b_k^\ell)\in R^{\mathbb{B}}\}. R C ′ := {( f ( g ( b 1 1 ) , … , g ( b 1 ℓ )) , … , f ( g ( b k 1 ) , … , g ( b k ℓ ))) ∣ ℓ ≥ 1 , f ∈ Pol ( C ) ( ℓ ) , ( b 1 1 , … , b k 1 ) , … , ( b 1 ℓ , … , b k ℓ ) ∈ R B } .
These relations are preserved by Pol ( C ) \operatorname{Pol}(\mathcal{C}) Pol ( C ) , so they are pp definable in C \mathcal{C} C by Theorem 6.7, and hence C ′ \mathcal{C}' C ′ is primitively positively definable in C \mathcal{C} C . Clearly, g g g is a homomorphism from B \mathbb{B} B to C ′ \mathcal{C}' C ′ . We claim that h h h is a homomorphism from C ′ \mathcal{C}' C ′ to B \mathbb{B} B . Let R R R be a k k k -ary relation symbol and let ( c 1 , … , c k ) ∈ R C ′ (c_1,\ldots,c_k)\in R^{\mathcal{C}'} ( c 1 , … , c k ) ∈ R C ′ . By the definition of R C ′ R^{\mathcal{C}'} R C ′ , there exist ℓ ≥ 1 \ell\geq1 ℓ ≥ 1 , an operation f ∈ Pol ( C ) ( ℓ ) f\in\operatorname{Pol}(\mathcal{C})^{(\ell)} f ∈ Pol ( C ) ( ℓ ) , and tuples
b ‾ j = ( b 1 j , … , b k j ) ∈ R B ( j ∈ [ ℓ ] ) \overline{b}^{\,j}=(b_1^j,\ldots,b_k^j)\in R^{\mathbb{B}}\qquad(j\in[\ell]) b j = ( b 1 j , … , b k j ) ∈ R B ( j ∈ [ ℓ ])
such that
c i = f ( g ( b i 1 ) , … , g ( b i ℓ ) ) ( i ∈ [ k ] ) . c_i=f(g(b_i^1),\ldots,g(b_i^\ell))\qquad(i\in[k]). c i = f ( g ( b i 1 ) , … , g ( b i ℓ )) ( i ∈ [ k ]) .
Since Clo ( B ) ⊆ Pol ( B ) \operatorname{Clo}(\mathbb{B})\subseteq\operatorname{Pol}(\mathbb{B}) Clo ( B ) ⊆ Pol ( B ) , the operation f B f^{\mathbb{B}} f B preserves R B R^{\mathbb{B}} R B . Applying it coordinatewise to b ‾ 1 , … , b ‾ ℓ ∈ R B \overline{b}^{\,1},\ldots,\overline{b}^{\,\ell}\in R^{\mathbb{B}} b 1 , … , b ℓ ∈ R B therefore gives
( h ( c 1 ) , … , h ( c k ) ) = ( h ( f ( g ( b 1 1 ) , … , g ( b 1 ℓ ) ) ) , … , h ( f ( g ( b k 1 ) , … , g ( b k ℓ ) ) ) ) = ( f B ( b 1 1 , … , b 1 ℓ ) , … , f B ( b k 1 , … , b k ℓ ) ) = f B ( b ‾ 1 , … , b ‾ ℓ ) ∈ R B . \begin{aligned}
(h(c_1),\ldots,h(c_k))
&=(h(f(g(b_1^1),\ldots,g(b_1^\ell))),\ldots,h(f(g(b_k^1),\ldots,g(b_k^\ell))))\\
&=(f^{\mathbb{B}}(b_1^1,\ldots,b_1^\ell),\ldots,f^{\mathbb{B}}(b_k^1,\ldots,b_k^\ell))\\
&=f^{\mathbb{B}}(\overline{b}^{\,1},\ldots,\overline{b}^{\,\ell})\in R^{\mathbb{B}}.
\end{aligned} ( h ( c 1 ) , … , h ( c k )) = ( h ( f ( g ( b 1 1 ) , … , g ( b 1 ℓ ))) , … , h ( f ( g ( b k 1 ) , … , g ( b k ℓ )))) = ( f B ( b 1 1 , … , b 1 ℓ ) , … , f B ( b k 1 , … , b k ℓ )) = f B ( b 1 , … , b ℓ ) ∈ R B .
Thus, h h h preserves every relation of C ′ \mathcal{C}' C ′ and h h h is a homomorphism from C ′ \mathcal{C}' C ′ to B \mathcal{B} B . Therefore, B ∈ H ( C ′ ) \mathcal{B} \in\mathrm{H}(\mathcal{C}') B ∈ H ( C ′ ) .
Item (2) is a combination of item (1) with Theorem 7.23: First suppose that B ∈ H I ( C ) \mathcal{B} \in\mathrm{HI}(\mathcal{C}) B ∈ HI ( C ) . Then there exists a structure D ∈ I ( C ) \mathcal{D} \in\mathrm{I}(\mathcal{C}) D ∈ I ( C ) such that B ∈ H ( D ) \mathcal{B} \in\mathrm{H}(\mathcal{D}) B ∈ H ( D ) . By Theorem 7.23 there is an algebra D ∈ H S P f i n ( C ) \mathbf{D} \in\mathrm{HSP}^{\mathrm{fin}}(\mathbf{C}) D ∈ HSP fin ( C ) such that Clo ( D ) ⊆ Pol ( D ) \operatorname{Clo}(\mathbf{D}) \subseteq\operatorname{Pol}(\mathcal{D}) Clo ( D ) ⊆ Pol ( D ) , and by item (1) there is an algebra B ∈ Refl ( D ) \mathbf{B} \in\operatorname{Refl}(\mathbf{D}) B ∈ Refl ( D ) such that Clo ( B ) ⊆ Pol ( B ) \operatorname{Clo}(\mathbf{B}) \subseteq\operatorname{Pol}(\mathcal{B}) Clo ( B ) ⊆ Pol ( B ) . This proves the statement since
B ∈ Refl ( D ) ⊆ Refl HSP f i n ( C ) = Refl P f i n ( C ) (by Lemma 9.6). \mathbf{B} \in\operatorname{Refl}(\mathbf{D}) \subseteq\operatorname{Refl}\operatorname{HSP}^{\mathrm{fin}}(\mathbf{C})
= \operatorname{Refl}\operatorname{P}^{\mathrm{fin}}(\mathbf{C}) \qquad\text{(by Lemma 9.6).} B ∈ Refl ( D ) ⊆ Refl HSP fin ( C ) = Refl P fin ( C ) (by Lemma 9.6).
Conversely, suppose that there exists B ∈ Refl P f i n ( C ) \mathbf{B} \in\operatorname{Refl}\operatorname{P}^{\mathrm{fin}}(\mathbf{C}) B ∈ Refl P fin ( C ) such that Clo ( B ) ⊆ Pol ( B ) \operatorname{Clo}(\mathbf{B}) \subseteq\operatorname{Pol}(\mathcal{B}) Clo ( B ) ⊆ Pol ( B ) . Then there exists D ∈ P f i n ( C ) \mathbf{D} \in\operatorname{P}^{\mathrm{fin}}(\mathbf{C}) D ∈ P fin ( C ) such that B ∈ Refl ( D ) \mathbf{B} \in\operatorname{Refl}(\mathbf{D}) B ∈ Refl ( D ) . Let D \mathcal{D} D be the structure with the same domain as D \mathbf{D} D which contains all the relations preserved by all operations of Clo ( D ) \operatorname{Clo}(\mathbf{D}) Clo ( D ) . Then D ∈ I ( C ) \mathcal{D} \in\operatorname{I}(\mathcal{C}) D ∈ I ( C ) . Moreover, by item (1) there exists D ′ \mathcal{D}' D ′ which is pp definable in D \mathcal{D} D such that B ∈ H ( D ′ ) \mathcal{B} \in\operatorname{H}(\mathcal{D}') B ∈ H ( D ′ ) . Clearly, D ′ ∈ I ( C ) \mathcal{D}' \in\operatorname{I}(\mathcal{C}) D ′ ∈ I ( C ) and hence B ∈ HI ( C ) \mathcal{B} \in\operatorname{HI}(\mathcal{C}) B ∈ HI ( C ) . □
We now characterise in many different ways the hardness condition from the second formulation of the tractability theorem (Theorem 5.29); quite remarkably, we do not need to assume that the involved polymorphism algebra is idempotent.
Corollary 9.8. Let B \mathcal{B} B be a structure with a finite domain and let B \mathbf{B} B be a polymorphism algebra of B \mathcal{B} B . Then the following are equivalent.
HI ( B ) \operatorname{HI}(\mathcal{B}) HI ( B ) contains K 3 K_3 K 3 ;
HI ( B ) \operatorname{HI}(\mathcal{B}) HI ( B ) contains all finite structures;
HI ( B ) \operatorname{HI}(\mathcal{B}) HI ( B ) contains ( { 0 , 1 } ; NAE ) (\{0,1\};\operatorname{NAE}) ({ 0 , 1 } ; NAE ) ;
Refl P f i n ( B ) \operatorname{Refl}\operatorname{P}^{\mathrm{fin}}(\mathbf{B}) Refl P fin ( B ) contains an algebra of size at least 2 2 2 all of whose operations are projections.
Refl P f i n ( B ) \operatorname{Refl}\operatorname{P}^{\mathrm{fin}}(\mathbf{B}) Refl P fin ( B ) contains for every finite set A A A an algebra on A A A all of whose operations are projections.
If these conditions apply then B \mathcal{B} B has a finite-signature reduct with an NP-hard CSP.
Proof. The implication from 1. to 2. follows from the fact that I ( K 3 ) \operatorname{I}(K_3) I ( K 3 ) contains all finite structures (Theorem 5.18), and that IHI ( B ) ⊆ HI ( B ) \operatorname{IHI}(\mathcal{B}) \subseteq\operatorname{HI}(\mathcal{B}) IHI ( B ) ⊆ HI ( B ) by Theorem 5.27. The implication from 2. to 3. is trivial. The equivalence of 3. and 4. follows from the fact that all polymorphisms of ( { 0 , 1 } ; NAE ) (\{0,1\};\operatorname{NAE}) ({ 0 , 1 } ; NAE ) are essentially unary (Exercise 130) and Theorem 9.7. We leave the proof of the equivalence of 5. to the reader. The final statement follows from Corollary 5.17. □
Exercise 174. Prove the equivalence of 5. with the other items of Corollary 9.8.
Birkhoff’s Theorem for Height-One Identities
A height-one identity is an identity s ≈ t s \approx t s ≈ t where the involved terms s s s and t t t have height one , i.e., each term involves exactly one function symbol. Three examples of properties that can be expressed by finite sets of height-one identities are listed below.
f ( x , y ) ≈ f ( y , x ) ( f is symmetric ) f(x,y) \approx f(y,x) \qquad(f\text{ is symmetric}) f ( x , y ) ≈ f ( y , x ) ( f is symmetric )
f ( x , x , y ) ≈ f ( x , y , x ) ≈ f ( y , x , x ) ≈ f ( x , x , x ) ( f is quasi majority ) f(x,x,y) \approx f(x,y,x) \approx f(y,x,x) \approx f(x,x,x) \qquad(f\text{ is quasi majority}) f ( x , x , y ) ≈ f ( x , y , x ) ≈ f ( y , x , x ) ≈ f ( x , x , x ) ( f is quasi majority )
f ( x , x , y ) ≈ f ( y , x , x ) ≈ f ( y , y , y ) ( f is quasi Maltsev ) f(x,x,y) \approx f(y,x,x) \approx f(y,y,y) \qquad(f\text{ is quasi Maltsev}) f ( x , x , y ) ≈ f ( y , x , x ) ≈ f ( y , y , y ) ( f is quasi Maltsev )
A non-example is furnished by the Maltsev identities f ( x , x , y ) ≈ f ( y , x , x ) ≈ y f(x,x,y) \approx f(y,x,x) \approx y f ( x , x , y ) ≈ f ( y , x , x ) ≈ y because the term y y y involves no function symbol. Identities where each term involves at most one function symbol are called linear ; so the Maltsev identities are an example of a set of linear identities. An example of a non-linear identity is the associativity law
f ( x , f ( y , z ) ) ≈ f ( f ( x , y ) , z ) . f(x,f(y,z)) \approx f(f(x,y),z). f ( x , f ( y , z )) ≈ f ( f ( x , y ) , z ) .
If A \mathbf{A} A is a τ \tau τ -algebra, then we write Minion ( A ) \operatorname{Minion}(\mathbf{A}) Minion ( A ) for the smallest function minion that contains { f A ∣ f ∈ τ } \{f^{\mathbf{A}} \mid f \in\tau\} { f A ∣ f ∈ τ } . If A \mathbf{A} A and B \mathbf{B} B are τ \tau τ -algebras then there exists a minion homomorphism ξ : Minion ( B ) → Minion ( A ) \xi\colon\operatorname{Minion}(\mathbf{B}) \to\operatorname{Minion}(\mathbf{A}) ξ : Minion ( B ) → Minion ( A ) that maps f B f^{\mathbf{B}} f B to f A f^{\mathbf{A}} f A if and only if for all f , g ∈ τ f,g \in\tau f , g ∈ τ of arity k k k and l l l and all m m m -ary projections p 1 , … , p k , q 1 , … , q l p_1,\ldots,p_k,q_1,\ldots,q_l p 1 , … , p k , q 1 , … , q l we have that f A ( p 1 , … , p k ) = g A ( q 1 , … , q l ) f^{\mathbf{A}}(p_1,\ldots,p_k)=g^{\mathbf{A}}(q_1,\ldots,q_l) f A ( p 1 , … , p k ) = g A ( q 1 , … , q l ) whenever f B ( p 1 , … , p k ) = g B ( q 1 , … , q l ) f^{\mathbf{B}}(p_1,\ldots,p_k)=g^{\mathbf{B}}(q_1,\ldots,q_l) f B ( p 1 , … , p k ) = g B ( q 1 , … , q l ) . If this map exists it must be surjective and we call it the natural minor-preserving map from Minion ( B ) \operatorname{Minion}(\mathbf{B}) Minion ( B ) to Minion ( A ) \operatorname{Minion}(\mathbf{A}) Minion ( A ) . The following theorem is a variant of Birkhoff’s theorem (Theorem 7.25) for height-one identities.
Theorem 9.9 (cf. Proposition 5.3 of [17]). Let A \mathbf{A} A and B \mathbf{B} B be τ \tau τ -algebras such that Minion ( A ) \operatorname{Minion}(\mathbf{A}) Minion ( A ) and Minion ( B ) \operatorname{Minion}(\mathbf{B}) Minion ( B ) are operation clones. Then the following are equivalent.
The natural minor-preserving map from Minion ( B ) \operatorname{Minion}(\mathbf{B}) Minion ( B ) to Minion ( A ) \operatorname{Minion}(\mathbf{A}) Minion ( A ) exists.
All height-one identities that hold in B \mathbf{B} B also hold in A \mathbf{A} A .
A ∈ Refl P ( B ) \mathbf{A} \in\operatorname{Refl} P(\mathbf{B}) A ∈ Refl P ( B ) .
Moreover, if A \mathbf{A} A and B \mathbf{B} B are finite then we can add the following to the list:
A ∈ Refl P f i n ( B ) \mathbf{A} \in\operatorname{Refl} P^{\mathrm{fin}}(\mathbf{B}) A ∈ Refl P fin ( B ) .
Proof. The equivalence of 1. and 2. is straightforward from the definitions, as in the proof of Theorem 7.25.
The proof that 2. implies 3. is similar to the proof of Theorem 7.25. For every a ∈ A a \in A a ∈ A , let π a A ∈ B B A \pi_a^{\mathbf{A}} \in B^{B^A} π a A ∈ B B A be the function that maps every tuple in B A B^A B A to its a a a -th entry. Let S S S be the subalgebra of B B A \mathbf{B}^{B^A} B B A generated by { π a A ∣ a ∈ A } \{\pi_a^{\mathbf{A}} \mid a \in A\} { π a A ∣ a ∈ A } . Define h : S → A h\colon S \to A h : S → A as
h ( f B ( π a 1 A , … , π a n A ) ) : = f A ( a 1 , … , a n ) . h\bigl(f^{\mathbf{B}}(\pi_{a_1}^{\mathbf{A}},\ldots,\pi_{a_n}^{\mathbf{A}})\bigr) := f^{\mathbf{A}}(a_1,\ldots,a_n). h ( f B ( π a 1 A , … , π a n A ) ) := f A ( a 1 , … , a n ) .
Similarly as in the proof of Theorem 7.25 one can show that h h h is well defined using that all height-one identities that hold in B \mathbf{B} B also hold in A \mathbf{A} A . Note that h h h is defined on all of S S S because Minion ( B ) \operatorname{Minion}(\mathbf{B}) Minion ( B ) is an operation clone. Let g : A → S g:A\to S g : A → S be the mapping which sends every a ∈ A a\in A a ∈ A to π a A \pi_a^A π a A . Then h h h and g g g show that A ∈ Refl ( S ) ⊆ Refl SP ( B ) = Refl P ( B ) A\in\operatorname{Refl}(S)\subseteq\operatorname{Refl}\operatorname{SP}(\mathbf{B})=\operatorname{Refl}\operatorname{P}(\mathbf{B}) A ∈ Refl ( S ) ⊆ Refl SP ( B ) = Refl P ( B ) : for all a 1 , … , a n ∈ A a_1,\ldots,a_n\in A a 1 , … , a n ∈ A
f A ( a 1 , … , a n ) = h ( f B ( g ( a 1 ) , … , g ( a n ) ) ) . f^A(a_1,\ldots,a_n)=h(f^B(g(a_1),\ldots,g(a_n))). f A ( a 1 , … , a n ) = h ( f B ( g ( a 1 ) , … , g ( a n ))) .
If A A A and B B B are finite, then B A B^A B A is finite and hence S ∈ SP f i n ( B ) S\in\operatorname{SP}^{\mathrm{fin}}(\mathbf{B}) S ∈ SP fin ( B ) , so the proof implies that A ∈ Refl P f i n ( B ) A\in\operatorname{Refl}\operatorname{P}^{\mathrm{fin}}(\mathbf{B}) A ∈ Refl P fin ( B ) .
3. 3. 3. implies 2. 2. 2. If A ∈ P ( B ) A\in\operatorname{P}(\mathbf{B}) A ∈ P ( B ) then the statement follows from Theorem 7.25 . Now suppose that A A A is a reflection of B \mathbf{B} B via the maps h : B → A h:B\to A h : B → A and g : A → B g:A\to B g : A → B . Let φ \varphi φ be the identity ∀ x 1 , … , x n : f 1 ( x i 1 , … , x i k ) = f 2 ( x j 1 , … , x j l ) \forall x_1,\ldots,x_n:f_1(x_{i_1},\ldots,x_{i_k})=f_2(x_{j_1},\ldots,x_{j_l}) ∀ x 1 , … , x n : f 1 ( x i 1 , … , x i k ) = f 2 ( x j 1 , … , x j l ) for f 1 , f 2 ∈ τ f_1,f_2\in\tau f 1 , f 2 ∈ τ and suppose that B ⊨ φ \mathbf{B}\models\varphi B ⊨ φ . For all a 1 , … , a n ∈ A a_1,\ldots,a_n\in A a 1 , … , a n ∈ A we have
f 1 A ( a i 1 , … , a i k ) = h ( f 1 B ( g ( a i 1 ) , … , g ( a i k ) ) ) = h ( f 2 B ( g ( a j 1 ) , … , g ( a j l ) ) ) = f 2 A ( a j 1 , … , a j l ) . \begin{aligned}
f_1^A(a_{i_1},\ldots,a_{i_k}) &= h(f_1^B(g(a_{i_1}),\ldots,g(a_{i_k})))\\
&=h(f_2^B(g(a_{j_1}),\ldots,g(a_{j_l})))=f_2^A(a_{j_1},\ldots,a_{j_l}).
\end{aligned} f 1 A ( a i 1 , … , a i k ) = h ( f 1 B ( g ( a i 1 ) , … , g ( a i k ))) = h ( f 2 B ( g ( a j 1 ) , … , g ( a j l ))) = f 2 A ( a j 1 , … , a j l ) .
Since a 1 , … , a n a_1,\ldots,a_n a 1 , … , a n were chosen arbitrarily, we have that A ⊨ φ \mathbf{A}\models\varphi A ⊨ φ .
Exercise 175. Prove a minion version of Cayley’s theorem: show that every minion is isomorphic to a function minion.
Exercise 176. Let Σ \Sigma Σ be a finite set of height-one identities. Assume that there exists an algorithm with the following properties:
it takes as input two finite τ \tau τ -structures A \mathbf{A} A and B \mathbf{B} B ;
if the algorithm returns ‘no’ then A ↛ B \mathbf{A}\not\to\mathbf{B} A → B ;
it runs in polynomial time in the size of A \mathbf{A} A and B \mathbf{B} B ;
if the polymorphisms of B \mathbf{B} B satisfy Σ \Sigma Σ , and the algorithm returns ‘yes’, then A → B \mathbf{A}\to\mathbf{B} A → B .
Show that:
if Σ \Sigma Σ expresses the existence of a majority operation, then the path-consistency procedure P C H \mathrm{PC}_H PC H provides an example for such an algorithm A A A (viewing the graph H H H as part of the input of P C H \mathrm{PC}_H PC H );
if there is such an algorithm A A A for Σ \Sigma Σ , then there exists a polynomial-time algorithm that decides for a given finite τ \tau τ -structure B \mathbf{B} B whether B \mathbf{B} B has polymorphisms that satisfy Σ \Sigma Σ .
Minion Homomorphisms and Primitive Positive Constructions
We have characterised primitive positive constructions in terms of polymorphism algebras and the reflection operator, and then we have characterised varieties that are additionally closed under reflection in terms of minion homomorphisms. In this section we present straightforward combinations of these links that are elegant and convenient for later use. The following is analogous to Corollary 7.50 for primitive positive constructions and clone homomorphisms.
Corollary 9.10. Let B \mathbf{B} B and A \mathbf{A} A be finite structures. Then A ∈ HI ( B ) \mathbf{A}\in\operatorname{HI}(\mathbf{B}) A ∈ HI ( B ) if and only if there exists a minion homomorphism from Pol ( B ) \operatorname{Pol}(\mathbf{B}) Pol ( B ) to Pol ( A ) \operatorname{Pol}(\mathbf{A}) Pol ( A ) .
Figure 15. A dictionary between corresponding notions.
Proof. Combine Theorem 9.7 with Theorem 9.9 .
Remark 9.11. By inspection of the proof, one can see that the forward implication remains true even if A \mathcal{A} A and B \mathcal{B} B have infinite domains.
Corollary 9.12. Let B \mathbb{B} B be a finite structure. Then there exists a minion homomorphism from Pol ( B ) \operatorname{Pol}(\mathbb{B}) Pol ( B ) to Proj \operatorname{Proj} Proj if and only if K 3 ∈ HI ( B ) K_3 \in\operatorname{HI}(\mathbb{B}) K 3 ∈ HI ( B ) .
Proof. Let B \mathbf{B} B be an algebra such that Minion ( B ) = Pol ( B ) \operatorname{Minion}(\mathbf{B}) = \operatorname{Pol}(\mathbb{B}) Minion ( B ) = Pol ( B ) . Corollary 9.8 states that K 3 ∈ HI ( B ) K_3 \in\operatorname{HI}(\mathbb{B}) K 3 ∈ HI ( B ) if and only if Refl P f i n ( B ) \operatorname{Refl} \operatorname{P}^{\mathrm{fin}}(\mathbf{B}) Refl P fin ( B ) contains an algebra of size at least 2 all of whose operations are projections, and whose clone is therefore Proj \operatorname{Proj} Proj . Theorem 9.9 implies that this is equivalent to the existence of a minor-preserving map to Proj \operatorname{Proj} Proj .
Proposition 9.13. For every operation clone C \mathcal{C} C on a finite set C C C there exists an idempotent operation clone D \mathcal{D} D on a finite set D D D , with ∣ D ∣ ≤ ∣ C ∣ |D| \leq|C| ∣ D ∣ ≤ ∣ C ∣ , such that there exists a minion homomorphism from C \mathcal{C} C to D \mathcal{D} D and from D \mathcal{D} D to C \mathcal{C} C .
Proof. Let B \mathbb{B} B be a structure such that Pol ( B ) = C \operatorname{Pol}(\mathbb{B}) = \mathcal{C} Pol ( B ) = C (such a B \mathbb{B} B exists by Proposition 6.5 ). Let C \mathbb{C} C be the core of B \mathbb{B} B (which exists by the generalisation of Proposition 2.7 to relational structures). Let D \mathbb{D} D be the expansion of C \mathbb{C} C by all unary singleton relations. We have that D ∈ HI ( B ) \mathbb{D} \in\operatorname{HI}(\mathbb{B}) D ∈ HI ( B ) by Proposition 5.26 . It follows from Corollary 9.10 that there exists a minion homomorphism from C = Pol ( B ) \mathcal{C} = \operatorname{Pol}(\mathbb{B}) C = Pol ( B ) to the idempotent clone D : = Pol ( D ) \mathcal{D} := \operatorname{Pol}(\mathbb{D}) D := Pol ( D ) . Conversely, we have that D ⊆ Pol ( C ) \mathcal{D} \subseteq\operatorname{Pol}(\mathbb{C}) D ⊆ Pol ( C ) , and Pol ( C ) \operatorname{Pol}(\mathbb{C}) Pol ( C ) has a minion homomorphism to Pol ( B ) = C \operatorname{Pol}(\mathbb{B}) = \mathcal{C} Pol ( B ) = C since B ∈ H ( C ) \mathbb{B} \in\operatorname{H}(\mathbb{C}) B ∈ H ( C ) and again by Corollary 9.10 .
Exercise 177. Prove the claim in Remark 9.11.
Exercise 178. Show that every finite structure B \mathbb{B} B with totally symmetric polymorphisms of all arities can be pp-constructed in ( { 0 , 1 } ; { 0 , 1 } 3 ∖ { ( 1 , 1 , 0 ) } , { 0 } , { 1 } ) (\{0,1\}; \{0,1\}^{3} \setminus\{(1,1,0)\}, \{0\}, \{1\}) ({ 0 , 1 } ; { 0 , 1 } 3 ∖ {( 1 , 1 , 0 )} , { 0 } , { 1 }) .
Hints: Exercise 129, Lemma 6.31 , Corollary 9.10 , Theorem 3.18 , Theorem 3.15 .
Taylor Terms
The following goes back to Walter Taylor [111]. We slightly deviate from the historical definition in that we do not require idempotence – this allows us to give stronger formulations of several results in the following.
Definition 9.14 (Taylor operations). A function f : B n → B f : B^{n} \to B f : B n → B , for n ≥ 2 n \ge2 n ≥ 2 , is called a Taylor operation if for every i ∈ [ n ] i \in[n] i ∈ [ n ] there are α , β : [ n ] → [ 2 ] \alpha, \beta: [n] \to[2] α , β : [ n ] → [ 2 ] such that f α = f β f_{\alpha} = f_{\beta} f α = f β and α ( i ) ≠ β ( i ) \alpha(i) \ne\beta(i) α ( i ) = β ( i ) .
Examples for Taylor operations are binary commutative operations, majority operations, and Maltsev operations. Since we do not insist on idempotence, also quasi majority operations (Exercise 67) are examples of Taylor operations.
A Taylor term of a τ \tau τ -algebra B is a τ \tau τ -term t ( x 1 , … , x n ) t(x_{1}, \ldots, x_{n}) t ( x 1 , … , x n ) , for n ≥ 2 n \ge2 n ≥ 2 , such that t B t^{\mathbf{B}} t B is a Taylor operation. Note that t t t is a Taylor term if and only if it satisfies a set of n n n height-one identities that can be written as
t ( x ? ? ⋯ ? ? x ? ⋮ ⋮ ? ⋱ ⋱ ⋮ ⋮ ⋱ x ? ? ⋯ ⋯ ? x ) ≈ t ( y ? ? ⋯ ? ? y ? ⋮ ⋮ ? ⋱ ⋱ ⋮ ⋮ ⋱ y ? ? ⋯ ⋯ ? y ) (45) t\begin{pmatrix}
x & ? & ? & \cdots& ? \\
? & x & ? & & \vdots\\
\vdots& ? & \ddots& \ddots& \vdots\\
\vdots& & \ddots& x & ? \\
? & \cdots& \cdots& ? & x
\end{pmatrix}
\approx
t\begin{pmatrix}
y & ? & ? & \cdots& ? \\
? & y & ? & & \vdots\\
\vdots& ? & \ddots& \ddots& \vdots\\
\vdots& & \ddots& y & ? \\
? & \cdots& \cdots& ? & y
\end{pmatrix} \tag*{(45)} t x ? ⋮ ⋮ ? ? x ? ⋯ ? ? ⋱ ⋱ ⋯ ⋯ ⋱ x ? ? ⋮ ⋮ ? x ≈ t y ? ⋮ ⋮ ? ? y ? ⋯ ? ? ⋱ ⋱ ⋯ ⋯ ⋱ y ? ? ⋮ ⋮ ? y (45)
where t t t is applied row-wise and ? stands for either x x x or y y y .
Walter Taylor did not just introduce Taylor operations, but he also found a beautiful statement about their existence (Theorem 9.16). In the proof of this statement, we need the following important observation about the star composition in idempotent algebras.
Lemma 9.15. For n ∈ N n \in\mathbb{N} n ∈ N , let ( A ; f 1 , … , f n ) (A; f_{1}, \ldots, f_{n}) ( A ; f 1 , … , f n ) be an idempotent algebra. Then there exists g ∈ Clo ( A ) g \in\operatorname{Clo}(A) g ∈ Clo ( A ) such that for every f ∈ { f 1 , … , f n } f \in\{f_{1}, \ldots, f_{n}\} f ∈ { f 1 , … , f n } there exists α \alpha α such that g α = f g_{\alpha} = f g α = f .
Proof. The statement is clear if n ≤ 1 n \le1 n ≤ 1 . First consider the case that n = 2 n = 2 n = 2 . Let m m m be the arity of f 1 f_{1} f 1 and let l l l be the arity of f 2 f_{2} f 2 . Note that
Clo ( A ) ⊨ ( f 1 = comp m m l ( f 1 ⋆ f 2 , π 1 m , … , π m m ⏟ l times , π 1 m , … , π m m ⏟ l times , … , π 1 m , … , π m m ⏟ l times ) ) (46) \operatorname{Clo}(A) \models\left(f_{1} = \operatorname{comp}_{m}^{ml}\left(f_{1} \star f_{2}, \underbrace{\pi_{1}^{m}, \ldots, \pi_{m}^{m}}_{l\ \text{times}}, \underbrace{\pi_{1}^{m}, \ldots, \pi_{m}^{m}}_{l\ \text{times}}, \ldots, \underbrace{\pi_{1}^{m}, \ldots, \pi_{m}^{m}}_{l\ \text{times}}\right)\right) \tag*{(46)} Clo ( A ) ⊨ f 1 = comp m m l f 1 ⋆ f 2 , l times π 1 m , … , π m m , l times π 1 m , … , π m m , … , l times π 1 m , … , π m m (46)
and
Clo ( A ) ⊨ ( f 2 = comp l m l ( f 1 ⋆ f 2 , π 1 l , … , π l l ⏟ m times , π 1 l , … , π l l ⏟ m times , … , π 1 l , … , π l l ⏟ m times ) ) (47) \operatorname{Clo}(A) \models\left(f_{2} = \operatorname{comp}_{l}^{ml}\left(f_{1} \star f_{2}, \underbrace{\pi_{1}^{l}, \ldots, \pi_{l}^{l}}_{m\ \text{times}}, \underbrace{\pi_{1}^{l}, \ldots, \pi_{l}^{l}}_{m\ \text{times}}, \ldots, \underbrace{\pi_{1}^{l}, \ldots, \pi_{l}^{l}}_{m\ \text{times}}\right)\right) \tag*{(47)} Clo ( A ) ⊨ f 2 = comp l m l f 1 ⋆ f 2 , m times π 1 l , … , π l l , m times π 1 l , … , π l l , … , m times π 1 l , … , π l l (47)
since A is idempotent. The general case can be shown easily by induction on n n n .
Theorem 9.16. Let B be an idempotent algebra. Then the following are equivalent.
(1) B has a Taylor term t t t .
(2) there is no minion homomorphism from Clo ( B ) \operatorname{Clo}(\mathbf{B}) Clo ( B ) to Proj \operatorname{Proj} Proj .
Proof. To show that (1) implies (2), suppose for contradiction that there is a minion homomorphism ξ \xi ξ from Clo ( B ) \operatorname{Clo}(\mathbf{B}) Clo ( B ) to Proj \operatorname{Proj} Proj . By definition of Proj \operatorname{Proj} Proj we have ξ ( t B ) = π l n \xi(t^{\mathbf{B}}) = \pi_{l}^{n} ξ ( t B ) = π l n for some l ≤ n l \le n l ≤ n . By assumption, there are α , β : [ n ] → [ 2 ] \alpha, \beta: [n] \to[2] α , β : [ n ] → [ 2 ] such that ( t B ) α = ( t B ) β (t^{\mathbf{B}})_{\alpha} = (t^{\mathbf{B}})_{\beta} ( t B ) α = ( t B ) β and α ( l ) ≠ β ( l ) \alpha(l) \ne\beta(l) α ( l ) = β ( l ) . Since ξ ( t B ) = π 1 n \xi(t^{\mathbb{B}})=\pi_1^n ξ ( t B ) = π 1 n and ξ \xi ξ is a minion homomorphism, we therefore obtain that π 1 2 = π 2 2 \pi_1^2=\pi_2^2 π 1 2 = π 2 2 , which does not hold in Proj , a contradiction.
To show the converse implication, suppose that B \mathbb{B} B does not have a Taylor term. We have to show that Clo ( B ) \operatorname{Clo}(\mathbb{B}) Clo ( B ) has a minion homomorphism to Proj . By Lemma 9.4, it suffices to show that every primitive positive sentence ϕ \phi ϕ in the language of minions that holds in Clo ( B ) \operatorname{Clo}(\mathbb{B}) Clo ( B ) also holds in Proj . If g 1 , … , g m g_1,\ldots,g_m g 1 , … , g m are the existentially quantified variables in ϕ \phi ϕ , then by Lemma 9.15 there exists g ∈ Clo ( B ) ( n ) g\in\operatorname{Clo}(\mathbb{B})^{(n)} g ∈ Clo ( B ) ( n ) , for some n n n , such that every g i g_i g i , i ∈ [ m ] i\in[m] i ∈ [ m ] , is a minor g α i g_{\alpha_i} g α i of g g g . Hence, it suffices to define a minion homomorphism from Minion ( ( B ; g ) ) \operatorname{Minion}((\mathbb{B};g)) Minion (( B ; g )) to Proj . By assumption, g g g is not a Taylor term, so there exists an argument i i i such that for all α , β : [ n ] → [ 2 ] \alpha,\beta:[n]\to[2] α , β : [ n ] → [ 2 ] we have α ( i ) = β ( i ) \alpha(i)=\beta(i) α ( i ) = β ( i ) or g α ≠ g β g_\alpha\ne g_\beta g α = g β . For α : [ n ] → [ k ] \alpha:[n]\to[k] α : [ n ] → [ k ] , define ξ ( g α ) : = π α ( i ) k \xi(g_\alpha):=\pi_{\alpha(i)}^k ξ ( g α ) := π α ( i ) k . This map is well-defined because if g α = g β g_\alpha=g_\beta g α = g β for α , β : [ n ] → [ k ] \alpha,\beta:[n]\to[k] α , β : [ n ] → [ k ] , then ( g α ) γ = ( g β ) γ (g_\alpha)_\gamma=(g_\beta)_\gamma ( g α ) γ = ( g β ) γ for all γ : [ k ] → [ 2 ] \gamma:[k]\to[2] γ : [ k ] → [ 2 ] , and hence γ ∘ α ( i ) = γ ∘ β ( i ) \gamma\circ\alpha(i)=\gamma\circ\beta(i) γ ∘ α ( i ) = γ ∘ β ( i ) for all γ : [ k ] → [ 2 ] \gamma:[k]\to[2] γ : [ k ] → [ 2 ] , which implies that α ( i ) = β ( i ) \alpha(i)=\beta(i) α ( i ) = β ( i ) . Moreover, ξ \xi ξ is a minion homomorphism because ξ ( g α ) = π α ( i ) k = ( π i n ) α = ξ ( g ) α \xi(g_\alpha)=\pi_{\alpha(i)}^k=(\pi_i^n)_\alpha=\xi(g)_\alpha ξ ( g α ) = π α ( i ) k = ( π i n ) α = ξ ( g ) α .
Remark 9.17. The original statement of Taylor is Theorem 9.16 with clone homomorphism instead of minion homomorphism; the version with minion homomorphisms in Theorem 9.16 is the statement we really care about in this course and leads to an easier proof.
The following lemma should be clear from the results that we have already seen.
Lemma 9.18. Let B \mathbb{B} B and C \mathbb{C} C be homomorphically equivalent structures. Then B \mathbb{B} B has a Taylor polymorphism if and only if C \mathbb{C} C has a Taylor polymorphism.
Proof. Let h h h be a homomorphism from B \mathbb{B} B to C \mathbb{C} C , and g g g be a homomorphism from C \mathbb{C} C to B \mathbb{B} B . Suppose that f f f is a Taylor polymorphism for B \mathbb{B} B of arity n n n . Then ( x 1 , … , x n ) ↦ h ( f ( g ( x 1 ) , … , g ( x n ) ) ) (x_1,\ldots,x_n)\mapsto h(f(g(x_1),\ldots,g(x_n))) ( x 1 , … , x n ) ↦ h ( f ( g ( x 1 ) , … , g ( x n ))) is a Taylor polymorphism of C \mathbb{C} C .
:::
Corollary 9.19. Let B \mathbb{B} B be a finite structure. Then the following are equivalent.
K 3 ∉ HI ( B ) K_3\notin\operatorname{HI}(\mathbb{B}) K 3 ∈ / HI ( B ) .
B \mathbb{B} B has a Taylor polymorphism.
Pol ( B ) \operatorname{Pol}(\mathbb{B}) Pol ( B ) has no minion homomorphism to Proj .
If these conditions do not hold then B \mathbb{B} B has a finite-signature reduct with an NP-hard CSP.
Proof. The equivalence of 1. and 3. is Corollary 9.12. Now suppose that K 3 ∉ HI ( B ) K_3\notin\operatorname{HI}(\mathbb{B}) K 3 ∈ / HI ( B ) . If B ′ \mathbb{B}' B ′ is the core of B \mathbb{B} B , and C \mathbb{C} C is the expansion of B ′ \mathbb{B}' B ′ by all unary singleton relations, then C ( H ( B ) ) ⊆ HI ( B ) \operatorname{C}(\operatorname{H}(\mathbb{B}))\subseteq\operatorname{HI}(\mathbb{B}) C ( H ( B )) ⊆ HI ( B ) implies that K 3 K_3 K 3 is not pp constructible in C \mathbb{C} C . Hence, the idempotent clone Pol ( C ) \operatorname{Pol}(\mathbb{C}) Pol ( C ) does not have a minion homomorphism to Proj . Theorem 9.16 shows that C \mathbb{C} C and thus also B ′ \mathbb{B}' B ′ must have a Taylor polymorphism. Lemma 9.18 implies that B \mathbb{B} B has a Taylor polymorphism.
Note that the existence of Taylor polymorphisms is preserved by minion homomorphisms, and since Proj does not have a Taylor operation we have that 2. implies 3.
The final statement follows from Corollary 5.17.
Theorem 9.20 (Tractability Theorem, Version 3). Let B \mathbb{B} B be a relational structure with finite domain and finite signature. If B \mathbb{B} B has a Taylor polymorphism, then CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) is in P P P . Otherwise, CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) is NP-complete.
Proof. An immediate consequence of Corollary 9.19 and Theorem 5.29 .
A clone is said to be Taylor if it has a Taylor operation, and an algebra is called Taylor if it has a Taylor term operation.
Remark 9.21. We will from now on often use the formulation ‘let A be a finite Taylor algebra’ instead of ‘let A be a finite algebra such that Clo(A) does not have a minion homomorphism to Proj’, even if we can avoid in the proofs the use of Taylor operations altogether. The reason is that the assumption is shorter to state, and equivalent by the results of this section (see Exercise 179 ).
Exercise 179. Show that the assumption in Theorem 9.16 that B is idempotent can be replaced by the assumption that its domain is finite.
Exercise 180. Show that a finite structure without a Taylor polymorphism pp-constructs all finite structures.
Exercise 181. Show that if A is a finite idempotent algebra such that HS(A) does not contain an abelian algebra with at least two elements, then A has a Taylor term.
Hint. Theorem 7.52 and Corollary 9.19 .
Exercise 182. A cube operation is an operation c c c of arity n ≥ 3 n \ge3 n ≥ 3 which satisfies for every i ∈ { 1 , … , n } i \in\{1,\ldots,n\} i ∈ { 1 , … , n } an identity of the form c ( z 1 , … , z n ) ≈ y c(z_1,\ldots,z_n) \approx y c ( z 1 , … , z n ) ≈ y where z 1 , … , z n ∈ { x , y } z_1,\ldots,z_n \in\{x,y\} z 1 , … , z n ∈ { x , y } such that z i = x z_i = x z i = x .
Present the definition of cube operations in a similar way as Taylor operations are presented in (43).
Give two different ternary cube operations on a two-element set.
Show that every operation c c c that satisfies
c ( x , x , x , x , y , y , y ) ≈ y c ( x , x , y , y , x , x , y ) ≈ y c ( x , y , x , y , x , y , x ) ≈ y \begin{aligned}
c(x,x,x,x,y,y,y) &\approx y\\
c(x,x,y,y,x,x,y) &\approx y\\
c(x,y,x,y,x,y,x) &\approx y
\end{aligned} c ( x , x , x , x , y , y , y ) c ( x , x , y , y , x , x , y ) c ( x , y , x , y , x , y , x ) ≈ y ≈ y ≈ y is a cube operation.
Show that the clone generated by a cube operation contains an operation f f f of arity m : = 2 k − 1 m := 2^k - 1 m := 2 k − 1 , for some k ≥ 2 k \ge2 k ≥ 2 , satisfying f ( z 1 , j , … , z m , j ) ≈ y f(z_{1,j},\ldots,z_{m,j}) \approx y f ( z 1 , j , … , z m , j ) ≈ y for every j ∈ { 1 , … , k } j \in\{1,\ldots,k\} j ∈ { 1 , … , k } , where z 1 , 1 , … , z m , k ∈ { x , y } z_{1,1},\ldots,z_{m,k} \in\{x,y\} z 1 , 1 , … , z m , k ∈ { x , y } are such that ( z 1 , 1 , … , z 1 , k ) , … , ( z m , 1 , … , z m , k ) (z_{1,1},\ldots,z_{1,k}),\ldots,(z_{m,1},\ldots,z_{m,k}) ( z 1 , 1 , … , z 1 , k ) , … , ( z m , 1 , … , z m , k ) enumerates { x , y } k ∖ { ( y , … , y ) } \{x,y\}^k \setminus\{(y,\ldots,y)\} { x , y } k ∖ {( y , … , y )} .
Arc-consistency Revisited
In this section we revisit the arc-consistency procedure from § 3 , generalised to arbitrary relational structures with finite domain and finite signature, in the light of minions and primitive positive constructions.
Definition 9.22. The minion M A C \mathrm{M}_{\mathrm{AC}} M AC is defined as follows. For n ≥ 1 n \ge1 n ≥ 1 , the set M A C ( n ) \mathrm{M}_{\mathrm{AC}}^{(n)} M AC ( n ) consists of the set of all non-empty subsets of { 1 , … , n } \{1,\ldots,n\} { 1 , … , n } . For α : [ n ] → [ m ] \alpha\colon[n]\to[m] α : [ n ] → [ m ] and f ∈ M A C ( n ) f\in\mathrm{M}_{\mathrm{AC}}^{(n)} f ∈ M AC ( n ) , we define f α f_{\alpha} f α to be { α ( a ) ∣ a ∈ f } \{\alpha(a)\mid a\in f\} { α ( a ) ∣ a ∈ f } .
Definition 9.24 (A C B \mathrm{AC}_{\mathcal{B}} AC B ). For a structure B \mathcal{B} B with finite domain and finite relational signature τ \tau τ , we write A C B \mathrm{AC}_{\mathcal{B}} AC B for the generalisation of the arc-consistency procedure A C H \mathrm{AC}_{H} AC H from digraphs H H H to general relational structures B \mathcal{B} B (Exercise 92).
We also generalise the concept of arc-consistency for digraphs from Section 3.
Definition 9.25 (Arc-consistency). Let B \mathcal{B} B be a structure with the relational signature τ \tau τ . A finite τ \tau τ -structure A \mathcal{A} A together with a set L ( a ) ⊆ B L(a)\subseteq B L ( a ) ⊆ B for every a ∈ A a\in\mathcal{A} a ∈ A is called arc-consistent (with respect to B \mathcal{B} B ) if for every R ∈ τ R\in\tau R ∈ τ of arity k k k , ( a 1 , … , a k ) ∈ R A (a_1,\ldots,a_k)\in R^{\mathcal{A}} ( a 1 , … , a k ) ∈ R A , i ∈ [ k ] i\in[k] i ∈ [ k ] , c ∈ L ( a i ) c\in L(a_i) c ∈ L ( a i ) there exists ( b 1 , … , b k ) ∈ R B (b_1,\ldots,b_k)\in R^{\mathcal{B}} ( b 1 , … , b k ) ∈ R B such that b i = c b_i=c b i = c and b j ∈ L ( a j ) b_j\in L(a_j) b j ∈ L ( a j ) for all j ∈ [ k ] j\in[k] j ∈ [ k ] .
Note that for any two finite τ \tau τ -structures A \mathcal{A} A and B \mathcal{B} B , if L ( a ) ⊆ B L(a)\subseteq B L ( a ) ⊆ B is the list computed for a ∈ A a\in\mathcal{A} a ∈ A by A C B \mathrm{AC}_{\mathcal{B}} AC B at the final stage of the algorithm, then A \mathcal{A} A together with these sets L ( a ) L(a) L ( a ) is arc-consistent.
Theorem 9.26. Let B \mathcal{B} B be a finite structure. Then the following are equivalent.
CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) is solved by A C B \mathrm{AC}_{\mathcal{B}} AC B .
P ( B ) → B P(\mathcal{B})\to\mathcal{B} P ( B ) → B .
Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) has totally symmetric polymorphisms of all arities.
M A C \mathrm{M}_{\mathrm{AC}} M AC has a minion homomorphism to Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) .
B \mathcal{B} B has a primitive positive construction in ( { 0 , 1 } ; { 0 } , { 1 } , { 0 , 1 } 3 ∖ { ( 1 , 1 , 0 ) } ) (\{0,1\};\{0\},\{1\},\{0,1\}^{3}\setminus\{(1,1,0)\}) ({ 0 , 1 } ; { 0 } , { 1 } , { 0 , 1 } 3 ∖ {( 1 , 1 , 0 )}) .
Proof. 1 ⇔ \Leftrightarrow ⇔ 2 was already shown for digraphs in Theorem 3.15 and generalised to general structures in Exercise 92.
2 ⇔ \Leftrightarrow ⇔ 3 was already shown for digraphs in Theorem 3.15 and generalised to general structures in Exercise 93.
2 ⇒ \Rightarrow ⇒ 4. Suppose that there exists a homomorphism h : P ( B ) → B h\colon P(\mathcal{B})\to\mathcal{B} h : P ( B ) → B from the powerset structure of B \mathcal{B} B to B \mathcal{B} B . For every n ≥ 1 n\ge1 n ≥ 1 and every nonempty set S ⊆ [ n ] S\subseteq[n] S ⊆ [ n ] , define the n n n -ary operation
ξ ( S ) ( x 1 , … , x n ) : = h ( { x i ∣ i ∈ S } ) . \xi(S)(x_1,\ldots,x_n):=h(\{x_i\mid i\in S\}). ξ ( S ) ( x 1 , … , x n ) := h ({ x i ∣ i ∈ S }) . We first verify that ξ ( S ) \xi(S) ξ ( S ) is a polymorphism of B \mathcal{B} B . Let R R R be a k k k -ary relation symbol and let
b ˉ r = ( b 1 r , … , b k r ) ∈ R B ( r ∈ [ n ] ) . \bar{b}^{r}=(b_1^{r},\ldots,b_k^{r})\in R^{\mathcal{B}}\qquad(r\in[n]). b ˉ r = ( b 1 r , … , b k r ) ∈ R B ( r ∈ [ n ]) . For every j ∈ [ k ] j\in[k] j ∈ [ k ] , put
U j : = { b j r ∣ r ∈ S } . U_j:=\{b_j^{r}\mid r\in S\}. U j := { b j r ∣ r ∈ S } . Then ( U 1 , … , U k ) ∈ R P ( B ) (U_1,\ldots,U_k)\in R^{P(\mathcal{B})} ( U 1 , … , U k ) ∈ R P ( B ) . Indeed, for every j ∈ [ k ] j\in[k] j ∈ [ k ] and every c ∈ U j c\in U_j c ∈ U j , there exists an r ∈ S r\in S r ∈ S such that c = b j r c=b_j^{r} c = b j r , and the tuple b ˉ r ∈ R B \bar{b}^{r}\in R^{\mathcal{B}} b ˉ r ∈ R B witnesses that c c c has a support whose ℓ \ell ℓ -th coordinate belongs to U ℓ U_\ell U ℓ for every ℓ ∈ [ k ] \ell\in[k] ℓ ∈ [ k ] . Since h h h is a homomorphism, it follows that
( h ( U 1 ) , … , h ( U k ) ) ∈ R B . (h(U_1),\ldots,h(U_k))\in R^{\mathcal{B}}. ( h ( U 1 ) , … , h ( U k )) ∈ R B .
This tuple is obtained by applying ξ ( S ) \xi(S) ξ ( S ) coordinatewise to b ‾ 1 , … , b ‾ n \overline{b}^{1},\ldots,\overline{b}^{n} b 1 , … , b n . Hence ξ ( S ) ∈ Pol ( B ) \xi(S) \in\operatorname{Pol}(\mathcal{B}) ξ ( S ) ∈ Pol ( B ) .
It remains to verify preservation of minors. Let α : [ n ] → [ m ] \alpha: [n] \to[m] α : [ n ] → [ m ] . Since
S α = { α ( i ) ∣ i ∈ S } , S_{\alpha} = \{\alpha(i) \mid i \in S\}, S α = { α ( i ) ∣ i ∈ S } ,
we have, for all x 1 , … , x m ∈ B x_{1},\ldots,x_{m} \in B x 1 , … , x m ∈ B ,
ξ ( S α ) ( x 1 , … , x m ) = h ( { x j ∣ j ∈ S α } ) = h ( { x α ( i ) ∣ i ∈ S } ) = ξ ( S ) ( x α ( 1 ) , … , x α ( n ) ) = ξ ( S ) α ( x 1 , … , x m ) . \begin{aligned}
\xi(S_{\alpha})(x_{1},\ldots,x_{m}) &= h(\{x_{j} \mid j \in S_{\alpha}\}) \\
&= h(\{x_{\alpha(i)} \mid i \in S\}) \\
&= \xi(S)(x_{\alpha(1)},\ldots,x_{\alpha(n)}) \\
&= \xi(S)_{\alpha}(x_{1},\ldots,x_{m}).
\end{aligned} ξ ( S α ) ( x 1 , … , x m ) = h ({ x j ∣ j ∈ S α }) = h ({ x α ( i ) ∣ i ∈ S }) = ξ ( S ) ( x α ( 1 ) , … , x α ( n ) ) = ξ ( S ) α ( x 1 , … , x m ) .
Therefore ξ : M A C → Pol ( B ) \xi: \mathcal{M}_{\mathrm{AC}} \to\operatorname{Pol}(\mathcal{B}) ξ : M AC → Pol ( B ) is a minion homomorphism. This proves 2 ⇒ 4 2 \Rightarrow4 2 ⇒ 4 .
4 ⇒ 3 4 \Rightarrow3 4 ⇒ 3 : let ξ \xi ξ be the minion homomorphism from M A C \mathcal{M}_{\mathrm{AC}} M AC to Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) . Then the operation s n : = ξ ( { 1 , … , n } ) ∈ Pol ( B ) s_{n} := \xi(\{1,\ldots,n\}) \in\operatorname{Pol}(\mathcal{B}) s n := ξ ({ 1 , … , n }) ∈ Pol ( B ) is totally symmetric and of arity n n n . Indeed, suppose that a 1 , … , a n , b 1 , … , b n ∈ B a_{1},\ldots,a_{n},b_{1},\ldots,b_{n} \in B a 1 , … , a n , b 1 , … , b n ∈ B are such that { a 1 , … , a n } = { b 1 , … , b n } = { c 1 , … , c m } \{a_{1},\ldots,a_{n}\} = \{b_{1},\ldots,b_{n}\} = \{c_{1},\ldots,c_{m}\} { a 1 , … , a n } = { b 1 , … , b n } = { c 1 , … , c m } for some m ≤ n m \le n m ≤ n such that c 1 , … , c m c_{1},\ldots,c_{m} c 1 , … , c m are pairwise distinct. Then there are α 1 , α 2 : [ n ] → [ m ] \alpha_{1},\alpha_{2}: [n] \to[m] α 1 , α 2 : [ n ] → [ m ] such that a i = c α 1 ( i ) a_{i} = c_{\alpha_{1}(i)} a i = c α 1 ( i ) and b i = c α 2 ( i ) b_{i} = c_{\alpha_{2}(i)} b i = c α 2 ( i ) for every i ∈ [ n ] i \in[n] i ∈ [ n ] . Since every c j c_{j} c j occurs in both tuples, [ n ] α 1 = [ m ] = [ n ] α 2 [n]^{\alpha_{1}} = [m] = [n]^{\alpha_{2}} [ n ] α 1 = [ m ] = [ n ] α 2 in M A C \mathcal{M}_{\mathrm{AC}} M AC . Hence, using s n = ξ ( [ n ] ) s_{n} = \xi([n]) s n = ξ ([ n ]) and preservation of minors,
s n ( a 1 , … , a n ) = ( s n ) α 1 ( c 1 , … , c m ) = ξ ( [ m ] ) ( c 1 , … , c m ) = ( s n ) α 2 ( c 1 , … , c m ) = s n ( b 1 , … , b n ) . s_{n}(a_{1},\ldots,a_{n}) = (s_{n})_{\alpha_{1}}(c_{1},\ldots,c_{m}) = \xi([m])(c_{1},\ldots,c_{m}) = (s_{n})_{\alpha_{2}}(c_{1},\ldots,c_{m}) = s_{n}(b_{1},\ldots,b_{n}). s n ( a 1 , … , a n ) = ( s n ) α 1 ( c 1 , … , c m ) = ξ ([ m ]) ( c 1 , … , c m ) = ( s n ) α 2 ( c 1 , … , c m ) = s n ( b 1 , … , b n ) .
4 ⇔ 5 4 \Leftrightarrow5 4 ⇔ 5 : Corollary 9.10 and Remark 9.23.
Later, Theorem 9.26 will be the blueprint for characterisations of various other algorithms. To prove these characterisations, we need to generalise P ( B ) \mathcal{P}(\mathcal{B}) P ( B ) from M A C \mathcal{M}_{\mathrm{AC}} M AC to arbitrary minions M \mathcal{M} M , and this is the content of the next section.
Exercise 183. Let A \mathcal{A} A and B \mathcal{B} B be finite structures with finite relational signature τ \tau τ and let B \mathcal{B} B be an algebra such that Clo ( B ) = Pol ( B ) \operatorname{Clo}(\mathcal{B}) = \operatorname{Pol}(\mathcal{B}) Clo ( B ) = Pol ( B ) . Show that if L ( a ) L(a) L ( a ) is the list computed by AC B \operatorname{AC}_{\mathcal{B}} AC B on input A \mathcal{A} A for a ∈ A a \in A a ∈ A , then L ( a ) ≤ B L(a) \le\mathcal{B} L ( a ) ≤ B .
The Free Structure
The definition of free structures first appeared in ‘the wonderland paper’ [17], and also plays a fundamental role for the theory of promise CSPs [9]; we essentially follow the presentation there (Definition 4.1). However, unlike there, we use the following notational convention: we allow arbitrary finite sets A A A as index sets for tuples, rather than only sets of the form [ n ] = { 1 , … , n } [n] = \{1,\ldots,n\} [ n ] = { 1 , … , n } . Since n n n -tuples from a set A A A can be formalised as functions from [ n ] [n] [ n ] to A A A , this is just a small stretch of the usual notation. We already used the notation B A B^{A} B A for the set of all functions from A A A to B B B , i.e., for a power of B B B where the factors are indexed by A A A . Likewise, B A → C B^{A} \to C B A → C are functions from B A B^{A} B A to C C C where the arguments are indexed by A A A . This notation extends
to minors, which are now specified by maps α : A → B \alpha: A \to B α : A → B between arbitrary finite sets A A A and B B B (rather than just maps of the form α : [ k ] → [ m ] \alpha: [k] \to[m] α : [ k ] → [ m ] ), which means in particular that we may use tuples d ∈ C r d \in C^{r} d ∈ C r to specify a minor f d : B C → B f_{d}: B^{C} \to B f d : B C → B of an operation f : B r → B f: B^{r} \to B f : B r → B , since d d d is a function from [ r ] [r] [ r ] to C C C , and
to minions, where we are now allowed to write M ( A ) M(A) M ( A ) for the elements of M ( ∣ A ∣ ) M^{(|A|)} M ( ∣ A ∣ ) (in other words, we now treat minions as functors from FinSet to Set , rather than functors from FinOrd to Set ; see Exercise 173).
Note that if f : B r → B f:B^r \to B f : B r → B , α : [ r ] → [ s ] \alpha:[r] \to[s] α : [ r ] → [ s ] , d ∈ B s d \in B^s d ∈ B s , then
f α ( d ) = f ( d ∘ α ) . (48) f_\alpha(d)=f(d\circ\alpha). \tag*{(48)} f α ( d ) = f ( d ∘ α ) . (48)
Definition 9.27 (the free structure). Let M \mathbf{M} M be a minion and B \mathcal{B} B be a structure with relational signature τ \tau τ . Then F ~ M ( B ) \widetilde{\mathsf{F}}_{\mathbf{M}}(\mathcal{B}) F M ( B ) , the free structure of M \mathbf{M} M generated by B \mathcal{B} B , is the τ \tau τ -structure with the domain M ( B ) M(B) M ( B ) . For R ∈ τ R \in\tau R ∈ τ of arity k k k , the relation R F ~ M ( B ) R^{\widetilde{\mathsf{F}}_{\mathbf{M}}(\mathcal{B})} R F M ( B ) is defined as follows. Below we will use π i \pi_i π i , for i ∈ [ k ] i \in[k] i ∈ [ k ] , as a shortcut for the restriction of π i \pi_i π i to R B R^{\mathcal{B}} R B , which is a function from R B R^{\mathcal{B}} R B to B B B , and hence can be used to form minors of functions in M ( R B ) M(R^{\mathcal{B}}) M ( R B ) . If R B = ∅ R^{\mathcal{B}}=\varnothing R B = ∅ , define R F ~ M ( B ) : = ∅ R^{\widetilde{\mathsf{F}}_{\mathbf{M}}(\mathcal{B})}:=\varnothing R F M ( B ) := ∅ . Otherwise, the relation R F ~ M ( B ) R^{\widetilde{\mathsf{F}}_{\mathbf{M}}(\mathcal{B})} R F M ( B ) consists of the set of all k k k -tuples ( f 1 , … , f k ) ∈ ( M ( B ) ) k (f_1,\ldots,f_k)\in(M(B))^k ( f 1 , … , f k ) ∈ ( M ( B ) ) k such that there exists g ∈ M ( R B ) g\in M(R^{\mathcal{B}}) g ∈ M ( R B ) satisfying g π i = f i g\pi_i=f_i g π i = f i for every i ∈ [ k ] i\in[k] i ∈ [ k ] .
For readers who need some intuition for Definition 9.27, but are already comfortable with the material in § 3.3 , we strongly recommend doing Exercise 185.
Proposition 9.28. Let B \mathcal{B} B be a structure with a finite domain and a relational signature τ \tau τ . Let M \mathbf{M} M be a minion. Then the following are equivalent.
Proof. Let B = { b 1 , … , b n } B=\{b_1,\ldots,b_n\} B = { b 1 , … , b n } . First suppose that h : F ~ M ( B ) → B h:\widetilde{\mathsf{F}}_{\mathbf{M}}(\mathcal{B})\to\mathcal{B} h : F M ( B ) → B is a homomorphism. To define a minion homomorphism μ : M → Pol ( B ) \mu:\mathbf{M}\to\operatorname{Pol}(\mathcal{B}) μ : M → Pol ( B ) , let f ∈ M ( r ) f\in M^{(r)} f ∈ M ( r ) for some r ∈ N r\in\mathbb{N} r ∈ N . For c ∈ B r c\in B^r c ∈ B r , define
μ ( f ) ( c ) : = h ( f c ) . \mu(f)(c):=h(f_c). μ ( f ) ( c ) := h ( f c ) .
To see that μ \mu μ is a minion homomorphism, suppose that β : [ r ] → [ s ] \beta:[r]\to[s] β : [ r ] → [ s ] is a function; we need to verify that μ ( f β ) = μ ( f ) β \mu(f_\beta)=\mu(f)_\beta μ ( f β ) = μ ( f ) β . Let d ∈ B s d\in B^s d ∈ B s . Then
μ ( f β ) ( d ) = h ( ( f β ) d ) (Definition of μ ) = h ( f d ∘ β ) (M is a minion) = μ ( f ) ( d ∘ β ) (Definition of μ ) = μ ( f ) β ( d ) (46). \begin{aligned}
\mu(f_\beta)(d)&=h((f_\beta)_d) &&\text{(Definition of }\mu\text{)}\\
&=h(f_{d\circ\beta}) &&\text{(M is a minion)}\\
&=\mu(f)(d\circ\beta) &&\text{(Definition of }\mu\text{)}\\
&=\mu(f)_\beta(d) &&\text{(46).}
\end{aligned} μ ( f β ) ( d ) = h (( f β ) d ) = h ( f d ∘ β ) = μ ( f ) ( d ∘ β ) = μ ( f ) β ( d ) (Definition of μ ) (M is a minion) (Definition of μ ) (46).
We also have to verify that μ ( f ) ∈ Pol ( B ) \mu(f)\in\operatorname{Pol}(\mathcal{B}) μ ( f ) ∈ Pol ( B ) , i.e., that μ ( f ) \mu(f) μ ( f ) preserves R B R^{\mathcal{B}} R B for every R ∈ τ R\in\tau R ∈ τ . Let t 1 , … , t r ∈ R B t^1,\ldots,t^r\in R^{\mathcal{B}} t 1 , … , t r ∈ R B ; we need to show that μ ( f ) ( t 1 , … , t r ) ∈ R B \mu(f)(t^1,\ldots,t^r)\in R^{\mathcal{B}} μ ( f ) ( t 1 , … , t r ) ∈ R B . Let k k k be the arity of R R R . For every i ∈ [ k ] i\in[k] i ∈ [ k ] let t i : = ( t i 1 , … , t i r ) t_i:=(t_i^1,\ldots,t_i^r) t i := ( t i 1 , … , t i r ) . Let t t t be the function from [ r ] [r] [ r ] to R B R^{\mathcal{B}} R B that maps j ∈ [ r ] j\in[r] j ∈ [ r ] to t j t^j t j , and let g : = f t g:=f_t g := f t . By the definition of F ~ M ( B ) \widetilde{\mathsf{F}}_{\mathbf{M}}(\mathcal{B}) F M ( B ) , we have ( f t 1 , … , f t k ) ∈ R F ~ M ( B ) (f_{t_1},\ldots,f_{t_k})\in R^{\widetilde{\mathsf{F}}_{\mathbf{M}}(\mathcal{B})} ( f t 1 , … , f t k ) ∈ R F M ( B ) , since g π i = ( f t ) π i = f π i ∘ t = f t i g\pi_i=(f_t)_{\pi_i}=f_{\pi_i\circ t}=f_{t_i} g π i = ( f t ) π i = f π i ∘ t = f t i for every i ∈ [ k ] i\in[k] i ∈ [ k ] . Then
μ ( f ) ( t 1 , … , t r ) = ( μ ( f ) ( t 1 ) , … , μ ( f ) ( t k ) ) (by the definition of t 1 , … , t k ) = ( h ( f t 1 ) , … , h ( f t k ) ) (by the definition of μ ( f ) ) ∈ R B (since h is a homomorphism). \begin{aligned}
\mu(f)(t^1,\ldots,t^r)&=(\mu(f)(t_1),\ldots,\mu(f)(t_k)) &&\text{(by the definition of }t_1,\ldots,t_k\text{)}\\
&=(h(f_{t_1}),\ldots,h(f_{t_k})) &&\text{(by the definition of }\mu(f)\text{)}\\
&\in R^{\mathcal{B}} &&\text{(since }h\text{ is a homomorphism).}
\end{aligned} μ ( f ) ( t 1 , … , t r ) = ( μ ( f ) ( t 1 ) , … , μ ( f ) ( t k )) = ( h ( f t 1 ) , … , h ( f t k )) ∈ R B (by the definition of t 1 , … , t k ) (by the definition of μ ( f ) ) (since h is a homomorphism).
For the converse direction, suppose that μ : M → Pol ( B ) \mu\colon\mathcal{M} \to\operatorname{Pol}(\mathcal{B}) μ : M → Pol ( B ) is a (minion) homomorphism. To define the homomorphism h : F ~ M ( B ) → B h\colon\widetilde{\mathcal{F}}_{\mathcal{M}}(\mathcal{B}) \to\mathcal{B} h : F M ( B ) → B , let f ∈ M ( B ) f \in M^{(B)} f ∈ M ( B ) be an element of F ~ M ( B ) \widetilde{\mathcal{F}}_{\mathcal{M}}(\mathcal{B}) F M ( B ) , and define h ( f ) : = μ ( f ) ( b 1 , … , b n ) h(f) := \mu(f)(b_1,\ldots,b_n) h ( f ) := μ ( f ) ( b 1 , … , b n ) . To see that this is a homomorphism, let R ∈ τ R \in\tau R ∈ τ have arity k k k . If R B = ∅ R^{\mathcal{B}} = \varnothing R B = ∅ , there is nothing to prove. Otherwise, write R B = { r 1 , … , r m } R^{\mathcal{B}} = \{r_1,\ldots,r_m\} R B = { r 1 , … , r m } , for r j = ( r j , 1 , … , r j , k ) r_j = (r_{j,1},\ldots,r_{j,k}) r j = ( r j , 1 , … , r j , k ) . Suppose that ( f 1 , … , f k ) ∈ R F ~ M ( B ) (f_1,\ldots,f_k) \in R^{\widetilde{\mathcal{F}}_{\mathcal{M}}(\mathcal{B})} ( f 1 , … , f k ) ∈ R F M ( B ) . By the definition of the free structure, there exists g ∈ M ( R B ) g \in M^{(R^{\mathcal{B}})} g ∈ M ( R B ) such that g π i = f i g\pi_i = f_i g π i = f i for every i ∈ [ k ] i \in[k] i ∈ [ k ] . Then
( h ( f 1 ) , … , h ( f k ) ) = ( μ ( f 1 ) ( b 1 , … , b n ) , … , μ ( f k ) ( b 1 , … , b n ) ) (by definition of h ) = ( μ ( g π 1 ) ( b 1 , … , b n ) , … , μ ( g π k ) ( b 1 , … , b n ) ) (by assumption) = ( μ ( g ) ( r 1 , 1 , … , r m , 1 ) , … , μ ( g ) ( r 1 , k , … , r m , k ) ) ( μ preserves minors) = μ ( g ) ( r 1 , … , r m ) ∈ R B since μ ( g ) ∈ Pol ( B ) , \begin{aligned}
(h(f_1),\ldots,h(f_k)) &= (\mu(f_1)(b_1,\ldots,b_n),\ldots,\mu(f_k)(b_1,\ldots,b_n)) && \text{(by definition of }h\text{)}\\
&= (\mu(g\pi_1)(b_1,\ldots,b_n),\ldots,\mu(g\pi_k)(b_1,\ldots,b_n)) && \text{(by assumption)}\\
&= (\mu(g)(r_{1,1},\ldots,r_{m,1}),\ldots,\mu(g)(r_{1,k},\ldots,r_{m,k})) && \text{(}\mu\text{ preserves minors)}\\
&= \mu(g)(r_1,\ldots,r_m)\\
&\in R^{\mathcal{B}} && \text{since }\mu(g) \in\operatorname{Pol}(\mathcal{B}),
\end{aligned} ( h ( f 1 ) , … , h ( f k )) = ( μ ( f 1 ) ( b 1 , … , b n ) , … , μ ( f k ) ( b 1 , … , b n )) = ( μ ( g π 1 ) ( b 1 , … , b n ) , … , μ ( g π k ) ( b 1 , … , b n )) = ( μ ( g ) ( r 1 , 1 , … , r m , 1 ) , … , μ ( g ) ( r 1 , k , … , r m , k )) = μ ( g ) ( r 1 , … , r m ) ∈ R B (by definition of h ) (by assumption) ( μ preserves minors) since μ ( g ) ∈ Pol ( B ) ,
which shows that h h h is a homomorphism.
Exercise 184. Verify that M A C M_{\mathrm{AC}} M AC (Definition 9.22 ) is indeed a minion.
Exercise 185. Let H H H be a digraph. Prove that F ~ M A C ( H ) \widetilde{\mathcal{F}}_{M_{\mathrm{AC}}}(H) F M AC ( H ) equals P ( H ) P(H) P ( H ) .
Undirected Graphs
This section contains a proof of the dichotomy for finite undirected graphs of Hell and Nešetřil, Theorem 2.6 . We prove something stronger, namely that the tractability theorem (Theorem 5.29 ) is true for finite undirected graphs B \mathcal{B} B [37]. More specifically, the following is true.
Theorem 10.1. Let B \mathcal{B} B be a finite undirected graph. Then either
B \mathcal{B} B is bipartite (i.e., homomorphic to K 2 K_2 K 2 ) or has a loop, or
HI ( B ) \operatorname{HI}(\mathcal{B}) HI ( B ) contains all finite structures.
Note that in combination with Corollary 5.17 , this theorem implies the tractability theorem (Theorem 5.29 ) for the special case of finite undirected graphs. This theorem also has a remarkable consequence in universal algebra, whose significance goes beyond the study of the complexity of CSPs, and which provides a strengthening of Taylor’s theorem (Theorem 9.16 ), discovered by Siggers in 2010 (see § 11.2 ).
The Hell-Nešetřil Theorem
The graph K 4 − { 0 , 1 } K_4 - \{0,1\} K 4 − { 0 , 1 } (a clique with four vertices where one edge is missing) is called a diamond . A graph is called diamond-free if it does not contain a copy of a diamond as a (not necessarily induced) subgraph. For every ℓ ∈ N \ell\in\mathbb{N} ℓ ∈ N , the graph ( K 3 ) ℓ (K_3)^\ell ( K 3 ) ℓ is an example of a diamond-free graph.
Lemma 10.2. Let B \mathcal{B} B be a finite undirected loopless graph which is not bipartite. Then B \mathcal{B} B pp-constructs a diamond-free core containing a triangle.
Proof. We may assume that
HI ( B ) \operatorname{HI}(\mathcal{B}) HI ( B ) does not contain a non-bipartite loopless graph with fewer vertices than B \mathcal{B} B , since otherwise we could replace B \mathcal{B} B by this graph. In particular, B \mathcal{B} B must then be a core.
B = ( V ; E ) \mathcal{B}=(V;E) B = ( V ; E ) contains a triangle: if the length of the shortest odd cycle in B \mathcal{B} B is k k k , then ( B ; E k − 2 ) (\mathcal{B};E^{k-2}) ( B ; E k − 2 ) is a graph and contains a triangle, so it can replace B \mathcal{B} B .
Claim 1. Every vertex of B \mathcal{B} B is contained in a triangle: Otherwise, we can replace B \mathcal{B} B by the subgraph of B \mathcal{B} B induced by a set defined by the primitive positive formula
∃ u , v ( E ( x , u ) ∧ E ( x , v ) ∧ E ( u , v ) ) \exists u,v\ \bigl(E(x,u)\land E(x,v)\land E(u,v)\bigr) ∃ u , v ( E ( x , u ) ∧ E ( x , v ) ∧ E ( u , v ) )
which still contains a triangle, contradicting our first assumption.
Claim 2. B \mathcal{B} B does not contain a copy of K 4 K_4 K 4 . Otherwise, if a a a is an element from a copy of K 4 K_4 K 4 , then the subgraph of B \mathcal{B} B induced by the set defined by the primitive positive formula E ( a , x ) E(a,x) E ( a , x ) is a non-bipartite graph A \mathcal{A} A , which has strictly fewer vertices than B \mathcal{B} B because a ∉ A a\notin A a ∈ / A . Moreover, Theorem 5.27 implies that expansions of cores by constants can be pp-constructed, and hence that B \mathcal{B} B pp-constructs A \mathcal{A} A , contrary to our initial assumption.
Claim 3. The graph B \mathcal{B} B must also be diamond-free. To see this, let R R R be the binary relation with the primitive positive definition
R ( x , y ) : ⟺ ∃ u , v ( E ( x , u ) ∧ E ( x , v ) ∧ E ( u , v ) ∧ E ( u , y ) ∧ E ( v , y ) ) R(x,y)\mathrel{\vcentcolon\Longleftrightarrow}\exists u,v\ \bigl(E(x,u)\land E(x,v)\land E(u,v)\land E(u,y)\land E(v,y)\bigr) R ( x , y ) : ⟺ ∃ u , v ( E ( x , u ) ∧ E ( x , v ) ∧ E ( u , v ) ∧ E ( u , y ) ∧ E ( v , y ) )
and let T T T be the transitive closure of R R R . The relation T T T is clearly symmetric, and since every vertex of B \mathcal{B} B is contained in a triangle, it is also reflexive, and hence an equivalence relation of B \mathcal{B} B . Since B \mathcal{B} B is finite, for some n n n the formula ∃ u 1 , … , u n ( R ( x , u 1 ) ∧ R ( u 1 , u 2 ) ∧ ⋯ ∧ R ( u n , y ) ) \exists u_1,\ldots,u_n\ \bigl(R(x,u_1)\land R(u_1,u_2)\land\cdots\land R(u_n,y)\bigr) ∃ u 1 , … , u n ( R ( x , u 1 ) ∧ R ( u 1 , u 2 ) ∧ ⋯ ∧ R ( u n , y ) ) defines T T T , showing that T T T is primitively positively definable in B \mathcal{B} B .
We claim that the graph B / T \mathcal{B}/T B / T (see Example 5.14 ) does not contain loops. It suffices to show that T ∩ E = ∅ T\cap E=\varnothing T ∩ E = ∅ . Otherwise, let ( a , b ) ∈ T ∩ E (a,b)\in T\cap E ( a , b ) ∈ T ∩ E . Choose ( a , b ) (a,b) ( a , b ) in such a way that the shortest sequence a = a 0 , a 1 , … , a n = b a=a_0,a_1,\ldots,a_n=b a = a 0 , a 1 , … , a n = b with R ( a 0 , a 1 ) , R ( a 1 , a 2 ) , … , R ( a n − 1 , a n ) R(a_0,a_1),R(a_1,a_2),\ldots,R(a_{n-1},a_n) R ( a 0 , a 1 ) , R ( a 1 , a 2 ) , … , R ( a n − 1 , a n ) in B \mathcal{B} B is shortest possible; see Figure 16 . This chain cannot have length one, because B \mathcal{B} B does not contain K 4 K_4 K 4 subgraphs. For every i ∈ { 1 , … , n } i\in\{1,\ldots,n\} i ∈ { 1 , … , n } , choose vertices u i , v i u_i,v_i u i , v i witnessing R ( a i − 1 , a i ) R(a_{i-1},a_i) R ( a i − 1 , a i ) ; thus
Figure 16. Diagram for the proof of Lemma 10.2.
E ( a i − 1 , u i ) , E ( a i − 1 , v i ) , E ( u i , v i ) , E ( u i , a i ) , E ( v i , a i ) E(a_{i-1},u_i),\ E(a_{i-1},v_i),\ E(u_i,v_i),\ E(u_i,a_i),\ E(v_i,a_i) E ( a i − 1 , u i ) , E ( a i − 1 , v i ) , E ( u i , v i ) , E ( u i , a i ) , E ( v i , a i )
hold. For m ≥ 0 m\ge0 m ≥ 0 , let R m R^m R m denote the m m m -fold relational composition of R R R , where R 0 R^0 R 0 is the equality relation.
Suppose first that n = 2 k n=2k n = 2 k is even. Define S S S by the primitive positive formula
S ( x ) ⟺ ∃ y , z ( E ( u k + 1 , y ) ∧ E ( v k + 1 , y ) ∧ R k − 1 ( y , z ) ∧ E ( z , x ) ) . S(x)\Longleftrightarrow\exists y,z\ \bigl(E(u_{k+1},y)\land E(v_{k+1},y)\land R^{k-1}(y,z)\land E(z,x)\bigr). S ( x ) ⟺ ∃ y , z ( E ( u k + 1 , y ) ∧ E ( v k + 1 , y ) ∧ R k − 1 ( y , z ) ∧ E ( z , x ) ) .
This formula also covers k = 1 k=1 k = 1 , since then R k − 1 = R 0 R^{k-1}=R^0 R k − 1 = R 0 .
The vertices a 0 a_0 a 0 , u 1 u_1 u 1 , v 1 v_1 v 1 belong to S S S and form a triangle. Indeed, for a 0 a_0 a 0 we may choose y = a k + 1 y=a_{k+1} y = a k + 1 and z = a n z=a_n z = a n , whereas for u 1 u_1 u 1 and v 1 v_1 v 1 we may choose y = a k y=a_k y = a k and z = a 1 z=a_1 z = a 1 . We claim that a n ∉ S a_n\notin S a n ∈ / S . Otherwise, let y , z y,z y , z witness a n ∈ S a_n\in S a n ∈ S . Since y y y and a k + 1 a_{k+1} a k + 1 are both adjacent to u k + 1 u_{k+1} u k + 1 and v k + 1 v_{k+1} v k + 1 , we have R ( y , a k + 1 ) R(y,a_{k+1}) R ( y , a k + 1 ) . Using the symmetry of R R R , we obtain
R k − 1 ( z , y ) , R ( y , a k + 1 ) , R k − 1 ( a k + 1 , a n ) . R^{k-1}(z,y), \qquad R(y,a_{k+1}), \qquad R^{k-1}(a_{k+1},a_n). R k − 1 ( z , y ) , R ( y , a k + 1 ) , R k − 1 ( a k + 1 , a n ) .
Consequently, R 2 k − 1 ( z , a n ) R^{2k-1}(z,a_n) R 2 k − 1 ( z , a n ) , while E ( z , a n ) E(z,a_n) E ( z , a n ) holds by the definition of S S S . Thus, the endpoints of an edge are joined by an R R R -chain of length at most 2 k − 1 = n − 1 2k-1=n-1 2 k − 1 = n − 1 , contradicting the minimal choice of n n n . Hence a n ∉ S a_n\notin S a n ∈ / S . The graph induced by S S S is therefore non-bipartite and has strictly fewer vertices than B \mathcal{B} B , contrary to our initial assumption.
Now suppose that n = 2 k + 1 n=2k+1 n = 2 k + 1 is odd. Since n ≠ 1 n\ne1 n = 1 , we have k ≥ 1 k\ge1 k ≥ 1 . Define S S S by
S ( x ) ⟺ ∃ z ( R k ( a k + 1 , z ) ∧ E ( z , x ) ) . S(x)\ \Longleftrightarrow\ \exists z\left(R^k(a_{k+1},z)\land E(z,x)\right). S ( x ) ⟺ ∃ z ( R k ( a k + 1 , z ) ∧ E ( z , x ) ) .
Again a 0 , u 1 , v 1 ∈ S a_0,u_1,v_1\in S a 0 , u 1 , v 1 ∈ S : for a 0 a_0 a 0 choose z = a n z=a_n z = a n , and for u 1 u_1 u 1 and v 1 v_1 v 1 choose z = a 1 z=a_1 z = a 1 . Thus S S S contains a triangle. If a n ∈ S a_n\in S a n ∈ S , witnessed by z z z , then symmetry gives R k ( z , a k + 1 ) R^k(z,a_{k+1}) R k ( z , a k + 1 ) . Together with R k ( a k + 1 , a n ) R^k(a_{k+1},a_n) R k ( a k + 1 , a n ) this yields
R 2 k ( z , a n ) = R n − 1 ( z , a n ) . R^{2k}(z,a_n)=R^{n-1}(z,a_n). R 2 k ( z , a n ) = R n − 1 ( z , a n ) .
Since also E ( z , a n ) E(z,a_n) E ( z , a n ) , this again contradicts the minimal choice of n n n . Hence a n ∉ S a_n\notin S a n ∈ / S , and the same smaller-graph contradiction follows.
So we conclude that B / T \mathcal{B}/T B / T does not contain loops. It also follows that B / T \mathcal{B}/T B / T contains a triangle, because B \mathcal{B} B contains a triangle. Thus, the initial assumption on B \mathcal{B} B then implies that T T T must be the equality relation on B B B , which in turn implies that B \mathcal{B} B does not contain any diamonds.
Lemma 10.3 (from [37]). Let B \mathcal{B} B be a diamond-free undirected graph and let h : ( K 3 ) k → B h:(K_3)^k\to\mathcal{B} h : ( K 3 ) k → B be a homomorphism. Then the image of h h h is isomorphic to ( K 3 ) m (K_3)^m ( K 3 ) m for some m ≤ k m\le k m ≤ k .
Proof. Let I ⊆ { 1 , … , k } I\subseteq\{1,\ldots,k\} I ⊆ { 1 , … , k } be maximal such that ker ( h ) ⊆ ker ( π I ) \ker(h)\subseteq\ker(\pi_I) ker ( h ) ⊆ ker ( π I ) . Note that π I \pi_I π I is defined even if I = ∅ I=\varnothing I = ∅ (Definition 6.35). Such a set exists, because ker ( π ∅ ) \ker(\pi_\varnothing) ker ( π ∅ ) is the total relation. We claim that ker ( h ) = ker ( π I ) \ker(h)=\ker(\pi_I) ker ( h ) = ker ( π I ) ; this clearly implies the statement.
By the maximality of I I I , for every j ∈ { 1 , … , k } ∖ I j\in\{1,\ldots,k\}\setminus I j ∈ { 1 , … , k } ∖ I there are x , y ∈ ( K 3 ) k x,y\in(K_3)^k x , y ∈ ( K 3 ) k such that h ( x ) = h ( y ) h(x)=h(y) h ( x ) = h ( y ) and x j ≠ y j x_j\ne y_j x j = y j . For fixed z i ∈ { 0 , 1 , 2 } z_i\in\{0,1,2\} z i ∈ { 0 , 1 , 2 } , i ≠ j i\ne j i = j , and a ∈ { 0 , 1 , 2 } a\in\{0,1,2\} a ∈ { 0 , 1 , 2 } , write
z ( a ) : = ( z 1 , … , z j − 1 , a , z j + 1 , … , z k ) . z^{(a)}:=(z_1,\ldots,z_{j-1},a,z_{j+1},\ldots,z_k). z ( a ) := ( z 1 , … , z j − 1 , a , z j + 1 , … , z k ) .
We have to show that h ( z ( a ) ) = h ( z ( b ) ) h(z^{(a)})=h(z^{(b)}) h ( z ( a ) ) = h ( z ( b ) ) for all a , b ∈ { 0 , 1 , 2 } a,b\in\{0,1,2\} a , b ∈ { 0 , 1 , 2 } . It suffices to prove that h ( z ( a ) ) = h ( z ( x j ) ) h(z^{(a)})=h(z^{(x_j)}) h ( z ( a ) ) = h ( z ( x j ) ) for every a ≠ x j a\ne x_j a = x j . Indeed, once this has been proved, both h ( z ( a ) ) h(z^{(a)}) h ( z ( a ) ) and h ( z ( b ) ) h(z^{(b)}) h ( z ( b ) ) are equal to h ( z ( x j ) ) h(z^{(x_j)}) h ( z ( x j ) ) ; if a = x j a=x_j a = x j or b = x j b=x_j b = x j , the corresponding equality is trivial.
Fix, therefore, a ≠ x j a\ne x_j a = x j . Renaming the coordinate positions throughout, we may assume that j = k j=k j = k . Put z k : = a z_k:=a z k := a and z k ′ : = x k z'_k:=x_k z k ′ := x k . Thus z k ≠ x k z_k\ne x_k z k = x k and z k ′ = x k z'_k=x_k z k ′ = x k , and it remains to prove
h ( z 1 , … , z k − 1 , z k ) = h ( z 1 , … , z k − 1 , z k ′ ) . h(z_1,\ldots,z_{k-1},z_k)=h(z_1,\ldots,z_{k-1},z'_k). h ( z 1 , … , z k − 1 , z k ) = h ( z 1 , … , z k − 1 , z k ′ ) .
As we have seen in Exercises 7 and 8, any two vertices in ( K 3 ) k (K_3)^k ( K 3 ) k have a common neighbour.
Let r r r be a common neighbour of x x x and ( z , z k ) : = ( z 1 , … , z k ) (z,z_k):=(z_1,\ldots,z_k) ( z , z k ) := ( z 1 , … , z k ) . Note that r r r and ( z , z k ′ ) (z,z'_k) ( z , z k ′ ) are adjacent, too.
For all i ≠ k i \ne k i = k we choose an element s i s_i s i of K 3 K_3 K 3 that is distinct from both r i r_i r i and y i y_i y i . Since x k x_k x k is distinct from r k r_k r k and y k y_k y k we have that ( s , x k ) : = ( s 1 , … , s k − 1 , x k ) (s,x_k) := (s_1,\ldots,s_{k-1},x_k) ( s , x k ) := ( s 1 , … , s k − 1 , x k ) is a common neighbour of r r r and y y y .
The tuple ( r , z k ) : = ( r 1 , … , r k − 1 , z k ) (r,z_k) := (r_1,\ldots,r_{k-1},z_k) ( r , z k ) := ( r 1 , … , r k − 1 , z k ) is a common neighbour of both x x x and ( s , x k ) (s,x_k) ( s , x k ) .
Finally, for i ≠ k i \ne k i = k choose t i t_i t i to be distinct from z i z_i z i and r i r_i r i , and choose t k t_k t k to be distinct from z k z_k z k and from z k ′ z'_k z k ′ . Then t : = ( t 1 , … , t k − 1 , t k ) t := (t_1,\ldots,t_{k-1},t_k) t := ( t 1 , … , t k − 1 , t k ) is a common neighbour of ( z , z k ) (z,z_k) ( z , z k ) , of ( z , z k ′ ) (z,z'_k) ( z , z k ′ ) , and of ( r , z k ) (r,z_k) ( r , z k ) .
The situation is illustrated in Figure 17 . Since B \mathcal{B} B is diamond-free, h ( x ) = h ( y ) h(x) = h(y) h ( x ) = h ( y ) implies that h ( r ) = h ( r , z k ) h(r) = h(r,z_k) h ( r ) = h ( r , z k ) and for the same reason h ( z , z k ) = h ( z , z k ′ ) h(z,z_k) = h(z,z'_k) h ( z , z k ) = h ( z , z k ′ ) which completes the proof.
Figure 17. Diagram for the proof of Lemma 10.3.
Lemma 10.4 (from [37]). If a finite diamond-free graph B \mathcal{B} B contains a triangle, then for some k ∈ N k \in\mathbb{N} k ∈ N there is a primitive positive interpretation of ( K 3 ) k (K_3)^k ( K 3 ) k with constants in B \mathcal{B} B .
Proof. We construct a strictly increasing sequence of subgraphs G 1 ⊂ G 2 ⊂ ⋯ G_1 \subset G_2 \subset\cdots G 1 ⊂ G 2 ⊂ ⋯ of B \mathcal{B} B such that G i G_i G i is isomorphic to ( K 3 ) k i (K_3)^{k_i} ( K 3 ) k i for some k i ∈ N k_i \in\mathbb{N} k i ∈ N . Let G 1 G_1 G 1 be any triangle in B \mathcal{B} B . Suppose now that G i G_i G i has already been constructed. If the domain of G i G_i G i is primitively positively definable in B \mathcal{B} B with constants, then we are done. Otherwise, there exists ℓ ∈ N ≥ 1 \ell\in\mathbb{N}_{\ge1} ℓ ∈ N ≥ 1 , an idempotent f ∈ Pol ( B ) ( ℓ ) f \in\operatorname{Pol}(\mathcal{B})^{(\ell)} f ∈ Pol ( B ) ( ℓ ) , and v 1 , … , v ℓ ∈ G i v_1,\ldots,v_\ell\in G_i v 1 , … , v ℓ ∈ G i such that f ( v 1 , … , v ℓ ) ∉ G i f(v_1,\ldots,v_\ell) \notin G_i f ( v 1 , … , v ℓ ) ∈ / G i . The restriction of f f f to ( G i ) ℓ (G_i)^\ell ( G i ) ℓ is a homomorphism from ( G i ) ℓ ≅ ( K 3 ) k i ℓ (G_i)^\ell\cong(K_3)^{k_i\ell} ( G i ) ℓ ≅ ( K 3 ) k i ℓ to the diamond-free graph B \mathcal{B} B . Lemma 10.3 shows that G i + 1 : = f ( ( G i ) ℓ ) G_{i+1} := f((G_i)^\ell) G i + 1 := f (( G i ) ℓ ) induces a copy of ( K 3 ) k i + 1 (K_3)^{k_{i+1}} ( K 3 ) k i + 1 for some k i + 1 ≤ k i ⋅ ℓ k_{i+1} \le k_i \cdot\ell k i + 1 ≤ k i ⋅ ℓ . Since f f f is idempotent, we have that G i ⊆ G i + 1 G_i \subseteq G_{i+1} G i ⊆ G i + 1 , and by the choice of f f f the containment is strict. Since B \mathcal{B} B is finite, for some m m m the set G m G_m G m must have a primitive positive definition in B \mathcal{B} B with constants.
Proof of Theorem 10.1. Let B \mathcal{B} B be a finite undirected graph that is not bipartite and loopless. Then B \mathcal{B} B pp-constructs a diamond-free core C \mathcal{C} C containing a triangle, by Lemma 10.2. We may now apply Lemma 10.4 to C \mathcal{C} C and obtain that for some k ∈ N k \in\mathbb{N} k ∈ N there is a primitive positive interpretation of ( K 3 ) k (K_3)^k ( K 3 ) k with constants in C \mathcal{C} C . The structure ( K 3 ) k (K_3)^k ( K 3 ) k is homomorphically equivalent to K 3 K_3 K 3 , which interprets all finite structures primitive positively (Theorem 5.18). So Theorem 5.27 implies that H ( I ( B ) ) \mathrm{H}(\mathcal{I}(\mathcal{B})) H ( I ( B )) contains all finite structures.
Siggers Terms of Arity 6
An operation s : B 6 → B s\colon B^{6}\to B s : B 6 → B is called a Siggers operation (of arity six7 ) if for all x , y , z ∈ B x,y,z\in B x , y , z ∈ B
s ( x , y , x , z , y , z ) = s ( y , x , z , x , z , y ) . s(x,y,x,z,y,z)=s(y,x,z,x,z,y). s ( x , y , x , z , y , z ) = s ( y , x , z , x , z , y ) .
As usual, if A \mathcal{A} A is an algebra, and t t t is a term such that t A t^{\mathcal{A}} t A is a Siggers operation, we call t t t a Siggers term .
Theorem 10.5 (from [109]). Let B \mathbb{B} B be a finite structure. Then either B \mathbb{B} B primitively positively interprets all finite structures up to homomorphic equivalence, or B \mathbb{B} B has a Siggers polymorphism.
Proof. Pick k ≥ 1 k\geq1 k ≥ 1 and a , b , c ∈ B k a,b,c\in B^{k} a , b , c ∈ B k such that { ( a i , b i , c i ) ∣ i ≤ k } = B 3 \{(a_i,b_i,c_i)\mid i\leq k\}=B^{3} {( a i , b i , c i ) ∣ i ≤ k } = B 3 . Let R R R be the binary relation on B k B^{k} B k such that ( u , v ) ∈ R (u,v)\in R ( u , v ) ∈ R if and only if there exists a 6-ary s ∈ Pol ( B ) s\in\operatorname{Pol}(\mathbb{B}) s ∈ Pol ( B ) such that u = s ( a , b , a , c , b , c ) u=s(a,b,a,c,b,c) u = s ( a , b , a , c , b , c ) and v = s ( b , a , c , a , c , b ) v=s(b,a,c,a,c,b) v = s ( b , a , c , a , c , b ) . We make the following series of observations.
The relation R R R (as a 2 k 2k 2 k -ary relation over B B B ) is preserved by Pol ( B ) \operatorname{Pol}(\mathbb{B}) Pol ( B ) , and hence ( B k ; R ) (B^{k};R) ( B k ; R ) has a primitive positive interpretation in B \mathbb{B} B . To see this, let p ∈ Pol ( B ) ( ℓ ) p\in\operatorname{Pol}(\mathbb{B})^{(\ell)} p ∈ Pol ( B ) ( ℓ ) and let ( u j , v j ) ∈ R (u^{j},v^{j})\in R ( u j , v j ) ∈ R , for j ∈ [ ℓ ] j\in[\ell] j ∈ [ ℓ ] , be witnessed by s j ∈ Pol ( B ) ( 6 ) s_j\in\operatorname{Pol}(\mathbb{B})^{(6)} s j ∈ Pol ( B ) ( 6 ) . Define
s ( x 1 , … , x 6 ) : = p ( s 1 ( x 1 , … , x 6 ) , … , s ℓ ( x 1 , … , x 6 ) ) . s(x_1,\ldots,x_6):=p\bigl(s_1(x_1,\ldots,x_6),\ldots,s_\ell(x_1,\ldots,x_6)\bigr). s ( x 1 , … , x 6 ) := p ( s 1 ( x 1 , … , x 6 ) , … , s ℓ ( x 1 , … , x 6 ) ) .
Then s ∈ Pol ( B ) s\in\operatorname{Pol}(\mathbb{B}) s ∈ Pol ( B ) , and
s ( a , b , a , c , b , c ) = p ( u 1 , … , u ℓ ) , s(a,b,a,c,b,c)=p(u^1,\ldots,u^\ell), s ( a , b , a , c , b , c ) = p ( u 1 , … , u ℓ ) ,
s ( b , a , c , a , c , b ) = p ( v 1 , … , v ℓ ) . s(b,a,c,a,c,b)=p(v^1,\ldots,v^\ell). s ( b , a , c , a , c , b ) = p ( v 1 , … , v ℓ ) .
Thus s s s witnesses that ( p ( u 1 , … , u ℓ ) , p ( v 1 , … , v ℓ ) ) ∈ R (p(u^1,\ldots,u^\ell),p(v^1,\ldots,v^\ell))\in R ( p ( u 1 , … , u ℓ ) , p ( v 1 , … , v ℓ )) ∈ R .
The vertices a , b , c ∈ B k a,b,c\in B^{k} a , b , c ∈ B k induce in ( B k ; R ) (B^{k};R) ( B k ; R ) a copy of K 3 K_3 K 3 : each of the six edges of K 3 K_3 K 3 is witnessed by one of the six 6-ary projections from Pol ( B ) \operatorname{Pol}(\mathbb{B}) Pol ( B ) .
The relation R R R is symmetric: Suppose that ( u , v ) ∈ R (u,v)\in R ( u , v ) ∈ R and let s ∈ Pol ( B ) s\in\operatorname{Pol}(\mathbb{B}) s ∈ Pol ( B ) be such that u = s ( a , b , a , c , b , c ) u=s(a,b,a,c,b,c) u = s ( a , b , a , c , b , c ) and v = s ( b , a , c , a , c , b ) v=s(b,a,c,a,c,b) v = s ( b , a , c , a , c , b ) . Define s ′ ∈ Pol ( B ) s'\in\operatorname{Pol}(\mathbb{B}) s ′ ∈ Pol ( B ) by s ′ ( x 1 , … , x 6 ) : = s ( x 2 , x 1 , x 4 , x 3 , x 6 , x 5 ) s'(x_1,\ldots,x_6):=s(x_2,x_1,x_4,x_3,x_6,x_5) s ′ ( x 1 , … , x 6 ) := s ( x 2 , x 1 , x 4 , x 3 , x 6 , x 5 ) ; then
v = s ( b , a , c , a , c , b ) = s ′ ( a , b , a , c , b , c ) v=s(b,a,c,a,c,b)=s'(a,b,a,c,b,c) v = s ( b , a , c , a , c , b ) = s ′ ( a , b , a , c , b , c )
u = s ( a , b , a , c , b , c ) = s ′ ( b , a , c , a , c , b ) u=s(a,b,a,c,b,c)=s'(b,a,c,a,c,b) u = s ( a , b , a , c , b , c ) = s ′ ( b , a , c , a , c , b )
and hence s ′ s' s ′ witnesses that ( v , u ) ∈ R (v,u)\in R ( v , u ) ∈ R .
If the graph ( B k ; R ) (B^{k};R) ( B k ; R ) contains a loop ( w , w ) ∈ R (w,w)\in R ( w , w ) ∈ R , then there exists a 6-ary s ∈ Pol ( B ) s\in\operatorname{Pol}(\mathbb{B}) s ∈ Pol ( B ) such that
s ( a , b , a , c , b , c ) = w = s ( b , a , c , a , c , b ) . s(a,b,a,c,b,c)=w=s(b,a,c,a,c,b). s ( a , b , a , c , b , c ) = w = s ( b , a , c , a , c , b ) .
The operation s s s is Siggers: for all x , y , z ∈ B x,y,z\in B x , y , z ∈ B there exists an i ≤ k i\leq k i ≤ k such that ( x , y , z ) = ( a i , b i , c i ) (x,y,z)=(a_i,b_i,c_i) ( x , y , z ) = ( a i , b i , c i ) , and the above implies that
s ( a i , b i , a i , c i , b i , c i ) = s ( b i , a i , c i , a i , c i , b i ) s(a_i,b_i,a_i,c_i,b_i,c_i)=s(b_i,a_i,c_i,a_i,c_i,b_i) s ( a i , b i , a i , c i , b i , c i ) = s ( b i , a i , c i , a i , c i , b i )
and we are done in this case.
So we may assume in the following that ( B k ; R ) (B^k;R) ( B k ; R ) is a simple (i.e., undirected and loopless) graph that contains a copy of K 3 K_3 K 3 . By Theorem 10.1 applied to the undirected graph ( B k ; R ) (B^k;R) ( B k ; R ) , there is a primitive positive interpretation in ( B k ; R ) (B^k;R) ( B k ; R ) of all finite structures up to homomorphic equivalence, and hence also in B \mathbb{B} B , and this concludes the proof.
Theorem 10.6 (Tractability Theorem, Version 4). Let B \mathbb{B} B be a relational structure with finite domain and finite signature. If B \mathbb{B} B has a Siggers polymorphism, then CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) is in P. Otherwise, CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) is NP-complete.
Proof. If K 3 ∈ HI ( B ) K_3 \in\operatorname{HI}(\mathbb{B}) K 3 ∈ HI ( B ) , then the NP-hardness of CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) follows from Corollary 5.17. Otherwise, Theorem 10.5 implies that B \mathbb{B} B has a Siggers polymorphism. Moreover, no projection satisfies the Siggers identity, so Pol ( B ) \operatorname{Pol}(\mathbb{B}) Pol ( B ) has no minion homomorphism to Proj \operatorname{Proj} Proj . Hence, K 3 ∉ HI ( B ) K_3 \notin\operatorname{HI}(\mathbb{B}) K 3 ∈ / HI ( B ) by Corollary 9.12. Theorem 5.29 then implies that CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) is in P.
Exercise 186. A Taylor clone C is called minimal Taylor if every proper subclone of C is not Taylor. Show that every Taylor clone on a finite set contains a minimal Taylor clone.
Congruences
The study of congruences of algebras and varieties is one of the central topics in universal algebra. In Section 11.1 we present some basic facts about congruences that will be used later in the text. Section 11.2 about congruence permutability and Section 11.3 about congruence distributivity cover material that is central in universal algebra, but will not be used later in the text and can be skipped by the hasty reader.
The Congruence Lattice
Let A be a τ \tau τ -algebra. We write Con ( A ) \operatorname{Con}(A) Con ( A ) for the set of all congruences of A (Definition 7.10). Clearly, Con ( A ) \operatorname{Con}(A) Con ( A ) is closed under arbitrary intersections. On the other hand, the union of two congruences is in general not a congruence.
Lemma 11.1. Let A be an algebra. Then ( Con ( A ) , ⊆ ) (\operatorname{Con}(A), \subseteq) ( Con ( A ) , ⊆ ) is a complete lattice (Example 7.5).
Proof. Let ( E i ) i ∈ I (E_i)_{i\in I} ( E i ) i ∈ I be a sequence of congruences of A. Intersections of congruences are congruences, and this intersection is clearly the largest congruence contained in every E i E_i E i . Define (recall the definition of the relational product, Definition 5.7 )
J : = ⋁ i ∈ I E i : = ⋃ { E i 1 ∘ ⋯ ∘ E i k ∣ i 1 , … , i k ∈ I , k ∈ N } ; J := \bigvee_{i\in I} E_i := \bigcup\{E_{i_1}\circ\cdots\circ E_{i_k} \mid i_1,\ldots,i_k\in I,\ k\in\mathbb{N}\}; J := i ∈ I ⋁ E i := ⋃ { E i 1 ∘ ⋯ ∘ E i k ∣ i 1 , … , i k ∈ I , k ∈ N } ;
if k = 0 k=0 k = 0 , then E i 1 ∘ ⋯ ∘ E i k E_{i_1}\circ\cdots\circ E_{i_k} E i 1 ∘ ⋯ ∘ E i k stands for id A \operatorname{id}_A id A . The relation J J J is an equivalence relation: reflexivity follows from the case k = 0 k=0 k = 0 , symmetry follows by reversing a word, and transitivity follows by concatenating words.
We claim that this is the smallest (with respect to inclusion) equivalence relation that contains all the E i E_i E i . Let f ∈ τ f\in\tau f ∈ τ be n n n -ary and suppose that ( a j , b j ) ∈ ⋁ i ∈ I E i (a_j,b_j)\in\bigvee_{i\in I}E_i ( a j , b j ) ∈ ⋁ i ∈ I E i for every j ∈ { 1 , … , n } j\in\{1,\ldots,n\} j ∈ { 1 , … , n } . For each j j j , choose a word in the congruences E i E_i E i and a corresponding chain from a j a_j a j to b j b_j b j . Concatenate these finitely many words. Since every congruence is reflexive, each of the chains can be padded by constant steps and hence regarded as a chain for this common word. Thus, writing the common word as E i 1 ∘ ⋯ ∘ E i k E_{i_1}\circ\cdots\circ E_{i_k} E i 1 ∘ ⋯ ∘ E i k , there are elements
a j = c j , 0 , c j , 1 , … , c j , k = b j a_j=c_{j,0},c_{j,1},\ldots,c_{j,k}=b_j a j = c j , 0 , c j , 1 , … , c j , k = b j
such that ( c j , ℓ − 1 , c j , ℓ ) ∈ E i ℓ (c_{j,\ell-1},c_{j,\ell})\in E_{i_\ell} ( c j , ℓ − 1 , c j , ℓ ) ∈ E i ℓ for all j j j and ℓ \ell ℓ . Since E i ℓ E_{i_\ell} E i ℓ is a congruence,
( f ( c 1 , ℓ − 1 , … , c n , ℓ − 1 ) , f ( c 1 , ℓ , … , c n , ℓ ) ) ∈ E i ℓ . \left(f(c_{1,\ell-1},\ldots,c_{n,\ell-1}),f(c_{1,\ell},\ldots,c_{n,\ell})\right)\in E_{i_\ell}. ( f ( c 1 , ℓ − 1 , … , c n , ℓ − 1 ) , f ( c 1 , ℓ , … , c n , ℓ ) ) ∈ E i ℓ .
Consequently,
( f ( a 1 , … , a n ) , f ( b 1 , … , b n ) ) ∈ E i 1 ∘ ⋯ ∘ E i k ⊆ ⋁ i ∈ I E i . \left(f(a_1,\ldots,a_n),f(b_1,\ldots,b_n)\right)\in E_{i_1}\circ\cdots\circ E_{i_k}\subseteq\bigvee_{i\in I}E_i. ( f ( a 1 , … , a n ) , f ( b 1 , … , b n ) ) ∈ E i 1 ∘ ⋯ ∘ E i k ⊆ i ∈ I ⋁ E i .
Hence, ⋁ i ∈ I E i \bigvee_{i\in I}E_i ⋁ i ∈ I E i is a congruence. Moreover, E i ⊆ J E_i\subseteq J E i ⊆ J for every i ∈ I i\in I i ∈ I , by taking words of length one. If C C C is any congruence containing every E i E_i E i , then transitivity of C C C implies
E i 1 ∘ ⋯ ∘ E i k ⊆ C E_{i_1}\circ\cdots\circ E_{i_k}\subseteq C E i 1 ∘ ⋯ ∘ E i k ⊆ C
for every finite word i 1 … i k i_1\ldots i_k i 1 … i k . Therefore, J ⊆ C J\subseteq C J ⊆ C and J J J is the least congruence containing all the E i E_i E i . Thus, ⋁ i ∈ I E i = J \bigvee_{i\in I}E_i=J ⋁ i ∈ I E i = J .
We have constructed arbitrary meets and joins in ( Con ( A ) , ⊆ ) (\operatorname{Con}(\mathbf{A}),\subseteq) ( Con ( A ) , ⊆ ) , so it is a complete lattice. In particular, the associativity, commutativity, idempotence, and absorption identities for the binary meet and join follow from their characterisation as greatest lower bounds and least upper bounds.
Every algebra has the following two congruences.
Δ A \Delta_A Δ A : the diagonal relation { ( a , a ) ∣ a ∈ A } \{(a,a)\mid a\in A\} {( a , a ) ∣ a ∈ A } .
∇ A \nabla_A ∇ A : the universal relation A 2 A^2 A 2 .
Congruences that are different from ∇ A \nabla_A ∇ A and Δ A \Delta_A Δ A are called proper .
Definition 11.2. Algebras A \mathbf{A} A without proper congruences are called simple .
Example 11.3. Groups that are simple in the sense of group theory are simple in the more general sense of Definition 11.2. △
Example 11.4. Let G G G be a permutation group on the set A A A . Let A \mathbf{A} A be the algebra with domain A A A and signature G G G , and define g A : = g g^{\mathbf{A}}:=g g A := g for all g ∈ G g\in G g ∈ G . Then A \mathbf{A} A is simple if and only if G G G is primitive as a permutation group. △
Definition 11.5. Let A \mathbf{A} A be an algebra and let B \mathbf{B} B be the expansion of A \mathbf{A} A by all constant operations. A polynomial over A \mathbf{A} A is a term in the signature of B \mathbf{B} B . A polynomial operation of A \mathbf{A} A is a term operation of B \mathbf{B} B .
Definition 11.7. Two algebras A 1 , A 2 \mathbf{A}_1,\mathbf{A}_2 A 1 , A 2 with the same domain A A A are called polynomially equivalent if they have the same polynomial operations.
Note that polynomially equivalent algebras have the same congruences.
Lemma 11.8. Let B \mathbf{B} B be an algebra and X ⊆ B 2 X \subseteq B^2 X ⊆ B 2 . Then the smallest congruence of B \mathbf{B} B that contains X X X , denoted by Cg B ( X ) \operatorname{Cg}_{\mathbf{B}}(X) Cg B ( X ) , equals the reflexive symmetric transitive closure of
T : = { ( p ( a ) , p ( b ) ) ∈ B 2 ∣ ( a , b ) ∈ X , p a unary polynomial operation of B } . (49) T := \{(p(a),p(b)) \in B^2 \mid(a,b) \in X, p\text{ a unary polynomial operation of }\mathbf{B}\}. \tag*{(49)} T := {( p ( a ) , p ( b )) ∈ B 2 ∣ ( a , b ) ∈ X , p a unary polynomial operation of B } . (49) Proof. Let C C C be the reflexive symmetric transitive closure of T T T . Clearly, if ( a , b ) ∈ X (a,b) \in X ( a , b ) ∈ X and p p p is a unary polynomial operation of B \mathbf{B} B , then ( p ( a ) , p ( b ) ) ∈ Cg B ( X ) (p(a),p(b)) \in\operatorname{Cg}_{\mathbf{B}}(X) ( p ( a ) , p ( b )) ∈ Cg B ( X ) since congruences are preserved by term operations and are reflexive. Since Cg B ( X ) \operatorname{Cg}_{\mathbf{B}}(X) Cg B ( X ) is reflexive, symmetric, and transitive, we obtain that C ⊆ Cg B ( X ) C \subseteq\operatorname{Cg}_{\mathbf{B}}(X) C ⊆ Cg B ( X ) . To prove that Cg B ( X ) ⊆ C \operatorname{Cg}_{\mathbf{B}}(X) \subseteq C Cg B ( X ) ⊆ C it suffices to prove that C C C is a congruence of B \mathbf{B} B that contains X X X . By definition, C C C is reflexive, symmetric, and transitive, and we clearly have that X ⊆ C X \subseteq C X ⊆ C . We are left with the verification that C C C is a congruence. If X = ∅ X = \varnothing X = ∅ , then C C C is equality and there is nothing to prove, so assume that X ≠ ∅ X \ne\varnothing X = ∅ . Then T T T is reflexive, since constant unary polynomial operations show that ( a , a ) ∈ T (a,a) \in T ( a , a ) ∈ T for every a ∈ B a \in B a ∈ B . If ( u 1 , v 1 ) , … , ( u k , v k ) ∈ C (u_1,v_1),\ldots,(u_k,v_k) \in C ( u 1 , v 1 ) , … , ( u k , v k ) ∈ C and f f f is an operation of B \mathbf{B} B of arity k k k , then for each i ∈ { 1 , … , k } i \in\{1,\ldots,k\} i ∈ { 1 , … , k } there exists a path P i = ( a i , 1 , … , a i , r ) P_i = (a_{i,1},\ldots,a_{i,r}) P i = ( a i , 1 , … , a i , r ) whose edges are forward or backward edges in T T T and that starts in u i u_i u i and ends in v i v_i v i . By the reflexivity of T T T we may duplicate elements on these paths such that
all these paths P i P_i P i have the same length r r r ;
for every ℓ ∈ { 1 , … , r − 1 } \ell\in\{1,\ldots,r-1\} ℓ ∈ { 1 , … , r − 1 } there is at most one index i ( ℓ ) i(\ell) i ( ℓ ) such that the ℓ \ell ℓ -th edge of P i ( ℓ ) P_{i(\ell)} P i ( ℓ ) is not of the form ( a , a ) (a,a) ( a , a ) .
Hence, for every ℓ ∈ { 1 , … , r − 1 } \ell\in\{1,\ldots,r-1\} ℓ ∈ { 1 , … , r − 1 } the unary polynomial
p ℓ ( x ) : = f ( a 1 , ℓ , … , a i ( ℓ ) − 1 , ℓ , x , a i ( ℓ ) + 1 , ℓ , … , a k , ℓ ) p_\ell(x) := f(a_{1,\ell},\ldots,a_{i(\ell)-1,\ell},x,a_{i(\ell)+1,\ell},\ldots,a_{k,\ell}) p ℓ ( x ) := f ( a 1 , ℓ , … , a i ( ℓ ) − 1 , ℓ , x , a i ( ℓ ) + 1 , ℓ , … , a k , ℓ ) shows that there is a forward or backward edge between the elements f ( a 1 , ℓ , … , a k , ℓ ) f(a_{1,\ell},\ldots,a_{k,\ell}) f ( a 1 , ℓ , … , a k , ℓ ) and f ( a 1 , ℓ + 1 , … , a k , ℓ + 1 ) f(a_{1,\ell+1},\ldots,a_{k,\ell+1}) f ( a 1 , ℓ + 1 , … , a k , ℓ + 1 ) . By symmetry and transitivity, we therefore obtain a path from u 0 : = f ( u 1 , … , u k ) u_0 := f(u_1,\ldots,u_k) u 0 := f ( u 1 , … , u k ) to v 0 : = f ( v 1 , … , v k ) v_0 := f(v_1,\ldots,v_k) v 0 := f ( v 1 , … , v k ) whose edges are forward or backward edges in T T T , showing that ( u 0 , v 0 ) ∈ C (u_0,v_0) \in C ( u 0 , v 0 ) ∈ C , and we are done.
Exercise 187. Show that the algebra from Example 8.10 is simple.
Exercise 188. Show that if A \mathbf{A} A is an idempotent algebra and C C C a congruence of A \mathbf{A} A , then every congruence class of C C C is a subalgebra of A \mathbf{A} A .
Exercise 189. Prove the remark after Definition 11.7.
Exercise 190. Show that if a finite abelian group is polynomially complete, then it has just one element.
Exercise 191. Show that if a lattice is polynomially complete, then it has just one element.
Exercise 192. Let A \mathbf{A} A be an algebra. Show that an equivalence relation R ⊆ A 2 R \subseteq A^2 R ⊆ A 2 is a congruence of A \mathbf{A} A if and only if it is preserved by all unary polynomials of A \mathbf{A} A . Which properties of an equivalence relation do you need in the proof?
Exercise 193. Let A \mathbf{A} A be an algebra. Then a relation R ⊆ A n R \subseteq A^n R ⊆ A n is called
reflexive if ( a , … , a ) ∈ R (a,\ldots,a) \in R ( a , … , a ) ∈ R for every a ∈ A a \in A a ∈ A .
transitive if for all ( a i j ) i , j ∈ { 1 , … , n } ∈ A n × n (a_{ij})_{i,j\in\{1,\ldots,n\}} \in A^{n\times n} ( a ij ) i , j ∈ { 1 , … , n } ∈ A n × n whose rows and columns are from R R R , we have that ( a 11 , … , a n n ) ∈ R (a_{11},\ldots,a_{nn}) \in R ( a 11 , … , a nn ) ∈ R .
Show that a reflexive and transitive R R R is preserved by Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) if and only if it is preserved by all unary polynomial operations of A \mathbf{A} A .
Exercise 194. Let A \mathbf{A} A be an algebra on a finite set and R ≤ A 2 R \leq A^2 R ≤ A 2 be subdirect. Then ⋃ i ∈ N ( R − 1 ∘ R ) i \bigcup_{i\in\mathbb{N}}(R^{-1}\circ R)^i ⋃ i ∈ N ( R − 1 ∘ R ) i is a congruence of A \mathbf{A} A .
Exercise 195. Let A \mathbf{A} A be a finite idempotent algebra. Show that the following are equivalent.
A \mathbf{A} A is polynomially complete , i.e., the clone of polynomial operations of A \mathbf{A} A equals the set of all operations on A A A .
The discriminator operation d : A 3 → A d\colon A^3 \to A d : A 3 → A is a polynomial operation of A \mathbf{A} A . The discriminator operation is defined as follows:
d ( x , y , z ) ≔ { z x = y , x x ≠ y . d(x,y,z) \coloneqq
\begin{cases}
z & x=y,\\
x & x\ne y.
\end{cases} d ( x , y , z ) : = { z x x = y , x = y .
if R ≤ A 2 R \leq A^2 R ≤ A 2 strictly contains = A =_A = A , then R = A 2 R=A^2 R = A 2 , and if R ≤ A 3 R \leq A^3 R ≤ A 3 is subdirect such that π i , j ( R ) = A 2 \pi_{i,j}(R)=A^2 π i , j ( R ) = A 2 for all { i , j } ∈ ( [ 3 ] 2 ) \{i,j\}\in\binom{[3]}{2} { i , j } ∈ ( 2 [ 3 ] ) , then R = A 3 R=A^3 R = A 3 .
Congruence Permutability
Two congruences C 1 , C 2 ∈ Con ( A ) C_1,C_2\in\operatorname{Con}(\mathbf{A}) C 1 , C 2 ∈ Con ( A ) permute if
C 1 ∘ C 2 = C 2 ∘ C 1 . C_1\circ C_2=C_2\circ C_1. C 1 ∘ C 2 = C 2 ∘ C 1 .
An algebra A \mathbf{A} A is called congruence permutable if all pairs of congruences of A \mathbf{A} A permute. In the following, it will be convenient to write a 0 C 1 a 1 C 2 a 2 ⋯ a n − 1 C n a n a_0C_1a_1C_2a_2\cdots a_{n-1}C_na_n a 0 C 1 a 1 C 2 a 2 ⋯ a n − 1 C n a n as a shortcut for a 0 C 1 a 1 a_0C_1a_1 a 0 C 1 a 1 and a 1 C 2 a 2 a_1C_2a_2 a 1 C 2 a 2 and ⋯ \cdots ⋯ a n − 1 C n a n a_{n-1}C_na_n a n − 1 C n a n .
Lemma 11.9. Let A \mathbf{A} A be an algebra such that Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) contains a Maltsev operation p p p . Then A \mathbf{A} A is congruence permutable .
Proof. Let C , E ∈ Con ( A ) C,E\in\operatorname{Con}(\mathbf{A}) C , E ∈ Con ( A ) and let ( a , b ) ∈ C ∘ E (a,b)\in C\circ E ( a , b ) ∈ C ∘ E . Then there exists c ∈ A c\in A c ∈ A with ( a , c ) ∈ C (a,c)\in C ( a , c ) ∈ C and ( c , b ) ∈ E (c,b)\in E ( c , b ) ∈ E . Note that
b = p A ( c , c , b ) C p A ( a , c , b ) E p A ( a , b , b ) = a b=p^{\mathbf{A}}(c,c,b)\mathrel{C}p^{\mathbf{A}}(a,c,b)\mathrel{E}p^{\mathbf{A}}(a,b,b)=a b = p A ( c , c , b ) C p A ( a , c , b ) E p A ( a , b , b ) = a
and thus ( b , a ) ∈ C ∘ E (b,a)\in C\circ E ( b , a ) ∈ C ∘ E and ( a , b ) ∈ E ∘ C (a,b)\in E\circ C ( a , b ) ∈ E ∘ C .
Note that most classical algebras, such as groups, rings, fields, etc., do have a Maltsev term operation, and hence are congruence permutable. Lemma 11.9 has a converse; however, for the converse we have to work with varieties of algebras. A variety is called congruence permutable if all algebras in the variety are congruence permutable. We will show that an algebra A \mathbf{A} A has a Maltsev term if and only if the variety generated by A \mathbf{A} A is congruence permutable (Corollary 11.11).
In our proof of this result, we will use the concept of rectangularity, which we have already encountered in Section 4.4, where we proved that digraphs with a Maltsev polymorphism are rectangular.
Theorem 11.10 (Maltsev). Let K \mathcal{K} K be a class of τ \tau τ -algebras. Then the following are equivalent.
HSP ( K ) \operatorname{HSP}(\mathcal{K}) HSP ( K ) is congruence permutable.
For every algebra B ∈ HSP ( K ) \mathbf{B} \in\operatorname{HSP}(\mathcal{K}) B ∈ HSP ( K ) , every subalgebra R ≤ B 2 R \leq\mathbf{B}^{2} R ≤ B 2 is rectangular.
There exists a τ \tau τ -term which denotes a Maltsev operation in every algebra in K \mathcal{K} K .
Proof. 3. implies 1.: If every algebra in K \mathcal{K} K has a Maltsev term operation, then so does HSP ( K ) \operatorname{HSP}(\mathcal{K}) HSP ( K ) , and hence the statement follows from Lemma 11.9.
implies 2.: Apply congruence permutability to the two projection congruences of R ≤ B 2 R \leq\mathbf{B}^{2} R ≤ B 2 : these are the congruences
C 1 : = { ( ( a , b ) , ( c , d ) ) ∣ ( a , b ) , ( c , d ) ∈ R , a = c } C_{1} := \{((a,b),(c,d)) \mid(a,b),(c,d) \in R, a = c\} C 1 := {(( a , b ) , ( c , d )) ∣ ( a , b ) , ( c , d ) ∈ R , a = c }
C 2 : = { ( ( a , b ) , ( c , d ) ) ∣ ( a , b ) , ( c , d ) ∈ R , b = d } . C_{2} := \{((a,b),(c,d)) \mid(a,b),(c,d) \in R, b = d\}. C 2 := {(( a , b ) , ( c , d )) ∣ ( a , b ) , ( c , d ) ∈ R , b = d } .
implies 3.: Let F : = F K ( { x , y } ) \mathbf{F} := \mathbf{F}_{\mathcal{K}}(\{x,y\}) F := F K ({ x , y }) be the free algebra for K \mathcal{K} K over { x , y } \{x,y\} { x , y } , and let R R R be the subuniverse of F 2 \mathbf{F}^{2} F 2 generated by { ( x , x ) , ( x , y ) , ( y , y ) } \{(x,x),(x,y),(y,y)\} {( x , x ) , ( x , y ) , ( y , y )} . Since R R R is rectangular, we have that ( y , x ) ∈ R (y,x) \in R ( y , x ) ∈ R . Hence, there exists a term t t t such that
t F ( ( x , x ) , ( x , y ) , ( y , y ) ) = ( y , x ) . t^{\mathbf{F}}((x,x),(x,y),(y,y)) = (y,x). t F (( x , x ) , ( x , y ) , ( y , y )) = ( y , x ) .
Then t t t satisfies t ( x , x , y ) ≈ y t(x,x,y) \approx y t ( x , x , y ) ≈ y and t ( x , y , y ) ≈ x t(x,y,y) \approx x t ( x , y , y ) ≈ x in every algebra of HSP ( K ) \operatorname{HSP}(\mathcal{K}) HSP ( K ) (Lemma 7.30). □
Corollary 11.11. Let A \mathbf{A} A be an algebra. Then the following are equivalent.
Every algebra in HSP ( A ) \operatorname{HSP}(\mathbf{A}) HSP ( A ) is congruence permutable.
For every algebra B ∈ HSP ( A ) \mathbf{B} \in\operatorname{HSP}(\mathbf{A}) B ∈ HSP ( A ) , every R ≤ B 2 R \leq\mathbf{B}^{2} R ≤ B 2 is rectangular.
A \mathbf{A} A has a Maltsev term.
Congruence Distributivity
A lattice L = ( L ; ∧ , ∨ , 0 , 1 ) \mathbf{L} = (L; \wedge,\vee,0,1) L = ( L ; ∧ , ∨ , 0 , 1 ) is called distributive if it satisfies
( x ∧ y ) ∨ z ≈ ( x ∨ z ) ∧ ( y ∨ z ) (x \wedge y) \vee z \approx(x \vee z) \wedge(y \vee z) ( x ∧ y ) ∨ z ≈ ( x ∨ z ) ∧ ( y ∨ z )
and
( x ∨ y ) ∧ z ≈ ( x ∧ z ) ∨ ( y ∨ z ) . (x \vee y) \wedge z \approx(x \wedge z) \vee(y \vee z). ( x ∨ y ) ∧ z ≈ ( x ∧ z ) ∨ ( y ∨ z ) .
An example of a distributive lattice is the set of subsets of a set S S S , equipped with the operations of intersection and union. If the congruence lattice of an algebra A \mathbf{A} A is distributive, we call A \mathbf{A} A congruence distributive .
Lemma 11.12. Every algebra with a majority term operation is congruence distributive.
Proof. Let C , D , E ∈ Con ( A ) C,D,E \in\operatorname{Con}(\mathbf{A}) C , D , E ∈ Con ( A ) and ( a , b ) ∈ C ∧ ( D ∨ E ) (a,b) \in C \wedge(D \vee E) ( a , b ) ∈ C ∧ ( D ∨ E ) . Then there are c 1 , … , c n c_{1},\ldots,c_{n} c 1 , … , c n such that
a D c 1 E c 2 D c 3 . . . c n E b . a \mathrel{D} c_{1} \mathrel{E} c_{2} \mathrel{D} c_{3} \mathinner{\ldotp\ldotp\ldotp} c_{n} \mathrel{E} b. a D c 1 E c 2 D c 3 ... c n E b .
Since ( b , a ) ∈ C (b,a) \in C ( b , a ) ∈ C , we have for all c ∈ A c \in A c ∈ A that
m A ( a , c , b ) C m A ( a , c , a ) = a . (50) m^{\mathbf{A}}(a,c,b) \mathrel{C} m^{\mathbf{A}}(a,c,a) = a. \tag*{(50)} m A ( a , c , b ) C m A ( a , c , a ) = a . (50)
Thus, for all c 1 , c 2 ∈ A c_1,c_2 \in A c 1 , c 2 ∈ A we obtain
m A ( a , c 1 , b ) C a C m A ( a , c 2 , b ) . (51) m^{\mathcal A}(a,c_1,b)\mathrel{C}a\mathrel{C}m^{\mathcal A}(a,c_2,b). \tag*{(51)} m A ( a , c 1 , b ) C a C m A ( a , c 2 , b ) . (51)
Therefore,
a = m A ( a , a , b ) ( C ∧ D ) m A ( a , c 1 , b ) (by (48)) = ( C ∧ E ) m A ( a , c 2 , b ) = ⋯ = ( C ∧ D ) m A ( a , c n , b ) = ( C ∧ E ) m A ( a , b , b ) = b . \begin{aligned}
a &= m^{\mathcal A}(a,a,b)(C\wedge D)m^{\mathcal A}(a,c_1,b) &&\text{(by (48))}\\
&\phantom{=} (C\wedge E)m^{\mathcal A}(a,c_2,b)\\
&\phantom{=} \cdots\\
&\phantom{=} (C\wedge D)m^{\mathcal A}(a,c_n,b)\\
&\phantom{=} (C\wedge E)m^{\mathcal A}(a,b,b)=b.
\end{aligned} a = m A ( a , a , b ) ( C ∧ D ) m A ( a , c 1 , b ) = ( C ∧ E ) m A ( a , c 2 , b ) = ⋯ = ( C ∧ D ) m A ( a , c n , b ) = ( C ∧ E ) m A ( a , b , b ) = b . (by (48))
We conclude that ( a , b ) ∈ ( C ∧ D ) ∨ ( C ∧ E ) (a,b) \in(C\wedge D)\vee(C\wedge E) ( a , b ) ∈ ( C ∧ D ) ∨ ( C ∧ E ) .
As in the case of congruence permutability, there is even an equational characterisation of congruence distributivity of varieties.
Theorem 11.13 (Jónsson). HSP ( K ) \operatorname{HSP}(\mathcal K) HSP ( K ) is congruence distributive if and only if there exists n ∈ N n \in\mathbb{N} n ∈ N and τ \tau τ -terms p 0 , … , p n p_0,\ldots,p_n p 0 , … , p n such that K \mathcal K K satisfies the following identities.
p i ( x , y , x ) ≈ x for i ∈ { 1 , … , n } p_i(x,y,x)\approx x \qquad\text{for }i\in\{1,\ldots,n\} p i ( x , y , x ) ≈ x for i ∈ { 1 , … , n } p 0 ( x , y , z ) ≈ x p_0(x,y,z)\approx x p 0 ( x , y , z ) ≈ x p i ( x , x , y ) ≈ p i + 1 ( x , x , y ) for i even p_i(x,x,y)\approx p_{i+1}(x,x,y) \qquad\text{for }i\text{ even} p i ( x , x , y ) ≈ p i + 1 ( x , x , y ) for i even p i ( x , y , y ) ≈ p i + 1 ( x , y , y ) for i odd p_i(x,y,y)\approx p_{i+1}(x,y,y) \qquad\text{for }i\text{ odd} p i ( x , y , y ) ≈ p i + 1 ( x , y , y ) for i odd p n ( x , y , z ) ≈ z p_n(x,y,z)\approx z p n ( x , y , z ) ≈ z
Proof. “⇒ \Rightarrow ⇒ ”. Let F : = F K ( { x , y , z } ) \mathbf F:=F_{\mathcal K}(\{x,y,z\}) F := F K ({ x , y , z }) be the free algebra for K \mathcal K K over { x , y , z } \{x,y,z\} { x , y , z } . By freeness, the following three substitutions
( x , y , z ) ↦ ( x , x , z ) , ( x , y , z ) ↦ ( x , y , y ) , ( x , y , z ) ↦ ( x , y , x ) (52) (x,y,z)\mapsto(x,x,z),\qquad(x,y,z)\mapsto(x,y,y),\qquad(x,y,z)\mapsto(x,y,x) \tag*{(52)} ( x , y , z ) ↦ ( x , x , z ) , ( x , y , z ) ↦ ( x , y , y ) , ( x , y , z ) ↦ ( x , y , x ) (52)
extend uniquely to endomorphisms σ x y \sigma_{xy} σ x y , σ y z \sigma_{yz} σ y z , and σ x z \sigma_{xz} σ x z of F \mathbf F F . Define
C x y : = ker ( σ x y ) , C y z : = ker ( σ y z ) , C x z : = ker ( σ x z ) . C_{xy}:=\ker(\sigma_{xy}),\qquad C_{yz}:=\ker(\sigma_{yz}),\qquad C_{xz}:=\ker(\sigma_{xz}). C x y := ker ( σ x y ) , C y z := ker ( σ y z ) , C x z := ker ( σ x z ) .
We have
C x z ∧ ( C x y ∨ C y z ) = ( C x z ∧ C x y ) ∨ ( C x z ∧ C y z ) C_{xz}\wedge(C_{xy}\vee C_{yz})=(C_{xz}\wedge C_{xy})\vee(C_{xz}\wedge C_{yz}) C x z ∧ ( C x y ∨ C y z ) = ( C x z ∧ C x y ) ∨ ( C x z ∧ C y z )
and hence ( x , z ) ∈ ( C x z ∧ C x y ) ∨ ( C x z ∧ C y z ) (x,z)\in(C_{xz}\wedge C_{xy})\vee(C_{xz}\wedge C_{yz}) ( x , z ) ∈ ( C x z ∧ C x y ) ∨ ( C x z ∧ C y z ) in F \mathbf F F . Thus, there are p 1 , … , p n − 1 ∈ F p_1,\ldots,p_{n-1}\in\mathbf F p 1 , … , p n − 1 ∈ F such that each of ( x , p 1 ) , ( p 1 , p 2 ) , … , ( p n − 1 , z ) (x,p_1),(p_1,p_2),\ldots,(p_{n-1},z) ( x , p 1 ) , ( p 1 , p 2 ) , … , ( p n − 1 , z ) is in C x z ∧ C x y C_{xz}\wedge C_{xy} C x z ∧ C x y or in C x z ∧ C y z C_{xz}\wedge C_{yz} C x z ∧ C y z . By padding the sequence p 1 , … , p n − 1 p_1,\ldots,p_{n-1} p 1 , … , p n − 1 with repeated entries, we may even suppose that
x ( C x z ∧ C x y ) p 1 (53) x\,(C_{xz}\wedge C_{xy})\,p_1 \tag*{(53)} x ( C x z ∧ C x y ) p 1 (53)
p 1 ( C x z ∧ C y z ) p 2 (54) p_1\,(C_{xz}\wedge C_{yz})\,p_2 \tag*{(54)} p 1 ( C x z ∧ C y z ) p 2 (54)
p n − 1 ( C x z ∧ C y z ) z (55) p_{n-1}\,(C_{xz}\wedge C_{yz})\,z \tag*{(55)} p n − 1 ( C x z ∧ C y z ) z (55)
and that in particular n n n is odd. From (50) we obtain that
x ≈ p 1 ( x , y , x ) ≈ p 1 ( x , x , y ) , x \approx p_1(x,y,x) \approx p_1(x,x,y), x ≈ p 1 ( x , y , x ) ≈ p 1 ( x , x , y ) ,
from (51) we obtain
p 1 ( x , y , x ) ≈ p 2 ( x , y , x ) p_1(x,y,x) \approx p_2(x,y,x) p 1 ( x , y , x ) ≈ p 2 ( x , y , x )
and
p 1 ( x , y , y ) ≈ p 2 ( x , y , y ) , p_1(x,y,y) \approx p_2(x,y,y), p 1 ( x , y , y ) ≈ p 2 ( x , y , y ) ,
and from (52) that p n − 1 ( z , x , z ) ≈ p n − 1 ( x , z , z ) ≈ z p_{n-1}(z,x,z) \approx p_{n-1}(x,z,z) \approx z p n − 1 ( z , x , z ) ≈ p n − 1 ( x , z , z ) ≈ z . Similarly, all other identities from the statement can be derived from the sequence (51)–(52).
“⇐ \Leftarrow ⇐ ”. Let A ∈ HSP ( K ) A \in\operatorname{HSP}(\mathcal{K}) A ∈ HSP ( K ) and let C 1 , C 2 , C 3 ∈ Con ( A ) C_1,C_2,C_3 \in\operatorname{Con}(A) C 1 , C 2 , C 3 ∈ Con ( A ) . Put
Q : = ( C 1 ∧ C 2 ) ∨ ( C 1 ∧ C 3 ) . Q := (C_1 \wedge C_2) \vee(C_1 \wedge C_3). Q := ( C 1 ∧ C 2 ) ∨ ( C 1 ∧ C 3 ) .
It suffices to prove that
C 1 ∧ ( C 2 ∨ C 3 ) ⊆ Q , C_1 \wedge(C_2 \vee C_3) \subseteq Q, C 1 ∧ ( C 2 ∨ C 3 ) ⊆ Q ,
since the converse inclusion holds in every lattice. Let ( a , b ) ∈ C 1 ∧ ( C 2 ∨ C 3 ) (a,b) \in C_1 \wedge(C_2 \vee C_3) ( a , b ) ∈ C 1 ∧ ( C 2 ∨ C 3 ) . Since ( a , b ) ∈ C 2 ∨ C 3 (a,b) \in C_2 \vee C_3 ( a , b ) ∈ C 2 ∨ C 3 , there exist
a = d 0 , d 1 , … , d m = b a=d_0,d_1,\ldots,d_m=b a = d 0 , d 1 , … , d m = b
such that, for every j ∈ { 1 , … , m } j \in\{1,\ldots,m\} j ∈ { 1 , … , m } , either d j − 1 C 2 d j d_{j-1}\mathrel{C_2}d_j d j − 1 C 2 d j or d j − 1 C 3 d j d_{j-1}\mathrel{C_3}d_j d j − 1 C 3 d j . For i ∈ { 0 , … , n } i \in\{0,\ldots,n\} i ∈ { 0 , … , n } , put
L i : = p i ( a , a , b ) and R i : = p i ( a , b , b ) . L_i := p_i(a,a,b) \qquad\text{and}\qquad R_i := p_i(a,b,b). L i := p i ( a , a , b ) and R i := p i ( a , b , b ) .
We claim that
L i Q R i for every i ∈ { 1 , … , n } . L_i\mathrel{Q}R_i \qquad\text{for every } i \in\{1,\ldots,n\}. L i Q R i for every i ∈ { 1 , … , n } .
Indeed, fix such an i i i . Since ( a , b ) ∈ C 1 (a,b) \in C_1 ( a , b ) ∈ C 1 and C 1 C_1 C 1 is compatible with the term operation p i p_i p i , for every j ∈ { 0 , … , m } j \in\{0,\ldots,m\} j ∈ { 0 , … , m } we have
p i ( a , d j , b ) C 1 p i ( a , d j , a ) = a . p_i(a,d_j,b)\mathrel{C_1}p_i(a,d_j,a)=a. p i ( a , d j , b ) C 1 p i ( a , d j , a ) = a .
Moreover, if d j − 1 C ℓ d j d_{j-1}\mathrel{C_\ell}d_j d j − 1 C ℓ d j , where ℓ ∈ { 2 , 3 } \ell\in\{2,3\} ℓ ∈ { 2 , 3 } , then compatibility with C ℓ C_\ell C ℓ gives
p i ( a , d j − 1 , b ) C ℓ p i ( a , d j , b ) . p_i(a,d_{j-1},b)\mathrel{C_\ell}p_i(a,d_j,b). p i ( a , d j − 1 , b ) C ℓ p i ( a , d j , b ) .
Consequently,
p i ( a , d j − 1 , b ) C 1 ∧ C ℓ p i ( a , d j , b ) , p_i(a,d_{j-1},b)\mathrel{C_1\wedge C_\ell}p_i(a,d_j,b), p i ( a , d j − 1 , b ) C 1 ∧ C ℓ p i ( a , d j , b ) ,
and hence
p i ( a , d j − 1 , b ) Q p i ( a , d j , b ) . p_i(a,d_{j-1},b)\mathrel{Q}p_i(a,d_j,b). p i ( a , d j − 1 , b ) Q p i ( a , d j , b ) .
Following the sequence d 0 , … , d m d_0,\ldots,d_m d 0 , … , d m , and using the transitivity of Q Q Q , yields
L i = p i ( a , d 0 , b ) Q p i ( a , d m , b ) = R i , L_i=p_i(a,d_0,b)\mathrel{Q}p_i(a,d_m,b)=R_i, L i = p i ( a , d 0 , b ) Q p i ( a , d m , b ) = R i ,
as claimed.
It remains to concatenate these relations for the successive Jonsson terms. The linking identities imply
L i = L i + 1 if i is even , R i = R i + 1 if i is odd . L_i=L_{i+1}\quad\text{if }i\text{ is even},\qquad R_i=R_{i+1}\quad\text{if }i\text{ is odd}. L i = L i + 1 if i is even , R i = R i + 1 if i is odd .
Furthermore, the endpoint identities give
L 0 = p 0 ( a , a , b ) = a and L n = R n = b . L_0=p_0(a,a,b)=a \qquad\text{and}\qquad L_n=R_n=b. L 0 = p 0 ( a , a , b ) = a and L n = R n = b .
Thus, using also the symmetry of Q Q Q , the relations L i Q R i L_i\mathbin{Q}R_i L i Q R i concatenate as
a = L 0 = L 1 Q R 1 = R 2 Q L 2 = L 3 Q R 3 = R 4 Q ⋯ Q b . a=L_0=L_1\mathbin{Q}R_1=R_2\mathbin{Q}L_2=L_3\mathbin{Q}R_3=R_4\mathbin{Q}\cdots\mathbin{Q}b. a = L 0 = L 1 Q R 1 = R 2 Q L 2 = L 3 Q R 3 = R 4 Q ⋯ Q b .
Therefore ( a , b ) ∈ Q (a,b)\in Q ( a , b ) ∈ Q , and hence
C 1 ∧ ( C 2 ∨ C 3 ) ⊆ ( C 1 ∧ C 2 ) ∨ ( C 1 ∧ C 3 ) . C_1\wedge(C_2\vee C_3)\subseteq(C_1\wedge C_2)\vee(C_1\wedge C_3). C 1 ∧ ( C 2 ∨ C 3 ) ⊆ ( C 1 ∧ C 2 ) ∨ ( C 1 ∧ C 3 ) .
This proves that Con ( A ) \operatorname{Con}(A) Con ( A ) is distributive.
A sequence of operations ( p 0 , … , p n ) (p_0,\ldots,p_n) ( p 0 , … , p n ) which satisfy the identities from Theorem 11.13 is called a Jónsson chain; if A A A is a τ \tau τ -algebra and t 0 , … , t n t_0,\ldots,t_n t 0 , … , t n are τ \tau τ -terms such that ( t 0 A , … , t n A ) (t_0^A,\ldots,t_n^A) ( t 0 A , … , t n A ) is a Jónsson chain, then t 0 , … , t n t_0,\ldots,t_n t 0 , … , t n are called Jónsson terms .
Example 11.14. Let A = ( { 0 , 1 } ; p ) A=({\{0,1\}};p) A = ( { 0 , 1 } ; p ) be the algebra where p p p is the ternary operation given by p ( x , y , z ) : = x ∧ ( y ∨ z ) p(x,y,z):=x\wedge(y\vee z) p ( x , y , z ) := x ∧ ( y ∨ z ) . Then
p ( x , x , x ) ⏟ = : p 0 , p ( x , y , z ) ⏟ = : p 1 , p ( x , z , z ) ⏟ = : p 2 , p ( z , y , x ) ⏟ = : p 3 , p ( z , z , z ) ⏟ = : p 4 \underbrace{p(x,x,x)}_{=:p_0},\underbrace{p(x,y,z)}_{=:p_1},\underbrace{p(x,z,z)}_{=:p_2},\underbrace{p(z,y,x)}_{=:p_3},\underbrace{p(z,z,z)}_{=:p_4} =: p 0 p ( x , x , x ) , =: p 1 p ( x , y , z ) , =: p 2 p ( x , z , z ) , =: p 3 p ( z , y , x ) , =: p 4 p ( z , z , z ) are Jónsson terms: for any x , y , z ∈ { 0 , 1 } x,y,z\in{\{0,1\}} x , y , z ∈ { 0 , 1 } we have
p 1 A ( x , y , x ) = x ∧ ( y ∨ x ) = x p_1^A(x,y,x)=x\wedge(y\vee x)=x p 1 A ( x , y , x ) = x ∧ ( y ∨ x ) = x for every i ∈ { 1 , … , 4 } i\in{\{1,\ldots,4\}} i ∈ { 1 , … , 4 } ,
p 0 A ( x , y , z ) = x p_0^A(x,y,z)=x p 0 A ( x , y , z ) = x ,
p 1 A ( x , y , y ) = p ( x , y , y ) = p 2 A ( x , y , y ) p_1^A(x,y,y)=p(x,y,y)=p_2^A(x,y,y) p 1 A ( x , y , y ) = p ( x , y , y ) = p 2 A ( x , y , y ) ,
p 2 A ( x , x , y ) = p ( x , y , y ) = ( x ∧ y ) = ( y ∧ x ) = p ( y , x , x ) = p 3 A ( x , x , y ) p_2^A(x,x,y)=p(x,y,y)=(x\wedge y)=(y\wedge x)=p(y,x,x)=p_3^A(x,x,y) p 2 A ( x , x , y ) = p ( x , y , y ) = ( x ∧ y ) = ( y ∧ x ) = p ( y , x , x ) = p 3 A ( x , x , y ) ,
p 3 A ( x , y , y ) = p ( y , x , y ) = y = p 4 A ( x , y , y ) p_3^A(x,y,y)=p(y,x,y)=y=p_4^A(x,y,y) p 3 A ( x , y , y ) = p ( y , x , y ) = y = p 4 A ( x , y , y ) ,
p 4 A ( x , y , z ) = p ( z , z , z ) = z p_4^A(x,y,z)=p(z,z,z)=z p 4 A ( x , y , z ) = p ( z , z , z ) = z .
If the variety is generated by the polymorphism clone of a finite structure B \mathbb{B} B with finite relational signature, the term condition in Theorem 11.13 has drastic consequences for CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) , similarly as in the previous section for congruence permutable varieties. Barto [7] proved that in this case B \mathbb{B} B must also have a near unanimity polymorphism and hence can be solved in polynomial time (see Exercise 138, or Corollary 15.44).
Exercise 196. Let f : A → ∏ i ∈ I A i f:A\to\prod_{i\in I}A_i f : A → ∏ i ∈ I A i be a homomorphism. Show that
Ker ( f ) = ⋂ i ∈ I Ker ( π i ∘ f ) \operatorname{Ker}(f)=\bigcap_{i\in I}\operatorname{Ker}(\pi_i\circ f) Ker ( f ) = i ∈ I ⋂ Ker ( π i ∘ f )
Exercise 197. Show that the variety of all lattices is congruence distributive, but not congruence permutable.
Exercise 198. Show that the variety of Boolean algebras is both congruence permutable and congruence distributive.
Exercise 199. Show that if A \mathbf{A} A is a finite simple algebra and it has a Pixley term, then it is polynomially complete (see Exercise 195).
Exercise 200. Show that the algebra A = ( { 0 , 1 } ; f k ) \mathbf{A} = (\{0,1\}; f_k) A = ({ 0 , 1 } ; f k ) from Example 6.34 generates a congruence distributive variety.
Exercise 201. Show that every algebra with a near unanimity term also has Jónsson terms.
Exercise 202. Show that SH ( K ) ⊆ HS ( K ) \operatorname{SH}(\mathcal{K}) \subseteq\operatorname{HS}(\mathcal{K}) SH ( K ) ⊆ HS ( K ) , PS ( K ) ⊆ SP ( K ) \operatorname{PS}(\mathcal{K}) \subseteq\operatorname{SP}(\mathcal{K}) PS ( K ) ⊆ SP ( K ) , and PH ( K ) ⊆ HP ( K ) \operatorname{PH}(\mathcal{K}) \subseteq\operatorname{HP}(\mathcal{K}) PH ( K ) ⊆ HP ( K ) .
Exercise 203. Show that a lattice satisfies the two identities
x ∧ ( y ∨ z ) ≈ ( x ∧ y ) ∨ ( x ∧ z ) x \wedge(y \vee z) \approx(x \wedge y) \vee(x \wedge z) x ∧ ( y ∨ z ) ≈ ( x ∧ y ) ∨ ( x ∧ z )
x ∨ ( y ∧ z ) ≈ ( x ∨ y ) ∧ ( x ∨ z ) x \vee(y \wedge z) \approx(x \vee y) \wedge(x \vee z) x ∨ ( y ∧ z ) ≈ ( x ∨ y ) ∧ ( x ∨ z )
if and only if it satisfies one of those identities.
Exercise 204. Let A \mathbf{A} A be an algebra. A term t t t is called a Pixley term if it satisfies
t ( x , y , y ) ≈ x t(x,y,y) \approx x t ( x , y , y ) ≈ x
t ( x , y , x ) ≈ x t(x,y,x) \approx x t ( x , y , x ) ≈ x
t ( y , y , x ) ≈ x . t(y,y,x) \approx x. t ( y , y , x ) ≈ x .
Show that if t t t is a Pixley term, then t ( x , t ( x , y , z ) , z ) t(x,t(x,y,z),z) t ( x , t ( x , y , z ) , z ) is a majority term.
Exercise 205. Show that an algebra A \mathbf{A} A generates a variety which is both congruence permutable and congruence distributive if and only if it has a Pixley term.
Abelian Algebras
Modules (Example 7.3) have many strong properties and are very well understood. Affine algebras are ‘essentially’ modules and introduced in Section 12.1. The relevance of affine algebras in the context of constraint satisfaction is that core structures with more than one element and whose polymorphism algebra is idempotent and affine can pp-construct ( Z p ; + , 1 ) (\mathbb{Z}_p; +, 1) ( Z p ; + , 1 ) , for some prime p p p (Section 12.2). We have seen in Theorem 8.9 that the CSP of such structures cannot be solved by k k k -consistency, for any k k k .
Abelian algebras are defined more abstractly (Section 12.3). It turns out that under fairly general conditions, abelian algebras must be affine; this is the content of the fundamental theorem of abelian algebras which will be presented in Section 12.3 (Theorem 12.13) and generalised later in Section 13.4. Section 12.4 presents other useful characterisations of abelian algebras in terms of congruences.
Affine Algebras
In the study of the CSP, we may assume without loss of generality that our template contains all unary singleton relations (Section 5.6). The polymorphism clone of the resulting template is then idempotent. In this section, in order to define affine algebras, we do the opposite: we first add all constant operations to the polymorphism clone of our structure! This might appear strange from the CSP perspective, because templates with constant polymorphisms have a trivial CSP. However, miraculously we can still use the resulting definitions and theorems about algebras and interpret them in the original idempotent setting.
An algebra A is called affine if A is polynomially equivalent (Definition 11.7) to a module (Example 7.3). Clearly, every module M has a Maltsev term operation, namely ( x , y , z ) ↦ x − y + z (x,y,z) \mapsto x-y+z ( x , y , z ) ↦ x − y + z , so every affine algebra has a Maltsev polynomial operation. Something stronger holds.
Lemma 12.1. If A is affine , then ( x , y , z ) ↦ x − y + z (x,y,z) \mapsto x-y+z ( x , y , z ) ↦ x − y + z is the unique Maltsev polynomial operation of A .
Proof. Suppose that A is polynomially equivalent to a module M over the ring R . Let m ( x , y , z ) = α x + β y + γ z + d m(x,y,z)=\alpha x+\beta y+\gamma z+d m ( x , y , z ) = α x + β y + γ z + d , for α , β , γ ∈ R \alpha,\beta,\gamma\in R α , β , γ ∈ R and d ∈ M d\in M d ∈ M , be a Maltsev polynomial operation of A . Since m ( 0 , 0 , 0 ) = 0 m(0,0,0)=0 m ( 0 , 0 , 0 ) = 0 we must have d = 0 d=0 d = 0 . Moreover, for all x ∈ M x\in M x ∈ M we have x = m ( x , 0 , 0 ) = α x x=m(x,0,0)=\alpha x x = m ( x , 0 , 0 ) = α x and analogously we obtain x = γ x x=\gamma x x = γ x . Finally, m ( x , x , 0 ) = x + β x = 0 m(x,x,0)=x+\beta x=0 m ( x , x , 0 ) = x + β x = 0 , and therefore β x = − x \beta x=-x β x = − x . We conclude that m ( x , y , z ) = x − y + z m(x,y,z)=x-y+z m ( x , y , z ) = x − y + z .
Example 12.3. Every abelian group is affine: let R be the ring of integers Z \mathbb{Z} Z , and define scalar multiplication as follows
n ⋅ x : = { x + ⋯ + x ⏟ n times if n > 0 , 0 if n = 0 , − x + ⋯ + x ⏟ − n times if n < 0. n\cdot x :=
\begin{cases}
\underbrace{x+\cdots+x}_{n\text{ times}} & \text{if } n>0,\\
0 & \text{if } n=0,\\
\underbrace{-x+\cdots+x}_{-n\text{ times}} & \text{if } n<0.
\end{cases} n ⋅ x := ⎩ ⎨ ⎧ n times x + ⋯ + x 0 − n times − x + ⋯ + x if n > 0 , if n = 0 , if n < 0.
Definition 12.4. Let A be an algebra. An operation m : A k → A m:A^{k}\to A m : A k → A is called central in A if m m m is a homomorphism from A k A^{k} A k to A .
Lemma 12.6. Let A be affine . Then the operation ( x , y , z ) ↦ x − y + z (x,y,z) \mapsto x-y+z ( x , y , z ) ↦ x − y + z is central.
Proof. Let f f f be a basic operation of A of arity n n n . Since A is affine we can write f f f as ∑ i = 1 n α i x i + c \sum_{i=1}^{n}\alpha_i x_i+c ∑ i = 1 n α i x i + c . Then
f ( x ˉ ) − f ( y ˉ ) + f ( z ˉ ) = ∑ i ∈ { 1 , … , n } α i x i + c − ( ∑ i ∈ { 1 , … , n } α i y i + c ) + ∑ i ∈ { 1 , … , n } α i z i + c = ∑ i ∈ { 1 , … , n } α i ( x i − y i + z i ) + c = f ( x 1 − y 1 + z 1 , … , x n − y n + z n ) . \begin{aligned}
f(\bar{x})-f(\bar{y})+f(\bar{z})&=\sum_{i\in\{1,\ldots,n\}}\alpha_i x_i+c-\left(\sum_{i\in\{1,\ldots,n\}}\alpha_i y_i+c\right)+\sum_{i\in\{1,\ldots,n\}}\alpha_i z_i+c\\
&=\sum_{i\in\{1,\ldots,n\}}\alpha_i(x_i-y_i+z_i)+c\\
&=f(x_1-y_1+z_1,\ldots,x_n-y_n+z_n).
\end{aligned} f ( x ˉ ) − f ( y ˉ ) + f ( z ˉ ) = i ∈ { 1 , … , n } ∑ α i x i + c − i ∈ { 1 , … , n } ∑ α i y i + c + i ∈ { 1 , … , n } ∑ α i z i + c = i ∈ { 1 , … , n } ∑ α i ( x i − y i + z i ) + c = f ( x 1 − y 1 + z 1 , … , x n − y n + z n ) .
Exercise 206. Let A \mathbf{A} A be an affine conservative algebra with ∣ A ∣ ≥ 2 |A|\geq2 ∣ A ∣ ≥ 2 . Show that ∣ A ∣ = 2 |A|=2 ∣ A ∣ = 2 .
Exercise 207. Find structures B \mathcal{B} B and C \mathcal{C} C with finite relational signatures such that Pol ( C ) \operatorname{Pol}(\mathcal{C}) Pol ( C ) equals the set of all idempotent operations generated by Pol ( B ) ∪ { x ↦ b ∣ b ∈ B } \operatorname{Pol}(\mathcal{B})\cup\{x\mapsto b\mid b\in B\} Pol ( B ) ∪ { x ↦ b ∣ b ∈ B } , and CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) is NP-hard and CSP ( C ) \operatorname{CSP}(\mathcal{C}) CSP ( C ) is in P.
Structures with an Idempotent Affine Polymorphism Clone
In this section we show that if a finite structure of size at least two has an idempotent affine polymorphism algebra, it can simulate systems of linear equations over a finite field.
Proposition 12.7. Let B \mathcal{B} B be a finite structure with at least two elements and let A \mathbf{A} A be an affine idempotent algebra such that Clo ( A ) = Pol ( B ) \operatorname{Clo}(\mathbf{A})=\operatorname{Pol}(\mathcal{B}) Clo ( A ) = Pol ( B ) . Then there exists a prime number p p p such that B \mathcal{B} B pp-constructs ( Z p ; + , 1 ) (\mathbb{Z}_p; +,1) ( Z p ; + , 1 ) .
Proof. Let R + R_+ R + be the graph of addition in the abelian group underlying A \mathbf{A} A . Since m ( x , y , z ) = x − y + z m(x,y,z)=x-y+z m ( x , y , z ) = x − y + z is central in A \mathbf{A} A (Lemma 12.6 ) and A \mathbf{A} A is idempotent, the operation ( x , y ) ↦ m ( x , 0 , y ) = x + y (x,y)\mapsto m(x,0,y)=x+y ( x , y ) ↦ m ( x , 0 , y ) = x + y is central as well. Hence, R + R_+ R + is preserved by Pol ( B ) = Clo ( A ) \operatorname{Pol}(\mathcal{B})=\operatorname{Clo}(\mathbf{A}) Pol ( B ) = Clo ( A ) and has a primitive positive definition α + \alpha_+ α + in B \mathcal{B} B by Theorem 6.7 . Every operation in Pol ( B ) = Clo ( A ) \operatorname{Pol}(\mathcal{B})=\operatorname{Clo}(\mathbf{A}) Pol ( B ) = Clo ( A ) is idempotent and therefore preserves the singleton relation { b } \{b\} { b } . Again by Theorem 6.7 , there is a primitive positive formula β b ( x ) \beta_b(x) β b ( x ) defining { b } \{b\} { b } in B \mathcal{B} B .
Since A \mathbf{A} A has at least two elements, the finite abelian group ( A ; + , − , 0 ) (A; +,-,0) ( A ; + , − , 0 ) contains an element of prime order. Fix such a prime p p p . The formula
φ p ( x ) : = ∃ s 2 , … , s p ( α + ( x , x , s 2 ) ∧ ⋀ j = 2 p − 1 α + ( s j , x , s j + 1 ) ∧ β 0 ( s p ) ) \varphi_p(x):=\exists s_2,\ldots,s_p\left(\alpha_+(x,x,s_2)\land\bigwedge_{j=2}^{p-1}\alpha_+(s_j,x,s_{j+1})\land\beta_0(s_p)\right) φ p ( x ) := ∃ s 2 , … , s p ( α + ( x , x , s 2 ) ∧ j = 2 ⋀ p − 1 α + ( s j , x , s j + 1 ) ∧ β 0 ( s p ) )
defines A p : = { x ∈ A ∣ p x = 0 } A_p:=\{x\in A\mid px=0\} A p := { x ∈ A ∣ p x = 0 } , which is a non-trivial subgroup of ( A ; + , − , 0 ) (A; +,-,0) ( A ; + , − , 0 ) and an abelian p p p -group. So by elementary group theory (see, e.g., Theorem 5 in Chapter 5 of [54]) there exist k ≥ 1 k\geq1 k ≥ 1 and a group isomorphism
i : A p → ( Z p ) k . i:A_p\to(\mathbb{Z}_p)^k. i : A p → ( Z p ) k .
Put
b : = i − 1 ( 1 , 0 , … , 0 ) . b:=i^{-1}(1,0,\ldots,0). b := i − 1 ( 1 , 0 , … , 0 ) .
Let C \mathcal{C} C be the relational structure with domain A p A_p A p , with the restriction of R + R_+ R + to ( A p ) 3 (A_p)^3 ( A p ) 3 , and with the unary relation { b } \{b\} { b } . The structure C \mathcal{C} C has a one-dimensional primitive positive interpretation in B \mathcal{B} B : use φ p ( x ) \varphi_p(x) φ p ( x ) as the domain formula,
φ p ( x ) ∧ φ p ( y ) ∧ φ p ( z ) ∧ α + ( x , y , z ) \varphi_p(x)\land\varphi_p(y)\land\varphi_p(z)\land\alpha_+(x,y,z) φ p ( x ) ∧ φ p ( y ) ∧ φ p ( z ) ∧ α + ( x , y , z )
as the formula for its addition relation, and β b ( x ) \beta_b(x) β b ( x ) as the formula for its singleton relation.
It remains to observe that C \mathcal{C} C is homomorphically equivalent to ( Z p ; + , 1 ) (\mathbb{Z}_p; +, 1) ( Z p ; + , 1 ) , where + + + denotes the graph of addition and 1 1 1 denotes the singleton relation { 1 } \{1\} { 1 } . A homomorphism from C \mathcal{C} C to ( Z p ; + , 1 ) (\mathbb{Z}_p; +, 1) ( Z p ; + , 1 ) is
π 1 ∘ i , \pi_1 \circ i, π 1 ∘ i ,
and a homomorphism in the other direction is
x ↦ i − 1 ( x , 0 , … , 0 ) . x \mapsto i^{-1}(x,0,\ldots,0). x ↦ i − 1 ( x , 0 , … , 0 ) .
Both maps preserve addition, and they map b b b to 1 1 1 and 1 1 1 to b b b , respectively. Hence, ( Z p ; + , 1 ) (\mathbb{Z}_p; +, 1) ( Z p ; + , 1 ) is homomorphically equivalent to a structure with a primitive positive interpretation in B \mathcal{B} B . Therefore, B \mathcal{B} B pp-constructs ( Z p ; + , 1 ) (\mathbb{Z}_p; +, 1) ( Z p ; + , 1 ) .
The Term Condition
We will see that affine algebras satisfy a general ‘universal-algebraic’ condition, abelianness.
Definition 12.8. An algebra A \mathbf{A} A is abelian if it satisfies the term condition , i.e., for every term t t t of arity k + 1 k+1 k + 1 , all a , b ∈ A a,b \in A a , b ∈ A and tuples c , d ∈ A k c,d \in A^k c , d ∈ A k
t ( a , c ) = t ( a , d ) ⇒ t ( b , c ) = t ( b , d ) . t(a,c)=t(a,d) \Rightarrow t(b,c)=t(b,d). t ( a , c ) = t ( a , d ) ⇒ t ( b , c ) = t ( b , d ) .
We also say that in Definition 12.8 the term condition is applied to the first argument of t t t ; since we can permute arguments of t t t it is clear what is meant by applying the term condition to other arguments of t t t .
Example 12.9. Every algebra all of whose operations are essentially unary is abelian. △
Example 12.10. A group G = ( G ; ∘ , − 1 , e ) \mathbf{G}=(G;\circ,{}^{-1},e) G = ( G ; ∘ , − 1 , e ) (Example 7.1) is abelian if and only if multiplication is commutative, i.e., G \mathbf{G} G satisfies x ∘ y ≈ y ∘ x x \circ y \approx y \circ x x ∘ y ≈ y ∘ x . Let us consider the term operation
[ z 1 , z 2 ] : = z 1 − 1 ∘ z 2 − 1 ∘ z 1 ∘ z 2 [z_1,z_2] := z_1^{-1} \circ z_2^{-1} \circ z_1 \circ z_2 [ z 1 , z 2 ] := z 1 − 1 ∘ z 2 − 1 ∘ z 1 ∘ z 2 (the commutator from group theory) and let x , y ∈ G x,y \in G x , y ∈ G . Then [ e , y ] = e = [ e , e ] [e,y]=e=[e,e] [ e , y ] = e = [ e , e ] . The term condition implies that we can exchange e e e in the first argument of the term by x x x , and obtain [ x , y ] = [ x , e ] = e [x,y]=[x,e]=e [ x , y ] = [ x , e ] = e . Thus, [ x , y ] = x − 1 y − 1 x y = e [x,y]=x^{-1}y^{-1}xy=e [ x , y ] = x − 1 y − 1 x y = e which implies that x y = y x xy=yx x y = y x . The converse direction follows from Lemma 12.11. △
Lemma 12.11. Every affine algebra A \mathbf{A} A is abelian.
Proof. To verify the term condition of A \mathbf{A} A , let t t t be a term operation. By assumption, t t t can be written as t ( x , y 1 , … , y n ) = α 0 x + ∑ i ∈ { 1 , … , n } α i y i + c t(x,y_1,\ldots,y_n)=\alpha_0x+\sum_{i\in\{1,\ldots,n\}}\alpha_i y_i+c t ( x , y 1 , … , y n ) = α 0 x + ∑ i ∈ { 1 , … , n } α i y i + c . Now, if a , b ∈ A a,b\in A a , b ∈ A and u , v ∈ A n u,v\in A^n u , v ∈ A n then
t ( a , u ) = t ( a , v ) ⇔ ∑ i ∈ { 1 , … , n } α i u i = ∑ i ∈ { 1 , … , n } α i v i t(a,u)=t(a,v)\Leftrightarrow\sum_{i\in\{1,\ldots,n\}}\alpha_i u_i=\sum_{i\in\{1,\ldots,n\}}\alpha_i v_i t ( a , u ) = t ( a , v ) ⇔ i ∈ { 1 , … , n } ∑ α i u i = i ∈ { 1 , … , n } ∑ α i v i ⇔ t ( b , u ) = t ( b , v ) . \Leftrightarrow t(b,u)=t(b,v). ⇔ t ( b , u ) = t ( b , v ) .
Lemma 12.12. Let A \mathbf{A} A be an algebra. Then A \mathbf{A} A satisfies the term condition if and only if, for every ( k + 1 ) (k+1) ( k + 1 ) -ary polynomial operation p : A k + 1 → A p:A^{k+1}\to A p : A k + 1 → A , all a , b ∈ A a,b\in A a , b ∈ A , and all c , d ∈ A k c,d\in A^k c , d ∈ A k , we have
p ( a , c ) = p ( a , d ) ⟹ p ( b , c ) = p ( b , d ) . p(a,c)=p(a,d)\quad\Longrightarrow\quad p(b,c)=p(b,d). p ( a , c ) = p ( a , d ) ⟹ p ( b , c ) = p ( b , d ) .
Proof. Suppose first that A \mathbf{A} A satisfies the term condition, and let p : A k + 1 → A p:A^{k+1}\to A p : A k + 1 → A be a polynomial operation. Then there exist a term
t ( x , y 1 , … , y k , z 1 , … , z ℓ ) t(x,y_1,\ldots,y_k,z_1,\ldots,z_\ell) t ( x , y 1 , … , y k , z 1 , … , z ℓ )
and parameters e 1 , … , e ℓ ∈ A e_1,\ldots,e_\ell\in A e 1 , … , e ℓ ∈ A such that
p ( x , y 1 , … , y k ) = t A ( x , y 1 , … , y k , e 1 , … , e ℓ ) p(x,y_1,\ldots,y_k)=t^{\mathbf{A}}(x,y_1,\ldots,y_k,e_1,\ldots,e_\ell) p ( x , y 1 , … , y k ) = t A ( x , y 1 , … , y k , e 1 , … , e ℓ )
for all x , y 1 , … , y k ∈ A x,y_1,\ldots,y_k\in A x , y 1 , … , y k ∈ A . Let a , b ∈ A a,b\in A a , b ∈ A and c , d ∈ A k c,d\in A^k c , d ∈ A k , and suppose that p ( a , c ) = p ( a , d ) p(a,c)=p(a,d) p ( a , c ) = p ( a , d ) . Writing e : = ( e 1 , … , e ℓ ) e:=(e_1,\ldots,e_\ell) e := ( e 1 , … , e ℓ ) , this means that
t A ( a , c , e ) = t A ( a , d , e ) . t^{\mathbf{A}}(a,c,e)=t^{\mathbf{A}}(a,d,e). t A ( a , c , e ) = t A ( a , d , e ) .
Applying the term condition to the first argument of t t t and to the tuples ( c , e ) (c,e) ( c , e ) and ( d , e ) (d,e) ( d , e ) gives
t A ( b , c , e ) = t A ( b , d , e ) . t^{\mathbf{A}}(b,c,e)=t^{\mathbf{A}}(b,d,e). t A ( b , c , e ) = t A ( b , d , e ) .
Hence p ( b , c ) = p ( b , d ) p(b,c)=p(b,d) p ( b , c ) = p ( b , d ) .
Conversely, every term operation is a polynomial operation, obtained by taking no parameters. Therefore, if the displayed condition holds for all polynomial operations, then it holds in particular for all term operations, and thus A \mathbf{A} A satisfies the term condition.
The following result was found by H. P. Gumm and, independently, J. D. H. Smith; note that it is not restricted to algebras with a finite domain.
Theorem 12.13 (Fundamental theorem of abelian algebras; see [96]). Let A \mathbf{A} A be an algebra. Then the following are equivalent.
A \mathbf{A} A is abelian and has a Maltsev term m m m .
A \mathbf{A} A is affine.
There exists an abelian group ( A ; + , − , 0 ) (A; +,-,0) ( A ; + , − , 0 ) such that the operation ( x , y , z ) ↦ x − y + z (x,y,z)\mapsto x-y+z ( x , y , z ) ↦ x − y + z belongs to Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) and is central in A \mathbf{A} A .
A \mathbf{A} A has a central Maltsev term m m m .
Proof. We prove these implications in cyclic order.
For the implication from (1) to (2), we need to construct a module M \mathbf{M} M that is polynomially equivalent to A \mathbf{A} A . Arbitrarily fix 0 ∈ A 0\in A 0 ∈ A . Define x + M y : = m ( x , 0 , y ) x+_{\mathbf{M}}y:=m(x,0,y) x + M y := m ( x , 0 , y ) and − M x : = m ( 0 , x , 0 ) -_{\mathbf{M}}x:=m(0,x,0) − M x := m ( 0 , x , 0 ) . The scalar ring R \mathbf{R} R has domain
R : = { r ∈ A A ∣ r is a unary polynomial operation of A and r ( 0 ) = 0 } . R:=\{r\in A^A\mid r\text{ is a unary polynomial operation of }\mathbf{A}\text{ and }r(0)=0\}. R := { r ∈ A A ∣ r is a unary polynomial operation of A and r ( 0 ) = 0 } .
For r , s ∈ R r,s\in R r , s ∈ R , define
r s rs r s by ( r s ) ( x ) : = r ( s ( x ) ) (rs)(x):=r(s(x)) ( r s ) ( x ) := r ( s ( x )) for all x ∈ A x\in A x ∈ A ;
r + s r+s r + s by ( r + s ) ( x ) : = m ( r ( x ) , 0 , s ( x ) ) (r+s)(x):=m(r(x),0,s(x)) ( r + s ) ( x ) := m ( r ( x ) , 0 , s ( x )) for all x ∈ A x\in A x ∈ A ;
− r -r − r by ( − r ) ( x ) : = m ( 0 , r ( x ) , 0 ) (-r)(x):=m(0,r(x),0) ( − r ) ( x ) := m ( 0 , r ( x ) , 0 ) for all x ∈ A x\in A x ∈ A ;
These operations are well-defined on R R R . Indeed, polynomial operations are closed under composition, and the displayed operations are polynomial operations of A \mathbf A A . Moreover, each of them maps 0 0 0 to 0 0 0 , since every r ∈ R r \in R r ∈ R satisfies r ( 0 ) = 0 r(0)=0 r ( 0 ) = 0 and m ( 0 , 0 , 0 ) = 0 m(0,0,0)=0 m ( 0 , 0 , 0 ) = 0 .
For r ∈ R r \in R r ∈ R , define scalar multiplication on M : = A M := A M := A by
r a : = r ( a ) . ra := r(a). r a := r ( a ) .
We first verify that ( M ; + , − , 0 ) (M; +, -, 0) ( M ; + , − , 0 ) is an abelian group.
a + 0 = m ( a , 0 , 0 ) = a = m ( 0 , 0 , a ) = 0 + a , a + 0 = m(a,0,0) = a = m(0,0,a) = 0 + a, a + 0 = m ( a , 0 , 0 ) = a = m ( 0 , 0 , a ) = 0 + a ,
so 0 0 0 is a neutral element.
t ( x 1 , x 2 , x 3 , x 4 ) : = ( x 1 + x 2 ) + ( x 3 + x 4 ) . t(x_1,x_2,x_3,x_4) := (x_1+x_2)+(x_3+x_4). t ( x 1 , x 2 , x 3 , x 4 ) := ( x 1 + x 2 ) + ( x 3 + x 4 ) .
For all b , c ∈ A b,c \in A b , c ∈ A , we have t ( 0 , 0 , b , c ) = t ( 0 , b , 0 , c ) t(0,0,b,c)=t(0,b,0,c) t ( 0 , 0 , b , c ) = t ( 0 , b , 0 , c ) . Applying the term condition for polynomial operations, Lemma 12.12 , to the first argument gives
t ( a , 0 , b , c ) = t ( a , b , 0 , c ) t(a,0,b,c)=t(a,b,0,c) t ( a , 0 , b , c ) = t ( a , b , 0 , c )
for every a ∈ A a \in A a ∈ A . Hence,
a + ( b + c ) = ( a + b ) + c . a+(b+c)=(a+b)+c. a + ( b + c ) = ( a + b ) + c .
For all a , b ∈ A a,b \in A a , b ∈ A , the Maltsev identities give
m ( a , a , b ) = b = m ( b , a , a ) . m(a,a,b)=b=m(b,a,a). m ( a , a , b ) = b = m ( b , a , a ) .
Applying the term condition to the middle argument yields
m ( a , 0 , b ) = m ( b , 0 , a ) , m(a,0,b)=m(b,0,a), m ( a , 0 , b ) = m ( b , 0 , a ) ,
and therefore a + b = b + a a+b=b+a a + b = b + a .
To see that − a = m ( 0 , a , 0 ) -a=m(0,a,0) − a = m ( 0 , a , 0 ) is the inverse of a a a , consider the polynomial operation
t ( x , u 1 , u 2 ) : = u 1 + m ( x , u 2 , 0 ) . t(x,u_1,u_2):=u_1+m(x,u_2,0). t ( x , u 1 , u 2 ) := u 1 + m ( x , u 2 , 0 ) .
For every a ∈ A a \in A a ∈ A , we have t ( a , a , a ) = t ( a , 0 , 0 ) t(a,a,a)=t(a,0,0) t ( a , a , a ) = t ( a , 0 , 0 ) . Applying the term condition to the first argument gives
t ( 0 , a , a ) = t ( 0 , 0 , 0 ) , t(0,a,a)=t(0,0,0), t ( 0 , a , a ) = t ( 0 , 0 , 0 ) ,
and hence a + ( − a ) = 0 a+(-a)=0 a + ( − a ) = 0 .
Next, every r ∈ R r \in R r ∈ R is an endomorphism of the abelian group ( M ; + , − , 0 ) (M; +, -, 0) ( M ; + , − , 0 ) . To see this, consider the polynomial operation
t ( x , y ) : = r ( x + y ) − r ( x ) − r ( y ) . t(x,y) := r(x+y)-r(x)-r(y). t ( x , y ) := r ( x + y ) − r ( x ) − r ( y ) .
For every b ∈ A b \in A b ∈ A , we have t ( 0 , b ) = 0 = t ( 0 , 0 ) t(0,b)=0=t(0,0) t ( 0 , b ) = 0 = t ( 0 , 0 ) . The term condition applied to the first argument gives t ( a , b ) = t ( a , 0 ) = 0 t(a,b)=t(a,0)=0 t ( a , b ) = t ( a , 0 ) = 0 for all a , b ∈ A a,b \in A a , b ∈ A . Thus,
r ( a + b ) = r ( a ) + r ( b ) . r(a+b)=r(a)+r(b). r ( a + b ) = r ( a ) + r ( b ) .
Together with r ( 0 ) = 0 r(0)=0 r ( 0 ) = 0 , this also implies r ( − a ) = − r ( a ) r(-a)=-r(a) r ( − a ) = − r ( a ) . The closure observations above show that R R R is a unital subring of End ( M ) \operatorname{End}(M) End ( M ) . Hence, evaluation makes M M M a unitary R R R -module.
To show that A and M are polynomially equivalent, first observe that every operation of M has been defined by a polynomial over A . Conversely, let p p p be an n n n -ary polynomial operation of A . We prove by induction on n n n that p p p is a polynomial operation of M . If n = 1 n=1 n = 1 then consider the unary polynomial operation r ( x ) : = p ( x ) − p ( 0 ) r(x):=p(x)-p(0) r ( x ) := p ( x ) − p ( 0 ) . We have r ∈ R r \in R r ∈ R , and thus see that p ( x ) = r x + p ( 0 ) p(x)=rx+p(0) p ( x ) = r x + p ( 0 ) is indeed a polynomial operation of M . If n > 1 n>1 n > 1 , let t ( x 1 , … , x n ) t(x_1,\ldots,x_n) t ( x 1 , … , x n ) be the polynomial
p ( x 1 , x 2 , … , x n ) − p ( 0 , x 2 , … , x n ) − p ( x 1 , 0 , … , 0 ) + p ( 0 , 0 , … , 0 ) . p(x_1,x_2,\ldots,x_n)-p(0,x_2,\ldots,x_n)-p(x_1,0,\ldots,0)+p(0,0,\ldots,0). p ( x 1 , x 2 , … , x n ) − p ( 0 , x 2 , … , x n ) − p ( x 1 , 0 , … , 0 ) + p ( 0 , 0 , … , 0 ) .
We have t ( 0 , a 2 , … , a n ) = 0 = t ( 0 , 0 , … , 0 ) t(0,a_2,\ldots,a_n)=0=t(0,0,\ldots,0) t ( 0 , a 2 , … , a n ) = 0 = t ( 0 , 0 , … , 0 ) for all a 2 , … , a n ∈ A a_2,\ldots,a_n \in A a 2 , … , a n ∈ A , and by the term condition we get that t ( a 1 , a 2 , … , a n ) = t ( a 1 , 0 , … , 0 ) = 0 t(a_1,a_2,\ldots,a_n)=t(a_1,0,\ldots,0)=0 t ( a 1 , a 2 , … , a n ) = t ( a 1 , 0 , … , 0 ) = 0 . So
p ( x 1 , x 2 , … , x n ) = p ( 0 , x 2 , … , x n ) + p ( x 1 , 0 , … , 0 ) − p ( 0 , 0 , … , 0 ) ; p(x_1,x_2,\ldots,x_n)=p(0,x_2,\ldots,x_n)+p(x_1,0,\ldots,0)-p(0,0,\ldots,0); p ( x 1 , x 2 , … , x n ) = p ( 0 , x 2 , … , x n ) + p ( x 1 , 0 , … , 0 ) − p ( 0 , 0 , … , 0 ) ;
the three polynomials on the right have fewer variables and by the induction hypothesis can be written as polynomials over M , which shows that p p p can be written as a polynomial over M as well.
(2) implies (3). The assumptions imply that there exists an abelian group ( A ; + , − , 0 ) (A; +, -, 0) ( A ; + , − , 0 ) such that in particular the operation m : ( x , y , z ) ↦ x − y + z m:(x,y,z) \mapsto x-y+z m : ( x , y , z ) ↦ x − y + z is a polynomial operation in A . We have to show that m m m is not only a polynomial operation, but even a term operation of A . Let t t t be a term such that t A ( x , y , z , a 1 , … , a n ) = x − y + z t^{A}(x,y,z,a_1,\ldots,a_n)=x-y+z t A ( x , y , z , a 1 , … , a n ) = x − y + z for some constants a 1 , … , a n ∈ A a_1,\ldots,a_n \in A a 1 , … , a n ∈ A . Since A is affine, there are λ 1 , … , λ n ∈ R \lambda_1,\ldots,\lambda_n \in R λ 1 , … , λ n ∈ R and c ∈ A c \in A c ∈ A such that t A t^{A} t A can be written in the form
( x , y , z , w 1 , … , w n ) ↦ x − y + z + ∑ i = 1 n λ i w i + c . (x,y,z,w_1,\ldots,w_n) \mapsto x-y+z+\sum_{i=1}^{n}\lambda_iw_i+c. ( x , y , z , w 1 , … , w n ) ↦ x − y + z + i = 1 ∑ n λ i w i + c .
Now consider the term
s ( x , y , z ) : = t ( x , t ( y , y , y , y , … , y ) , z , y , … , y ) . s(x,y,z):=t(x,t(y,y,y,y,\ldots,y),z,y,\ldots,y). s ( x , y , z ) := t ( x , t ( y , y , y , y , … , y ) , z , y , … , y ) .
Note that
s A ( x , y , z ) = x − ( y + ∑ λ i y + c ) + z + ∑ λ i y + c = x − y + z . \begin{aligned}
s^{A}(x,y,z)=x-\left(y+\sum\lambda_i y+c\right)+z+\sum\lambda_i y+c \\
&=x-y+z.
\end{aligned} s A ( x , y , z ) = x − ( y + ∑ λ i y + c ) + z + ∑ λ i y + c = x − y + z .
so indeed m ∈ Clo ( A ) m \in\operatorname{Clo}(A) m ∈ Clo ( A ) . Lemma 12.6 states that m m m is central.
(3) implies (4). The operation m : ( x , y , z ) ↦ x − y + z m:(x,y,z) \mapsto x-y+z m : ( x , y , z ) ↦ x − y + z belongs to Clo ( A ) \operatorname{Clo}(A) Clo ( A ) , is a Maltsev operation, and is central in A . Hence m m m is a central Maltsev term operation of A .
(4) implies (1). Suppose that m m m is central. We verify that A satisfies the term condition. Let t t t be a term operation of A and let x , y ∈ A x,y \in A x , y ∈ A and u , v ∈ A n u,v \in A^n u , v ∈ A n be such that t ( x , u ) = t ( x , v ) t(x,u)=t(x,v) t ( x , u ) = t ( x , v ) . We have to show that t ( y , u ) = t ( y , v ) t(y,u)=t(y,v) t ( y , u ) = t ( y , v ) . And indeed,
t ( y , u ) = m ( t ( y , u ) , t ( x , u ) , t ( x , v ) ) (since m is Maltsev) = t ( m ( y , x , x ) , m ( u 1 , u 1 , v 1 ) , … , m ( u n , u n , v n ) ) (centrality) = t ( y , v ) . \begin{aligned}
t(y,u) &= m(t(y,u),t(x,u),t(x,v)) && \text{(since }m\text{ is Maltsev)}\\
&= t(m(y,x,x),m(u_1,u_1,v_1),\ldots,m(u_n,u_n,v_n)) && \text{(centrality)}\\
&= t(y,v).
\end{aligned} t ( y , u ) = m ( t ( y , u ) , t ( x , u ) , t ( x , v )) = t ( m ( y , x , x ) , m ( u 1 , u 1 , v 1 ) , … , m ( u n , u n , v n )) = t ( y , v ) . (since m is Maltsev) (centrality)
Exercise 208. Show that subalgebras of abelian algebras are abelian.
Exercise 209. Show that a semilattice ( L ; ∧ ) (L;\wedge) ( L ; ∧ ) (Example 7.4) is abelian if and only if ∣ L ∣ = 1 |L|=1 ∣ L ∣ = 1 .
Exercise 210. A ring R (Example 7.2) is abelian in the sense of Definition 12.8 if and only if for all x , y ∈ R x,y \in R x , y ∈ R we have x ⋅ y = 0 x \cdot y=0 x ⋅ y = 0 .
Exercise 211. Let ( A , + , − , 0 ) (A,+,-,0) ( A , + , − , 0 ) be a group. Show that ( x , y , z ) ↦ x − y + z (x,y,z)\mapsto x-y+z ( x , y , z ) ↦ x − y + z is central in A if and only if { ( x , y , u , v ) ∈ A 4 ∣ x + y = u + v } \{(x,y,u,v)\in A^4\mid x+y=u+v\} {( x , y , u , v ) ∈ A 4 ∣ x + y = u + v } is a subalgebra of A 4 A^4 A 4 .
Exercise 212. Let ( A ; + , − , 0 ) (A;+,-,0) ( A ; + , − , 0 ) be a group, and A = ( A ; m ) =(A;m) = ( A ; m ) where m m m is the Maltsev operation given by ( x , y , z ) ↦ x − y + z (x,y,z)\mapsto x-y+z ( x , y , z ) ↦ x − y + z , then A is abelian if and only if the group ( A ; + , − , 0 ) (A;+,-,0) ( A ; + , − , 0 ) is abelian.
Exercise 213. Show that subalgebras of affine algebras are affine.
Exercise 214. Show that ( Q ; ( x , y ) ↦ x + y 2 ) (\mathbb{Q};(x,y)\mapsto\frac{x+y}{2}) ( Q ; ( x , y ) ↦ 2 x + y ) is idempotent abelian, but has no Maltsev polynomial.
Exercise 215. Let ( A , + , − , 0 ) (A,+,-,0) ( A , + , − , 0 ) be a group. Show that ( x , y , z ) ↦ x − y + z (x,y,z)\mapsto x-y+z ( x , y , z ) ↦ x − y + z is central in A if and only if for every f ∈ Clo ( A ) f\in\operatorname{Clo}(A) f ∈ Clo ( A ) there exist a ∈ A a\in A a ∈ A and endomorphisms e 1 , … , e n e_1,\ldots,e_n e 1 , … , e n of ( A ; + , − , 0 ) (A;+,-,0) ( A ; + , − , 0 ) such that for all x 1 , … , x n ∈ A x_1,\ldots,x_n\in A x 1 , … , x n ∈ A
f ( x 1 , … , x n ) = ∑ i = 1 n e i ( x i ) + a . f(x_1,\ldots,x_n)=\sum_{i=1}^{n}e_i(x_i)+a. f ( x 1 , … , x n ) = i = 1 ∑ n e i ( x i ) + a .
Exercise 216. Let A be a group. Show that the structure ( A ; { ( a , b , a b ) ∣ a , b ∈ A } ) (A;\{(a,b,ab)\mid a,b\in A\}) ( A ; {( a , b , ab ) ∣ a , b ∈ A }) has a Maltsev polymorphism if and only if A is abelian (see Example 12.10).
Exercise 217. Let A be an algebra. Show that if A has a Maltsev polymorphism (here we study polymorphisms of an algebra, not a relational structure!), then A is abelian.
Exercise 218. Show that the converse of the previous exercise fails: there are Abelian algebras that do not have a Maltsev polymorphism.
Exercise 219. Show that if m m m is a commutative heap operation on A A A , then ( A ; m ) (A;m) ( A ; m ) is abelian in the universal-algebraic sense (i.e., it satisfies the term condition). Conversely, show that if m m m is a heap operation on A A A such that ( A ; m ) (A;m) ( A ; m ) is abelian in the universal-algebraic sense, then m m m must be commutative.
Exercise 220. We have seen in Lemma 12.12 that in definition of the term condition (Definition 12.8 ), we could have equivalently phrased the condition for polynomial operations instead of term operations t t t . However, show that it is not sufficient to require the condition only for the operations of the algebra.
Exercise 221. Find a Maltsev operation m m m on a finite set which satisfies m ( x , y , z ) ≈ m ( z , y , x ) m(x,y,z) \approx m(z,y,x) m ( x , y , z ) ≈ m ( z , y , x )
The Congruence Condition
We close with a relational characterisation of abelianness (which for some authors is the official definition of abelianness). Recall that Δ A \Delta_A Δ A denotes { ( a , a ) ∣ a ∈ A } \{(a,a) \mid a \in A\} {( a , a ) ∣ a ∈ A } , and that Cg A ( X ) \operatorname{Cg}_A(X) Cg A ( X ) denotes the smallest congruence of A A A that contains X X X (see Lemma 11.8 ).
Theorem 12.14. Let A A A be an algebra and Δ : = Δ A \Delta:= \Delta_A Δ := Δ A . Then the following are equivalent.
A A A is abelian.
Δ \Delta Δ is a congruence class of Cg A 2 ( Δ 2 ) \operatorname{Cg}_{A^2}(\Delta^2) Cg A 2 ( Δ 2 ) .
Δ \Delta Δ is a congruence class of a congruence of A 2 A^2 A 2 .
Proof. The implication (2) ⇒ \Rightarrow ⇒ (3) is trivial. For the implication (3) ⇒ \Rightarrow ⇒ (2), suppose that C C C is a congruence of A 2 A^2 A 2 where Δ \Delta Δ is a congruence class. Since C ′ : = Cg A 2 ( Δ 2 ) C' := \operatorname{Cg}_{A^2}(\Delta^2) C ′ := Cg A 2 ( Δ 2 ) contains Δ 2 \Delta^2 Δ 2 we have that Δ \Delta Δ is contained in a congruence class of C ′ C' C ′ . But since C ′ ⊆ C C' \subseteq C C ′ ⊆ C , this congruence class must be Δ \Delta Δ .
For the equivalence between (1) and (2), recall from Lemma 11.8 that Cg A 2 ( Δ 2 ) \operatorname{Cg}_{A^2}(\Delta^2) Cg A 2 ( Δ 2 ) equals the reflexive symmetric transitive closure of
{ ( p ( u ) , p ( v ) ) ∣ u , v ∈ Δ , p a unary polynomial operation of A 2 } . \{(p(u),p(v)) \mid u,v \in\Delta,\ p\text{ a unary polynomial operation of }A^2\}. {( p ( u ) , p ( v )) ∣ u , v ∈ Δ , p a unary polynomial operation of A 2 } .
Note that every unary polynomial operation p ( x ) p(x) p ( x ) of A 2 A^2 A 2 can be written as
f ( x , ( c 1 d 1 ) , … , ( c n d n ) ) f\left(x,\binom{c_1}{d_1},\ldots,\binom{c_n}{d_n}\right) f ( x , ( d 1 c 1 ) , … , ( d n c n ) )
for some c 1 , d 1 , … , c n , d n ∈ A c_1,d_1,\ldots,c_n,d_n \in A c 1 , d 1 , … , c n , d n ∈ A , n ∈ N n \in\mathbb{N} n ∈ N and f ∈ Clo ( A ) f \in\operatorname{Clo}(A) f ∈ Clo ( A ) . Hence, Δ \Delta Δ is a congruence class of Cg A 2 ( Δ 2 ) \operatorname{Cg}_{A^2}(\Delta^2) Cg A 2 ( Δ 2 ) if and only if for all a , b ∈ A a,b \in A a , b ∈ A , c 1 , d 1 , … , c n , d n ∈ A c_1,d_1,\ldots,c_n,d_n \in A c 1 , d 1 , … , c n , d n ∈ A , n ∈ N n \in\mathbb{N} n ∈ N and every term t t t
t A 2 ( ( a a ) , ( c 1 d 1 ) , … , ( c n d n ) ) ∈ Δ if and only if t A 2 ( ( b b ) , ( c 1 d 1 ) , … , ( c n d n ) ) ∈ Δ ; t^{A^2}\left(\binom{a}{a},\binom{c_1}{d_1},\ldots,\binom{c_n}{d_n}\right)\in\Delta
\quad\text{if and only if}\quad
t^{A^2}\left(\binom{b}{b},\binom{c_1}{d_1},\ldots,\binom{c_n}{d_n}\right)\in\Delta; t A 2 ( ( a a ) , ( d 1 c 1 ) , … , ( d n c n ) ) ∈ Δ if and only if t A 2 ( ( b b ) , ( d 1 c 1 ) , … , ( d n c n ) ) ∈ Δ ;
this is exactly the term condition for A A A applied to the first argument of t t t .
:::
Example 12.15. Let n ≥ 1 n \ge1 n ≥ 1 . Let A A A be the algebra ( Z n ; m ) (\mathbb{Z}_n;m) ( Z n ; m ) , where m : Z n 3 → Z n m:\mathbb{Z}_n^3 \to\mathbb{Z}_n m : Z n 3 → Z n is given by ( x , y , z ) ↦ x − y + z (x,y,z) \mapsto x-y+z ( x , y , z ) ↦ x − y + z . Then A 2 A^2 A 2 has the congruence C : = { ( ( x 1 , x 2 ) , ( y 1 , y 2 ) ) ∣ ( x 1 − x 2 = y 1 − y 2 ) } C := \{((x_1,x_2),(y_1,y_2)) \mid(x_1-x_2 = y_1-y_2)\} C := {(( x 1 , x 2 ) , ( y 1 , y 2 )) ∣ ( x 1 − x 2 = y 1 − y 2 )} and clearly { ( a , a ) ∣ a ∈ A } \{(a,a) \mid a \in A\} {( a , a ) ∣ a ∈ A } is a congruence class of C C C . △
We now present practical conditions for ternary subpowers that imply that A \mathbf{A} A is abelian.
Proposition 12.16. Let A \mathbf{A} A be an algebra with R ≤ A 3 R \leq\mathbf{A}^{3} R ≤ A 3 such that for every a ∈ A a \in A a ∈ A and i ∈ { 1 , 2 , 3 } i \in\{1,2,3\} i ∈ { 1 , 2 , 3 } the binary relation defined by ∃ x i ( R ( x 1 , x 2 , x 3 ) ∧ x i = a ) \exists x_i(R(x_1,x_2,x_3) \land x_i = a) ∃ x i ( R ( x 1 , x 2 , x 3 ) ∧ x i = a ) is the graph of an automorphism of A \mathbf{A} A . Then A \mathbf{A} A is abelian.
Proof. Note that the assumptions imply that R R R is the graph of a surjective binary operation f : A 2 → A f\colon A^{2} \to A f : A 2 → A . Also note that f f f is central, i.e., f : A 2 → A f\colon A^{2} \to A f : A 2 → A is a homomorphism, because R ≤ A 3 R \leq A^{3} R ≤ A 3 . Arbitrarily pick a ∈ A a \in A a ∈ A . Then f − 1 ( a ) f^{-1}(a) f − 1 ( a ) is the graph of an automorphism α \alpha α of A \mathbf{A} A . Hence, ( x , y ) ↦ f ( x , α ( y ) ) (x,y) \mapsto f(x,\alpha(y)) ( x , y ) ↦ f ( x , α ( y )) is central, and its kernel C C C is a congruence of A 2 A^{2} A 2 . The congruence class ( a , a ) / C (a,a)/C ( a , a ) / C equals Δ A \Delta_A Δ A and the statement follows from Theorem 12.14. □
A relation R ⊆ A 3 R \subseteq A^{3} R ⊆ A 3 is called strongly functional if
for distinct i , j ∈ { 1 , 2 , 3 } i,j \in\{1,2,3\} i , j ∈ { 1 , 2 , 3 } we have π i , j ( R ) = A 2 \pi_{i,j}(R) = A^{2} π i , j ( R ) = A 2 , and
for every a , b ∈ A a,b \in A a , b ∈ A there exists precisely one c ∈ A c \in A c ∈ A such that ( a , b , c ) ∈ R (a,b,c) \in R ( a , b , c ) ∈ R .
The following is from [8].
Proposition 12.17. Let A \mathbf{A} A be a finite idempotent algebra and let R ≤ A 3 R \leq A^{3} R ≤ A 3 be strongly functional. Then A \mathbf{A} A is abelian.
Proof. By strong functionality, there is a binary operation q : A 2 → A q\colon A^{2} \to A q : A 2 → A such that
R = { ( x , y , q ( x , y ) ) ∣ x , y ∈ A } . R = \{(x,y,q(x,y)) \mid x,y \in A\}. R = {( x , y , q ( x , y )) ∣ x , y ∈ A } .
For every x ∈ A x \in A x ∈ A , define λ x : A → A \lambda_x\colon A \to A λ x : A → A by λ x ( y ) : = q ( x , y ) \lambda_x(y) := q(x,y) λ x ( y ) := q ( x , y ) . Since π 1 , 3 ( R ) = A 2 \pi_{1,3}(R) = A^{2} π 1 , 3 ( R ) = A 2 , the map λ x \lambda_x λ x is surjective. Since A A A is finite, it is bijective. Similarly, for every y ∈ A y \in A y ∈ A , the map ρ y : A → A \rho_y\colon A \to A ρ y : A → A given by ρ y ( x ) : = q ( x , y ) \rho_y(x) := q(x,y) ρ y ( x ) := q ( x , y ) is surjective, because π 2 , 3 ( R ) = A 2 \pi_{2,3}(R) = A^{2} π 2 , 3 ( R ) = A 2 , and hence it is bijective.
We verify the assumptions of Proposition 12.16. Let a ∈ A a \in A a ∈ A . The binary relation obtained by fixing the first coordinate of R R R to a a a is
S a 1 : = { ( y , z ) ∈ A 2 ∣ ( a , y , z ) ∈ R } = { ( y , λ a ( y ) ) ∣ y ∈ A } , S_a^1 := \{(y,z) \in A^{2} \mid(a,y,z) \in R\} = \{(y,\lambda_a(y)) \mid y \in A\}, S a 1 := {( y , z ) ∈ A 2 ∣ ( a , y , z ) ∈ R } = {( y , λ a ( y )) ∣ y ∈ A } ,
so it is the graph of the bijection λ a \lambda_a λ a . Similarly,
S a 2 : = { ( x , z ) ∈ A 2 ∣ ( x , a , z ) ∈ R } = { ( x , ρ a ( x ) ) ∣ x ∈ A } S_a^2 := \{(x,z) \in A^{2} \mid(x,a,z) \in R\} = \{(x,\rho_a(x)) \mid x \in A\} S a 2 := {( x , z ) ∈ A 2 ∣ ( x , a , z ) ∈ R } = {( x , ρ a ( x )) ∣ x ∈ A }
is the graph of the bijection ρ a \rho_a ρ a . Finally, consider
S a 3 : = { ( x , y ) ∈ A 2 ∣ ( x , y , a ) ∈ R } . S_a^3 := \{(x,y) \in A^{2} \mid(x,y,a) \in R\}. S a 3 := {( x , y ) ∈ A 2 ∣ ( x , y , a ) ∈ R } .
For every x ∈ A x \in A x ∈ A , the bijectivity of λ x \lambda_x λ x gives a unique y ∈ A y \in A y ∈ A such that q ( x , y ) = a q(x,y) = a q ( x , y ) = a . Hence, S a 3 S_a^3 S a 3 is the graph of the function
σ a : A → A , σ a ( x ) : = λ x − 1 ( a ) . \sigma_a\colon A \to A,\qquad\sigma_a(x) := \lambda_x^{-1}(a). σ a : A → A , σ a ( x ) := λ x − 1 ( a ) .
For every y ∈ A y \in A y ∈ A , the bijectivity of ρ y \rho_y ρ y gives a unique x ∈ A x \in A x ∈ A such that q ( x , y ) = a q(x,y) = a q ( x , y ) = a . It follows that σ a \sigma_a σ a is bijective, with inverse σ a − 1 ( y ) = ρ y − 1 ( a ) \sigma_a^{-1}(y) = \rho_y^{-1}(a) σ a − 1 ( y ) = ρ y − 1 ( a ) . Clearly, each of S a 1 , S a 2 , S a 3 S_a^1,S_a^2,S_a^3 S a 1 , S a 2 , S a 3 is a subalgebra of A 2 A^{2} A 2 , using idempotence of A A A . If the graph of a function α : A → A \alpha\colon A \to A α : A → A is a subalgebra of A 2 A^{2} A 2 , then α \alpha α is a homomorphism from A \mathbf{A} A to A \mathbf{A} A . Moreover, if α \alpha α is bijective, then α \alpha α is an automorphism of A \mathbf{A} A . Consequently, for every a ∈ A a \in A a ∈ A and every i ∈ { 1 , 2 , 3 } i \in\{1,2,3\} i ∈ { 1 , 2 , 3 } , the binary relation obtained by fixing the i i i -th coordinate of R R R to a a a is the graph of an automorphism of A \mathbf{A} A . The statement now follows from Proposition 12.16. □
Absorption
“The notion of absorption is, in a sense, complementary to abelianness” (Barto and Kozik [13])
Absorption theory is an important topic in universal algebra, developed by Marcin Kozik and Libor Barto, which has powerful applications for the study of homomorphism problems. It can be seen as a tool to show the existence of certain solutions in instances of a CSP. This section covers material that stems from [8, 12, 15, 113].
Throughout, A \mathbf{A} A denotes an algebra with a not necessarily finite domain and signature τ \tau τ .
Definition 13.1 (Absorbing subalgebras). Let B \mathbf{B} B be an algebra and t ( x 1 , … , x n ) t(x_1,\ldots,x_n) t ( x 1 , … , x n ) a τ \tau τ -term. A subalgebra A \mathbf{A} A of B \mathbf{B} B is called an absorbing subalgebra of B \mathbf{B} B with respect to t t t , in symbols A ◃ t B \mathbf{A} \mathrel{\triangleleft_t} \mathbf{B} A ◃ t B , if for all i ∈ { 1 , … , n } i \in\{1,\ldots,n\} i ∈ { 1 , … , n }
t B ( A i − 1 × B × A n − i ) ⊆ A , t^{\mathbf{B}}(A^{i-1} \times B \times A^{n-i}) \subseteq A, t B ( A i − 1 × B × A n − i ) ⊆ A , i.e., if for all b 1 , … , b n ∈ B b_1,\ldots,b_n \in B b 1 , … , b n ∈ B we have t B ( b 1 , … , b n ) ∈ A t^{\mathbf{B}}(b_1,\ldots,b_n) \in A t B ( b 1 , … , b n ) ∈ A whenever all but at most one out of b 1 , … , b n b_1,\ldots,b_n b 1 , … , b n are from A A A .12 If such a t t t exists we say that A A A absorbs B B B , and write A ◃ B \mathbf{A} \triangleleft\mathbf{B} A ◃ B . A subalgebra A \mathbf{A} A of B \mathbf{B} B is called n n n -absorbing if A ◃ t B \mathbf{A} \mathrel{\triangleleft_t} \mathbf{B} A ◃ t B for some t t t with n n n variables.
Since subalgebras are uniquely determined by their domain, we also use the notation A ◃ B A \triangleleft B A ◃ B if A A A is the domain of an absorbing subalgebra A \mathbf{A} A of B \mathbf{B} B . Note that if B \mathbf{B} B is idempotent, then A ⊆ B A \subseteq B A ⊆ B is 1-absorbing if and only if A = B A = B A = B .
Remark 13.2. If A A A is n n n -absorbing, then it is also m m m -absorbing for all m ≥ n m \ge n m ≥ n .
Hence, if we ignore 1-absorption, which is uninteresting as we have seen above, then 2-absorption is the strongest form of absorption. Subalgebras that are 2-absorbing are also called binary absorbing . We say that B \mathbf{B} B is absorption-free if B \mathbf{B} B has no proper absorbing subuniverse.
Remark 13.3. Impatient readers who would like to see algorithmic applications of the concept of absorption can consult Section 15.6.
Example 13.4. The subuniverse { 0 } \{0\} { 0 } of the algebra ( { 0 , 1 } ; ∧ ) (\{0,1\};\wedge) ({ 0 , 1 } ; ∧ ) is absorbing with respect to the operation ∧ \wedge ∧ . More generally, if B = ( B ; ∧ ) \mathbf{B}=(B;\wedge) B = ( B ; ∧ ) where B B B is finite and non-empty and ∧ \wedge ∧ is a semilattice operation, then { ∧ B } ◃ B \{ \wedge B\} \triangleleft\mathbf{B} { ∧ B } ◃ B . △
Example 13.5. Let p p p be a prime, and let B = ( { 0 , … , p − 1 } ; m ) \mathbf{B}=(\{0,\ldots,p-1\};m) B = ({ 0 , … , p − 1 } ; m ) be the algebra where m ( x , y , z ) : = x − y + z m(x,y,z):=x-y+z m ( x , y , z ) := x − y + z and where + + + and − - − are the usual addition and subtraction modulo p p p . Then the only absorbing subuniverses are ∅ \varnothing ∅ and B B B , so B \mathbf{B} B is absorption-free. Indeed, the only proper subuniverses of B B B are of the form { b } \{b\} { b } , for b ∈ B b \in B b ∈ B (Exercise 146 ). Every term operation t t t of B \mathbf{B} B has the form t ( x 1 , … , x n ) = ∑ i = 1 n α i x i t(x_1,\ldots,x_n)=\sum_{i=1}^{n}\alpha_i x_i t ( x 1 , … , x n ) = ∑ i = 1 n α i x i with ∑ i = 1 n α i = 1 \sum_{i=1}^{n}\alpha_i=1 ∑ i = 1 n α i = 1 (Example 6.11). If { b } \{b\} { b } were absorbing with respect to a term t t t , then for every coordinate i i i and every a ∈ B a \in B a ∈ B we would have
b = t ( b , … , b , a , b , … , b ) = α i a + ∑ j ∈ [ n ] ∖ { i } α j b = α i a + ( 1 − α i ) b = b + ( a − b ) α i . b=t(b,\ldots,b,a,b,\ldots,b)=\alpha_i a+\sum_{j\in[n]\setminus\{i\}}\alpha_j b=\alpha_i a+(1-\alpha_i)b=b+(a-b)\alpha_i. b = t ( b , … , b , a , b , … , b ) = α i a + j ∈ [ n ] ∖ { i } ∑ α j b = α i a + ( 1 − α i ) b = b + ( a − b ) α i .
Hence, α i = 0 \alpha_i=0 α i = 0 for every i i i , contradicting ∑ i α i = 1 \sum_i\alpha_i=1 ∑ i α i = 1 . Thus, no singleton is absorbing. △
Example 13.6. If B = ( { 0 , 1 } ; majority ) \mathbf{B} = (\{0,1\};\operatorname{majority}) B = ({ 0 , 1 } ; majority ) , then both { 0 } ◃ B \{0\} \triangleleft\mathbf{B} { 0 } ◃ B and { 1 } ◃ B \{1\} \triangleleft\mathbf{B} { 1 } ◃ B . More generally, in any algebra B \mathbf{B} B with a near unanimity term t t t (see § 7.7 ), every one-element subalgebra is absorbing with respect to t B t^{\mathbf{B}} t B .
Proposition 13.8 below is a converse to the statement from Example 13.6.
Lemma 13.7. If B , C ◃ A \mathbf{B},\mathbf{C} \triangleleft\mathbf{A} B , C ◃ A then A \mathbf{A} A has a term operation f f f such that B , C ◃ f A \mathbf{B},\mathbf{C} \triangleleft_f \mathbf{A} B , C ◃ f A .
Proof. If B ◃ s A \mathbf{B} \triangleleft_s \mathbf{A} B ◃ s A and C ◃ t A \mathbf{C} \triangleleft_t \mathbf{A} C ◃ t A for some s , t ∈ Clo ( A ) s,t \in\operatorname{Clo}(\mathbf{A}) s , t ∈ Clo ( A ) , choose f : = s ∗ t f := s * t f := s ∗ t (Definition 7.39).
Proposition 13.8. Let B \mathbf{B} B be a finite algebra. If every one-element subset is the domain of an absorbing subalgebra of B \mathbf{B} B , then B \mathbf{B} B has a near unanimity term.
Proof. If ∣ B ∣ ≤ 1 |B| \le1 ∣ B ∣ ≤ 1 , then every ternary projection is a near unanimity term, so suppose that ∣ B ∣ ≥ 2 |B| \ge2 ∣ B ∣ ≥ 2 . Since B \mathbf{B} B is finite we can use Lemma 13.7 to construct a single term operation h h h such that A ◃ h B \mathbf{A} \triangleleft_h \mathbf{B} A ◃ h B for every one-element subalgebra A \mathbf{A} A of B \mathbf{B} B . Note that h h h must have arity ≥ 3 \ge3 ≥ 3 : a binary h h h with { 0 } ◃ h B \{0\} \triangleleft_h \mathbf{B} { 0 } ◃ h B and { 1 } ◃ h B \{1\} \triangleleft_h \mathbf{B} { 1 } ◃ h B would force h ( 0 , 1 ) ∈ { 0 } ∩ { 1 } h(0,1) \in\{0\} \cap\{1\} h ( 0 , 1 ) ∈ { 0 } ∩ { 1 } . But then h h h must be a near unanimity operation.
An operation f : B n → B f:B^n \to B f : B n → B is called (fully) symmetric if f ( x 1 , … , x n ) ≈ f ( x ρ ( 1 ) , … , x ρ ( n ) ) f(x_1,\ldots,x_n) \approx f(x_{\rho(1)},\ldots,x_{\rho(n)}) f ( x 1 , … , x n ) ≈ f ( x ρ ( 1 ) , … , x ρ ( n ) ) for every permutation ρ ∈ Sym ( { 1 , … , n } ) \rho\in\operatorname{Sym}(\{1,\ldots,n\}) ρ ∈ Sym ({ 1 , … , n }) . The following example from [84] shows a structure which has fully symmetric polymorphisms of all arities, but not totally symmetric polymorphisms of arity 3.
Example 13.9. Let B \mathbf{B} B be the algebra on the domain B = { − 1 , 0 , 1 } B = \{-1,0,1\} B = { − 1 , 0 , 1 } which has for every k ≥ 1 k \ge1 k ≥ 1 the k k k -ary operation s k s_k s k defined as follows:
s k ( x 1 , … , x k ) = { 0 if x 1 + ⋯ + x k k ∈ ( − 1 3 , 1 3 ) 1 if x 1 + ⋯ + x k k ≥ 1 3 − 1 otherwise. s_k(x_1,\ldots,x_k) =
\begin{cases}
0 & \text{if } \frac{x_1+\cdots+x_k}{k} \in\left(-\frac{1}{3},\frac{1}{3}\right) \\
1 & \text{if } \frac{x_1+\cdots+x_k}{k} \ge\frac{1}{3} \\
-1 & \text{otherwise.}
\end{cases} s k ( x 1 , … , x k ) = ⎩ ⎨ ⎧ 0 1 − 1 if k x 1 + ⋯ + x k ∈ ( − 3 1 , 3 1 ) if k x 1 + ⋯ + x k ≥ 3 1 otherwise. Note that s k s_k s k is fully symmetric and idempotent. Note that for every k ≥ 1 k \ge1 k ≥ 1 , the operation s k s_k s k preserves the following two relations
R + : = { ( a 1 , a 2 , a 3 ) ∈ B 3 ∣ a 1 + a 2 + a 3 ≥ 1 } R_+ := \{(a_1,a_2,a_3) \in B^3 \mid a_1+a_2+a_3 \ge1\} R + := {( a 1 , a 2 , a 3 ) ∈ B 3 ∣ a 1 + a 2 + a 3 ≥ 1 } R − : = { ( a 1 , a 2 , a 3 ) ∈ B 3 ∣ a 1 + a 2 + a 3 ≤ − 1 } R_- := \{(a_1,a_2,a_3) \in B^3 \mid a_1+a_2+a_3 \le-1\} R − := {( a 1 , a 2 , a 3 ) ∈ B 3 ∣ a 1 + a 2 + a 3 ≤ − 1 } Suppose for contradiction that there exists a totally symmetric operation t : B 3 → B t:B^3 \to B t : B 3 → B which preserves R + R_+ R + and R − R_- R − . Then
t ( 1 , 1 , − 1 ) = t ( 1 , − 1 , 1 ) = t ( − 1 , 1 , 1 ) = t ( 1 , − 1 , − 1 ) = t ( − 1 , 1 , − 1 ) = t ( − 1 , − 1 , 1 ) = : c . t(1,1,-1) = t(1,-1,1) = t(-1,1,1) = t(1,-1,-1) = t(-1,1,-1) = t(-1,-1,1) =: c. t ( 1 , 1 , − 1 ) = t ( 1 , − 1 , 1 ) = t ( − 1 , 1 , 1 ) = t ( 1 , − 1 , − 1 ) = t ( − 1 , 1 , − 1 ) = t ( − 1 , − 1 , 1 ) =: c . If we apply t t t to the three tuples ( 1 , 1 , − 1 ) , ( 1 , − 1 , 1 ) , ( − 1 , 1 , 1 ) ∈ R + (1,1,-1),(1,-1,1),(-1,1,1) \in R_+ ( 1 , 1 , − 1 ) , ( 1 , − 1 , 1 ) , ( − 1 , 1 , 1 ) ∈ R + we obtain ( c , c , c ) ∈ R + (c,c,c) \in R_+ ( c , c , c ) ∈ R + , hence c = 1 c = 1 c = 1 . The same argument applied to R − R_- R − instead of R + R_+ R + shows that c = − 1 c = -1 c = − 1 , a contradiction.
Note that B \mathbf{B} B has the proper subalgebras { − 1 } \{-1\} { − 1 } , { 0 } \{0\} { 0 } , { 1 } \{1\} { 1 } , { − 1 , 0 } \{-1,0\} { − 1 , 0 } , { 0 , 1 } \{0,1\} { 0 , 1 } . All of them are absorbing, witnessed by s k s_k s k for some large enough k k k .
Absorption Transfer
Many natural algebraic constructions preserve the absorption property.
Lemma 13.10. If C ◃ B \mathbf{C} \triangleleft\mathbf{B} C ◃ B and B ◃ A \mathbf{B} \triangleleft\mathbf{A} B ◃ A , then C ◃ A \mathbf{C} \triangleleft\mathbf{A} C ◃ A .
Proof. If B ◃ t A \mathbf{B} \triangleleft_t \mathbf{A} B ◃ t A for some t ∈ Clo ( A ) t \in\operatorname{Clo}(\mathbf{A}) t ∈ Clo ( A ) and C ◃ s B \mathbf{C} \triangleleft_s \mathbf{B} C ◃ s B for some s ∈ Clo ( B ) s \in\operatorname{Clo}(\mathbf{B}) s ∈ Clo ( B ) , then C ◃ s ∗ t A \mathbf{C} \triangleleft_{s*t} \mathbf{A} C ◃ s ∗ t A .
Corollary 13.11. If B ◃ A \mathbf{B} \triangleleft\mathbf{A} B ◃ A and C ◃ A \mathbf{C} \triangleleft\mathbf{A} C ◃ A then ( B ∩ C ) ◃ A (\mathbf{B} \cap\mathbf{C}) \triangleleft\mathbf{A} ( B ∩ C ) ◃ A .
Proof. Note that ( B ∩ C ) ◃ C (\mathbf{B} \cap\mathbf{C}) \triangleleft\mathbf{C} ( B ∩ C ) ◃ C with respect to the same term as B ◃ A \mathbf{B} \triangleleft\mathbf{A} B ◃ A . Now the statement follows from Lemma 13.10.
The following transfer principles also preserve the term that witnesses absorption.
Lemma 13.12. Let t ( x 1 , … , x n ) t(x_1,\ldots,x_n) t ( x 1 , … , x n ) be a τ \tau τ -term, let ∼ \sim ∼ be a congruence of B \mathbf{B} B , and suppose that A ◃ t B / ∼ \mathbf{A} \triangleleft_t \mathbf{B}/{\sim} A ◃ t B / ∼ . Then ⋃ A ◃ t B \bigcup\mathbf{A} \triangleleft_t \mathbf{B} ⋃ A ◃ t B .
Proof. If b 1 , … , b n ∈ B b_1,\ldots,b_n \in B b 1 , … , b n ∈ B are such that all but one are from ⋃ A \bigcup\mathbf{A} ⋃ A , then
t B ( b 1 , … , b n ) / ∼ = t B / ∼ ( b 1 / ∼ , … , b n / ∼ ) ∈ A . t^{\mathbf{B}}(b_1,\ldots,b_n)/{\sim}=t^{\mathbf{B}/{\sim}}(b_1/{\sim},\ldots,b_n/{\sim}) \in A. t B ( b 1 , … , b n ) / ∼ = t B / ∼ ( b 1 / ∼ , … , b n / ∼ ) ∈ A . Hence, ⋃ A ◃ t B \bigcup\mathbf{A} \triangleleft_t \mathbf{B} ⋃ A ◃ t B .
Lemma 13.13. Let B 1 , … , B n \mathbf{B}_1,\ldots,\mathbf{B}_n B 1 , … , B n be τ \tau τ -algebras and let t t t be a τ \tau τ -term. Let R ≤ B 1 × ⋯ × B n R \leq\mathbf{B}_1 \times\cdots\times\mathbf{B}_n R ≤ B 1 × ⋯ × B n and A i ◃ t B i A_i \triangleleft_t \mathbf{B}_i A i ◃ t B i for every i ∈ [ n ] i \in[n] i ∈ [ n ] . Then R ∩ ( A 1 × ⋯ × A n ) ◃ t R R \cap(A_1 \times\cdots\times A_n) \triangleleft_t R R ∩ ( A 1 × ⋯ × A n ) ◃ t R .
Example 13.14. Consider the Maltsev operation m m m on { 0 , 1 , 2 } \{0,1,2\} { 0 , 1 , 2 } from Example 8.10. We claim that the algebra ( { 0 , 1 , 2 } ; m ) (\{0,1,2\};m) ({ 0 , 1 , 2 } ; m ) is absorption-free.
First, we show that { 1 } \{1\} { 1 } is not absorbing. The set { 0 , 1 } \{0,1\} { 0 , 1 } is a subuniverse, and the restriction of m m m to this set is the Boolean minority operation, that is, addition modulo 2. The restriction of every n n n -ary term operation t t t to { 0 , 1 } \{0,1\} { 0 , 1 } has the form
t ( x 1 , … , x n ) = ∑ j = 1 n α j x j t(x_1,\ldots,x_n)=\sum_{j=1}^{n}\alpha_j x_j t ( x 1 , … , x n ) = j = 1 ∑ n α j x j for some α 1 , … , α n ∈ Z 2 \alpha_1,\ldots,\alpha_n \in\mathbb{Z}_2 α 1 , … , α n ∈ Z 2 satisfying ∑ j = 1 n α j = 1 \sum_{j=1}^{n}\alpha_j=1 ∑ j = 1 n α j = 1 (Example 6.11). Suppose for contradiction that t t t witnesses that { 1 } \{1\} { 1 } absorbs ( { 0 , 1 , 2 } ; m ) (\{0,1,2\};m) ({ 0 , 1 , 2 } ; m ) . For every i ∈ [ n ] i \in[n] i ∈ [ n ] , absorption and the description of the restriction of t t t give, with all sums computed in Z 2 \mathbb{Z}_2 Z 2 ,
1 = t ( 1 , … , 1 , 0 , 1 , … , 1 ) = ∑ j ≠ i α j = 1 − α i . 1=t(1,\ldots,1,0,1,\ldots,1)=\sum_{j\ne i}\alpha_j=1-\alpha_i. 1 = t ( 1 , … , 1 , 0 , 1 , … , 1 ) = j = i ∑ α j = 1 − α i . Hence α i = 0 \alpha_i=0 α i = 0 for every i ∈ [ n ] i \in[n] i ∈ [ n ] , contradicting ∑ j = 1 n α j = 1 \sum_{j=1}^{n}\alpha_j=1 ∑ j = 1 n α j = 1 . Thus, { 1 } \{1\} { 1 } is not absorbing, and by symmetry no singleton is absorbing.
Finally, suppose that a two-element subuniverse were absorbing. Every permutation of { 0 , 1 , 2 } \{0,1,2\} { 0 , 1 , 2 } is an automorphism of the algebra, so another two-element subuniverse intersecting it in a singleton would also be absorbing. Corollary 13.11 would then imply that this singleton is absorbing, a contradiction. Therefore, ( { 0 , 1 , 2 } ; m ) (\{0,1,2\};m) ({ 0 , 1 , 2 } ; m ) is absorption-free. △
Lemma 13.15. Let R R R be a subalgebra of A × B \mathbf{A} \times\mathbf{B} A × B , let t ( x 1 , … , x n ) t(x_1,\ldots,x_n) t ( x 1 , … , x n ) be a τ \tau τ -term, and let S ◃ t R S \triangleleft_t R S ◃ t R . Then π 1 ( S ) ◃ t π 1 ( R ) \pi_1(S) \triangleleft_t \pi_1(R) π 1 ( S ) ◃ t π 1 ( R ) .
Proof. Suppose that a 1 , … , a n ∈ π 1 ( S ) a_1,\ldots,a_n \in\pi_1(S) a 1 , … , a n ∈ π 1 ( S ) , c ∈ π 1 ( R ) c \in\pi_1(R) c ∈ π 1 ( R ) , and i ∈ { 1 , … , n } i \in\{1,\ldots,n\} i ∈ { 1 , … , n } . Then there are b 1 , … , b n ∈ B b_1,\ldots,b_n \in B b 1 , … , b n ∈ B and d ∈ B d \in B d ∈ B such that ( a 1 , b 1 ) , … , ( a n , b n ) ∈ S (a_1,b_1),\ldots,(a_n,b_n) \in S ( a 1 , b 1 ) , … , ( a n , b n ) ∈ S and ( c , d ) ∈ R (c,d) \in R ( c , d ) ∈ R . Since S ◃ t R S \triangleleft_t R S ◃ t R we have
t R ( ( a 1 , b 1 ) , … , ( a i − 1 , b i − 1 ) , ( c , d ) , ( a i + 1 , b i + 1 ) , … , ( a n , b n ) ) ∈ S , {}^tR((a_1,b_1),\ldots,(a_{i-1},b_{i-1}),(c,d),(a_{i+1},b_{i+1}),\ldots,(a_n,b_n)) \in S, t R (( a 1 , b 1 ) , … , ( a i − 1 , b i − 1 ) , ( c , d ) , ( a i + 1 , b i + 1 ) , … , ( a n , b n )) ∈ S ,
and hence t A ( a 1 , … , a i − 1 , c , a i + 1 , … , a n ) ∈ π 1 ( S ) {}^tA(a_1,\ldots,a_{i-1},c,a_{i+1},\ldots,a_n) \in\pi_1(S) t A ( a 1 , … , a i − 1 , c , a i + 1 , … , a n ) ∈ π 1 ( S ) , which proves that π 1 ( S ) ◃ t π 1 ( R ) \pi_1(S) \triangleleft_t \pi_1(R) π 1 ( S ) ◃ t π 1 ( R ) .
Lemma 13.16
Lemma 13.16. Let B \mathbf{B} B be an idempotent algebra and suppose that B 2 \mathbf{B}^2 B 2 has a proper n n n -absorbing subalgebra. Then B \mathbf{B} B has a proper n n n -absorbing subalgebra as well.
Proof. Suppose that A A A is a proper non-empty subset of B 2 B^2 B 2 such that A ◃ f B 2 A \triangleleft_f B^2 A ◃ f B 2 for some f ∈ Clo ( B ) ( n ) f \in\operatorname{Clo}(\mathbf{B})^{(n)} f ∈ Clo ( B ) ( n ) . Note that π 1 ( A ) ◃ f B \pi_1(A) \triangleleft_f B π 1 ( A ) ◃ f B by Lemma 13.15, and that π 1 ( A ) \pi_1(A) π 1 ( A ) is non-empty. Hence, if π 1 ( A ) ≠ B \pi_1(A) \ne B π 1 ( A ) = B then we are done, so suppose that π 1 ( A ) = B \pi_1(A) = B π 1 ( A ) = B . Since A ≠ B 2 A \ne B^2 A = B 2 , there exists a b ∈ B b \in B b ∈ B such that
A ′ : = π 2 ( A ∩ ( { b } × B ) ) = { a ∈ B ∣ ( b , a ) ∈ A } ≠ B . A' := \pi_2\left(A \cap(\{b\} \times B)\right) = \{a \in B \mid(b,a) \in A\} \ne B. A ′ := π 2 ( A ∩ ({ b } × B ) ) = { a ∈ B ∣ ( b , a ) ∈ A } = B .
Since π 1 ( A ) = B \pi_1(A) = B π 1 ( A ) = B we have that A ′ ≠ ∅ A' \ne\varnothing A ′ = ∅ . Clearly, A ′ ≤ B A' \leq B A ′ ≤ B by the idempotence of B \mathbf{B} B . So it suffices to show that A ′ ◃ f B A' \triangleleft_f B A ′ ◃ f B . Let a 1 , … , a n ∈ A ′ a_1,\ldots,a_n \in A' a 1 , … , a n ∈ A ′ , i ≤ n i \leq n i ≤ n , and c ∈ B c \in B c ∈ B . We have to show that d : = f ( a 1 , … , a i − 1 , c , a i + 1 , … , a n ) ∈ A ′ d := f(a_1,\ldots,a_{i-1},c,a_{i+1},\ldots,a_n) \in A' d := f ( a 1 , … , a i − 1 , c , a i + 1 , … , a n ) ∈ A ′ . By the definition of A ′ A' A ′ we have ( b , a 1 ) , … , ( b , a n ) ∈ A (b,a_1),\ldots,(b,a_n) \in A ( b , a 1 ) , … , ( b , a n ) ∈ A . Then
f ( ( b , a 1 ) , … , ( b , a i − 1 ) , ( b , c ) , ( b , a i + 1 ) , … , ( b , a n ) ) = ( f ( b , … , b ) , f ( a 1 , … , a i − 1 , c , a i + 1 , … , a n ) ) = ( b , d ) ∈ A \begin{aligned}
f((b,a_1),\ldots,(b,a_{i-1}),(b,c),(b,a_{i+1}),\ldots,(b,a_n)) \\
= (f(b,\ldots,b),f(a_1,\ldots,a_{i-1},c,a_{i+1},\ldots,a_n)) = (b,d) \in A
\end{aligned} f (( b , a 1 ) , … , ( b , a i − 1 ) , ( b , c ) , ( b , a i + 1 ) , … , ( b , a n )) = ( f ( b , … , b ) , f ( a 1 , … , a i − 1 , c , a i + 1 , … , a n )) = ( b , d ) ∈ A
since A ◃ f B 2 A \triangleleft_f B^2 A ◃ f B 2 , hence d ∈ A ′ d \in A' d ∈ A ′ .
X + R : = { b ∈ B ∣ ∃ a ∈ X : R ( a , b ) } . X + R := \{b \in B \mid\exists a \in X : R(a,b)\}. X + R := { b ∈ B ∣ ∃ a ∈ X : R ( a , b )} .
Prove that
if X ≤ A X \leq A X ≤ A then ( X + R ) ≤ B (X + R) \leq B ( X + R ) ≤ B ;
if R ≤ A × B R \leq A \times B R ≤ A × B is subdirect and X ◃ f A X \triangleleft_f A X ◃ f A , then ( X + R ) ◃ f B (X + R) \triangleleft_f B ( X + R ) ◃ f B .
Exercise 226. Let B \mathcal{B} B be a relational τ \tau τ -structure and A \mathbf{A} A an algebra such that Pol ( B ) = Clo ( A ) \operatorname{Pol}(\mathcal{B}) = \operatorname{Clo}(\mathbf{A}) Pol ( B ) = Clo ( A ) . Let B ′ \mathcal{B}' B ′ be a τ \tau τ -structure with the same domain B B B such that R B ′ ◃ R B ≤ A ar ( R ) R^{\mathcal{B}'} \triangleleft R^{\mathcal{B}} \leq A^{\operatorname{ar}(R)} R B ′ ◃ R B ≤ A ar ( R ) for every R ∈ τ R \in\tau R ∈ τ . If a primitive positive τ \tau τ -formula φ \varphi φ defines S S S in B \mathcal{B} B and defines S ′ S' S ′ in B ′ \mathcal{B}' B ′ , then S ′ ◃ S S' \triangleleft S S ′ ◃ S . If R B ′ ◃ f R B R^{\mathcal{B}'} \triangleleft_f R^{\mathcal{B}} R B ′ ◃ f R B for the same operation f f f for all R ∈ τ R \in\tau R ∈ τ , then S ′ ◃ f S S' \triangleleft_f S S ′ ◃ f S .
Exercise 227. Suppose that A ◃ B ≤ C A \triangleleft B \leq C A ◃ B ≤ C . Do we then have A ◃ C A \triangleleft C A ◃ C ?
Exercise 228. Let f : { 0 , 1 , 2 } 3 → { 0 , 1 , 2 } f:\{0,1,2\}^{3}\to\{0,1,2\} f : { 0 , 1 , 2 } 3 → { 0 , 1 , 2 } be the majority operation given by f ( x , y , z ) = x f(x,y,z)=x f ( x , y , z ) = x if x , y , z x,y,z x , y , z are pairwise distinct. Show that { 0 , 1 } \{0,1\} { 0 , 1 } is a 4-absorbing, but not a 3-absorbing subuniverse.
Essential Relations
This section presents a relational characterisation of absorption that will be needed in Section 13.5 and in Section 14.2. The following material is mostly from Barto and Kazda [10]. Throughout, A A A denotes an algebra with a not necessarily finite domain.
Definition 13.17. Let A ≤ B A\leq B A ≤ B and n ≥ 1 n\geq1 n ≥ 1 . Then R ≤ B n R\leq B^{n} R ≤ B n is A A A -essential if for every i ∈ { 1 , … , n } i\in\{1,\ldots,n\} i ∈ { 1 , … , n }
R ∩ ( A i − 1 × B × A n − i ) ≠ ∅ R\cap\left(A^{i-1}\times B\times A^{n-i}\right)\neq\varnothing R ∩ ( A i − 1 × B × A n − i ) = ∅ and
R ∩ A n = ∅ . R\cap A^{n}=\varnothing. R ∩ A n = ∅ .
Example 13.18. Let B = ( { 0 , 1 } ; f k ) B=(\{0,1\};f_k) B = ({ 0 , 1 } ; f k ) be the algebra with the near unanimity operation f k f_k f k of arity k ≥ 3 k\geq3 k ≥ 3 which returns 0 iff at least two of its arguments are 0 (Example 6.34). Then A : = { 1 } ◃ B A:=\{1\}\triangleleft B A := { 1 } ◃ B is absorbing and the relation A n : = { 0 , 1 } n ∖ { ( 1 , … , 1 ) } ≤ B n A_n:=\{0,1\}^{n}\setminus\{(1,\ldots,1)\}\leq B^{n} A n := { 0 , 1 } n ∖ {( 1 , … , 1 )} ≤ B n is A A A -essential if and only if n < k n<k n < k .
Note that if A = B A=B A = B , then there are no A A A -essential relations. If A = ∅ A=\varnothing A = ∅ , then every nonempty subalgebra of B B B is A A A -essential. Also note that if A ≤ B A\leq B A ≤ B is a proper subuniverse and B B B is idempotent, then { b } \{b\} { b } is A A A -essential for every b ∈ B ∖ A b\in B\setminus A b ∈ B ∖ A .
Lemma 13.19. Let A ≤ B A\leq B A ≤ B . If there is no A A A -essential R ≤ B m R\leq B^{m} R ≤ B m , then for every n ≥ m n\geq m n ≥ m there is no A A A -essential S ≤ B n S\leq B^{n} S ≤ B n .
Proof. If R ≤ B n R\leq B^{n} R ≤ B n is A A A -essential, then π 1 , … , n − 1 ( R ∩ ( B n − 1 × A ) ) \pi_{1,\ldots,n-1}(R\cap(B^{n-1}\times A)) π 1 , … , n − 1 ( R ∩ ( B n − 1 × A )) is A A A -essential.
Lemma 13.20. Let t t t be a term operation of B B B of arity m m m such that A ◃ t B A\triangleleft_t B A ◃ t B . Then there are no A A A -essential relations R ≤ B m R\leq B^{m} R ≤ B m .
Proof. Suppose for contradiction that R ≤ B m R\leq B^{m} R ≤ B m is A A A -essential. Then there are b 1 , … , b m ∈ R b^{1},\ldots,b^{m}\in R b 1 , … , b m ∈ R such that { b i 1 , … , b i m } ∖ { b i i } ⊆ A \{b^{1}_{i},\ldots,b^{m}_{i}\}\setminus\{b^{i}_{i}\}\subseteq A { b i 1 , … , b i m } ∖ { b i i } ⊆ A for every i ∈ { 1 , … , m } i\in\{1,\ldots,m\} i ∈ { 1 , … , m } . Therefore, t ( b 1 , … , b m ) ∈ R ∩ A m t(b^{1},\ldots,b^{m})\in R\cap A^{m} t ( b 1 , … , b m ) ∈ R ∩ A m , because A ◃ t B A\triangleleft_t B A ◃ t B , contrary to our assumptions.
Proposition 13.21. Let A ≤ B A\leq B A ≤ B and R ≤ B n R\leq B^{n} R ≤ B n for n ≥ m − 1 n\geq m-1 n ≥ m − 1 . Suppose that B B B has no A A A -essential relation of arity m m m and for every I ∈ ( { 1 , … , n } m − 1 ) I\in\binom{\{1,\ldots,n\}}{m-1} I ∈ ( m − 1 { 1 , … , n } ) we have π I ( R ) ∩ A m − 1 ≠ ∅ \pi_I(R)\cap A^{m-1}\neq\varnothing π I ( R ) ∩ A m − 1 = ∅ . Then
R ∩ A n ≠ ∅ . R\cap A^{n}\neq\varnothing. R ∩ A n = ∅ . Proof. The proof is by induction on n ≥ m − 1 n\geq m-1 n ≥ m − 1 . The base case n = m − 1 n=m-1 n = m − 1 is immediate by the assumption applied for I = { 1 , … , n } I=\{1,\ldots,n\} I = { 1 , … , n } . For the inductive step, suppose that n ≥ m n\geq m n ≥ m . For every i ∈ { 1 , … , n } i\in\{1,\ldots,n\} i ∈ { 1 , … , n } define
R i : = π [ n ] ∖ { i } ( R ) ≤ B n − 1 R_i:=\pi_{[n]\setminus\{i\}}(R)\leq B^{n-1} R i := π [ n ] ∖ { i } ( R ) ≤ B n − 1 and note that π I ( R i ) ∩ A m − 1 ≠ ∅ \pi_I(R_i)\cap A^{m-1}\neq\varnothing π I ( R i ) ∩ A m − 1 = ∅ for every I ∈ ( { 1 , … , n } ∖ { i } m − 1 ) I\in\binom{\{1,\ldots,n\}\setminus\{i\}}{m-1} I ∈ ( m − 1 { 1 , … , n } ∖ { i } ) . Hence, by the inductive assumption we have that
R i ∩ A n − 1 ≠ ∅ . R_i\cap A^{n-1}\neq\varnothing. R i ∩ A n − 1 = ∅ . Since R R R is not essential by Lemma 13.19 we therefore must have R ∩ A n ≠ ∅ R\cap A^{n}\neq\varnothing R ∩ A n = ∅ .
Corollary 13.22. Let t ∈ Clo ( B ) ( m ) t \in\operatorname{Clo}(\mathbf{B})^{(m)} t ∈ Clo ( B ) ( m ) be such that A ◃ t B A \triangleleft_t \mathbf{B} A ◃ t B and let R ≤ B n R \leq\mathbf{B}^n R ≤ B n for n ≥ m − 1 n \geq m-1 n ≥ m − 1 . Suppose that for every I ∈ ( { 1 , … , n } m − 1 ) I \in\binom{\{1,\ldots,n\}}{m-1} I ∈ ( m − 1 { 1 , … , n } ) we have π I ( R ) ∩ A m − 1 ≠ ∅ \pi_I(R) \cap A^{m-1} \ne\varnothing π I ( R ) ∩ A m − 1 = ∅ . Then
R ∩ A n ≠ ∅ . R \cap A^n \ne\varnothing. R ∩ A n = ∅ . Proof. Combine Proposition 13.21 with Lemma 13.20.
Lemma 13.20 has a converse (Proposition 16 in [10]); also see [34, 113]. It will be needed in the proof of the important Theorem 13.55 later.
Theorem 13.23. Let m ≥ 1 m \geq1 m ≥ 1 . A subalgebra A ≤ B A \leq\mathbf{B} A ≤ B m m m -absorbs B \mathbf{B} B if and only if there are no A A A -essential relations R ≤ B m R \leq\mathbf{B}^m R ≤ B m .
Proof. The forward implication is Lemma 13.20. For the converse, the statement is trivial if A A A is not proper, so suppose that A A A is a proper subalgebra of B \mathbf{B} B . Suppose that B \mathbf{B} B has no A A A -essential relations of arity m m m . Let F ≤ B B m \mathbf{F} \leq\mathbf{B}^{B^{m}} F ≤ B B m be the free algebra generated by x 1 , … , x m x_1,\ldots,x_m x 1 , … , x m in HSP ( B ) \operatorname{HSP}(\mathbf{B}) HSP ( B ) (see § 8.5 ). For i ∈ { 1 , … , m } i \in\{1,\ldots,m\} i ∈ { 1 , … , m } , let X i : = A i − 1 × ( B ∖ A ) × A m − i X_i := A^{i-1} \times(\mathbf{B} \setminus A) \times A^{m-i} X i := A i − 1 × ( B ∖ A ) × A m − i , and let X : = X 1 ∪ ⋯ ∪ X m X := X_1 \cup\cdots\cup X_m X := X 1 ∪ ⋯ ∪ X m , which will be used as index set of the relation R R R defined as follows:
R : = π X ( F ) ≤ B X 1 × ⋯ × B X m . R := \pi_X(F) \leq\mathbf{B}^{X_1} \times\cdots\times\mathbf{B}^{X_m}. R := π X ( F ) ≤ B X 1 × ⋯ × B X m . Let I ∈ ( X m − 1 ) I \in\binom{X}{m-1} I ∈ ( m − 1 X ) . We claim that π I ( R ) ∩ A m − 1 ≠ ∅ \pi_I(R) \cap A^{m-1} \ne\varnothing π I ( R ) ∩ A m − 1 = ∅ : indeed, by the pigeon-hole principle there exists i ∈ { 1 , … , m } i \in\{1,\ldots,m\} i ∈ { 1 , … , m } such that I ∩ X i = ∅ I \cap X_i = \varnothing I ∩ X i = ∅ . Since F \mathbf{F} F contains π i m \pi_i^m π i m we have
R ∩ ( A X 1 × ⋯ × A X i − 1 × B X i × A X i + 1 × ⋯ × A X m ) ≠ ∅ R \cap\left(A^{X_1} \times\cdots\times A^{X_{i-1}} \times\mathbf{B}^{X_i} \times A^{X_{i+1}} \times\cdots\times A^{X_m}\right) \ne\varnothing R ∩ ( A X 1 × ⋯ × A X i − 1 × B X i × A X i + 1 × ⋯ × A X m ) = ∅ which shows the claim. Therefore, Proposition 13.21 implies that R ∩ A X ≠ ∅ R \cap A^X \ne\varnothing R ∩ A X = ∅ . By definition, any element of R ∩ A X R \cap A^X R ∩ A X can be extended to an element t ∈ F t \in F t ∈ F , and any such t t t is a term operation of B \mathbf{B} B of arity m m m which absorbs A A A .
Exercise 229. Find for every k ≥ 3 k \geq3 k ≥ 3 a finite idempotent algebra with a k k k -absorbing proper subuniverse which is not k − 1 k-1 k − 1 -absorbing.
The Absorption Theorem
The presentation of this section is based on lecture notes of Libor Barto. The goal of this section is to show that finite idempotent Taylor algebras (see Remark 9.21) must have some form of absorption; this idea will be formalised in the absorption theorem, Theorem 13.36 below, which is from [12].
Definition 13.24. Let A A A be an algebra. A subset B ⊆ A B \subseteq A B ⊆ A is called projective in A A A (in some papers called cube term blocker [94]) if for every f ∈ Clo ( A ) f \in\operatorname{Clo}(A) f ∈ Clo ( A ) of arity n n n there exists i ∈ { 1 , … , n } i \in\{1,\ldots,n\} i ∈ { 1 , … , n } such that
f ( A , A , … , A , B ⏟ position i , A , … , A ) ⊆ B ; f\left(A,A,\ldots,A,\underbrace{B}_{\text{position }i},A,\ldots,A\right) \subseteq B; f A , A , … , A , position i B , A , … , A ⊆ B ; as usual, the term on the left stands for { f ( x 1 , … , x n ) ∣ x 1 , … , x n ∈ A , x i ∈ B } \{f(x_1,\ldots,x_n) \mid x_1,\ldots,x_n \in A, x_i \in B\} { f ( x 1 , … , x n ) ∣ x 1 , … , x n ∈ A , x i ∈ B } .
Note that subsets of A A A that are projective in A A A are subuniverses of A A A . Recall the definition of minion homomorphisms from § 10.1 . Our starting point is the following theorem.
Theorem 13.25. Let A A A be an algebra such that there is no minion homomorphism from Clo ( A ) \operatorname{Clo}(A) Clo ( A ) to Proj and let B ⊆ A B \subseteq A B ⊆ A be projective in A A A . Then B B B 2 2 2 -absorbs A A A .
Proof. Since B B B is projective in A A A , for every f ∈ Clo ( A ) f \in\operatorname{Clo}(A) f ∈ Clo ( A ) of arity n n n there exists i f ∈ [ n ] i_f \in[n] i f ∈ [ n ] such that
f ( A , … , A , B i f , A , … , A ) ⊆ B . (56) f(A,\ldots,A,\underset{i_f}{B},A,\ldots,A) \subseteq B. \tag*{(56)} f ( A , … , A , i f B , A , … , A ) ⊆ B . (56) If i f i_f i f is unique for every f ∈ Clo ( A ) f \in\operatorname{Clo}(A) f ∈ Clo ( A ) , then Clo ( A ) → P r o j \operatorname{Clo}(A) \to\mathbf{Proj} Clo ( A ) → Proj given by f ↦ π i f n f \mapsto\pi_{i_f}^{n} f ↦ π i f n is a minion homomorphism: indeed, let α : [ n ] → [ k ] \alpha\colon[n] \to[k] α : [ n ] → [ k ] and f ∈ Clo ( A ) f \in\operatorname{Clo}(A) f ∈ Clo ( A ) and suppose that there exists a unique i ∈ [ n ] i \in[n] i ∈ [ n ] such that (53) holds. Then f α f_\alpha f α is an operation of arity k k k such that
f α ( A , … , A , B α ( i ) , A , … , A ) ⊆ f ( A , … , A , B i , A , … , A ) ⊆ B f_\alpha(A,\ldots,A,\underset{\alpha(i)}{B},A,\ldots,A) \subseteq f(A,\ldots,A,\underset{i}{B},A,\ldots,A) \subseteq B f α ( A , … , A , α ( i ) B , A , … , A ) ⊆ f ( A , … , A , i B , A , … , A ) ⊆ B and by assumption α ( i ) \alpha(i) α ( i ) is the only index j ∈ [ k ] j \in[k] j ∈ [ k ] such that f α ( A , … , A , B j , A , … , A ) ⊆ B f_\alpha(A,\ldots,A,\underset{j}{B},A,\ldots,A) \subseteq B f α ( A , … , A , j B , A , … , A ) ⊆ B . Hence,
ξ ( f α ) = π α ( i ) k = ( π i n ) α = ξ ( f ) α \xi(f_\alpha) = \pi_{\alpha(i)}^k = (\pi_i^n)_\alpha= \xi(f)_\alpha ξ ( f α ) = π α ( i ) k = ( π i n ) α = ξ ( f ) α and ξ \xi ξ is a minion homomorphism. So there exists f ∈ Clo ( A ) f \in\operatorname{Clo}(A) f ∈ Clo ( A ) and i ≠ j i \ne j i = j such that
f ( A , … , A , B i , A , … , A ) ⊆ B and f ( A , … , A , B j , A , … , A ) ⊆ B . f(A,\ldots,A,\underset{i}{B},A,\ldots,A) \subseteq B
\qquad\text{and}\qquad
f(A,\ldots,A,\underset{j}{B},A,\ldots,A) \subseteq B. f ( A , … , A , i B , A , … , A ) ⊆ B and f ( A , … , A , j B , A , … , A ) ⊆ B . Define r ( x , y ) : = f ( x , … , x , y j , x , … , x ) r(x,y) := f(x,\ldots,x,\underset{j}{y},x,\ldots,x) r ( x , y ) := f ( x , … , x , j y , x , … , x ) and observe that B ◃ r A B \triangleleft_r A B ◃ r A .
If A A A does not have proper projective subuniverses, then in exchange it must have a term operation satisfying the following strong condition.
Definition 13.26. An operation t : A n → A t\colon A^n \to A t : A n → A is called transitive if for every a ∈ A a \in A a ∈ A and i ∈ { 1 , … , n } i \in\{1,\ldots,n\} i ∈ { 1 , … , n } we have
t ( A , … , A , { a } i , A , … , A ) = A . t(A,\ldots,A,\underset{i}{\{a\}},A,\ldots,A) = A. t ( A , … , A , i { a } , A , … , A ) = A .
Clearly, if ∣ A ∣ > 1 |A| > 1 ∣ A ∣ > 1 , then a transitive operation must have arity at least two. The following theorem for the first time depends on A A A being finite.
Theorem 13.27. Let A A A be a finite idempotent algebra without proper projective subuniverses. Then Clo ( A ) \operatorname{Clo}(A) Clo ( A ) contains a transitive operation.
Proof. By assumption, for every proper subset B B B of A A A there exists t B ∈ Clo ( A ) t_B \in\operatorname{Clo}(A) t B ∈ Clo ( A ) of arity n n n such that for every i ∈ { 1 , … , n } i \in\{1,\ldots,n\} i ∈ { 1 , … , n }
t B ( A , … , A , B i , A , … , A ) ⊈ B . t_B(A,\ldots,A,\underset{i}{B},A,\ldots,A) \not\subseteq B. t B ( A , … , A , i B , A , … , A ) ⊆ B .
Using the star composition and the idempotence of A \mathbf{A} A , Lemma 9.15 implies that we may suppose that there exists a single term t t t that works for all proper B ⊂ A B \subset A B ⊂ A . Then
u : = t ∗ ⋯ ∗ t ⏟ ∣ A ∣ times u := \underbrace{t * \cdots* t}_{|A|\ \text{times}} u := ∣ A ∣ times t ∗ ⋯ ∗ t
is transitive, because for every a ∈ A a \in A a ∈ A and j ∈ { 1 , … , ∣ A ∣ } j \in\{1,\ldots,|A|\} j ∈ { 1 , … , ∣ A ∣ }
∣ t ∗ ⋯ ∗ t ⏟ j times ( A , … , A , { a } , A , … , A ) ∣ ≥ j \left|\underbrace{t * \cdots* t}_{j\ \text{times}}(A,\ldots,A,\{a\},A,\ldots,A)\right| \geq j j times t ∗ ⋯ ∗ t ( A , … , A , { a } , A , … , A ) ≥ j
and hence u ( A , … , A , { a } , A , … , A ) = A u(A,\ldots,A,\{a\},A,\ldots,A)=A u ( A , … , A , { a } , A , … , A ) = A .
Corollary 13.28. Let A \mathbf{A} A be a finite idempotent Taylor algebra. Then A \mathbf{A} A has a proper 2-absorbing subuniverse, or Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) contains a transitive operation.
Proof. Since A \mathbf{A} A is Taylor, there is no minion homomorphism from Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) to Proj \operatorname{Proj} Proj (Theorem 9.16 ; Remark 9.21). If A \mathbf{A} A has a proper projective subuniverse B B B , then B B B 2-absorbs A \mathbf{A} A by Theorem 13.25 and we are done. Otherwise, all proper subuniverses of A \mathbf{A} A are not projective, and Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) contains a transitive operation by Theorem 13.27 .
We will now explore consequences of having a transitive term operation for the existence of proper absorbing subuniverses. Let A \mathbf{A} A and B \mathbf{B} B be algebras, and let R ⊆ A × B R \subseteq A \times B R ⊆ A × B be a relation.
Definition 13.29 (left centre13 ). The left centre of R R R is the set
{ a ∈ A ∣ ( a , b ) ∈ R for every b ∈ B } . \{a \in A \mid(a,b) \in R \text{ for every } b \in B\}. { a ∈ A ∣ ( a , b ) ∈ R for every b ∈ B } .
See Figure 18 , left side.
Figure 18. Illustrations of R ≤ A × B R \leq\mathbf{A} \times\mathbf{B} R ≤ A × B with non-empty left center C C C (left side), and of R ≤ A × B R \leq\mathbf{A} \times\mathbf{B} R ≤ A × B which is linked (right side); none of the two examples is subdirect.
Proposition 13.30. Let A \mathbf{A} A and B \mathbf{B} B be idempotent algebras with the same signature and let R ≤ A × B R \leq\mathbf{A} \times\mathbf{B} R ≤ A × B with left centre C C C be such that π 1 ( R ) = A \pi_1(R)=A π 1 ( R ) = A . If there exists a term t t t such that t B t^{\mathbf{B}} t B is transitive, then C ◃ t A A C \triangleleft_{t^{\mathbf{A}}} A C ◃ t A A .
Proof. If C C C is empty, then the statement is trivial, so suppose that C C C is non-empty. Since B \mathbf{B} B is idempotent, C ≤ A C \leq\mathbf{A} C ≤ A . Let i ∈ [ n ] i \in[n] i ∈ [ n ] , z 1 , … , z i − 1 , z i + 1 , … , z n ∈ C z_1,\ldots,z_{i-1},z_{i+1},\ldots,z_n \in C z 1 , … , z i − 1 , z i + 1 , … , z n ∈ C , a ∈ A a \in A a ∈ A , and
a ′ : = t A ( z 1 , … , z i − 1 , a , z i + 1 , … , z n ) . a' := t^{\mathbf{A}}(z_1,\ldots,z_{i-1},a,z_{i+1},\ldots,z_n). a ′ := t A ( z 1 , … , z i − 1 , a , z i + 1 , … , z n ) .
To show that C ◃ t A A C \mathrel{\triangleleft_{t_{\mathbf{A}}}} \mathbf{A} C ◃ t A A we need to show that a ′ ∈ C a' \in C a ′ ∈ C , i.e., ( a ′ , b ) ∈ R (a',b) \in R ( a ′ , b ) ∈ R for every b ∈ B b \in B b ∈ B . Arbitrarily choose b ∈ B b \in B b ∈ B . By assumption, there exists c ∈ B c \in B c ∈ B such that ( a , c ) ∈ R (a,c) \in R ( a , c ) ∈ R . By the transitivity of t B t^{\mathbf{B}} t B there are d 1 , … , d i − 1 , d i + 1 , … , d n ∈ B d_1,\ldots,d_{i-1},d_{i+1},\ldots,d_n \in B d 1 , … , d i − 1 , d i + 1 , … , d n ∈ B such that t B ( d 1 , … , d i − 1 , c , d i + 1 , … , d n ) = b t^{\mathbf{B}}(d_1,\ldots,d_{i-1},c,d_{i+1},\ldots,d_n)=b t B ( d 1 , … , d i − 1 , c , d i + 1 , … , d n ) = b . Note that ( z 1 , d 1 ) , … , ( z i − 1 , d i − 1 ) , ( z i + 1 , d i + 1 ) , … , ( z n , d n ) ∈ R (z_1,d_1),\ldots,(z_{i-1},d_{i-1}),(z_{i+1},d_{i+1}),\ldots,(z_n,d_n) \in R ( z 1 , d 1 ) , … , ( z i − 1 , d i − 1 ) , ( z i + 1 , d i + 1 ) , … , ( z n , d n ) ∈ R since z 1 , … , z i − 1 , z i + 1 , … , z n z_1,\ldots,z_{i-1},z_{i+1},\ldots,z_n z 1 , … , z i − 1 , z i + 1 , … , z n are from the left centre of R R R . Since R ≤ A × B R \leq\mathbf{A} \times\mathbf{B} R ≤ A × B , we have that
( a ′ , b ) = ( t A ( z 1 , … , z i − 1 , a , z i + 1 , … , z n ) , t B ( d 1 , … , d i − 1 , c , d i + 1 , … , d n ) ) ∈ R (a',b)=\left(t^{\mathbf{A}}(z_1,\ldots,z_{i-1},a,z_{i+1},\ldots,z_n),t^{\mathbf{B}}(d_1,\ldots,d_{i-1},c,d_{i+1},\ldots,d_n)\right)\in R ( a ′ , b ) = ( t A ( z 1 , … , z i − 1 , a , z i + 1 , … , z n ) , t B ( d 1 , … , d i − 1 , c , d i + 1 , … , d n ) ) ∈ R
and the proof is complete.
Corollary 13.31. Let A \mathbf{A} A and B \mathbf{B} B be finite idempotent algebras with the same signature such that B \mathbf{B} B is Taylor. Let R ≤ A × B R \leq\mathbf{A} \times\mathbf{B} R ≤ A × B with left centre C C C be such that π 1 ( R ) = A \pi_1(R)=A π 1 ( R ) = A . Then B \mathbf{B} B has a proper 2 2 2 -absorbing subuniverse or C ◃ A C \triangleleft\mathbf{A} C ◃ A .
Proof. Suppose that B \mathbf{B} B does not have a proper 2 2 2 -absorbing subuniverse. Then Corollary 13.28 implies that B \mathbf{B} B has a transitive term operation t t t . Hence, Proposition 13.30 implies that C ◃ t A C \mathrel{\triangleleft_t} \mathbf{A} C ◃ t A .
The relation R R R can be viewed as the edge relation of a bipartite graph G R G_R G R with color classes A A A and B B B (this perspective was already presented in § 8.3 ).
Definition 13.32 (Linked relations). A relation R ⊆ A × B R \subseteq A \times B R ⊆ A × B is called linked if G R G_R G R is connected after removing isolated vertices.
See Figure 18 on the right. Note that if R R R is a subdirect subalgebra of A × B \mathbf{A} \times\mathbf{B} A × B (Definition 7.18 ) then G R G_R G R has no isolated vertices. Also note that if R R R has a non-empty left centre, then it is linked (but not necessarily subdirect). Recall the definition of R − 1 R^{-1} R − 1 from Exercise 102.
Proposition 13.33. Let A \mathbf{A} A and B \mathbf{B} B be finite idempotent algebras with the same signature and let R ≤ A × B R \leq\mathbf{A} \times\mathbf{B} R ≤ A × B have empty left centre and such that R − 1 ∘ R = B 2 R^{-1} \circ R = B^2 R − 1 ∘ R = B 2 . Then there exists a subdirect R ′ ≤ B 2 R' \leq\mathbf{B}^2 R ′ ≤ B 2 whose left centre is a proper subuniverse of B \mathbf{B} B .
Before we go into the proof we consider an example.
Example 13.34. Suppose that B \mathbf{B} B has domain B = { 1 , 2 , 3 } B=\{1,2,3\} B = { 1 , 2 , 3 } and B 2 \mathbf{B}^2 B 2 has the subuniverse R : = { ( u , v ) ∈ B 2 ∣ u ≠ v } R:=\{(u,v)\in B^2 \mid u\ne v\} R := {( u , v ) ∈ B 2 ∣ u = v } . Clearly, the left centre of R R R is empty. Then
R ′ : = { ( x , y ) ∣ ∃ a ( R ( a , x ) ∧ R ( a , y ) ∧ R ( a , 1 ) ) } = B 2 ∖ { ( 2 , 3 ) , ( 3 , 2 ) } R' := \{(x,y)\mid\exists a(R(a,x)\land R(a,y)\land R(a,1))\}=B^2\setminus\{(2,3),(3,2)\} R ′ := {( x , y ) ∣ ∃ a ( R ( a , x ) ∧ R ( a , y ) ∧ R ( a , 1 ))} = B 2 ∖ {( 2 , 3 ) , ( 3 , 2 )} is a subuniverse of B 2 \mathbf{B}^2 B 2 (we use that { 1 } \{1\} { 1 } is a subuniverse), is subdirect, and has the left centre { 1 } \{1\} { 1 } .
Proof of Proposition 13.33. For X = { d 1 , … , d k } ⊆ B X=\{d_1,\ldots,d_k\}\subseteq B X = { d 1 , … , d k } ⊆ B define
S X : = { ( x , y ) ∈ B 2 ∣ ∃ a ( R ( a , x ) ∧ R ( a , y ) ∧ R ( a , d 1 ) ∧ ⋯ ∧ R ( a , d k ) ) } . S_X := \{(x,y)\in B^2\mid\exists a(R(a,x)\land R(a,y)\land R(a,d_1)\land\cdots\land R(a,d_k))\}. S X := {( x , y ) ∈ B 2 ∣ ∃ a ( R ( a , x ) ∧ R ( a , y ) ∧ R ( a , d 1 ) ∧ ⋯ ∧ R ( a , d k ))} .
Then
S X ≤ B 2 S_X \le B^2 S X ≤ B 2 by the idempotence of B \mathbf{B} B ,
S ∅ = R − 1 ∘ R = B 2 S_{\emptyset}=R^{-1}\circ R=B^2 S ∅ = R − 1 ∘ R = B 2 by assumption, and
S B = ∅ S_B=\emptyset S B = ∅ because the left centre of R R R is empty.
Choose D ⊆ B D\subseteq B D ⊆ B maximal subject to S D = B 2 S_D=B^2 S D = B 2 . Such a D D D exists because S ∅ = B 2 S_{\emptyset}=B^2 S ∅ = B 2 . Since S B = ∅ S_B=\emptyset S B = ∅ , we have D ≠ B D\ne B D = B . Choose b ∈ B ∖ D b\in B\setminus D b ∈ B ∖ D and put E : = D ∪ { b } E:=D\cup\{b\} E := D ∪ { b } . By the maximality of D D D , S E ≠ B 2 S_E\ne B^2 S E = B 2 . See Figure 19 . Let C C C be the left centre of S E S_E S E .
Figure 19. An illustration for the definition of S E S_E S E in the proof Proposition 13.33.
C C C contains b b b and hence is non-empty: indeed, for any y ∈ B y\in B y ∈ B there exists a ∈ A a\in A a ∈ A witnessing that ( b , y ) ∈ S D = B 2 (b,y)\in S_D=B^2 ( b , y ) ∈ S D = B 2 , i.e., R ( a , b ) R(a,b) R ( a , b ) , R ( a , y ) R(a,y) R ( a , y ) , and R ( a , d ) R(a,d) R ( a , d ) for every d ∈ D d\in D d ∈ D . Hence, ( b , y ) ∈ S E (b,y)\in S_E ( b , y ) ∈ S E and b ∈ C b\in C b ∈ C .
Since C C C is non-empty, choose c ∈ C c\in C c ∈ C . By the definition of the left centre, ( c , y ) ∈ S E (c,y)\in S_E ( c , y ) ∈ S E for every y ∈ B y\in B y ∈ B . Since S E S_E S E is symmetric, also ( y , c ) ∈ S E (y,c)\in S_E ( y , c ) ∈ S E . Hence both projections of S E S_E S E equal B B B , so S E S_E S E is subdirect.
Finally, C ≠ B C\ne B C = B : otherwise, by the definition of the left centre, ( x , y ) ∈ S E (x,y)\in S_E ( x , y ) ∈ S E for all x , y ∈ B x,y\in B x , y ∈ B , and hence S E = B 2 S_E=B^2 S E = B 2 , a contradiction.
Therefore, R ′ : = S E R':=S_E R ′ := S E meets the requirements.
Proposition 13.35. Let A \mathbf{A} A and B \mathbf{B} B be finite idempotent algebras with the same signature and let R ≤ A × B R\le A\times B R ≤ A × B be subdirect and linked such that R ≠ A × B R\ne A\times B R = A × B . Then at least one of the following cases applies.
Proof. Suppose that the left centre C C C of R R R is empty. If R − 1 ∘ R = B 2 R^{-1}\circ R=B^2 R − 1 ∘ R = B 2 then the statement follows from Proposition 13.33. Otherwise, R − 1 ∘ R ≤ B 2 R^{-1}\circ R\le B^2 R − 1 ∘ R ≤ B 2 is subdirect, proper, and linked
( Exercise 231), so we may replace A \mathbf{A} A by B \mathbf{B} B and R R R by R − 1 ∘ R R^{-1}\circ R R − 1 ∘ R . Put S : = R − 1 ∘ R S := R^{-1}\circ R S := R − 1 ∘ R . Since R R R is linked and subdirect, S n = B 2 S^n = B^2 S n = B 2 for some n ∈ N n \in\mathbb{N} n ∈ N . The relation S S S is reflexive and symmetric, so S m = B 2 S^m = B^2 S m = B 2 for every m ≥ n m \ge n m ≥ n . Moreover, every repetition replaces the current symmetric relation by its square. Thus the relations tested in successive repetitions are S 2 S^2 S 2 , S 4 S^4 S 4 , S 8 S^8 S 8 , … \ldots … . If j j j is least such that S 2 j = B 2 S^{2^j} = B^2 S 2 j = B 2 , then S 2 j − 1 S^{2^{j-1}} S 2 j − 1 is still proper and its inverse composite is B 2 B^2 B 2 . Hence we eventually find a proper, subdirect, and linked subuniverse R R R of B 2 B^2 B 2 such that R − 1 ∘ R = B 2 R^{-1}\circ R = B^2 R − 1 ∘ R = B 2 . If the left centre of R R R is non-empty it is a proper subalgebra of B \mathbf{B} B and we are done. Otherwise, the statement again follows from Proposition 13.33.
Theorem 13.36 (Absorption theorem [12]). Let A \mathbf{A} A and B \mathbf{B} B be finite idempotent algebras with the same signature such that B \mathbf{B} B is Taylor. Then for every linked and subdirect R ≤ A × B R \le\mathbf{A} \times\mathbf{B} R ≤ A × B one of the following is true:
R = A × B R = A \times B R = A × B ;
A \mathbf{A} A has a proper absorbing subuniverse;
B \mathbf{B} B has a proper absorbing subuniverse.
Proof. Suppose that R ≠ A × B R \ne A \times B R = A × B because otherwise item 1 of the theorem holds and we are done. Let C C C be the left centre of R R R . Note that C ≠ A C \ne A C = A because R ≠ A × B R \ne A \times B R = A × B .
Suppose also that B \mathbf{B} B is absorption-free, because otherwise item 3 of the theorem holds. Corollary 13.31 then implies that C ◃ A C \triangleleft\mathbf{A} C ◃ A . If C C C is non-empty, then we have found a proper absorbing subuniverse of A \mathbf{A} A and item 2 of the theorem holds. Otherwise, Proposition 13.35 implies that there exists a subdirect R ′ ≤ B 2 R' \le B^2 R ′ ≤ B 2 whose left centre is a proper subuniverse of B \mathbf{B} B . In this case, B \mathbf{B} B has a proper absorbing subuniverse by Corollary 13.31, in contradiction to the assumption above.
We will prove a strengthening of this result in Theorem 13.58 .
Exercise 230. Let A \mathbf{A} A and B \mathbf{B} B be idempotent algebras and R ≤ A × B R \le A \times B R ≤ A × B . Show that the left center of R R R is a subalgebra of A \mathbf{A} A .
Exercise 231. Show that if R ≤ A × B R \le A \times B R ≤ A × B is linked, then R − 1 ∘ R ≤ B 2 R^{-1}\circ R \le B^2 R − 1 ∘ R ≤ B 2 is linked, too.
Exercise 232. Suppose that A \mathbf{A} A is a simple algebra. Then every subdirect R ≤ A 2 R \le A^2 R ≤ A 2 is linked or the graph of an automorphism of A \mathbf{A} A .
Hint. Consider ⋃ i ∈ N ( R ∘ R − 1 ) i \bigcup_{i\in\mathbb{N}}(R\circ R^{-1})^i ⋃ i ∈ N ( R ∘ R − 1 ) i .
Exercise 233. Let A \mathbf{A} A and B \mathbf{B} B be algebras and let R ≤ A × B R \le A \times B R ≤ A × B be subdirect. Let θ A \theta_A θ A be the kernel of π 1 : R → A \pi_1:R\to A π 1 : R → A and let θ B \theta_B θ B be the kernel of π 2 : R → B \pi_2:R\to B π 2 : R → B . Show that R R R is linked if and only if θ A ∨ θ B = 1 R \theta_A \vee\theta_B = 1_R θ A ∨ θ B = 1 R .
Exercise 234. Let R ≤ A 2 R \le A^2 R ≤ A 2 , S ◃ R S \triangleleft R S ◃ R , and ( a , a ) , ( b , b ) ∈ S (a,a),(b,b) \in S ( a , a ) , ( b , b ) ∈ S be such that ( a , b ) ∈ R (a,b) \in R ( a , b ) ∈ R . Then there exists k ∈ N k \in\mathbb{N} k ∈ N such that ( a , b ) ∈ S k (a,b) \in S^k ( a , b ) ∈ S k .
Exercise 235. A cube term blocker in an algebra A \mathbf{A} A is a pair ( C , B ) (C,B) ( C , B ) such that B ≤ A B \le A B ≤ A , ∅ ≠ C ⊊ B \varnothing\ne C \subsetneq B ∅ = C ⊊ B , and C C C is projective in B \mathbf{B} B (Definition 13.24). Show that a finite idempotent algebra with a cube term (Exercise 182) has no cube term blocker. The converse holds as well, but its proof requires substantial work [94, Theorem 2.1].
Exercise 236. Let A \mathbf{A} A be a finite algebra and B ⊆ A B \subseteq A B ⊆ A . Then B B B is projective in A \mathbf{A} A if and only if Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) preserves for every n n n the relation B [ n ] : = A n ∖ ( A ∖ B ) n B[n] := A^n \setminus(A \setminus B)^n B [ n ] := A n ∖ ( A ∖ B ) n .
Exercise 237. Find a counterexample to the absorption theorem if we drop the assumption that R R R is linked.
Abelianness Revisited
The fundamental theorem of abelian algebras (Theorem 12.13 ) implies that every abelian algebra with a Maltsev term is affine. In this section we considerably strengthen this theorem for finite idempotent algebras by replacing the assumption of having a Maltsev term by having a Taylor term (Corollary 13.42). This result follows from tame congruence theory (Hobby and McKenzie [69]; see the discussion in [15]); the new proof based on absorption that we present here is from [15]; the presentation follows lecture notes of Libor Barto.
Definition 13.37. An algebra A \mathbf{A} A is called hereditarily absorption-free (HAF) if no subalgebra of A \mathbf{A} A has a proper absorbing subalgebra, i.e., whenever C C C is a non-empty absorbing subalgebra of a subalgebra B B B of A \mathbf{A} A , then C = B C = B C = B .
We will first prove that ‘HAF and Taylor implies Maltsev’ (Theorem 13.40 ), and then that ‘abelian implies HAF’ (Theorem 13.41 ). First we prove that HAF is closed under taking direct products.
Lemma 13.38. Let A , B \mathbf{A}, \mathbf{B} A , B be idempotent hereditarily absorption-free algebras with the same signature. Then A × B \mathbf{A} \times\mathbf{B} A × B is hereditarily absorption-free.
Proof. Suppose that S ◃ R ≤ A × B S \triangleleft R \leq\mathbf{A} \times\mathbf{B} S ◃ R ≤ A × B is non-empty. We have to show that S = R S = R S = R . Let ( a , b ) ∈ R (a,b) \in R ( a , b ) ∈ R and consider the subalgebras D ≤ C ≤ B \mathbf{D} \leq\mathbf{C} \leq\mathbf{B} D ≤ C ≤ B given by
C : = { b ′ ∣ ( a , b ′ ) ∈ R } ≤ B (since B is idempotent) C := \{b' \mid(a,b') \in R\} \leq B \qquad\text{(since $\mathbf{B}$ is idempotent)} C := { b ′ ∣ ( a , b ′ ) ∈ R } ≤ B (since B is idempotent) and
D : = { b ′ ∣ ( a , b ′ ) ∈ S } ≤ C (since B is idempotent) . D := \{b' \mid(a,b') \in S\} \leq C \qquad\text{(since $\mathbf{B}$ is idempotent)}. D := { b ′ ∣ ( a , b ′ ) ∈ S } ≤ C (since B is idempotent) . Claim 1. D ≠ ∅ D \ne\varnothing D = ∅ . Note that π 1 ( S ) ≤ π 1 ( R ) ≤ A \pi_1(S) \leq\pi_1(R) \leq A π 1 ( S ) ≤ π 1 ( R ) ≤ A (for the notation, see the comments after Definition 6.35). We even have π 1 ( S ) ◃ π 1 ( R ) \pi_1(S) \triangleleft\pi_1(R) π 1 ( S ) ◃ π 1 ( R ) (Lemma 13.15 ). Since A \mathbf{A} A is HAF, we get π 1 ( S ) = π 1 ( R ) \pi_1(S) = \pi_1(R) π 1 ( S ) = π 1 ( R ) . Since a ∈ π 1 ( R ) a \in\pi_1(R) a ∈ π 1 ( R ) , there must be b ′ ∈ B b' \in B b ′ ∈ B such that ( a , b ′ ) ∈ S (a,b') \in S ( a , b ′ ) ∈ S . Therefore, b ′ ∈ D ≠ ∅ b' \in D \ne\varnothing b ′ ∈ D = ∅ .
Claim 2. D ◃ C D \triangleleft C D ◃ C . By assumption, there exists a term operation f ∈ Clo ( R ) ( n ) f \in\operatorname{Clo}(R)^{(n)} f ∈ Clo ( R ) ( n ) such that S ◃ f R S \triangleleft_f R S ◃ f R . Let b 1 , … , b n ∈ C b_1,\ldots,b_n \in C b 1 , … , b n ∈ C be such that all but one of them are from D D D . Then
f ( ( a , b 1 ) , … , ( a , b n ) ) = ( a , f ( b 1 , … , b n ) ) ∈ S f((a,b_1),\ldots,(a,b_n)) = (a,f(b_1,\ldots,b_n)) \in S f (( a , b 1 ) , … , ( a , b n )) = ( a , f ( b 1 , … , b n )) ∈ S since A \mathbf{A} A is idempotent and S ◃ f R S \triangleleft_f R S ◃ f R . It follows that f ( b 1 , … , b n ) ∈ D f(b_1,\ldots,b_n) \in D f ( b 1 , … , b n ) ∈ D .
By the assumption that B \mathbf{B} B is HAF, we must have D = C D = C D = C and hence ( a , b ) ∈ S (a,b) \in S ( a , b ) ∈ S . Since ( a , b ) ∈ R (a,b) \in R ( a , b ) ∈ R was chosen arbitrarily, this implies that R = S R = S R = S .
Corollary 13.39. The class of idempotent HAF algebras of fixed signature τ \tau τ forms a pseudovariety.
Proof. By definition of HAF, the class is closed under subalgebras. Closure under finite products has been established in Lemma 13.38.
For closure under homomorphic images, let h : A → B h:\mathbf{A}\to\mathbf{B} h : A → B be a surjective homomorphism, where A \mathbf{A} A is HAF, and suppose that ∅ ≠ D ◃ t C ≤ B \varnothing\ne D\mathrel{\triangleleft_t} C\le\mathbf{B} ∅ = D ◃ t C ≤ B . Then h − 1 ( C ) h^{-1}(C) h − 1 ( C ) is a subalgebra of A \mathbf{A} A , and h − 1 ( D ) h^{-1}(D) h − 1 ( D ) is a non-empty subalgebra of h − 1 ( C ) h^{-1}(C) h − 1 ( C ) . Applying Lemma 13.12 to the restriction h ∣ h − 1 ( C ) : h − 1 ( C ) → C h|_{h^{-1}(C)}:h^{-1}(C)\to C h ∣ h − 1 ( C ) : h − 1 ( C ) → C gives h − 1 ( D ) ◃ t h − 1 ( C ) h^{-1}(D)\mathrel{\triangleleft_t}h^{-1}(C) h − 1 ( D ) ◃ t h − 1 ( C ) . Since A \mathbf{A} A is hereditarily absorption-free, the subalgebra h − 1 ( C ) h^{-1}(C) h − 1 ( C ) is absorption-free. Hence h − 1 ( D ) = h − 1 ( C ) h^{-1}(D)=h^{-1}(C) h − 1 ( D ) = h − 1 ( C ) , and applying h h h yields D = C D=C D = C . Thus B \mathbf{B} B is HAF. Idempotence is also preserved under homomorphic images, so the class is closed under homomorphic images.
Theorem 13.40 (Theorem 1.4 in [15]). Let A \mathbf{A} A be a finite idempotent Taylor algebra. If A \mathbf{A} A is hereditarily absorption-free, then A \mathbf{A} A has a Maltsev term.
Proof. Let F ∈ HSP f i n ( A ) \mathbf{F}\in\operatorname{HSP}^{\mathrm{fin}}(\mathbf{A}) F ∈ HSP fin ( A ) be the free algebra over two generators x , y x,y x , y (see § 8.5 ). It follows from Corollary 13.39 that F \mathbf{F} F is HAF. Let R \mathbf{R} R be the subalgebra of F 2 \mathbf{F}^{2} F 2 generated by ( x , y ) (x,y) ( x , y ) , ( x , x ) (x,x) ( x , x ) , and ( y , x ) (y,x) ( y , x ) .
Claim 1. R ≤ F 2 \mathbf{R}\le\mathbf{F}^{2} R ≤ F 2 is subdirect. Let u ∈ F u\in F u ∈ F . Since F \mathbf{F} F is generated by x x x and y y y , there is a binary term t t t such that u = t F ( x , y ) u=t^{\mathbf{F}}(x,y) u = t F ( x , y ) . Since ( x , x ) , ( y , x ) ∈ R (x,x),(y,x)\in R ( x , x ) , ( y , x ) ∈ R and R ≤ F 2 \mathbf{R}\le\mathbf{F}^{2} R ≤ F 2 , we have
t R ( ( x , x ) , ( y , x ) ) = ( t F ( x , y ) , t F ( x , x ) ) = ( u , x ) ∈ R , t^{\mathbf{R}}\bigl((x,x),(y,x)\bigr)=\bigl(t^{\mathbf{F}}(x,y),t^{\mathbf{F}}(x,x)\bigr)=(u,x)\in R, t R ( ( x , x ) , ( y , x ) ) = ( t F ( x , y ) , t F ( x , x ) ) = ( u , x ) ∈ R ,
where the last equality uses the idempotence of F \mathbf{F} F . Hence u ∈ π 1 ( R ) u\in\pi_1(R) u ∈ π 1 ( R ) . Similarly, since ( x , x ) , ( x , y ) ∈ R (x,x),(x,y)\in R ( x , x ) , ( x , y ) ∈ R , we have
t R ( ( x , x ) , ( x , y ) ) = ( t F ( x , x ) , t F ( x , y ) ) = ( x , u ) ∈ R . t^{\mathbf{R}}\bigl((x,x),(x,y)\bigr)=\bigl(t^{\mathbf{F}}(x,x),t^{\mathbf{F}}(x,y)\bigr)=(x,u)\in R. t R ( ( x , x ) , ( x , y ) ) = ( t F ( x , x ) , t F ( x , y ) ) = ( x , u ) ∈ R .
Hence u ∈ π 2 ( R ) u\in\pi_2(R) u ∈ π 2 ( R ) . Since u ∈ F u\in F u ∈ F was arbitrary, both projections of R R R are equal to F F F , and therefore R \mathbf{R} R is subdirect in F 2 \mathbf{F}^{2} F 2 .
Claim 2. R \mathbf{R} R is linked. Every element of R R R can be written as
s R ( ( x , y ) , ( x , x ) , ( y , x ) ) = ( s F ( x , x , y ) , s F ( y , x , x ) ) . s^{\mathbf{R}}\bigl((x,y),(x,x),(y,x)\bigr)=\bigl(s^{\mathbf{F}}(x,x,y),s^{\mathbf{F}}(y,x,x)\bigr). s R ( ( x , y ) , ( x , x ) , ( y , x ) ) = ( s F ( x , x , y ) , s F ( y , x , x ) ) .
for some term s s s . Since ( x , x ) , ( y , x ) ∈ R (x,x),(y,x)\in R ( x , x ) , ( y , x ) ∈ R we have that ( s F ( x , x , y ) , s F ( x , x , x ) ) ∈ R \bigl(s^{\mathbf{F}}(x,x,y),s^{\mathbf{F}}(x,x,x)\bigr)\in R ( s F ( x , x , y ) , s F ( x , x , x ) ) ∈ R and since ( x , y ) , ( x , x ) ∈ R (x,y),(x,x)\in R ( x , y ) , ( x , x ) ∈ R we have ( s F ( x , x , x ) , s F ( y , x , x ) ) ∈ R \bigl(s^{\mathbf{F}}(x,x,x),s^{\mathbf{F}}(y,x,x)\bigr)\in R ( s F ( x , x , x ) , s F ( y , x , x ) ) ∈ R . Note that s F ( x , x , x ) = x s^{\mathbf{F}}(x,x,x)=x s F ( x , x , x ) = x by the idempotence of A \mathbf{A} A and F \mathbf{F} F , and thus between any two elements of F F F there is a path of length at most three in the bipartite graph G R G_R G R of R R R , which proves the claim.
Since F ∈ SP ( A ) \mathbf{F}\in\operatorname{SP}(\mathbf{A}) F ∈ SP ( A ) (Proposition 7.28) and A \mathbf{A} A has a Taylor term, so has F \mathbf{F} F . Since F \mathbf{F} F has no proper non-empty absorbing subalgebra, Theorem 13.36 implies that R = F × F R=F\times F R = F × F . Let m m m be a term such that m F ( ( x , y ) , ( x , x ) , ( y , x ) ) = ( y , y ) m^{\mathbf{F}}\bigl((x,y),(x,x),(y,x)\bigr)=(y,y) m F ( ( x , y ) , ( x , x ) , ( y , x ) ) = ( y , y ) . Then m A m^{\mathbf{A}} m A is a Maltsev operation.
The following is a special case of Lemma 4.1 in [15].
Theorem 13.41. Let A \mathbf{A} A be a finite idempotent algebra. If A \mathbf{A} A is abelian, then A \mathbf{A} A is hereditarily absorption-free.
Proof. Since every subalgebra of an abelian algebra is abelian (Exercise 208), it suffices to show that if B < A \mathbf{B}<\mathbf{A} B < A , then B = A B=A B = A . We will show that if B ◃ t A \mathbf{B}\mathrel{\triangleleft_t}\mathbf{A} B ◃ t A for some n n n -ary term operation t ∈ Clo ( A ) t\in\operatorname{Clo}(\mathbf{A}) t ∈ Clo ( A ) , for n ≥ 2 n\ge2 n ≥ 2 , then B ◃ s A \mathbf{B}\mathrel{\triangleleft_s}\mathbf{A} B ◃ s A for some n − 1 n-1 n − 1 -ary s s s . This is enough, because if B ◃ s A \mathbf{B}\mathrel{\triangleleft_s}\mathbf{A} B ◃ s A and s s s is unary, then s s s must be the identity by the idempotence of A \mathbf{A} A , hence B = A B=A B = A . Define the term t m ( x ˉ , y ) t_m(\bar{x},y) t m ( x ˉ , y ) , where x ˉ = ( x 1 , … , x n − 1 ) \bar{x}=(x_1,\ldots,x_{n-1}) x ˉ = ( x 1 , … , x n − 1 ) , as follows
t 1 ( x ˉ , y ) : = t ( x ˉ , y ) t_1(\bar{x},y):=t(\bar{x},y) t 1 ( x ˉ , y ) := t ( x ˉ , y )
t m + 1 ( x ˉ , y ) : = t ( x ˉ , t m ( x ˉ , y ) ) t_{m+1}(\bar{x},y):=t(\bar{x},t_m(\bar{x},y)) t m + 1 ( x ˉ , y ) := t ( x ˉ , t m ( x ˉ , y ))
Note that B ◃ t m A B\triangleleft_{t_m} A B ◃ t m A for every m ≥ 1 m\ge1 m ≥ 1 .
Claim 1. For m = ∣ A ∣ ! m=|A|! m = ∣ A ∣ ! we have
t m ( x ˉ , t m ( x ˉ , y ) ) = t m ( x ˉ , y ) . (57) t_m(\bar{x},t_m(\bar{x},y))=t_m(\bar{x},y). \tag*{(57)} t m ( x ˉ , t m ( x ˉ , y )) = t m ( x ˉ , y ) . (57) To see this, define r x ˉ : A → A r_{\bar{x}}:A\to A r x ˉ : A → A by r x ˉ ( y ) : = t ( x ˉ , y ) r_{\bar{x}}(y):=t(\bar{x},y) r x ˉ ( y ) := t ( x ˉ , y ) . Then note that
t m ( x ˉ , y ) = r x ˉ m ( y ) = r x ˉ ∘ ⋯ ∘ r x ˉ ⏟ m t i m e s ( y ) t_m(\bar{x},y)=r_{\bar{x}}^m(y)=\underbrace{r_{\bar{x}}\circ\cdots\circ r_{\bar{x}}}_{m\ \mathrm{times}}(y) t m ( x ˉ , y ) = r x ˉ m ( y ) = m times r x ˉ ∘ ⋯ ∘ r x ˉ ( y ) and observe that (see Exercise 126)
r x ˉ ∘ ⋯ ∘ r x ˉ ⏟ 2 m t i m e s ( y ) = r x ˉ ∘ ⋯ ∘ r x ˉ ⏟ m t i m e s ( y ) . \underbrace{r_{\bar{x}}\circ\cdots\circ r_{\bar{x}}}_{2m\ \mathrm{times}}(y)=\underbrace{r_{\bar{x}}\circ\cdots\circ r_{\bar{x}}}_{m\ \mathrm{times}}(y). 2 m times r x ˉ ∘ ⋯ ∘ r x ˉ ( y ) = m times r x ˉ ∘ ⋯ ∘ r x ˉ ( y ) .
Claim 2. B ◃ s A B\triangleleft_s A B ◃ s A for s : A n − 1 → A s:A^{n-1}\to A s : A n − 1 → A defined by
s ( x 1 , … , x n − 1 ) : = t m ( x 1 , … , x n − 1 , x n − 1 ) . s(x_1,\ldots,x_{n-1}):=t_m(x_1,\ldots,x_{n-1},x_{n-1}). s ( x 1 , … , x n − 1 ) := t m ( x 1 , … , x n − 1 , x n − 1 ) . Let a ∈ A a\in A a ∈ A and b 1 , … , b n − 1 ∈ B b_1,\ldots,b_{n-1}\in B b 1 , … , b n − 1 ∈ B . Clearly, s ( b 1 , … , b i − 1 , a , b i + 1 , … , b n − 1 ) ∈ B s(b_1,\ldots,b_{i-1},a,b_{i+1},\ldots,b_{n-1})\in B s ( b 1 , … , b i − 1 , a , b i + 1 , … , b n − 1 ) ∈ B for all i < n − 1 i<n-1 i < n − 1 , since B ◃ t m A B\triangleleft_{t_m} A B ◃ t m A . We have to verify that
s ( b 1 , … , b n − 2 , a ) = t m ( b 1 , … , b n − 2 , a , a ) ∈ B . s(b_1,\ldots,b_{n-2},a)=t_m(b_1,\ldots,b_{n-2},a,a)\in B. s ( b 1 , … , b n − 2 , a ) = t m ( b 1 , … , b n − 2 , a , a ) ∈ B . From (57) we obtain that
t m ( b 1 , … , b n − 2 , b n − 1 , a ) = t m ( b 1 , … , b n − 2 , b n − 1 , t m ( b 1 , … , b n − 2 , b n − 1 , a ) ) t_m(b_1,\ldots,b_{n-2},b_{n-1},a)=t_m(b_1,\ldots,b_{n-2},b_{n-1},t_m(b_1,\ldots,b_{n-2},b_{n-1},a)) t m ( b 1 , … , b n − 2 , b n − 1 , a ) = t m ( b 1 , … , b n − 2 , b n − 1 , t m ( b 1 , … , b n − 2 , b n − 1 , a )) and since A A A is abelian, we may apply the term condition to the term t m t_m t m at the ( n − 1 ) (n-1) ( n − 1 ) -st argument and obtain
t m ( b 1 , … , b n − 2 , a , a ) = t m ( b 1 , … , b n − 2 , a , t m ( b 1 , … , b n − 2 , b n − 1 , a ) ) . t_m(b_1,\ldots,b_{n-2},a,a)=t_m(b_1,\ldots,b_{n-2},a,t_m(b_1,\ldots,b_{n-2},b_{n-1},a)). t m ( b 1 , … , b n − 2 , a , a ) = t m ( b 1 , … , b n − 2 , a , t m ( b 1 , … , b n − 2 , b n − 1 , a )) . The left hand side of this equation equals s ( b 1 , … , b n − 2 , a ) s(b_1,\ldots,b_{n-2},a) s ( b 1 , … , b n − 2 , a ) , and the right hand side is contained in B B B since B ◃ t m A B\triangleleft_{t_m} A B ◃ t m A .
Corollary 13.42. Let A A A be a finite idempotent abelian Taylor algebra. Then A A A is affine.
Proof. If A A A is abelian, then by Theorem 13.41 it is hereditarily absorption-free. Theorem 13.40 implies that A A A has a Maltsev term m m m . Then Theorem 12.13 implies that A A A is affine.
Exercise 238. Show that the assumption that A A A is finite is necessary in Corollary 13.42.
Hint. Consider A = ( [ 0 , 1 ] ; ( x , y ) ↦ x + y 2 ) A=([0,1];(x,y)\mapsto\frac{x+y}{2}) A = ([ 0 , 1 ] ; ( x , y ) ↦ 2 x + y ) .
Exercise 239. Let A : = ( A , + , − , 0 ) A := (A, +, -, 0) A := ( A , + , − , 0 ) be a group with domain A = { a 1 , … , a n } A = \{a_1, \ldots, a_n\} A = { a 1 , … , a n } . Show that
CSP ( A ; { ( a , b , c ) ∣ a + b = c } , { a 1 } , … , { a n } ) \operatorname{CSP}(A; \{(a,b,c) \mid a+b=c\}, \{a_1\}, \ldots, \{a_n\}) CSP ( A ; {( a , b , c ) ∣ a + b = c } , { a 1 } , … , { a n })
is in P if A A A is abelian, and is NP-hard otherwise.14
Exercise 240. Prove that the converse of Theorem 13.41 is false: i.e., find an example of a finite idempotent algebra which is hereditarily absorption-free, but not abelian.
Central Absorption
It will be convenient to work with ternary absorbing (i.e., 3-absorbing) subalgebras instead of absorbing subalgebras with respect to terms of unbounded arity; this will in particular help in the applications of the absorption theorem in § 15 and § 16 . In fact, we can often guarantee the existence of subalgebras with an even stronger form of absorption, namely central absorption , which implies ternary absorption. The results in this section are from [113] and parts of the presentation are inspired by [34].
Definition 13.43. Let A A A be an algebra. We say that C ⊲ A C \lhd A C ⊲ A is centrally absorbing 15 , written C ⊲ c e n A C \lhd_{\mathrm{cen}} A C ⊲ cen A , if for every a ∈ A ∖ C a \in A \setminus C a ∈ A ∖ C
( a , a ) ∉ ⟨ ( { a } × C ) ∪ ( C × { a } ) ⟩ A 2 . (a,a) \notin\langle(\{a\} \times C) \cup(C \times\{a\}) \rangle_{A^2}. ( a , a ) ∈ / ⟨({ a } × C ) ∪ ( C × { a }) ⟩ A 2 . See Figure 20 .
Figure 20. An illustration for the definition of central absorption (Definition 13.43).
Example 13.44. If A = ( A ; m ) \mathbf{A}=(A;m) A = ( A ; m ) where m m m is a majority operation, then { c } ⊲ c e n A \{c\}\lhd_{\mathrm{cen}}\mathbf{A} { c } ⊲ cen A for every c ∈ A c\in A c ∈ A , because for every a ∈ A ∖ C a\in A\setminus C a ∈ A ∖ C
( a , a ) ∉ ⟨ ( c , a ) , ( a , c ) ⟩ A 2 = { ( c , a ) , ( a , c ) } . (a,a)\notin\langle(c,a),(a,c)\rangle_{\mathbf{A}^{2}}=\{(c,a),(a,c)\}. ( a , a ) ∈ / ⟨( c , a ) , ( a , c ) ⟩ A 2 = {( c , a ) , ( a , c )} .
The absorbing subuniverse { 0 } \{0\} { 0 } of B : = ( { 0 , 1 } ; ∧ ) \mathbf{B}:=(\{0,1\};\wedge) B := ({ 0 , 1 } ; ∧ ) (Example 13.6) is centrally absorbing, because ( 1 , 1 ) ∉ ⟨ ( 0 , 1 ) , ( 1 , 0 ) ⟩ B 2 = { ( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 0 ) } (1,1)\notin\langle(0,1),(1,0)\rangle_{\mathbf{B}^{2}}=\{(0,0),(0,1),(1,0)\} ( 1 , 1 ) ∈ / ⟨( 0 , 1 ) , ( 1 , 0 ) ⟩ B 2 = {( 0 , 0 ) , ( 0 , 1 ) , ( 1 , 0 )} . △ \triangle △
The next example shows an algebra with an absorbing subuniverse which is not centrally absorbing.
Example 13.45. Let A : = ( { 0 , 1 } ; ∧ , ∨ ) \mathbf{A}:=(\{0,1\};\wedge,\vee) A := ({ 0 , 1 } ; ∧ , ∨ ) be the 2-element lattice (Example 7.5). Note that { 0 } ≤ A \{0\}\leq\mathbf{A} { 0 } ≤ A is absorbing with respect to ∧ \wedge ∧ . However, ⟨ ( 0 , 1 ) , ( 1 , 0 ) ⟩ = { 0 , 1 } 2 \langle(0,1),(1,0)\rangle=\{0,1\}^{2} ⟨( 0 , 1 ) , ( 1 , 0 )⟩ = { 0 , 1 } 2 contains ( 1 , 1 ) (1,1) ( 1 , 1 ) , so { 0 } \{0\} { 0 } is not centrally absorbing. △ \triangle △
The following lemma is the key for proving several transfer principles for centrally absorbing subalgebras.
Lemma 13.46 (Avoiding a subalgebra square). Let A \mathbf{A} A be a finite idempotent algebra , let C ⊲ c e n A C\lhd_{\mathrm{cen}}\mathbf{A} C ⊲ cen A , and let ∅ ≠ E ≤ A \varnothing\ne E\leq\mathbf{A} ∅ = E ≤ A satisfy E ∩ C = ∅ E\cap C=\varnothing E ∩ C = ∅ . Then there exists e ∈ E e\in E e ∈ E such that
L : = ⟨ ( { e } × C ) ∪ ( C × { e } ) ⟩ A 2 L:=\langle(\{e\}\times C)\cup(C\times\{e\})\rangle_{\mathbf{A}^{2}} L := ⟨({ e } × C ) ∪ ( C × { e }) ⟩ A 2 satisfies L ∩ E 2 = ∅ L\cap E^{2}=\varnothing L ∩ E 2 = ∅ .
Proof. Since A \mathbf{A} A is finite, we may choose e ∈ E e\in E e ∈ E such that D : = ⟨ C ∪ { e } ⟩ A D:=\langle C\cup\{e\}\rangle_{\mathbf{A}} D := ⟨ C ∪ { e } ⟩ A is minimal with respect to inclusion among the subalgebras ⟨ C ∪ { e ′ } ⟩ A \langle C\cup\{e'\}\rangle_{\mathbf{A}} ⟨ C ∪ { e ′ } ⟩ A , where e ′ ∈ E e'\in E e ′ ∈ E . Let
L : = ⟨ ( { e } × C ) ∪ ( C × { e } ) ⟩ A 2 . L:=\langle(\{e\}\times C)\cup(C\times\{e\})\rangle_{\mathbf{A}^{2}}. L := ⟨({ e } × C ) ∪ ( C × { e }) ⟩ A 2 . Suppose, for a contradiction, that ( e 1 , e 2 ) ∈ L ∩ E 2 (e_{1},e_{2})\in L\cap E^{2} ( e 1 , e 2 ) ∈ L ∩ E 2 . Define
P : = { y ∈ D ∣ ( x , y ) ∈ L for some x ∈ E } . P:=\{y\in D\mid(x,y)\in L\text{ for some }x\in E\}. P := { y ∈ D ∣ ( x , y ) ∈ L for some x ∈ E } . Since E ≤ A E\leq\mathbf{A} E ≤ A and L ≤ A 2 L\leq\mathbf{A}^{2} L ≤ A 2 , the set P P P is a subalgebra of A \mathbf{A} A . Moreover, P ≤ D P\leq D P ≤ D , since L ≤ D 2 L\leq D^{2} L ≤ D 2 . For every c ∈ C c\in C c ∈ C , we have ( e , c ) ∈ L (e,c)\in L ( e , c ) ∈ L , and hence c ∈ P c\in P c ∈ P . Also e 2 ∈ P e_{2}\in P e 2 ∈ P , since ( e 1 , e 2 ) ∈ L (e_{1},e_{2})\in L ( e 1 , e 2 ) ∈ L . Consequently,
⟨ C ∪ { e 2 } ⟩ A ≤ P ≤ D . \langle C\cup\{e_{2}\}\rangle_{\mathbf{A}}\leq P\leq D. ⟨ C ∪ { e 2 } ⟩ A ≤ P ≤ D . By the choice of e e e , this implies ⟨ C ∪ { e 2 } ⟩ A = D \langle C\cup\{e_{2}\}\rangle_{\mathbf{A}}=D ⟨ C ∪ { e 2 } ⟩ A = D , and therefore e ∈ P e\in P e ∈ P . Thus, there exists e 3 ∈ E e_{3}\in E e 3 ∈ E such that ( e 3 , e ) ∈ L (e_{3},e)\in L ( e 3 , e ) ∈ L . Now define
Q : = { x ∈ D ∣ ( x , e ) ∈ L } . Q:=\{x\in D\mid(x,e)\in L\}. Q := { x ∈ D ∣ ( x , e ) ∈ L } . Since A \mathbf{A} A is idempotent, Q Q Q is a subalgebra of A \mathbf{A} A . It contains C C C , because ( c , e ) ∈ L (c,e)\in L ( c , e ) ∈ L for every c ∈ C c\in C c ∈ C , and it contains e 3 e_{3} e 3 . Hence
⟨ C ∪ { e 3 } ⟩ A ≤ Q ≤ D . \langle C\cup\{e_{3}\}\rangle_{\mathbf{A}}\leq Q\leq D. ⟨ C ∪ { e 3 } ⟩ A ≤ Q ≤ D . Again, the choice of e e e implies ⟨ C ∪ { e 3 } ⟩ A = D \langle C\cup\{e_{3}\}\rangle_{\mathbf{A}}=D ⟨ C ∪ { e 3 } ⟩ A = D . In particular, e ∈ Q e\in Q e ∈ Q , so ( e , e ) ∈ L (e,e)\in L ( e , e ) ∈ L . Since e ∉ C e\notin C e ∈ / C , this contradicts C ⊲ c e n A C\lhd_{\mathrm{cen}}\mathbf{A} C ⊲ cen A . Therefore, L ∩ E 2 = ∅ L\cap E^{2}=\varnothing L ∩ E 2 = ∅ . □ \square □
We have the following transfer principles for centrally absorbing subalgebras.
Lemma 13.47. Let C C C be a congruence of a finite idempotent algebra A \mathbf{A} A . Then
if B ◃ c e n A / C \mathbf{B} \triangleleft_{\mathrm{cen}} \mathbf{A}/C B ◃ cen A / C , then ⋃ B ◃ c e n A \bigcup\mathbf{B} \triangleleft_{\mathrm{cen}} \mathbf{A} ⋃ B ◃ cen A .
if B ◃ c e n A \mathbf{B} \triangleleft_{\mathrm{cen}} \mathbf{A} B ◃ cen A , then B / C ◃ c e n A / C \mathbf{B}/C \triangleleft_{\mathrm{cen}} \mathbf{A}/C B / C ◃ cen A / C .
Proof. For 1., we already know that B ′ : = ⋃ B ◃ A B' := \bigcup B \triangleleft\mathbf{A} B ′ := ⋃ B ◃ A (Lemma 13.12). Let a ∈ A ∖ B ′ a \in A \setminus B' a ∈ A ∖ B ′ . Suppose for contradiction that ( a , a ) ∈ ⟨ { a } × B ′ ∪ B ′ × { a } ⟩ A 2 (a,a) \in\langle\{a\} \times B' \cup B' \times\{a\} \rangle_{\mathbf{A}^2} ( a , a ) ∈ ⟨{ a } × B ′ ∪ B ′ × { a } ⟩ A 2 . Then there are a term t ( x 1 , … , x k , y 1 , … , y l ) t(x_1,\ldots,x_k,y_1,\ldots,y_l) t ( x 1 , … , x k , y 1 , … , y l ) and u 1 , … , u k , v 1 , … , v l ∈ B ′ u_1,\ldots,u_k,v_1,\ldots,v_l \in B' u 1 , … , u k , v 1 , … , v l ∈ B ′ such that
( t A ( a , … , a , v 1 , … , v l ) , t A ( u 1 , … , u k , a , … , a ) ) = ( a , a ) . \left(t^{\mathbf{A}}(a,\ldots,a,v_1,\ldots,v_l),t^{\mathbf{A}}(u_1,\ldots,u_k,a,\ldots,a)\right)=(a,a). ( t A ( a , … , a , v 1 , … , v l ) , t A ( u 1 , … , u k , a , … , a ) ) = ( a , a ) .
Note that a / C ∉ B ′ / C = B a/C \notin B'/C = B a / C ∈ / B ′ / C = B and that
( a / C , u 1 / C ) , … , ( a / C , u k / C ) ∈ { a / C } × B (a/C,u_1/C),\ldots,(a/C,u_k/C) \in\{a/C\} \times B ( a / C , u 1 / C ) , … , ( a / C , u k / C ) ∈ { a / C } × B
( v 1 / C , a / C ) , … , ( v l / C , a / C ) ∈ B × { a / C } (v_1/C,a/C),\ldots,(v_l/C,a/C) \in B \times\{a/C\} ( v 1 / C , a / C ) , … , ( v l / C , a / C ) ∈ B × { a / C }
Thus,
( a / C , a / C ) = ( t A ( a , … , a , v 1 , … , v l ) , t A ( u 1 , … , u k , a , … , a ) ) / C (a/C,a/C)=\left(t^{\mathbf{A}}(a,\ldots,a,v_1,\ldots,v_l),t^{\mathbf{A}}(u_1,\ldots,u_k,a,\ldots,a)\right)/C ( a / C , a / C ) = ( t A ( a , … , a , v 1 , … , v l ) , t A ( u 1 , … , u k , a , … , a ) ) / C
∈ ⟨ { a / C } × B ∪ B × { a / C } ⟩ ( A / C ) 2 \in\langle\{a/C\} \times B \cup B \times\{a/C\} \rangle_{(\mathbf{A}/C)^2} ∈ ⟨{ a / C } × B ∪ B × { a / C } ⟩ ( A / C ) 2
which contradicts the assumption that B ◃ c e n A / C \mathbf{B} \triangleleft_{\mathrm{cen}} \mathbf{A}/C B ◃ cen A / C .
For 2., it follows from Exercise 222 that B / C ◃ A / C \mathbf{B}/C \triangleleft\mathbf{A}/C B / C ◃ A / C . Suppose, for a contradiction, that there is a C C C -class E E E disjoint from B B B such that
( E , E ) ∈ L ′ : = ⟨ { E } × B / C ∪ B / C × { E } ⟩ ( A / C ) 2 . (E,E) \in L' := \langle\{E\} \times B/C \cup B/C \times\{E\} \rangle_{(\mathbf{A}/C)^2}. ( E , E ) ∈ L ′ := ⟨{ E } × B / C ∪ B / C × { E } ⟩ ( A / C ) 2 .
Since A \mathbf{A} A is idempotent, E ≤ A E \leq A E ≤ A . By Lemma 13.46, applied to B B B and E E E , there exists e ∈ E e \in E e ∈ E such that
L : = ⟨ { e } × B ∪ B × { e } ⟩ A 2 L := \langle\{e\} \times B \cup B \times\{e\} \rangle_{\mathbf{A}^2} L := ⟨{ e } × B ∪ B × { e } ⟩ A 2
satisfies L ∩ E 2 = ∅ L \cap E^2 = \varnothing L ∩ E 2 = ∅ . The quotient map sends L L L onto L ′ L' L ′ . Since ( E , E ) ∈ L ′ (E,E) \in L' ( E , E ) ∈ L ′ , we have L ∩ E 2 ≠ ∅ L \cap E^2 \ne\varnothing L ∩ E 2 = ∅ , a contradiction. Therefore, B / C ◃ c e n A / C \mathbf{B}/C \triangleleft_{\mathrm{cen}} \mathbf{A}/C B / C ◃ cen A / C . □
We also have the following powerful transfer theorem; for usual absorption rather than central absorption, this was Exercise 226.
Lemma 13.48. Let B \mathcal{B} B and B ′ \mathcal{B}' B ′ be relational τ \tau τ -structures with the same domain. Suppose that Pol ( B ) = Clo ( A ) \operatorname{Pol}(\mathcal{B}) = \operatorname{Clo}(\mathbf{A}) Pol ( B ) = Clo ( A ) and that R B ′ ◃ c e n R A 3 ≤ A ar ( R ) R^{\mathcal{B}'} \triangleleft_{\mathrm{cen}} R^{\mathbf{A}^3} \leq A^{\operatorname{ar}(R)} R B ′ ◃ cen R A 3 ≤ A ar ( R ) for every R ∈ τ R \in\tau R ∈ τ . Let ϕ ( x 1 , … , x n ) \phi(x_1,\ldots,x_n) ϕ ( x 1 , … , x n ) be a primitive positive τ \tau τ -formula. If R ≤ A n R \leq A^n R ≤ A n is the relation defined by ϕ \phi ϕ in B \mathcal{B} B and R ′ ≤ A n R' \leq A^n R ′ ≤ A n is the relation defined by ϕ \phi ϕ in B ′ \mathcal{B}' B ′ , then R ′ ◃ c e n R R' \triangleleft_{\mathrm{cen}} R R ′ ◃ cen R .
Proof. We need the following three claims, which hold for all algebras A \mathbf{A} A .
Claim 1. If C ◃ c e n A C \triangleleft_{\mathrm{cen}} \mathbf{A} C ◃ cen A , then C × B ◃ c e n A × B C \times B \triangleleft_{\mathrm{cen}} \mathbf{A} \times\mathbf{B} C × B ◃ cen A × B . Clearly, C × B ◃ A × B C \times B \triangleleft\mathbf{A} \times\mathbf{B} C × B ◃ A × B (Exercise 223). Let ( a , b ) ∈ ( A × B ) ∖ ( C × B ) (a,b) \in(A \times B) \setminus(C \times B) ( a , b ) ∈ ( A × B ) ∖ ( C × B ) , so that a ∉ C a \notin C a ∈ / C , and put
L : = ⟨ { ( a , b ) } × ( C × B ) ∪ ( C × B ) × { ( a , b ) } ⟩ ( A × B ) 2 . L := \langle\{(a,b)\} \times(C \times B) \cup(C \times B) \times\{(a,b)\} \rangle_{(\mathbf{A} \times\mathbf{B})^2}. L := ⟨{( a , b )} × ( C × B ) ∪ ( C × B ) × {( a , b )} ⟩ ( A × B ) 2 . Consider the coordinate projection
π 1 , 3 : ( A × B ) 2 → A 2 , π 1 , 3 ( ( x , y ) , ( x ′ , y ′ ) ) : = ( x , x ′ ) . \pi_{1,3} : (\mathbf{A} \times\mathbf{B})^2 \to\mathbf{A}^2,\qquad\pi_{1,3}((x,y),(x',y')) := (x,x'). π 1 , 3 : ( A × B ) 2 → A 2 , π 1 , 3 (( x , y ) , ( x ′ , y ′ )) := ( x , x ′ ) .
This is a homomorphism, and it maps the generating set of L L L onto ( { a } × C ) ∪ ( C × { a } ) \left(\{a\} \times C\right) \cup\left(C \times\{a\}\right) ( { a } × C ) ∪ ( C × { a } ) . Therefore,
π 1 , 3 ( L ) = ⟨ ( { a } × C ) ∪ ( C × { a } ) ⟩ A 2 . \pi_{1,3}(L)=\left\langle\left(\{a\}\times C\right)\cup\left(C\times\{a\}\right)\right\rangle_{\mathbf{A}^{2}}. π 1 , 3 ( L ) = ⟨ ( { a } × C ) ∪ ( C × { a } ) ⟩ A 2 .
If ( ( a , b ) , ( a , b ) ) \left((a,b),(a,b)\right) ( ( a , b ) , ( a , b ) ) belonged to L L L , then its image ( a , a ) (a,a) ( a , a ) would belong to the subalgebra on the right, contradicting C ◃ c e n A C \triangleleft_{\mathrm{cen}} \mathbf{A} C ◃ cen A . Hence C × B ◃ c e n A × B C\times B\triangleleft_{\mathrm{cen}}\mathbf{A}\times B C × B ◃ cen A × B .
Claim 2. If C 1 ◃ c e n A C_{1}\triangleleft_{\mathrm{cen}}\mathbf{A} C 1 ◃ cen A , C 2 ◃ c e n A C_{2}\triangleleft_{\mathrm{cen}}\mathbf{A} C 2 ◃ cen A , then C 1 ∩ C 2 ◃ c e n A C_{1}\cap C_{2}\triangleleft_{\mathrm{cen}}\mathbf{A} C 1 ∩ C 2 ◃ cen A . By Corollary 13.11 we have C 1 ∩ C 2 ◃ A C_{1}\cap C_{2}\triangleleft\mathbf{A} C 1 ∩ C 2 ◃ A . Let a ∈ A ∖ ( C 1 ∩ C 2 ) a\in A\setminus(C_{1}\cap C_{2}) a ∈ A ∖ ( C 1 ∩ C 2 ) . Then a ∉ C i a\notin C_{i} a ∈ / C i for some i ∈ { 1 , 2 } i\in\{1,2\} i ∈ { 1 , 2 } . Since C i ◃ c e n A C_{i}\triangleleft_{\mathrm{cen}}\mathbf{A} C i ◃ cen A , we have
( a , a ) ∉ ⟨ ( { a } × C i ) ∪ ( C i × { a } ) ⟩ A 2 . (a,a)\notin\left\langle\left(\{a\}\times C_{i}\right)\cup\left(C_{i}\times\{a\}\right)\right\rangle_{\mathbf{A}^{2}}. ( a , a ) ∈ / ⟨ ( { a } × C i ) ∪ ( C i × { a } ) ⟩ A 2 . The generating set obtained by replacing C i C_{i} C i with C 1 ∩ C 2 C_{1}\cap C_{2} C 1 ∩ C 2 is contained in the one displayed above. By monotonicity of generated subalgebras,
⟨ ( { a } × ( C 1 ∩ C 2 ) ) ∪ ( ( C 1 ∩ C 2 ) × { a } ) ⟩ A 2 ⊆ ⟨ ( { a } × C i ) ∪ ( C i × { a } ) ⟩ A 2 . \left\langle\left(\{a\}\times(C_{1}\cap C_{2})\right)\cup\left((C_{1}\cap C_{2})\times\{a\}\right)\right\rangle_{\mathbf{A}^{2}}
\subseteq
\left\langle\left(\{a\}\times C_{i}\right)\cup\left(C_{i}\times\{a\}\right)\right\rangle_{\mathbf{A}^{2}}. ⟨ ( { a } × ( C 1 ∩ C 2 ) ) ∪ ( ( C 1 ∩ C 2 ) × { a } ) ⟩ A 2 ⊆ ⟨ ( { a } × C i ) ∪ ( C i × { a } ) ⟩ A 2 . Therefore ( a , a ) (a,a) ( a , a ) is not in the subalgebra on the left, and C 1 ∩ C 2 ◃ c e n A C_{1}\cap C_{2}\triangleleft_{\mathrm{cen}}\mathbf{A} C 1 ∩ C 2 ◃ cen A .
Claim 3. If C ◃ c e n R ≤ A k C\triangleleft_{\mathrm{cen}}R\leq\mathbf{A}^{k} C ◃ cen R ≤ A k and I ⊆ [ k ] I\subseteq[k] I ⊆ [ k ] , then π I ( C ) ◃ c e n π I ( R ) ≤ A I \pi_{I}(C)\triangleleft_{\mathrm{cen}}\pi_{I}(R)\leq\mathbf{A}^{I} π I ( C ) ◃ cen π I ( R ) ≤ A I . Let ∼ \sim ∼ be the congruence defined on A k \mathbf{A}^{k} A k by a 1 ∼ a 2 ⟺ π I ( a 1 ) = π I ( a 2 ) a_{1}\sim a_{2}\Longleftrightarrow\pi_{I}(a_{1})=\pi_{I}(a_{2}) a 1 ∼ a 2 ⟺ π I ( a 1 ) = π I ( a 2 ) . Then the statement follows from the second item in Lemma 13.47.
By Claim 1, we may assume that all relation symbols that appear in φ \varphi φ have the same arity; we may also assume that each conjunct has no repeated entries. Claim 2 then implies that the quantifier-free part of φ \varphi φ defines in B ′ \mathcal{B}' B ′ a relation that centrally absorbs the relation defined by this formula in B \mathcal{B} B . Claim 3 then implies the statement. □
In particular, we obtain the following transfer principle for central absorption; the corresponding transfer result for usual absorption was lemma 13.13.
Corollary 13.49. Let R ≤ A 1 × ⋯ × A n R\leq A_{1}\times\cdots\times A_{n} R ≤ A 1 × ⋯ × A n and B i ◃ c e n A i B_{i}\triangleleft_{\mathrm{cen}} A_{i} B i ◃ cen A i for every i ∈ [ n ] i\in[n] i ∈ [ n ] . Then
R ∩ ( B 1 × ⋯ × B n ) ◃ c e n R . R\cap(B_{1}\times\cdots\times B_{n})\triangleleft_{\mathrm{cen}}R. R ∩ ( B 1 × ⋯ × B n ) ◃ cen R . Proof. Immediate from Lemma 13.48 (see Proposition 7.21). □
A more subtle source of centrally absorbing subalgebras is the following proposition.
Lemma 13.50. Let A \mathbf{A} A and B \mathbf{B} B be finite idempotent algebras such that B \mathbf{B} B is Taylor and has no proper 2 2 2 -absorbing subuniverses. Let R ≤ A × B R\leq\mathbf{A}\times\mathbf{B} R ≤ A × B with left center C C C be such that π 1 ( R ) = A \pi_{1}(R)=A π 1 ( R ) = A . Then C ◃ c e n A C\triangleleft_{\mathrm{cen}}\mathbf{A} C ◃ cen A .
Proof. By Corollary 13.31 we have that C ◃ A C\triangleleft\mathbf{A} C ◃ A . If C C C is not centrally absorbing, then for some n , m ∈ N n,m\in\mathbb{N} n , m ∈ N there exists a ∈ A ∖ C a\in A\setminus C a ∈ A ∖ C and a term operation t t t of A \mathbf{A} A of arity n + m n+m n + m and c 1 , … , c m , d 1 , … , d n ∈ C c_{1},\ldots,c_{m},d_{1},\ldots,d_{n}\in C c 1 , … , c m , d 1 , … , d n ∈ C such that
t ( a , … , a , c 1 , … , c m ) = a = t ( d 1 , … , d n , a , … , a ) . t(a,\ldots,a,c_{1},\ldots,c_{m})=a=t(d_{1},\ldots,d_{n},a,\ldots,a). t ( a , … , a , c 1 , … , c m ) = a = t ( d 1 , … , d n , a , … , a ) . Note that { a } + R \{a\}+R { a } + R (using the terminology from Exercise 224) is a proper subalgebra of B \mathbf{B} B : we have { a } + R ≠ B \{a\}+R\neq B { a } + R = B because a ∉ C a\notin C a ∈ / C , and { a } + R ≠ ∅ \{a\}+R\neq\varnothing { a } + R = ∅ by assumption. Moreover, { a } + R \{a\}+R { a } + R is 2 2 2 -absorbing with respect to f f f given by
f ( x , y ) : = t ( x , … , x ⏟ n , y , … , y ⏟ m ) : f(x,y):=t\left(\underbrace{x,\ldots,x}_{n},\underbrace{y,\ldots,y}_{m}\right): f ( x , y ) := t ( n x , … , x , m y , … , y ) :
if b ∈ { a } + R b \in\{a\} + R b ∈ { a } + R and u ∈ B u \in B u ∈ B , note that ( c 1 , u ) , … , ( c m , u ) ∈ R (c_1,u),\ldots,(c_m,u) \in R ( c 1 , u ) , … , ( c m , u ) ∈ R and ( a , b ) ∈ R (a,b) \in R ( a , b ) ∈ R , and hence
f ( b , u ) = t ( b , … , b , u , … , u ) f(b,u)=t(b,\ldots,b,u,\ldots,u) f ( b , u ) = t ( b , … , b , u , … , u )
∈ { t ( a , … , a , c 1 , … , c m ) } + R = { a } + R . \in\{t(a,\ldots,a,c_1,\ldots,c_m)\}+R=\{a\}+R. ∈ { t ( a , … , a , c 1 , … , c m )} + R = { a } + R .
Similarly, f ( u , b ) = t ( u , … , u , b , … , b ) ∈ { t ( d 1 , … , d n , a , … , a ) } + R = { a } + R f(u,b)=t(u,\ldots,u,b,\ldots,b)\in\{t(d_1,\ldots,d_n,a,\ldots,a)\}+R=\{a\}+R f ( u , b ) = t ( u , … , u , b , … , b ) ∈ { t ( d 1 , … , d n , a , … , a )} + R = { a } + R . This contradicts the assumption that B \mathbf{B} B has no proper 2-absorbing subuniverses.
Interestingly, centrally absorbing subalgebras are 3-absorbing (Theorem 13.55). To prove this, we use essential relations. Recall that m m m -absorbing subalgebras B \mathbf{B} B imply the absence of B B B -essential relations of arity at most m m m (Lemma 13.20). As we will see in Proposition 13.56, centrally absorbing subalgebras B 1 , … , B k \mathbf{B}_1,\ldots,\mathbf{B}_k B 1 , … , B k even imply the absence of k k k -ary relations, for k ≥ 3 k\geq3 k ≥ 3 , that are essential in the following generalised (multisorted) sense.
Definition 13.51. Let A 1 , … , A k \mathbf{A}_1,\ldots,\mathbf{A}_k A 1 , … , A k be algebras with the same signature and for i ∈ [ k ] i\in[k] i ∈ [ k ] let B i ≤ A i B_i\leq A_i B i ≤ A i . Then R ≤ A 1 × ⋯ × A k R\leq\mathbf{A}_1\times\cdots\times\mathbf{A}_k R ≤ A 1 × ⋯ × A k is called ( B 1 , … , B k ) (B_1,\ldots,B_k) ( B 1 , … , B k ) -essential if
R ∩ ( B 1 × ⋯ × B i − 1 × A i × B i + 1 × ⋯ × B k ) ≠ ∅ R\cap(B_1\times\cdots\times B_{i-1}\times A_i\times B_{i+1}\times\cdots\times B_k)\ne\varnothing R ∩ ( B 1 × ⋯ × B i − 1 × A i × B i + 1 × ⋯ × B k ) = ∅ for all i ∈ [ k ] i\in[k] i ∈ [ k ] , but
R ∩ ( B 1 × ⋯ × B k ) = ∅ . R\cap(B_1\times\cdots\times B_k)=\varnothing. R ∩ ( B 1 × ⋯ × B k ) = ∅ .
The following is immediate from the definition.
Lemma 13.52. If R ≤ A 1 × ⋯ × A k R\leq\mathbf{A}_1\times\cdots\times\mathbf{A}_k R ≤ A 1 × ⋯ × A k is ( B 1 , … , B k ) (B_1,\ldots,B_k) ( B 1 , … , B k ) -essential, and i ∈ [ k ] i\in[k] i ∈ [ k ] , then the ( k − 1 ) (k-1) ( k − 1 ) -ary relation
R ∖ i : = π [ k ] ∖ { i } ( R ∩ ( A 1 × ⋯ × A i − 1 × B i × A i + 1 × ⋯ × A k ) ) R_{\setminus i}:=\pi_{[k]\setminus\{i\}}\left(R\cap(\mathbf{A}_1\times\cdots\times\mathbf{A}_{i-1}\times B_i\times\mathbf{A}_{i+1}\times\cdots\times\mathbf{A}_k)\right) R ∖ i := π [ k ] ∖ { i } ( R ∩ ( A 1 × ⋯ × A i − 1 × B i × A i + 1 × ⋯ × A k ) ) is ( B 1 , … , B i − 1 , B i + 1 , … , B k ) (B_1,\ldots,B_{i-1},B_{i+1},\ldots,B_k) ( B 1 , … , B i − 1 , B i + 1 , … , B k ) -essential.
The following lemma is from [113, Lemma 6.10].
Lemma 13.53 (Essential doubling, multisorted version). Let A 1 , … , A k \mathbf{A}_1,\ldots,\mathbf{A}_k A 1 , … , A k , for k ≥ 2 k\geq2 k ≥ 2 , be finite idempotent algebras with the same signature. Let B 1 ◃ c e n A 1 , … , B k ◃ c e n A k B_1\mathrel{\triangleleft_{\mathrm{cen}}} A_1,\ldots,B_k\mathrel{\triangleleft_{\mathrm{cen}}} A_k B 1 ◃ cen A 1 , … , B k ◃ cen A k , and let R ≤ A 1 × ⋯ × A k R\leq\mathbf{A}_1\times\cdots\times\mathbf{A}_k R ≤ A 1 × ⋯ × A k be ( B 1 , … , B k ) (B_1,\ldots,B_k) ( B 1 , … , B k ) -essential. Then there exists a ( B 1 , … , B k − 1 , B 1 , … , B k − 1 ) (B_1,\ldots,B_{k-1},B_1,\ldots,B_{k-1}) ( B 1 , … , B k − 1 , B 1 , … , B k − 1 ) -essential relation R ′ ≤ A 1 × ⋯ × A k − 1 × A 1 × ⋯ × A k − 1 R'\leq\mathbf{A}_1\times\cdots\times\mathbf{A}_{k-1}\times\mathbf{A}_1\times\cdots\times\mathbf{A}_{k-1} R ′ ≤ A 1 × ⋯ × A k − 1 × A 1 × ⋯ × A k − 1 .
Proof. Define E : = π k ( R ∩ ( B 1 × ⋯ × B k − 1 × A k ) ) E:=\pi_k(R\cap(B_1\times\cdots\times B_{k-1}\times A_k)) E := π k ( R ∩ ( B 1 × ⋯ × B k − 1 × A k )) . The relation R ∩ ( B 1 × ⋯ × B k − 1 × A k ) R\cap(B_1\times\cdots\times B_{k-1}\times A_k) R ∩ ( B 1 × ⋯ × B k − 1 × A k ) is a subalgebra of A 1 × ⋯ × A k \mathbf{A}_1\times\cdots\times\mathbf{A}_k A 1 × ⋯ × A k , and hence E ≤ A k E\leq A_k E ≤ A k . Moreover, E ≠ ∅ E\ne\varnothing E = ∅ , since R R R is ( B 1 , … , B k ) (B_1,\ldots,B_k) ( B 1 , … , B k ) -essential. We also have E ∩ B k = ∅ E\cap B_k=\varnothing E ∩ B k = ∅ . Indeed, if e ∈ E ∩ B k e\in E\cap B_k e ∈ E ∩ B k , then the definition of E E E yields ( b 1 , … , b k − 1 , e ) ∈ R (b_1,\ldots,b_{k-1},e)\in R ( b 1 , … , b k − 1 , e ) ∈ R for some b i ∈ B i b_i\in B_i b i ∈ B i . This would imply R ∩ ( B 1 × ⋯ × B k ) ≠ ∅ R\cap(B_1\times\cdots\times B_k)\ne\varnothing R ∩ ( B 1 × ⋯ × B k ) = ∅ , contrary to the essentiality of R R R .
We may therefore apply Lemma 13.46 to A k A_k A k , B k B_k B k , and E E E . It yields an element e ∈ E e\in E e ∈ E such that
L : = ⟨ ( { e } × B k ) ∪ ( B k × { e } ) ⟩ A k 2 L:=\langle(\{e\}\times B_k)\cup(B_k\times\{e\})\rangle_{A_k^2} L := ⟨({ e } × B k ) ∪ ( B k × { e }) ⟩ A k 2
satisfies L ∩ E 2 = ∅ L\cap E^2=\varnothing L ∩ E 2 = ∅ . Let
R ′ ≤ A 1 × ⋯ × A k − 1 × A 1 × ⋯ × A k − 1 R'\leq\mathbf{A}_1\times\cdots\times\mathbf{A}_{k-1}\times\mathbf{A}_1\times\cdots\times\mathbf{A}_{k-1} R ′ ≤ A 1 × ⋯ × A k − 1 × A 1 × ⋯ × A k − 1
be given as the set of all tuples ( x 1 , … , x k − 1 , y 1 , … , y k − 1 ) (x_1,\ldots,x_{k-1},y_1,\ldots,y_{k-1}) ( x 1 , … , x k − 1 , y 1 , … , y k − 1 ) that satisfy
∃ x k , y k ( R ( x 1 , … , x k ) ∧ L ( x k , y k ) ∧ R ( y 1 , … , y k ) ) . (58) \exists x_k,y_k\left(R(x_1,\ldots,x_k)\land L(x_k,y_k)\land R(y_1,\ldots,y_k)\right). \tag*{(58)} ∃ x k , y k ( R ( x 1 , … , x k ) ∧ L ( x k , y k ) ∧ R ( y 1 , … , y k ) ) . (58)
We verify that R ′ R' R ′ is ( B 1 , … , B k − 1 , B 1 , … , B k − 1 ) (B_1,\ldots,B_{k-1},B_1,\ldots,B_{k-1}) ( B 1 , … , B k − 1 , B 1 , … , B k − 1 ) -essential. First note that L ∩ E 2 = ∅ L\cap E^2=\varnothing L ∩ E 2 = ∅ implies that R ′ ∩ ( B 1 × ⋯ × B k − 1 × B 1 × ⋯ × B k − 1 ) = ∅ R'\cap(B_1\times\cdots\times B_{k-1}\times B_1\times\cdots\times B_{k-1})=\varnothing R ′ ∩ ( B 1 × ⋯ × B k − 1 × B 1 × ⋯ × B k − 1 ) = ∅ . Next, for i ∈ [ k − 1 ] i\in[k-1] i ∈ [ k − 1 ] we need to show that
R ′ ∩ ( B 1 × ⋯ × B i − 1 × A i × B i + 1 × ⋯ × B k − 1 × B 1 × ⋯ × B k − 1 ) ≠ ∅ . (59) R'\cap(B_1\times\cdots\times B_{i-1}\times A_i\times B_{i+1}\times\cdots\times B_{k-1}\times B_1\times\cdots\times B_{k-1})\ne\varnothing. \tag*{(59)} R ′ ∩ ( B 1 × ⋯ × B i − 1 × A i × B i + 1 × ⋯ × B k − 1 × B 1 × ⋯ × B k − 1 ) = ∅ . (59)
We may choose ( x 1 , … , x k ) ∈ R ∩ ( B 1 × ⋯ × B i − 1 × A i × B i + 1 × ⋯ × B k ) (x_1,\ldots,x_k)\in R\cap(B_1\times\cdots\times B_{i-1}\times A_i\times B_{i+1}\times\cdots\times B_k) ( x 1 , … , x k ) ∈ R ∩ ( B 1 × ⋯ × B i − 1 × A i × B i + 1 × ⋯ × B k ) , because R R R is ( B 1 , … , B k ) (B_1,\ldots,B_k) ( B 1 , … , B k ) -essential. We may also choose ( y 1 , … , y k ) ∈ R ∩ ( B 1 × ⋯ × B k − 1 × { e } ) (y_1,\ldots,y_k)\in R\cap(B_1\times\cdots\times B_{k-1}\times\{e\}) ( y 1 , … , y k ) ∈ R ∩ ( B 1 × ⋯ × B k − 1 × { e }) since e ∈ E e\in E e ∈ E . Note that ( x k , y k ) = ( x k , e ) ∈ L (x_k,y_k)=(x_k,e)\in L ( x k , y k ) = ( x k , e ) ∈ L , so ( x 1 , … , x k , y 1 , … , y k ) (x_1,\ldots,x_k,y_1,\ldots,y_k) ( x 1 , … , x k , y 1 , … , y k ) satisfies the quantifier-free part of (55), which proves (56). If i ∈ { k , … , 2 k − 2 } i\in\{k,\ldots,2k-2\} i ∈ { k , … , 2 k − 2 } , we set j : = i − k + 1 j:=i-k+1 j := i − k + 1 and show analogously that
R ′ ∩ ( B 1 × ⋯ × B k − 1 × B 1 × ⋯ × B j − 1 × A j × B j + 1 × ⋯ × B k − 1 ) ≠ ∅ . R'\cap(B_1\times\cdots\times B_{k-1}\times B_1\times\cdots\times B_{j-1}\times A_j\times B_{j+1}\times\cdots\times B_{k-1})\ne\varnothing. R ′ ∩ ( B 1 × ⋯ × B k − 1 × B 1 × ⋯ × B j − 1 × A j × B j + 1 × ⋯ × B k − 1 ) = ∅ .
This proves that R ′ R' R ′ is ( B 1 , … , B k − 1 , B 1 , … , B k − 1 ) (B_1,\ldots,B_{k-1},B_1,\ldots,B_{k-1}) ( B 1 , … , B k − 1 , B 1 , … , B k − 1 ) -essential.
Corollary 13.54 (Essential doubling, one-sorted version). Let A A A be a finite idempotent and let C ◃ c e n A C\mathrel{\triangleleft_{\mathrm{cen}}} A C ◃ cen A . Suppose that R ≤ A k R\le A^k R ≤ A k , for k ≥ 3 k\ge3 k ≥ 3 , is C C C -essential. Then there exists R ′ ≤ A 2 k − 2 R'\le A^{2k-2} R ′ ≤ A 2 k − 2 which is C C C -essential.
Proof. Immediate from Lemma 13.53 by taking all algebras and all centrally absorbing subalgebras equal.
Theorem 13.55. Let A A A be a finite idempotent algebra such that C ◃ c e n A C\mathrel{\triangleleft_{\mathrm{cen}}} A C ◃ cen A . Then C C C 3-absorbs A A A .
Proof. Suppose for contradiction that C C C does not 3-absorb A A A . Then there exists a C C C -essential relation R ≤ A 3 R\le A^3 R ≤ A 3 by Theorem 13.23 . Applying Corollary 13.54 sufficiently many times we may obtain C C C -essential relations of arbitrarily large arity. Then Theorem 13.23 (combined with Remark 13.2) implies that C C C is not absorbing, contrary to our assumptions.
Proposition 13.56. Let A 1 , … , A k A_1,\ldots,A_k A 1 , … , A k be finite idempotent algebras and suppose that B 1 ◃ c e n A 1 , … , B k ◃ c e n A k B_1\mathrel{\triangleleft_{\mathrm{cen}}} A_1,\ldots,B_k\mathrel{\triangleleft_{\mathrm{cen}}} A_k B 1 ◃ cen A 1 , … , B k ◃ cen A k and k ≥ 3 k\ge3 k ≥ 3 . Then there are no ( B 1 , … , B k ) (B_1,\ldots,B_k) ( B 1 , … , B k ) -essential relations R ≤ A 1 × ⋯ × A k R\le A_1\times\cdots\times A_k R ≤ A 1 × ⋯ × A k .
Proof. Suppose for contradiction that R ≤ A 1 × ⋯ × A k R\le A_1\times\cdots\times A_k R ≤ A 1 × ⋯ × A k is ( B 1 , … , B k ) (B_1,\ldots,B_k) ( B 1 , … , B k ) -essential. By repeatedly applying Lemma 13.52 we find a ternary ( B 1 , B 2 , B 3 ) (B_1,B_2,B_3) ( B 1 , B 2 , B 3 ) -essential relation. By Lemma 13.53 , there is a ( B 1 , B 2 , B 1 , B 2 ) (B_1,B_2,B_1,B_2) ( B 1 , B 2 , B 1 , B 2 ) -essential relation, and by Lemma 13.52 applied with i = 2 i=2 i = 2 there is a ( B 1 , B 1 , B 2 ) (B_1,B_1,B_2) ( B 1 , B 1 , B 2 ) -essential relation. Finally, another application of Lemma 13.53 gives us a ( B 1 , B 1 , B 1 , B 1 ) (B_1,B_1,B_1,B_1) ( B 1 , B 1 , B 1 , B 1 ) -essential relation. By applying Lemma 13.53 sufficiently many times, we obtain B 1 B_1 B 1 -essential relations of arbitrarily large arity. This contradicts the assumption that B 1 ◃ A 1 B_1\triangleleft A_1 B 1 ◃ A 1 by Lemma 13.20 combined with Remark 13.2.
We use this property to prove the so-called k k k -Helly property for centrally absorbing subalgebras.
Corollary 13.57. Let A A A be a finite idempotent algebra. For k ≥ 3 k\ge3 k ≥ 3 , let B 1 , … , B k ◃ c e n A B_1,\ldots,B_k\mathrel{\triangleleft_{\mathrm{cen}}} A B 1 , … , B k ◃ cen A be such that ⋂ i ∈ [ k ] ∖ { j } B i ≠ ∅ \bigcap_{i\in[k]\setminus\{j\}}B_i\ne\varnothing ⋂ i ∈ [ k ] ∖ { j } B i = ∅ for every j ∈ [ k ] j\in[k] j ∈ [ k ] . Then ⋂ i ∈ [ k ] B i ≠ ∅ \bigcap_{i\in[k]}B_i\ne\varnothing ⋂ i ∈ [ k ] B i = ∅ .
Proof. Suppose for contradiction that B 1 ∩ ⋯ ∩ B k = ∅ B_1 \cap\cdots\cap B_k = \varnothing B 1 ∩ ⋯ ∩ B k = ∅ . Let R ≤ A k R \leq A^k R ≤ A k be the relation { ( a , … , a ) ∣ a ∈ A } \{(a,\ldots,a) \mid a \in A\} {( a , … , a ) ∣ a ∈ A } . Then
R ∩ ( A × B 2 × ⋯ × B k ) = { ( a , … , a ) ∣ a ∈ B 2 ∩ ⋯ ∩ B k } ≠ ∅ , ⋯ R ∩ ( B 1 × ⋯ × B k − 1 × A ) = { ( a , … , a ) ∣ a ∈ B 1 ∩ ⋯ ∩ B k − 1 } ≠ ∅ , R ∩ ( B 1 × ⋯ × B k ) = { ( a , … , a ) ∣ a ∈ B 1 ∩ ⋯ ∩ B k } = ∅ \begin{aligned}
R \cap(A \times B_2 \times\cdots\times B_k) &= \{(a,\ldots,a) \mid a \in B_2 \cap\cdots\cap B_k\} \ne\varnothing,\\
&\cdots\\
R \cap(B_1 \times\cdots\times B_{k-1} \times A) &= \{(a,\ldots,a) \mid a \in B_1 \cap\cdots\cap B_{k-1}\} \ne\varnothing,\\
R \cap(B_1 \times\cdots\times B_k) &= \{(a,\ldots,a) \mid a \in B_1 \cap\cdots\cap B_k\} = \varnothing
\end{aligned} R ∩ ( A × B 2 × ⋯ × B k ) R ∩ ( B 1 × ⋯ × B k − 1 × A ) R ∩ ( B 1 × ⋯ × B k ) = {( a , … , a ) ∣ a ∈ B 2 ∩ ⋯ ∩ B k } = ∅ , ⋯ = {( a , … , a ) ∣ a ∈ B 1 ∩ ⋯ ∩ B k − 1 } = ∅ , = {( a , … , a ) ∣ a ∈ B 1 ∩ ⋯ ∩ B k } = ∅
and hence R R R is ( B 1 , … , B k ) (B_1,\ldots,B_k) ( B 1 , … , B k ) -essential, so by Proposition 13.56 one of B 1 , … , B k B_1,\ldots,B_k B 1 , … , B k is not centrally absorbing. □
Combining these results with the proof from § 14.4 , we obtain a strengthened form of the Absorption Theorem (Theorem 13.36 ).
Theorem 13.58. Let A \mathbf A A and B \mathbf B B be finite idempotent algebras with the same signature such that B \mathbf B B is Taylor. Then for every linked and subdirect R ≤ A × B R \leq\mathbf A \times\mathbf B R ≤ A × B one of the following is true:
R = A × B R = A \times B R = A × B ;
A \mathbf A A or B \mathbf B B has a proper binary or centrally absorbing subuniverse.
Proof. Suppose that R ≠ A × B R \ne A \times B R = A × B , because otherwise item 1 of the theorem holds and we are done. Let C C C be the left centre of R R R . Note that C ≠ A C \ne A C = A because R ≠ A × B R \ne A \times B R = A × B .
Suppose that B \mathbf B B does not have a proper binary absorbing subuniverse. Then Corollary 13.31 implies that C ⊲ A C \lhd\mathbf A C ⊲ A . If C C C is non-empty, then by Lemma 13.50 we have found a proper centrally absorbing subuniverse of A \mathbf A A .
Otherwise, suppose that C = ∅ C = \varnothing C = ∅ . Then the first alternative of Proposition 13.35 does not apply, and hence there exists a subdirect relation R ′ ≤ B 2 R' \leq\mathbf B^2 R ′ ≤ B 2 whose left centre C ′ C' C ′ is a proper subuniverse of B \mathbf B B . Applying Lemma 13.50 to R ′ R' R ′ , with both algebras equal to B \mathbf B B , shows that C ′ ⊲ c e n B C' \lhd_{\mathrm{cen}} \mathbf B C ′ ⊲ cen B . □
:::
Exercise 241. Show that Corollary 13.57 fails for k = 2 k = 2 k = 2 .
Exercise 242. Determine the centrally absorbing subalgebras of the algebra A k : = ( { 0 , 1 } ; f k ) A_k := (\{0,1\}; f_k) A k := ({ 0 , 1 } ; f k ) from Example 6.34, for all k ≥ 3 k \geq3 k ≥ 3 .
Exercise 243. Let B \mathbf B B be a finite algebra. Prove that the following are equivalent.
B \mathbf B B has a majority term;
every set of the form { b } \{b\} { b } , for b ∈ B b \in B b ∈ B , is a centrally absorbing subuniverse of B \mathbf B B .
Paper, Scissors, Stone
This section describes a fundamental example of a three-element algebra A \mathbf A A which shows some interesting behaviour and which provides important intuition for the abstract results in the following sections. On the one hand, it is absorption-free, but on the other hand it is not hereditarily absorption-free.
Definition 13.59 (Paper-Scissors-Stone algebra). Let A \mathbf{A} A be the algebra with the domain A : = { 0 , 1 , 2 } A := \{0,1,2\} A := { 0 , 1 , 2 } and let ⋅ : A 2 → A \mathord{\cdot}: A^2 \to A ⋅ : A 2 → A be the binary operation given by the multiplication table on the right.
Note that A \mathbf{A} A has the automorphism
ρ : x ↦ x + 1 ( m o d 3 ) . \rho: x \mapsto x+1 \pmod{3}. ρ : x ↦ x + 1 ( mod 3 ) .
Let C 3 : = { ( a , ρ ( a ) ) ∣ a ∈ A } C_3 := \{(a,\rho(a)) \mid a \in A\} C 3 := {( a , ρ ( a )) ∣ a ∈ A } be the binary relation on A A A which denotes the graph of ρ \rho ρ . All three 2-element subsets of A A A are subuniverses of the algebra A = ( A ; ⋅ ) \mathbf{A}=(A;\mathord{\cdot}) A = ( A ; ⋅ ) , and in each of the corresponding subalgebras the operation ⋅ \mathord{\cdot} ⋅ denotes a semilattice operation; however, ⋅ \mathord{\cdot} ⋅ itself is not a semilattice operation. We will see below (see Remark 13.64) that none of the proper subalgebras of A \mathbf{A} A is absorbing. However, { 1 } \{1\} { 1 } is a proper absorbing subuniverse of the subalgebra of A \mathbf{A} A with domain { 0 , 1 } \{0,1\} { 0 , 1 } , so A \mathbf{A} A is not HAF, and in particular not Abelian by Theorem 13.41. Note that for any a , b ∈ A a,b\in A a , b ∈ A
( a ⋅ ρ − 1 ( b ) ) ⋅ b = b . (60) (a\mathord{\cdot}\rho^{-1}(b))\mathord{\cdot}b=b. \tag*{(60)} ( a ⋅ ρ − 1 ( b )) ⋅ b = b . (60)
The algebra A \mathbf{A} A is simple. Indeed, if C C C is a congruence which contains ( 0 , 1 ) (0,1) ( 0 , 1 ) , then it must also contain ( 0 , 1 ) ⋅ ( 2 , 2 ) = ( 0 , 2 ) (0,1)\mathord{\cdot}(2,2)=(0,2) ( 0 , 1 ) ⋅ ( 2 , 2 ) = ( 0 , 2 ) , and therefore also ( 1 , 0 ) (1,0) ( 1 , 0 ) and ( 2 , 0 ) (2,0) ( 2 , 0 ) by symmetry. By similar reasoning we conclude that C = A 2 C=A^2 C = A 2 , which shows that A \mathbf{A} A has no proper congruences.
We first present an interesting relational description of Clo ( A ) \operatorname{Clo}(\mathbf{A}) Clo ( A ) . Note that Inv ( A ) \operatorname{Inv}(\mathbf{A}) Inv ( A ) also contains the relation
R 3 − : = { ( x , y , z ) ∈ A 3 ∣ x ∈ { 0 , 1 } ∧ ( x = 0 ⇒ y = z ) } . R_3^- := \{(x,y,z)\in A^3 \mid x\in\{0,1\}\land(x=0\Rightarrow y=z)\}. R 3 − := {( x , y , z ) ∈ A 3 ∣ x ∈ { 0 , 1 } ∧ ( x = 0 ⇒ y = z )} .
The relation R 3 − ≤ A 3 R_3^- \leq A^3 R 3 − ≤ A 3 is not subdirect, because the first argument cannot take value 2.
Lemma 13.60. Let R ≤ A n R\leq A^n R ≤ A n , for n ≥ 1 n\geq1 n ≥ 1 , be subdirect. Then R R R can be defined by a conjunction of atomic formulas over ( A ; C 3 ) (A;C_3) ( A ; C 3 ) .
Proof. Our proof is by induction on n n n . For n = 1 n=1 n = 1 we have R = A R=A R = A and hence R R R can be defined by x = x x=x x = x . If n = 2 n=2 n = 2 , then R R R is the graph of an automorphism of A \mathbf{A} A or linked, because A \mathbf{A} A is simple (Exercise 232). In the first case, either C 3 ( x , y ) C_3(x,y) C 3 ( x , y ) , C 3 ( y , x ) C_3(y,x) C 3 ( y , x ) , or x = y x=y x = y defines R R R , and we are done, so let us assume that R R R is linked.
Claim. R = A 2 R=A^2 R = A 2 . Indeed, if ( u , v ) ∈ A 2 (u,v)\in A^2 ( u , v ) ∈ A 2 , then the linkedness of R R R implies that ( u , v ) ∈ R (u,v)\in R ( u , v ) ∈ R or there exists a path p 1 , … , p 2 k ∈ A p_1,\ldots,p_{2k}\in A p 1 , … , p 2 k ∈ A for k ≥ 1 k\geq1 k ≥ 1 such that ( u , p 1 ) , ( p 2 , p 1 ) , ( p 2 , p 3 ) , … , ( p 2 k , v ) ∈ R (u,p_1),(p_2,p_1),(p_2,p_3),\ldots,(p_{2k},v)\in R ( u , p 1 ) , ( p 2 , p 1 ) , ( p 2 , p 3 ) , … , ( p 2 k , v ) ∈ R . In the first case there is nothing to be shown. Otherwise, choose k k k as small as possible. If k = 1 k=1 k = 1 , we may assume that p 2 ≠ u p_2\ne u p 2 = u and p 1 ≠ v p_1\ne v p 1 = v , because otherwise we are in the first case. Let a , b ∈ A a,b\in A a , b ∈ A be such that { u , p 2 , a } = A = { v , p 1 , b } \{u,p_2,a\}=A=\{v,p_1,b\} { u , p 2 , a } = A = { v , p 1 , b } . Since R R R is subdirect, there exist a ′ , b ′ ∈ A a',b'\in A a ′ , b ′ ∈ A such that ( a , a ′ ) , ( b ′ , b ) ∈ R (a,a'),(b',b)\in R ( a , a ′ ) , ( b ′ , b ) ∈ R .
Note that ( u , p 1 ) ⋅ ( p 2 , v ) ∈ { ( u , v ) , ( u , p 1 ) , ( p 2 , p 1 ) , ( p 2 , v ) } (u,p_1)\mathord{\cdot}(p_2,v)\in\{(u,v),(u,p_1),(p_2,p_1),(p_2,v)\} ( u , p 1 ) ⋅ ( p 2 , v ) ∈ {( u , v ) , ( u , p 1 ) , ( p 2 , p 1 ) , ( p 2 , v )} . If ( u , p 1 ) ⋅ ( p 2 , v ) = ( u , v ) (u,p_1)\mathord{\cdot}(p_2,v)=(u,v) ( u , p 1 ) ⋅ ( p 2 , v ) = ( u , v ) then ( u , v ) ∈ R (u,v)\in R ( u , v ) ∈ R , contrary to the minimal choice of k k k . If ( u , p 1 ) ⋅ ( p 2 , v ) = ( p 2 , v ) (u,p_1)\mathord{\cdot}(p_2,v)=(p_2,v) ( u , p 1 ) ⋅ ( p 2 , v ) = ( p 2 , v ) , we consider the following subcases.
a ′ = v a'=v a ′ = v . Then ( a , a ′ ) ⋅ ( u , p 1 ) = ( u , a ′ ) = ( u , v ) ∈ R (a,a')\mathord{\cdot}(u,p_1)=(u,a')=(u,v)\in R ( a , a ′ ) ⋅ ( u , p 1 ) = ( u , a ′ ) = ( u , v ) ∈ R , contradiction.
a ′ = p 1 a'=p_1 a ′ = p 1 . Then ( a , a ′ ) ⋅ ( p 2 , v ) = ( a , v ) ∈ R (a,a')\mathord{\cdot}(p_2,v)=(a,v)\in R ( a , a ′ ) ⋅ ( p 2 , v ) = ( a , v ) ∈ R , and we are in the first subcase.
a ′ = b a' = b a ′ = b . Then ( a , a ′ ) ⋅ ( p 2 , p 1 ) = ( a , p 1 ) ∈ R (a,a') \cdot(p_2,p_1) = (a,p_1) \in R ( a , a ′ ) ⋅ ( p 2 , p 1 ) = ( a , p 1 ) ∈ R and we are in the second subcase.
The case that ( u , p 1 ) ⋅ ( p 2 , v ) = ( u , p 1 ) (u,p_1) \cdot(p_2,v) = (u,p_1) ( u , p 1 ) ⋅ ( p 2 , v ) = ( u , p 1 ) is similar. Finally, suppose that ( u , p 1 ) ⋅ ( p 2 , v ) = ( p 2 , p 1 ) (u,p_1) \cdot(p_2,v) = (p_2,p_1) ( u , p 1 ) ⋅ ( p 2 , v ) = ( p 2 , p 1 ) . Again, we break into subcases.
a ′ = v a' = v a ′ = v and b ′ = u b' = u b ′ = u . Then ( a , a ′ ) ⋅ ( b ′ , b ) = ( u , v ) ∈ R (a,a') \cdot(b',b) = (u,v) \in R ( a , a ′ ) ⋅ ( b ′ , b ) = ( u , v ) ∈ R , a contradiction.
a ′ = p 1 a' = p_1 a ′ = p 1 and b ′ = p 2 b' = p_2 b ′ = p 2 . Then ( a , a ′ ) ⋅ ( b ′ , b ) = ( a , b ) (a,a') \cdot(b',b) = (a,b) ( a , a ′ ) ⋅ ( b ′ , b ) = ( a , b ) and ( a , b ) ⋅ ( p 2 , v ) = ( a , v ) ∈ R (a,b) \cdot(p_2,v) = (a,v) \in R ( a , b ) ⋅ ( p 2 , v ) = ( a , v ) ∈ R . Moreover, ( u , p 1 ) ⋅ ( a , b ) = ( u , b ) ∈ R (u,p_1) \cdot(a,b) = (u,b) \in R ( u , p 1 ) ⋅ ( a , b ) = ( u , b ) ∈ R . Hence, ( a , v ) ⋅ ( u , b ) = ( u , v ) ∈ R (a,v) \cdot(u,b) = (u,v) \in R ( a , v ) ⋅ ( u , b ) = ( u , v ) ∈ R , and we are done.
a ′ = v a' = v a ′ = v and b ′ = p 2 b' = p_2 b ′ = p 2 . Then ( p 2 , p 1 ) ⋅ ( a , a ′ ) = ( a , p 1 ) ∈ R (p_2,p_1) \cdot(a,a') = (a,p_1) \in R ( p 2 , p 1 ) ⋅ ( a , a ′ ) = ( a , p 1 ) ∈ R and we are in subcase 2.
a ′ = p 1 a' = p_1 a ′ = p 1 and b ′ = u b' = u b ′ = u . Then ( b ′ , b ) ⋅ ( p 2 , p 1 ) = ( p 2 , b ) ∈ R (b',b) \cdot(p_2,p_1) = (p_2,b) \in R ( b ′ , b ) ⋅ ( p 2 , p 1 ) = ( p 2 , b ) ∈ R and we are again in subcase 2.
a ′ = b a' = b a ′ = b . Then ( a , a ′ ) ⋅ ( p 2 , v ) = ( a , v ) ∈ R (a,a') \cdot(p_2,v) = (a,v) \in R ( a , a ′ ) ⋅ ( p 2 , v ) = ( a , v ) ∈ R and ( a , a ′ ) ⋅ ( u , p 1 ) = ( u , a ′ ) ∈ R (a,a') \cdot(u,p_1) = (u,a') \in R ( a , a ′ ) ⋅ ( u , p 1 ) = ( u , a ′ ) ∈ R , and we are in subcase number one.
Finally, if k ≥ 2 k \ge2 k ≥ 2 , then we may assume that { u , p 2 , p 4 } = A = { v , p 1 , p 3 } \{u,p_2,p_4\} = A = \{v,p_1,p_3\} { u , p 2 , p 4 } = A = { v , p 1 , p 3 } . Then either ( u , p 1 ) ⋅ ( p 4 , p 3 ) (u,p_1) \cdot(p_4,p_3) ( u , p 1 ) ⋅ ( p 4 , p 3 ) or ( u , p 1 ) ⋅ ( p 4 , v ) (u,p_1) \cdot(p_4,v) ( u , p 1 ) ⋅ ( p 4 , v ) is from { ( u , v ) , ( u , p 3 ) , ( p 4 , p 1 ) } \{(u,v),(u,p_3),(p_4,p_1)\} {( u , v ) , ( u , p 3 ) , ( p 4 , p 1 )} , and in each case we obtain a contradiction to the minimal choice of k k k . This concludes the proof of the claim.
Now consider the case n ≥ 3 n \ge3 n ≥ 3 . If R ( x 1 , … , x n ) R(x_1,\ldots,x_n) R ( x 1 , … , x n ) implies C 3 ( x i , x j ) C_3(x_i,x_j) C 3 ( x i , x j ) for some { i , j } ∈ ( [ n ] 2 ) \{i,j\} \in\binom{[n]}{2} { i , j } ∈ ( 2 [ n ] ) , then R R R has the definition C 3 ( x i , x j ) ∧ ψ C_3(x_i,x_j) \wedge\psi C 3 ( x i , x j ) ∧ ψ in A \mathcal{A} A , where ψ \psi ψ is the definition of π [ n ] ∖ { j } ( R ) \pi_{[n]\setminus\{j\}}(R) π [ n ] ∖ { j } ( R ) in A \mathcal{A} A , which exists by inductive assumption. Similarly we can treat the case that x i = x j x_i = x_j x i = x j is implied instead of C 3 ( x i , x j ) C_3(x_i,x_j) C 3 ( x i , x j ) . Otherwise, we will show that R = A n R = A^n R = A n . Let t ∈ A n t \in A^n t ∈ A n . For any a ∈ A a \in A a ∈ A , the ( n − 1 ) (n-1) ( n − 1 ) -ary relation R a : = { x ˉ ∣ ( x ˉ , a ) ∈ R } R_a := \{\bar{x} \mid(\bar{x},a) \in R\} R a := { x ˉ ∣ ( x ˉ , a ) ∈ R } is preserved by ⋅ \cdot ⋅ . Moreover, we will prove that it is subdirect. Indeed, let b ∈ A b \in A b ∈ A . Note that the binary relation π n − 1 , n ( R ) \pi_{n-1,n}(R) π n − 1 , n ( R ) equals A 2 A^2 A 2 by the case n = 2 n = 2 n = 2 , and hence in particular contains ( b , a ) (b,a) ( b , a ) . Therefore, there exists c ′ ∈ A n − 2 c' \in A^{n-2} c ′ ∈ A n − 2 such that ( c ′ , b , a ) ∈ R (c',b,a) \in R ( c ′ , b , a ) ∈ R , and thus ( c ′ , b ) ∈ R a (c',b) \in R_a ( c ′ , b ) ∈ R a . Similar arguments apply to the other arguments of R a R_a R a , showing that R a ≤ A n − 1 R_a \le A^{n-1} R a ≤ A n − 1 is subdirect.
First consider the case n = 3 n = 3 n = 3 . Since R t 3 ≤ A 2 R_{t_3} \le A^2 R t 3 ≤ A 2 is subdirect, by the case n = 2 n = 2 n = 2 the formula R t 3 R_{t_3} R t 3 equals A 2 A^2 A 2 , = A =A = A , C 3 C_3 C 3 , or { ( y , x ) ∣ ( x , y ) ∈ C 3 } \{(y,x) \mid(x,y) \in C_3\} {( y , x ) ∣ ( x , y ) ∈ C 3 } . In any case, R t 3 R_{t_3} R t 3 contains ( t 1 , t 2 ′ ) (t_1,t'_2) ( t 1 , t 2 ′ ) and ( t 1 ′ , t 2 ) (t'_1,t_2) ( t 1 ′ , t 2 ) for some t 1 ′ , t 2 ′ ∈ A t'_1,t'_2 \in A t 1 ′ , t 2 ′ ∈ A . If t 1 ′ = t 1 t'_1 = t_1 t 1 ′ = t 1 or t 2 ′ = t 2 t'_2 = t_2 t 2 ′ = t 2 , then t ∈ R t \in R t ∈ R and we are done. If t 1 ′ = ρ − 1 ( t 1 ) t'_1 = \rho^{-1}(t_1) t 1 ′ = ρ − 1 ( t 1 ) and t 2 ′ = ρ − 1 ( t 2 ) t'_2 = \rho^{-1}(t_2) t 2 ′ = ρ − 1 ( t 2 ) , then ( t 1 ′ , t 2 , t 3 ) ⋅ ( t 1 , t 2 ′ , t 3 ) = t ∈ R (t'_1,t_2,t_3) \cdot(t_1,t'_2,t_3) = t \in R ( t 1 ′ , t 2 , t 3 ) ⋅ ( t 1 , t 2 ′ , t 3 ) = t ∈ R and we are again done. Hence, up to reordering the arguments of R R R we may assume that t 2 ′ = ρ ( t 2 ) t'_2 = \rho(t_2) t 2 ′ = ρ ( t 2 ) . Since R t 3 R_{t_3} R t 3 is preserved by the automorphism ρ − 1 \rho^{-1} ρ − 1 , we therefore get that ( ρ − 1 ( t 1 ) , t 2 ) ∈ R t 3 (\rho^{-1}(t_1),t_2) \in R_{t_3} ( ρ − 1 ( t 1 ) , t 2 ) ∈ R t 3 . Therefore, t ′ : = ( ρ − 1 ( t 1 ) , t 2 , t 3 ) ∈ R t' := (\rho^{-1}(t_1),t_2,t_3) \in R t ′ := ( ρ − 1 ( t 1 ) , t 2 , t 3 ) ∈ R . By similar reasoning with the relation { ( x , y ) ∣ ( t 1 , x , y ) ∈ R } \{(x,y) \mid(t_1,x,y) \in R\} {( x , y ) ∣ ( t 1 , x , y ) ∈ R } instead of R t 3 R_{t_3} R t 3 we obtain that t ′ ′ : = ( t 1 , ρ − 1 ( t 2 ) , t 3 ) ∈ R t'' := (t_1,\rho^{-1}(t_2),t_3) \in R t ′′ := ( t 1 , ρ − 1 ( t 2 ) , t 3 ) ∈ R or t ′ ′ ′ : = ( t 1 , t 2 , ρ − 1 ( t 3 ) ) ∈ R t''' := (t_1,t_2,\rho^{-1}(t_3)) \in R t ′′′ := ( t 1 , t 2 , ρ − 1 ( t 3 )) ∈ R . Applying ⋅ \cdot ⋅ to t ′ , t ′ ′ ∈ R t',t'' \in R t ′ , t ′′ ∈ R , we again obtain t ∈ R t \in R t ∈ R .
Finally, consider the case n > 3 n > 3 n > 3 . Then for i , j ∈ ( [ n − 1 ] 2 ) i,j \in\binom{[n-1]}{2} i , j ∈ ( 2 [ n − 1 ] ) we have that π i , j , n ( R ) = A 3 \pi_{i,j,n}(R) = A^3 π i , j , n ( R ) = A 3 by the case n = 3 n = 3 n = 3 . Hence, for any a ∈ A a \in A a ∈ A we have π i , j ( R a ) = A 2 \pi_{i,j}(R_a) = A^2 π i , j ( R a ) = A 2 , and it follows from the case n − 1 n-1 n − 1 that R a = A n − 1 R_a = A^{n-1} R a = A n − 1 . This means that R = A n R = A^n R = A n .
Definition 13.61. The class of pss -Horn clauses is defined recursively as follows. The formulas
y ∈ { c , d } , C 3 ( y , z ) , y = z , y \in\{c,d\}, \qquad C_3(y,z), \qquad y = z, y ∈ { c , d } , C 3 ( y , z ) , y = z , where c , d ∈ A c,d \in A c , d ∈ A , are pss-Horn clauses. Moreover, if χ \chi χ is a pss-Horn clause, a ∈ A a \in A a ∈ A , and x x x is a variable, then
x ∈ { a , ρ ( a ) } ∧ ( x = a ⇒ χ ) x \in\{a,\rho(a)\} \wedge(x = a \Rightarrow\chi) x ∈ { a , ρ ( a )} ∧ ( x = a ⇒ χ ) is a pss-Horn clause. Variables occurring in a pss-Horn clause need not be distinct.
Thus, a pss-Horn clause has the form
x i 1 ∈ { a 1 , ρ ( a 1 ) } ∧ ( x i 1 = a 1 ⇒ ( x i 2 ∈ { a 2 , ρ ( a 2 ) } ∧ ( x i 2 = a 2 ⇒ ( ⋯ ⇒ ψ ) ) ) ) , x_{i_1} \in\{a_1,\rho(a_1)\} \land(x_{i_1}=a_1 \Rightarrow(x_{i_2} \in\{a_2,\rho(a_2)\} \land(x_{i_2}=a_2 \Rightarrow(\cdots\Rightarrow\psi)))), x i 1 ∈ { a 1 , ρ ( a 1 )} ∧ ( x i 1 = a 1 ⇒ ( x i 2 ∈ { a 2 , ρ ( a 2 )} ∧ ( x i 2 = a 2 ⇒ ( ⋯ ⇒ ψ )))) ,
where ψ \psi ψ is of the form y ∈ { c , d } y \in\{c,d\} y ∈ { c , d } , C 3 ( y , z ) C_3(y,z) C 3 ( y , z ) , or y = z y=z y = z .
Lemma 13.62 (Separation by a pss-Horn clause). Let R ≤ A n R \le A^n R ≤ A n , where n ≥ 1 n \ge1 n ≥ 1 , and let t ∈ A n ∖ R t \in A^n \setminus R t ∈ A n ∖ R . Then there exists a pss-Horn clause which is satisfied by every tuple in R R R but not by t t t .
Proof. Put R 0 : = R R_0 := R R 0 := R . Choose a sequence of distinct coordinates i 1 , … , i k i_1,\ldots,i_k i 1 , … , i k of maximal length such that, recursively, for every j ∈ [ k ] j \in[k] j ∈ [ k ]
π i j ( R j − 1 ) ⊆ { t i j , ρ ( t i j ) } \pi_{i_j}(R_{j-1}) \subseteq\{t_{i_j},\rho(t_{i_j})\} π i j ( R j − 1 ) ⊆ { t i j , ρ ( t i j )} and
R j = { r ∈ R j − 1 ∣ r i j = t i j } . R_j = \{r \in R_{j-1} \mid r_{i_j}=t_{i_j}\}. R j = { r ∈ R j − 1 ∣ r i j = t i j } . Put S : = R k S := R_k S := R k and J : = [ n ] ∖ { i 1 , … , i k } J := [n] \setminus\{i_1,\ldots,i_k\} J := [ n ] ∖ { i 1 , … , i k } . Since A \mathbf{A} A is idempotent, all the relations R j R_j R j , and hence S S S , are subalgebras of A n \mathbf{A}^n A n .
We first show that there is a formula ψ \psi ψ of one of the forms
y ∈ { c , d } , C 3 ( y , z ) , y = z y \in\{c,d\}, \qquad C_3(y,z), \qquad y=z y ∈ { c , d } , C 3 ( y , z ) , y = z which is satisfied by every tuple in S S S but not by t t t .
If S = ∅ S = \varnothing S = ∅ , we may take ψ : = C 3 ( x 1 , x 1 ) \psi:= C_3(x_1,x_1) ψ := C 3 ( x 1 , x 1 ) . Thus, suppose that S ≠ ∅ S \ne\varnothing S = ∅ . If t i ∉ π i ( S ) t_i \notin\pi_i(S) t i ∈ / π i ( S ) for some i ∈ J i \in J i ∈ J , then π i ( S ) \pi_i(S) π i ( S ) is a nonempty proper subalgebra of A \mathbf{A} A . Hence it has the form { c , d } \{c,d\} { c , d } , where we permit c = d c=d c = d , and we may take ψ : = x i ∈ { c , d } \psi:= x_i \in\{c,d\} ψ := x i ∈ { c , d } . It remains to consider the case that t i ∈ π i ( S ) t_i \in\pi_i(S) t i ∈ π i ( S ) for every i ∈ J i \in J i ∈ J . Let
M : = { i ∈ J ∣ π i ( S ) = A } M := \{i \in J \mid\pi_i(S)=A\} M := { i ∈ J ∣ π i ( S ) = A } and
N : = J ∖ M . N := J \setminus M. N := J ∖ M . For every i ∈ N i \in N i ∈ N , the maximality of the sequence i 1 , … , i k i_1,\ldots,i_k i 1 , … , i k implies that
π i ( S ) ⊈ { t i , ρ ( t i ) } . \pi_i(S) \nsubseteq\{t_i,\rho(t_i)\}. π i ( S ) ⊈ { t i , ρ ( t i )} . Since π i ( S ) \pi_i(S) π i ( S ) is a proper subalgebra containing t i t_i t i , it follows that π i ( S ) = { ρ − 1 ( t i ) , t i } \pi_i(S) = \{\rho^{-1}(t_i),t_i\} π i ( S ) = { ρ − 1 ( t i ) , t i } . On this two-element subalgebra, t i t_i t i is absorbing for ⋅ \cdot ⋅ :
t i ⋅ a = t i for every a ∈ π i ( S ) . t_i \cdot a = t_i \qquad\text{for every } a \in\pi_i(S). t i ⋅ a = t i for every a ∈ π i ( S ) . Suppose that M ≠ ∅ M \ne\varnothing M = ∅ , and put U : = π M ( S ) U := \pi_M(S) U := π M ( S ) . The relation U U U is subdirect, so Lemma 13.60 gives a definition of U U U by a conjunction of atomic formulas over ( A ; C 3 ) (A;C_3) ( A ; C 3 ) . If π M ( t ) ∉ U \pi_M(t) \notin U π M ( t ) ∈ / U , then one of these atomic formulas is satisfied by every tuple in U U U but not by π M ( t ) \pi_M(t) π M ( t ) . Taking this atomic formula for ψ \psi ψ proves the claim.
We finally show that the only remaining case is impossible. Thus, assume that either M = ∅ M = \varnothing M = ∅ or π M ( t ) ∈ U \pi_M(t) \in U π M ( t ) ∈ U . If M ≠ ∅ M \ne\varnothing M = ∅ , then U U U is preserved by the coordinatewise application of ρ − 1 \rho^{-1} ρ − 1 , because it is defined by atomic formulas over ( A ; C 3 ) (A;C_3) ( A ; C 3 ) . Consequently, there are p , q ∈ S p,q \in S p , q ∈ S such that
p i = t i and q i = ρ − 1 ( t i ) for every i ∈ M . p_i=t_i \qquad\text{and} \qquad q_i=\rho^{-1}(t_i) \qquad\text{for every } i \in M. p i = t i and q i = ρ − 1 ( t i ) for every i ∈ M . If M = ∅ M = \varnothing M = ∅ , choose p , q ∈ S p,q \in S p , q ∈ S arbitrarily.
For every i ∈ N i \in N i ∈ N , choose s i ∈ S s^i \in S s i ∈ S such that s i i = t i s^i_i = t_i s i i = t i . If N ≠ ∅ N \ne\emptyset N = ∅ , let s ∈ S s \in S s ∈ S be any iterated product of the tuples s i s^i s i , for i ∈ N i \in N i ∈ N . Since t i t_i t i is absorbing in π i ( S ) \pi_i(S) π i ( S ) , we have s i = t i s_i = t_i s i = t i for every i ∈ N i \in N i ∈ N . If N = ∅ N = \emptyset N = ∅ , choose s ∈ S s \in S s ∈ S arbitrarily. Now put
r : = ( s ⋅ q ) ⋅ p ∈ S . r := (s \cdot q) \cdot p \in S. r := ( s ⋅ q ) ⋅ p ∈ S .
For i ∈ M i \in M i ∈ M , identity (60) gives
r i = ( s i ⋅ ρ − 1 ( t i ) ) ⋅ t i = t i . r_i = (s_i \cdot\rho^{-1}(t_i)) \cdot t_i = t_i. r i = ( s i ⋅ ρ − 1 ( t i )) ⋅ t i = t i .
For i ∈ N i \in N i ∈ N , the absorbing property of t i t_i t i in π i ( S ) \pi_i(S) π i ( S ) gives r i = t i r_i = t_i r i = t i . Moreover, every tuple in S S S has entry t i j t_{i_j} t i j in coordinate i j i_j i j , for every j ∈ [ k ] j \in[k] j ∈ [ k ] . Hence r = t r = t r = t , contradicting t ∉ R t \notin R t ∈ / R . This proves the existence of ψ \psi ψ . Starting with χ k : = ψ \chi_k := \psi χ k := ψ , define recursively, for j = k , k − 1 , … , 1 j = k, k - 1, \ldots, 1 j = k , k − 1 , … , 1 ,
χ j − 1 : = x i j ∈ { t i j , ρ ( t i j ) } ∧ ( x i j = t i j ⇒ χ j ) . \chi_{j-1} := x_{i_j} \in\{t_{i_j}, \rho(t_{i_j})\} \land(x_{i_j} = t_{i_j} \Rightarrow\chi_j). χ j − 1 := x i j ∈ { t i j , ρ ( t i j )} ∧ ( x i j = t i j ⇒ χ j ) .
Then χ 0 \chi_0 χ 0 is a pss-Horn clause. The choice of i 1 , … , i k i_1, \ldots, i_k i 1 , … , i k and the fact that ψ \psi ψ holds on S S S show that every tuple in R R R satisfies χ 0 \chi_0 χ 0 . On the other hand, all the implications in χ 0 \chi_0 χ 0 are activated by t t t , and ψ \psi ψ is false at t t t . Therefore, t t t does not satisfy χ 0 \chi_0 χ 0 .
Proposition 13.63. For every R ⊆ A n R \subseteq A^n R ⊆ A n , where n ≥ 1 n \ge1 n ≥ 1 , the following are equivalent.
R R R is preserved by ⋅ \cdot ⋅ ;
R R R can be defined by a conjunction of pss-Horn clauses;
R R R has a primitive positive definition in ( { 0 , 1 , 2 } ; C 3 , R 3 = ) (\{0,1,2\}; C_3, R_3^{=}) ({ 0 , 1 , 2 } ; C 3 , R 3 = ) .
Proof. Suppose first that R R R is preserved by ⋅ \cdot ⋅ . Then R ≤ A n R \leq A^n R ≤ A n . For every t ∈ A n ∖ R t \in A^n \setminus R t ∈ A n ∖ R , choose, using Lemma 13.62, a pss-Horn clause χ t \chi_t χ t which holds on R R R but not at t t t . Then
⋀ t ∈ A n ∖ R χ t \bigwedge_{t \in A^n \setminus R} \chi_t t ∈ A n ∖ R ⋀ χ t
defines R R R . This proves that 1. implies 2.
We next prove that 2. implies 3. First observe that all one- and two-element unary relations on A A A are primitively positively definable in ( A ; C 3 , R 3 = ) (A; C_3, R_3^{=}) ( A ; C 3 , R 3 = ) . Indeed,
U 01 ( x ) : = ∃ y , z R 3 = ( x , y , z ) defines { 0 , 1 } U_{01}(x) := \exists y,z\ R_3^{=}(x,y,z) \qquad\text{defines } \{0,1\} U 01 ( x ) := ∃ y , z R 3 = ( x , y , z ) defines { 0 , 1 }
U 12 ( x ) : = ∃ u ( U 01 ( u ) ∧ C 3 ( u , x ) ) defines { 1 , 2 } U_{12}(x) := \exists u\ (U_{01}(u) \land C_3(u,x)) \qquad\text{defines } \{1,2\} U 12 ( x ) := ∃ u ( U 01 ( u ) ∧ C 3 ( u , x )) defines { 1 , 2 }
U 20 ( x ) : = ∃ u ( U 01 ( u ) ∧ C 3 ( x , u ) ) defines { 2 , 0 } . U_{20}(x) := \exists u\ (U_{01}(u) \land C_3(x,u)) \qquad\text{defines } \{2,0\}. U 20 ( x ) := ∃ u ( U 01 ( u ) ∧ C 3 ( x , u )) defines { 2 , 0 } .
Their pairwise intersections define the singletons. For a ∈ A a \in A a ∈ A , let δ a ( x , u ) \delta_a(x,u) δ a ( x , u ) be the following primitive positive formula:
δ a ( x , u ) : = { U 01 ( u ) ∧ x = u if a = 0 , U 01 ( u ) ∧ C 3 ( u , x ) if a = 1 , U 01 ( u ) ∧ C 3 ( x , u ) if a = 2. \delta_a(x,u) :=
\begin{cases}
U_{01}(u) \land x = u & \text{if } a = 0,\\
U_{01}(u) \land C_3(u,x) & \text{if } a = 1,\\
U_{01}(u) \land C_3(x,u) & \text{if } a = 2.
\end{cases} δ a ( x , u ) := ⎩ ⎨ ⎧ U 01 ( u ) ∧ x = u U 01 ( u ) ∧ C 3 ( u , x ) U 01 ( u ) ∧ C 3 ( x , u ) if a = 0 , if a = 1 , if a = 2.
Thus, δ a ( x , u ) \delta_a(x,u) δ a ( x , u ) defines { ( a , 0 ) , ( ρ ( a ) , 1 ) } \{(a,0),(\rho(a),1)\} {( a , 0 ) , ( ρ ( a ) , 1 )} . We prove by induction over the recursive definition that every pss-Horn clause is primitively positively definable. This is clear for the basic clauses y ∈ { c , d } y \in\{c,d\} y ∈ { c , d } , C 3 ( y , z ) C_3(y,z) C 3 ( y , z ) , and y = z y=z y = z . Suppose that χ ( y ˉ ) \chi(\bar{y}) χ ( y ˉ ) is primitively positively definable and consider
θ ( x , y ˉ ) : = x ∈ { a , ρ ( a ) } ∧ ( x = a ⇒ χ ( y ˉ ) ) . \theta(x,\bar{y}) := x \in\{a,\rho(a)\} \land(x=a \Rightarrow\chi(\bar{y})). θ ( x , y ˉ ) := x ∈ { a , ρ ( a )} ∧ ( x = a ⇒ χ ( y ˉ )) .
Let S S S be the relation defined by χ \chi χ . If S = ∅ S=\varnothing S = ∅ , then θ \theta θ is equivalent to x = ρ ( a ) x=\rho(a) x = ρ ( a ) , which is primitively positively definable. Suppose that S ≠ ∅ S\ne\varnothing S = ∅ , and let y 1 , … , y l y_1,\ldots,y_l y 1 , … , y l be the distinct variables occurring freely in χ \chi χ . Then θ \theta θ is defined by
∃ u , z 1 , … , z l ( δ a ( x , u ) ∧ χ ( z 1 , … , z l ) ∧ ⋀ j = 1 l R 3 = ( u , y j , z j ) ) . \exists u,z_1,\ldots,z_l\left(\delta_a(x,u)\land\chi(z_1,\ldots,z_l)\land\bigwedge_{j=1}^{l}R_3^{=}(u,y_j,z_j)\right). ∃ u , z 1 , … , z l ( δ a ( x , u ) ∧ χ ( z 1 , … , z l ) ∧ j = 1 ⋀ l R 3 = ( u , y j , z j ) ) .
Indeed, if x = a x=a x = a , then u = 0 u=0 u = 0 , and the displayed formula forces y j = z j y_j=z_j y j = z j for every j ∈ [ l ] j\in[l] j ∈ [ l ] . If x = ρ ( a ) x=\rho(a) x = ρ ( a ) , then u = 1 u=1 u = 1 , and the variables z 1 , … , z l z_1,\ldots,z_l z 1 , … , z l may be chosen as any tuple in the nonempty relation S S S . This completes the induction. Since conjunctions of primitive positive formulas are primitive positive, 2. implies 3.
Finally, we prove that 3. implies 1. The relation C 3 C_3 C 3 is preserved by ⋅ \cdot ⋅ , because ρ \rho ρ is an automorphism of A \mathbf{A} A . To see that R 3 = R_3^{=} R 3 = is preserved by ⋅ \cdot ⋅ , let
( x 1 , y 1 , z 1 ) , ( x 2 , y 2 , z 2 ) ∈ R 3 = (x_1,y_1,z_1),(x_2,y_2,z_2)\in R_3^{=} ( x 1 , y 1 , z 1 ) , ( x 2 , y 2 , z 2 ) ∈ R 3 =
and put
( x , y , z ) : = ( x 1 ⋅ x 2 , y 1 ⋅ y 2 , z 1 ⋅ z 2 ) . (x,y,z):=(x_1\cdot x_2,y_1\cdot y_2,z_1\cdot z_2). ( x , y , z ) := ( x 1 ⋅ x 2 , y 1 ⋅ y 2 , z 1 ⋅ z 2 ) .
Since x 1 , x 2 ∈ { 0 , 1 } x_1,x_2\in\{0,1\} x 1 , x 2 ∈ { 0 , 1 } , we have x ∈ { 0 , 1 } x\in\{0,1\} x ∈ { 0 , 1 } . If x = 1 x=1 x = 1 , then ( x , y , z ) ∈ R 3 = (x,y,z)\in R_3^{=} ( x , y , z ) ∈ R 3 = immediately. If x = 0 x=0 x = 0 , then x 1 = x 2 = 0 x_1=x_2=0 x 1 = x 2 = 0 , and hence y 1 = z 1 y_1=z_1 y 1 = z 1 and y 2 = z 2 y_2=z_2 y 2 = z 2 . Therefore,
y = y 1 ⋅ y 2 = z 1 ⋅ z 2 = z , y=y_1\cdot y_2=z_1\cdot z_2=z, y = y 1 ⋅ y 2 = z 1 ⋅ z 2 = z ,
so again ( x , y , z ) ∈ R 3 = (x,y,z)\in R_3^{=} ( x , y , z ) ∈ R 3 = . Thus, ⋅ \cdot ⋅ preserves both basic relations of ( A ; C 3 , R 3 = ) (\mathbf{A};C_3,R_3^{=}) ( A ; C 3 , R 3 = ) and consequently every relation with a primitive positive definition in this structure. Hence 3. implies 1. □ \square □
Remark 13.64. The Paper-Scissors-Stone algebra A \mathbf{A} A is absorption free. First note that B = { 0 , 1 } B=\{0,1\} B = { 0 , 1 } is not absorbing. Indeed, for every n ≥ 1 n\ge1 n ≥ 1 the relation
R : = { ( x 1 , … , x n − 1 , y ) ∈ A n ∣ x 1 , … , x n − 1 ∈ { 1 , 2 } ∧ x 1 = ⋯ = x n − 1 = 1 ⇒ y = 2 } R:=\{(x_1,\ldots,x_{n-1},y)\in A^n\mid x_1,\ldots,x_{n-1}\in\{1,2\}\land x_1=\cdots=x_{n-1}=1\Rightarrow y=2\} R := {( x 1 , … , x n − 1 , y ) ∈ A n ∣ x 1 , … , x n − 1 ∈ { 1 , 2 } ∧ x 1 = ⋯ = x n − 1 = 1 ⇒ y = 2 }
can be defined by a conjunction of pss-Horn clauses and hence is a subalgebra of A n \mathbf{A}^n A n , and is B B B -essential: for every i ∈ { 1 , … , n − 1 } i\in\{1,\ldots,n-1\} i ∈ { 1 , … , n − 1 } we have
R ∩ ( B i − 1 × A × B n − i ) = { ( 1 , … , 1 , 2 , 1 , … , 1 , 0 ) , ( 1 , … , 1 , 2 , 1 , … , 1 , 1 ) } R\cap(B^{i-1}\times A\times B^{n-i})=\{(1,\ldots,1,2,1,\ldots,1,0),(1,\ldots,1,2,1,\ldots,1,1)\} R ∩ ( B i − 1 × A × B n − i ) = {( 1 , … , 1 , 2 , 1 , … , 1 , 0 ) , ( 1 , … , 1 , 2 , 1 , … , 1 , 1 )}
R ∩ ( B n − 1 × A ) = { ( 1 , … , 1 , 2 ) } , R\cap(B^{n-1}\times A)=\{(1,\ldots,1,2)\}, R ∩ ( B n − 1 × A ) = {( 1 , … , 1 , 2 )} ,
but
R ∩ B n = ∅ . R\cap B^n=\varnothing. R ∩ B n = ∅ .
Hence, Lemma 13.20 implies that B B B is not absorbing. The algebra C = { 1 } C=\{1\} C = { 1 } is also not absorbing. For every n ≥ 1 n\ge1 n ≥ 1 , consider
S n : = { 1 , 2 } n ∖ { ( 1 , … , 1 ) } . S_n:=\{1,2\}^n\setminus\{(1,\ldots,1)\}. S n := { 1 , 2 } n ∖ {( 1 , … , 1 )} .
On { 1 , 2 } \{1,2\} { 1 , 2 } , the operation ⋅ \cdot ⋅ is the semilattice operation with 1 ⋅ 1 = 1 1\cdot1=1 1 ⋅ 1 = 1 and all other products equal to 2 2 2 . Hence, S n S_n S n is closed under coordinatewise application of ⋅ \cdot ⋅ : if a tuple contains a 2 , 2, 2 , then its product with any tuple from { 1 , 2 } n \{1,2\}^{n} { 1 , 2 } n still contains a 2. Thus, S n ≤ A n S_n \leq A^n S n ≤ A n . Moreover, S n ∩ C n = ∅ S_n \cap C^n = \varnothing S n ∩ C n = ∅ , while for every i ∈ [ n ] i \in[n] i ∈ [ n ] , the tuple having 2 in coordinate i i i and 1 everywhere else belongs to
S n ∩ ( C i − 1 × A × C n − i ) . S_n \cap(C^{i-1} \times A \times C^{n-i}). S n ∩ ( C i − 1 × A × C n − i ) .
Therefore, S n S_n S n is C C C -essential. Since such a relation exists for every n ≥ 1 n \geq1 n ≥ 1 , Lemma 13.20 shows that C C C is not n n n -absorbing for any n n n . Consequently, C = { 1 } C = \{1\} C = { 1 } is not absorbing.
Every other proper subuniverse is symmetric to B B B or C C C via ρ \rho ρ .
Algorithms to solve CSP ( { 0 , 1 , 2 } ; C 3 , R 3 ‾ ) \operatorname{CSP}(\{0,1,2\}; C_3, \overline{R_3}) CSP ({ 0 , 1 , 2 } ; C 3 , R 3 ) will be discussed in § 16 .
Exercise 244. Let A = ( { 0 , 1 , 2 , 3 , 4 } ; ∘ ) \mathbf{A} = (\{0,1,2,3,4\}; \circ) A = ({ 0 , 1 , 2 , 3 , 4 } ; ∘ ) be the idempotent algebra where ∘ \circ ∘ is given by the rock, paper, scissors, lizard, Spock game:
Spock smashes scissors and vaporises rock,
scissors cuts paper and decapitates lizard,
paper disproves Spock and covers rock,
rock crushes scissors and lizard, and
lizard eats paper and poisons Spock.
Determine the proper subalgebras and proper congruences of A \mathbf{A} A . Which subalgebras are absorbing? Is A \mathbf{A} A Taylor, Abelian, absorption-free? Is A \mathbf{A} A subdirectly complete (Definition 13.65)?
Exercise 245. Show that CSP ( { 0 , 1 , 2 } ; C 3 , R 3 ‾ ) \operatorname{CSP}(\{0,1,2\}; C_3, \overline{R_3}) CSP ({ 0 , 1 , 2 } ; C 3 , R 3 ) can be solved by the 3-consistency procedure (see Exercise 89).
Exercise 246. Is there a structure A \mathcal{A} A with a finite relational signature such that a relation R ⊆ A n R \subseteq A^n R ⊆ A n is preserved by the operation ∘ \circ ∘ from Exercise 244 if and only if R R R has a primitive positive definition in A \mathcal{A} A ?
Subdirectly Complete Algebras
The property of the paper-scissors-stone algebra established in Lemma 13.60 is of general importance when studying finite idempotent Taylor algebras.
Definition 13.65. Let A \mathbf{A} A be an algebra and let A \mathcal{A} A be the relational structure with the same domain as A \mathbf{A} A whose relations are the graphs of the automorphisms of A \mathbf{A} A . Then A \mathbf{A} A is called subdirectly complete if every subdirect R ≤ A n R \leq A^n R ≤ A n , for every n ∈ N n \in\mathbb{N} n ∈ N , can be defined by a conjunction of atomic formulas over A \mathcal{A} A .
Example 13.66. The Paper-Scissors-Stone algebra (Definition 13.59 ) is subdirectly complete (Lemma 13.60).
Lemma 13.67. Let A \mathbf{A} A be subdirectly complete and let R ≤ A k R \leq A^k R ≤ A k be a relation that contains ( a , … , a ) (a,\ldots,a) ( a , … , a ) for every a ∈ A a \in A a ∈ A . Then R R R can be defined by a conjunction of formulas of the form x i = x j x_i = x_j x i = x j , for i , j ∈ [ k ] i,j \in[k] i , j ∈ [ k ] .
Proof. Clearly, R R R is subdirect and hence has a definition by a conjunction of atomic formulas; each conjunct denotes the graph of an automorphism of A \mathbf{A} A . Since the only automorphism that contains ( a , a ) (a,a) ( a , a ) is the identity id A \operatorname{id}_{\mathbf{A}} id A , the statement follows.
Remark 13.68. Note that every subdirectly complete algebra is simple: this follows from Lemma 13.67 for k = 2 k=2 k = 2 .
Exercise 247. Show that every finite idempotent algebra which is subdirectly complete is polynomially complete (Exercise 195).
Exercise 248. Find an example of a finite idempotent algebra which is polynomially complete but not subdirectly complete.
Exercise 249. Describe the clones of subdirectly complete Taylor algebras over the domain { 0 , 1 } \{0,1\} { 0 , 1 } .
The Four Cases for Taylor Algebras
In this section we present a result which is essentially a consequence of the Absorption Theorem for finite simple algebras. It is called ‘Zhuk’s four cases’ in the lecture notes of Zarathustra Brady [34], who cites [113]; and in [8]; a related predecessor result can be found in [13, Theorem 38].
Theorem 13.69. Let A \mathbf{A} A be a simple finite idempotent Taylor algebra. Then at least one of the following four cases applies.
A \mathbf{A} A has a proper binary absorbing subuniverse.
A \mathbf{A} A has a proper centrally absorbing subuniverse.
A \mathbf{A} A is affine.
A \mathbf{A} A is subdirectly complete.
Proof. Suppose that A \mathbf{A} A has no proper binary or centrally absorbing subuniverse and is not affine. We prove by induction on n ≥ 1 n \ge1 n ≥ 1 that every subdirect R ≤ A n R \leq A^n R ≤ A n has a definition by a conjunction of atomic formulas in the structure A \mathcal{A} A whose relations are the graphs of the automorphisms of A \mathbf{A} A . If n = 1 n=1 n = 1 , then R = A R=A R = A since R R R is subdirect, and there is nothing to be shown. If n = 2 n=2 n = 2 , then R R R is linked or the graph of an automorphism of A \mathbf{A} A , by the simplicity of A \mathbf{A} A (see Exercise 232). In the latter case we are done, so suppose that R R R is linked. If R = A 2 R=A^2 R = A 2 , then we are also done. Otherwise, the Absorption Theorem in its strengthened version (Theorem 13.58 ) applied to R ≤ A × A R \leq A \times A R ≤ A × A implies that A \mathbf{A} A has a proper binary or centrally absorbing subuniverse.
Now suppose that n ≥ 3 n \geq3 n ≥ 3 . We first consider the case that for some { i , j } ∈ ( [ n ] 2 ) \{i,j\} \in\binom{[n]}{2} { i , j } ∈ ( 2 [ n ] ) the relation R ′ : = π i , j ( R ) R' := \pi_{i,j}(R) R ′ := π i , j ( R ) is the graph of an automorphism of A \mathbf{A} A . For the sake of notation, suppose that j = n j=n j = n . Then the relation π [ n − 1 ] ( R ) \pi_{[n-1]}(R) π [ n − 1 ] ( R ) is subdirect and by the inductive assumption has a definition ϕ ( x 1 , … , x n − 1 ) \phi(x_1,\ldots,x_{n-1}) ϕ ( x 1 , … , x n − 1 ) by a conjunction of atomic formulas over A \mathcal{A} A . Then ϕ ( x 1 , … , x n − 1 ) ∧ R ′ ( x i , x j ) \phi(x_1,\ldots,x_{n-1}) \wedge R'(x_i,x_j) ϕ ( x 1 , … , x n − 1 ) ∧ R ′ ( x i , x j ) is a definition of R R R over A \mathcal{A} A and we are done. Therefore, we may assume that for every { i , j } ∈ ( [ n ] 2 ) \{i,j\} \in\binom{[n]}{2} { i , j } ∈ ( 2 [ n ] ) the relation R ′ : = π i , j ( R ) R' := \pi_{i,j}(R) R ′ := π i , j ( R ) is not the graph of an automorphism, and hence R ′ = A 2 R' = A^2 R ′ = A 2 by the case n = 2 n = 2 n = 2 . We have to show that R = A n R = A^n R = A n .
Note that for every a ∈ A a \in A a ∈ A the ( n − 1 ) (n-1) ( n − 1 ) -ary relation
R a : = { x ˉ ∣ ( a , x ˉ ) ∈ R } R_a := \{\bar{x} \mid(a,\bar{x}) \in R\} R a := { x ˉ ∣ ( a , x ˉ ) ∈ R }
is a subuniverse of A n − 1 A^{n-1} A n − 1 because A \mathbf{A} A is idempotent. Moreover, R a R_a R a is subdirect. Indeed, let b ∈ A b \in A b ∈ A . Note that the binary relation π 1 , 2 ( R ) \pi_{1,2}(R) π 1 , 2 ( R ) equals A 2 A^2 A 2 by the case n = 2 n = 2 n = 2 , and hence in particular it contains ( a , b ) (a,b) ( a , b ) . Hence, there exists c ′ ∈ A n − 2 c' \in A^{n-2} c ′ ∈ A n − 2 such that ( a , b , c ′ ) ∈ R (a,b,c') \in R ( a , b , c ′ ) ∈ R , and thus ( b , c ′ ) ∈ R a (b,c') \in R_a ( b , c ′ ) ∈ R a . Similar arguments apply to the other arguments of R a R_a R a , showing that R a ≤ A n − 1 R_a \leq A^{n-1} R a ≤ A n − 1 is subdirect.
We first consider the case n = 3 n = 3 n = 3 . Since R a ≤ A 2 R_a \leq A^2 R a ≤ A 2 is subdirect, by the case n = 2 n = 2 n = 2 it is either the graph of an automorphism of A \mathbf{A} A or it equals A 2 A^2 A 2 . First suppose that there exists an a ∈ A a \in A a ∈ A such that R a = A 2 R_a = A^2 R a = A 2 . Then a a a is an element of the left center C C C of R R R if R R R is considered as a subalgebra of A × A 2 A \times A^2 A × A 2 . If C = A C = A C = A then R = A 3 R = A^3 R = A 3 and we are done. Otherwise, C C C is a proper subuniverse of A \mathbf{A} A . Clearly, A 2 A^2 A 2 is Taylor since A \mathbf{A} A is Taylor. Lemma 13.16 implies that A 2 A^2 A 2 does not have proper 2-absorbing subuniverses because A \mathbf{A} A has no proper 2-absorbing subuniverses. Since R R R is subdirect, Lemma 13.50 implies that C ◃ c e n A C \mathrel{\triangleleft_{\mathrm{cen}}} A C ◃ cen A , contrary to our assumption that A \mathbf{A} A has no proper centrally absorbing subuniverse.
Otherwise, for every a ∈ A a \in A a ∈ A the relation R a R_a R a is the graph of an automorphism of A \mathbf{A} A . A similar argument applies to R R R after permuting the arguments. So we may assume that for every a ∈ A a \in A a ∈ A and every i ∈ { 1 , 2 , 3 } i \in\{1,2,3\} i ∈ { 1 , 2 , 3 } the relation defined by ∃ x i ( R ( x 1 , x 2 , x 3 ) ∧ x i = a ) \exists x_i(R(x_1,x_2,x_3) \wedge x_i = a) ∃ x i ( R ( x 1 , x 2 , x 3 ) ∧ x i = a ) is the graph of an automorphism of A \mathbf{A} A . Then A \mathbf{A} A is abelian by Proposition 12.16 . Since A \mathbf{A} A is Taylor, it therefore follows from Corollary 13.42 that A \mathbf{A} A is affine, contrary to our assumptions.
Finally, suppose that n > 3 n > 3 n > 3 . Then for i , j ∈ { 2 , … , n } i,j \in\{2,\ldots,n\} i , j ∈ { 2 , … , n } we have that π { 1 , i , j } ( R ) = A 3 \pi_{\{1,i,j\}}(R) = A^3 π { 1 , i , j } ( R ) = A 3 by the case n = 3 n = 3 n = 3 . Hence, for any a ∈ A a \in A a ∈ A we have π { i , j } ( R a ) = A 2 \pi_{\{i,j\}}(R_a) = A^2 π { i , j } ( R a ) = A 2 , and it follows from the case n − 1 n - 1 n − 1 that R a = A n − 1 R_a = A^{n-1} R a = A n − 1 . This means that R = A n R = A^n R = A n .
We can use Theorem 13.69 to obtain a result about not necessarily simple finite idempotent Taylor algebras. This will not be needed in the proof of the cyclic terms theorem in Section 14, but it will be used in the characterisation of finite-domain CSPs of bounded width in Section 15.
Corollary 13.70. Let A \mathbf{A} A be a finite idempotent Taylor algebra with at least two elements. Then at least one of the following is true.
A \mathbf{A} A has a proper binary absorbing subuniverse.
A \mathbf{A} A has a proper centrally absorbing subalgebra.
A \mathbf{A} A has an affine quotient with at least two elements.
A \mathbf{A} A has a subdirectly complete quotient with at least two elements.
Proof. If A \mathbf{A} A is simple, the statement follows from Theorem 13.69 . Otherwise, there exists a proper congruence C C C ; choose C C C to be maximal with respect to inclusion, so that A ′ : = A / C \mathbf{A}' := \mathbf{A}/C A ′ := A / C is simple. Note that A ′ \mathbf{A}' A ′ has at least two elements because C ≠ A 2 C \ne A^2 C = A 2 . Hence, Theorem 13.69 implies that A ′ \mathbf{A}' A ′ has a proper binary or centrally absorbing subalgebra B B B , is affine, or subdirectly complete. If A ′ \mathbf{A}' A ′ has a proper binary absorbing subalgebra, then (the proof of) Lemma 13.12 shows that A \mathbf{A} A has a proper binary absorbing subalgebra as well. If A ′ \mathbf{A}' A ′ has a proper centrally absorbing subalgebra, then Lemma 13.47 shows that A A A has a centrally absorbing subalgebra as well. Otherwise, A A A has an affine quotient or a subdirectly complete quotient with at least two elements.
Exercise 250. Use Theorem 13.69 to give another proof of Lemma 13.60.
Exercise 251. Show that the finiteness assumption is needed in Theorem 13.69 .
Exercise 252. Show that a subdirect relation R ⊆ { 0 , 1 , 2 } n R \subseteq\{0,1,2\}^{n} R ⊆ { 0 , 1 , 2 } n is preserved by the Maltsev operation m m m in Example 8.10 if and only if R R R can be defined by a conjunction of graphs of permutations { ( 0 , 1 ) , ( 1 , 2 ) , ( 2 , 0 ) } \{(0,1),(1,2),(2,0)\} {( 0 , 1 ) , ( 1 , 2 ) , ( 2 , 0 )} and { ( 0 , 0 ) , ( 1 , 2 ) , ( 2 , 1 ) } \{(0,0),(1,2),(2,1)\} {( 0 , 0 ) , ( 1 , 2 ) , ( 2 , 1 )} .
Hint. Use a similar proof architecture as in the proof of Theorem 13.69 . In the situation where we can apply Proposition 12.16 , we obtain that A A A is abelian and by Theorem 12.13 , A A A is affine with a central Maltsev operation m ′ m' m ′ . However, m ′ ≠ m m' \ne m m ′ = m , a contradiction (Exercise 164).
Exercise 253. Show that a relation R ⊆ { 0 , 1 , 2 } n R \subseteq\{0,1,2\}^{n} R ⊆ { 0 , 1 , 2 } n is preserved by the Maltsev operation m m m in Example 8.11 if and only if it can be defined from the unary relations, H H H , and L L L .
Exercise 254. Show that a subdirect relation R ⊆ { 0 , 1 , 2 } n R \subseteq\{0,1,2\}^{n} R ⊆ { 0 , 1 , 2 } n is preserved by the Maltsev operation m m m in Example 8.10 if and only if R R R can be defined primitively positively from the graphs of permutations { ( 0 , 1 ) , ( 1 , 2 ) , ( 2 , 0 ) } \{(0,1),(1,2),(2,0)\} {( 0 , 1 ) , ( 1 , 2 ) , ( 2 , 0 )} and { ( 0 , 0 ) , ( 1 , 2 ) , ( 2 , 1 ) } \{(0,0),(1,2),(2,1)\} {( 0 , 0 ) , ( 1 , 2 ) , ( 2 , 1 )} and from { ( x , y , z ) ∈ { 0 , 1 } 3 ∣ x + y + z = 0 m o d 2 } \{(x,y,z) \in\{0,1\}^{3} \mid x+y+z=0 \mathbin{\mathrm{mod}} 2\} {( x , y , z ) ∈ { 0 , 1 } 3 ∣ x + y + z = 0 mod 2 } .
Hints. First prove the following substeps:
Reduce the general case to the case that ∣ π i ( R ) ∣ ≥ 2 |\pi_i(R)| \ge2 ∣ π i ( R ) ∣ ≥ 2 for every i ∈ { 1 , … , n } i \in\{1,\ldots,n\} i ∈ { 1 , … , n } .
Reduce the general case to the case that π i ( R ) = { 0 , 1 } \pi_i(R)=\{0,1\} π i ( R ) = { 0 , 1 } whenever ∣ π i ( R ) ∣ = 2 |\pi_i(R)|=2 ∣ π i ( R ) ∣ = 2 for some i ∈ { 1 , … , n } i \in\{1,\ldots,n\} i ∈ { 1 , … , n } .
Reduce the general case to the case where R = R ′ × { 0 , 1 , 2 } m R=R' \times\{0,1,2\}^{m} R = R ′ × { 0 , 1 , 2 } m where R ′ ⊆ { 0 , 1 } n R' \subseteq\{0,1\}^{n} R ′ ⊆ { 0 , 1 } n .
Show by induction on m m m that a relation R R R as in the previous item can be defined by a conjunction of linear equations over { 0 , 1 } \{0,1\} { 0 , 1 } (the most interesting step).
Express linear equations over two-element subsets with primitive positive formulas over the given relations.
Cyclic Terms
An operation c : A n → A c\colon A^{n} \to A c : A n → A , for n ≥ 2 n \ge2 n ≥ 2 , is cyclic if it satisfies for all a 1 , … , a n ∈ A a_1,\ldots,a_n \in A a 1 , … , a n ∈ A that c ( a 1 , … , a n ) = c ( a 2 , … , a n , a 1 ) c(a_1,\ldots,a_n)=c(a_2,\ldots,a_n,a_1) c ( a 1 , … , a n ) = c ( a 2 , … , a n , a 1 ) . Cyclic operations are in particular Taylor operations. Conversely, a result of Barto and Kozik (Theorem 14.4 below) implies that every Taylor operation on a finite set generates a cyclic operation.
We start with some easy but useful observations about cyclic terms. The cyclic composition s ↺ t s \circlearrowleft t s ↺ t of a term s s s of arity k k k and a term t t t of arity l l l is the operation (or term) of arity l l l defined by
( x 1 , … , x l ) ↦ s ( t ( x 1 , … , x l ) , t ( x 2 , … , x l , x 1 ) , … ) . (x_1,\ldots,x_l) \mapsto s\bigl(t(x_1,\ldots,x_l),t(x_2,\ldots,x_l,x_1),\ldots\bigr). ( x 1 , … , x l ) ↦ s ( t ( x 1 , … , x l ) , t ( x 2 , … , x l , x 1 ) , … ) .
The following is easy to see.
Lemma 14.1. Let s : A k → A s\colon A^k \to A s : A k → A and t : A l → A t\colon A^l \to A t : A l → A be operations.
If s s s is arbitrary and t t t is cyclic, then s ↺ t s \circlearrowleft t s ↺ t is cyclic.
If s s s is cyclic, t t t is arbitrary, and l l l divides k k k , then s ↺ t s \circlearrowleft t s ↺ t is cyclic.
Proof. For i ≥ 1 i \ge1 i ≥ 1 , put
u i : = t ( x i , x i + 1 , … , x i + l − 1 ) , u_i:=t(x_i,x_{i+1},\ldots,x_{i+l-1}), u i := t ( x i , x i + 1 , … , x i + l − 1 ) ,
where indices are read modulo l l l . Thus u i + l = u i u_{i+l}=u_i u i + l = u i and
( s ↺ t ) ( x 1 , … , x l ) = s ( u 1 , … , u k ) . (s \circlearrowleft t)(x_1,\ldots,x_l)=s(u_1,\ldots,u_k). ( s ↺ t ) ( x 1 , … , x l ) = s ( u 1 , … , u k ) .
Cyclically shifting x 1 , … , x l x_1,\ldots,x_l x 1 , … , x l replaces this expression by s ( u 2 , … , u k + 1 ) s(u_2,\ldots,u_{k+1}) s ( u 2 , … , u k + 1 ) .
If t t t is cyclic, then u 1 = ⋯ = u k u_1=\cdots=u_k u 1 = ⋯ = u k , so the two expressions are equal. If s s s is cyclic and l l l divides k k k , then u k + 1 = u 1 u_{k+1}=u_1 u k + 1 = u 1 , and hence
s ( u 2 , … , u k + 1 ) = s ( u 2 , … , u k , u 1 ) = s ( u 1 , … , u k ) . s(u_2,\ldots,u_{k+1})=s(u_2,\ldots,u_k,u_1)=s(u_1,\ldots,u_k). s ( u 2 , … , u k + 1 ) = s ( u 2 , … , u k , u 1 ) = s ( u 1 , … , u k ) .
Thus s ↺ t s \circlearrowleft t s ↺ t is cyclic in both cases. □ \square □
Exercise 255. Show that if A = ( { 0 , 1 } ; min ) A= (\{0,1\};\min) A = ({ 0 , 1 } ; min ) and f ∈ Clo ( A ) ( k ) f\in\operatorname{Clo}(A)^{(k)} f ∈ Clo ( A ) ( k ) is cyclic, then
f ( x 1 , … , x k ) = min ( x 1 , … , x k ) . f(x_1,\ldots,x_k)=\min(x_1,\ldots,x_k). f ( x 1 , … , x k ) = min ( x 1 , … , x k ) .
Exercise 256. If s s s and t t t are cyclic operations of arity k k k and l l l , respectively, then star composition s ∗ t s\ast t s ∗ t (Definition 7.39) is cyclic after reordering the arguments, i.e., there is a permutation α \alpha α of [ k l ] [kl] [ k l ] such that ( s ∗ t ) α (s\ast t)_\alpha ( s ∗ t ) α is cyclic.
Exercise 257. Suppose that A = ( { 0 , 1 } ; majority ) A=(\{0,1\};\operatorname{majority}) A = ({ 0 , 1 } ; majority ) and f ∈ Clo ( A ) ( k ) f\in\operatorname{Clo}(A)^{(k)} f ∈ Clo ( A ) ( k ) is cyclic. Show that
k ≥ 3 k\ge3 k ≥ 3 ;
if r > k / 2 r>k/2 r > k /2 and c ∈ A k c\in A^k c ∈ A k is such that c i = a c_i=a c i = a for i ≤ r i\le r i ≤ r and c i = b c_i=b c i = b otherwise, for distinct a a a and b b b , then f ( c ) = a f(c)=a f ( c ) = a ;
if r , s , t r,s,t r , s , t are such that r + s + t = k r+s+t=k r + s + t = k , r + s > t r+s>t r + s > t , s + t > r s+t>r s + t > r , and t + r > s t+r>s t + r > s , then the operation
( x , y , z ) ↦ f ( x , … , x ⏟ r , y , … , y ⏟ s , z , … , z ⏟ t ) (61) (x,y,z)\mapsto f(\underbrace{x,\ldots,x}_{r},\underbrace{y,\ldots,y}_{s},\underbrace{z,\ldots,z}_{t}) \tag*{(61)} ( x , y , z ) ↦ f ( r x , … , x , s y , … , y , t z , … , z ) (61)
is the ternary majority operation on { 0 , 1 } \{0,1\} { 0 , 1 } .
Exercise 258. Suppose that p p p is a prime and A = ( { 0 , … , p − 1 } ; m ) A=(\{0,\ldots,p-1\};m) A = ({ 0 , … , p − 1 } ; m ) where m : A 3 → A m\colon A^3\to A m : A 3 → A is given by m ( x , y , z ) = x − y + z ( m o d p ) m(x,y,z)=x-y+z\pmod p m ( x , y , z ) = x − y + z ( mod p ) and that f ∈ Clo ( A ) ( k ) f\in\operatorname{Clo}(A)^{(k)} f ∈ Clo ( A ) ( k ) is cyclic. Show that if r , s , t r,s,t r , s , t are such that
then the ternary operation defined in (61) equals x − y + z m o d p x-y+z\ \bmod p x − y + z mod p .
Exercise 259. Does Exercise 258 remain true if we drop the assumption that p p p is prime?
Cyclic Relations
When a = ( a 0 , a 1 , … , a k − 1 ) a=(a_0,a_1,\ldots,a_{k-1}) a = ( a 0 , a 1 , … , a k − 1 ) is a k k k -tuple, we write ρ ( a ) \rho(a) ρ ( a ) for the k k k -tuple ( a 1 , … , a k − 1 , a 0 ) (a_1,\ldots,a_{k-1},a_0) ( a 1 , … , a k − 1 , a 0 ) .
Definition 14.2. A k k k -ary relation R R R on a set A A A is called cyclic if for all a ∈ A k a\in A^k a ∈ A k
a ∈ R ⇒ ρ ( a ) ∈ R . a\in R\Rightarrow\rho(a)\in R. a ∈ R ⇒ ρ ( a ) ∈ R .
Lemma 14.3 (from [12]). A finite idempotent algebra A A A has a k k k -ary cyclic term if and only if every nonempty cyclic subalgebra of A k A^k A k contains a constant tuple.
Proof. Let τ \tau τ be the signature of A \mathbf A A . For the easy direction, suppose that A \mathbf A A has a cyclic τ \tau τ -term t ( x 1 , … , x k ) t(x_1,\ldots,x_k) t ( x 1 , … , x k ) . Let a = ( a 0 , a 1 , … , a k − 1 ) a=(a_0,a_1,\ldots,a_{k-1}) a = ( a 0 , a 1 , … , a k − 1 ) be an arbitrary tuple in a cyclic subalgebra R R R of A k \mathbf A^k A k . As R R R is cyclic, ρ ( a ) , … , ρ k − 1 ( a ) ∈ R \rho(a),\ldots,\rho^{k-1}(a)\in R ρ ( a ) , … , ρ k − 1 ( a ) ∈ R , and since R R R is a subalgebra
b : = t A ( a , ρ ( a ) , … , ρ k − 1 ( a ) ) ∈ R . b:=t^{\mathbf A}(a,\rho(a),\ldots,\rho^{k-1}(a))\in R. b := t A ( a , ρ ( a ) , … , ρ k − 1 ( a )) ∈ R .
Since t t t is cyclic, the k k k -tuple b b b is constant.
To prove the converse direction, we assume that every nonempty cyclic subalgebra of A k \mathbf A^k A k contains a constant tuple. For a τ \tau τ -term f ( x 0 , x 1 , … , x k − 1 ) f(x_0,x_1,\ldots,x_{k-1}) f ( x 0 , x 1 , … , x k − 1 ) , let S ( f ) S(f) S ( f ) be the set of all a ∈ A k a\in A^k a ∈ A k such that
f A ( a ) = f A ( ρ ( a ) ) = ⋯ = f A ( ρ k − 1 ( a ) ) . f^{\mathbf A}(a)=f^{\mathbf A}(\rho(a))=\cdots=f^{\mathbf A}(\rho^{k-1}(a)). f A ( a ) = f A ( ρ ( a )) = ⋯ = f A ( ρ k − 1 ( a )) .
Choose f f f such that ∣ S ( f ) ∣ |S(f)| ∣ S ( f ) ∣ is maximal (here we use the assumption that A A A is finite). If ∣ S ( f ) ∣ = ∣ A k ∣ |S(f)|=|A^k| ∣ S ( f ) ∣ = ∣ A k ∣ , then f A f^{\mathbf A} f A is cyclic and we are done. Otherwise, arbitrarily pick a = ( a 0 , a 1 , … , a k − 1 ) ∈ A k ∖ S ( f ) a=(a_0,a_1,\ldots,a_{k-1})\in A^k\setminus S(f) a = ( a 0 , a 1 , … , a k − 1 ) ∈ A k ∖ S ( f ) . For i ∈ { 0 , … , k − 1 } i\in\{0,\ldots,k-1\} i ∈ { 0 , … , k − 1 } , define b i : = f A ( ρ i ( a ) ) b_i:=f^{\mathbf A}(\rho^i(a)) b i := f A ( ρ i ( a )) and b : = ( b 0 , … , b k − 1 ) b:=(b_0,\ldots,b_{k-1}) b := ( b 0 , … , b k − 1 ) , and let B : = { b , ρ ( b ) , … , ρ k − 1 ( b ) } B:=\{b,\rho(b),\ldots,\rho^{k-1}(b)\} B := { b , ρ ( b ) , … , ρ k − 1 ( b )} .
We claim that the smallest subalgebra C C C of A k \mathbf A^k A k that contains B B B is cyclic. So let c ∈ C c\in C c ∈ C be arbitrary. Since C C C is generated by B B B , there exists a τ \tau τ -term s ( x 0 , x 1 , … , x k − 1 ) s(x_0,x_1,\ldots,x_{k-1}) s ( x 0 , x 1 , … , x k − 1 ) such that
c = s A ( b , ρ ( b ) , … , ρ k − 1 ( b ) ) . c=s^{\mathbf A}(b,\rho(b),\ldots,\rho^{k-1}(b)). c = s A ( b , ρ ( b ) , … , ρ k − 1 ( b )) .
Then
ρ ( c ) = s A ( ρ ( b ) , ρ 2 ( b ) , … , ρ k − 1 ( b ) , b ) ∈ C , \rho(c)=s^{\mathbf A}(\rho(b),\rho^2(b),\ldots,\rho^{k-1}(b),b)\in C, ρ ( c ) = s A ( ρ ( b ) , ρ 2 ( b ) , … , ρ k − 1 ( b ) , b ) ∈ C ,
proving the claim.
Since C C C is cyclic, by our assumption it contains a constant tuple d d d . Then there exists a τ \tau τ -term r ( x 0 , … , x k − 1 ) r(x_0,\ldots,x_{k-1}) r ( x 0 , … , x k − 1 ) such that
d = r C ( b , ρ ( b ) , … , ρ k − 1 ( b ) ) . d=r^{\mathbf C}(b,\rho(b),\ldots,\rho^{k-1}(b)). d = r C ( b , ρ ( b ) , … , ρ k − 1 ( b )) .
Note that
r A ( b ) = r A ( ρ ( b ) ) = ⋯ = r A ( ρ k − 1 ( b ) ) r^{\mathbf A}(b)=r^{\mathbf A}(\rho(b))=\cdots=r^{\mathbf A}(\rho^{k-1}(b)) r A ( b ) = r A ( ρ ( b )) = ⋯ = r A ( ρ k − 1 ( b ))
since d d d is constant. It follows that b ∈ S ( r ) b\in S(r) b ∈ S ( r ) .
Now consider the τ \tau τ -term t ( x 0 , x 1 , … , x k − 1 ) t(x_0,x_1,\ldots,x_{k-1}) t ( x 0 , x 1 , … , x k − 1 ) defined by
t ( x ) : = r ∘ f = r ( f ( x ) , f ( ρ ( x ) ) , … , f ( ρ k − 1 ( x ) ) ) . t(x):=r\circ f=r(f(x),f(\rho(x)),\ldots,f(\rho^{k-1}(x))). t ( x ) := r ∘ f = r ( f ( x ) , f ( ρ ( x )) , … , f ( ρ k − 1 ( x ))) .
where x : = ( x 0 , x 1 , … , x k − 1 ) x:=(x_0,x_1,\ldots,x_{k-1}) x := ( x 0 , x 1 , … , x k − 1 ) . We claim that S ( f ) ⊆ S ( t ) S(f)\subseteq S(t) S ( f ) ⊆ S ( t ) . Let e ∈ S ( f ) e\in S(f) e ∈ S ( f ) . To show that e ∈ S ( t ) e\in S(t) e ∈ S ( t ) , note that for all i ∈ { 0 , … , k − 1 } i\in\{0,\ldots,k-1\} i ∈ { 0 , … , k − 1 }
t A ( ρ i ( e ) ) = r A ( f A ( ρ i ( e ) ) , f A ( ρ i + 1 ( e ) ) , … , f A ( ρ i − 1 ( e ) ) ) = r A ( f A ( e ) , f A ( ρ ( e ) ) , … , f A ( ρ k − 1 ( e ) ) ) (since e ∈ S ( f ) ) = t A ( e ) . \begin{aligned}
t^{\mathbf A}(\rho^i(e))&=r^{\mathbf A}(f^{\mathbf A}(\rho^i(e)),f^{\mathbf A}(\rho^{i+1}(e)),\ldots,f^{\mathbf A}(\rho^{i-1}(e)))\\
&=r^{\mathbf A}(f^{\mathbf A}(e),f^{\mathbf A}(\rho(e)),\ldots,f^{\mathbf A}(\rho^{k-1}(e))) &&\text{(since }e\in S(f)\text{)}\\
&=t^{\mathbf A}(e).
\end{aligned} t A ( ρ i ( e )) = r A ( f A ( ρ i ( e )) , f A ( ρ i + 1 ( e )) , … , f A ( ρ i − 1 ( e ))) = r A ( f A ( e ) , f A ( ρ ( e )) , … , f A ( ρ k − 1 ( e ))) = t A ( e ) . (since e ∈ S ( f ) )
Figure 21. Diagram for the proof of Lemma 14.3.
Moreover, a ∈ S ( t ) a \in S(t) a ∈ S ( t ) , because
t A ( ρ i ( a ) ) = r A ( f A ( ρ i ( a ) ) , f A ( ρ i + 1 ( a ) ) , … , f A ( ρ i − 1 ( a ) ) ) = r A ( b i , b i + 1 , … , b i − 1 ) = r A ( ρ i ( b ) ) t^{A}(\rho^{i}(a)) = r^{A}(f^{A}(\rho^{i}(a)), f^{A}(\rho^{i+1}(a)), \ldots, f^{A}(\rho^{i-1}(a))) \\
= r^{A}(b_i, b_{i+1}, \ldots, b_{i-1}) \\
= r^{A}(\rho^{i}(b)) t A ( ρ i ( a )) = r A ( f A ( ρ i ( a )) , f A ( ρ i + 1 ( a )) , … , f A ( ρ i − 1 ( a ))) = r A ( b i , b i + 1 , … , b i − 1 ) = r A ( ρ i ( b ))
is constant for all i i i by the choice of r r r . We obtain a contradiction to the maximality of ∣ S ( f ) ∣ |S(f)| ∣ S ( f ) ∣ . □
Exercise 260. Show that the digraph C 2 + + C_2^{++} C 2 ++ from Exercise 79 has a ternary cyclic polymorphism.
The Cyclic Terms Theorem
In this section we prove the following theorem of Barto and Kozik [12].
Theorem 14.4 (of [12]). Let A A A be a finite algebra. Then the following are equivalent.
A A A has a Taylor term;
A A A has a cyclic term;
for all prime numbers p > ∣ A ∣ p > |A| p > ∣ A ∣ , the algebra A A A has a p p p -ary cyclic term.
Proof. The implication from 3. to 2. and the implication from 2. to 1. are immediate. We prove the implication from 1. to 3. We first explain why it suffices to prove this implication for idempotent algebras.
Suppose that the implication has been proved for all finite idempotent algebras. Let A A A be an arbitrary finite algebra with a Taylor term, and put C : = Clo ( A ) \mathcal{C} := \operatorname{Clo}(A) C := Clo ( A ) . By Proposition 9.13, there exists an idempotent operation clone D \mathcal{D} D on a finite set D D D , with ∣ D ∣ ≤ ∣ A ∣ |D| \le|A| ∣ D ∣ ≤ ∣ A ∣ , and minion homomorphisms ξ : C → D \xi: \mathcal{C} \to\mathcal{D} ξ : C → D and η : D → C \eta: \mathcal{D} \to\mathcal{C} η : D → C . Let D D D be the algebra whose basic operations are all the operations in D \mathcal{D} D , so that Clo ( D ) = D \operatorname{Clo}(D) = \mathcal{D} Clo ( D ) = D . Since minion homomorphisms preserve minors, they preserve height-one identities. In particular, ξ \xi ξ maps a Taylor operation of C \mathcal{C} C to a Taylor operation of D \mathcal{D} D . Hence, D D D has a Taylor term. Let p > ∣ A ∣ p > |A| p > ∣ A ∣ be prime. Then p > ∣ D ∣ p > |D| p > ∣ D ∣ , and the idempotent case yields a p p p -ary cyclic operation c ∈ D c \in\mathcal{D} c ∈ D . The cyclic identity is a height-one identity, and therefore η ( c ) \eta(c) η ( c ) is a p p p -ary cyclic operation in C \mathcal{C} C . Thus, A A A has a p p p -ary cyclic term.
:::
It remains to prove the implication for finite idempotent algebras. Let A \mathbf{A} A be such an algebra and let p > ∣ A ∣ p>|A| p > ∣ A ∣ be prime. We proceed by induction on ∣ A ∣ |A| ∣ A ∣ . For ∣ A ∣ = 1 |A|=1 ∣ A ∣ = 1 the statement is trivial. For the induction step, we use Lemma 14.3. Let R ≤ A p R\leq\mathbf{A}^{p} R ≤ A p be non-empty and cyclic. We have to show that R R R contains a constant tuple.
We may assume without loss of generality that R R R is subdirect: indeed, if B : = π i ( R ) B:=\pi_i(R) B := π i ( R ) is a proper subuniverse of A \mathbf{A} A , for some i ∈ [ p ] i\in[p] i ∈ [ p ] , then π j ( R ) = B \pi_j(R)=B π j ( R ) = B for all j ∈ [ p ] j\in[p] j ∈ [ p ] by the cyclicity of R R R , and hence R ≤ B p R\leq B^p R ≤ B p contains a constant tuple by the inductive assumption.
If there is { i , j } ∈ ( [ p ] 2 ) \{i,j\}\in\binom{[p]}{2} { i , j } ∈ ( 2 [ p ] ) such that π i , j ( R ) \pi_{i,j}(R) π i , j ( R ) (Definition 6.35) is the graph of an automorphism α \alpha α of A \mathbf{A} A , then π j , 2 j − i ( R ) \pi_{j,2j-i}(R) π j , 2 j − i ( R ) is the graph of α \alpha α as well, because R R R is cyclic, and the same applies to π 2 j − i , 3 j − 2 i ( R ) \pi_{2j-i,3j-2i}(R) π 2 j − i , 3 j − 2 i ( R ) , etc. Moreover, α p = id A \alpha^p=\operatorname{id}_{A} α p = id A since R R R is cyclic and of arity p p p . Since p > ∣ A ∣ p>|A| p > ∣ A ∣ is prime, we must have α = id A \alpha=\operatorname{id}_{A} α = id A . This shows that R R R contains for every a ∈ A a\in A a ∈ A the constant tuple ( a , … , a ) (a,\ldots,a) ( a , … , a ) : by subdirectness, there exists a tuple t = ( t 1 , … , t p ) ∈ R t=(t_1,\ldots,t_p)\in R t = ( t 1 , … , t p ) ∈ R such that t i = a t_i=a t i = a ; by what we have seen above, t j = a t_j=a t j = a , t 2 j − i = a t_{2j-i}=a t 2 j − i = a , etc, and since p p p is prime we obtain that t = ( a , … , a ) t=(a,\ldots,a) t = ( a , … , a ) .
So we may suppose that for every { i , j } ∈ ( [ p ] 2 ) \{i,j\}\in\binom{[p]}{2} { i , j } ∈ ( 2 [ p ] ) , the relation π i , j ( R ) \pi_{i,j}(R) π i , j ( R ) is not the graph of an automorphism of A \mathbf{A} A .
Suppose that A \mathbf{A} A has a proper congruence C C C . Let h h h be the homomorphism from A \mathbf{A} A to A / C \mathbf{A}/C A / C . Since C C C is proper, ∣ A / C ∣ |A/C| ∣ A / C ∣ is strictly smaller than ∣ A ∣ |A| ∣ A ∣ . Let h ∗ h^* h ∗ be the homomorphism from A p \mathbf{A}^{p} A p to ( A / C ) p (\mathbf{A}/C)^p ( A / C ) p obtained by applying h h h componentwise. Then h ∗ ( R ) ≤ ( A / C ) p h^*(R)\leq(\mathbf{A}/C)^p h ∗ ( R ) ≤ ( A / C ) p (Lemma 7.16 ) is cyclic, so the inductive assumption implies that h ∗ ( R ) h^*(R) h ∗ ( R ) contains a constant tuple ( a / C , … , a / C ) (a/C,\ldots,a/C) ( a / C , … , a / C ) . Note that a / C a/C a / C is a nonempty proper subalgebra of A \mathbf{A} A since A \mathbf{A} A is idempotent and C C C is proper. Then R ∩ ( a / C ) p ≤ A p R\cap(a/C)^p\leq\mathbf{A}^p R ∩ ( a / C ) p ≤ A p is non-empty and cyclic, and hence contains a constant tuple by the inductive assumption. Thus, if A \mathbf{A} A is not simple we are done.
Now suppose that A \mathbf{A} A is simple. Note that in this case, π i , j ( R ) \pi_{i,j}(R) π i , j ( R ) is linked for every { i , j } ∈ ( [ p ] 2 ) \{i,j\}\in\binom{[p]}{2} { i , j } ∈ ( 2 [ p ] ) . Indeed, by assumption, π i , j ( R ) \pi_{i,j}(R) π i , j ( R ) is not the graph of an automorphism of A \mathbf{A} A . Since R R R is subdirect, so is π i , j ( R ) \pi_{i,j}(R) π i , j ( R ) . Hence, the simplicity of A \mathbf{A} A implies that π i , j ( R ) \pi_{i,j}(R) π i , j ( R ) is linked (Exercise 232). Since A \mathbf{A} A is simple, one of the cases from Theorem 13.69 applies.
First consider the case that A \mathbf{A} A is subdirectly complete. By our assumption, π i , j ( R ) \pi_{i,j}(R) π i , j ( R ) is not the graph of an automorphism of A \mathbf{A} A for any distinct i , j ∈ [ p ] i,j\in[p] i , j ∈ [ p ] . Since every such projection is subdirect, subdirect completeness implies that π i , j ( R ) = A 2 \pi_{i,j}(R)=A^2 π i , j ( R ) = A 2 . By Definition 13.65, the subdirect relation R R R has a definition by a conjunction of atomic formulas over the structure whose relations are the graphs of the automorphisms of A \mathbf{A} A . Consider a conjunct G α ( x i , x j ) G_\alpha(x_i,x_j) G α ( x i , x j ) , where G α G_\alpha G α is the graph of an automorphism α \alpha α of A \mathbf{A} A . If i ≠ j i\ne j i = j , then π i , j ( R ) ⊆ G α \pi_{i,j}(R)\subseteq G_\alpha π i , j ( R ) ⊆ G α , contradicting π i , j ( R ) = A 2 \pi_{i,j}(R)=A^2 π i , j ( R ) = A 2 . If i = j i=j i = j , then the subdirectness of R R R implies that α ( a ) = a \alpha(a)=a α ( a ) = a for every a ∈ A a\in A a ∈ A , so α = id A \alpha=\operatorname{id}_{A} α = id A and the conjunct is tautological. Thus the conjunction contains no non-trivial conjuncts, and consequently R = A p R=A^p R = A p . In particular, R R R contains a constant tuple.
If A \mathbf{A} A is affine with underlying abelian group ( A ; + , − , 0 ) (A; +, -, 0) ( A ; + , − , 0 ) , then for all k ≥ 1 k\geq1 k ≥ 1 and a 1 , … , a k ∈ Z a_1,\ldots,a_k\in\mathbb{Z} a 1 , … , a k ∈ Z such that a 1 + ⋯ + a k ≡ 1 ( m o d ∣ A ∣ ) a_1+\cdots+a_k\equiv1\pmod{|A|} a 1 + ⋯ + a k ≡ 1 ( mod ∣ A ∣ ) the operation ( x 1 , … , x k ) ↦ a 1 x 1 + ⋯ + a k x k (x_1,\ldots,x_k)\mapsto a_1x_1+\cdots+a_kx_k ( x 1 , … , x k ) ↦ a 1 x 1 + ⋯ + a k x k is a term operation of A \mathbf{A} A (combine Theorem 12.13 and Exercise 147). Since p > ∣ A ∣ p>|A| p > ∣ A ∣ is prime, there exists i i i such that i p ≡ 1 ( m o d ∣ A ∣ ) ip\equiv1\pmod{|A|} i p ≡ 1 ( mod ∣ A ∣ ) . In particular, ( x 1 , … , x p ) ↦ i x 1 + ⋯ + i x p (x_1,\ldots,x_p)\mapsto ix_1+\cdots+ix_p ( x 1 , … , x p ) ↦ i x 1 + ⋯ + i x p is a term operation of A \mathbf{A} A , and clearly cyclic.
The final case is that A \mathbf{A} A has a proper 2-absorbing or centrally absorbing subalgebra U U U . In both cases, U U U is 3-absorbing (2-absorbing trivially implies 3-absorbing, and centrally absorbing implies 3-absorbing by Theorem 13.55). Define a directed graph D \mathcal{D} D whose vertices are pairs ( i , B ) (i,B) ( i , B ) where i ∈ [ p ] i\in[p] i ∈ [ p ] and B ⪇ A B\lneq\mathbf{A} B ⪇ A is a proper 3-absorbing, and whose edges are the pairs ( ( i , B ) , ( j , B ′ ) ) ((i,B),(j,B')) (( i , B ) , ( j , B ′ )) for distinct i , j ∈ [ p ] i,j\in[p] i , j ∈ [ p ] with B + π i , j ( R ) ⊆ B ′ B+\pi_{i,j}(R)\subseteq B' B + π i , j ( R ) ⊆ B ′ (the notation has been introduced in Exercise 224).16
We shall use the following restricted transitivity property of the edge relation. Suppose that D \mathcal{D} D contains the edges ( ( i , B ) , ( j , B ′ ) ) ((i,B),(j,B')) (( i , B ) , ( j , B ′ )) and ( ( j , B ′ ) , ( k , B ′ ′ ) ) ((j,B'),(k,B'')) (( j , B ′ ) , ( k , B ′′ )) , where i ≠ k i \ne k i = k . Then D \mathcal{D} D also contains the edge ( ( i , B ) , ( k , B ′ ′ ) ) ((i,B),(k,B'')) (( i , B ) , ( k , B ′′ )) . Indeed, if t ∈ R t \in R t ∈ R and t i ∈ B t_i \in B t i ∈ B , then the first edge gives t j ∈ B ′ t_j \in B' t j ∈ B ′ , and the second gives t k ∈ B ′ ′ t_k \in B'' t k ∈ B ′′ . Hence,
B + π i , k ( R ) ⊆ B ′ ′ . B + \pi_{i,k}(R) \subseteq B''. B + π i , k ( R ) ⊆ B ′′ .
Also note that if B ◃ A B \triangleleft\mathbf{A} B ◃ A is 3-absorbing, then B + π i , j ( R ) ◃ A B + \pi_{i,j}(R) \triangleleft\mathbf{A} B + π i , j ( R ) ◃ A is 3-absorbing as well (Exercise 224).
Claim. If D \mathcal{D} D contains the edge ( ( i , B ) , ( j , B ′ ) ) ((i,B),(j,B')) (( i , B ) , ( j , B ′ )) , then ( ( j , B ′ ) , ( i , B ) ) ((j,B'),(i,B)) (( j , B ′ ) , ( i , B )) is not an edge. To prove this claim, suppose for contradiction that i , j ∈ [ p ] i,j \in[p] i , j ∈ [ p ] are distinct and
B + π i , j ( R ) ⊆ B ′ and B ′ + π j , i ( R ) ⊆ B . B + \pi_{i,j}(R) \subseteq B' \quad\text{and}\quad B' + \pi_{j,i}(R) \subseteq B. B + π i , j ( R ) ⊆ B ′ and B ′ + π j , i ( R ) ⊆ B .
For X ⊆ A X \subseteq A X ⊆ A , define X 0 : = X × { 0 } X_0 := X \times\{0\} X 0 := X × { 0 } and X 1 : = X × { 1 } X_1 := X \times\{1\} X 1 := X × { 1 } . Let G G G be the bipartite graph with vertex set A 0 ∪ A 1 A_0 \cup A_1 A 0 ∪ A 1 and edge set
{ { ( a , 0 ) , ( a ′ , 1 ) } ∣ ( a , a ′ ) ∈ π i , j ( R ) } . \{ \{(a,0),(a',1)\} \mid(a,a') \in\pi_{i,j}(R) \}. {{( a , 0 ) , ( a ′ , 1 )} ∣ ( a , a ′ ) ∈ π i , j ( R )} .
Then every neighbour of B 0 B_0 B 0 lies in B 1 ′ B'_1 B 1 ′ , and every neighbour of B 1 ′ B'_1 B 1 ′ lies in B 0 B_0 B 0 . Hence, no edge of G G G joins B 0 ∪ B 1 ′ B_0 \cup B'_1 B 0 ∪ B 1 ′ to its complement
( A ∖ B ) 0 ∪ ( A ∖ B ′ ) 1 . (A \setminus B)_0 \cup(A \setminus B')_1. ( A ∖ B ) 0 ∪ ( A ∖ B ′ ) 1 .
Both sets are non-empty because B B B and B ′ B' B ′ are non-empty proper subuniverses of A \mathbf{A} A . Moreover, π i , j ( R ) \pi_{i,j}(R) π i , j ( R ) is subdirect, so G G G has no isolated vertices. Thus, G G G is disconnected, contradicting that π i , j ( R ) \pi_{i,j}(R) π i , j ( R ) is linked.
We claim that D \mathcal{D} D is acyclic. Suppose otherwise, and choose a directed cycle of minimum length,
( i 0 , B 0 ) , ( i 1 , B 1 ) , … , ( i m − 1 , B m − 1 ) , ( i 0 , B 0 ) , (i_0,B_0),(i_1,B_1),\ldots,(i_{m-1},B_{m-1}),(i_0,B_0), ( i 0 , B 0 ) , ( i 1 , B 1 ) , … , ( i m − 1 , B m − 1 ) , ( i 0 , B 0 ) ,
where the subscripts are read modulo m m m . Since D \mathcal{D} D has no loops, m ≥ 2 m \ge2 m ≥ 2 , and the claim rules out m = 2 m=2 m = 2 . Suppose that i r ≠ i r + 2 i_r \ne i_{r+2} i r = i r + 2 for some r r r . The restricted transitivity property gives an edge from ( i r , B r ) (i_r,B_r) ( i r , B r ) to ( i r + 2 , B r + 2 ) (i_{r+2},B_{r+2}) ( i r + 2 , B r + 2 ) , producing a directed cycle of length m − 1 m-1 m − 1 and contradicting the minimality of m m m . Thus, i r = i r + 2 i_r=i_{r+2} i r = i r + 2 for every r r r . Since consecutive indices are distinct, the indices alternate between two values and m m m is even. Moreover, B r ⊆ B r + 2 B_r \subseteq B_{r+2} B r ⊆ B r + 2 for every r r r . Indeed, for b ∈ B r b \in B_r b ∈ B r , the subdirectness of π i r , i r + 1 ( R ) \pi_{i_r,i_{r+1}}(R) π i r , i r + 1 ( R ) yields an a ∈ A a \in A a ∈ A such that
( b , a ) ∈ π i r , i r + 1 ( R ) . (b,a) \in\pi_{i_r,i_{r+1}}(R). ( b , a ) ∈ π i r , i r + 1 ( R ) .
The first edge gives a ∈ B r + 1 a \in B_{r+1} a ∈ B r + 1 , and, since i r + 2 = i r i_{r+2}=i_r i r + 2 = i r , the second edge gives b ∈ B r + 2 b \in B_{r+2} b ∈ B r + 2 . Going around the cycle, we obtain
B 0 ⊆ B 2 ⊆ ⋯ ⊆ B m − 2 ⊆ B 0 , B_0 \subseteq B_2 \subseteq\cdots\subseteq B_{m-2} \subseteq B_0, B 0 ⊆ B 2 ⊆ ⋯ ⊆ B m − 2 ⊆ B 0 ,
and hence B 0 = B 2 B_0=B_2 B 0 = B 2 . Therefore ( i 0 , B 0 ) = ( i 2 , B 2 ) (i_0,B_0)=(i_2,B_2) ( i 0 , B 0 ) = ( i 2 , B 2 ) , so the first two edges of the cycle form a directed 2-cycle, contradicting the claim. Thus, D \mathcal{D} D is acyclic.
Since D \mathcal{D} D is finite, non-empty, and acyclic, it must contain a sink ( i , B ) (i,B) ( i , B ) . Note that B + π i , j ( R ) = A B+\pi_{i,j}(R)=A B + π i , j ( R ) = A for all j ∈ [ p ] ∖ { i } j\in[p]\setminus\{i\} j ∈ [ p ] ∖ { i } . Since R R R is cyclic, this implies that π I ( R ) ∩ B 2 ≠ ∅ \pi_I(R)\cap B^2\ne\varnothing π I ( R ) ∩ B 2 = ∅ for all I ∈ ( [ p ] 2 ) I\in\binom{[p]}{2} I ∈ ( 2 [ p ] ) . Hence, R ′ : = R ∩ B p R':=R\cap B^p R ′ := R ∩ B p is non-empty by Corollary 13.22, because B B B is 3-absorbing. Since ∣ B ∣ < ∣ A ∣ |B|<|A| ∣ B ∣ < ∣ A ∣ , we obtain a constant tuple in R ′ ⊆ R R'\subseteq R R ′ ⊆ R by the inductive assumption. □ \square □
Theorem 14.5 (Tractability Theorem, Version 5). Let B \mathbb{B} B be a relational structure with finite domain and finite signature. If B \mathbb{B} B has a cyclic polymorphism, then CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) is in P P P . Otherwise, CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) is N P NP N P -complete.
Proof. An immediate consequence of Theorem 14.4 and Theorem 5.29. □ \square □
Exercise 261. Give an immediate proof (without using results from the text) that K 3 K_3 K 3 does not have weak near unanimity polymorphisms.
Exercise 262. Find a cyclic term in the algebra ( Z p ; m ) (\mathbb{Z}_p;m) ( Z p ; m ) where m m m is given by ( x , y , z ) ↦ x − y + z (x,y,z)\mapsto x-y+z ( x , y , z ) ↦ x − y + z .
Exercise 263. Let A \mathbf{A} A and B \mathbf{B} B be finite algebras with the same signature, each with a Taylor term. Show that A × B \mathbf{A}\times\mathbf{B} A × B has a Taylor term.
Exercise 264. Use the results presented in the text to show that a finite idempotent algebra A \mathbf{A} A has a Taylor term if and only if it has a weak near unanimity term , i.e., a term t t t of arity n ≥ 2 n\ge2 n ≥ 2 such that A \mathbf{A} A satisfies
t ( x , … , x , y ) ≈ t ( x , … , x , y , x ) ≈ ⋯ ≈ t ( y , x , … , x ) t(x,\ldots,x,y)\approx t(x,\ldots,x,y,x)\approx\cdots\approx t(y,x,\ldots,x) t ( x , … , x , y ) ≈ t ( x , … , x , y , x ) ≈ ⋯ ≈ t ( y , x , … , x )
(this was first shown by Maróti and McKenzie [95]; see § 15.4 for more facts about weak near unanimity operations).
Exercise 265. Show that a finite structure has a cyclic polymorphism if and only if it has a weak near unanimity polymorphism (warning: the structure might have non-idempotent operations!).
Exercise 266. Let A \mathbf{A} A and B \mathbf{B} B be finite algebras with the same signature, each with a cyclic term. Show that A × B \mathbf{A}\times\mathbf{B} A × B has a cyclic term as well.
Exercise 267. Let A \mathbf{A} A and B \mathbf{B} B be finite algebras with the same signature, each with a Maltsev term. Is it true that A × B \mathbf{A}\times\mathbf{B} A × B has a Maltsev term?
Siggers Terms of Arity 4
Interestingly, whether a finite algebra has a Taylor term (equivalently: a cyclic term, or a weak near unanimity term from Exercise 264) can be tested by searching for a single 4-ary term s s s that satisfies
s ( a , r , e , a ) ≈ s ( r , a , r , e ) . s(a,r,e,a)\approx s(r,a,r,e). s ( a , r , e , a ) ≈ s ( r , a , r , e ) .
a so-called 4 4 4 -ary Siggers term. Note that this definition comes in numerous variants, because we may permute the arguments of s s s and rename the variables of the identity and obtain equivalent conditions. For instance, if we cyclically shift the first, second, and fourth argument, and fix the third, and rename a a a to x x x , r r r to z z z , and e e e to y y y , we obtain the variant
s ( x , x , y , z ) ≈ s ( y , z , z , x ) s(x,x,y,z) \approx s(y,z,z,x) s ( x , x , y , z ) ≈ s ( y , z , z , x )
which will be used below. Siggers originally found a 6 6 6 -ary term (see § 11.2 ), which has been improved later to the 4 4 4 -ary term given above. The observation that this condition can be obtained by equating variables of a cyclic term of sufficiently high arity is from [82]; the proof below is based on a variant from [34] of their proof.
Theorem 14.6. A finite algebra has a cyclic term if and only if it has a 4 4 4 -ary Siggers term.
Proof. Suppose that A has a cyclic term. Choose numbers a , b ∈ N a,b \in\mathbb{N} a , b ∈ N such that 2 a + 3 b = p 2a+3b=p 2 a + 3 b = p for some prime p p p which is larger than ∣ A ∣ |A| ∣ A ∣ . By Theorem 14.4 , there exists a cyclic term c c c of arity p p p . We define s ( x , y , z , w ) s(x,y,z,w) s ( x , y , z , w ) to be the term
s ( x , y , z , w ) : = c ( x , … , x ⏟ b , y , … , y ⏟ a , z , … , z ⏟ b , w , … , w ⏟ a + b ) . s(x,y,z,w) := c(\underbrace{x,\ldots,x}_{b},\underbrace{y,\ldots,y}_{a},\underbrace{z,\ldots,z}_{b},\underbrace{w,\ldots,w}_{a+b}). s ( x , y , z , w ) := c ( b x , … , x , a y , … , y , b z , … , z , a + b w , … , w ) .
Then
s ( x , x , y , z ) = c ( x , … , x ⏟ b , x , … , x ⏟ a , y , … , y ⏟ b , z , … , z ⏟ a + b ) = c ( y , … , y ⏟ b , z , … , z ⏟ a , z , … , z ⏟ b , x , … , x ⏟ a + b ) = s ( y , z , z , x ) . \begin{aligned}
s(x,x,y,z) &= c(\underbrace{x,\ldots,x}_{b},\underbrace{x,\ldots,x}_{a},\underbrace{y,\ldots,y}_{b},\underbrace{z,\ldots,z}_{a+b}) \\
&= c(\underbrace{y,\ldots,y}_{b},\underbrace{z,\ldots,z}_{a},\underbrace{z,\ldots,z}_{b},\underbrace{x,\ldots,x}_{a+b}) = s(y,z,z,x).
\end{aligned} s ( x , x , y , z ) = c ( b x , … , x , a x , … , x , b y , … , y , a + b z , … , z ) = c ( b y , … , y , a z , … , z , b z , … , z , a + b x , … , x ) = s ( y , z , z , x ) .
Conversely, a Siggers term is a Taylor term, and therefore the other direction follows from Theorem 14.4 . □
The previous result is optimal in the sense that there is no equivalent characterisation using a single ternary Taylor term [76, 82]. However, there is also a system of equations involving only ternary terms that characterises the existence of a Taylor term [74]. Computationally, checking whether a given finite structure has polymorphisms satisfying these identities is easier than checking for a 4 4 4 -ary Siggers polymorphism (for computer experiments, see [25]).
Proposition 14.7 (from [74]). Let A be a finite idempotent algebra. Then A has a Taylor term if and only if A has terms p p p and q q q satisfying the following identities (‘p-q-terms’).
q ( y , x , x ) ≈ q ( x , x , y ) (62) q(y,x,x) \approx q(x,x,y) \tag*{(62)} q ( y , x , x ) ≈ q ( x , x , y ) (62) q ( x , x , y ) ≈ p ( x , y , y ) (63) q(x,x,y) \approx p(x,y,y) \tag*{(63)} q ( x , x , y ) ≈ p ( x , y , y ) (63) p ( x , y , x ) ≈ q ( x , y , x ) (64) p(x,y,x) \approx q(x,y,x) \tag*{(64)} p ( x , y , x ) ≈ q ( x , y , x ) (64) Proof. First suppose that A has a Taylor term and therefore a 4 4 4 -ary Siggers term. Define
p ( x , y , z ) : = s ( y , z , x , x ) and q ( x , y , z ) : = s ( x , x , y , z ) p(x,y,z) := s(y,z,x,x) \quad\text{and}\quad q(x,y,z) := s(x,x,y,z) p ( x , y , z ) := s ( y , z , x , x ) and q ( x , y , z ) := s ( x , x , y , z )
and observe that the operations p p p and q q q satisfy the equations from the statement.
q ( y , x , x ) = s ( y , y , x , x ) ≈ s ( x , x , x , y ) = q ( x , x , y ) q(y,x,x)=s(y,y,x,x)\approx s(x,x,x,y)=q(x,x,y) q ( y , x , x ) = s ( y , y , x , x ) ≈ s ( x , x , x , y ) = q ( x , x , y )
q ( x , x , y ) = s ( x , x , x , y ) ≈ s ( y , y , x , x ) = p ( x , y , y ) q(x,x,y)=s(x,x,x,y)\approx s(y,y,x,x)=p(x,y,y) q ( x , x , y ) = s ( x , x , x , y ) ≈ s ( y , y , x , x ) = p ( x , y , y )
p ( x , y , x ) = s ( y , x , x , x ) ≈ s ( x , x , y , x ) = q ( x , y , x ) p(x,y,x)=s(y,x,x,x)\approx s(x,x,y,x)=q(x,y,x) p ( x , y , x ) = s ( y , x , x , x ) ≈ s ( x , x , y , x ) = q ( x , y , x )
Conversely, let A \mathbf{A} A be an algebra that satisfies (59), (60) and (61). Then there is no ξ : Clo ( A ) → P r o j \xi:\operatorname{Clo}(\mathbf{A})\to\mathbf{Proj} ξ : Clo ( A ) → Proj , because otherwise
ξ ( q ) = π 2 3 (because of 59) \xi(q)=\pi^3_2 \qquad\text{(because of 59)} ξ ( q ) = π 2 3 (because of 59)
ξ ( p ) = π 1 3 (because of 60) \xi(p)=\pi^3_1 \qquad\text{(because of 60)} ξ ( p ) = π 1 3 (because of 60)
ξ ( p ) = π 2 3 (because of 61) \xi(p)=\pi^3_2 \qquad\text{(because of 61)} ξ ( p ) = π 2 3 (because of 61)
which is a contradiction unless ∣ A ∣ = 1 |\mathbf{A}|=1 ∣ A ∣ = 1 . Hence, there is a Taylor term by Theorem 9.16 . □
Exercise 268. Show that every algebra with a Maltsev term has a 4-ary Siggers term (directly, without using other results).
Weak Near Unanimity Operations
A weak near unanimity operation (defined in Exercise 264) is an operation that satisfies
w ( x , … , x , y ) ≈ w ( x , … , y , x ) ≈ ⋯ ≈ w ( y , x , … , x ) . w(x,\ldots,x,y)\approx w(x,\ldots,y,x)\approx\cdots\approx w(y,x,\ldots,x). w ( x , … , x , y ) ≈ w ( x , … , y , x ) ≈ ⋯ ≈ w ( y , x , … , x ) .
We write WNU ( k ) \operatorname{WNU}(k) WNU ( k ) for the k k k -ary weak near unanimity operations. Recall that a finite algebra has a Taylor term if and only if it has a weak near unanimity term (Exercise 264). Again, we warn the reader that some authors additionally assume that weak near unanimity operations are idempotent; we do not make this assumption since it gives us more flexibility of the terminology.
Example 14.8. The algebra A n : = ( { 0 , … , n − 1 } ; m ) \mathbf{A}_n:= (\{0,\ldots,n-1\};m) A n := ({ 0 , … , n − 1 } ; m ) where m ( x , y , z ) : = x − y + z m(x,y,z):=x-y+z m ( x , y , z ) := x − y + z (see Exercise 147) has a WNU ( k ) \operatorname{WNU}(k) WNU ( k ) term if and only if gcd ( k , n ) = 1 \gcd(k,n)=1 g cd( k , n ) = 1 :
if gcd ( k , n ) = 1 \gcd(k,n)=1 g cd( k , n ) = 1 then there is an a ∈ { 0 , … , n − 1 } a\in\{0,\ldots,n-1\} a ∈ { 0 , … , n − 1 } such that a k ≡ 1 ( m o d n ) ak\equiv1\pmod n ak ≡ 1 ( mod n ) . Hence, a x i ∈ WNU ( k ) a x_i\in\operatorname{WNU}(k) a x i ∈ WNU ( k ) and we have ∑ i a = k a = 1 \sum_i a=ka=1 ∑ i a = k a = 1 so this operation is in Clo ( A n ) \operatorname{Clo}(\mathbf{A}_n) Clo ( A n ) .
Conversely, let g ∈ Clo ( A n ) g\in\operatorname{Clo}(\mathbf{A}_n) g ∈ Clo ( A n ) be a WNU ( k ) \operatorname{WNU}(k) WNU ( k ) operation. In particular, we have
a 1 = g ( 1 , 0 , … , 0 ) ≡ g ( 0 , 1 , 0 , … , 0 ) ≡ ⋯ ≡ g ( 0 , … , 0 , 1 ) = a k ( m o d n ) a_1=g(1,0,\ldots,0)\equiv g(0,1,0,\ldots,0)\equiv\cdots\equiv g(0,\ldots,0,1)=a_k\pmod n a 1 = g ( 1 , 0 , … , 0 ) ≡ g ( 0 , 1 , 0 , … , 0 ) ≡ ⋯ ≡ g ( 0 , … , 0 , 1 ) = a k ( mod n )
and it follows that a : = a 1 ≡ ⋯ ≡ a k ( m o d n ) a:=a_1\equiv\cdots\equiv a_k\pmod n a := a 1 ≡ ⋯ ≡ a k ( mod n ) . But 1 = ∑ i a i = k a ( m o d n ) 1=\sum_i a_i=ka\pmod n 1 = ∑ i a i = k a ( mod n ) , which implies that n n n and k k k are coprime.
For example, Clo ( A 6 ) \operatorname{Clo}(\mathbf{A}_6) Clo ( A 6 ) has a WNU ( 5 ) \operatorname{WNU}(5) WNU ( 5 ) term, but not a WNU ( k ) \operatorname{WNU}(k) WNU ( k ) term for k ≤ 4 k\le4 k ≤ 4 . △
Exercise 269. Let ( A ; + , − , 0 ) (A;+,-,0) ( A ; + , − , 0 ) be a finite Abelian group. Then every idempotent weak near-unanimity operation that preserves the relation defined by y 1 + y 2 = y 3 + y 4 y_1+y_2=y_3+y_4 y 1 + y 2 = y 3 + y 4 is of the form ( x 1 , … , x n ) ↦ t ⋅ ( x 1 + ⋯ + x n ) (x_1,\ldots,x_n)\mapsto t\cdot(x_1+\cdots+x_n) ( x 1 , … , x n ) ↦ t ⋅ ( x 1 + ⋯ + x n ) for some t ∈ N ≥ 1 t\in\mathbb{N}_{\ge1} t ∈ N ≥ 1 .
Exercise 270. Show that if a clone (not necessarily on a finite domain) contains f ∈ WNU ( 3 ) f \in\operatorname{WNU}(3) f ∈ WNU ( 3 ) and g ∈ WNU ( 4 ) g \in\operatorname{WNU}(4) g ∈ WNU ( 4 ) , then it also contains an operation in WNU ( 12 ) \operatorname{WNU}(12) WNU ( 12 ) .
Exercise 271. Show that if a clone (not necessarily on a finite domain) contains 3-4 weak near unanimity operations, i.e., operations f ∈ WNU ( 3 ) f \in\operatorname{WNU}(3) f ∈ WNU ( 3 ) and g ∈ WNU ( 4 ) g \in\operatorname{WNU}(4) g ∈ WNU ( 4 ) satisfying
∀ x , y . f ( y , x , x ) = g ( y , x , x , x ) , \forall x,y.\ f(y,x,x)=g(y,x,x,x), ∀ x , y . f ( y , x , x ) = g ( y , x , x , x ) ,
then it also contains h ∈ WNU ( 13 ) h \in\operatorname{WNU}(13) h ∈ WNU ( 13 ) .
Summary of Equivalent Dichotomy Formulations
In the following we list all the equivalent conditions on a finite structure B \mathcal{B} B with finite relational signature that imply that CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) is in P. If B \mathcal{B} B does not satisfy these conditions, then CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) is NP-complete.
Corollary 14.9. Let B \mathcal{B} B be a finite structure with core C \mathcal{C} C , let D \mathcal{D} D be the expansion of C \mathcal{C} C by all singleton unary relations, and let D \mathbf{D} D be a polymorphism algebra of D \mathcal{D} D . Then the following are equivalent.
K 3 K_3 K 3 does not have a primitive positive interpretation in D \mathcal{D} D ;
HSP ( D ) \operatorname{HSP}(\mathbf{D}) HSP ( D ) does not contain an at least 2-element algebra all of whose operations are projections;
HS ( D ) \operatorname{HS}(\mathbf{D}) HS ( D ) does not contain an at least 2-element algebra all of whose operations are projections ((Corollary 7.54));
there is no clone homomorphism from Pol ( D ) \operatorname{Pol}(\mathcal{D}) Pol ( D ) to P r o j \mathbf{Proj} Proj ((Corollary 7.54));
D \mathbf{D} D satisfies some non-trivial finite set of identities ((Corollary 7.54));
B \mathcal{B} B does not pp-construct K 3 K_3 K 3 , i.e., K 3 ∉ HI ( B ) K_3 \notin\operatorname{HI}(\mathcal{B}) K 3 ∈ / HI ( B ) ((Corollary 9.8));
B \mathcal{B} B does not pp-construct all finite structures ((Corollary 9.8));
there is no minion homomorphism from Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) to P r o j \mathbf{Proj} Proj ((Corollary 9.19));
Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) contains a Taylor operation ((Corollary 9.19));
Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) has a 6-ary Siggers operation ((Theorem 10.5));
Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) contains a weak near-unanimity operation ((Exercise 265));
Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) contains a cyclic operation ((Theorem 14.4));
Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) contains for all prime numbers p > ∣ B ∣ p > |\mathcal{B}| p > ∣ B ∣ a cyclic operation of arity p p p ((Theorem 14.4));
Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) contains a 4-ary Siggers operation ((Theorem 14.6));
Pol ( B ) \operatorname{Pol}(\mathcal{B}) Pol ( B ) has p p p -q q q -operations ((Proposition 14.7)).
Undirected Graphs Revisited
As another application of the cyclic term theorem, we obtain another proof (from [16]) of the classification of the complexity of H H H -colouring for finite undirected graphs H H H .
Second proof of Theorem 2.6 . If the core G G G of H H H equals K 2 K_2 K 2 or has just one vertex, then CSP ( H ) \operatorname{CSP}(H) CSP ( H ) can be solved in polynomial time, e.g. by the path-consistency procedure, § 4 . Otherwise, H H H is not bipartite and there exists a cycle a 0 , a 1 , … , a 2 k , a 0 a_0,a_1,\ldots,a_{2k},a_0 a 0 , a 1 , … , a 2 k , a 0 of odd length in H H H . If H H H has no Taylor polymorphism, then by Corollary 9.19 CSP ( H ) \operatorname{CSP}(H) CSP ( H ) is NP-hard. Otherwise, if H H H has a Taylor polymorphism, then Theorem 14.4 asserts that there exists a p p p -ary cyclic polymorphism c c c of H H H where p p p is a prime number greater than max { 2 k , ∣ V ( H ) ∣ } \max\{2k,|V(H)|\} max { 2 k , ∣ V ( H ) ∣ } . Since the edges in H H H are undirected, we can also find a closed walk a 0 , a 1 , … , a p − 1 , a 0 a_0,a_1,\ldots,a_{p-1},a_0 a 0 , a 1 , … , a p − 1 , a 0 in H H H . Then c ( a 0 , a 1 , … , a p − 1 ) = c ( a 1 , … , a p − 1 , a 0 ) c(a_0,a_1,\ldots,a_{p-1})=c(a_1,\ldots,a_{p-1},a_0) c ( a 0 , a 1 , … , a p − 1 ) = c ( a 1 , … , a p − 1 , a 0 ) , which implies that H H H contains a loop, a contradiction to the assumption that the core of H H H has more than one element.
:::
This proof naturally generalises to smooth digraphs that are strongly connected. In fact, the assumption that H H H is strongly connected can be dropped.
Theorem 14.10 (Barto, Kozik, Niven [14]). Let H H H be a smooth digraph. If H H H has a Taylor polymorphism, then H H H is homomorphically equivalent to a disjoint union of cycles.
We only present a proof for the special case where H H H is strongly connected. In the proof we need the concept of algebraic length of a graph. A digraph containing a loop is defined to have algebraic length one . If a digraph is loopless and contains a cycle of positive net length, then its algebraic length is the minimum positive net length of such a cycle.
Proof of Theorem 14.10 if H H H is strongly connected. Suppose that H H H is strongly connected. Let d d d be the period of H H H , that is, the greatest common divisor of the lengths of all closed directed walks in H H H . We prove that H H H is homomorphically equivalent to C ⃗ d \vec{C}_d C d .
Fix a vertex r ∈ V ( H ) r\in V(H) r ∈ V ( H ) . For every v ∈ V ( H ) v\in V(H) v ∈ V ( H ) , choose a directed path P v P_v P v from r r r to v v v and define
λ ( v ) : = ∣ P v ∣ ( m o d d ) . \lambda(v):=|P_v|\pmod d. λ ( v ) := ∣ P v ∣ ( mod d ) .
This does not depend on the choice of P v P_v P v . Indeed, if P P P and P ′ P' P ′ are directed paths from r r r to v v v , choose a directed path Q Q Q from v v v to r r r . Then P Q PQ P Q and P ′ Q P'Q P ′ Q are closed directed walks, so their lengths are divisible by d d d . Hence, ∣ P ∣ ≡ ∣ P ′ ∣ ( m o d d ) |P|\equiv|P'|\pmod d ∣ P ∣ ≡ ∣ P ′ ∣ ( mod d ) .
If ( v , w ) ∈ E ( H ) (v,w)\in E(H) ( v , w ) ∈ E ( H ) , then appending this edge to a directed path from r r r to v v v gives a directed path from r r r to w w w . Consequently,
λ ( w ) = λ ( v ) + 1 ( m o d d ) . \lambda(w)=\lambda(v)+1\pmod d. λ ( w ) = λ ( v ) + 1 ( mod d ) .
Thus, λ \lambda λ is a homomorphism from H H H to C ⃗ d \vec{C}_d C d .
It remains to construct a homomorphism from C ⃗ d \vec{C}_d C d to H H H . We first recall a standard consequence of strong connectivity and the definition of the period: for every sufficiently large integer n n n divisible by d d d , there is a closed directed walk of length n n n in H H H . For completeness, fix r ∈ V ( H ) r\in V(H) r ∈ V ( H ) and let
S : = { ∣ W ∣ ∣ W is a closed directed walk based at r } . S:=\{|W|\mid W\text{ is a closed directed walk based at }r\}. S := { ∣ W ∣ ∣ W is a closed directed walk based at r } .
The greatest common divisor of the elements of S S S is d d d . Indeed, one divisibility follows immediately from the definition of d d d . For the other, let W W W be a closed directed walk based at an arbitrary vertex v v v , and choose directed paths P P P from r r r to v v v and Q Q Q from v v v to r r r . The two walks P Q PQ P Q and P W Q PWQ P W Q belong to S S S , and the difference of their lengths is ∣ W ∣ |W| ∣ W ∣ . Hence, every common divisor of S S S divides the length of every closed directed walk in H H H . The assertion now follows from the elementary fact that an additive submonoid of the natural numbers with greatest common divisor d d d contains every sufficiently large multiple of d d d .
Choose a sufficiently large prime number p > ∣ V ( H ) ∣ p > |V(H)| p > ∣ V ( H ) ∣ such that H H H has a closed directed walk
a 0 , a 1 , … , a p d = a 0 a_0,a_1,\ldots,a_{pd}=a_0 a 0 , a 1 , … , a p d = a 0
of length p d pd p d . By Theorem 14.4, H H H has a p p p -ary cyclic polymorphism c c c . For j ∈ { 0 , … , d − 1 } j \in\{0,\ldots,d-1\} j ∈ { 0 , … , d − 1 } , define
b j : = c ( a j , a j + d , a j + 2 d , … , a j + ( p − 1 ) d ) . b_j := c(a_j,a_{j+d},a_{j+2d},\ldots,a_{j+(p-1)d}). b j := c ( a j , a j + d , a j + 2 d , … , a j + ( p − 1 ) d ) .
For every j < d − 1 j < d-1 j < d − 1 , the fact that c c c is a polymorphism gives ( b j , b j + 1 ) ∈ E ( H ) (b_j,b_{j+1}) \in E(H) ( b j , b j + 1 ) ∈ E ( H ) . For the final edge, applying c c c coordinatewise to the edges
( a d − 1 , a d ) , ( a 2 d − 1 , a 2 d ) , … , ( a p d − 1 , a p d ) (a_{d-1},a_d),\ (a_{2d-1},a_{2d}),\ \ldots,\ (a_{pd-1},a_{pd}) ( a d − 1 , a d ) , ( a 2 d − 1 , a 2 d ) , … , ( a p d − 1 , a p d )
gives an edge from b d − 1 b_{d-1} b d − 1 to c ( a d , a 2 d , … , a ( p − 1 ) d , a p d ) = c ( a d , a 2 d , … , a ( p − 1 ) d , a 0 ) c(a_d,a_{2d},\ldots,a_{(p-1)d},a_{pd}) = c(a_d,a_{2d},\ldots,a_{(p-1)d},a_0) c ( a d , a 2 d , … , a ( p − 1 ) d , a p d ) = c ( a d , a 2 d , … , a ( p − 1 ) d , a 0 ) . Since c c c is cyclic, the latter element equals
c ( a 0 , a d , … , a ( p − 1 ) d ) = b 0 . c(a_0,a_d,\ldots,a_{(p-1)d})=b_0. c ( a 0 , a d , … , a ( p − 1 ) d ) = b 0 .
Therefore, ( b d − 1 , b 0 ) ∈ E ( H ) (b_{d-1},b_0) \in E(H) ( b d − 1 , b 0 ) ∈ E ( H ) . The map sending j ∈ V ( C ⃗ d ) j \in V(\vec{C}_d) j ∈ V ( C d ) to b j b_j b j is consequently a homomorphism from C ⃗ d \vec{C}_d C d to H H H . We have homomorphisms in both directions, so H H H is homomorphically equivalent to C ⃗ d \vec{C}_d C d .
Corollary 14.11 (Loop Lemma). Let A A A be a finite Taylor algebra and let R ≤ A 2 R \le A^2 R ≤ A 2 be subdirect. If the digraph ( A , R ) (A,R) ( A , R ) has a connected component of algebraic length one, then R R R has a loop.
Proof. The digraph ( A , R ) (A,R) ( A , R ) has no sources and sinks because R R R is subdirect. Since it has the Taylor term operation of A A A as a polymorphism, Theorem 14.10 implies that ( A , R ) (A,R) ( A , R ) is homomorphically equivalent to a disjoint union of cycles. The only cycle that is homomorphically equivalent to a digraph of algebraic length one is the loop, so ( A , R ) (A,R) ( A , R ) is homomorphically equivalent to a structure that contains a loop, so it must contain a loop.
If a graph H H H is homomorphically equivalent to a disjoint union of cycles, then CSP ( H ) \operatorname{CSP}(H) CSP ( H ) is in P (e.g., we can use the algorithm PCH \operatorname{PCH} PCH to solve it; see § 4 ). On the other hand, a digraph without a Taylor polymorphism has an NP-hard CSP. Therefore, Theorem 14.10 shows that the Feder-Vardi conjecture is true for digraphs without sources and sinks: their CSPs are in P or NP-complete.
As another consequence we present a second proof that Taylor algebras have a 4-ary Siggers term, which is the original proof from [76].
Second proof of Theorem 14.6. Let F F F be the free algebra with three generators x x x , y y y , z z z in the variety generated by A A A (see § 8.5 ). Let R ≤ F 2 R \le F^2 R ≤ F 2 be generated by
{ ( x y ) , ( y z ) , ( z x ) , ( x z ) } . \left\{
\begin{pmatrix}x\\y\end{pmatrix},
\begin{pmatrix}y\\z\end{pmatrix},
\begin{pmatrix}z\\x\end{pmatrix},
\begin{pmatrix}x\\z\end{pmatrix}
\right\}. { ( x y ) , ( y z ) , ( z x ) , ( x z ) } .
Then R \mathbf{R} R is subdirect and ( F , R ) (F,R) ( F , R ) is a smooth digraph of algebraic length 1 (see Figure 22 for the restriction of this digraph to { x , y , z } \{x,y,z\} { x , y , z } ). Hence, the Loop Lemma (Corollary 14.11 ) implies that R R R contains a pair ( f , f ) (f,f) ( f , f ) , so there exists a term t ( x 1 , x 2 , x 3 , x 4 ) t(x_1,x_2,x_3,x_4) t ( x 1 , x 2 , x 3 , x 4 ) such that
Figure 22. The smooth digraph leading to the Siggers terms of arity four.
t F 2 ( ( x y ) , ( y z ) , ( z x ) , ( x z ) ) = ( f f ) . t^{F^2}\left(\binom{x}{y},\binom{y}{z},\binom{z}{x},\binom{x}{z}\right)=\binom{f}{f}. t F 2 ( ( y x ) , ( z y ) , ( x z ) , ( z x ) ) = ( f f ) .
Thus, t F t^F t F satisfies t ( x , y , z , x ) = f = t ( y , z , x , z ) t(x,y,z,x)=f=t(y,z,x,z) t ( x , y , z , x ) = f = t ( y , z , x , z ) . Permuting the arguments gives a term that satisfies the standard form of the 4-ary Siggers identity.
Exercise 272. Let G G G and H H H be finite smooth digraphs. Show that if CSP ( G × H ) \operatorname{CSP}(G \times H) CSP ( G × H ) can be solved in polynomial time, then CSP ( G ) \operatorname{CSP}(G) CSP ( G ) or CSP ( H ) \operatorname{CSP}(H) CSP ( H ) can be solved in polynomial time as well (so we cannot use them to solve Exercise 85).
Exercise 273. Let G : = ( { 1 , 2 , 3 , 4 } ; E ) G := (\{1,2,3,4\};E) G := ({ 1 , 2 , 3 , 4 } ; E ) be the digraph given by
E : = { ( 1 , 2 ) , ( 1 , 3 ) , ( 2 , 3 ) , ( 3 , 2 ) , ( 2 , 4 ) , ( 3 , 4 ) } . E := \{(1,2),(1,3),(2,3),(3,2),(2,4),(3,4)\}. E := {( 1 , 2 ) , ( 1 , 3 ) , ( 2 , 3 ) , ( 3 , 2 ) , ( 2 , 4 ) , ( 3 , 4 )} .
Show that every finite structure has a primitive positive interpretation in G G G .
Bounded Width
Equipped with the universal-algebraic approach, we come back to one of the questions that occupied us at the beginning of the course: which H H H -colouring problems can be solved by the path-consistency procedure (P C H \mathrm{PC}_H PC H , introduced in § 4 )? We have seen in § 4.2 that if H H H has a majority or a semilattice polymorphism, then P C H \mathrm{PC}_H PC H solves the H H H -colouring problem. But these were just sufficient, not necessary conditions.
A necessary and sufficient polymorphism condition for solvability by P C H \mathrm{PC}_H PC H has been found by Barto and Kozik [11]. Their result is much stronger: it characterises not just the strength of P C H \mathrm{PC}_H PC H , but more generally of k k k -consistency (introduced in § 4 ), and not just for H H H -colouring, but for CSPs of finite relational structures in general (§ 4.1 ).
Theorem 15.1. Let B \mathcal{B} B be a finite structure with a finite relational signature. Then CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) can be solved by the k k k -consistency procedure, for some k ∈ N k \in\mathbb{N} k ∈ N , if and only if B \mathcal{B} B has 3-4 weak near unanimity polymorphisms, i.e., operations f ∈ W N U ( 3 ) f \in\mathrm{WNU}(3) f ∈ WNU ( 3 ) and g ∈ W N U ( 4 ) g \in\mathrm{WNU}(4) g ∈ WNU ( 4 ) satisfying
∀ x , y . f ( y , x , x ) = g ( y , x , x , x ) . \forall x,y.\ f(y,x,x)=g(y,x,x,x). ∀ x , y . f ( y , x , x ) = g ( y , x , x , x ) .
Note that for a given B \mathcal{B} B , the condition given in Theorem 15.1 is obviously decidable. Many other equivalent characterisations of bounded width will be presented later in Theorem 15.62.
It turns out that if CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) can be solved by k k k -consistency, for some k k k , then it can already be solved by a particularly natural algorithm, namely by the singleton arc-consistency (SAC) procedure (§ 16.3 ). SAC is weaker than 3-consistency in the sense that if the SAC procedure detects that an instance is unsatisfiable, then so does the 3-consistency procedure.17 However, SAC has the advantage that, unlike 3-consistency, it only requires linear workspace and can be implemented to run in quadratic time. In fact, it can be solved by establishing an even weaker form of consistency, namely cycle-consistency , which is still much stronger than arc-consistency (Theorem 15.61). This strong result will be convenient when proving Theorem 15.1 .
k-Consistency
We have already briefly introduced the k k k -consistency procedure for digraph homomorphism problems in § 4.1 . To discuss the idea of k k k -consistency for general relational structures more precisely, it is convenient to use a more flexible terminology. When generalising the 3-consistency procedure for the H H H -colouring problem to the k k k -consistency procedure for CSPs of arbitrary finite structures B \mathcal{B} B , there are two essential parameters:
The first is the arity l l l of the relations maintained for all l l l -tuples of variables in the instance. For PC H \operatorname{PC}_{H} PC H , for instance, we have l = 2 l=2 l = 2 .
The second is the number of variables considered at a time within the main loop of the algorithm. For PC H \operatorname{PC}_{H} PC H , for instance, we have k = 3 k=3 k = 3 .
Hence, for each pair ( l , k ) ∈ N 2 (l,k)\in\mathbb{N}^{2} ( l , k ) ∈ N 2 , we obtain a different form of consistency procedure, called ( l , k ) (l,k) ( l , k ) -consistency procedure. When characterising the power of this procedure, the following definition will be useful.
Definition 15.2. Let A \mathcal{A} A and B \mathcal{B} B be relational structures of the same signature, and let 1 ≤ l ≤ k 1\le l\le k 1 ≤ l ≤ k . If U ⊆ A U\subseteq A U ⊆ A , then a map s : U → B s:U\to B s : U → B is a partial homomorphism if, for every r r r -ary relation symbol R R R and every ( x 1 , … , x r ) ∈ R A (x_{1},\ldots,x_{r})\in R^{\mathcal{A}} ( x 1 , … , x r ) ∈ R A with x 1 , … , x r ∈ U x_{1},\ldots,x_{r}\in U x 1 , … , x r ∈ U , we have ( s ( x 1 ) , … , s ( x r ) ) ∈ R B (s(x_{1}),\ldots,s(x_{r}))\in R^{\mathcal{B}} ( s ( x 1 ) , … , s ( x r )) ∈ R B .
An ( l , k ) (l,k) ( l , k ) -strategy from A \mathcal{A} A to B \mathcal{B} B is a family
( H U ) U ⊆ A , ∣ U ∣ ≤ l (\mathcal{H}_{U})_{U\subseteq A,\ |U|\le l} ( H U ) U ⊆ A , ∣ U ∣ ≤ l of non-empty sets of partial homomorphisms from U U U to B B B with the following extension property. For every U ⊆ A U\subseteq A U ⊆ A with ∣ U ∣ ≤ l |U|\le l ∣ U ∣ ≤ l , every s ∈ H U s\in\mathcal{H}_{U} s ∈ H U , and every V V V such that U ⊆ V ⊆ A U\subseteq V\subseteq A U ⊆ V ⊆ A and ∣ V ∣ ≤ k |V|\le k ∣ V ∣ ≤ k , there exists a partial homomorphism t : V → B t:V\to B t : V → B extending s s s such that t ∣ W ∈ H W t|_{W}\in\mathcal{H}_{W} t ∣ W ∈ H W for every W ⊆ V W\subseteq V W ⊆ V with ∣ W ∣ ≤ l |W|\le l ∣ W ∣ ≤ l .
We say that the ( l , k ) (l,k) ( l , k ) -consistency procedure for CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) accepts A \mathcal{A} A if there exists an ( l , k ) (l,k) ( l , k ) -strategy from A \mathcal{A} A to B \mathcal{B} B . Equivalently, one starts, for every U ⊆ A U\subseteq A U ⊆ A with ∣ U ∣ ≤ l |U|\le l ∣ U ∣ ≤ l , with the set of all partial homomorphisms from U U U to B \mathcal{B} B , and repeatedly removes a map that does not have the extension required above. The procedure rejects if one of these sets becomes empty. We say that CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) has width ( l , k ) (l,k) ( l , k ) if every finite structure A \mathbb{A} A that is accepted by the ( l , k ) (l,k) ( l , k ) -consistency procedure has a homomorphism to B \mathbb{B} B . We say that CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) has bounded width if it has width ( l , k ) (l,k) ( l , k ) for some l , k ∈ N l,k \in\mathbb{N} l , k ∈ N , and otherwise we say that it has unbounded width .
Remark 15.3. Note that it is easy to come up with finite structures B \mathbb{B} B whose CSP cannot be solved by the ( l , k ) (l,k) ( l , k ) -consistency procedure if B \mathbb{B} B might contain relations of arity larger than k k k (there is no possibility of the ( l , k ) (l,k) ( l , k ) -consistency algorithm to take constraints into account that are imposed on more than k k k variables).
Remark 15.4. A CSP has bounded width if and only if unsatisfiability of an instance of CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) can be detected by a Datalog program (see [60]).
The following lemma suggests that the universal-algebraic approach can be used to study the question for which structures B \mathbb{B} B the problem CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) has bounded width.
Lemma 15.5. Let B \mathbb{B} B and C \mathbb{C} C be structures with finite relational signatures such that B ∈ HI ( C ) \mathbb{B} \in\operatorname{HI}(\mathbb{C}) B ∈ HI ( C ) . If CSP ( C ) \operatorname{CSP}(\mathbb{C}) CSP ( C ) has bounded width , then so does CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) .
Proof. We first consider the case that B \mathbb{B} B has a primitive positive interpretation I I I in C \mathbb{C} C . Let d d d be the dimension of I I I , let δ I ( y ˉ ) \delta_I(\bar{y}) δ I ( y ˉ ) be its domain formula, and let ι : D → B \iota:D \to B ι : D → B be its coordinate map. For every r r r -ary relation symbol R R R of B \mathbb{B} B , let R I ( y ˉ 1 , … , y ˉ r ) R_I(\bar{y}_1,\ldots,\bar{y}_r) R I ( y ˉ 1 , … , y ˉ r ) be the primitive positive formula defining the preimage of R B R^{\mathbb{B}} R B . Fix presentations of these formulas as conjunctions of atomic formulas with existentially quantified variables. We regard equality as a binary relation interpreted by equality, so that equality atoms need not be eliminated by identifying variables.
Let A \mathbb{A} A be an instance of CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) . We construct an instance T I ( A ) T_I(\mathbb{A}) T I ( A ) of CSP ( C ) \operatorname{CSP}(\mathbb{C}) CSP ( C ) as follows. For every a ∈ A a \in A a ∈ A , introduce a d d d -tuple y ˉ a = ( y a 1 , … , y a d ) \bar{y}_a=(y_a^1,\ldots,y_a^d) y ˉ a = ( y a 1 , … , y a d ) and a fresh copy of the existential variables in δ I ( y ˉ a ) \delta_I(\bar{y}_a) δ I ( y ˉ a ) . For every ( a 1 , … , a r ) ∈ R A (a_1,\ldots,a_r) \in R^{\mathbb{A}} ( a 1 , … , a r ) ∈ R A , introduce a fresh copy of the existential variables in R I ( y ˉ a 1 , … , y ˉ a r ) R_I(\bar{y}_{a_1},\ldots,\bar{y}_{a_r}) R I ( y ˉ a 1 , … , y ˉ a r ) . The constraints of T I ( A ) T_I(\mathbb{A}) T I ( A ) are all the atomic formulas occurring in these copies of the domain and relation formulas.
By the definition of a primitive positive interpretation, A → B \mathbb{A} \to\mathbb{B} A → B if and only if T I ( A ) → C T_I(\mathbb{A}) \to\mathbb{C} T I ( A ) → C . Indeed, a homomorphism from A \mathbb{A} A to B \mathbb{B} B can be lifted by choosing representatives in D D D and witnesses for the primitive positive formulas. Conversely, a homomorphism from T I ( A ) T_I(\mathbb{A}) T I ( A ) to C \mathbb{C} C assigns to every y ˉ a \bar{y}_a y ˉ a an element of D D D , and composing with ι \iota ι gives a homomorphism from A \mathbb{A} A to B \mathbb{B} B .
Suppose that CSP ( C ) \operatorname{CSP}(\mathbb{C}) CSP ( C ) has width ( l , k ) (l,k) ( l , k ) . Put
q : = max ( { 1 , d } ∪ { ar ( R ) ∣ R is a relation symbol of B } ) . q := \max\bigl(\{1,d\} \cup\{\operatorname{ar}(R) \mid R \text{ is a relation symbol of } \mathbb{B}\}\bigr). q := max ( { 1 , d } ∪ { ar ( R ) ∣ R is a relation symbol of B } ) .
L : = q k L := qk L := q k , and K : = q ( k + 1 ) K := q(k+1) K := q ( k + 1 ) . We prove that CSP ( B ) \operatorname{CSP}(\mathbb{B}) CSP ( B ) has width ( L , K ) (L,K) ( L , K ) .
Every variable z z z of T I ( A ) T_I(\mathbb{A}) T I ( A ) has a support supp ( z ) ⊆ A \operatorname{supp}(z) \subseteq A supp ( z ) ⊆ A , defined as follows. If z = y a i z=y_a^i z = y a i , or if z z z is a witness in the copy of the domain formula belonging to a a a , then supp ( z ) : = { a } \operatorname{supp}(z):=\{a\} supp ( z ) := { a } . If z z z is a witness in the copy of R I ( y ˉ a 1 , … , y ˉ a r ) R_I(\bar{y}_{a_1},\ldots,\bar{y}_{a_r}) R I ( y ˉ a 1 , … , y ˉ a r ) belonging to the constraint ( a 1 , … , a r ) ∈ R A (a_1,\ldots,a_r) \in R^{\mathbb{A}} ( a 1 , … , a r ) ∈ R A , then supp ( z ) : = { a 1 , … , a r } \operatorname{supp}(z):=\{a_1,\ldots,a_r\} supp ( z ) := { a 1 , … , a r } . Thus ∣ supp ( z ) ∣ ≤ q |\operatorname{supp}(z)| \leq q ∣ supp ( z ) ∣ ≤ q . For a set W W W of variables of T I ( A ) T_I(\mathbb{A}) T I ( A ) , put supp ( W ) : = ⋃ z ∈ W supp ( z ) \operatorname{supp}(W):=\bigcup_{z\in W}\operatorname{supp}(z) supp ( W ) := ⋃ z ∈ W supp ( z ) . In particular supp ( W ) ≤ q ∣ W ∣ \operatorname{supp}(W) \leq q|W| supp ( W ) ≤ q ∣ W ∣ .
Suppose that ( H U ) U ⊆ A , ∣ U ∣ ≤ L (\mathcal{H}_U)_{U\subseteq A,\ |U|\leq L} ( H U ) U ⊆ A , ∣ U ∣ ≤ L is an ( L , K ) (L,K) ( L , K ) -strategy from A \mathbb{A} A to B \mathbb{B} B . We construct an ( l , k ) (l,k) ( l , k ) -strategy ( G W ) W ⊆ T I ( A ) , ∣ W ∣ ≤ l (\mathcal{G}_W)_{W\subseteq T_I(\mathbb{A}),\ |W|\leq l} ( G W ) W ⊆ T I ( A ) , ∣ W ∣ ≤ l from T I ( A ) T_I(\mathbb{A}) T I ( A ) to C \mathbb{C} C . Let W ⊆ T I ( A ) W \subseteq T_I(\mathbb{A}) W ⊆ T I ( A ) with ∣ W ∣ ≤ l |W|\leq l ∣ W ∣ ≤ l , and put U : = supp ( W ) U:=\operatorname{supp}(W) U := supp ( W ) . Then ∣ U ∣ ≤ q l ≤ q k = L |U|\leq ql\leq qk=L ∣ U ∣ ≤ q l ≤ q k = L . A map g : W → C g:W\to C g : W → C belongs to G W \mathcal{G}_W G W if it can be obtained as follows. Choose s ∈ H U s\in\mathcal{H}_U s ∈ H U . For every a ∈ U a\in U a ∈ U , choose a representative c ˉ a ∈ D \bar{c}_a\in D c ˉ a ∈ D such that ι ( c ˉ a ) = s ( a ) \iota(\bar{c}_a)=s(a) ι ( c ˉ a ) = s ( a ) , and assign the entries of c ˉ a \bar{c}_a c ˉ a to the coordinate variables y a 1 , … , y a d y_a^1,\ldots,y_a^d y a 1 , … , y a d . For every copy of a domain or relation formula whose witness variables occur in W W W , choose a full tuple of witnesses satisfying that formula. The map g g g is the restriction to W W W of the resulting assignment. We retain the full tuple of witnesses for every formula whose witnesses meet W W W , so that these choices can be preserved when W W W is enlarged.
The sets G W \mathcal{G}_W G W are non-empty. To see this, choose s ∈ H U s\in\mathcal{H}_U s ∈ H U and representatives of its values. If a relation gadget whose witnesses meet W W W comes from ( a 1 , … , a r ) ∈ R A (a_1,\ldots,a_r)\in R^\mathcal{A} ( a 1 , … , a r ) ∈ R A , then a 1 , … , a r ∈ U a_1,\ldots,a_r\in U a 1 , … , a r ∈ U . Since s s s is a partial homomorphism, ( s ( a 1 ) , … , s ( a r ) ) ∈ R B (s(a_1),\ldots,s(a_r))\in R^\mathcal{B} ( s ( a 1 ) , … , s ( a r )) ∈ R B . Hence the chosen representatives satisfy R I ( y ˉ a 1 , … , y ˉ a r ) R_I(\bar{y}_{a_1},\ldots,\bar{y}_{a_r}) R I ( y ˉ a 1 , … , y ˉ a r ) , and the required witnesses exist.
The resulting map g g g is a partial homomorphism. There is only one minor point to verify. An atomic constraint of T I ( A ) T_I(\mathcal{A}) T I ( A ) whose variables all belong to W W W might come from a relation gadget whose support is not contained in U U U . In this case the atom can only involve coordinate variables, since every witness variable carries the full support of its gadget. Let ( a 1 , … , a r ) ∈ R A (a_1,\ldots,a_r)\in R^\mathcal{A} ( a 1 , … , a r ) ∈ R A be the constraint producing this atom. Since ∣ U ∪ { a 1 , … , a r } ∣ ≤ L + q = K |U\cup\{a_1,\ldots,a_r\}|\leq L+q=K ∣ U ∪ { a 1 , … , a r } ∣ ≤ L + q = K , the extension property of the ( L , K ) (L,K) ( L , K ) -strategy extends s s s to a partial homomorphism on U ∪ { a 1 , … , a r } U\cup\{a_1,\ldots,a_r\} U ∪ { a 1 , … , a r } . Its values on a 1 , … , a r a_1,\ldots,a_r a 1 , … , a r form a tuple in R B R^\mathcal{B} R B . Consequently, the corresponding interpretation formula holds for the chosen representatives, and in particular the atomic constraint under consideration is satisfied.
It remains to verify the extension property for the family ( G W ) (\mathcal{G}_W) ( G W ) . Let W 0 ⊆ W 1 ⊆ T I ( A ) W_0\subseteq W_1\subseteq T_I(\mathcal{A}) W 0 ⊆ W 1 ⊆ T I ( A ) with ∣ W 0 ∣ ≤ l |W_0|\leq l ∣ W 0 ∣ ≤ l and ∣ W 1 ∣ ≤ k |W_1|\leq k ∣ W 1 ∣ ≤ k , and let g 0 ∈ G W 0 g_0\in\mathcal{G}_{W_0} g 0 ∈ G W 0 . Put U 0 : = supp ( W 0 ) U_0:=\operatorname{supp}(W_0) U 0 := supp ( W 0 ) and U 1 : = supp ( W 1 ) U_1:=\operatorname{supp}(W_1) U 1 := supp ( W 1 ) . Then ∣ U 0 ∣ ≤ q l ≤ L |U_0|\leq ql\leq L ∣ U 0 ∣ ≤ q l ≤ L and ∣ U 1 ∣ ≤ q k = L |U_1|\leq qk=L ∣ U 1 ∣ ≤ q k = L .
Choose a certificate for g 0 ∈ G W 0 g_0\in\mathcal{G}_{W_0} g 0 ∈ G W 0 , consisting of s 0 ∈ H U 0 s_0\in\mathcal{H}_{U_0} s 0 ∈ H U 0 , representatives of its values, and the chosen witnesses. By the extension property of the ( L , K ) (L,K) ( L , K ) -strategy, there exists a partial homomorphism s 1 : U 1 → B s_1:U_1\to B s 1 : U 1 → B extending s 0 s_0 s 0 such that s 1 ∣ U ∈ H U s_1|_U\in\mathcal{H}_U s 1 ∣ U ∈ H U for every U ⊆ U 1 U\subseteq U_1 U ⊆ U 1 with ∣ U ∣ ≤ L |U|\leq L ∣ U ∣ ≤ L . In particular, s 1 ∈ H U 1 s_1\in\mathcal{H}_{U_1} s 1 ∈ H U 1 .
Retain the representatives and witnesses already chosen for g 0 g_0 g 0 . Choose representatives for the new elements of U 1 U_1 U 1 , and choose witnesses for every new domain or relation gadget meeting W 1 W_1 W 1 . These witnesses exist because s 1 s_1 s 1 is a partial homomorphism. In this way we obtain a partial homomorphism g 1 : W 1 → C g_1:W_1\to C g 1 : W 1 → C extending g 0 g_0 g 0 .
Finally, let W ⊆ W 1 W\subseteq W_1 W ⊆ W 1 with ∣ W ∣ ≤ l |W|\leq l ∣ W ∣ ≤ l . Then ∣ supp ( W ) ∣ ≤ q l ≤ L |\operatorname{supp}(W)|\leq ql\leq L ∣ supp ( W ) ∣ ≤ q l ≤ L , and hence s 1 ∣ supp ( W ) ∈ H supp ( W ) s_1|_{\operatorname{supp}(W)}\in\mathcal{H}_{\operatorname{supp}(W)} s 1 ∣ supp ( W ) ∈ H supp ( W ) . The representatives and witnesses chosen above show that g 1 ∣ W ∈ G W g_1|_W\in\mathcal{G}_W g 1 ∣ W ∈ G W . Thus ( G W ) (\mathcal{G}_W) ( G W ) is an ( l , k ) (l,k) ( l , k ) -strategy from T I ( A ) T_I(\mathcal{A}) T I ( A ) to C \mathcal{C} C .
Now suppose that the ( L , K ) (L,K) ( L , K ) -consistency procedure accepts A \mathcal{A} A . Then the ( l , k ) (l,k) ( l , k ) -consistency procedure accepts T I ( A ) T_I(\mathcal{A}) T I ( A ) . Since CSP ( C ) \operatorname{CSP}(\mathcal{C}) CSP ( C ) has width ( l , k ) (l,k) ( l , k ) , there is a homomorphism T I ( A ) → C T_I(\mathcal{A})\to\mathcal{C} T I ( A ) → C . It follows that A → B \mathcal{A}\to\mathcal{B} A → B . Hence CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) has width ( L , K ) (L,K) ( L , K ) .
Finally, suppose that B \mathcal{B} B is merely homomorphically equivalent to a structure D \mathcal{D} D that has a primitive positive interpretation in C \mathcal{C} C . By what we have proved, CSP ( D ) \operatorname{CSP}(\mathcal{D}) CSP ( D ) has width ( L , K ) (L,K) ( L , K ) for some L , K L,K L , K . Let e : B → D e:\mathcal{B}\to\mathcal{D} e : B → D and f : D → B f:\mathcal{D}\to\mathcal{B} f : D → B be homomorphisms. If ( H U ) (\mathcal{H}_U) ( H U ) is an ( L , K ) (L,K) ( L , K ) -strategy from an instance A \mathcal{A} A to B \mathcal{B} B , then { e ∘ s ∣ s ∈ H U } U ⊆ A , ∣ U ∣ ≤ L \{e\circ s\mid s\in\mathcal{H}_U\}_{U\subseteq A,\ |U|\leq L} { e ∘ s ∣ s ∈ H U } U ⊆ A , ∣ U ∣ ≤ L is an ( L , K ) (L,K) ( L , K ) -strategy from A \mathcal{A} A to D \mathcal{D} D . Therefore A → D \mathcal{A}\to\mathcal{D} A → D , and composing with f f f gives A → B \mathcal{A}\to\mathcal{B} A → B . Thus CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) has bounded width. □ \square □
Unbounded Width
In this section we prove that CSPs for solving linear equations over non-trivial abelian groups have unbounded width, i.e., for every k ∈ N k \in\mathbb{N} k ∈ N , there exists an unsatisfiable instance A \mathcal{A} A such that the k k k -consistency procedure does not derive ‘false’ on A \mathcal{A} A . Two proof sketches of this fact can be found in [60]. A stronger non-expressibility can be found in [4] (the given CSP is not even expressible in least fixed point logic with counting quantifiers). The presentation in this section, however, is from [21].
The girth of an undirected graph G G G is the length of a shortest cycle in G G G . A graph is called k k k -regular if every vertex has precisely k k k neighbours. A 3-regular graph is also called cubic . A great deal is known about the existence of finite graphs of high girth.
Theorem 15.7. For every k ∈ N k \in\mathbb{N} k ∈ N there exists
Definition 15.8 (incidence graph of a structure). Let A \mathcal{A} A be a relational structure. Then the incidence graph G ( A ) G(\mathcal{A}) G ( A ) of A \mathcal{A} A is the bipartite graph whose set of vertices is the disjoint union of A A A and the set of tuples in relations from A \mathcal{A} A , and where an element from A A A is connected to a tuple if and only if the element appears in that tuple.
Note that G ( A ) G(\mathcal{A}) G ( A ) is bipartite. We say that A \mathcal{A} A has girth k k k if all tuples in relations from A \mathcal{A} A have pairwise distinct entries and the shortest cycle of G ( A ) G(\mathcal{A}) G ( A ) has 2 k 2k 2 k edges. The following is a special case of Lemma 8.6.6. in [21].
Lemma 15.9. Let B \mathcal{B} B be a finite structure whose signature τ \tau τ consists of finitely many relation symbols of arity at least 3 such that for every relation R R R of B \mathcal{B} B of arity r r r , every ( r − 1 ) (r-1) ( r − 1 ) -ary projection of R R R equals the full relation B r − 1 B^{r-1} B r − 1 . Suppose that there exist unsatisfiable instances of CSP(B \mathcal{B} B ) of arbitrarily large girth. Then CSP(B \mathcal{B} B ) has unbounded width.
Let G G G be an abelian group and c ∈ G c \in G c ∈ G . We define
R c k : = { ( x 1 , … , x k ) ∈ G k ∣ x 1 + ⋯ + x k = c } . R_c^k := \{(x_1,\ldots,x_k) \in G^k \mid x_1+\cdots+x_k=c\}. R c k := {( x 1 , … , x k ) ∈ G k ∣ x 1 + ⋯ + x k = c } .
Theorem 15.10 (Feder and Vardi [60]). Let G G G be a finite abelian group with at least two elements, and let G \mathbb{G} G be the structure with domain G G G that contains the relation R c 3 R_c^3 R c 3 for every c ∈ G c \in G c ∈ G . Then CSP(G \mathbb{G} G ) is not in Datalog.
Proof. Let B \mathcal{B} B be the structure with domain G G G which contains, for every f : { 1 , 2 , 3 } → { − 1 , 1 } f:\{1,2,3\}\to\{-1,1\} f : { 1 , 2 , 3 } → { − 1 , 1 } and every a ∈ G a \in G a ∈ G , the relation
R f , a : = { ( x 1 , x 2 , x 3 ) ∈ G 3 ∣ ∑ i = 1 3 f ( i ) x i = a } . R_{f,a}:=\left\{(x_1,x_2,x_3)\in G^3 \mid\sum_{i=1}^{3}f(i)x_i=a\right\}. R f , a := { ( x 1 , x 2 , x 3 ) ∈ G 3 ∣ i = 1 ∑ 3 f ( i ) x i = a } .
These relations need not be primitively positively definable in G \mathbb{G} G . Instead, we show that B \mathcal{B} B has a two-dimensional primitive positive interpretation in G \mathbb{G} G . Use G 2 G^2 G 2 as the domain of the interpretation and the coordinate map
ι : G 2 → G , ι ( x , y ) : = x − y . (65) \iota:G^2\to G,\qquad\iota(x,y):=x-y. \tag*{(65)} ι : G 2 → G , ι ( x , y ) := x − y . (65)
The kernel of ι \iota ι is primitively positively definable in G \mathfrak{G} G :
ι ( x , y ) = ι ( x ′ , y ′ ) ⟺ ∃ z ( R 0 3 ( x , y ′ , z ) ∧ R 0 3 ( x ′ , y , z ) ) . \iota(x,y)=\iota(x',y')\Longleftrightarrow\exists z\left(R^3_0(x,y',z)\land R^3_0(x',y,z)\right). ι ( x , y ) = ι ( x ′ , y ′ ) ⟺ ∃ z ( R 0 3 ( x , y ′ , z ) ∧ R 0 3 ( x ′ , y , z ) ) .
For a ∈ G a\in G a ∈ G , define the primitive positive formula
T a ( u 1 , v 1 , u 2 , v 2 , u 3 , v 3 ) : ⟺ ∃ p , q , r ( R 0 3 ( u 1 , u 2 , p ) ∧ R 0 3 ( v 1 , v 2 , q ) ∧ R 0 3 ( q , u 3 , r ) ∧ R − a 3 ( p , v 3 , r ) ) . T_a(u_1,v_1,u_2,v_2,u_3,v_3)\mathrel{\vcentcolon\Longleftrightarrow}\exists p,q,r\left(R^3_0(u_1,u_2,p)\land R^3_0(v_1,v_2,q)\land R^3_0(q,u_3,r)\land R^3_{-a}(p,v_3,r)\right). T a ( u 1 , v 1 , u 2 , v 2 , u 3 , v 3 ) : ⟺ ∃ p , q , r ( R 0 3 ( u 1 , u 2 , p ) ∧ R 0 3 ( v 1 , v 2 , q ) ∧ R 0 3 ( q , u 3 , r ) ∧ R − a 3 ( p , v 3 , r ) ) .
A direct calculation gives
T a ( u 1 , v 1 , u 2 , v 2 , u 3 , v 3 ) ⟺ ∑ i = 1 3 ( u i − v i ) = a . T_a(u_1,v_1,u_2,v_2,u_3,v_3)\Longleftrightarrow\sum_{i=1}^{3}(u_i-v_i)=a. T a ( u 1 , v 1 , u 2 , v 2 , u 3 , v 3 ) ⟺ i = 1 ∑ 3 ( u i − v i ) = a .
For fixed f f f , put
( u i , v i ) : = { ( x i , y i ) if f ( i ) = 1 , ( y i , x i ) if f ( i ) = − 1. (u_i,v_i):=\begin{cases}(x_i,y_i)&\text{if }f(i)=1,\\(y_i,x_i)&\text{if }f(i)=-1.\end{cases} ( u i , v i ) := { ( x i , y i ) ( y i , x i ) if f ( i ) = 1 , if f ( i ) = − 1.
Then T a ( u 1 , v 1 , u 2 , v 2 , u 3 , v 3 ) T_a(u_1,v_1,u_2,v_2,u_3,v_3) T a ( u 1 , v 1 , u 2 , v 2 , u 3 , v 3 ) defines the preimage of R f , a R_{f,a} R f , a under ι \iota ι . Hence B \mathfrak{B} B has a primitive positive interpretation in G \mathfrak{G} G . By Lemma 15.5, it remains to show that CSP(B \mathfrak{B} B ) has unbounded width.
Every relation of B \mathfrak{B} B satisfies the assumptions of Lemma 15.9. Fix k ∈ N k\in\mathbb{N} k ∈ N and let ( V ; E ) (V;E) ( V ; E ) be a cubic graph of girth at least k k k , whose edges we orient arbitrarily. We construct an instance A \mathcal{A} A of CSP(B \mathfrak{B} B ) with domain E E E .
For every v ∈ V v\in V v ∈ V , choose an ordering e 1 , e 2 , e 3 e_1,e_2,e_3 e 1 , e 2 , e 3 of the edges incident with v v v , and define
f v ( i ) : = { − 1 if v is the initial vertex of e i , 1 if v is the terminal vertex of e i . f_v(i):=\begin{cases}-1&\text{if }v\text{ is the initial vertex of }e_i,\\1&\text{if }v\text{ is the terminal vertex of }e_i.\end{cases} f v ( i ) := { − 1 1 if v is the initial vertex of e i , if v is the terminal vertex of e i .
Add the constraint R f v , 0 ( e 1 , e 2 , e 3 ) R_{f_v,0}(e_1,e_2,e_3) R f v , 0 ( e 1 , e 2 , e 3 ) . At one vertex, replace this constraint by R f v , a ( e 1 , e 2 , e 3 ) R_{f_v,a}(e_1,e_2,e_3) R f v , a ( e 1 , e 2 , e 3 ) for some a ∈ G ∖ { 0 } a\in G\setminus\{0\} a ∈ G ∖ { 0 } .
This instance is unsatisfiable. Indeed, if s : E → G s:E\to G s : E → G were a solution, summing all its equations would give 0 0 0 on the left, because every edge occurs once with coefficient 1 1 1 and once with coefficient − 1 -1 − 1 . The right-hand side is a a a , a contradiction. Moreover, the incidence graph of A \mathcal{A} A is the subdivision of ( V ; E ) (V;E) ( V ; E ) , so A \mathcal{A} A has girth at least k k k . Thus, Lemma 15.9 shows that CSP(B \mathfrak{B} B ) has unbounded width, and Lemma 15.5 yields the same conclusion for CSP(G \mathfrak{G} G ). □
Corollary 15.11. Let B \mathfrak{B} B be a structure with a finite domain and a finite relational signature. If B \mathfrak{B} B pp-constructs ( Z p ; + , 1 ) (\mathbb{Z}_p;+,1) ( Z p ; + , 1 ) , for some prime p p p , then CSP(B \mathfrak{B} B ) has unbounded width.
Proof. Having unbounded width is preserved by pp-interpretations (Lemma 15.5) and homomorphic equivalence. For every c ∈ Z p c\in\mathbb{Z}_p c ∈ Z p , the relation R c 3 R^3_c R c 3 is pp-definable in ( Z p ; + , 1 ) (\mathbb{Z}_p;+,1) ( Z p ; + , 1 ) . Hence, the statement follows from Theorem 15.10. □
Corollary 15.12. Let B \mathfrak{B} B be a structure with a finite domain and a finite relational signature. Let B \mathbf{B} B be an idempotent algebra such that Clo ( B ) = Pol ( B ) \operatorname{Clo}(\mathbf{B})=\operatorname{Pol}(\mathfrak{B}) Clo ( B ) = Pol ( B ) . If HS ( B ) \operatorname{HS}(\mathbf{B}) HS ( B ) contains an abelian algebra with at least two elements, then B \mathfrak{B} B pp-constructs ( Z p ; + , 1 ) (\mathbb{Z}_p;+,1) ( Z p ; + , 1 ) for some prime p p p , and hence CSP(B \mathfrak{B} B ) has unbounded width.
Proof. Since restricting to a subalgebra and taking a quotient can be implemented by primitive positive interpretations (Theorem 7.23 ), we may assume that B \mathcal{B} B itself is abelian with at least two elements. If B \mathcal{B} B does not have a Taylor polymorphism, then it pp-constructs all finite structures (this follows from combining Corollary 9.19 and Corollary 9.8 ; Exercise 180 ). Otherwise, by Corollary 13.42 we know that B \mathcal{B} B is affine, i.e., polynomially equivalent to a module M M M . Since B \mathcal{B} B is idempotent, the graph of addition + + + in M M M is preserved by Clo ( B ) \operatorname{Clo}(\mathcal{B}) Clo ( B ) , so the structure ( M ; + , ( { b } ) b ∈ B ) (M; +, (\{b\})_{b \in B}) ( M ; + , ({ b } ) b ∈ B ) is pp-definable in B \mathcal{B} B . Since M M M is finite, it contains some element of order p p p , for p p p prime. The set { x ∈ M ∣ p x = 0 } \{x \in M \mid px = 0\} { x ∈ M ∣ p x = 0 } is pp-definable in B \mathcal{B} B ; hence, we may assume that every non-zero element of M M M has order exactly p p p . Thus, ( M ; + ) (M; +) ( M ; + ) is isomorphic to ( ( Z p ) k ; + ) ((\mathbb{Z}_p)^k; +) (( Z p ) k ; + ) , for some k ∈ N ≥ 1 k \in\mathbb{N}_{\geq1} k ∈ N ≥ 1 . Let c c c be any non-zero element of M M M . Then ( M ; + , { c } ) (M; +, \{c\}) ( M ; + , { c }) is homomorphically equivalent to ( Z p ; + , 1 ) (\mathbb{Z}_p; +, 1) ( Z p ; + , 1 ) .
Singleton AC
Singleton Arc-Consistency (SAC) comes close to strategies that humans perform when solving Sudoku puzzles. It relies on the arc-consistency procedure from Section 3, generalised to finite relational structures (Exercise 92, Definition 9.24 ).
Let B \mathcal{B} B be a finite structure with a finite relational signature τ \tau τ . The algorithm SAC B \operatorname{SAC}_{\mathcal{B}} SAC B takes as input a τ \tau τ -structure A \mathcal{A} A and works as follows. First, we run AC B \operatorname{AC}_{\mathcal{B}} AC B on A \mathcal{A} A ; if it detects an inconsistency, we reject. Then we repeatedly perform the following steps.
First create a copy L ′ L' L ′ of every list L L L computed by AC B \operatorname{AC}_{\mathcal{B}} AC B .
Pick a variable a a a and set L ′ ( a ) L'(a) L ′ ( a ) to { b } \{b\} { b } for some value b ∈ L ( a ) b \in L(a) b ∈ L ( a ) .
Again establish arc-consistency starting with the lists L ′ L' L ′ .
If AC detects an inconsistency, we permanently remove the value b b b from L ( a ) L(a) L ( a ) .
This is done for all pairs ( a , b ) ∈ A × B (a,b) \in A \times B ( a , b ) ∈ A × B until the lists L L L do not change any more. If in this way one of the lists becomes empty, the procedure returns No , otherwise Yes . The pseudo-code is displayed in Figure 23.
Remark 15.13. If the algorithm returns No , then there is no homomorphism from A \mathcal{A} A to B \mathcal{B} B .
We say that SAC B \operatorname{SAC}_{\mathcal{B}} SAC B solves CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) if the converse is true as well, i.e., if the algorithm returns Yes , then there is a homomorphism from A \mathcal{A} A to B \mathcal{B} B .
Remark 15.14. If k k k is the maximal arity of A \mathcal{A} A and B \mathcal{B} B , and SAC B \operatorname{SAC}_{\mathcal{B}} SAC B returns No , then the ( 2 , max ( 3 , k ) ) (2, \max(3,k)) ( 2 , max ( 3 , k )) -consistency procedure returns No as well. Similarly, it can be seen that if L ( a ) L(a) L ( a ) is the list computed by SAC B \operatorname{SAC}_{\mathcal{B}} SAC B for a ∈ A a \in A a ∈ A at the final stage of the algorithm, then L ( a ) L(a) L ( a ) is primitively positively definable in B \mathcal{B} B .
Definition 15.15 (Singleton arc-consistency). An instance A \mathcal{A} A of CSP ( B ) \operatorname{CSP}(\mathcal{B}) CSP ( B ) together with sets L ( a ) ⊆ B L(a) \subseteq B L ( a ) ⊆ B for every a ∈ A a \in A a ∈ A is called *singleton arc-consistent (with respect to B ) ∗ i f f o r e v e r y \mathcal{B})* if for every B ) ∗ i f f or e v er y a \in A$ and b ∈ L ( a ) b \in L(a) b ∈ L ( a ) , there are lists L ′ ( a ′ ) ⊆ L ( a ′ ) L'(a') \subseteq L(a') L ′ ( a ′ ) ⊆ L ( a ′ ) for every a ′ ∈ A a' \in A a ′ ∈ A with L ′ ( a ) : = { b } L'(a) := \{b\} L ′ ( a ) := { b } such that the instance A \mathcal{A} A together with the lists L ′ L' L ′ is arc-consistent (Definition 9.25 ).
Remark 15.16. Note that A \mathcal{A} A together with the sets L ( a ) L(a) L ( a ) , for a ∈ A a \in A a ∈ A computed by SAC B \operatorname{SAC}_{\mathcal{B}} SAC B at the final stage of the algorithm, is singleton arc-consistent.