Manuscript Offprint
arXiv:2609.03469Promise Systems of Equations over Magmas with Identity and over Algebras in Congruence Modular Varieties
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
NICK JAMESSON
ABSTRACT. We study the computational complexity of solving promise systems of equations over finite algebras. In this line of research one considers two algebras and of the same signature with a homomorphism , and the problem is the following:
PEqn():
INPUT: A system of equations in the signature of and .
PROBLEM: Is there a solution to the system of equations in or not even a solution in ?
We generalize the results of Larrauri, Mottet, and Živný from [11] to obtain a -hard dichotomy result for promise systems of equations over a class of algebras which contains all monoids, and a dichotomy result for promise systems of equations over algebras in a congruence modular variety. We then consider the metaproblem for promise systems of equations over algebras in a congruence modular variety: given finite algebras and such that is in a congruence modular variety, we show there is a quasi-polynomial time algorithm for determining whether or not PEqn() is in .
1. INTRODUCTION
Constraint satisfaction problems (CSPs) have been an important and wide ranging topic of research since Schaefer's dichotomy result on Boolean domains [14]. For a CSP with a Boolean domain , Schaefer proved that either CSP() is in or CSP() is -complete. A similar dichotomy for CSPs with any finite domain has been shown to hold by Bulatov [4] and by Zhuk [15].
Given the settled dichotomy of CSPs, the so called CSP metaproblem has also been studied in several papers (see [6, 13]). Here, the input is a relational structure , and the problem is to determine if CSP() is in or is -complete.
Brakensiek and Guruswami proposed a variant of CSPs known as promise constraint satisfaction problems (PCSPs) [2]. A natural example of a PCSP is a graph coloring problem: is an input graph 3-colorable or not even 6-colorable. The promise in the PCSP is that every input graph is indeed either 3-colorable or not even 6-colorable. Computational complexity of general PCSPs is generally still a wide open problem.
In this paper, we study promise systems of equations over finite algebras. This is a variant of a PCSP in which we fix algebras and with a homomorphism from to and have the following computational problem:
Date: September 4, 2026. 2020 Mathematics Subject Classification. 68Q17, 68Q25. Key words and phrases. constraint satisfaction, promise constraint satisfaction, equations, minions, magma, congruence modular variety. Supported by the National Science Foundation under Grant No. DMS 2452289.
NICK JAMESSON
PEqn(A, B):
INPUT: A system of equations in the signature of A and B.
PROBLEM: Is there a solution to the system of equations in A or not even a solution in B?
The study of PEqn(A, B) was initiated in [12] by Larrauri and Živný in the case of finite semigroups.
Our main results are dichotomy theorems for the computational complexity of PEqn(A, B): we characterize when PEqn(A, B) is in P and show that PEqn(A, B) is NP-hard otherwise. In particular, we establish dichotomy theorems for a class of algebras which contains expansions of magmas (see Definition 5.1) with a two sided identity, and also for algebras in a congruence modular variety. As a consequence, we obtain dichotomy results for familiar algebras contained in these classes such as lattices and rings. In order to formally state these results, we will first need some introductory definitions. We refer the reader to [5] for background in universal algebra. Throughout, we will be working with relational structures and algebras. We will denote by N the set of natural numbers {0, 1, 2, ...}. We will also use the following notation for often: .
Definition 1.1. A signature is a set of symbols; either function symbols, or relation symbols, each with an associated natural number, which we call the arity of the symbol (0-ary functions symbols are just constant symbols). If is a function symbol, we denote its arity by and similarly for a relation symbol .
Definition 1.2. Let be a signature with no function symbols. A relational structure of signature is a set together with a relation for each relation symbol . In this case, we write . We say is finite if is finite and is finite.
Definition 1.3. Let is a signature with no relation symbols. An algebra of signature is a set together with a function for each function symbol . We write . We say is finite if is finite and is finite.
Note that if , then is just constant.
Definition 1.4. Let and be two finite relational structures of the same signature . A function is called a homomorphism if the following hold: for all and for all , we have .
Definition 1.5. Let and be algebras of the same signature . A function is called a homomorphism if for all , and for all , we have .
We are now ready to give the definition of a promise constraint satisfaction problem.
Definition 1.6. [2] Let and be two relational -structures with a homomorphism . Then PCSP() is the computational problem given as follows:
INPUT: A finite relational -structure .
OUTPUT: YES if there is a homomorphism . NO if there is no homomorphism .
The promise here is that every input instance is indeed either a YES instance or a NO instance. The existence of a homomorphism guarantees that the input instance is not both a YES instance and a NO instance.
The main topic of this paper is a variant of a PCSP, namely a promise system equations over algebras, which we will define next. A system of equations in a signature without relation symbols is a finite set of equations of the form where and are -terms. If the variables occurring in the system of equations are , we may denote the system . If is an algebra of signature , and is a system of equations in the signature , then a solution to over is a mapping such that for each equation
we have that
Definition 1.7. Let and be finite algebras of signature with a homomorphism . We define the promise system of equations to be the following computational problem:
INPUT: A system of term equations in the signature .
OUTPUT: YES if there is a solution to the system in . NO if there is no solution to the system in .
As in the PCSP case, the promise here is that our instance of the problem is either a YES instance or a NO instance. We denote . Given an algebra of signature , we may expand to include a constant symbol for each and obtain an algebra which interprets the new constant symbols in the natural way. If we denote the resulting algebra , then a system of term equations over is just a system of polynomial equations over . We denote . There is a trivial reduction from to both and to . In view of the CSP dichotomy theorem, this means the interesting cases of are the cases in which both and are -complete. The next example shows that could be in in such a case.
Example 1.8. Let and . Then and are -complete, but is in .
Example 1.8 will follow from Theorem 8.9.
In [11, Proposition 5.9, Proposition 6.2], Larrauri, Mottet, and Živný gave a dichotomy result for promise systems of equations over monoids expanded with an additional relation. The first of our main results generalizes this to expansions of magmas with an identity. In particular, we obtain a dichotomy theorem for in the case where there is a binary polynomial operation with identity on which need not be associative.
Theorem 1.9. Let and be finite algebras, let , let be a binary polynomial operation on such that for all . Suppose there is a homomorphism . Then is either in or is -hard.
We will prove this as Theorem 8.9 and characterize the conditions under which is in . We then use Theorem 8.9, to prove Theorem 9.2. This is a dichotomy for in which belongs to a congruence modular variety.
Theorem 1.10 (Proven as Theorem 9.2). Let and be finite algebras with a homomorphism such that is in a congruence modular variety. Then is either in or is -hard.
Following these results, we prove Theorem 1.11, which shows there is a quasi-polynomial time algorithm that decides the metaproblem for promise systems of equations over finite algebras in a congruence modular variety.
Theorem 1.11. Let and be finite algebras with a homomorphism such that is in a congruence modular variety. Then there is a quasi-polynomial time algorithm which decides if is in or is instead -hard.
NICK JAMESSON
Definition 2.1. Let be a set and let be a function. Then we define the relation
Note that if is a 0-ary (constant) function, then is a singleton set.
Definition 2.2. Let be an algebra of signature . We denote by the relational structure .
In [10, Theorem 2.2], Larose and Zádori show that systems of polynomial equations over finite algebras are logspace equivalent to CSPs over finite relational structures. A similar proof works for the following:
Proposition 2.3. Let be a finite algebra of signature . Then is logspace equivalent to .
The proof of the above relies only on converting an instance of a system of term equations in a signature to an instance of a constraint satisfaction problem in a signature and vice versa. The reductions do not depend on the structure and can be recycled to prove the following equivalence:
Proposition 2.4. Let and be finite algebras of signature with a homomorphism . Then is logspace equivalent to .
By Proposition 2.4, we can use results about PCSPs in our discussion of promise equations.
3. MINIONS AND POLYMORPHISMS
Definition 3.1. Let be structures and let . We say is a polymorphism from into if is a homomorphism from into . We denote the set of polymorphisms from into by , and we denote .
It is known that determines the complexity of (see [1, Theorem 2.25, Theorem 3.1]). In the study of PCSPs, we work with polymorphisms between two different structures in , and therefore polymorphisms can no longer be composed as they can in . However, is still closed under variable manipulations, such as identification, permutation, and introduction of fictitious variables. Formally, is a minion.
Definition 3.2. [12] A minion consists of a set for each , and a function for each function satisfying:
(1) for all .
(2) for all that can be composed.
Definition 3.3. [1, Definition 2.19] Let and be sets, let , let be a function, and let be a function. We define by
for all . We call a minor of . We denote by the function
and we call the unary minor of .
Definition 3.4. [1, Definition 2.20] Let and be sets and let . A function minion from to is a subset of closed under taking minors of functions. The set of -ary elements of is denoted .
Note that if and are structures, then is a function minion. A function minion is an example of a minion.
In the proof of Theorem 8.9, we will make use of monoidal minions.
Definition 3.5. [12] Let be a monoid and . We say is a commutative tuple from if for all .
Definition 3.6. [12, Definition 3] Let be a monoid and let . The monoidal minion consists of commutative tuples from whose product is . Given , and , the minor is the tuple where for . Here, the empty product is just the identity of the monoid . Hence, if is empty, we get above.
Note that monoidal minions are minions.
Definition 3.7. [1, Definition 2.21] Let and be minions. A function is called a minion homomorphism if the following hold:
(1) preserves arities. That is, for all we have .
(2) For all and and , we have .
If there are minion homomorphisms and , we say and are homomorphically equivalent.
In [3] and [1], the basic linear programming relaxation (BLP) and the basic affine integer relaxation (AIP) of an instance of a PCSP are studied. Given an instance of PCSP(), one can construct an instance of a linear program corresponding to . One can also construct the so called affine relaxation instance . This is a system of equations over the integers. Under some conditions, algorithms which use these new instances will correctly solve PCSP(). The AIP algorithm uses the instance to solve PCSP(). The BLP+AIP algorithm described in [3] uses both instances. Both algorithms run in polynomial time.
Definition 3.8. [3, Definition 3.1] The BLP+AIP algorithm correctly solves PCSP() if it accepts any YES instance of PCSP() and rejects any NO instance of PCSP().
We will now describe the conditions required for BLP+AIP and for AIP to correctly solve PCSP(). In particular, the polymorphism minion is required to contain functions which have some symmetry properties.
Definition 3.9. Let and be sets, let , and let be a function. Then is called 2-block symmetric if there exists a partition of into two blocks of size and , respectively, such that for every permutation of that preserves each block, we have .
Definition 3.10. Let be sets, let , let be a function. Then is called alternating if for all , we have and for all permutations on which send even numbers to even numbers and odd numbers to odd numbers.
Note that an alternating function is 2-block symmetric with blocks corresponding to even and odd indices.
Example 3.11. Let be an abelian group. Then given by
is an alternating function.
NICK JAMESSON
Proposition 3.12. [3, Theorem 5.1] Let and be finite relational structures with a homomorphism . Then PCSP() is solvable by BLP + AIP if and only if contains 2-block symmetric maps of all odd arities.
Proposition 3.13. [1, Theorem 7.19] Let and be finite relational structures with a homomorphism . Then PCSP() is solvable by AIP if and only if contains alternating maps of all odd arities.
4. MINOR CONDITIONS AND HARDNESS FROM MINIONS
Pol() controls the complexity of PEqn() by [1, Theorem 2.25, Theorem 3.1]. The main tool for proving hardness of PEqn() that we will use is the existence of a selection function on Pol().
Definition 4.1. Let be a subset of a minion. Suppose there exist and which for all satisfy the following properties:
(1) For each , we have and .
(2) For each and such that , we have . Then the function is called a selection function for with bound .
In order to obtain a generalization of [1, Corollary 5.13], which allows us to show that PCSP() is NP-hard by constructing selection functions, it is necessary to first define minor conditions.
Definition 4.2. Let and be function symbols of arities and respectively. A minor identity is an expression of the form
where . A minor condition is a finite system of minor identities. A bipartite minor condition is a minor condition in which the function symbols on the right hand side of the identities are disjoint from the function symbols on the left hand side of the identities.
Definition 4.3. Let be a set of functions and let be a minor condition. We say that satisfies if there is an assignment of function symbols in to functions in which preserves arity and such that for every identity
we have . We say a minor condition is trivial if it is satisfied in every function minion. Equivalently, a minor condition is trivial if it is satisfied in , the projections on the set .
Definition 4.4. Let . A bipartite minor condition is said to be -robust if no -fraction of identities from is trivial.
For functions and , if there are constants and such that for all we have , then we say .
Proposition 4.5. [1, Theorem 5.22] Let and be relational structures with a homomorphism , let be a function with for all , let
where for , satisfies no -robust bipartite minor condition involving symbols of arity at most . Then PCSP() is NP-hard.
We remark that the above are not necessarily minions themselves. We now state a generalization of Lemma 5.12 from [1].
Proposition 4.6. [1, cf. Lemma 5.12] Let be a set of functions and let . Suppose there exists such that for all
(1) for all , we have ,
(2) for all and all with we have
Then for all , we have that satisfies no -robust bipartite minor condition involving symbols of arity at most .
Proof. The proof is exactly as in [1, Lemma 5.12] in which is assumed to be a minion. As mentioned in [1], with the above revised hypotheses, this assumption is not necessary.
Corollary 4.7. [1, cf. Corollary 5.13] Let be a set of functions and let be a selection function for with bound . Then satisfies no -robust bipartite minor condition.
Proposition 4.8. [11, cf. Theorem 5.1] Let and be finite relational structures with a homomorphism . Suppose that
and that for each , there exists a selection function for . Then PCSP() is NP-hard.
Proof. By combining Proposition 4.5 and Corollary 4.7 we have the result.
5. BACKGROUND ON SEMIGROUPS AND MONOIDS
The following background information on semigroups will be used in the proofs of tractability and hardness results in sections 7 and 8.
Definition 5.1. A magma is an algebra with a binary operation . If is associative, we call a semigroup. If is a semigroup with a two sided identity, we call a monoid.
Lemma 5.2. [9, cf. Theorem 1.2.3] Let be a finite semigroup. There exists an integer such that is idempotent for all . Moreover, every , has a unique idempotent power denoted .
Definition 5.3. Let be a semigroup. An element is called group element if is a member of a subgroup of .
Note that if an element of a finite semigroup is group element, we have for some , and is the identity in any subgroup of which contains . Because , we see that is the unique inverse of in any subgroup containing . Therefore, we may denote the inverse of a group element element of a finite semigroup by .
We remark that an element of a semigroup is called regular if there exists some with (see [9, Section 2.3]). Group elements are always regular. If is commutative, it can be shown that regular elements are group elements. Therefore, when working with a commutative semigroup, we will refer to regular elements as group elements. A regular semigroup is a semigroup in which every element is regular. Hence if is a finite commutative regular semigroup, then every element of is a group element. If is a finite semigroup and , it is easy to see that is regular. We write .
Lemma 5.4. Let be a finite commutative semigroup, and let such that is a group element and . Then .
Proof. By commutativity, we have . Then . Because is a group element, . Similarly, .
Definition 5.5. Let be a finite commutative semigroup and let . We define .
NICK JAMESSON
Definition 5.6. Let be a semigroup and let . We define . Similarly, for we define . When the choice of the operation is clear, we may write .
Definition 5.7. Let be a semigroup and be a subset of group elements. We define .
Definition 5.8. Let be a finite commutative semigroup. A subset is called a coset of if is a subset of group elements and .
Lemma 5.9. Let be a finite commutative semigroup, let be a subset of group elements. Let be the closure of under the operation . Then is the smallest coset containing .
Proof. We first note that [U] is a set of group elements since products and inverses of group elements of a commutative semigroup are also group elements.
Next, we claim . For any , note that . Hence . On the other hand, we have since is closed under . Therefore so that is a coset.
Now we claim that any coset containing contains . To see this, let be a coset containing . Then , so that is closed under . Hence . Because , we know as desired.
We remark that [U] is denoted in [11].
Lemma 5.10. [11, Lemma 5.5] Let be a finite commutative monoid. Then there exists such that for all and all , we have .
Lemma 5.11. Let be a finite commutative semigroup, let , let , and let . Then .
Proof. We know for some elements . By commutativity
Lemma 5.12. Let be a finite commutative semigroup. For all , and for all which are subsets of group elements, we have .
Proof. We will use induction. The case is trivial. The case is needed for the inductive argument. Note that . Also, by commutativity we have for all , so that
Hence is a coset containing , which is to say .
For the inductive step we assume the hypothesis holds for n. Then
Lemma 5.13. [11, cf. Lemma 4.5] Let be an algebra where is a binary operation, and let be a finite commutative semigroup. Let be a finite set of homomorphisms and define by , where the product is . Let . Then
Proof. We have so that from Lemma 5.11. Hence
by Lemma 5.12.
6. VARIETIES AND COMMUTATORS
We introduce some notation and results on general algebras that we need to formulate our results. For more background, see [5] and [7].
Definition 6.1. A class V of algebras of signature that is closed under taking homomorphic images, subalgebras, and direct products is called a variety.
For example, the class of all groups, the class of all abelian groups, and the class of all rings are varieties. In fact, each of these varieties has a Mal'cev term.
Definition 6.2. Let be a variety. We say the ternary term in the signature of is a term of if for each and we have
If is the variety of all multiplicative groups, then is a Mal'cev term for . We will now define some operations on congruences of algebras which will be used in the proof Theorem 9.2.
Definition 6.3. Let A be an algebra. We denote the congruence lattice of A by Con A with intersection and join .
Of particular interest is the situation in which A is an algebra such that Con A is modular:
Definition 6.4. We say a variety is congruence modular if for all the congruence lattice Con satisfies the modular law:
for all .
Every variety with a Mal'cev term is congruence modular (see [5, Theorem 5.10]). We will prove a dichotomy for PEqn(A, B) in the case of Mal'cev algebras in Theorem 8.13 and then generalize this result to the case of algebras in a congruence modular variety in Theorem 9.2. The proof of Theorem 9.2 will require another operation on Con A known as the commutator.
Definition 6.5. [7, Definition 3.2, Proposition 3.3] Let A be an algebra, and let .
(1) We define to be the subalgebra of generated by
for all and .
(2) We define to be the smallest such that for all . We say is the commutator of with .
The common notion of the commutator of two normal subgroups of a group coincides with the above notion if one identifies normal subgroups with their associated congruence. We can use the commutator to define an abelian algebra. Solving systems of equations over abelian algebras tends to be easier than solving systems of equations over non-abelian algebras. We will make this statement precise in sections 7, 8, and 9.
NICK JAMESSON
Definition 6.6. Let be an algebra, let be the total congruence on and let be the equality relation on . We say is abelian if .
It follows from Definition 6.5 and Definition 6.6 that is abelian. Also, if is abelian, then . The converse is not always true, but we will later see that it is true in congruence modular varieties. The notion of an abelian group coincides with our above definition as well. An abelian ring is actually just a ring with 0-multiplication:
Example 6.7. A ring A is abelian if and only if it has 0-multiplication.
Proof. First, suppose is abelian. For all we have
Hence
Since , we have by definition of the commutator that . That is, has 0-multiplication.
For the converse, note that a ring with 0-multiplication is term equivalent to an abelian group. ☐
We will also use the notion of a solvable algebra. This coincides with the common notion of a solvable group if our algebra is a group.
Definition 6.8. Let be an algebra and . Define and for define . If for some , we say, we say is -step solvable or that is solvable.
Proposition 6.9. [7, Theorem 6.2] Solvable algebras in a congruence modular variety have a Mal'cev term.
We will now list some common properties of the commutator which will be used throughout Section 9.
Proposition 6.10. [7, Proposition 3.4, Proposition 4.4] Let A be an algebra with subalgebra C and let . Then
(1) is monotone in both and ,
(2) ,
(3)
We remark that Proposition 6.10 (3) implies subalgebras of abelian algebras are abelian.
Proposition 6.11. [7, Proposition 4.3, Proposition 4.4] Let be algebras in a congruence modular variety, let , and let be a surjective homomorphism. Then
(1) ,
(2) ,
(3) ,
For algebras in congruence modular varieties, we remark that Proposition 6.11 (3) implies that quotients of abelian algebras are abelian and that is abelian if and only if . Similarly, quotients of solvable algebras are solvable, and is solvable if and only if there exists some such that .
Proposition 6.12. [7, cf. Proposition 4.5] Let , let , let be in a congruence modular variety for each , and let for each . Then
Here the product is the direct product and the congruence is a congruence on the algebra .
Definition 6.13. [8] Let be a variety. We say the ternary term in the signature of is a weak difference term of if is idempotent and for each and we have
where is given by the commutator and is the congruence generated by the pair .
It is known that congruence modular varieties have weak difference terms. In fact if is a congruence modular variety, then has a difference term . For all and for all , the term satisfies
where (see [7, Theorem 5.5]).
Note that in an abelian algebra , every commutator is the equality relation . In particular, for all we know that is the equality relation. That is, a weak difference term of an abelian algebra is just a Mal'cev term. Furthermore, in the case where is abelian, it is well known that the Mal'cev term operation can be given by where + is addition of an abelian group on the set and that commutes with the basic operations of the algebra (see [7, Lemma 5.6, Proposition 5.7]).
7. TRACTABILITY RESULTS
We will first extend the tractability part of [12, Theorem 3] by mimicking the proof technique in a different setting, in particular for algebras in varieties with weak difference terms.
Proposition 7.1. Let A and B be finite algebras in a variety with a weak difference term d such that there exists a homomorphism .
If there is a homomorphism such that is an abelian algebra, then is solvable by AIP, hence in polynomial time.
Proof. We will apply Proposition 3.13 to get the result, so we need to define for each odd arity a polymorphism from to which is alternating. Define . Because is abelian, we have that is a Mal'cev term operation with where + is the addition in an abelian group from [7, Lemma 5.6]. Furthermore, commutes with all the basic operations of by [7, Proposition 5.7].
For , we define
From this it is clear we can permute inputs with even indices or with odd indices and not change the value of . Furthermore, for any , it is easy to see that
We now show that is a polymorphism from to . Let be a basic operation symbol in of arity . Let for each with . Then
NICK JAMESSON
The following lemma will be useful for reducing excess notation.
Lemma 7.2. Let and be algebras of the same signature with a polymorphism , let an -ary term operation on , let for each , and let the binary polynomial operation on be given by
Define the binary polynomial operation on by
Then is a homomorphism.
Proof. By definition of a polymorphism we have
The next result involves algebras expanded with an additional relation. In this setting, it is useful to consider the relational structures corresponding to our algebras as in Proposition 2.4. If and are relational structures with a homomorphism , it can be shown that is polynomially equivalent to
That is, every PCSP can be viewed as a PCSP involving relational structures with just one relation.
Proposition 7.3. Let and be finite algebras, let be a binary polynomial operation on . Let and be relations, and define , , , .
If there is a homomorphism such that
(1) is a commutative regular semigroup and
(2) ,
then is solvable by , hence is in .
Proof. Let be a homomorphism that satisfies conditions 1. and 2.
Now we can closely follow an argument from [11, Proposition 6.2]. We will show there exist 2-block symmetric polymorphisms of every odd arity from to and then apply Proposition 3.12.
Because is a union of (finite) abelian groups by assumption, we know that for all , there exists a unique which is an inverse of with respect to the multiplication . We define for each
where the multiplication above is .
Since our multiplication is commutative, it is immediate that is 2-block symmetric with blocks corresponding to the even and odd indices. We remark that is not necessarily alternating (although is an identity of a subgroup of , it need not be an identity of
. Next, we need to show that is a polymorphism from to . That is, we must show that . We have
So is a 2-block symmetric polymorphism from to for each and therefore is in by Proposition 3.12.
8. HARDNESS RESULTS
In [11], Larrauri, Mottet, and Živný showed that there is a dichotomy for PEqn(A, B) where A and B are finite monoids expanded with an additional relation. We can use the proof techniques from [12, Theorem 3] and [11, Proposition 5.9] to generalize this dichotomy to the case in which A and B have a binary polynomial operation and this operation has a left and right identity in A. We remark that this binary polynomial operation need not be associative.
The following is contained in the proof of [12, Theorem 5], and will be applied later in the construction of a selection function in the proof of our main hardness result.
Proposition 8.1. [12] Let be a finite monoid with such that is not a group element of . Then there exists and a selection function with bound .
Proposition 8.2. Let be minions. If is a minion homomorphism and has a selection function with bound , then is a selection function for with bound .
Proof. Since has bound , it is immediate that has bound . Let and let be a function. We have
We will use the functions in the next lemma in the proof of Theorem 8.9.
Lemma 8.3. Let and be finite algebras, let , let be a binary polynomial operation on such that for all , let where , and for each , let . Define
Then
(1) for ,
(2) for ,
(3)
where the multiplication is .
Proof. Throughout, the multiplication occurring in is , so we will omit the multiplication symbol for readability. To prove (1), observe that
NICK JAMESSON
by applying Lemma 7.2.
To prove (2), we similarly observe that
The proof of (3) is similar.
Lemma 8.4. Let and be finite algebras, let , let be a binary polynomial operation on such that for all , let where . Let . We have:
(1) if , then is a commutative monoid.
(2) is a commutative monoid if and only if is a commutative monoid for each .
Proof. (1) is immediate from Lemma 8.3.
To prove (2), first note that if is a commutative monoid, then each subalgebra is a commutative monoid.
For the converse, we first show commutativity of . Let and consider . We get
For associativity, the proof is similar.
In the proof of Theorem 8.9, we will construct a selection function which outputs unions of equivalence classes given in the following definition.
Definition 8.5. [11] Let and be algebras, let , let be a binary polynomial operation on such that for all , we have , and let . We define a binary relation on by letting if .
Note that is an equivalence relation. We will refer to the equivalence classes of as p-equivalence classes.
The next important lemma is a generalization of [11, Proposition 5.8] and will help us construct a selection function for in our proof of Theorem 8.8
Lemma 8.6. [11, cf. Proposition 5.8] Let and be finite algebras of the same signature, let be a binary polynomial operation on , let be such that for all . Let be the subset of polymorphisms such that:
(1) is a commutative monoid,
(2) is a regular submonoid of .
Let , and let . For each , define to be the union of -equivalence classes of size smaller than
where is obtained from Lemma 5.10.
If for some , then .
Proof. We follow the proof techniques from [11]. Note that our multiplications , are polynomial operations on our algebras rather than basic operations.
Let with , , and be such that and .
Note that for each , the map given by is a homomorphism and that the map satisfies by Lemma 7.2. Corresponding statements hold for for each and . Since is minor of , we have , and is a restriction of . By the regularity of , we know that . Therefore
(1)
by Lemma 5.13, where the product is . Moreover
(2)
Note by definition of that is a union of -equivalence classes of size greater than or equal to . Let be one of these equivalence classes. Then for all and we may define where . Hence
(3)
by Lemma 5.10. Combining 2 and 3, we have
(4)
Now recall that so that for , we have for all . By Lemma 5.13 we get . Now combining this with 1 and 4, we have
(5)
We want to replace the right hand side of 5 with . To do this, let so that where
Because is a group element, we can apply Lemma 5.4 to get for all . In particular, this implies that
For , we have . Also, note that is a union of -equivalence classes of size greater than or equal to by definition of . Let be such an equivalence class. Then by Lemma 5.10, we have
By assumption, we have so that . Then for , we know that . We have shown that
Hence as desired.
NICK JAMESSON
In order to state our main results in more familiar language, we will prove the following lemma.
Lemma 8.7. Let and be finite algebras, let be a binary polynomial operation on . Define , . Suppose there is a homomorphism such that is a commutative regular monoid.
Then if and only if is a polymorphism of the algebra .
Proof. We first assume and show that preserves for each . So pick and note that our assumption implies that . Recall by Lemma 5.9 that is the closure of under the operation . In particular, we know is the closure of under the operation . Therefore
Let , and let
(6)
Then we have
(7)
But each of the for are members of as is an operation on . So 7 says that
(8)
But by 6 , and , so we have shown that commutes with as desired.
Conversely, if is a polymorphism of the algebra , then we have
for each . Therefore is closed under for each . By Lemma 5.9,
for each , which implies .
We are now ready to state our first main result. This is a dichotomy theorem for a class of structures which contains expansions of monoids and is a generalization of [11, Proposition 5.9].
Theorem 8.8. Let and be finite algebras, let be a binary polynomial operation on such that for all . Let and be relations, and define , , . Suppose there is a homomorphism .
If there is a homomorphism such that
(1) is a commutative regular monoid,
(2) is a polymorphism of , and
(3) ,
then PCSP() is solvable by BLP+AIP, hence is in . Otherwise PCSP() is NP-hard.
Proof. First observe by Lemma 8.7 that conditions (2) and (3) together are equivalent to . Therefore tractability follows from Proposition 7.3.
For hardness, we will assume there is no homomorphism satisfying condition (1) of the theorem and satisfying the condition that . We will demonstrate NP-hardness of PCSP by using techniques from [11, 12]. For each , let be the diagonal substructure of with universe . We first remark that since (by assumption) no homomorphism exists satisfying condition (1) and , every polymorphism satisfies exactly one of the following:
(i) is not a commutative monoid.
(ii) is a commutative monoid, but is not a regular submonoid of .
(iii) is a commutative monoid, is a regular submonoid of , but .
Let be the sets of satisfying conditions (i), (ii), and (iii) respectively. We will define a selection function on for each .
(i) For , we let
We will show is a selection function for with bound
To show is a selection function for , we will start by showing that is nonempty for any . To see this, note that is not a commutative monoid by assumption. Then by Lemma 8.4 we know there exists such that is not a commutative monoid. Hence is nonempty.
Now suppose and . Let be such that , and let . Because is a minor of , we know from Lemma 7.2 that for all we have
where the product is with multiplication . Hence . As in the argument above, since is not a commutative monoid, we have some such that is not a commutative monoid either. Then and . Together with the nonemptiness of , this shows that .
Next, we show that is bounded. Let , let , and let . Then we cannot have by Lemma 8.4, because is not a commutative monoid. The number of distinct images of with is bounded by
Together with the previous statement, the Pigeonhole Principle implies .
(ii) Consider . For a homomorphism , let . Then note that if is a minor of , we have . So is a minion and is a finite disjoint union of such because every polymorphism induces a homomorphism as described above. If we obtain a selection function for each such , then by taking their union, we get a selection function for and we are done.
Consider a with as above. Because is a commutative monoid which is not regular, we have such that is not in a subgroup of . Consider the monoidal minion . We claim that
is a minion homomorphism. By Lemma 7.2
NICK JAMESSON
Hence Moreover, preserves minors. To see this, let , , and let . Then
Now Proposition 8.1 and Proposition 8.2 provide us with a selection function for with some finite bound . We take the union of the finitely many for to get a selection function for with bound . This concludes the proof that there is a selection function for .
(iii) Let . Note for this case, we have that satisfies conditions (1) and (2) of Lemma 8.6. So define
where is from Lemma 8.6. Since and , we cannot have . Hence by applying Lemma 8.6, we obtain .
It remains to show that is bounded. For all , every -equivalence class is determined by functions . Since there are at most many such functions, there are at most many -equivalence classes for each . But by definition of , the size of each equivalence class contained in is less than . Then for all . Since we have found a selection function for , this concludes the proof.
For algebras and without the additional relations and , we may omit condition (3) from Theorem 8.8 and get the following result:
Theorem 8.9. Let and be finite algebras, let , let be a binary polynomial operation on such that for all . Suppose there is a homomorphism .
If there is a homomorphism such that
(1) is a commutative regular monoid, and
(2) is a polymorphism of ,
then PEqn(A,B) is solvable by BLP+AIP, hence is in P. Otherwise PEqn(A,B) is NP-hard.
Corollary 8.10. Let and be expansions of finite lattices with a homomorphism . If there is a homomorphism such that , then is in . Otherwise is -hard.
Proof. The binary operation of a lattice has two sided identity 1. Moreover, every element of a lattice belongs to a trivial subgroup (and is its own inverse) with respect to the operation . Then we write . Note that if commutes with , then in particular
We apply Theorem 8.9 using the operation to obtain the result.
We observe that Mal'cev algebras also fall into the hypotheses of Theorem 8.9. Consider an algebra with Mal'cev polynomial operation . We see that for , the polynomial operation satisfies . However, we are able to simplify the statement of the theorem for algebras with a Mal'cev polynomial using the following lemma:
Lemma 8.11. Let be a finite algebra with a Mal'cev polynomial operation , let , and define for all . Suppose that is a commutative, regular monoid.
Then is abelian if and only if is a polymorphism of .
Proof. Assume is abelian and let be the expansion of with constant symbols for each . Then is abelian and is a Mal'cev term operation of . Note that for some abelian group operation + on by [7, Proposition 5.7]. We have . Therefore . That is, the element is an inverse of the element with respect to the operation . So forms an abelian group with identity and with for each . But then
Since is a polymorphism of , we see that is a polymorphism of . Hence is also a polymorphism of .
For the other direction, assume that is a polymorphism of . Because is idempotent and is a polynomial operation of , we know that commutes with . Then for , we have
Similarly, we have . Therefore . Hence is actually an abelian group with inverses given by . Now we have
Since is a polymorphism of by assumption, we have that is a polymorphism of , and is abelian by [7, Proposition 5.7]. Therefore is abelian as well.
The following lemma is folklore.
Lemma 8.12. Let A be an algebra with a Mal'cev polynomial operation p. If A is abelian, then p is a term operation of A.
Proof. Let be the expansion of with 0-ary operations for each interpreted in the natural way. Then is abelian and is a Mal'cev term operation of . And for all for some abelian group operation + on by [7, Lemma 5.6, Proposition 5.7]. Because is a polynomial operation on , there exists some , some term operation on , and some with
for all . Since is polynomially equivalent to a module by [7, Corollary 5.9], there exists some polynomial over with
for all and with .
It is now straightforward to check that
for all .
We can now state a dichotomy for Mal'cev algebras.
NICK JAMESSON
Theorem 8.13. Let , be finite algebras with a homomorphism such that has a Mal'cev polynomial operation .
If there is a homomorphism such that is abelian, then is solvable by AIP, hence is in . Otherwise is NP-hard.
Proof. For tractability, we note that has a Mal'cev term by Lemma 8.12. Then we can construct alternating polymorphisms from to of every odd arity as in Proposition 7.1.
For hardness, assume there is no homomorphism such that is abelian. Let . Then conditions (1) and (2) of Theorem 8.9 cannot hold for , since otherwise would be abelian by Lemma 8.11. Hence is NP-hard.
Corollary 8.14. Let and be finite rings with a homomorphism .
If there is a homomorphism such that has a 0-multiplication, then is solvable by AIP, hence is in . Otherwise is NP-hard.
Proof. This follows from Theorem 8.13 since a ring is abelian if and only if it has a 0-multiplication by Example 6.7.
We can now return to Example 1.8. Here, we have and . The only homomorphism is the identity, and does not have a 0-multiplication, so is NP-complete. Similarly, is NP-complete. There is only one homomorphism determined by . And is a two element ring with a 0-multiplication. Hence is in .
9. CONGRUENCE MODULAR VARIETIES
We will now extend Theorem 8.13 to algebras in congruence modular varieties. For two congruences on an algebra , recall that we denote the commutator of with by .
By [7, Theorem 6.2], we know that solvable algebras in congruence modular varieties are Mal'cev algebras. With Theorem 8.13, we have already established a dichotomy for in the case where is a Mal'cev algebra. In the remainder of this section, we will establish a dichotomy for in the case where is in a congruence modular variety by using the previous results and by obtaining a selection function for
Lemma 9.1. Let and be finite algebras with a homomorphism such that is in a congruence modular variety. For each and each , let be the kernel of the -th projection map . For
we define
Then I is a selection function with bound .
Proof. We first claim that
(9)
To prove this claim, let such that is solvable for each . Then we have some such that for each by the remarks following
Proposition 6.11. We obtain with the left associated iterated binary commutator:
Therefore
is solvable, hence and 9 is proved.
Next, let and such that . Then we claim
(10)
In particular, by 9, this will yield .
For the proof, we will introduce some new notation. For , we define by for each . Note that . Now for , define
We claim that is a surjective homomorphism whose kernel contains . By definition, is a homomorphism. To see is surjective, note that if , then there exists some with . Now note that because for we know
We also have because
Therefore .
We now know that is a homomorphic image of . By the remarks following Proposition 6.11, we know that if is solvable, then is solvable. Equivalently, if is not solvable, then is not solvable, which is to say if , then . Hence 10 is proved, and together with 9, we have .
Now we claim that for all , we have
(11)
To prove this claim, let , and let with . Note that . So if , we have . Hence . This proves 11. Together with the fact that , we have shown that is a selection function on .
We are now ready to give a dichotomy for PEqn(A, B) in the case where A is in a congruence modular variety.
NICK JAMESSON
Theorem 9.2. Let and be finite algebras with a homomorphism such that is in a congruence modular variety.
If there is a homomorphism such that is abelian, the PEqn() is solvable by AIP, hence is in . Otherwise PEqn() is NP-hard.
Proof. Tractability using AIP follows from Proposition 7.1.
For hardness, suppose there is no homomorphism such that is abelian. Let
From Lemma 9.1, we have a selection function for . Therefore, it suffices to find a selection function for by Proposition 4.8. We first observe that is a minion as subalgebras of solvable algebras are solvable by Proposition 6.10(3). Let be such that is the maximal solvable quotient of . Hence is the maximal solvable quotient of for each by Proposition 6.12. Note that is a Mal'cev algebra by Proposition 6.9. By assumption, there is no homomorphism such that is abelian. From the proofs of Theorem 8.8 and Theorem 8.13, there is a selection function for . It therefore suffices by Proposition 8.2 to find a minion homomorphism . We define
where is given by
and . Note is well defined because the assumption that is solvable implies by Proposition 6.12 and the remarks following Proposition 6.11. It is immediate from the definition of that preserves arity minors. This concludes the proof that is a minion homomorphism.
10. METAPROBLEM RESULTS
In [13, Theorem 2], Mayr establishes a dichotomy for SysTerm(A) in the case where A is a finite algebra in a congruence modular variety. In particular, SysTerm(A) is in P if the core of A is abelian and SysTerm(A) is NP-complete otherwise. A core of an algebra A is a minimal image of an endomorphism of A. Then, in [13, Theorem 3], Mayr gives a quasi-polynomial time algorithm which decides whether or not the core of an input algebra A is abelian:
Proposition 10.1. [13, Theorem 3] Let A be a finite algebra in a variety with a weak difference term. There exists a quasi-polynomial time algorithm which decides whether or not the core of A is abelian. If the core of A is abelian, then the core of A and the graph of its Mal'cev term operation can also be computed in quasi-polynomial time.
This decides the metaproblem for SysTerm(A) in quasi-polynomial time. Theorem 9.2 is a generalization of [13, Theorem 2]. The complexity of PEqn(A, B) in the case where A is in a congruence modular variety is determined by whether or not there is a homomorphism from A to B with an abelian image. To settle the metaproblem for PEqn(A, B) in quasi-polynomial time, we can modify the algorithm from [13, Theorem 3], which determines whether or not there is a homomorphism from A to itself with abelian image. To obtain the quasi-polynomial time algorithm, we first need the following lemma.
Lemma 10.2. Let be a finite algebra in a variety with a weak difference term and let be finite algebra. Then there exists a homomorphism such that is abelian if and only if there exists a homomorphism .
Proof. Let , be the canonical homomorphism, and suppose is a homomorphism. Then we claim has abelian image. Recall that is abelian. By Definition 6.13 and Proposition 6.10, the term satisfies
for all . Equivalently
for all . Hence is an abelian Mal'cev algebra. In particular is in a congruence modular variety. And homomorphic images of abelian algebras in congruence modular varieties are abelian by the comments following Proposition 6.11.
Conversely, suppose is such that is abelian. Since is abelian, we know that and that . Now the map
is seen to be the desired well defined homomorphism with kernel .
The algorithm in [13, Theorem 3] decides in quasi-polynomial time whether or not there is a homomorphism from to . Similarly, we have:
Proposition 10.3. Let be a finite algebra in a variety with a weak difference term and let be a finite algebra. There exists a quasi-polynomial time algorithm which decides whether or not there exists a homomorphism from to .
Proof. We will modify the algorithm from [13, Theorem 3], which checks if there is a homomorphism from to in quasi-polynomial time. We instead check if there is a homomorphism from to .
As in Lemma 10.2, we know that is an abelian algebra with a Mal'cev term operation . And where is an abelian group operation on by [7, Lemma 5.6, Proposition 5.7]. The algebra can be computed in polynomial time as in [13, Theorem 3]. We may compute a set of generators for in time polynomial in with . Every homomorphism is uniquely determined by its image on , so we may choose any to be the possible images of . Then we compute in time polynomial in and . By computing this subalgebra, we can test whether or not the map determined by for extends to a homomorphism. There are choices for . Hence this algorithm runs in quasi-polynomial time in and .
We can now prove Theorem 1.11:
Proof of Theorem 1.11. By combining Theorem 8.13 with Lemma 10.2 and Proposition 10.3, we obtain the result.
AKNOWLEDGMENT
Thanks to Peter Mayr for his suggestions on the approach for Section 9.
STATEMENTS ON USE OF AI
AI has not been used in the writing of this paper in any way.
NICK JAMESSON
24
REFERENCES
[1] Libor Barto, Jakub Bulín, Andrei Krokhin, and Jakub Opršal. Algebraic approach to promise constraint satisfaction. J. ACM, 68(4):Art. 28, 66, 2021.
[2] Joshua Brakensiek and Venkatesan Guruswami. Promise constraint satisfaction structure theory and a symmetric Boolean dichotomy. In Proceedings of the Twenty-Ninth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 1782–1801. SIAM, Philadelphia, PA, 2018.
[3] Joshua Brakensiek, Venkatesan Guruswami, Marcin Wrochna, and Stanislav Živný. The power of the combined basic linear programming and affine relaxation for promise constraint satisfaction problems. SIAM J. Comput., 49(6):1232–1248, 2020.
[4] Andrei A. Bulatov. A dichotomy theorem for nonuniform CSPs. In 58th Annual IEEE Symposium on Foundations of Computer Science—FOCS 2017, pages 319–330. IEEE Computer Soc., Los Alamitos, CA, 2017.
[5] Stanley Burris and H. P. Sankappanavar. A course in universal algebra, volume 78 of Graduate Texts in Mathematics. Springer-Verlag, New York-Berlin, 1981.
[6] Hubie Chen and Benoit Larose. Asking the metaquestions in constraint tractability. ACM Trans. Comput. Theory, 9(3):Art. 11, 27, 2017.
[7] Ralph Freese and Ralph McKenzie. Commutator theory for congruence modular varieties, volume 125 of London Mathematical Society Lecture Note Series. Cambridge University Press, Cambridge, 1987.
[8] Ralph S. Freese, Ralph N. McKenzie, George F. McNulty, and Walter F. Taylor. Algebras, lattices, varieties. Vol. III, volume 269 of Mathematical Surveys and Monographs. American Mathematical Society, Providence, RI, 2022.
[9] John M. Howie. Fundamentals of semigroup theory, volume 12 of London Mathematical Society Monographs. New Series. The Clarendon Press, Oxford University Press, New York, 1995. Oxford Science Publications.
[10] Benoit Larose and László Zádori. Taylor terms, constraint satisfaction and the complexity of polynomial equations over finite algebras. Internat. J. Algebra Comput., 16(3):563–581, 2006.
[11] Alberto Larrauri, Antoine Mottet, and Stanislav Živný. Equations over finite monoids with infinite promises. ACM Trans. Comput. Logic, 27(3), June 2026.
[12] Alberto Larrauri and Stanislav Živný. Solving promise equations over monoids and groups. ACM Trans. Comput. Log., 26(1):Art. 3, 24, 2025.
[13] Peter Mayr. On the complexity dichotomy for the satisfiability of systems of term equations over finite algebras. In 18th International Symposium on Mathematical Foundations of Computer Science, volume 272 of LIPIcs. Leibniz Int. Proc. Inform., pages Art. No. 66, 12. Schloss Dagstuhl. Leibniz-Zent. Inform., Wadern, 2023.
[14] Thomas J. Schaefer. The complexity of satisfiability problems. In Proceedings of the Tenth Annual ACM Symposium on Theory of Computing, STOC '78, page 216–226, New York, NY, USA, 1978. Association for Computing Machinery.
[15] Dmitriy Zhuk. A proof of the CSP dichotomy conjecture. J. ACM, 67(5):Art. 30, 78, 2020. Email address: nicholas.jamesson@colorado.edu
DEPARTMENT OF MATHEMATICS, UNIVERSITY OF COLORADO BOULDER, USA