arXiv:2609.03469cs.CCSep 2026

Manuscript Offprint

arXiv:2609.03469

Promise Systems of Equations over Magmas with Identity and over Algebras in Congruence Modular Varieties

Nick Jamesson

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 A\mathbf{A} and B\mathbf{B} of the same signature with a homomorphism A→B\mathbf{A} \to \mathbf{B}, and the problem is the following:

PEqn(A,B\mathbf{A}, \mathbf{B}):

INPUT: A system of equations in the signature of A\mathbf{A} and B\mathbf{B}.

PROBLEM: Is there a solution to the system of equations in A\mathbf{A} or not even a solution in B\mathbf{B}?

We generalize the results of Larrauri, Mottet, and Živný from [11] to obtain a P−NP\mathbf{P} - \mathbf{NP}-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 A\mathbf{A} and B\mathbf{B} such that A\mathbf{A} is in a congruence modular variety, we show there is a quasi-polynomial time algorithm for determining whether or not PEqn(A,B\mathbf{A}, \mathbf{B}) is in P\mathbf{P}.

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 A\mathbb{A}, Schaefer proved that either CSP(A\mathbb{A}) is in P\mathbf{P} or CSP(A\mathbb{A}) is NP\mathbf{NP}-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 A\mathbb{A}, and the problem is to determine if CSP(A\mathbb{A}) is in P\mathbf{P} or is NP\mathbf{NP}-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 A\mathbf{A} and B\mathbf{B} with a homomorphism from A\mathbf{A} to B\mathbf{B} 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 n∈Nn \in \mathbb{N} often: [n]={1,2,…,n}[n] = \{1, 2, \ldots, n\}.

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 ff is a function symbol, we denote its arity by ar⁡(f)\operatorname{ar}(f) and similarly for a relation symbol RR.

Definition 1.2. Let σ\sigma be a signature with no function symbols. A relational structure A\mathbb{A} of signature σ\sigma is a set AA together with a relation RA⊆Aar⁡(R)R^{\mathbb{A}} \subseteq A^{\operatorname{ar}(R)} for each relation symbol R∈σR \in \sigma. In this case, we write A=(A;R1A,R2A…)\mathbb{A} = (A; R_1^{\mathbb{A}}, R_2^{\mathbb{A}} \ldots). We say A\mathbb{A} is finite if AA is finite and σ\sigma is finite.

Definition 1.3. Let σ\sigma is a signature with no relation symbols. An algebra A\mathbf{A} of signature σ\sigma is a set AA together with a function fA:Aar⁡(f)→Af^{\mathbf{A}}: A^{\operatorname{ar}(f)} \to A for each function symbol f∈σf \in \sigma. We write A=(A;f1A,f2A,…)\mathbf{A} = (A; f_1^{\mathbf{A}}, f_2^{\mathbf{A}}, \ldots). We say A\mathbf{A} is finite if AA is finite and σ\sigma is finite.

Note that if ar⁡(f)=0\operatorname{ar}(f) = 0, then fA∈Af^{\mathbf{A}} \in A is just constant.

Definition 1.4. Let A\mathbb{A} and B\mathbb{B} be two finite relational structures of the same signature σ\sigma. A function ϕ:A→B\phi: \mathbb{A} \to \mathbb{B} is called a homomorphism if the following hold: for all R∈σR \in \sigma and for all (a1,…,aar⁡(R))∈RA(a_1, \ldots, a_{\operatorname{ar}(R)}) \in R^{\mathbb{A}}, we have (ϕ(a1),…,ϕ(aar⁡(R)))∈RB(\phi(a_1), \ldots, \phi(a_{\operatorname{ar}(R)})) \in R^{\mathbb{B}}.

Definition 1.5. Let A\mathbf{A} and B\mathbf{B} be algebras of the same signature σ\sigma. A function ϕ:A→B\phi: \mathbf{A} \to \mathbf{B} is called a homomorphism if for all f∈σf \in \sigma, and for all (a1,…,aar⁡(f))∈Aar⁡(f)(a_1, \ldots, a_{\operatorname{ar}(f)}) \in A^{\operatorname{ar}(f)}, we have ϕ(fA(a1,…,aar⁡(f)))=fB(ϕ(a1),…,ϕ(aar⁡(f)))\phi(f^{\mathbf{A}}(a_1, \ldots, a_{\operatorname{ar}(f)})) = f^{\mathbf{B}}(\phi(a_1), \ldots, \phi(a_{\operatorname{ar}(f)})).

We are now ready to give the definition of a promise constraint satisfaction problem.

Definition 1.6. [2] Let A\mathbb{A} and B\mathbb{B} be two relational σ\sigma-structures with a homomorphism A→B\mathbb{A} \to \mathbb{B}. Then PCSP(A,B\mathbb{A}, \mathbb{B}) is the computational problem given as follows:

INPUT: A finite relational σ\sigma-structure I\mathbb{I}.

OUTPUT: YES if there is a homomorphism I→A\mathbb{I} \to \mathbb{A}. NO if there is no homomorphism I→B\mathbb{I} \to \mathbb{B}.

The promise here is that every input instance I\mathbb{I} is indeed either a YES instance or a NO instance. The existence of a homomorphism A→B\mathbb{A} \to \mathbb{B} guarantees that the input instance I\mathbb{I} 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 σ\sigma without relation symbols is a finite set of equations of the form s(x1,…,xn)=t(x1,…,xn)s(x_1, \ldots, x_n) = t(x_1, \ldots, x_n) where ss and tt are σ\sigma-terms. If the variables occurring in the system of equations are x1,x2,…,xnx_1, x_2, \ldots, x_n, we may denote the system Σ(x1,x2,…,xn)\Sigma(x_1, x_2, \ldots, x_n). If A\mathbf{A} is an algebra of signature σ\sigma, and Σ(x1,x2,…,xn)\Sigma(x_1, x_2, \ldots, x_n) is a system of equations in the signature σ\sigma, then a solution to Σ(x1,x2,…,xn)\Sigma(x_1, x_2, \ldots, x_n) over A\mathbf{A} is a mapping h:{x1,x2,…,xn}→Ah: \{x_1, x_2, \ldots, x_n\} \to A such that for each equation

