Manuscript Offprint
arXiv:2609.07891Automatic constraints with few subpowers and graphoid recognition
ANTONIOS KALAMPAKAS
ABSTRACT. Finite automata can describe relations of unbounded arity that are exponentially larger than their descriptions. We prove that constraint satisfaction for such relations is solvable in polynomial time whenever their length slices are preserved by a common fixed edge operation on a finite domain. The algorithm computes compact representations of the complete solution relation and its projections. Its main ingredient is a polynomial-time compilation of nondeterministic finite automata into the fork witnesses and small projections required by the few-subpowers algorithm. In the Mal'tsev case, a direct proof is polynomial also when the domain and operation table are supplied as input, answering the Mal'tsev tractability question for automatic constraint satisfaction. We also characterize all invariant relations of a family of 3-edge algebras with neither Mal'tsev nor near-unanimity terms. Their normal forms combine Boolean activity constraints with affine value spaces and yield canonical quadratic-bit representations constructible from NFAs or arbitrary generators. For graphoid automata, these results give polynomial-time recognition without a graph-width restriction, effective boundary composition, and comparison of finite graph relations. The quadratic boundary bounds are optimal in the worst case. A fixed three-state example separates polynomial-time recognition from hard exact counting.
1. INTRODUCTION
A relation given by a finite automaton may contain exponentially many tuples of a specified length. This succinctness is useful for constraints on long sequences, but it prevents a direct application of algorithms whose running time is polynomial in the number of allowed tuples. The representation of a constraint must therefore be considered together with its algebraic structure.
Compact representations provide one way to make that connection. Bulatov and Dalmau proved tractability of finite-domain constraints preserved by a Mal'tsev operation by maintaining small sets of tuples with prescribed fork witnesses [BD06]. Dalmau extended this approach to generalized majority-minority operations [Dal06]. The few-subpowers algorithm of Idziak, Marković, McKenzie, Valeriote, and Willard applies whenever the constraint language has an edge polymorphism [IMM⁺10]. In these algorithms, the complete solution relation can be represented by polynomially many tuples even when it contains exponentially many solutions. Applying the algorithms to a new input representation requires an effective construction of the particular witnesses that their invariants demand.
We show that nondeterministic finite automata supply these witnesses directly. Two accepted words witness a fork at a coordinate when they agree before that coordinate and have prescribed letters there. A synchronous product of two copies of the automaton finds all possible common prefixes. Independent accepting suffixes then complete the witnesses.
Key words and phrases. constraint satisfaction, finite automata, few subpowers, Mal'tsev operations, graphoid automata.
A. KALAMPAKAS
Bounded coordinate projections are obtained by layered reachability with prescribed letters. These two elementary constructions compile an automaton into an exact compact representation whenever its relevant length slice is closed under the given edge operation.
The resulting algorithm solves instances with arbitrarily many automaton-described constraints, unbounded arities, and repeated variables in constraint scopes. It computes the full solution relation in compact form and permits ordered projections with repeated coordinates. For a fixed domain with an -edge operation, a relation on output coordinates is represented by tuples. For Mal'tsev operations, the representation uses tuples and bits. The Mal'tsev algorithm is also polynomial when the finite domain and the full operation table are part of the input, under the promise that the operation preserves the supplied relations.
This result addresses a question raised in the recent work of Gong, Wang, Khoussainov, and Bulatov on automatic constraint satisfaction [GWKB26]. They establish tractability for several algebraic classes of automatic languages, including the Boolean affine and near-unanimity cases. Section 9 of their preprint asks whether a Mal'tsev polymorphism suffices. Their model uses explicit variable scopes and relations obtained by intersecting a regular language with a specified power of a finite domain. Our Mal'tsev theorem gives an affirmative answer in this model, and the edge-operation theorem extends the conclusion to all fixed finite algebras with few subpowers.
Earlier work of Chen and Grohe studies the effect of succinct relation descriptions on CSP complexity [CG06, CG10]. Their work motivates the need for algorithms measured in the size of the description. Here the essential interface with the algebraic algorithm consists of fork witnesses and witnesses for bounded projections. These are more informative than an arbitrary small generating set. The distinction is also central to the subpower membership problem [BMS19]. Our construction starts from an automaton for the relation itself and does not require a procedure that converts arbitrary algebraic generators into a compact representation.
For a particular family of 3-edge algebras, we obtain a sharper representation by describing all invariant relations explicitly. The domain consists of a prime field together with an inactive state. Each relation is determined by a Boolean majority-closed relation on its activity bits and a compatible affine space of values. The compatibility forces a decomposition into an affine factor on always-active coordinates and independent linear factors on classes with a common variable activity. This normal form has a canonical -bit encoding, computable from either an NFA or arbitrary generators, and supports a direct calculus using 2-SAT and Gaussian elimination. The family has neither a Mal'tsev term nor a near-unanimity term, and the quadratic bound is optimal.
Short definitions provide a related measure of representation size. Bulín and Kompatscher prove quadratic-length pp-definitions for three-element 3-edge languages [BK26, Corollary 4.7] and ask whether short definitions can be computed efficiently from generators [BK26, Question 6.3]. Our normal form gives an explicit construction for the displayed family over every prime field. The structural characterization and the NFA and generator conversions refine the existence bound in this case. Mixed majority and affine examples with short definitions also occur in [BK26, Example 6.1], following [Bra25, Example 2.3.2].
Our motivating application is the recognition problem for graphoid automata [BK04, BK08]. In their canonical unitary relational interpretation, a graph imposes local constraints on its vertices, while its ordered input and output boundaries carry regular word constraints.
The theorem gives polynomial-time recognition when these relations share an edge polymorphism, without a restriction on graph width. It also gives an effective calculus of boundary summaries: serial composition, parallel composition, and identification of boundary vertices can be performed directly on compact representations. The Mal'tsev case and the prime-field family admit optimal quadratic-bit boundary encodings. For a fixed transition alphabet associated with the latter family, the normal form also constructs a graph with quadratically many vertices and edges defining the same boundary relation.
The general compilation theorem and the explicit normal form are the two main contributions. For general edge operations, the calculus of compact representations is established machinery, which we state with attribution. We include a direct proof of the Mal'tsev case to exhibit the equality updates needed for unbounded scopes and to obtain the semiuniform result. Finally, a three-element example shows that the recognition theorem does not imply tractable exact counting. Its hardness follows from the weighted Boolean counting dichotomy of Dyer, Goldberg, and Jerrum [DGJ09].
An operation acts coordinatewise on tuples of a common length. It preserves if whenever . We also say that is -closed or that is a polymorphism of . Intersections, Cartesian products, and projections of -closed relations are -closed. Equality is preserved by every operation. If is idempotent, every singleton relation is also preserved by .
An epsilon-free NFA is a tuple , where and . Multiple initial states and multiple accepting paths are allowed. For an explicit arity , set
Allowing epsilon transitions does not change our results, since they can be eliminated in polynomial time before the constructions below.
An automatic constraint instance consists of a finite variable set and constraints , where is an explicit ordered scope. A map is a solution if for every . Scopes may repeat variables, and different constraints may use different NFAs. We use the size parameter
All polynomial-time assertions are with respect to ordinary explicit encodings of these data. The arity is given by the length of the scope. It is not a binary-encoded instruction to introduce exponentially many positions.
For a fixed ordering of , let denote the solution relation of an instance . For an ordered list , define
A. KALAMPAKAS
The list may be empty and may contain repetitions. There are two nullary relations, and \{\(). We store them as distinct flags throughout.
Definition 2.1. For with , a fork is witnessed by if
The set of all forks of is denoted by . Diagonal forks are included.
The following lemma supplies the first part of the compilation. It does not require preservation by any operation.
Lemma 2.2 (Fork extraction). Given an NFA over and , one can compute in polynomial time a set satisfying
Witness pairs for every realized fork can be returned with .
Proof. For each , compute the set of pairs reachable from by a common word of length . Thus , and exactly when some and satisfy
Store a common prefix witnessing each reachable pair. This is reachability in a layered synchronous square of .
Independently, for every and , compute whether an accepting path of length starts at . Store one corresponding suffix when it exists. The base case is membership in , and the recurrence follows the transitions backwards.
A fork is realized precisely when there are states such that
and each admit an accepting suffix of length .
If these conditions hold, concatenate the stored common prefix, the respective letters, and the two stored suffixes. The resulting words are accepted and witness the fork. Conversely, accepting paths for any witnessing pair yield the states in (2.3).
Keep one pair for each realized fork. There are at most such forks, so at most words are retained. Since all retained words belong to , no additional fork outside its signature is introduced.
For completeness, let and . There are layered state pairs. One can scan pairs of transitions at each layer and retain explicit words for the witnesses. A conservative bound for the resulting construction is elementary operations. Only polynomial space is required. NFA ambiguity affects the choices of paths, but the output consists of words, so repeated accepting paths do not create additional relation elements.
Lemma 2.3 (Projection witnesses). Given , a set , and , one can decide in polynomial time whether and return an accepted word witnessing membership. For each fixed integer , witnesses for all realized projections onto at most coordinates can be computed in polynomial time.
Proof. Use the layered graph with vertices for and . At a prescribed position , retain only transitions with label . At all other positions, retain every transition. Reachability from layer-zero initial states to layer- final states decides the question and supplies a witnessing word. The number of tests for all projections onto at most coordinates is
which is polynomial for fixed . Each individual test takes time with path reconstruction.
The two constructions expose different information. Projection witnesses describe what can occur on a small set of positions. Fork witnesses additionally record which values can be exchanged after a common prefix. It is this second piece of information that permits compact generation for Mal'tsev operations and, together with the bounded projections, for edge operations.
3. THE MAL'TSEV CASE
A Mal'tsev operation on is a ternary operation satisfying
In particular, is idempotent. We write for the closure of a set of tuples under coordinatewise applications of .
For a -closed relation of positive arity, a frame is a set with . A frame with at most tuples is a compact representation. Any finite frame can be pruned to this size by choosing a witness pair for each of its forks. The empty relation is represented by the empty frame. At arity zero we use the flags specified in Section 2.
The generation property of frames is classical [BD06]. We recall its proof because it explains why Lemma 2.2 gives an exact compilation.
Lemma 3.1. If is -closed and is a frame, then .
Proof. Only the inclusion requires proof. Suppose is nonempty and has positive arity. The diagonal forks imply that is nonempty. Fix a target and start with any . Inductively suppose . Since , there are with
The tuple agrees with before by the first identity in (3.1), and its th coordinate is by the second. After steps the target has been constructed. Empty and nullary relations are immediate.
Corollary 3.2. If is preserved by , Lemma 2.2 computes a compact representation of it in polynomial time. No call to the operation table is required during the compilation itself.
We next give the algebraic operations used after compilation. The calculus of compact representations is part of the established Mal'tsev CSP machinery. The role of compact intersection is discussed in [BMS19, Section 1], and a direct presentation of the product, identification, and projection calculus appears in [Bra25, Section 1.8]. We provide the required special cases with their polynomial dependence on the domain size.
A. KALAMPAKAS
Lemma 3.3 (Small projections). Let frame . For a fixed number of selected coordinates, their projection of and one full tuple witness for each projected tuple can be computed in time polynomial in , , and , given the table of .
Proof. Begin with the projected tuples from and close this set under . Retain a full tuple witness for each projected tuple. A new projected tuple is witnessed by applying to the full witnesses of the three tuples that produced it. All witnesses therefore remain in . Projection commutes with coordinatewise generation, so Lemma 3.1 proves that the resulting set is the desired projection. There are at most projected tuples. Closing this bounded power under a table-given ternary operation is polynomial for fixed .
Lemma 3.4 (Prefix restriction). Given a frame for and , one can compute a frame for
in time polynomial in , , and the input frame size.
Proof. Fix the coordinates successively. Suppose a frame for a relation already fixes positions before , and position is to be fixed to . If has no tuple with value there, the answer is empty. This is detected by inspecting , since the diagonal forks ensure that .
Otherwise retain an anchor with . For each with , choose witnesses . By Lemma 3.3, find a tuple with and , if one exists. In that case retain
They agree before . At position , the two original witnesses agree because , so the second tuple also has value . At position , its value is . Thus (3.2) witnesses the required fork in the restricted relation.
Conversely, a fork of the restricted relation at a position is a fork of , and its first witness supplies a tuple with values at and at . The search therefore succeeds for every such fork. Positions at most have only their forced diagonal forks, all witnessed by the anchor. Pruning gives the next frame. Iterate this step. Only binary projections are used, and the number of steps and forks is polynomial.
Lemma 3.5 (Equality update). Given a frame for and coordinates , one can compute a frame for
in time polynomial in , , and the input frame size.
Proof. For every , use a projection on the at most three coordinates to search for with . If there is no such tuple, this fork cannot survive. If one is found, apply Lemma 3.4 to fix in . Search the same small projection of this restricted relation for a tuple satisfying
Retain when the second search succeeds.
Every retained pair lies in and witnesses the indicated fork. To see that no fork of is missed, let witness . For any first tuple found by the algorithm, the tuple lies in because equality is preserved by . Before position it agrees with , and at position it equals . Hence the second search succeeds regardless of the choice of . The retained pairs have exactly the signature of . Prune them to obtain a frame. There are at most searches, and the preceding lemmas give polynomial running time.
Lemma 3.6 (Products and projections). Cartesian product and arbitrary ordered projection, including coordinate repetitions, can be performed on frames in polynomial time.
Proof. Let frame nonempty relations and . Choose anchors and . In the concatenated coordinate order,
frames . Forks in the first block come from , while forks in the second block come from with the first block held fixed. Empty and nullary factors are handled directly.
Projection of a frame to a prefix of its coordinates gives a frame for that projected relation. Indeed, any fork in the projected relation lifts to two original tuples that agree on the same earlier coordinates. Its witnesses in the original frame project to witnesses of the fork.
For a general ordered list , adjoint new coordinates before the old coordinates, initially ranging over . Impose for each using Lemma 3.5, and project to the first coordinates. This also permits repetitions and permutations. A frame for consists of a fixed base tuple and the tuples obtained by changing at most one coordinate. Thus all required initial representations are polynomial in size.
Theorem 3.7 (Automatic Mal'tsev constraints). Suppose a common Mal'tsev operation preserves all slices in an automatic constraint instance . One can decide satisfiability and compute a frame for in polynomial time. For any explicit ordered boundary list , one can also compute a frame for in polynomial time. The theorem holds both for fixed and when and the full table of are supplied as input, under the preservation promise.
Proof. Compile each constraint by Corollary 3.2. Start with a frame for , where . Maintain a frame for the solution relation of the constraints already processed.
Suppose the next constraint has relation and scope . Form a frame for the product of the current relation with , using the coordinate order
For each , impose . Project to the first coordinates. The resulting relation consists exactly of the assignments satisfying the previous constraints and the new one. Each update uses only a binary equality, even when is unbounded. Repeated variables in the scope simply cause several -coordinates to be identified with one -coordinate.
There are equality updates, and the intermediate arity is at most . The preceding lemmas are polynomial in this arity and in . The final frame is empty exactly when the instance is unsatisfiable, and every tuple it contains is a solution. The ordered boundary relation is computed by Lemma 3.6.
For the semiuniform assertion, the Mal'tsev identities can be checked directly from the table. All uses of closure take place in powers of dimension at most three, and their size is bounded by . Hence the entire algorithm is polynomial in the instance encoding, the requested boundary length, and the operation-table size. Preservation of the NFA-described slices is the stated promise.
A. KALAMPAKAS
Corollary 3.8. Let be a fixed NFA over a finite domain. If a Mal'tsev operation preserves every slice , then is in .
Proof. Use in Theorem 3.7. This is the automatic constraint model of [GWKB26, Definitions 2.5–2.7], so the result answers its Mal'tsev tractability question.
The output is a representation by actual solutions. It is not a list of all solutions, and the algorithm never closes a frame inside the full power . The bounded projections in Lemma 3.3 are the only explicitly generated subpowers.
4. EDGE OPERATIONS AND FEW SUBPOWERS
Fix an integer . An -edge operation is an operation satisfying
The last family is absent for . These operations are idempotent. If is Mal'tsev, then is a 2-edge operation. A near-unanimity operation of arity gives an -edge operation by ignoring the first of arguments.
A finite algebra has few subpowers if the number of subalgebras of its th power is bounded by for some polynomial . The existence of an edge term characterizes this property [IMM10, Theorem 3.4]. We use its constructive representation theorem. Throughout this section, and are fixed, so the polynomial exponent may depend on .
To state the representation invariant, fix derived term operations , , and supplied by [IMM10, Lemma 3.5]. They satisfy
(4.2)
These are fixed compositions of . A pair is a minority pair if . Let consist of the forks of whose last two entries form a minority pair.
Definition 4.1. For an -closed relation of positive arity, an edge representation is a set such that
We call the representation compact when its number of tuples is at most
Empty and nullary relations again have explicit representations.
Our size convention retains witnesses for every projection of size less than . The standard convention may retain just those of size , since they also cover the smaller projections. Either convention gives tuples for fixed , and a representation in our convention can be pruned to the standard convention in polynomial time.
We use two results from the few-subpowers algorithm in the following form.
Theorem 4.2 [IMM10, Theorem 3.10 and Section 4]. An edge representation of an -closed relation satisfies . Given a compact representation of , distinct selected coordinates , and an explicitly listed -closed relation , the algorithm Next computes a compact representation of
in polynomial time for fixed .
In our applications of Next, is either the binary equality relation or a unary singleton. Its explicit size is therefore bounded by . No large NFA-described relation is passed as the table argument of this algorithm.
Lemma 4.3 (Edge compilation). Given and , if is preserved by , a compact edge representation of it can be computed in polynomial time.
Proof. Apply Lemma 2.2 and retain witness pairs for the forks whose letter pairs satisfy . Apply Lemma 2.3 for every with , retaining one accepted word for every realized assignment on . The union lies in and has all the minority forks and all the required projections. Its size is bounded by (4.3). By Theorem 4.2, it generates the entire slice. The number of reachability tests is polynomial because and are fixed. Nullary slices are decided by acceptance of the empty word.
For use in the main algorithm, we spell out how products and projections preserve the stronger edge representation invariant.
Lemma 4.4 (Edge products and projections). Products, coordinate identifications, and arbitrary ordered projections of -closed relations can be computed from their compact edge representations in polynomial time.
Proof. Consider nonempty relations and with representations . Form the full product of the two compact sets. Its size is polynomial. Minority forks of in the first coordinate block are supplied by witness pairs from with any member of fixed. Those in the second block are supplied by witness pairs from with any member of fixed. Thus has the required minority signature.
For its projection part, fix a set of fewer than coordinates of the product. Split it into and in the two factors. The desired projection is
Both factor projections are already visible in and , so every pair of realized projected tuples has a witness in . Hence this product also has all the required small projections. Prune it by choosing a witness pair for each minority fork and one witness for each realized small projection. The result is a compact representation of .
Coordinate identification is an application of Next with . For prefix projection, all required small projections are inherited. A minority fork in the projected relation lifts to a fork in the original relation at the same position and with the same values, so it too has projected witnesses. Therefore a prefix projection of an edge representation remains an edge representation.
For an arbitrary ordered projection, adjoin fresh coordinates before the original ones, identify them with the selected coordinates, and take a prefix projection. A compact representation of is obtained from a base tuple by allowing changes on fewer than
A. KALAMPAKAS
coordinates. This set supplies every small projection and every minority fork. All construction sizes are polynomial. Empty and nullary relations are handled separately.
Theorem 4.5 (Automatic constraints with an edge polymorphism). Fix a finite domain and an -edge operation on . Automatic constraint satisfaction is solvable in polynomial time under the promise that preserves each used length slice. A compact edge representation of the complete solution relation can be computed in polynomial time. For any explicit ordered boundary list of length , a representation of its solution relation with at most tuples can also be computed in polynomial time. Repeated variables are allowed in both constraint scopes and boundary lists.
Proof. Compile all slices by Lemma 4.3. Use the constraint-insertion procedure from the proof of Theorem 3.7, replacing its frame operations by Lemma 4.4. All equality relations used by Next have constant size. There are only such updates, and intermediate arities remain at most . A final ordered projection computes the requested boundary relation. Pruning gives the bound (4.3).
The theorem also applies when all slices are invariant under the basic operations of a fixed finite algebra with few subpowers. Every term operation of that algebra preserves the slices, and an edge term exists by the characterization quoted above. This is a fixed-algebra statement. It does not assert a uniform polynomial-time procedure for discovering edge terms from arbitrary input algebras.
Corollary 4.6 (Comparison and enumeration). For two automatic instances over the same fixed and ordered boundary lists of the same length, inclusion and equality of their boundary solution relations are decidable in polynomial time. A failed inclusion has a computable witnessing boundary tuple. Solutions of an automatic instance can be enumerated with polynomial delay and polynomial space. The same conclusions hold semiuniformly in the Mal'tsev setting of Theorem 3.7.
Proof. Let represent , and let be -closed. Since ,
Membership of a tuple in is decided by successive unary restrictions of its representation using Next. Thus a tuple of outside witnesses a failed inclusion. Equality is mutual inclusion. Nullary cases are tested from their flags.
For enumeration, fix a variable order and traverse the assignment tree depth first. Test a prefix by successive singleton restrictions, and discard it precisely when the resulting relation is empty. Every surviving prefix extends to a solution. Between consecutive solutions, the traversal performs at most polynomially many prefix tests, including at most trials at each of levels. Storing a polynomial-size representation at each level uses polynomial space. In the Mal'tsev setting, Lemma 3.4 implements the restrictions with polynomial dependence on .
Proposition 4.7 (Checking preservation for DFAs). Fix the arity of an operation . Given its table and a complete DFA with states, preservation of every length slice by can be decided in polynomial time. Preservation at a single explicitly specified length is also decidable in polynomial time.
Proof. Use synchronous copies of the DFA. At each step choose letters . The first copies read these letters, and the last copy reads . A reachable product state with the first coordinates accepting and the last rejecting witnesses a failure of preservation. Conversely, any failure supplies such a path. The product has states and at most outgoing choices per state. Restricting reachability to the specified number of layers tests a single length.
For general NFAs our algorithms use the preservation promise. They construct neither a complement automaton nor a determinization. This is why Proposition 4.7 is stated separately rather than included in the input processing of Theorems 3.7 and 4.5.
5. CANONICAL QUADRATIC REPRESENTATIONS FOR A 3-EDGE FAMILY
The general bound (4.3) gives bits for a 3-edge operation. We now obtain a canonical quadratic representation for an explicit family by characterizing its invariant relations. Fix a prime and let , with an inactive state distinct from the active field element 0. Define activity and value maps by
Both maps act coordinatewise. Activity bits and values describe a tuple over exactly when at every position with . Let be the diagonal linear map , and define
The second case is interpreted in the active copy of . The prime and this operation remain fixed throughout the section.
Lemma 5.1. The operation is a 3-edge operation, and the term satisfies
The algebra has neither a Mal'tsev term nor a near-unanimity term.
Proof. In each of , , and , the output activity is and the unmasked field value is . These are the identities (4.1) for . In the activity majority is and the unmasked value is , proving (5.2).
The activity quotient has only monotone term operations, since its basic operation is the Boolean majority of the last three inputs. A Boolean Mal'tsev operation would take values 1 on and 0 on , contrary to monotonicity. Thus no Mal'tsev term exists. On the active subalgebra , every term is a linear combination with . The near-unanimity identities, applied to one input 1 and all other inputs 0, would force every . Hence no near-unanimity term exists either.
For a nonempty -closed relation , put
The use of a prime field ensures that additive subgroups of its vector spaces are linear subspaces.
Lemma 5.2 (Activity fibres). The relation is majority-closed. For every , its value fibre satisfies
A. KALAMPAKAS
Consequently,
Proof. The activity map is a homomorphism, so is majority-closed. Write for the fibre on the left of (5.4). Applying within one activity fibre shows that is closed under . Translating by any of its elements gives a set containing zero and closed under addition and additive inverses. Hence is a nonempty affine space over .
The masking term (5.2) gives for all . Since is linear and is affine,
Every belongs to and has , giving equality. This also proves . If a tuple satisfies the two conditions in (5.5), then its value vector is fixed by and therefore belongs to the appropriate fibre. This proves the reverse inclusion in (5.5). The forward inclusion follows from the definitions.
Conversely, suppose that is nonempty and majority-closed, and is nonempty and affine with for every . Then
is nonempty and -closed, and its activity image is exactly . Indeed, describes a tuple for every . For four such tuples, the output activity belongs to and the unmasked output value belongs to . Masking keeps it in . The condition is thus the compatibility needed to combine activity and value constraints.
Partition the coordinates according to equality of their activity functions on . Let be the always-active coordinates and the always-inactive coordinates. Denote the remaining classes of equal nonconstant activity functions by .
Lemma 5.3 (Independent value factors). Up to coordinate order, the canonical affine space has the form
where is a nonempty affine space and each is linear. Conversely, every nonempty majority-closed and spaces of this form give the canonical pair of an -closed relation.
Proof. Write . By Lemma 5.2, and . Thus is invariant under and for every .
These commuting diagonal maps generate the projection onto each class of equal activity functions, including nonempty and . For every other class , choose an activity vector distinguishing from . Use if is one on , and otherwise. The product is one on and zero on every other class. Hence , and is the direct sum of its class projections.
For a variable class , choose with . Projecting onto gives , so the affine offset on vanishes. An offset may remain on . All vectors in , and therefore in , are zero on . This proves (5.7).
Conversely, a product of the displayed form is invariant under every allowed activity mask, so (5.6) defines an invariant relation. The factor is realized under every activity vector. Each variable class is active under some activity vector and inactive under another. Choosing zero values in the other variable classes realizes every direction in . Thus the affine hull of the realized value vectors is exactly the displayed product, proving canonicity.
For example, when the relation
has activity relation and value space the even-parity plane. Its three coordinates form one variable activity class. The inactive fibre contains one tuple and the active fibre contains four.
We encode by all its unary and binary projection tables in coordinate order. Majority-closed Boolean relations are determined by these projections, equivalently by 2-CNF formulas, as in the standard small-projection characterization [BIM10, IMM10]. Encode by a reduced row echelon basis of its direction space and the unique coset representative whose pivot entries are zero. We call the resulting pair the canonical normal form. Empty and nullary relations use the flags from Section 2.
Theorem 5.4 (Canonical normal forms). Every -closed relation on coordinates has a canonical normal form using bits. Under the preservation promise, it is computable in polynomial time from an NFA and an explicit arity. The normal form of the relation generated by any explicit tuple set is also computable in polynomial time.
Proof. There are Boolean projection tables, each using at most four bits. The affine code uses at most field entries. Since is fixed, the combined bit size is . Lemma 5.2 proves that it determines the relation.
Let be nonempty. For each unary or binary coordinate set and Boolean assignment on it, retain only letters with the specified activity at the pinned positions. Layered reachability computes the corresponding entry of , as in Lemma 2.3.
To compute , start with the value vector of one accepted word and maintain the affine span of the vectors collected. Gaussian elimination supplies at most independent equations defining . To find an accepted word violating such an equation, augment each layered NFA state by an accumulator . A letter at position updates it by
At the final layer accept only accumulators different from . If has states, this graph has at most states. A successful test returns a value vector outside . Add it and restart the equation tests. Each addition increases the affine dimension, so at most additions and tests occur. When all equations hold on all accepted words, . The procedure computes the exact affine hull for any NFA. Preservation is used to reconstruct from the two data sets, not to perform the reachability tests.
Now let be an arbitrary nonempty set of generators. The activity image of is the majority closure of . Every Boolean unary or binary relation is majority-closed. For a binary relation, the two sets of at least two input indices supporting the output bits of a majority intersect, so the output pair is one of the three input pairs. Therefore the unary and binary projection tables of the generated activity relation are exactly those of .
A. KALAMPAKAS
Comparing the activity columns of determines , and the classes . Constant columns and equal columns are preserved by generation. Set
and form (5.7). The resulting relation is closed and contains , hence contains . Conversely, the factorization of given by Lemma 5.3 must contain the spaces in (5.8). Its activity relation is the one already computed. This gives the reverse inclusion. Column comparison and Gaussian elimination are polynomial in the explicit input length. Empty inputs and nullary arities are handled by their flags.
The generator construction does not require its input tuples to witness the forks and small projections of an edge representation. It uses the explicit decomposition particular to .
Figure 1 records the two constructions as symbolic algorithms. In each routine, T is the list of unary and binary activity tables, rather than a list of all satisfying activity vectors. The notation denotes the affine origin and reduced row echelon basis used in the canonical code.
COMPILE-NFA(M,k) Find an accepted length-k word u. If none exists, return the empty flag. Build T by reachability with every unary or binary activity assignment pinned. Set . Repeat: Compute independent equations defining H. For each equation, search for an accepted word violating it. If all searches fail, return . For a returned word w, set .
COMPILE-GENERATORS(F,k) If F is empty, return the empty flag. Read T directly from the unary and binary projections of . Compare activity columns to find P, Z, and the variable classes C. Compute and the spaces by (5.8). Return .
FIGURE 1. Symbolic compilation for the prime-field family. At arity zero, a nonempty output is the flag for .
For explicit running-time bounds, put and for the input NFA. We count elementary field and indexed-graph operations, with p fixed. Using predecessor pointers for path reconstruction, each layered reachability query costs . The activity tables require queries, and the affine-hull loop requires further queries. Recomputing equations by classical Gaussian elimination at each of its at most K stages costs in total. Thus COMPILE-NFA takes
operations and working storage. For , scanning the tables and comparing activity columns costs . Row reduction on the factor matrices costs , since the sum of the squared factor sizes is at most . Hence COMPILE-GENERATORS takes
(5.10) operations. These are conservative bounds, and both algorithms return only the -bit code.
Corollary 5.5 (Normal-form calculus). Products, intersections, coordinate identifications, and ordered projections are computable in polynomial time on canonical normal forms. Automatic instances preserved by have canonical -bit representations of their solution relations on any ordered boundary of length , computable in polynomial time in the instance size and .
Proof. Products use the pairs . On the same coordinates, an intersection is represented by
Conjoin the 2-CNF formulas and the affine equation systems. If either system is inconsistent, the relation is empty. Otherwise, every preserves both under masking, and therefore preserves their intersection. The converse following Lemma 5.2 shows that every is realized. Hence the two separate feasibility tests suffice.
The intersection may retain redundant value directions on the coordinates now forced inactive. Its canonical value space is
Indeed, the diagonal-projector proof of Lemma 5.3 applies to the mask-stable affine space . It gives an affine factor on the always-active coordinates and linear factors on the other activity classes, including . Realized tuples discard exactly the factor on , and their affine hull realizes all remaining factors. Compute and all feasible unary and binary assignments by 2-SAT, and canonicalize (5.11) by Gaussian elimination.
Identifying coordinates adds to the activity formula and to the affine system. Every remaining activity mask preserves this field equality, so the preceding intersection argument applies.
For an ordered coordinate list , possibly with repetitions, put
Every projected tuple lies in . Conversely, extend the activity of a tuple of to and its value to . The two extensions may initially be incompatible, but . Masking preserves all selected values, since the value at every selected inactive position is zero. Thus describes a full tuple realizing the proposed projection. Projection preserves canonicity because coordinate projection commutes with the affine hull and with . The tables of are obtained by 2-SAT tests, and projecting and row-reducing an affine origin and basis gives .
Compile each automatic constraint by Theorem 5.4, introduce its scope coordinates, identify them with the instance variables, and intersect. Free variables use the full activity relation and full field space. All scopes may repeat variables. The complete solution relation and its boundary projections are then computed by the preceding operations. Given a satisfying activity vector and an affine solution , the legal pair supplies a witness assignment. Empty and nullary cases use the designated flags.
Figure 2 gives one routine combining the product, equality, and projection steps. Intersection is obtained by equating corresponding coordinates of two equal-arity factors. Every forbidden unary or binary table entry contributes one clause to the 2-CNF formula. Thus the formula has clauses when bounds the sum of the input and output
A. KALAMPAKAS
arities plus one. Computing all feasible unary and binary assignments requires 2-SAT tests, each taking time by computing the strongly connected components of the implication graph. A spanning forest reduces the identification list to equalities. Affine intersection, restriction to zero coordinates, and projection then cost by classical elimination. Consequently, each product, intersection, coordinate identification, or ordered projection can be computed in elementary operations. This also bounds the routine in Figure 2 for listed identifications.
JOIN-PROJECT((T_1, W_1), (T_2, W_2), E, b) If either factor is empty, return the empty flag. Form a 2-CNF formula for . Form an affine equation system for . Replace by a spanning forest of its undirected equality graph. For every , add to and to . If or is inconsistent, return the empty flag. Use unary 2-SAT tests to find . Let solve together with for . Build by pinning each unary or binary assignment on the positions in b. Return .
FIGURE 2. Normal-form composition. The equality list uses the concatenated input coordinates. Conflicting pins at repeated positions fail their 2-SAT test. A nonempty nullary result uses its designated flag.
For an automatic instance of size from (2.1), summing (5.9) over its constraints costs . The insertion algorithm makes normal-form updates, followed by one projection to the requested -coordinate boundary. The preceding bounds therefore give the conservative total
The exponent is independent of the fixed prime . Field-operation constants may depend on , and ordinary binary encodings of indices preserve polynomial time.
A worked example exhibits the interaction between the activity formula and the affine factors. Take and coordinates . Let
Here , , and . The always-active factor is the affine line . The variable factors are span and span, and the activity formula links them by . Lemma 5.3 shows that is invariant. Its three fibres are
| (a, b) | tuples, with | size |
|---|---|---|
| (0, 0) | 3 | |
| (0, 1) | 9 | |
| (1, 1) | 27. |
Thus has 39 tuples, with independent field parameters in each active factor.
Project first to the ordered list . The repeated third coordinate of the original relation appears in the second and fifth output positions. The canonical pair becomes
The activity implication remains, while projection makes the always-active value free. The projected relation still has 39 tuples, since the omitted coordinates are determined by the retained ones.
For an intersection on the original coordinates, require . Its activity constraint is , so also forces . Intersecting the affine systems initially gives
This still contains the direction. The newly inactive set is , and (5.11) removes that direction to give
The resulting relation consists of the three tuples . This calculation makes explicit why the affine intersection must be canonicalized after solving the activity constraints.
A primitive positive, or pp-, definition is an existentially quantified conjunction of relation atoms and equalities. To obtain short definitions, let contain every lifted unary and binary Boolean relation , all active singletons with , the unary relation , and
These are finitely many relations of arity at most three, all preserved by .
Proposition 5.6 (Constructive short definitions). The pp-definable relations over are exactly the -closed relations. A pp-definition with atoms and auxiliary variables is computable in polynomial time from the normal form of a k-ary relation. The quadratic normal-form bit bound is optimal in the worst case.
Proof. Use the lifted unary and binary tables to define the activity relation. Gaussian elimination gives at most affine equations on and homogeneous equations on each variable class in (5.7). Realize each equation by a chain of constraints adding its nonzero terms. Coefficients are implemented by repetitions modulo , at constant cost for fixed . For an affine equation on , pin the initial accumulator to the active zero and the final accumulator to the required constant. For a homogeneous equation on , put both endpoint accumulators in .
Each addition constraint equates its three activity bits. Thus a homogeneous chain is entirely inactive or entirely active. The inactive chain is satisfied, while an active chain has both endpoints equal to the field zero and enforces the homogeneous equation. The activity formula already ties every coordinate of , including coordinates absent from an individual equation. Tautological zero equations are omitted, and an inconsistent equation is represented using the empty unary relation, which belongs to .
There are at most equation entries. This proves the construction bound. Every invariant relation has the resulting definition, and every pp-definition over is preserved by , proving the characterization.
For sharpness, let . The active relations
A. KALAMPAKAS
are invariant and are distinct for distinct matrices. An injective binary encoding must distinguish relations. If its maximum length is , then , giving . For odd arities, append an active coordinate fixed to zero. This is for fixed .
The definition bound counts atoms and auxiliary variables. An ordinary binary encoding of the resulting formula uses bits for the variable indices, whereas the canonical table-and-matrix code uses bits. The construction from generators in Theorem 5.4, followed by Proposition 5.6, gives the short-definition algorithm for this family.
6. GRAPHOID AUTOMATA AND EFFECTIVE BOUNDARIES
We use the canonical unitary relational semantics of graphoid automata from [BK04, BK08]. Let be a finite doubly ranked alphabet. A label has an input rank and an output rank . A finite -graph has a finite vertex set, labelled hyperedges with ordered input and output incidence lists of the appropriate ranks, and ordered external input and output lists and . Incidence and boundary lists may repeat vertices. Isolated vertices and empty boundaries are allowed.
A graphoid automaton is , where is a finite state set,
is the transition relation for , and are regular languages. A run on is a map satisfying the transition relation at every edge. It is accepting when
This vertex-assignment description is the existential relational interpretation of graph gluing. In particular, serial composition identifies matching output and input vertices, while parallel composition takes disjoint unions and concatenates the boundary lists.
Let be the concatenation of the input and output lists. The boundary relation of is
This relation records extendibility before applying and . One can also use any other explicit ordered list of vertices as the boundary. After imposing the regular acceptance constraints, the corresponding projection records the boundary tuples of accepting runs.
Theorem 6.1 (Recognition and boundary representations). Let be a fixed graphoid automaton. Suppose a common edge operation on preserves every transition relation and every length slice of and . Recognition of finite input graphs is polynomial-time, with no restriction on their width. Compact representations of their boundary relations and of the boundary tuples of accepting runs are computable in polynomial time.
For an -edge operation, a boundary of length has a representation with tuples and bits. If the common operation is Mal'tsev, at most tuples suffice, giving bits for fixed .
Proof. Use one variable per vertex. Each hyperedge supplies a constraint with its concatenated incidence list as scope and its transition relation as the allowed relation. Since is fixed, a trie NFA for each transition relation has fixed size. The two ordered external lists supply the constraints described by NFAs for and .
The resulting automatic instance has size polynomial in the explicit graph description and has exactly the accepting runs as solutions. Apply Theorem 4.5, or Theorem 3.7. For itself, omit the two acceptance constraints and project the local solution relation. All operations allow repeated coordinates. The number of bits follows by storing the bounded number of length- tuples over the fixed alphabet .
The hypothesis involves the local transitions and the boundary languages together. Regularity of alone supplies no common polymorphism. In the fixed-automaton setting, Proposition 4.7 provides a finite check for a proposed operation when deterministic boundary automata are supplied.
Corollary 6.2 (Effective relational composition). For graphs whose transition relations share a fixed edge operation, serial composition, parallel composition, and boundary identification can be implemented on compact boundary representations in polynomial time. Inclusion and equality of the relations of two specified finite graphs are also decidable in polynomial time, with a boundary counterexample whenever inclusion fails.
Proof. For parallel composition, take a product and permute the coordinates into the input-output order. For serial composition, take a product, identify every matched output-input pair, and project away the glued interface. Boundary identifications are equality updates. Lemma 4.4 performs these operations. The semantics of gluing proves that the resulting relations are the boundary relations of the composed graphs. Comparison follows from Corollary 4.6.
The comparison statement concerns two finite graph relations of the same boundary type. It is not a statement about equivalence of the languages recognized by two graphoid automata on all input graphs. The summaries may be evaluated along a supplied composition expression, but the polynomial-time recognition theorem itself does not require such an expression or a width bound.
For the family from Section 5, the boundary relation has a canonical code and a small graph realization over a fixed transition alphabet.
Corollary 6.3 (Canonical quadratic boundaries). For a fixed graphoid automaton on whose transitions and boundary slices are preserved by , canonical -bit boundary representations are computable in polynomial time. Their composition is computable by 2-SAT and Gaussian elimination. Over the fixed transition alphabet , an equivalent graph with vertices and edges is constructible from the code of a -coordinate boundary relation. The quadratic bit bound is optimal for this alphabet.
Proof. Apply Corollary 5.5 to the vertex-assignment instance in the proof of Theorem 6.1. The same argument includes the regular acceptance constraints when required. To realize a normal form as a graph, take one vertex for each free or existential variable in Proposition 5.6 and one edge for each relation atom. Give an arity- relation the rank , and use the free variables in order as the boundary, with the prescribed input-output split. Repeated variables become repeated incidences, and all intermediate variables are internal vertices. The pp-definition and the graph then have the same boundary relation. The relations used in Proposition 5.6 are realizable over this single fixed alphabet, so its lower bound applies.
The graph replacement in Corollary 6.3 uses . The original transition alphabet need not contain all these relations. The size bound concerns vertices and edges, while the canonical boundary code has the stated quadratic bit size.
A. KALAMPAKAS
The quadratic Mal'tsev bound also cannot be improved for exact boundary encodings across the whole class. The argument uses a fixed Boolean automaton and a family of graphs of polynomial size.
Proposition 6.4 (Quadratic lower bound). There is a fixed two-state graphoid automaton with a common Mal'tsev polymorphism such that any injective binary encoding of all its k-coordinate boundary relations requires bits in the worst case.
Proof. Take , with . Use the ternary transition
and the unary transition . Both are preserved by . For an integer , every binary matrix defines the relation
It is realized by a graph with boundary . For each row of , initialize an accumulator with a -edge and use -edges to add the variables in that row, with the final accumulator identified with the corresponding -vertex. An empty row is enforced by a -edge on . This uses vertices and edges. Labels may be taken of ranks and , so all these are graphs over one fixed alphabet.
Distinct matrices give distinct relations, since their values differ on some Boolean vector. Hence there are at least different boundary relations of length 2m. An injective encoding with maximum length b uses fewer than binary strings, so . For odd boundary lengths, add one coordinate fixed to zero. Thus the lower bound is for arbitrary k. The regular acceptance languages may be taken to be , so they impose no additional restriction.
This is an information bound for exact relations. It does not impose a lower bound on the time needed for a single recognition query or on encodings of a more restricted family of graph relations.
7. A THREE-STATE SEPARATION FROM COUNTING
For a finite group , every nonempty relation preserved by the heap operation is a coset of a subgroup of a power of . Indeed, translating such a relation by one of its elements gives a set containing the identity and closed under multiplication and inverse. Projections of group cosets have uniform nonempty fiber sizes. General Mal'tsev relations need not have this property, as the following example makes explicit.
Let and define by and . Set
where the last value is evaluated in and represented by 0 or 1 in .
Lemma 7.1. The operation (7.1) is Mal'tsev and satisfies
It preserves the five-element relation
which is not a coset in the square of any group structure on and has nonuniform projection fibers.
Proof. The first two branches give the Mal'tsev identities. In each branch, applying gives the displayed sum, with repeated terms cancelling. Preservation of follows by applying this identity in both coordinates.
The relation is , so it has size five. A coset in the square of a group of order three must have size dividing nine. Hence cannot be such a coset. Its fibers over the first coordinate have sizes 1, 2, 2.
The example also supplies a fixed counting obstruction. We count vertex assignments, not accepting paths of an NFA or different algebraic expressions for the same run.
Theorem 7.2 (Recognition versus counting). There is a fixed three-state graphoid automaton whose transitions have a common Mal'tsev polymorphism, for which recognition is polynomial-time but counting accepting vertex assignments is #P-complete under polynomial-time Turing reductions. Hardness holds on graphs with empty boundaries and only unary and ternary transition relations.
Proof. Use the operation in (7.1), the unary relation , and
Include the singleton transitions and as well. The operation restricts to Boolean minority on , so is preserved. Singleton relations are preserved by idempotence. Applying the identity of Lemma 7.1 shows that is preserved. Take . Recognition is polynomial by Theorem 6.1.
For variables restricted to , the number of extensions to a fresh unrestricted variable satisfying is the Boolean function with matrix
For a finite list of ordered pairs of Boolean variables, consider the weighted counting problem
Replace every factor by a constraint with its own fresh variable , and impose on each original variable. For any assignment of the original variables, the fresh variables have independent extension choices. Therefore the number of satisfying assignments of the resulting unweighted instance is exactly .
The weighted Boolean dichotomy [DGJ09, Theorem 4] makes evaluation of #P-hard. To check its hypotheses directly, has full support and unequal positive values, so it is not pure affine. A full-support product-type binary function must factor into unary weights and consequently has matrix rank one. The determinant of (7.2) is , so is not of product type either.
Interpret each unary or ternary constraint as an edge of ranks or and use empty boundaries. This gives the required graph instance over a fixed alphabet. Counting is in #P, since a vertex assignment can be verified in polynomial time using the fixed finite relations. The reduction preserves the integer count, and the hardness from the weighted dichotomy uses polynomial-time Turing reductions.
A. KALAMPAKAS
22
The failure of general Mal'tsev preservation to guarantee tractable counting is already part of the counting-CSP landscape. Theorem 7.2 gives an explicit realization in the graphoid model. Together with Lemma 7.1, it explains why a compact support relation cannot in general be supplemented with one uniform multiplicity to recover all extension counts.
8. CONCLUDING REMARKS
The regular presentation provides exactly the two kinds of witnesses required by compact representation algorithms: exchanges after a common prefix and assignments on bounded sets of coordinates. Once these witnesses have been extracted, arbitrary scopes are assembled through products and binary equalities. This separates the automaton compilation from the established algebraic updates and gives a polynomial-time algorithm whose complexity is measured in the succinct input size.
The prime-field family supplies a second representation mechanism. Its masking term reconstructs each activity fibre from one affine value hull, and the common activity classes determine independent value factors. This produces optimal quadratic-bit codes beyond the Mal'tsev and near-unanimity cases, with direct constructions from NFAs and arbitrary generators. The result concerns this explicit family. Determining whether equally small effective encodings exist for arbitrary 3-edge algebras remains open here.
For graphoid automata, the resulting boundary relations support exact finite-graph comparison and composition without a width assumption. The quadratic bounds are optimal as encoding bounds, but leave room for faster updates and smaller representations under further restrictions on the transition language. The fixed basis also permits a boundary relation to be replaced constructively by a graph of quadratic combinatorial size.
The counting example suggests a further distinction worth studying: which common edge polymorphisms, together with which transition languages, permit efficient representations of extension multiplicities as well as supports? Another question concerns succinct descriptions beyond NFAs. The proof applies whenever the description admits polynomial-time extraction of all fork witnesses and all bounded projection witnesses. Identifying useful representation formalisms with these two properties would extend the compilation theorem while keeping its algebraic part unchanged.
Reference implementations and executable verification are archived on Zenodo as version 1.0.0 of the reproducibility package [Kal26]. The package implements NFA witness extraction, the direct Mal'tsev calculus, the general edge-representation compiler, and the symbolic NFA and generator compilers of Section 5. Independent finite-operation closure checks test the generator construction on small relations. Further checks cover the worked example, intersections, ordered projections, and arity-64 inputs whose represented relations are not enumerated. Execution instructions, dependency specifications, reference outputs, checksums, and a combined verification runner are included. The documentation specifies the scope of each routine and distinguishes symbolic compilation from enumerating verification oracles.
REFERENCES
[BD06] Andrei Bulatov and Víctor Dalmau. A simple algorithm for Mal'tsev constraints. SIAM Journal on Computing, 36(1):16–27, 2006. doi:10.1137/050628957. [BIM10] Joel Berman, Pawel Idziak, Petar Marković, Ralph McKenzie, Matthew Valeriote, and Ross Willard. Varieties with few subalgebras of powers. Transactions of the American Mathematical Society, 362(3):1445–1473, 2010. URL: https://www.math.uwaterloo.ca/~rdwillar/documents/Publications/fewsbp-newversion_submitted.pdf, doi:10.1090/S0002-9947-09-04874-0.
[BK04] Symeon Bozapalidis and Antonios Kalampakas. An axiomatization of graphs. Acta Informatica, 41:19–61, 2004. doi:10.1007/s00236-004-0149-8. [BK08] Symeon Bozapalidis and Antonios Kalampakas. Graph automata. Theoretical Computer Science, 393(1-3):147–165, 2008. doi:10.1016/j.tcs.2007.11.022. [BK26] Jakub Bulín and Michael Kompatscher. Polynomial definability in constraint languages with few subpowers, 2026. arXiv:2305.01984v3, 27 January 2026. Earlier conference version: MFCS 2023. URL: https://arxiv.org/abs/2305.01984v3. [BMS19] Andrei Bulatov, Peter Mayr, and Ágnes Szendrei. The subpower membership problem for finite algebras with cube terms. Logical Methods in Computer Science, 15(1):11:1–11:48, 2019. doi:10.23638/LMCS-15(1:11)2019. [Bra25] Zarathustra Brady. Notes on CSPs and polymorphisms, 2025. arXiv:2210.07383v2. URL: https://arxiv.org/abs/2210.07383v2. [CG06] Hubie Chen and Martin Grohe. Constraint satisfaction with succinctly specified relations. In Complexity of Constraints, volume 06401 of Dagstuhl Seminar Proceedings, pages 1–15. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2006. doi:10.4230/DagSemProc.06401.5. [CG10] Hubie Chen and Martin Grohe. Constraint satisfaction with succinctly specified relations. Journal of Computer and System Sciences, 76(8):847–860, 2010. doi:10.1016/j.jcss.2010.04.003. [Dal06] Víctor Dalmau. Generalized majority-minority operations are tractable. Logical Methods in Computer Science, 2(4):1:1–1:15, 2006. doi:10.2168/LMCS-2(4:1)2006. [DGJ09] Martin Dyer, Leslie Ann Goldberg, and Mark Jerrum. The complexity of weighted Boolean #CSP. SIAM Journal on Computing, 38(5):1970–1986, 2009. doi:10.1137/070690201. [GWKB26] Xiaoyang Gong, Xinyao Wang, Bakh Khoussainov, and Andrei Bulatov. Automatic constraint satisfaction problem, 2026. arXiv:2604.19266v1. URL: https://arxiv.org/abs/2604.19266v1. [IMM+10] Pawel Idziak, Petar Marković, Ralph McKenzie, Matthew Valeriote, and Ross Willard. Tractability and learnability arising from algebras with few subpowers. SIAM Journal on Computing, 39(7):3023–3037, 2010. doi:10.1137/090775646. [Kal26] Antonios Kalampakas. Automatic constraints with few subpowers and graphoid recognition: Reproducibility package. Zenodo, September 2026. Version 1.0.0. Software. doi:10.5281/zenodo.22648283.
AMERICAN UNIVERSITY OF THE MIDDLE EAST, EGAILA 54200, KUWAIT Email address: Antonios.Kalampakas@aum.edu.kw URL: https://orcid.org/0000-0001-8821-6102