Decidable fragments of first-order modal logics with counting quantifiers over varying domains
Christopher Hampson

TL;DR
This paper analyzes the computational complexity of one-variable fragments of first-order modal logics with counting quantifiers over varying domains, providing tight bounds for satisfiability problems in different settings.
Contribution
It establishes optimal complexity bounds for the satisfiability of these fragments, including cases with binary and unary encoding of counting quantifiers over different domain types.
Findings
Optimal NExpTime upper bounds for minimal first-order modal logic QK with counting quantifiers.
PSpace-completeness for unary-encoded counting quantifiers over expanding domains.
ExpTime-hardness for decreasing domains with unary-encoded counting quantifiers.
Abstract
This paper explores the computational complexity of various natural one-variable fragments of first-order modal logics with the addition of counting quantifiers, over both constant and varying domains. The addition of counting quantifiers provides us a rich language with which to succinctly express statements about the quantity of objects satisfying a given first-order property, using a single variable. Optimal NExpTime upper-bounds are provided for the satisfiability problems of the one-variable fragment of the minimal first-order modal logic QK, over both constant and expanding/decreasing domain models, where counting quantifiers are encoded as binary strings. For the case where the counting quantifiers are encoded as unary strings, or are restricted to a finite set of quantifiers, it is shown that the satisfiability problem over expanding domains is PSpace-complete, whereas over…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsLogic, Reasoning, and Knowledge · Semantic Web and Ontologies · Advanced Algebra and Logic
\NewEnviron
killcontents
Decidable fragments of first-order modal logics with counting quantifiers over varying domains
Christopher Hampson
Department of Informatics
King’s College London
Abstract
This paper explores the computational complexity of various natural one-variable fragments of first-order modal logics with the addition of counting quantifiers, over both constant and varying domains. The addition of counting quantifiers provides us a rich language with which to succinctly express statements about the quantity of objects satisfying a given first-order property, using a single variable. Optimal NExpTime upper-bounds are provided for the satisfiability problems of the one-variable fragment of the minimal first-order modal logic , over both constant and expanding/decreasing domain models, where counting quantifiers are encoded as binary strings. For the case where the counting quantifiers are encoded as unary strings, or are restricted to a finite set of quantifiers, it is shown that the satisfiability problem over expanding domains is PSpace-complete, whereas over decreasing domains the problem is shown to be ExpTime-hard.
1 Introduction
Following the negative results of Church and Turing on the Entschiedungsproblem, there was a surge of interest in the 1920–30s in establishing where lay the boundary between decidable and undecidable fragments of classical first-order logic (see the monograph [5], and references therein). First-order modal logics, by contrast, have enjoyed far less attention, despite their numerous applications in temporal query languages [6, 7] and in modelling of distributed or multi-agent systems [8, 3].
This lack of attention is arguably not a result of disinterest, but rather a result of the relatively weak expressive power required to obtain undecidability results. For example, while the two-variable fragment of classical first-order logic is decidable [11], even the two-variable, monadic fragment of many first-order modal logics is already undecidable [18]. There is, therefore, a practical demand for finding expressive fragments of first-order modal logics that retain their decidability, and establishing where the boundary between decidability and undecidability lies.
One approach is to consider the one-variable fragment, which is typically decidable whenever the underlying modal logic is decidable [missing]. However, these are often too weakly expressive for most practical uses. More expressive, yet still often decidable, are the monodic fragments, in which the modalities de re (about the thing) are restricted to formulas containing at most one free variable, with no restrictions are placed on modalities de dicto (about the statement) [16, 37].
Another approach is to expand the language with countably many counting quantifiers able to succinctly express statements about the quantity of objects satisfying a given property, without requiring many auxiliary variables to address each such object independently. Our choice of how to encode the numerical bound associated with our counting quantifiers may potentially affect the computational complexity of our satisfiability problem, depending on whether we choose a succinct binary encoding for or a more verbose unary encoding. For the purposes of upper bounds, it is the binary encoding that is the more stringent. Counting quantifiers, in the form of cardinality restrictions on concepts, also play a central role in several expressive fragments of description logics [1, 2].
It is well-known that counting quantifiers can be safely added to the two-variable fragment of classical first-order logic without increasing the complexity of its satisfiability problem. Moreover, it makes no difference, whether our counting quantifiers are encoded as unary strings [24] or as binary strings [25]. They, therefore, suggest an attractive direction in the quest to gain greater expressive power from finite variable fragments of first-order modal logics, without jeopardizing their decidability. Some examples of first-order formulas with counting quantifiers include:
- •
“At most four components are believed to be faulty”:
{\exists_{\leq 4}}x\big{(}\mathsf{Component}(x)\land\Box\mathsf{Faulty}(x)\big{)}
- •
“It is possible that there is life on more than one planet”:
\Diamond{\exists_{\geq 2}}x\big{(}\mathsf{Planet}(x)\land\mathsf{hasLife}(x)\big{)},
- •
Generalised Barcan formula:
, for .
Unfortunately, the the addition of counting quantifiers is not always so amicable in the case of first-order modal logics, where even the most modest admission of counting quantifiers can result in a jump from decidability to the undecidable [15], or even the highly undecidable [13].
Turning our attention towards more practical first-order modal logics, this paper explores several decidable one-variable fragments over both constant and varying domains that are permitted to either expand or contract relative to the modal accessibility relation. Furthermore, we shall see that over varying domains, the choice of encoding for the numerical bounds appearing in the counting quantifiers can have a dramatic effect on the overall complexity. As too can placing any finite bound on subscripts appearing in the quantifiers, regardless of their encoding. Table 1, below, summarizes the results contained herein.
1.1 Outline of paper
In Section 2, we introduce the the one-variable fragment of first-order logic with counting quantifiers and establish the definitions for the fragments of first-order modal logics with which we shall be working. In Section 3 we consider first-order logics over over constant domains and show that the satisfiability problem for the one variable fragment of where our quantifier subscripts are encoded as binary strings, is NExpTime-complete. This results is extended, in Section 4, to logics over expanding and decreasing domains.
In Section 5, we investigate the affect that the choice of encoding of the counting quantifiers has on the complexity, over expanding domains, while Section 6 presents partial results over decreasing domains. In Section 7 we explore the connections between the aforementioned first-order modal logics with counting quantifiers and two-dimensional products of propositional modal logics related to von Wright’s logic of ‘elsewhere’. We conclude with a discussion of some open problems in Section 8.
2 Preliminaries
2.1 First-order Modal Logics with Counting Quantifiers
The reader is assumed to be familiar with the basics of propositional and first-order modal logics, such as can be found in Fitting and Mendelsohn [9], for example. In what follows, we shall consider the first-order modal language comprising a countably infinite set of predicate symbols , each with an associated arity, together with a set of first-order variables . We will write to denote the set of all traditional (counting-free) first-order modal formulas with a sole quantifier , and distinguish this from the set of all first-order modal formulas with counting quantifiers defined by the following grammar:
[TABLE]
where is an -ary predicate symbol, are first-order variables, and is encoded as a binary string. For the language where counting quantifier subscripts are encoded as unary strings, we denote . The other Boolean connectives are defined in the usual way, with the addition of the usual dual modal operator . We will identify the counting free fragment to be a sublogic of with the abbreviations and .
Other counting quantifiers and can similarly be expressed in terms of . It should be noted that the ‘obvious’ definition leads to an exponential increase in the size of the formula over the succinct abbreviation. This, however, can be avoided by rewriting , for some fresh monadic predicate symbol .
We distinguish between the fragments having unbounded counting quantifiers and the fragments whose formulas that do not contain quantifiers with subscripts larger than . For each , let denote the -variable fragment comprising only those formulas containing the variables , and denote by the -variable fragment with quantifiers subscripts not exceeding .
We define to be the set of all subformulas of , to be the modal depth of , taken to be the maximum nesting depth of modal operators, and to be the capacity of , taken to be the value of the largest quantifier subscript occurring in .
2.2 Semantics
Formulas of are interpreted in first-order Kripke models of the form , where is a unimodal Kripke frame comprising a set of possible wolds and a binary accessibility relation on , is a non-empty set of domain objects from which the domain function selects a non-empty subset , for each . Finally, is a function associating each and and each -ary predicate symbol with a -ary relation on .
In general, there may be no proscription on the behaviour of the domain function , in what we call varying domain models. However, of most interest to us are those cases where the domain of interpretation is constant or is permitted to either only expand or only contract relative to the direction of the underlying Kripke frame. We say that the model is:
- –
a constant domain model if for all ,
- –
an expanding domain model if , whenever , and
- –
a decreasing domain model if , whenever .
Given a model and a variable assignment , mapping variables to domain objects, we define satisfiability in in the standard way by taking:
[TABLE]
for all , where is an -ary predicate symbol. Counting quantifiers are interpreted, by taking:
[TABLE]
for , where denotes the cardinality of , and is the variable assignment that agrees with on all variables except , for which it assigns the value . In the case where contains only a single variable , it will be convenient to write in place of , where is the assignment of .
We say that a formula is valid in if , for all under any variable assignment . For each propositional modal logic , there is an associated first-order modal logic (resp. , ) taken to be the set of all first-order modal formulas that are valid in every constant (resp. expanding, decreasing) domain model whose underlying Kripke frame is a frame for . We say that is satisfiable with respect to (resp. , ) if is satisfiable in some constant (resp. expanding, decreasing) domain model whose underlying Kripke frame is a frame for .
The fragment is said to have the poly-size (resp. exponential-sized) domain property if every formula that is satisfiable with respect to can be satisfied in a model in which is at most polynomial (resp. exponential) in the size of . Similarly, we say that poly-size (resp. exponential-sized) model property if every formula that is satisfiable with respect to can be satisfied in a model in which both and are at most polynomial (resp. exponential) in the size of .
Throughout the remainder of this paper, we will be chiefly concerned with various fragments of the logics , and , characterized by the class of all frames. However, owing to a standard ‘bulldozing’ argument (see [4]), we may assume without any loss of generality that if is satisfiable with respect to (resp. , ), then it must be satisfiable in a model whose underlying Kripke frame is an irreflexive, intransitive tree of depth .
3 Logics with unbounded quantifiers over constant domains
We note, first, that the satisfiability problem for the counting-free fragment of in one-variable is NExpTime-complete [22], while that of the two-variable monadic fragment is already undecidable [18, 10]. The effect of adding even the most modest counting quantifiers , for , to the decidable one-variable fragment of , whose models are based on linear frames, is known to result in undecidability [13]111Many of these results are presented in the context of two-dimensional propositional modal logics, the connection with which is explored in Section 7..
In marked contrast to these negative results, in this section we show that endowing the one-variable fragment with infinitely many counting quantifiers , for each , does not result in any increase in the computational complexity of its satisfiability problem over its counting-free counterpart; indeed the problem remains NExpTime-complete. This result was first proved in [14].
Theorem 3.1**.**
The satisfiability problem for the one-variable fragment with unbounded counting quantifiers is NExpTime-complete.
We show that for a formula to be satisfiable with respect to , it must be satisfiable in a model that is at most exponential in the size of ; *i.e.*the one-variable fragment has the exponential fmp. This provides us with an effective mechanism by which to check the satisfiability of any formula — nondeterministically select a ‘small’ model whose size is at most exponential in , and check whether it satisfies . Since model-checking can be performed in polynomial time in the size of the model and size of the formula, we obtain an NExpTime upper-bound on the complexity of the satisfiability problem for .
Theorem 3.2**.**
The one-variable fragment with unbounded quantifiers has the exponential fmp.
To prove this, we employ a version of the method of quasimodels [35, 20]. Our quasimodels closely resemble full Kripke models, however, each first-order structure is replaced with a quasistate, which can be finitely represented. The basic structure of our quasimodels may still be infinite, so we require additional non-trivial ‘pruning’ techniques to ensure that large quasimodels can be reduced to smaller finite quasimodels without sacrificing satisfiability. Therein lies the crux of the problem we must solve.
First, let us fix some arbitrary first-order modal formula , and throughout what follows, let denote the number of subformulas of , denote the modal depth of , and denote the value of the largest quantifier subscript occurring in . In particular we note that , while , owing to the binary encoding of the quantifier subscripts.
Definition 3.3** (Types and Quasistates).**
We define a type for to be any subset that is Boolean-saturated in the sense that:
- (tp1)
for all , if and only if , and 2. (tp2)
for all , if and only if and .
A quasistate for is defined to be a pair such that:
- (qs1)
is a non-empty set of types for , 2. (qs2)
is a bounded ‘multiplicity’ function, 3. (qs3)
(-saturation) For all and ,
[TABLE]
where denotes the set of types belonging to that contain the formula .
Note that the size of each quasistate cannot exceed the number of distinct types for , which is to say that , and , since . The multiplicity function indicates how many ‘duplicates’ of each type are required in order to transform the quasistate into an appropriate first-order structure. Note that is indifferent to any duplicates in excess of the value of its largest quantifier subscript, and does not discern between ‘large’ quantities which are beyond its ‘vocabulary’.
Definition 3.4** (Quasimodels).**
A basic structure for is a triple , where is an intransitive, irreflexive tree of depth , and q is a function associating each with a quasistate . A run through is a function associating each with a type . A quasimodel for is a 5-tuple such that:
- (qm1)
is a basic structure for , is a non-empty set of indices, and is an set of runs through indexed by , 2. (qm2)
There is some and such that , 3. (qm3)
(coherence) For all , and ,
[TABLE] 4. (qm4)
(saturation) For all , and ,
[TABLE] 5. (qm5)
For all and ,
[TABLE]
The following lemma establishes that our quasimodels precisely capture the notion of satisfiability with respect to , and that every quasimodel for can be effectively transformed into model for of proportional size.
Lemma 3.5**.**
Let be an arbitrary formula in one-variable. Then is satisfiable with respect to iff there is a quasimodel for .
Proof.
Suppose that is satisfiable with respect to . Then for some first-order Kripke model , where is an irreflexive, intransitive tree of depth , with .
With each and , we associate the type
[TABLE]
and define a basic structure , by taking , for all , where
[TABLE]
for all . It is straightforward to check that is a quasistate, for each . Indeed, suppose that and that , for some . Then we have that:
[TABLE]
The final equivalence follows from the fact that each summand strictly less than , since . Hence, it follows from the definition that , for all . For each index , we define a run by taking
[TABLE]
for all . We then take to be the set of all such runs through , with indices from . Note that there may be many indices in that correspond to the same run. It is straightforward to check that is a quasimodel for .
Conversely, suppose that is a quasimodel for . We define a first-order Kripke model , by taking , for all , and
[TABLE]
for all predicate symbols and . It remains to check that is a model for . We claim that
[TABLE]
for all , , and .
The case where is an atomic formula follows immediately from the definitions. So suppose that (I.H.) holds for all formulas of size , and let be a formula of size . The cases where is a Boolean combination of smaller formulas follow from the definition of a type, leaving us with two cases:
- \killcontents
- –
Case : This follows immediately from the definition of , since
[TABLE]
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
\endkillcontents
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
The penultimate equivalence follows, again, from the fact that each summand strictly less than , since . Hence, it follows from (qm5) that , for all .
Hence, it follow that if and only if , for all , as required. By (qm2), there is some and such that , while by (qm5) we have that there is some such that . Hence, it follows from (I.H.) that , which is to say that is satisfiable with respect to , as required. ∎
Hence, to show that the one-variable fragment has the exponential fmp, it is enough to show that every quasimodel for can be transformed into a finite quasimodel in which both and are at most exponential in the size of .
Lemma 3.6**.**
Let be an arbitrary formula in one-variable. If has a quasimodel, then has a quasimodel such that:
[TABLE]
Proof.
Let and suppose that is a quasimodel for . The proof follows two stages: the first involves pruning both the basic structure and the set of runs so that they are both at most exponential in the size of . During this stage we inadvertently destroy some of the defining properties of our quasimodel; in particular the saturation condition (qm4). In the second stage we remedy this deficiency by adding multiple ‘copies’ of each quasistate and performing ‘surgery’ on a finite set of runs to repair saturation.
Step 1)
First, it follows from (qm2) that there is some and such that . By (qm5), for each and each we may fix some run such that . Take be to the set comprising all such runs, for each . In particular, we note that . Furthermore, by (qm4), for each we may fix some such that and . We now define inductively a sequence of (finite) subsets , for , by taking , and
[TABLE]
for . We then define a new basic structure , by taking
[TABLE]
for all .
Let , and note that is finite since it is a finite union of finite sets of runs. However, need not be plentiful enough to accommodate condition (qm5). Hence we must extend to a ‘small’ subset of by choosing sufficiently many runs so as to satisfy (qm5).
More precisely, for each , and we can fix some such that , and for . The existence of sufficiently many such runs is guaranteed by (qm5). Furthermore, we may assume without any loss of generality that , as defined above. We may then take
[TABLE]
and define . We note that:
[TABLE]
Furthermore, from our construction we have that satisfies each of the conditions (qm1), (qm2), (qm3), and (qm5), as can be easily verified. However fails to satisfy the saturation condition (qm4). To remedy this, we diverge from the techniques of [35, 20] by extending our basic structure with not one but multiple ‘copies’ of each quasistate; each associated with a given transposition of runs.
Step 2)
Let denote the set of all permutations on the set of indices , with denoting the identity function. For each and each , let denote the permutation that transposes and , where . Let denote the set of all such transpositions. In particular, we have that is at most exponential in the size of .
In what follows, we construct a new basic structure based on some ‘small’ subset of . Naturally, we cannot construct a basic structure out of the set of all pairs from if we are to insist on an exponential upper bound on the size of the quasimodel, since . Instead, for each , we may define a small set of successors , by taking:
[TABLE]
for all and . We construct a new sequence of sets , for , by taking
[TABLE]
for . Define a new basic structure , by taking:
[TABLE]
and , for all .
Finally, for each run we define a new run through , by taking , for all . That is to say that the new run behaves at as does at . Take and let be the set of all such runs. We may then define a new quasimodel , and note that
[TABLE]
both remaining at most exponential in the size of , as required. All that remains is to show that is, indeed, a quasimodel for .
- —
It follows from the construction that for some , where , as required for(qm2).
- —
For (qm3), suppose that , and are such that and .
By definition we have that , which is to say that and for some transposition . Hence we have that
[TABLE]
where . Since is coherent and , we have that . However, we have that and hence by definition , since transposes only runs that coincide at . In particular, we have that , which is to say that , as required.
- —
For (qm4), suppose that , and are such that . This is to say that . Let and let be such that . By construction there is some such that and .
Let be the transposition that swaps and . It follows from the construction that there is some such that
[TABLE]
and , as required.
- —
For (qm5), suppose that and and consider the following sets:
[TABLE]
Note that the maps bijectively from onto , since by definition . Hence if and only if , and thus .
That is to say that the number of runs passing through each type remains unaffected by Step 2 of our construction. It then follows from the definitions that
[TABLE]
as required.
Thus completes the proof of Lemma 3.6. ∎
Theorem 3.2 now follows from Lemmas 3.5–3.6, and hence the one-variable fragment has the exponential fmp. Consequently, as described above, we may exploit this exponential fmp to answer the satisfiability problem in NExpTime, thereby completing the proof of Theorem 3.1.
It follows that the satisfiability problems for each of the one-variable fragments with finitely bounded quantifier subscripts are similarly NExpTime-complete; sandwiched, as they are, between the unbounded fragment and the NExpTime-hard one-variable counting-free fragment [22]. Furthermore, the satisfiability problem for the fragment , in which the counting quantifiers are encoded as unary strings, can be polynomially reduced to that of by transcribing the subscripts into binary. Consequently, it shares the same NExpTime upper-bound.
Corollary 3.7**.**
The satisfiability problem for each of the fragments and is NExpTime-complete, for .
4 Logics with unbounded quantifiers over expanding or decreasing domains
It is well-established that the satisfiability problems for the counting-free fragments of and are both polynomially reducible to that of , by relativizing the domain function with an auxiliary monadic predicate symbol , demarcating those domain objects that actually exist [9, 36].
The same is true over the language with counting quantifiers, where the same trick can also be employed. Let be an arbitrary formula first-order modal formula with counting quantifiers, and let be a fresh predicate symbol not occurring in . We define the relativization via the function , defined inductively, by taking
[TABLE]
We may, thereby, reduce the satisfiability problem for and to that of , by specifying the expanding or decreasing nature of , by defining:
[TABLE]
respectively, where is the modal depth of .
Proposition 4.1**.**
Let be an arbitrary first-order modal formula. Then we have the following equivalences:
- (i)
* is satisfiable with respect to if and only if is satisfiable with respect to ,*
- (ii)
* is satisfiable with respect to if and only if is satisfiable with respect to ,*
Proof.
The proof is via a routine induction, analogous to that of [36, Proposition 2.4]. ∎
This yields the following immediate consequence of Theorem 3.1.
Corollary 4.2**.**
The satisfiability problem for the one-variable fragment with unbounded quantifiers is decidable in NExpTime, for .
What prevents us from encoding constant domains within varying domain models is our inability to prevent the domains from expanding or contracting beyond the scope of our formulas. However, the addition of counting quantifiers allows us to make specific demands on the size of each domain.
The following theorem provides a matching lower bound, by exploiting the exponential domain property of , proved in Theorem 3.1, together with the succinct binary encoding of counting quantifiers. The intuition is that with unbounded quantifiers, we can specify the exact size of the first-order domains, forcing them to be remain constant in all possible worlds lie within the scope of the formula. The binary encoding allows us to succinctly specify the (possibly) exponential size of the domains.
Theorem 4.3**.**
The satisfiability problem for the one-variable fragment with unbounded counting quantifiers is NExpTime-complete, for .
Proof.
The upper-bound has already been established by Corollary 4.2. The proof for the lower-bound is via a reduction from the satisfiability problem for the one-variable fragment , over constant domains.
To this end, let be an arbitrary formula in one variable, whose counting quantifiers are encoded as binary strings. Since the one-variable fragment has the exponential finite domain property, there is some monotonic function f(n)\in O\big{(}2^{n^{k}}\big{)} such that if is satisfiable with respect to then is satisfiable in a model in which the size of each first-order domain does not exceed .
We define to be the conjunction of , and the following formula:
[TABLE]
where . Note that the size of is at most logarithmic in the size of , owing to the binary encoding of the quantifier subscripts.
We claim that is satisfiable with respect to if and only if is satisfiable with respect to , for .
- ()
Suppose , for some first-order Kripke model , with , where is either expanding or decreasing. Without loss of generality, we may assume that is an irreflexive, intransitive tree of depth . Whence, by (2), it follows that , for all and . Consequently, we have that , for all , and since is assumed to be either increasing or decreasing, we must have that , for all . It then follows from and that , for all .
We define a new constant domain model over , by taking , for all and , for all predicate symbols occurring in .
We prove, by induction on the length of that
[TABLE]
for all and .
The cases where is an atomic formula or a Boolean combination of smaller formulas are straightforward and follow from the definitions. So suppose that is of the form or , for some and . In which case we have the following:
- \killcontents
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
\endkillcontents
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
Hence, we have that if and only if , for all . In particular, we have that , which is to say that is satisfiable with respect to .
- ()
Suppose that for some first-order constant domain model , with . Again, without any loss of generality, we may assume that is an irreflexive intransitive tree of depth , with root . Moreover, since has the -sized domain property, we may assume that , where is an most exponential in the size of . Hence, there must be some injective enumeration of , assigning to each object , a unique index .
We define a new model by taking , and , for all and,
[TABLE]
for all predicate symbols occurring in .
We prove, by induction on the length of that
[TABLE]
for all and .
- \killcontents
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
\endkillcontents
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
Hence, we have that if and only if , for all . In particular, we have that . Furthermore, it is straightforward to check that , since each contains precisely elements, and , for all . Hence, we have that , which is to say that is satisfiable with respect to , and consequently with respect to both and .
Since the satisfiability problem for the one-variable fragment is NExpTime-hard, so too must be the satisfiability problem for the one-variable fragment , for both , as required. ∎
Note, above, that is not restricted to any quantifier bounded fragment , for . Furthermore, this reduction relies heavily on the succinct binary encoding of the subscripts, without which we would be unable to specify the exponential size of the domains while maintaining the polynomial bound on the size of .
In the proceeding sections, we shall see that both of these assumptions are crucial to the success of Theorem 4.3, and without which the computational complexity of the satisfiability problem can be greatly reduced.
5 Logics with bounded quantifiers over expanding domains
In this section we show that placing any finite bound on the quantifier subscripts significantly reduces the computational complexity of the satisfiability problem for the resulting fragment, from NExpTime-complete to PSpace-complete.
Similarly, if we were to encode the quantifier subscripts as unary strings—a practice that is common within other branches of logic, such as description logics [2, 17]—then we also observe the same reduction in complexity. In both cases, the results hinges on the fact that the domains for any first-order Kripke model for can be chosen to be at most polynomial in the size of and . Note that is bounded by some fixed constant for and is at most linear in when encoded as a unary string.
Lemma 5.1**.**
Given an arbitrary first-order modal formula . If is satisfiable with respect to then, can be satisfied in a model such that,
[TABLE]
where , and .
Proof.
Suppose that is satisfiable with respect to . Then for some expanding first-order Kripke model , where is an irreflexive, intransitive tree of depth at most with root . For each , and , let
[TABLE]
count the number of elements in satisfying , up to a maximum of , beyond which lacks that vocabulary to discern. For each , choose some fixed witness such that , and , for . We then define a ‘small’ subset , by taking
[TABLE]
for all . It follows that , for all . We may now define a new domain function , inductively, by taking
[TABLE]
where is the (unique) predecessor of , so that whenever . Furthermore, we note that , from which we can may infer that , as required.
We define a new model , over by taking , for all and all predicate symbols occurring in .
It follows from a straightforward induction on this size of , that
[TABLE]
for all and . The only non-trivial case is where is of the form , for some and . In which case we have that:
- \killcontents
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
\endkillcontents
- –
Case :
[TABLE]
Hence, it follows that , as required. ∎
Note that, in general, the bound given in (3) is exponential in the size of owing to the binary encoding of subscripts. However, if belongs to any of the quantifier bound fragments, then is at most constant. Likewise, if the quantifiers are encoded as unary strings, then is also at most linear in the size of .
Corollary 5.2**.**
Each of the fragments and possess the poly-size domain property.
We can exploit this polysize domain property to construct a tableau algorithm, in the style of Ladner’s K-WORLD algorithm [21], that answers the satisfiability problem using at most polynomial space. For succinctness, the approach taken here follows the presentation given by Spaan [31].
Theorem 5.3**.**
*Let be any fragment of such that has the pol-sized domain property. Then the satisfiability problem for is PSpace-complete. *
Theorem 5.4**.**
Let be any fragment of such that has the pol-sized domain property. Then the satisfiability problem for is PSpace-complete.
Proof.
In what follows, let denote the set of natural numbers . We define a recursive function QK-WORLD that takes five parameters: a natural number controlling the recursion depth and ensuring termination, a set of fomulas , two positive integers , and a labelling function associating each integer with a set of formulas . Note that we can encode succintly as a list of pairs
[TABLE]
whose size is at most . We shall refer to as the ‘graph’ of .
For , the function returns TRUE if and only if the following conditions are met222For completeness, a more detailed description of how QK-WORLD may be implemented is described in Appendix A.:
- (tab1)
For each , we require that is Boolean saturated subset of , which is to say that:
- (i)
if and only if , for all , and
- (ii)
if and only if , for all , 2. (tab2)
For each and , we require that
[TABLE] 3. (tab3)
If , then for each and , there exists some and a labelling function , such that:
- (i)
,
- (ii)
only if , for all and ,
- (iii)
And returns TRUE.
As with the K-WORLD function as described by Spaan [31], the above function is non-deterministic as it must explore all possible choices for the parameters and demanded by condition (tab3). However, by appealing to Savitch’s theorem [26], we require only that the algorithm uses at most a polynomial amount of space along any possible computation.
Each of the checks for (tab1) can be performed ‘in-place’ on the graph of . The only part that requires further scrutiny is the additional check on the consistency of the counting quantifiers in (tab2), which can be achieved by with the aid of a counter that is incremented for every located from among those and then compared against whether , for each . The additional space requirements for such a counter is at most linear in the size of (or even logarithmic if the counter is encoded in binary). If then there is nothing to check for (tab3). Otherwise, each of the checks (tab3)(i)–(tab3)(ii) can also be performed ‘in-place’ on the graphs of and , both of which are at most polynomial in the size of and . Finally, the depth of the recursion required for (tab3)(iii) is bounded by , and so it follows that (tab3) can be perfomed in polynomial space.
For soundness and correctness, we claim that returns TRUE if and only if there is some expanding domain model , with domain , such that:
- (I.H.1)
is an irreflexive, intransitive tree of depth , 2. (I.H.2)
, where is the root of , 3. (I.H.3)
if and only if , for all and .
We prove this by induction on , so let be fixed, and if then suppose that the claim holds for all :
- ()
Suppose that returns TRUE. If then, by (tab3), for each and , there must be some such that and such that and returns TRUE. By the induction hypothesis, there is some expanding model satisfying conditions ((I.H.1))–((I.H.3)). From this (possibly empty) collection of models, we define a new expanding domain model , by taking to be the result of connecting each of the trees together at a common root . We define by taking , whenever belongs to , and setting , so that . Similarly, let whenever belongs to and let
[TABLE]
for all occurring in .
It follows from this construction that is an irreflexive, intranstive tree of depth , as required for (I.H.1), while , as required for (I.H.2). Finally, it follows from a routine induction that if and only if , as required for (I.H.3).
\killcontents
- –
For ((tab1))(i)
[TABLE]
- –
For ((tab1))(ii)
[TABLE]
- –
For ((tab2)), we have that
[TABLE]
\endkillcontents
- ()
Conversely, suppose that there is a expanding domain model satisfying ((I.H.1))–((I.H.3)). It is a routine exercise to show that each is Boolean saturated, as required for (tab1), and that if and only if , for all , as required for (tab2).
If then (tab3) holds vacuously. Otherwise, suppose that and . By ((I.H.3)), we must have that , which is to say that there is some such that and . Choose and let be an enumeration of such that , for all . We may then choose by taking
[TABLE]
for all . In particular, we have that , as required to (tab3)(i). Furthermore, if , for some , then by definition we have that , from which it follows that , since . Consequently, it follows from (I.H.3) that that , as required for (tab3)(ii). Finally, for (tab3)(iii), we note that the submodel , where is the irreflexive, intransitive subtree of generated by , satisfies conditions (i)–(iii). Whence, by the induction hypothesis, we have that returns TRUE, thereby satisfying (tab3). Hence, we conclude that meets all the condition (tab1)–(tab3), and therefore returns TRUE, as required.
By Lemma 5.1, we have that is satisfiable with respect to if and only if it can be satisfied in an expanding domain model based on an irreflexive, intransitive tree of depth , whose domains do not exceed . Hence it follows that is satisfiable with respect to if and only if there exists some and some such that returns TRUE, where , thereby completing the proof. ∎
It is noteworthy that despite the lofty NExpTime-completness of the satisfiability problem for the one-variable counting-free fragment over constant domains, each of the fragments over expanding domains shares the same computational complexity as the underlying propositional modal logic , for [21]. However, despite this, the countable union of each of these PSpace-complete fragments , for , results in the full one-variable fragment , whose satisfiability problem is, once again, NExpTime-complete.
Note that despite the existence of tableau algorithms for in the current literature [9], the question as to the computational complexity of any of its decidable fragments (and of the one-variable fragment, in particular) appears to have been, hitherto, unexamined.
Consequently, Theorem 5.4 also offers the following new result for the one-variable, counting-free fragment of .
Corollary 5.5**.**
The satisfiability problem for the one-variable, counting-free fragment is PSpace-complete.
6 Logics with bounded quantifiers over decreasing domains
Unlike for logics over expanding domains, we cannot escape the possibility that our decreasing models may require exponentially large domains; that is to say, they do not possess the poly-size domain property. This is true even if we restrict ourselves to the one-variable counting-free fragment , as evidenced by the following formula, adapted from [22]:
[TABLE]
Note that each , for , can only be satisfied in models in which the domain at the root node is exponential in the size of . As a result, we cannot emulate the proof of Theorem 5.4 over decreasing domain models to provide us with a PSpace upper-bound on the complexity of , for . Indeed, we may show that over decreasing domains, the satisfiability problem for the one-variable fragment is ExpTime-hard, even if we restrict ourself to using only the counting-free quantifiers and . Despite the lack of counting quantifiers, the comutational complexity of this fragments appears to have not yet been uncovered inthe current literature.
Theorem 6.1**.**
The satisfiability problem for the one-variable counting-free fragment is ExpTime-hard.
Proof.
The proof is via a reduction from the ExpTime-complete satisfiability problem for the propositional bimodal logic , characterised by the class of all bimodal Kripke frames , where is the universal relation on [31] (or [20, Theorem 1.27]).
To this end, let an arbitrary bimodal propositional formula in the modal language having a universal modality. Let be unary predicate symbols, and for each propositional variable we associate a fresh unary predicate symbol . In addition to these, we reserve a fresh auxilliary predicate symbol , for each subformula . We then define the translation , by taking
[TABLE]
Furthermore, take to be the conjunction of the following formulas:
[TABLE]
We claim that is satisfiable with respect to if and only if is satisfiable with respect to .
- ()
Suppose that is satisfiable with repsect to , which is to say that and , for some first-order decreasing model , where is an irreflexive intransitive tree.
We define a new Kripke frame by taking and
[TABLE]
for all . We define a propositional valuation by taking , for all .
We prove by induction on the size of that
[TABLE]
for all . The cases where is an atomic formula or a Boolean combination of smaller formulas are straightforward and follow from the definitions. So suppose that is of the form or , for some and . In which case we have the following:
- \killcontents
- –
Case : This follows immediately from the definition of since
[TABLE]
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
\endkillcontents
- –
Case : We have that
[TABLE]
- –
Case : If then there is some such that and . By the induction hypothesis, we have that . Whence, by (4), we have that . By the definition of , there is some such that , and . It follows that and so . Therefore, , which is to say that , as required.
Conversely, suppose that . Then there is some such that . It follows that and there is some such that . Note that by the definition of , we have that . Furthermore, since is decreasing, we have that , and so . Whence, by (5), we have that , and so it follows from the induction hypothesis that . We then have that , as required.
Hence it follows that if and only if , for all and . In particular, we have that , which is to say that is satisfiable with respect to , as required.
- ()
Suppose that is satisfiable with respect to . Then for some propositional Kripke model , where is an irreflexive, intranstive tree and .
We construct a new frame by taking
[TABLE]
where is a newly introduced root node, from which all other worlds are accessible. We construct a first-order Kripke model on by taking , where , , for all , and taking:
[TABLE]
for all , with
[TABLE]
for all .
We prove by induction on the size of that
[TABLE]
for all . Again, the cases where is an atomic formula or a Boolean combination of smaller formulas are straightforward and follow from the definitions. So suppose that is of the form or , for some and . We then have the following cases:
- \killcontents
- –
Case : This follows immediately from the definition of , since
[TABLE]
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
- –
Case : We have that
[TABLE]
\endkillcontents
- –
Case : If , then there is some such that . It follows from the definition of that . Furthermore, there is some such that . By the definitions of and , we have that and . Hence , which is to say that , since , as required.
Conversely, suppose that . Then there is some such that and . It follows from the definition that , and . We then have that . Furthermore, since , for all , we have that , which is to say that , as required.
Hence it follows that if and only if , for all and . In particular, we have that . Therefore, it remains to show that .
- –
For (5), suppose that is such that . Then there is some such that and . By definition we have that . It then follows from (I.H.4) that . Consequently, we have that .
- –
For (4), suppose that is such that . Then by (I.H.4), we have that . By definition, , for all and so . Consequently, we have that .
Hence, we have that , which is to say that is satisfiable with respect to , as required.
Since the satisfiability problem for the propositional modal logic is ExpTime-hard, so too must be that of the one-variable counting-free fragment , as required. ∎
This result, together with that of Theorem 3.1, places the complexity of the satisfiability problem for each of the fragments , for , and that of between ExpTime-hard and NExpTime. However, it remains open as to where their precise complexities lie.
Question 6.2**.**
Is the complexity of the satisfiability problem for each of the fragments , for , strictly less than that of their union ?
Question 6.3**.**
Is the complexity of the satisfiability problem for strictly less than that of ?
7 Applications to two-dimensional propositional modal logics
First-order modal logics are intimately related to another extensively studied formalism; that of many-dimensional modal logics [30, 27, 20, 19, 23]. Given a countably infinite set of propositional variables , let denote the set of bimodal formulas defined in accordance to the following grammar:
[TABLE]
where , and and are modal operators, with subscripts suggestive of the ‘horizontal’ and ‘vertical’ dimensions in which they are to operate. Formulas of are interpreted over Kripke models , where is a bimodal Kripke frame, with , and is a propositional valuation on . Satisfiability is defined in the usual way with being interpreted by the relation , for . Of particular interest are product models in which the two modal operators act orthogonally: We define the product of two unimodal frames and to be the bimodal frame , where
[TABLE]
for all and . A formula is said to be satisfiable with respect to if it is satisfiable in some product model , where and are frames for and , respectively.
The product construction was first described by Segerberg in [27] for the case where both components were frames for , and was later generalised to arbitrary frames by Shehtman [30].
A natural extension of the product construction is to consider subframes of product frames, in which only a subset of the possible worlds of are possible. We say that is:
- –
an expanding product model if implies , and
- –
a decreasing product model if implies ,
whenever .
It was observed by Wasjberg [34] that the one-variable fragment of first-order logic can be interpreted as a syntactic variant of the modal logic of all equivalence frames. This can be naturally extended to the one-variable fragment of first-order modal logics under the translation that maps and [10]. From this, we obtain the following proposition.
Proposition 7.1**.**
(i)* The satisfiablity problem for is equivalent to that of . (ii) The satisfiablity problem for is equivalent to that of , for .*
A closely related sub-logic of is von Wright’s ‘logic of elsewhere’ , characterized by the class of all difference frames of the form in which if and only of , for all [33]. Segerberg later provided a complete axiomatisation for , identifying it as the logic of all symmetric, weakly-transitive frames, with the following axioms [28]:
[TABLE]
By extending Wajsberg’s result for , we can reduce the satisfiability problem for to that of with a fragment of , with the aid of some counting quantifiers.
Proposition 7.2**.**
(i)* The satisfiablity problem for is equivalent to that of . (ii) The satisfiablity problem for is equivalent to that of , for .*
Proof.
Let be a propositional bimodal formula, and let be a unary predicate symbol associated with each propositional variable . We define the translation by taking
[TABLE]
for each . Take to be the following conjunction:
[TABLE]
where specifies the existence of some other domain object satisfying . Note that, since , for all , we have that is at most polynomial in the size of .
For each subframe product model , where , we associate a first-order Kripke model , by taking , , and
[TABLE]
for all , and . It then follows from a routine induction that is satisfiable in if and only if is satisfiable in . Furthermore, it is straightforward to check that is an expanding (resp. decreasing) domain model precisely when is an expanding (resp. decreasing) product model, therby completing the proof. ∎
By taking to be the minimal modal logic , Propositions 7.1 and 7.2 yield the following corollaries of Theorems 3.1,5.4, and 6.1:
Corollary 7.3**.**
The satisfiability problem for:
- (i)
* is *NExpTime-complete333Is is already well-established that is also NExpTime-complete [22].,
- (ii)
* is PSpace-complete, for ,*
- (iii)
* is ExpTime-hard in NExpTime, for .*
These results mark a stark contrast against the negative results one often faces when taking two-dimenisonal products with von Wright’s logic, which are often vastly more complex than their corresponding -counterparts. In particular, the satisfiability problem for is undecidable [15], while that of is decidable in N2ExpTime [20, Theorem 6.5]. A similar jump in complexity arises for products in which the horizontal component is characterised by some class of linear orders, such as with whose satisfibility problem is decidable in 2ExpTime, whereas that of is undecidable [13].
8 Discussion
Throughout this paper, we have focused our attention on fragments of comprising a single first-order variable, owing to the wealth of negative results that already exist for two-variable modal logics [18]. However, there remains scope to investigate the role of counting quantifiers to fragments that lie beyong the one-variable fragment, such as the monodic fragment, briefly described in Section 1 [36]
However, it should be noted that there is no immediate application of the techniques developed in [36], which the authors employed to prove that the (counting-free) monodic fragment of is decidable, where denotes the bimodal logic of all frames whose second relation is the transitive closure of the first. It is known, however, that even the one-variable fragment , whose sole counting quantifiers are and , is already non-recursively enumerable [15] (indeed, even highly undecidable [12, Theorem 8.5]).
The one-variable counting-free fragment is known to admit filtration and so it’s satsifiability problem can be decided in N2ExpTime [29, 20], where is the logic of all transitive frames. However, it remains open whether the the satisfiability problem for the full one-variable fragment or for any of the fragments are decidable, for . It is tempting to consider whether the results of Section 5, can be adapted to provide a similar PSpace upper-bound on the satisfaibility problem for , analogous to Ladner’s algorithm. However, this approach fails since the finite domain property, proved in Lemma 5.1, was contingent on every posible world having at most one predecessor. Indeed, it is not difficult to construct examples of satisfiable formulas that cannot be satisfied in models having only finitely many domain elements [20, Theorem 5.32].
The main question left open in this paper asks what is the precisely complexity of the satisfiability problem for each of the fragments , for . One might suppose that, given the lack of the poly-size domain property, that one may be able to derive an NExpTime-hard lower-bound via a reduction from the -tiling problem [32], a la Marx [22]. However, the reduction employed by Marx relies heavily on both left and right commutativity between the modal operators and first-order quantifiers.
Indeed, part of the problem we face with logics over decreasing domains is the inability for branches to ‘communicate’ directly with one another as they do in constant domain models, where every object in one branch is shared between every other branch of the model. Contrast this with the situation in decreasing domain models, where the first-order domains at each of the leaves of the underlying frame may be wholly disjoint from one another. There may, therefore, be hope that an ExpTime algorithm for this fragment may yet be uncovered.
Appendix A Implementation of QKworld Algorithm
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Franz Baader, Martin Buchheit, and Bernhard Hollander. Cardinality restrictions on concepts. Artificial Intelligence , 88(1-2):195–213, 1996.
- 2[2] Franz Baader, Diego Calvanese, Deborah Mc Guinness, Peter Patel-Schneider, and Daniele Nardi. The description logic handbook: Theory, implementation and applications . Cambridge university press, 2003.
- 3[3] Francesco Belardinelli and Alessio Lomuscio. First-order linear-time epistemic logic with group knowledge: An axiomatisation of the monodic fragment. In International Workshop on Logic, Language, Information, and Computation , pages 140–154. Springer, 2009.
- 4[4] Patrick Blackburn, Maarten de Rijke, and Yde Venema. Modal Logic . Cambridge University Press, New York, NY, USA, 2001.
- 5[5] Egon Börger, Erich Grädel, and Yuri Gurevich. The classical decision problem . Universitext. Springer, 2nd edition, 2001.
- 6[6] Jan Chomicki. Temporal query languages: a survey. In Temporal Logic , pages 506–534. Springer, 1994.
- 7[7] Jan Chomicki and Damian Niwinski. On the feasibility of checking temporal integrity constraints. Journal of Computer and System Sciences , 51(3):523–535, 1995.
- 8[8] Ronald Fagin, Joseph Y Halpern, Yoram Moses, and Moshe Vardi. Reasoning about knowledge . MIT press, 2004.
