Arity Hierarchies for Quantifiers Closed Under Partial Polymorphisms
Abstract
We investigate the expressive power of generalized quantifiers closed under partial polymorphism conditions motivated by the study of constraint satisfaction problems. We answer a number of questions arising from the work of Dawar and Hella (CSL 2024) where such quantifiers were introduced. For quantifiers closed under partial near-unanimity polymorphisms, we establish hierarchy results clarifying the interplay between the arity of the polymorphisms and of the quantifiers: The expressive power of -ary quantifiers closed under -ary partial near-unanimity polymorphisms is strictly between the class of all quantifiers of arity and . We also establish an infinite hierarchy based on the arity of quantifiers with a fixed arity of partial near-unanimity polymorphisms. Finally, we prove inexpressiveness results for quantifiers with a partial Maltsev polymorphism. The separation results are proved using novel algebraic constructions in the style of Cai-FΓΌrer-Immerman and the quantifier pebble games of Dawar and Hella (2024).
Keywords and phrases:
finite model theory, constraint satisfaction problems, generalized quantifiersCopyright and License:
2012 ACM Subject Classification:
Theory of computation Finite Model TheoryAcknowledgements:
We thank Victor Lagerkvist for pointers to the literature on the use of partial polymorphisms in CSP algorithms.Funding:
Research funded in part by UK Research and Innovation (UKRI) under the UK governmentβs Horizon Europe funding guarantee: grant number EP/X028259/1.Editors:
Stefano Guerrini and Barbara KΓΆnigSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik
1 Introduction
The study of generalized quantifiers, also known as LindstrΓΆm quantifiers [13], has played a major role in the development of finite model theory. This theory is concerned with the expressive power of logics over finite structures. When any particular class of structures is not definable in a logic , we can adjoin to a LindstrΓΆm quantifier , which serves as an oracle for querying membership in . Extending with this quantifier yields, in a precise sense, the minimal extension of that can also express . Thus, the investigation of the structure and interdefinability of quantifiers is the core of finite model theory.
Results about inexpressibility, commonly referred to as lower bound results for logic, are often established by means of exhibiting winning strategies for model-comparison games. Some of the most striking such results in finite model theory have come from model-comparison games developed for LindstrΓΆm quantifiers. In particular, Hellaβs bijection game [15] was introduced to establish the arity hierarchy for generalized quantifiers. This game has since been widely used to establish many inexpressibility results in descriptive complexity and beyond. Hellaβs proof that there is a strict hierarchy of expressive power obtained by classifying quantifiers according to their arity has as a consequence that meaningful logics in descriptive complexity (such as those closed under first-order reductions) should include quantifiers of arbitrary arities. Including all quantifiers clearly leads to logics that are far too rich. This leads us to study extensions of first-order logic with restricted families of quantifiers, but of unbounded arity.
A natural restriction is to require closure conditions on the classes of structures whose LindstrΓΆm quantifiers we include in the logic. By default, such classes are closed under isomorphism because logics never distinguish between isomorphic structures. Interestingly, by imposing stricter closure conditions, one can often obtain nicely behaved logics that admit a useful game characterization while still being rich in expressive power (i.e. stronger than first-order logic with counting quantifiers). One such example is first-order logic augmented by all linear-algebraic quantifiers [9]. Its expressive power is characterized by the invertible map game, which was used by Lichter [21] in a highly sophisticated lower bound proof. The classes defining linear-algebraic quantifiers are closed under an equivalence relation coarser than isomorphism, which is based on similarity of adjacency matrices over all finite fields [8]. More generally we can ask: For which closure conditions on classes do the LindstrΓΆm quantifiers give rise to logics that are both powerful and analyzable via a natural model-comparison game?
The present paper should be seen as a contribution to this research programme. The closure condition we are concerned with here is closure under partial polymorphisms, which was first studied by Dawar and Hella in 2024 [10]. An -ary polymorphism from a structure to is a homomorphism from the -th power of to . The interest in the notion comes from the theory of constraint satisfaction problems (CSP). For a fixed finite structure , called the template, denotes the class of structures that map homomorphically to . The algebraic approach to CSP relates the computational complexity of to the algebra of polymorphisms of (that is, polymorphisms from to itself) and more particularly to the equational theory of that algebra (see e.g. [3]). The success of this programme culminated in the celebrated dichotomy theorem for finite-domain CSPs of Bulatov and Zhuk [4, 23]. Natural examples of quantifiers closed under partial polymorphisms are thus CSP quantifiers, that is, for a template structure that also has the respective (partial) polymorphism. Such CSP quantifiers were first introduced by Hella [16], where a strict hierarchy of expressive power in terms of the size of was demonstrated. This size hierarchy is quite different from the arity hierarchy that we establish here. Moreover, it should be stressed that families of quantifiers closed under partial polymorphisms are a more general concept and contain more than just CSP quantifiers.
Our main results are about the interaction of partial polymorphism conditions with restrictions on the arity of quantifiers. The conditions require that the class of structures defining a quantifier is closed under partial functions satisfying certain equational conditions. The conditions we are particularly interested in (already introduced in prior work [10]) are partial near-unanimity polymorphisms and partial Maltsev polymorphisms. Their total counterparts play a key role in the classification of tractable CSP, since templates with these polymorphisms give rise to CSP with relatively simple polynomial time algorithms [2, 5]. The corresponding partial polymorphisms, which we use here, are significant for another reason: For NP-complete CSP, they essentially govern the fine-grained exponential complexity under the strong exponential-time hypothesis, and they have applications in parameterized complexity as well (see e.g. [17, 18, 19]).
Previous work [10] developed games for logics with quantifiers closed under partial polymorphisms and used these to establish that the problem of solving systems of equations over the Boolean field is not definable in the extension of infinitary logic with all quantifiers closed under partial near-unanimity polymorphisms.
In the present paper we answer a number of natural questions arising from this previous work concerning arity hierarchies within the class of quantifiers closed under partial near-unanimity polymorphisms, and also establish the first expressivity bounds for quantifiers closed under partial Maltsev polymorphisms. To be specific, we establish in Section 3 an arity reduction showing that any -ary quantifier which is closed under a partial near-unanimity polymorphism of arity can be defined using quantifiers of arity at most . On the other hand, our main results in Section 4 show that the arity of such quantifiers does not collapse, and they exhibit in fact a strict infinite hierarchy of expressive power. First, we prove that quantifiers of arity with a partial near-unanimity polymorphism of arity are, in terms of expressive power, strictly between all quantifiers of arity and all quantifiers of arity (Corollary 17). Secondly, we establish in Theorem 18 that for every fixed arity of polymorphisms, we can always gain in expressive power by increasing the arity of quantifiers. The results can be seen as a refinement of the arity hierarchy of Hella [15], and the separation results require novel constructions in the style of Cai-FΓΌrer-Immerman [6] (called CFI-like henceforth). In Section 5 we move on to study a more powerful type of quantifiers, which cannot be fooled by CFI-like constructions, namely those with a partial Maltsev polymorphism. Also for these, we obtain a strict arity hierarchy (Theorem 36). Moreover, we establish a first lower bound: When both the arity of the quantifiers as well as the number of variables are limited to , Maltsev-closed quantifiers are strictly weaker than general ones (Theorem 37). This proof requires playing the Maltsev-closed quantifier pebble game on another original algebraic construction. It remains an intriguing open problem to prove lower bounds for first-order logic with Maltsev-closed quantifiers of arity , but an unbounded number of variables. We believe that finding a suitable hard example would also inspire progress on other open problems, as it would have to be radically different from the CFI-like constructions typically used in many known lower bound results.
2 Preliminaries
We denote structures by boldface letters , and their universes by the corresponding Roman letters . All structures we consider in the paper are finite and relational. Thus, we assume without further mention that the universe of each structure is finite and the vocabulary of is a finite set of relation symbols. Let and be -structures for a vocabulary . A function is a partial isomorphism from to if , and is an isomorphism from the substructure of induced by to the substructure of induced by .
Let and be -structures. We write if and for all . The union of and is the -structure with universe and relations for each .
We denote first-order logic by , and the infinitary logic with variables by . Furthermore, we write . We refer to [12] and [20] for precise definitions of these logics. Given a logic and two -structures and , we write if and satisfy exactly the same -sentences of vocabulary . For any positive integer , we denote the set by .
Generalized quantifiers
Let be a vocabulary and let be a class of -structures that is closed under isomorphisms. The extension of a logic by the generalized quantifier (also called LindstrΓΆm quantifier) is obtained by adding the following formula formation rule to the syntax of :
-
For any vocabulary , if is a tuple of -formulas, and are tuples of variables such that for , then is a -formula. A variable is free in this formula if, for some , it is free in , but not in .
The sequence of -formulas defines an interpretation of a -structure in any -structure with an assignment that interprets all free variables of : we define , where for . The semantics of the formula can now be defined as follows:
-
Let be a -structure and an assignment on that interprets all free variables of . Then if, and only if, .
The extension of a logic by a collection of quantifiers is defined in the natural way by adding the corresponding formula formation and semantic rules for each quantifier in . The arity of a quantifier is the maximum arity of relations in the vocabulary of the class . For each , we denote the collection of all quantifiers of arity at most by .
Bijective pebble games
We apply the bijective pebble game of Hella [15] in proving our arity hierarchy results in Section 4. Let be positive integers, and and be structures.
Definition 1.
The -bijection game is played between two players, Duplicator and Spoiler. Positions of the game are pairs , where and are assignments on and , respectively, such that . The initial position is . Let be the position after some round of the game. The next round consists of the following steps:
-
(1)
Duplicator chooses a bijection . If , then Spoiler wins the play.
-
(2)
Spoiler chooses an -tuple of distinct variables in and an -tuple .
-
(3)
The next position is , where and . If is not a partial isomorphism , then Spoiler wins the play.
Duplicator wins the play if Spoiler does not win it in a finite number of rounds.
The -bijection game characterizes equivalence with respect to the infinitary -variable logic with all -ary quantifiers.
Proposition 2 ([15]).
Let be positive integers. Then Duplicator has a winning strategy in if, and only if, .
We say that a sentence of some logic separates two disjoint classes and of structures if every structure in satisfies , but no structure in satisfies .
Corollary 3.
Fix a positive integer . Let and be two disjoint classes of structures. If for every , there exist and such that Duplicator has a winning strategy in , then no sentence in separates from .
Partial polymorphisms
We go briefly through the basic notions related to families of partial polymorphisms. For a more detailed treatment and motivation, we refer to [10], where closure of generalized quantifiers with respect to such families was first considered.
Let be a partial function. Then for any , induces a partial function defined by applying βcolumn wiseβ: if for , then . Naturally is undefined if, and only if, is undefined for at least one . Sometimes we also view the tuples as the rows of an -matrix and write for . Given a relation , we write . Furthermore, if is a -structure we denote by the -structure with the same universe and relations , .
We say that a partial function is a partial polymorphism of if . A family of -ary partial functions consists of a partial function for every finite set . The family respects bijections if whenever is a bijection. Here means that either , or both and are undefined.
Let be a family of partial functions that respects bijections, and let be a quantifier for a class of -structures. We say that is -closed if for every and every , we also have . We denote the collection of all -closed quantifiers by . It follows immediately from the definition that all -closed quantifiers are downwards monotone: If and , then .
The most interesting families of partial functions are based on equations on the components of the input tuple. Two examples of such families were studied in [10]:
Example 4.
-
(a)
The Maltsev family consists of functions such that and is undefined if and .
-
(b)
The family of -ary partial near-unanimity functions consists of functions defined as follows: if at least of the inputs are equal to ; else, is undefined.
Note that the definition of is actually independent of the set . Thus, we omit the subscript and write simply instead of .
It is straightforward to show that is a partial polymorphism of any structure with at most -ary relations:
Lemma 5 ([10, Lemma 9]).
Let be a -structure such that for all . Then is a partial polymorphism of .
CSP quantifiers
Let and be -structures. A function is a homomorphism from to if for all and , implies that . We write if there exists a homomorphism from to . For any fixed -structure we denote the class by . The class is usually regarded as the (non-uniform) constraint satisfaction problem (CSP): Given an input structure , decide whether there exists a homomorphism from to . Here is the template of the CSP. It is a consequence of the results of Bulatov and Zhuk [4, 23] that, for any finite template , the corresponding CSP is either decidable in polynomial time or NP-complete, and which of these is the case depends only on the polymorphisms of . A generalized quantifier is a CSP quantifier if the defining class is of the form for some template . For CSP quantifiers, being closed under partial polymorphisms is a natural notion: If is a structure which has a (total) polymorphism that satisfies an identity, this yields a natural partial polymorphism of the class of structures . Thus, quantifiers closed under this partial polymorphism are a generalization of CSP quantifiers based on a structure with the corresponding total polymorphism. The following collections of CSP quantifiers are of particular interest to us.
-
For , is the collection of all CSP quantifiers of arity at most .
-
For , is the collection of all -closed CSP quantifiers.
-
For and , .
-
is the collection of all quantifiers closed under the partial Maltsev polymorphism, and , for every .
Dawar and Hella [10, Proposition 11] proved that if is a partial polymorphism of , then is -closed, assuming that is projective111See [10, Definition 6] for the definition of projective.. In particular, this holds for the family for any . We conclude this section by proving a converse of this result. A relational structure is a core if every homomorphism from it to itself is an automorphism. If a structure is not a core itself, it has a unique (up to isomorphism) substructure that is (see [14, Proposition 3.3]).
Lemma 6.
Let be a family of partial functions. Assume that is a core such that the corresponding CSP quantifier is -closed. Then is a partial polymorphism of .
Proof.
We trivially have , and since is -closed, also . So there is a homomorphism . Now maps to itself for every relation in the vocabulary of , and because is a core, must be a permutation of . But then we must have because otherwise, for some , would map a tuple in to a tuple in , which is not possible because induces a bijection between the tuples in .
Corollary 7.
Let be a structure. The CSP quantifier is in if, and only if, is a partial polymorphism of the core of .
Proof.
3 Arity reductions
Our aim is to prove arity hierarchies for -closed quantifiers. Dawar and Hella [10] introduced a model-comparison game for , and used it to prove that for any there is an -ary CSP quantifier in that is not definable in . However, they left open the question whether for every fixed , there is an arity hierarchy within the class of -closed quantifiers. This question turns out to be nontrivial: In this section, we show that any -closed quantifier of arity at least can be defined by a quantifier with strictly smaller arity. Moreover, the arity of some natural -closed quantifiers can even be reduced all the way down to in this way. Omitted proofs in this and the following sections can be found in [11].
Example: Hypergraph colouring
For let be the -uniform hypergraph of size , i.e., , where is the set of all tuples such that for all . Note that is just the complete graph on vertices. In [10] the authors proved that the CSP quantifier corresponding to the class is -closed for any .
Thus, one might think that the quantifiers , for , would form a natural arity hierarchy within . However, this is not the case: Each can be defined already by the binary quantifier :
Proposition 8.
There is an -definable reduction from to .
Proof sketch.
Given in the vocabulary with , let be the graph (possibly with self-loops) on vertex set with edges . Clearly is -definable in . It can be verified that if, and only if, .
Arity reductions for -closed quantifiers
We now show a general arity reduction result for -closed quantifiers. We start with the easier case of CSP quantifiers. Let and let be an -ary relation. For , , let be the projection function that maps to . Furthermore, let be the -ary relation that is the projection of to , i.e., .
Lemma 9.
Let and , and let be a division of into intervals. Let be a finite set and . Assume that is a partial polymorphism of . Then if, and only if, for every .
Proof.
Let . If , then by definition. For the other direction, assume that for every . This means that there exist tuples such that for each . Clearly then , and since is a partial polymorphism of , it follows that .
We use the following notation in the rest of this section. Let be a -structure, where for all , and let be a division of into intervals. For each and , let
Then we denote by the structure . Note that is -definable in .
Lemma 10.
Let and be as in Lemma 9, and let and be -structures, where for all . Assume that is a partial polymorphism of . Then if, and only if, .
Proof.
Let be a homomorphism, and let for some and . Then there is a tuple such that . Since , also . Hence, is a homomorphism from to .
Conversely, assume that is a homomorphism from to . Let for some . Then for every , . By Lemma 9, we have .
Corollary 11.
Let . Every quantifier in is -definable by a quantifier in .
Proof.
Let be a -structure such that is a quantifier in . W.l.o.g. we can assume that is a core, and hence by Corollary 7, is a partial polymorphism of . Consider now a division of into intervals such that the size of of each is at least . Then the arity of each relation of is at most . Thus, .
By Lemma 10, for any -structure we have if, and only if, . Thus, the mapping is an -definable reduction of to .
It should be noted that is usually not a partial polymorphism of the structure in Lemma 10. Otherwise we could iterate the arity reduction trick to obtain even lower arity quantifiers that define .
If we allow ourselves to use the infinitary logic rather than just FO in the reductions, then the arity reduction works for any -closed quantifier, not just CSPs. The general reduction consists in first closing the given structure under (which is an -definable fixed-point induction), and then applying to it the FO-definable operator β defined before Lemma 10. This yields the following arity reduction.
Lemma 12.
Let . Let be an -closed class of -structures, where for all . Then there exists a vocabulary with at most -ary relations, a class of -structures, and an -definable reduction that maps -structures to -structures in such a way that if, and only if, .
Corollary 13.
Let . Every quantifier in is definable in .
Here and in Theorem 15 below, the expression may equivalently be read as , for the such that . Note that the arity reduction result in Corollary 11 for CSP quantifiers is not a special case of Corollary 13, as the latter does not provide an -definable reduction. Moreover, in Corollary 11, the defining quantifier is again a CSP quantifier.
Summarizing our arity collapse results, we obtain the following picture. First, we note that if the arity of the partial near-unanimity function is greater than the arity of the relations, then being -closed is not a restriction:
Theorem 14.
Let , . Then and .
Proof.
The first claim follows from [10, Lemma 9] and the argument for [10, Corollary 10]. The second claim follows from Corollary 7 and Lemma 5.
Hence, only for , the situation is interesting. In this case, we have:
Theorem 15.
Let . Then we have and .
In particular, in the case we have and .
Proof.
4 Arity hierarchies for partial near-unanimity quantifiers
Theorem 15 shows that restricting quantifiers of arity to those that are also -closed has the same effect on expressive power as reducing the arity to , and does not really give rise to a new interesting logic. Thus, the natural question arises whether there are any combinations of polymorphism arities and quantifier arities for which the -closed quantifiers yield a logic that is strictly different from any . In other words, we would like to know if the inclusions in Theorem 15 are strict if . The following theorem establishes this already for the case :
Theorem 16.
Fix . Then .
Corollary 17.
For every ,
Proof.
The first inclusion follows with Theorem 15, and the fact that it is strict is a consequence of Theorem 16, which shows that already the fragment of is not contained in . The second inclusion is a consequence of Theorem 15, and was shown in [10, Theorem 30]. A second natural question that we answer in this section is whether the polymorphism-closed quantifiers exhibit an arity hierarchy with respect to the arity of the quantifiers (keeping the arity of the polymorphism fixed): For the class of all generalized quantifiers, Hella [15] proved that for all . The following result shows that for every fixed polymorphism-arity , one can always gain strictly more expressive power by sufficiently increasing the arity of the quantifiers.
Theorem 18.
Let . Then , where .
Corollary 19.
Let . Then there is an such that .
Note that the separation in Theorem 16 is tighter than the one that is implied by Theorem 18 for . So neither of the two results implies the other.
The proofs of Theorems 16 and 18 are structured similarly but employ different constructions. In both cases we construct a CSP template structure whose associated CSP quantifier can be used to distinguish certain CFI-like structures, which we view as the CSP instances. These instances are such that they cannot be distinguished in the logic , for the respective value of that we have to beat in the theorems. The novelty in both constructions is that we enforce the template structure to be closed under the -ary partial near-unanimity function, so that the corresponding CSP quantifier is indeed in .
The rest of the section is divided into three parts: First, construction of the respective templates needed for the proofs of the two theorems, then construction of the instances, and finally, we provide winning strategies for Duplicator in the bijective pebble game to prove indistinguishability of the instances in the respective logic .
4.1 Construction of polymorphism-closed templates
The templates we construct have as relations the solution spaces of certain systems of linear equations. To make them closed under the partial near-unanimity function , we ensure that no collection of tuples in a relation satisfies the conditions for applicability of , except in cases where outputs a tuple that is already in the collection. Then is a partial polymorphism of the template.
Template structure for the proof Theorem 16
We start by developing the ideas to forbid the applicability of . We say that an -matrix over a ring or field has the -near-unanimity property if in every column, all entries except possibly one (the minority entry), are equal. Throughout this section, arithmetic operations are always meant in the ring . Omitted/shortened proofs can be found in the full version [11].
Lemma 20.
Let be a matrix satisfying:
-
1.
has the -near-unanimity property.
-
2.
, that is, the row-sums are all equal.
-
3.
is a triple that is not a row of .
Then is a vector in with all three entries distinct.
Proof.
Assumption 3) entails that no two rows of are identical. Since no two rows of are equal, the row differs from in at least one position. They cannot differ in all positions because then, by the first property, must be identical to either or , which cannot be the case. If and differ in only one position, then , so this also contradicts assumption 3). Thus, and differ in exactly two positions. Assume first that and , but . Let and . Then , so . The same argument works in case that and . In case that , , and , we have . By condition 2) and because , we have . So
Therefore, in all cases, . The same reasoning can be applied to any pair of rows, and thus also shows that , and .
The lemma also generalizes to square matrices of larger dimensions because one can always find a -submatrix with the properties required by Lemma 20 in them.
Lemma 21.
Let and let be a matrix satisfying:
-
1.
has the -near-unanimity property.
-
2.
The row-sums of are all equal.
-
3.
is not a row of .
Then is a vector in that has at least three distinct entries.
We also need to consider the case where is in fact a row of . The following can be shown with a combinatorial argument.
Lemma 22.
Let , and let be a matrix that satisfies the first two conditions from Lemma 21. Then is a row of if and only if two rows of are identical.
For each as in Theorem 16, we now define the template structure that is used to show the separation .
Definition 23.
Let be fixed. Let denote the vector . Let with each defined as follows. For each , let
Lemma 24.
For each , is a partial polymorphism of the structure .
Proof.
Let and . Let . We show that either, , or is undefined. Let be the matrix whose rows are the projections of the tuples to their first components. If does not have the -near-unanimity property, then is undefined, and hence is undefined. So suppose has the -near-unanimity property. The row-sums of are all equal to by definition of . If is not a row of , then satisfies the assumptions of Lemma 21. Hence contains three distinct entries. This means that is undefined. If is a row of , then by Lemma 22, there are two identical rows in , and these must be equal to . Therefore, the value also appears at least twice as the st component of the tuples . Hence, if is defined, it yields the correct value , and thus .
Template structure for the proof Theorem 18
In Theorem 18, the arity of the quantifiers can be much larger than the arity of the polymorphisms. Thus, the matrices of interest are no longer square, but rectangular, and we cannot directly use Lemma 21. Instead, we use the following. It can be shown with similar reasoning as in the proof of Lemma 20.
Lemma 25.
Let , , , and . There is a collection of size such that for every matrix with the -ary near-unanimity property, one of the following two is the case:
-
1.
If is not a row of , there is a vector such that contains three distinct entries.
-
2.
If is a row of , then either there exists a such that contains three distinct entries, or for all , .
Proof sketch.
Split into sets such that and . Define as follows. For every -element set of columns such that for some , include in two vectors such that , and . In all other components, the two vectors are zero. Note that .
Assume first that is not a row of . Then must have non-constant columns whose minority entry is in a different row, respectively. So there is an such that contains at least two of these columns, call them . By definition of , the vectors for are in . Then it can be verified that or contains three distinct entries.
Now assume that is a row of . It can be checked that if is defined for all , then for every , there must be at least two rows of whose entry is . Then it follows that for all , as desired.
The template structure used for Theorem 18 is similar to the previous one, except that it has more extra entries in the relations to forbid the applicability of (using the set of vectors from the above lemma). For , the instances of this template are supposed to be indistinguishable in . But the construction using the vectors in effectively makes it possible to fix two entries of the original relation with just one variable. To ensure -indistinguishability of the instances, we therefore need to base the template on -ary relations, augmented by the products with all vectors in . For every and , we define the template structure over as follows.
Definition 26.
Let and . Let be the set of vectors from Lemma 25, for instead of . Note that then , where and . Thus, . In , we define the relations , for as: where is an enumeration of the set .
Note that for fixed , the arity of the template structure is quadratic in .
Lemma 27.
For all and , is a partial polymorphism of the structure .
Proof.
4.2 Constructing instances
We aim to prove by exhibiting two classes of structures that cannot be distinguished by any sentence in but are separated by a sentence in . Likewise, we prove by constructing classes of structures that cannot be distinguished by any sentence in but are separated by a sentence in . Both classes of structures are obtained with a CFI-like construction over an -regular (or -regular, respectively) base graph. With each vertex in the base graph, we associate a substructure, also called vertex gadget. In the first construction, this gadget is denoted . In the second construction it is . In both cases, is a βchargeβ we associate with . We only present here. The gadget is analogous, but such that it matches the template relations from Definition 26 instead of Definition 23. For , let denote the set of edges incident to .
Definition 28 (Vertex gadgets).
Fix and let be a connected -regular graph with an order on its vertices. Let be the vector from Definition 23, and the set , written as a tuple in the order induced by . Then for each , we let , where
-
for and ,
-
for each ,
We can now define our CFI structures that separate the desired logics. Starting with a suitable base graph, we simply replace every vertex with a gadget of the form or . We present in the following only the construction that uses the gadgets (for Theorem 16). The other construction for the proof of Theorem 18 and its relevant properties are completely analogous. Putting together the structures we have defined for each vertex of , we obtain our CFI structures:
Definition 29.
Let be an -regular connected graph with a linear order on its vertices.
-
(a)
For each , we define , where
-
,
-
for each .
-
-
(b)
Furthermore, we define and , where is the smallest vertex of with respect to the order .
We write and to refer to the analogous structures obtained by using the vertex gadgets instead of .
To define the classes of structures that separate the logics, we apply the above construction to base graphs similar to the ones used by Hella in [15]. For a number , we call a graph -connected if it is connected and remains so after the removal of any vertices and edges, for any . Arbitrarily large graphs having this and other useful properties exist, for example constructions based on higher-dimensional grids.
Lemma 30.
For every and for infinitely many , there exists a -regular bipartite graph that is -connected and satisfies that each part of the bipartition contains exactly vertices.
For fixed , we now define a graph that we denote . This will be used as the base graph for our construction detailed above. Let denote a fixed graph with the properties from Lemma 30 for values . Now consists of disjoint copies of , denoted . We also add connections between the such that for each , every vertex in has precisely one edge leading into a different copy . Formally, name the vertices in the two parts of the bipartition of as follows: Then let Note that is again bipartite with the -vertices and the -vertices forming the two parts of the bipartition. Moreover, is -regular because is -regular. For values for which Lemma 30 does not guarantee the existence of a graph, is simply undefined.
4.3 (In-)distinguishability of the instances
We first show that there is a sentence in that separates from .
Lemma 31.
For each , there exists a homomorphism .
Proof.
Let . A homomorphism can be defined by letting for each , and likewise, for every . By definition of the relations in and , this is a homomorphism.
Lemma 32.
For each , there exists no homomorphism from to .
Proof.
Again, let . Consider the following system of linear equations over : For each , it has one variable , and for each , it has the equation . The equation associated with reads . Now suppose for a contradiction that there exists a homomorphism . Then defines a solution for via .
But such a solution cannot exist: Let be the bipartition of . We assume w.l.o.g. that . Then we have and . However, this is a contradiction since clearly .
Corollary 33.
There is a sentence such that for each , and are separated by .
Proof.
By Lemma 24, is a polymorphism of . Thus, the CSP quantifier for the -ary template is in . By Lemmas 31 and 32, this quantifier distinguishes and , for every . The preceding assertions can be shown in exactly the same way for the classes and , where the polymorphism-closedness of the template is due to Lemma 27.
To finish the proof of the separation (and thus of Theorem 16), we show that no sentence in can distinguish between the classes and . To achieve this, we show that for every , there exists such that Duplicator has a winning strategy in the game . Then it follows with Corollary 3 that and cannot be separated by a sentence of .
The indistinguishability of and in is shown with a similar argument. So from now on, let be a fixed number of pebbles. We choose so that is defined, and is sufficiently larger than . In the following, write and let and be the vertex and edge set of . Recall that is the disjoint union of identical graphs with certain connections between them.
Lemma 34.
Duplicator has a winning strategy in the game .
The lemma is proved by showing that Duplicator can maintain an invariant which prevents Spoiler from winning. Let be a position in the game with . For the sake of simplicity, we denote the tuples of pebbled elements in the image of and by and , respectively. Furthermore, we call the corresponding pebble position of the game.
A vertex is safe in a pebble position if or and is pebble-free (i.e., no component of or is in ) for every .
Let . We call a bijection good bar if for every , is a partial isomorphism (thus, is an isomorphism between and except at ).
To prove Lemma 34, we show that Duplicator can maintain the following invariant for the pebble positions reached by the moves of the players: There exists a bijection with that is good bar , for some which is safe.
Lemma 35.
Let be the current pebble position in . Assume the invariant holds in the beginning of the round. Then Duplicator has a strategy to ensure the invariant also in the beginning of the following round.
The proof idea is as follows.
Duplicator begins the round by playing the bijection sending to which exists because the invariant holds at the beginning of the round. Let be the vertex such that is good bar . Now Spoiler modifies the position of up to pebbles in both structures, leading to a new pebble position .
Duplicator has to find a new bijection that satisfies the invariant again. This can be done using a pebble-free path from to another vertex which is safe with respect to : Indeed, a standard property of CFI-like constructions is that inconsistencies in bijections can always be βshiftedβ along a path in the base graph.
More precisely, for every path , and each constant , there exists a bijection that induces a local isomorphism everywhere except at the vertex gadgets belonging to the two endpoints of : For each , induces an isomorphism from to , where is the charge associated with in .
In other words, for a pebble-free path from to some safe , and for the appropriate choice of , will be good bar .
It remains to argue why such a pebble-free path to a safe vertex always exists.
This can be done exactly like in [15]: Because the number of copies of in is sufficiently larger than , there always exists some pebble-free copy and safe . The pebble-avoiding path from to exists because each copy is sufficiently connected.
The only difference to [15] is that now, if a pebble has been placed on , one has to take extra care: If the path starts in via the edge or , then there is a problem because for (see Definition 23 for the vector ). As a consequence of this, cannot be defined so that it fixes the pebbled elements in . The workaround in this case is to use two paths from to the same safe vertex , one via and one via , and to suitably distribute the value by which has to be corrected at across the two paths.
The proof of Theorem 16 is now straightforward: Corollary 33 shows that for every fixed , our constructed classes and are separated by a sentence of . Lemma 34 together with Corollary 3 shows that the classes are inseparable in . Thus, . The proof of Theorem 18 is analogous. We show that for every pebble number , there is an such that Duplicator has a winning strategy in . The invariant that Duplicator maintains in this game is the same as above. From the existence of the winning strategy it follows that and cannot be separated by a sentence in . Separability of the classes with a CSP quantifier is shown similarly as in Corollary 33.
5 Limitations of partial-Maltsev-closed quantifiers
Write for the class of all -ary quantifiers that are closed under the partial Maltsev operation. Note that the Maltsev operation is a fixed operation of arity three, and thus the arity of the polymorphism is not a variable that plays a role in our study. Instead, we establish a hierarchy based on the arity of the quantifiers and also construct an example that separates the logic with -ary Maltsev-closed quantifiers from the logic with all -ary generalized quantifiers, at least in the context of a fixed number of variables. The interest in this lies in the novel nature of the construction and also the novelty in the use of a Spoiler-Duplicator game specific to Maltsev-closed quantifiers. In the present section we give a brief summary of the results. Full details of the construction and proofs can be found in [11].
We obtain the arity hierarchy for Maltsev-closed quantifiers by noting that the quantifiers used to establish the arity hierarchy in [15] are Maltsev-closed. To be specific, define for each the structure where . Then, it follows from the proof of [15, Theorem 8.6] that is not definable in . Since admits a Maltsev polymorphism, the following is immediate.
Theorem 36.
For every ,
Finally, we show that if we limit our logic to exactly variables, then there is a quantifier of arity that cannot be defined by using Maltsev-closed quantifiers of arity , giving us the following theorem.
Theorem 37.
For every ,
The proof requires a novel construction and substantial technical work to establish. The details are given in [11]. It leaves open the interesting question of whether we can show that this quantifier is not definable in , without the limitation on the number of variables. The apparent difficulty in obtaining such inexpressibility results for Maltsev-closed quantifiers lies in the fact that the typical hard examples, which are based on the CFI-construction, cannot be used: Their templates admit a Maltsev polymorphism, and so they are distinguishable by a quantifier in .
6 Conclusion
Our main results show that the quantifiers closed under -ary partial near-unanimity polymorphisms introduced at CSLβ24 [10] indeed give rise to new and interesting logics whose expressive power, in particular if , is strictly different from any of the logics that were studied by Hella in 1996 [15].
This establishes the logics as formalisms whose finite-model-theoretic properties deserve further study. One question that comes to mind is what can be said about the equivalence relation induced by on finite structures. Can it be characterized as a homomorphism indistinguishability relation or via a game comonad [1]? For the logics , the answer is affirmative [7], but for example, the invertible-map equivalences (which also stem from certain generalized quantifiers strictly between and ), there provably is no such characterization [22], so it would be interesting to clarify the situation for . It would also be desirable to tighten the gap between the arity reduction we have in Theorem 15 and the quadratic arity increase in Theorem 18: It seems plausible that already a smaller increase in arity should give strictly more expressive power.
The long-term goal of the study of polymorphism-closed quantifiers is, however, to establish inexpressibility results for quantifiers stronger than , in particular the partial Maltsev-closed ones. Theorem 37 is a first (and highly non-trivial) step in that direction but ultimately, we would like to exhibit an -ary class of structures that is undefinable in the full logic , without a restriction on the number of variables.
An even harder open problem is to understand the expressive power of quantifiers closed under partial weak near-unanimity polymorphism, for which we do not even know a model-comparison game yet. From a CSP perspective, weak near-unanimity is the most interesting condition as it characterizes precisely the finite-domain CSPs that are solvable in polynomial time (assuming PNP).
References
- [1] S. Abramsky, A. Dawar, and P. Wang. The pebbling comonad in finite model theory. In 2017 32nd Annual ACM/IEEE Symposium on Logic in Computer Science (LICS), pages 1β12. IEEE, 2017. URL: https://dl.acm.org/doi/10.5555/3329995.3330064.
- [2] L. Barto and M. Kozik. Constraint satisfaction problems of bounded width. In 2009 50th Annual IEEE symposium on foundations of computer science, pages 595β603. IEEE, 2009. URL: https://dl.acm.org/doi/10.1109/FOCS.2009.32.
- [3] L. Barto, A. Krokhin, and R. Willard. Polymorphisms, and How to Use Them. In Andrei Krokhin and Stanislav Zivny, editors, The Constraint Satisfaction Problem: Complexity and Approximability, volume 7 of Dagstuhl Follow-Ups, pages 1β44. Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik, Dagstuhl, Germany, 2017. doi:10.4230/DFU.Vol7.15301.1.
- [4] A. Bulatov. A Dichotomy Theorem for Nonuniform CSPs. In 58th IEEE Annual Symposium on Foundations of Computer Science, FOCS, pages 319β330, 2017. doi:10.1109/FOCS.2017.37.
- [5] A. Bulatov and V. Dalmau. A simple algorithm for malβtsev constraints. SIAM J. Comput., 36:16β27, 2006. doi:10.1137/050628957.
- [6] J. Cai, M. FΓΌrer, and N. Immerman. An optimal lower bound on the number of variables for graph identification. Combinatorica, 12:389β410, 1992. doi:10.1007/BF01305232.
- [7] A. Γ Conghaile and A. Dawar. Game comonads & generalised quantifiers. In Christel Baier and Jean Goubault-Larrecq, editors, 29th EACSL Annual Conference on Computer Science Logic, CSL 2021, January 25-28, 2021, Ljubljana, Slovenia (Virtual Conference), volume 183 of LIPIcs, pages 16:1β16:17. Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik, 2021. doi:10.4230/LIPIcs.CSL.2021.16.
- [8] A. Dawar. Linear algebraic quantifiers. In K. Meer, A. Rabinovich, E. Ravve, and A. Villaveces, editors, Model Theory, Computer Science, and Graph Polynomials, pages 215β237. Springer, 2025. Festschrift in Honor of Johann A. Makowsky.
- [9] A. Dawar, E. GrΓ€del, and W. Pakusa. Approximations of isomorphism and logics with linear-algebraic operators. In 46th International Colloquium on Automata, Languages, and Programming, ICALP 2019, 2019. doi:10.4230/LIPIcs.ICALP.2019.112.
- [10] A. Dawar and L. Hella. Quantifiers Closed Under Partial Polymorphisms. In 32nd EACSL Annual Conference on Computer Science Logic (CSL 2024), volume 288 of Leibniz International Proceedings in Informatics (LIPIcs), pages 23:1β23:19, 2024. doi:10.4230/LIPIcs.CSL.2024.23.
- [11] Anuj Dawar, Lauri Hella, and Benedikt Pago. Arity hierarchies for quantifiers closed under partial polymorphisms, 2025. arXiv:2511.11326.
- [12] H-D. Ebbinghaus and J. Flum. Finite Model Theory. Springer, 2nd edition, 1999.
- [13] H.D. Ebbinghaus. Extended logics: the general framework. In J. Barwise and S. Feferman, editors, Model-Theoretic Logics, pages 25β76. Springer, 1985.
- [14] R. Fagin, P. G. Kolaitis, and L. Popa. Data exchange: getting to the core. ACM Trans. Database Syst., 30:174β210, 2005. doi:10.1145/1061318.1061323.
- [15] L. Hella. Logical hierarchies in PTIME. Information and Computation, 129:1β19, 1996. doi:10.1006/INCO.1996.0070.
- [16] L. Hella. The expressive power of CSP-quantifiers. In 31st EACSL Annual Conference on Computer Science Logic, CSL, pages 25:1β25:19, 2023. doi:10.4230/LIPIcs.CSL.2023.25.
- [17] P. Jonsson, V. Lagerkvist, G. Nordh, and B. Zanuttini. Strong partial clones and the time complexity of SAT problems. J. Comput. Syst. Sci., 84:52β78, 2017. doi:10.1016/J.JCSS.2016.07.008.
- [18] V. Lagerkvist and M. WahlstrΓΆm. Sparsification of SAT and CSP problems via tractable extensions. ACM Trans. Comput. Theory, 12(2):13:1β13:29, 2020. doi:10.1145/3389411.
- [19] V. Lagerkvist and M. WahlstrΓΆm. The (Coarse) Fine-Grained Structure of NP-Hard SAT and CSP Problems. ACM Trans. Comput. Theory, 14(1):2:1β2:54, 2022. doi:10.1145/3492336.
- [20] L. Libkin. Elements of Finite Model Theory. Springer, 2004.
- [21] M. Lichter. Separating rank logic from polynomial time. J. ACM, 70(2):14:1β14:53, 2023. doi:10.1145/3572918.
- [22] M. Lichter, B. Pago, and T. Seppelt. Limitations of Game Comonads for Invertible-Map Equivalence via Homomorphism Indistinguishability. In Aniello Murano and Alexandra Silva, editors, 32nd EACSL Annual Conference on Computer Science Logic (CSL 2024), volume 288 of Leibniz International Proceedings in Informatics (LIPIcs), pages 36:1β36:19, Dagstuhl, Germany, 2024. Schloss Dagstuhl β Leibniz-Zentrum fΓΌr Informatik. doi:10.4230/LIPIcs.CSL.2024.36.
- [23] D. Zhuk. A proof of the CSP dichotomy conjecture. J. ACM, 67:30:1β30:78, 2020. doi:10.1145/3402029.