s(x1,…,xn)=t(x1,…,xn)∈Σ(x1,x2,…,xn)s(x_1, \ldots, x_n) = t(x_1, \ldots, x_n) \in \Sigma(x_1, x_2, \ldots, x_n)

we have that

sA(h(x1),…,h(xn))=tA(h(x1),…,h(xn)).s^{\mathbf{A}}(h(x_1), \ldots, h(x_n)) = t^{\mathbf{A}}(h(x_1), \ldots, h(x_n)).

Definition 1.7. Let A\mathbf{A} and B\mathbf{B} be finite algebras of signature σ\sigma with a homomorphism A→B\mathbf{A} \to \mathbf{B}. We define the promise system of equations PEqn(A,B)\text{PEqn}(\mathbf{A}, \mathbf{B}) to be the following computational problem:

INPUT: A system of term equations in the signature σ\sigma.

OUTPUT: YES if there is a solution to the system in A\mathbf{A}. NO if there is no solution to the system in B\mathbf{B}.

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 SysTerm(A)=PEqn(A,A)\text{SysTerm}(\mathbf{A}) = \text{PEqn}(\mathbf{A}, \mathbf{A}). Given an algebra A\mathbf{A} of signature σ\sigma, we may expand σ\sigma to include a constant symbol for each a∈Aa \in A and obtain an algebra which interprets the new constant symbols in the natural way. If we denote the resulting algebra A′\mathbf{A}', then a system of term equations over A′\mathbf{A}' is just a system of polynomial equations over A\mathbf{A}. We denote SysPol(A)=SysTerm(A′)\text{SysPol}(\mathbf{A}) = \text{SysTerm}(\mathbf{A}'). There is a trivial reduction from PEqn(A,B)\text{PEqn}(\mathbf{A}, \mathbf{B}) to both SysTerm(A)\text{SysTerm}(\mathbf{A}) and to SysTerm(B)\text{SysTerm}(\mathbf{B}). In view of the CSP dichotomy theorem, this means the interesting cases of PEqn(A,B)\text{PEqn}(\mathbf{A}, \mathbf{B}) are the cases in which both SysTerm(A)\text{SysTerm}(\mathbf{A}) and SysTerm(B)\text{SysTerm}(\mathbf{B}) are NP\mathbf{NP}-complete. The next example shows that PEqn(A,B)\text{PEqn}(\mathbf{A}, \mathbf{B}) could be in P\mathbf{P} in such a case.

Example 1.8. Let A=(2Z8;+Z8,⋅Z8,2Z8)\mathbf{A} = (2\mathbb{Z}_8; +^{\mathbb{Z}_8}, \cdot^{\mathbb{Z}_8}, 2^{\mathbb{Z}_8}) and B=(Z4;+Z4,⋅Z4,2Z4)\mathbf{B} = (\mathbb{Z}_4; +^{\mathbb{Z}_4}, \cdot^{\mathbb{Z}_4}, 2^{\mathbb{Z}_4}). Then SysTerm(A)\text{SysTerm}(\mathbf{A}) and SysTerm(B)\text{SysTerm}(\mathbf{B}) are NP\mathbf{NP}-complete, but PEqn(A,B)\text{PEqn}(\mathbf{A}, \mathbf{B}) is in P\mathbf{P}.

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 PEqn(A,B)\text{PEqn}(\mathbf{A}, \mathbf{B}) in the case where there is a binary polynomial operation with identity on A\mathbf{A} which need not be associative.

Theorem 1.9. Let A\mathbf{A} and B\mathbf{B} be finite algebras, let e∈Ae \in A, let ⋅\cdot be a binary polynomial operation on A\mathbf{A} such that x⋅e=x=e⋅xx \cdot e = x = e \cdot x for all x∈Ax \in A. Suppose there is a homomorphism A→B\mathbf{A} \to \mathbf{B}. Then PEqn(A,B)\text{PEqn}(\mathbf{A}, \mathbf{B}) is either in P\mathbf{P} or is NP\mathbf{NP}-hard.

We will prove this as Theorem 8.9 and characterize the conditions under which PEqn(A,B)\text{PEqn}(\mathbf{A}, \mathbf{B}) is in P\mathbf{P}. We then use Theorem 8.9, to prove Theorem 9.2. This is a dichotomy for PEqn(A,B)\text{PEqn}(\mathbf{A}, \mathbf{B}) in which A\mathbf{A} belongs to a congruence modular variety.

Theorem 1.10 (Proven as Theorem 9.2). Let A\mathbf{A} and B\mathbf{B} be finite algebras with a homomorphism A→B\mathbf{A} \to \mathbf{B} such that A\mathbf{A} is in a congruence modular variety. Then PEqn(A,B)\text{PEqn}(\mathbf{A}, \mathbf{B}) is either in P\mathbf{P} or is NP\mathbf{NP}-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 A\mathbf{A} and B\mathbf{B} be finite algebras with a homomorphism A→B\mathbf{A} \to \mathbf{B} such that A\mathbf{A} is in a congruence modular variety. Then there is a quasi-polynomial time algorithm which decides if PEqn(A,B)\text{PEqn}(\mathbf{A}, \mathbf{B}) is in P\mathbf{P} or is instead NP\mathbf{NP}-hard.

NICK JAMESSON