
TL;DR
This paper introduces one-dimensional restrictions of the guarded fragment and tri-guarded fragment, analyzing their model properties and computational complexity, showing that these restrictions lead to more tractable decision problems.
Contribution
It defines and studies GF1 and TGF1, new fragments with restricted quantification, establishing their decidability, model properties, and complexity results, extending the understanding of guarded fragments.
Findings
GF1 has an exponential model property.
Satisfiability for GF1 is NExpTime-complete.
TGF1 is decidable with TwoExpTime-complete satisfiability.
Abstract
We call a first-order formula one-dimensional if its every maximal block of existential (universal) quantifiers leaves at most one variable free. We consider the one-dimensional restrictions of the guarded fragment, GF, and the tri-guarded fragment, TGF, the latter being a recent extension of GF in which quantification for subformulas with at most two free variables need not be guarded, and which thus may be seen as a unification of GF and the two-variable fragment, FO2. We denote the resulting formalisms, resp., GF1, and TGF1. We show that GF1 has an exponential model property and NExpTime-complete satisfiability problem (that is, it is easier than full GF). For TGF1 we show that it is decidable, has the finite model property, and its satisfiability problem is TwoExpTime-complete (NExpTime-complete in the absence of equality). All the above-mentioned results are obtained for signatures…
| logic | with | without = |
|---|---|---|
| GF | 2-ExpTime. | 2-ExpTime |
| TGF | undecidable | 2-ExpTime (2-NExpTime) |
| NExpTime (2-ExpTime) | NExpTime (2-ExpTime) | |
| 2-ExpTime (2-NExpTime) | NExpTime (2-NExpTime) |
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.
University of Wrocław, [email protected]://orcid.org/0000-0002-8538-8221 \CopyrightE. Kieroński\ccsdesc[100]Theory of computation Logic \supplement\fundingSupported by Polish National Science Centre grant No 2016/21/B/ST6/01444.
Acknowledgements.
\EventEditorsPeter Rossmanith, Pinar Heggernes, and Joost-Pieter Katoen \EventNoEds3 \EventLongTitle44th International Symposium on Mathematical Foundations of Computer Science (MFCS 2019) \EventShortTitleMFCS 2019 \EventAcronymMFCS \EventYear2019 \EventDateAugust 26–30, 2019 \EventLocationAachen, Germany \EventLogo \SeriesVolume138 \ArticleNo5 \hideLIPIcs
One-dimensional guarded fragments
Emanuel Kieroński
Abstract
We call a first-order formula one-dimensional if every maximal block of existential (or universal) quantifiers in it leaves at most one variable free. We consider the one-dimensional restrictions of the guarded fragment, GF, and the tri-guarded fragment, TGF, the latter being a recent extension of GF in which quantification for subformulas with at most two free variables need not be guarded, and which thus may be seen as a unification of GF and the two-variable fragment, . We denote the resulting formalisms, resp., , and . We show that has an exponential model property and NExpTime-complete satisfiability problem (that is, it is easier than full GF). For we show that it is decidable, has the finite model property, and its satisfiability problem is 2-ExpTime-complete (NExpTime-complete in the absence of equality). All the above-mentioned results are obtained for signatures with no constants. We finally discuss the impact of their addition, observing that constants do not spoil the decidability but increase the complexity of the satisfiability problem.
keywords:
guarded fragment, two-variable logic, satisfiability, finite model property
category:
\relatedversion
1 Introduction
The guarded fragment of first-order logic, GF, is obtained by requiring all quantifiers to be appropriately relativised by atoms. It was introduced by Andréka, van Benthem and Németi [1] as a generalization of propositional modal logic and may be also seen as an extension of some standard description logics. GF has good algorithmic and model-theoretic properties. In particular, Grädel proved that its satisfiability problem is decidable, it has a tree-like model property and the finite model property [7]. The idea of GF turned out to be very fruitful and found numerous applications. In this paper we consider some modifications of the syntax of GF. Our aim is to check if in this way we can obtain interesting fragments with better complexity and/or attractive expressiveness.
The satisfiability problem for GF is 2-ExpTime-complete. This relatively high complexity can be lowered to ExpTime either by bounding the number of variables, or the arity of relation symbols [7]. We propose another way of decreasing the complexity without sacrificing either the number of variables or the arity of relations. The idea is to restrict formulas to be one-dimensional. We say that a formula is one-dimensional if every maximal block of existential (or universal) quantifiers in it leaves at most one variable free. We remark that the one-dimensional restriction of full first-order logic, , is undecidable, as observed by Hella and Kuusisto [9]. We denote the intersection of and GF by and call it the one-dimensional guarded fragment. While this variation decreases the expressive power of the logic, we believe that it is still quite interesting, as, in particular, it still embeds propositional modal logic, and most standard description logics embeddable in full GF. Thus, as GF, it may serve as an extension of modal/description logics to contexts with relations of arbitrary arity. We show that the satisfiability problem for is NExpTime-complete and that it has an exponential model property, that is, its every satisfiable formula has a model of size bounded exponentially in its length. This is in contrast to full GF in which one can enforce doubly exponentially large models. Moreover, proving the finite model property for is much easier than for full GF, in particular it does not need complicated combinatorial constructions used in the case of GF (in [7], and in Bárány, Gottlob and Otto [2]). We obtain a corresponding NExpTime-lower bound even for a weaker logic, uniform , that is the intersection of and uniform , , the latter being a decidable restriction of introduced in [9] as a canonical generalization of the two-variable fragment (with equality) to scenarios involving relations of arity greater than two (see Kieroński, Kuusisto [13] where NExpTime-completeness of is shown). This is slightly surprising, since in many aspects behaves similarly to the two-variable fragment, , and the guarded version of the latter is ExpTime-complete [7].
We also consider an extension of GF called the tri-guarded fragment, TGF. In TGF quantification for subformulas with at most two free variables may be used freely, without guards. Hence, TGF unifies GF and the already-mentioned . We borrowed the term tri-guarded fragment from a recent work by Rudolph and Šimkus [15], but, actually, the idea behind TGF is not new and can be traced back already in Kazakov’s PhD thesis [11] where the fragment GF|, essentially identical with TGF, was defined. A similar logic, GF with binary cross product, GF, is also considered by Bourhis, Morak and Pieris [4]. Both GF| and GF do not allow constant symbols. We remark that in our initial scenario we also assume that constants are not present in signature; however, we will discuss their addition later.
Similarly to GF, is a seminal fragment of first-order logic, and its importance is justified, inter alia, by its close relationships to modal and description logics. Mortimer [14] demonstrated that it has the finite model property and Grädel, Kolaitis and Vardi [8] proved that its satisfiability problem is NExpTime-complete. Each of the logics GF, has some advantages and drawbacks with respect to the other. We mention here the fact that GF allows only to express properties of a local character, e.g., it cannot express , while does not allow for a non-trivial use of relations of arity greater than two. TGF offers a substantial improvement in these aspects. Moreover, in TGF we can embed the Gödel class, that is the class of all prenex formulas of the form . Indeed, any such formula has an equisatisfiable TGF formula obtained just by an addition of a dummy guard, as follows, , where is a fresh relation symbol of the appropriate arity. Such embedding implies, however, that the satisfiability problem for TGF with equality is undecidable, since the Gödel class with equality is undecidable, as proved by Goldfarb [6]. The undecidability of TGF with equality is also shown in [15] by a direct grid encoding. On the positive side, it turns out that the satisfiability problem for TGF without equality is decidable and 2-ExpTime-complete. It was proved in [11] by a resolution method, and follows also from the decidability of GF, shown in [4] by a use of the database-theoretic concept of chase.111A footnote in [4] suggests that the decidability of GF with binary cross-product is retained in the presence of equality. This has however been later later refuted by the authors (private communication). GF with binary cross product with equality is undecidable by the same arguments we gave for TGF.
In this paper we consider a natural combination of and TGF, the one-dimensional tri-guarded fragment, , which, on the one hand, allows us to use unguarded quantification for subformulas with at most two free variables, but, on the other hand, requires to obey the one-dimensionality restriction. We show that this variant is decidable even in the presence of equality. The complexity, however, depends on the presence/absence of equality: The satisfiability problem is 2-ExpTime-complete with equality and NExpTime-complete without it. The logic has the finite model property (we remark that whether full TGF has the finite model property is an open question), and, again, a bound on the size of minimal models is doubly- or singly exponential, depending on whether equality is allowed or not. may be seen as a decidable generalization of (with equality) to scenarios with relations of arity greater than two, alternative and orthogonal in the expressive power to the above-mentioned . We also remark that can express the concept of nominals from description logics, since the combination of equality and unguarded quantification for subformulas with two free variables allows us to say that some unary predicates hold for unique elements of a model. Thus we can embed in , e.g., the description logic plus inverse roles (), nominals (), role hierarchies (), and any Boolean combination of roles (including their negations).
We then briefly consider applications of the ideas of one-dimensionality and tri-guardedness to two decidable extensions of GF, namely, the loosely guarded fragment, LGF, introduced by van Benthem [17], and the guarded negation fragment, GNFO, proposed by Bárány, ten Cate and Segoufin [3]. Regarding one-dimensionality, it helps in the case of LGF: one-dimensional LGF has an exponential model property and NExpTime-complete satisfiability problem (exactly as ), but does not help in the case of GNFO, where the one-dimensional variant remains 2-ExpTime-hard. Regarding the tri-guardedness, the results are negative: both LGF and GNFO, even in their one-dimensional variants, become undecidable when unguarded quantification for subformulas with two free variables is allowed.
As remarked, all the results discussed above are obtained under the assumption that constants are not present in signatures. It turns out that all the decidability results are preserved in the presence of constants. However, interestingly, the computational complexity may change (we recall that for GF constants make no difference [7]). This is also the case for TGF with constants, without equality, which is shown in [15] to be 2-NExpTime-complete. Here we show that a 2-NExpTime-lower bound can be obtained even for with constants, without equality. We also observe that the presence of constants lifts the complexity of to 2-ExpTime.
In Table 1 we summarize the above-discussed complexity results for the variations of GF. We point out an interesting status of : it is NExpTime-complete without equality and constants, 2-ExpTime-complete with equality and without constants, and 2-NExpTime-complete with constants (with or without equality).
We finally remark that further pushing the concepts of one-dimensionality and tri-guardedness to, resp., two-dimensionality and tetra-guardedness does not lead to attractive results. Indeed, a 2-ExpTime lower bound for two-dimensional GF can be shown by a slight adaptation of the bound for full GF from [7]; allowing for unguarded quantification for subformulas with three free variables gives undecidability, as the resulting logic contains the undecidable three-variable fragment of FO (see, e.g., Kahr, Moore and Wang [10]). Undecidability of the three-variable fragment can be easily shown even using only one-dimensional formulas.
2 Preliminaries
We mostly work with purely relational signatures with no constants and function symbols (only in Section 6 we consider signatures with constants). For convenience we also assume that there are no relation symbols of arity [math]. We refer to structures using Fraktur capital letters, and to their domains using the corresponding Roman capitals. Given a structure and some we denote by or just by the restriction of to its subdomain .
We usually use to denote elements from domains of structures, , , for tuples of elements, , , for variables and , , for tuples of variables; all of these possibly with some decorations. For a tuple of variables we use to denote a formula (or subformula) , whose all free variables are in .
An atomic -type over a signature is a maximal consistent set of atomic or negated atomic formulas (including equalities/inequalities) over in variables . We often identify a type with the conjunction of its elements, . For an -type we denote by () the -type obtained by removing from all the literals that use some , with , and then replacing all occurrences of by . We will be particularly interested in -types and -types over signatures consisting of the relation symbols used in some given formula. Observe that the number of -types is bounded by a function which is exponential in , and hence also in the length of the formula. This is because a -type just corresponds to a subset of . On the other hand, the number of -types may be doubly exponentially large. Indeed, using an -ary predicate and two fixed variables one can build atoms which then can be used to form different -types.
Let be a structure, and let be such that . We denote by the unique atomic 1-type realized in by the element , i.e., the -type such that ; similarly by we denote the unique atomic 2-type realized in by pair , i.e., the -type such that . For we denote by \mbox{\large\boldmath\alpha}[B] the set of all -types realized in by elements of .
Below we define several fragments of first-order logic, FO, including two new fragments, and . Each of the fragments is defined as the least set of formulas (i) containing all atomic formulas (including equalities), (ii) closed under Boolean connectives, and (iii) satisfying appropriate (depending on the fragment) rules of using quantifiers, specified below (, represent here any tuples of variables and , represent any variables):
- •
Guarded fragment of first-order logic, GF:
- –
if GF then and belong to GF, where is an atomic formula containing all the free variables of , called a guard for .
- •
One-dimensional fragment of first-order logic, :
- –
if then and belong to .
- •
One-dimensional guarded fragment, :
- –
if then and belong to , where is a guard for .
- •
Tri-guarded fragment, TGF:
- –
if TGF then and belong to TGF, where is a guard for ,
- –
if is in TGF, then and belong to TGF.
- •
One-dimensional tri-guarded fragment, :
- –
if then and belong to , where is a guard for ,
- –
if is in , then and belong to .
Note that is just the intersection of GF and , TGF contains both GF and , and is the intersection of TGF and , containing full .
We recall that the satisfiability problem for is undecidable [9]. To regain decidability its uniform restriction, , was introduced in [9]. Roughly speaking, a boolean combination of atoms is allowed in if all of them use precisely the same set of variables; the exceptions are atoms with one free variable and equalities, which may be used freely. See [9] or [13] for a formal definition and more details on .
We will also be interested in the loosely guarded fragment, LGF, the guarded negation fragment, GNFO, and their one-dimensional and tri-guarded variations. They will be introduced in Section 5.
3 Finite model property
In this section we prove the finite model property for and obtain (essentially optimal) upper bounds on the size of minimal models of its satisfiable formulas, as well as of formulas of its interesting subfragments.
We introduce a Scott-type normal form for . Given a formula we say that it is in normal form if it has the following shape
[TABLE]
where are some sets of indices, the , , and represent arbitrary quantifier-free formulas, and for every , is a proper guard for . We remark that we do not require guards in formulas of the form , even if they contain more than two variables, as their presence there is inessential (cf. Remark in [7], p. 1725). In a rather standard fashion one can show the following lemma.
Lemma 3.1**.**
There is a polynomial nondeterministic procedure, taking as its input a formula and producing a normal form formula (over an extended signature), such that
- (i)
if for some structure then there is a run of the procedure producing a normal form such that for some expansion of , 2. (ii)
if the procedure has a run producing and , for some , then .
Moreover, if is without equality then the procedure produces without equality; if is in then the last conjunct is not present in .
Lemma 3.1 allows us, when dealing with decidability or complexity issues and when considering the size of minimal models of formulas in , to restrict attention to normal form sentences. The part of this lemma starting with ‘moreover’ will allow us to use it effectively for without equality and for .
Our normal form is similar to normal form for GF [7]. It adapts the latter to the one-dimensional setting and extends it by the last type of conjuncts. The conversion to normal form in [7] is deterministic, it however cannot be used directly in our case as it adds one free variable to every subformula, which spoils one-dimensionality and may lead to unguarded subformulas with three variables.
Let be a normal form formula and its model. Take and a conjunct of . Let be a tuple of elements of such that . Then is called a witness structure for and .
Theorem 3.2**.**
Every satisfiable formula in
- (i)
* (with equality) has a finite model of size bounded doubly exponentially in .* 2. (ii)
* without equality has a finite model of size bounded exponentially in .* 3. (iii)
* (with or without equality) has a finite model of size bounded exponentially in .*
We concentrate on showing (i) and then obtain (ii) and (iii) as a corollary from the finite model construction presented. Let be a normal form formula as in (1), and denote . Let us fix an arbitrary model of . We construct a bounded model . We mimic the scheme of the classical construction from [8] showing an exponential model property for , in particular we adapt the notions of kings and court. The details, however, are more complicated.
Court. We say that an element is a king if is realized in only by ; is then called royal. As in the case of kings are important as their duplication may be forbidden by formulas like . Let be the set of kings of . For each and each choose a witness structure for and in . Let . We call the court of . The court will be retained in . Note that the number of elements in is bounded exponentially in , and it that the structure can be described using exponentially many bits (the latter is true since the arity of all relation symbols is bounded by ). Note that , and thus also may be empty.
Pattern witness structures. For each non-royal element we say that the isomorphism type of the structure is the -type of . Note that from a -type of an element one can infer its -type, and that the number of the -types realized in is bounded doubly exponentially in . Denote by \mbox{\large\boldmath\alpha}^{\mathfrak{K}} the set of -types realized in by the elements of . Later, we will allow ourselves to use the notion of a -type in a natural way also for other structures with a distinguished substructure . For each \pi\in\mbox{\large\boldmath\alpha}^{{\mathfrak{K}}} choose an element having -type in and for each choose a witness structure for and . Let ). For each \pi\in\mbox{\large\boldmath\alpha}^{{\mathfrak{K}}}, and let be a fresh isomorphic copy of .
Universe. We define the universe of as follows , where ranges over \mbox{\large\boldmath\alpha}^{{\mathfrak{K}}}, over and over . We emphasise that the sets are disjoint from and from each other. We retain in the structure on from and for each we make isomorphic to . This, in particular, makes the -type in of each element belonging to some identical with the -type in of the counterpart of from the original substructure .
Witness structures for the court. Let us consider an element , and denote by its -type in . For every make isomorphic to . This provides a witness structure for and in . Note that a single such step (for fixed and ) consists in defining relations on tuples containing , at least one element of and possibly some elements of , since relations on other relevant tuples were defined in the desired way in step Universe. Note that no conflicts (attempts to set the same atom to both true and false) can arise, when we perform this step for some and and then for the same and some , because in the first case we define truth-values of relations only on tuples containing some element from , and in the second—only on tuples containing some element from , and is disjoint from . Finally, when we perform this step for some , and then for some no conflicts arise since in the first case we define relations only on tuples containing but not and in the second—only on tuples containing but not .
Witness structures for the other elements. Consider now any element . Assume it belongs to and that is the -type of in . For each make the structure on isomorphic to . This provides a witness structure for and in . Again, to do it we need to define relations on some tuples containing and some element of , and, due to our strategy, this can be done without conflicts.
Completing the structure. For any pair of distinct elements whose -type has not yet been defined in choose a pair of distinct elements with and , and set . An appropriate pair exists even if since at least one of has a non-royal type. For any tuple of elements of containing at least three distinct elements, and any relation symbol of arity , if the truth-value of in has not yet been defined then set it to false.
This finishes the definition of . Let us now estimate its size. We can bound the number and the arity of relation symbols by . Then the size of is bounded by the number of possible -types, . The size of is bounded by , as each element of may need at most witness structures each of them containing (besides ) at most elements. The number of possible relations of arity at most on a a set of elements is bounded by , thus the number of -types is bounded by (for ). Finally, we can bound the size of by , doubly exponentially in .
Presently, we explain that . First note that for each and each there is an appropriate witness structure: if then this witness structure is provided in which is a substructure of . If or then a proper witness structure is provided explicitly either in step Witness structure for the court or, resp., Witness structures for the other elements. Thus satisfies all conjuncts of of the form .
Consider any conjunct of and a tuple of elements such that . If or for some then the structure on was made an isomorphic copy of some substructure of in step Universe. Otherwise contains at least two distinct elements. In this case the structure on was made an isomorphic copy of some substructure of either in one of the steps Witness structures for the court, Witness structures for the other elements or in step Completing the structure (in this last subcase contains precisely two distinct elements). Thus . Finally, consider the conjunct and take any pair . Again, the structure on is an isomorphic copy of a substructure of defined (at the latests) in step Completing the structure.
This finishes the proof of (i). To see (ii) and (iii) we first observe that in both cases every satisfiable formula has a model without kings. Given a structure we define two new structures and , each of them with universe and the substructures on and isomorphic to . In we make these two copies of completely disjoint by setting the truth-value of to false for any and any tuple (of the appropriate length) contained neither in nor . In , for any tuple contained neither in nor and for any relation symbol of arity , if this tuple contains at least three distinct elements then we also define to be false. If contains just two distinct elements, say and , then for any relation symbol or arity set true iff where is the projection of the elements of on their first position.
Observations that if is without equality and then , and that if is in (even with equality) and then are routine. Of course our new models are without kings. Starting our small model construction from a model without kings we get and thus -types trivialize to -types, which means that their number is bounded singly exponentially. Also and thus we construct out of the where ranges over the set of -types, the number of possible is linear in and there are just three possible values of . The size of each is linear in . The size of the constructed models can be thus estimated by . Hence part (ii) and (iii) of Thm. 3.2 hold.
4 Complexity
In this section we establish the complexity of the considered logics.
Theorem 4.1**.**
The satisfiability problem (= finite satisfiability problem)
- (i)
for with equality is 2-ExpTime*-complete.* 2. (ii)
for without equality is NExpTime-complete. 3. (iii)
for is NExpTime-complete.
Upper bound in (i). We design an alternating satisfiability test for using only exponential space. A 2-ExpTime-upper bound follows then from the fact that AExpSpace2-ExpTime (Chandra, Kozen, Stockmeyer [5]). The procedure takes as its input a formula and works as described below. For simplicity our description is slightly informal. In particular, we do not precisely specify how structures constructed during its execution are represented. We also allow ourselves to write “guess an object such that ” instead of more accurate “guess an object ; verify if meets property ; if it does not then reject”.
Nondeterministically compute a normal form as in Lemma 3.1. Let . 2. 2.
Guess a set of -types \mbox{\large\boldmath\alpha}=\mbox{\large\boldmath\alpha}_{r}\;\dot{\cup}\;\mbox{\large\boldmath\alpha}_{nr} over the signature of (royal and non-royal types), such that for any , (possibly ) such that \alpha_{1}\in\mbox{\large\boldmath\alpha} and \alpha_{2}\in\mbox{\large\boldmath\alpha}_{nr} there is a -type such that and , and does not violate the universal conjuncts of . 3. 3.
Guess structures , of size at most and , resp., with being a substructure of , such that (i) \mbox{\large\boldmath\alpha}[K]=\mbox{\large\boldmath\alpha}_{r}, (ii) \mbox{\large\boldmath\alpha}[C\setminus K]\subseteq\mbox{\large\boldmath\alpha}_{nr}, (iii) each element of has all the required witness structures for conjuncts of in , and (iv) universal conjuncts of are not violated in . 4. 4.
Universally choose an element and a conjunct of of type . Set . 5. 5.
Set . 6. 6.
Guess an extension of , with universe , such that (i) {\rm tp}^{{{\mathfrak{D}}}}({a_{i}})\in\mbox{\large\boldmath\alpha}_{nr} for all , (ii) for some the structure is a witness structure for and , (iii) universal conjuncts of are not violated in . If then accept. 7. 7.
Universally choose a new value for from and a conjunct of of the form . Set . 8. 8.
9. 9.
If then goto 6 else accept.
Let us first note that exponential space is sufficient to perform the above algorithm. By Lemma 3.1 we have that is bounded polynomially in . The number of -types in is also bounded by , as a -type is determined by a subset of the signature. For some pairs of -types we need to guess a -type whose description is exponential (there are at most tuples of length not greater than consisting of a pair of elements, and at most relation symbols). The size of the structure guessed in Step 4 is explicitly required to be exponential in . Also its description requires only exponentially many bits (recall that the arity of all relations is bounded by ). Analogously we can bound the size of structures guessed in Step 6. Finally, the value of is bounded doubly exponentially, so it also can be written using exponentially many bits.
Now we argue that the procedure accepts its input iff is satisfiable. Assume first that the procedure accepts . We show that then (and thus, by Lemma 3.1, also ) has a model. Consider an accepting run of the procedure. We may assume w.l.o.g. that this run is uniform, that is, when entering step 6, in configurations differing only in the values of (but with isomorphic s) it makes the same (isomorphic) guesses of . Then the modification of this procedure in which Step 9 is replaced just by ’Goto 6’ can run infinitely (if necessary) without clashes. Indeed if the value is reached we have a guarantee that the -type of the current appeared before in the computation (cf. our estimations on the size of the small model constructed in the proof of Thm. 3.2, in particular on the number of -types). We can construct a model for starting from the substructure guessed in Step 4, and then providing witness structures for all conjuncts of the form of and elements in accordance with guesses of is Step 6 (we add fresh copies of elements and make the structure on the union of , and the set of the newly added elements isomorphic to ). We complete the (usually infinite) structure as in Step Completing the structure of the small model construction from the proof of Thm. 3.2 using the -types guaranteed in Step 1. As in that proof we can also show that the constructed structure is a model of .
Conversely, assume that has a model . Nondeterministically compute its normal form and let be an expansion of guaranteed by Lemma 3.1. Let be a model of constructed as in the proof of Thm. 3.2, starting from . W can now make all the guesses of our procedure in accordance with : denoting and the set of kings and a court of , resp., we set \mbox{\large\boldmath\alpha}_{r}:=\mbox{\large\boldmath\alpha}[K_{\mathfrak{B}}], \mbox{\large\boldmath\alpha}_{nr}:=\mbox{\large\boldmath\alpha}[B\setminus K_{\mathfrak{B}}], , . Then in the loop 6-9, when a structure containing a witness structure for and is going to be guessed we choose an element such that the -types of in and in are identical and find a witness structure for and in . We set to be isomorphic to the restriction of to the union of and this witness structure. This strategy naturally leads to acceptance.
Lower bound in (i). We encode computations of an alternating Turing machine working in exponential space on its input .
The general idea of the proof is not far from the ideas used in the proofs of the 2-ExpTime-lower bound for GF [7] and 2-NExpTime-lower bound for TGF with constants [15]. We must, however, be careful to avoid quantification leaving more than one variable free, which happens in both the above-mentioned proofs. E.g., in [7] configurations of a Turing machine are encoded by pairs of elements ; concretely, by the truth-values of some relations of arity on tuples consisting of . To enforce existence of successor configurations quantification leaving two free variables is needed there.
We assume that has states , where is the initial state, is the only accepting state, and is the only rejecting state. The alphabet of consists of letters where represents blank. Without loss of generality we assume that has precisely two possible moves in every configuration, that on its every computation path it enters the accepting or rejecting state no later than in -th step, and then, after reaching such final state, does not stop but works infinitely in a trivial way, without changing its configuration.
For we use a predicate , for we use a predicate and to describe the head position we use a predicate . Each of the , and is of arity .
We enforce the existence of two kings, called zero and one, marked, resp., by unary predicates and . They will also be called bits, serve as binary digits and will be used to encode the numbers of tape cells.
[TABLE]
The idea is that every element of a model encodes a configuration of in its relation to tuples of bits of size . Such a tuple of bits can be naturally read as a number in the range . Let us think that means that in the configuration encoded by , tape cell contains , denotes that this tape cell is scanned by the head and, for a cell observed by the head, means that is in state .
To be able to speak about properties of configurations of in we introduce a predicate of arity , which will be made true at least for all tuples consisting of an arbitrary element of a model followed by bits. We first say that, for any , holds for some tuple consisting of ones and zeros, and then propagate to all relevant tuples, using the fact that the pair of permutations and generates the whole permutation group . Below .
[TABLE]
[TABLE]
We use a convention that are tuples of variables of size , and analogously for and . We introduce abbreviations, and for quantifier-free formulas of size polynomial in . The former is intended to say that the numbers encoded by and differ, the latter—that the number encoded by is greater by one than the number encoded by . E.g., can be defined as
[TABLE]
Analogously, we use and for formulas saying that the number encoded by is, resp., equal to and greater or equal . Again, they can be defined in a standard way by quantifier-free, polynomially bounded formulas.
Now we ensure that every element properly encodes a configuration. The following formulas say that, resp., there is a tape cell scanned by the head, there is at most one such cell, this cell carries also information about the state, and every tape cell contains precisely a single letter. Below is an easily definable shorthand for ‘exactly one of the holds’.
[TABLE]
We then say that every element has two successors, and, using the trick with permutations prepare appropriate guards. Predicates are of arity . For we write:
[TABLE]
[TABLE]
We next describe the computations of on . First we say that the letter at a tape cell not scanned by the head does not change in the successor configurations. For :
[TABLE]
Consider now existential moves. Assume that in an existential state , reading a letter the machine has two possible transitions: and . Then we write:
[TABLE]
Similarly, assume that has moves as above in a universal state . We write:
[TABLE]
[TABLE]
We finally say that a model does not contain a configuration with the rejecting state and impose the existence of an element encoding the initial configuration.
[TABLE]
[TABLE]
Showing that accepts iff the constructed formula has a model is routine.
Upper bounds in (ii) and (iii). In both cases we have proved an exponential model property. Thus, to test satisfiability it suffices to guess an exponentially bounded structure and verify that it indeed is a model. More precisely, given a formula we nondeterministically convert it into normal form . We guess an exponentially bounded model of (again we remark that not only the universe of is bounded exponentially, but also the description of , since we are dealing only with at most relations of arity at most ), and verify that it is indeed a model. The last task can be carried out in an exhaustive way: for each and each conjunct of of the form guess which elements form a witness structure for and this conjunct and check that they indeed form a required witness structure; for each conjunct enumerate all tuples of elements of such that and check that . Proceed analogously with the conjunct .
Lower bounds in (ii) and (iii). It suffices to show NExpTime-lower bound for without equality. As advertised in the Introduction, we even strengthen this result using only uniform formulas, that is we show NExpTime-hardness of the uniform one-dimensional guarded fragment being the intersection of GF and . For our current purposes it is sufficient to say that conjunctions of sentences and with quantifier-free are uniform if all atoms of use either all variables of or just one of them. We use only formulas of such kind. For a general definition of see [9] or [13]. Our proof goes by an encoding of an exponential tiling problem and is given in the Appendix.
5 Variations on extensions of the guarded fragment
Let us see what happens when the ideas of one-dimensionality, tri-guardedness and their combination are applied to two extensions of the guarded fragment: the loosely guarded fragment, LGF, introduced by van Benthem [17], and the guarded negation fragment, GNFO, introduced by Bárány, ten Cate and Segoufin [3]. LGF is defined similarly to GF, but the notion of the guard is more liberal: in subformulas of the form and we do not require that is atomic but allow it to be a conjunction of atoms such that for every variable from and every variable from there is an atom in containing both of them. In GNFO (atomic) guards are required not for quantifiers but for negated subformulas. For a more detailed definition of GNFO see [3].
One-dimensionality. First, let us see that the one-dimensionality decreases the complexity of LGF, similarly as in the case of GF, but does not affect the complexity of GNFO.
Theorem 5.1**.**
- (i)
The satisfiability (= finite satisfiability) problem for the one-dimensional LGF, , is NExpTime-complete. has an exponential model property. 2. (ii)
The satisfiability (= finite satisfiability) problem for the one-dimensional GNFO is 2-ExpTime*-complete.*
To prove (i) we adjust the small model construction from the proof of Thm. 3.2, by using more copies of witness structures and refining the strategy of providing witnesses. The construction from the proof of Thm. 3.2 cannot be applied without any changes to the current scenario, as it may accidentally form some cliques of cardinality greater than in the Gaifmann graph of the constructed model which then could work as loose guards and lead to a violation of some universal conjuncts of the input formula. Details are given in the Appendix.
To see (ii) note that GNFO contains the unary negation fragment, UNFO, whose satisfiability problem is already 2-ExpTime-hard. UNFO is not one-dimensional but can be polynomially translated to its equivalent UN-normal form (ten Cate, Segoufin [16]), which is one-dimensional. The upper bound is inherited from the upper bound for full GNFO [3].
Tri-guardedness. Unfortunately, allowing for unguarded binary subformulas leads to undecidability already in the case of one-dimensional variants of LGF and GNFO.
Theorem 5.2**.**
The (finite) satisfiability problems for the one-dimensional LGF or GNFO, with unguarded subformulas with two variables, even without equality, are undecidable.
In the case of , unguarded binary subformulas give the power of full one-dimensional fragment . Indeed by adding a conjunct we would be able to guard any tuple of variables by the conjunction . (A similar observation is present also in [15].) As the satisfiability problem for is undecidable [9] this gives the undecidability of the considered variation of LGF. For the one-dimensional GNFO, using unguarded negations of binary atoms one can express transitivity of binary relations: . One-dimensional GNFO contains the two-variable guarded fragment which becomes undecidable when extended by transitive relations (Kieroński [12], Kazakov [11]). Thus the claim follows.
6 Adding constants
Finally, we study the satisfiability problem for and with constants. It turns out that in the presence of constants we lose neither the decidability nor the finite model property, however, the complexity increases. The following theorem completes Table 1.
Theorem 6.1**.**
- (i)
Every satisfiable formula in with constants has a finite model of size bounded doubly exponentially in its length. 2. (ii)
The satisfiability (= finite satisfiability) problem for with constants (with or without equality) is 2-ExpTime*-complete.* 3. (iii)
The satisfiability (= finite satisfiability) problem for with constants (with or without equality) is 2-NExpTime*-complete.*
It is not difficult to see that Lemma 3.1 holds for formulas with constants. Thus, to show (i) we can use a minor adaptation of our small model construction from the proof of Thm. 3.2. Indeed, interpretations of constants may be treated as kings. The number of -types remains doubly exponential. The construction works then essentially without changes, we only remark that in step Completing the structure, when a -type for a pair of elements is chosen, we need to define the truth-values of all relations on tuples built out of these elements and constants. This way we get a doubly exponential bound on the size of models.
The upper bound in (ii) follows from the fact that full GF with constants is in 2-ExpTime [7].
The upper bound in (iii) follows from the fact that full TGF with constants is in 2-NExpTime [15]. We remark, however, that this upper bound for TGF is obtained without proving the finite model property, thus to justify the upper bound for finite satisfiability of we must refer to part (i) of Thm. 6.1.
The corresponding lower bounds in (ii) and (iii) are proved in the Appendix.
Acknowledgements. The author would like to thank Sebastian Rudolph and the anonymous reviewers for their helpful comments.
Appendix A Normal form (Lemma 3.1)
We sketch a proof of Lemma 3.1.
Proof A.1**.**
Take a formula . W.l.o.g. assume that all its quantifiers are existential. We begin with an innermost subformula of starting with a block of quantifiers. If contains a free variable and a quantifier guard, i.e., it is of the form , for some guard , then we replace it by and add two normal form conjuncts and axiomatising . If has a free variable but not a quantifier guard, i.e., it is of the form we similarly replace it by and add normal form conjuncts and . If is a subsentence, i.e., it is of the form then we nondeterministically guess its truth value, replace it by or according to this guess and add or, resp., as a conjunct of our new formula. Moving up the original formula we repeat this procedure for subformulas that are now innermost, and so forth. The formula obtained in this process has, up to trivial logical transformations, the desired shape.
Appendix B NExpTime-lower bound for (uniform) GF1 (Thm. 4.1)
We proceed by a reduction from a variant of the tiling problem. Let denote the standard grid on a finite torus: , , . A tiling system is a quadruple , where is a non-empty, finite set of colours, is an element of , and , are binary relations on called the horizontal and vertical constraints, respectively. A tiling for of a grid is a function such that and, for all , the pair is in and the pair is in . The exponential tiling problem is defined as follows. Given a number written in unary, and a tiling system , verify if has a tiling of the grid , where . It is well known that the exponential tiling problem is NExpTime-complete.
Given and a titling system we now construct a formula satisfiable iff there is a tiling for of the grid for . As in the proof of the lower bound in Thm. 4.1 (i), we mark two elements with predicates and . This time, however, we cannot make them kings (formulas enforcing kings use both equality and unguarded subformulas with two variables). As we will see this will not be harmful. Let be a predicate of arity . We say that two different elements exist, one in and one in . We call them, resp., and . We enforce that holds for any tuple built out of zeros and ones. We use the trick we already know: we first say that, for any , holds for some tuple consisting of ones and zeros, and then propagate to all relevant tuples. Below denotes the tuple of variables .
[TABLE]
[TABLE]
For every colour we introduce a predicate of arity . A tuple of s and s of length can be naturally interpreted as a number from the range . When , , , are such tuples we want to interpret the fact that for some , holds as that the tile of colour is placed at coordinates , . To this end we say that for every tuple of length precisely one of holds, and then we dummify the second half of variables using the trick with permutations. Below represents the tuple .
[TABLE]
[TABLE]
Now we can easily encode horizontal and vertical constraints on tiles. Below we present an encoding of horizontal constraints. Vertical constraints can be encoded analogously.
[TABLE]
Recall that is a quantifier-free, formula saying that encodes the number greater by (we assume that counts modulo ) than the one encoded by .
This finishes the reduction. Observing that the conjunction of (19)–(23) (plus a formula for vertical constraints) is satisfiable iff tiles is, again, routine.
As remarked we used only uniform formulas, so we have the following corollary.
Corollary B.1**.**
The satisfiability problem for uniform one-dimensional guarded fragment is NExpTime-complete.
Appendix C NExpTime-upper bound for LGF1 (Thm. 5.1)
For we can again use a Scott-like normal form, which now looks as follows:
[TABLE]
where the are loose guards, in this case being conjunctions of atoms such that every pair of variables from coincides in at least one atom. A natural counterpart of Lemma 3.1, with a similar proof, holds for . Thus in the sequel we can restrict attention to normal form formulas of the shape as in (24).
To prove (i) we adjust the small model construction from the proof of Thm. 3.2. We assume that (this can be done w.l.o.g. since, as for GF, if then , for any LGF formula ). Thus, there are no kings, -types in become just -types and there are exponentially many of them.
The construction from the proof of Thm. 3.2 cannot be applied without any changes to the current scenario, as it may accidentally form some cliques of cardinality greater than in the Gaifmann graph of the constructed model which then could work as loose guards and lead to a violation of some universal conjuncts of (24). There are three sources from which such cliques may arise.
First potential such source is the step Completing the structure which in the proof of Thm. 3.2 allows us to define the -types not specified in the previous steps as any -types from the original model which agree with the -types of the given elements. In particular these -types can contain some binary atoms. The potential danger here can be easily avoided by removing from the -types which are going to be used in this step any non-unary atoms (which is a standard strategy in constructions of models for guarded formulas; such a stragety was not used in the proof of Thm. 3.2 since in that proof we needed to cover the case of tri-guarded formulas).
Two other kinds of dangerous cliques could appear in our original construction for . Cliques of the first kind are those created by three elements belonging to three different subsets with three different values of . Consider, e.g., a normal form formula and its model consisting of four elements joined by in a cyclic fashion. Starting from , the construction from the proof of Thm. 3.2 would construct a structure with three elements forming eventually a triangle forbidden by the universal conjunct.
Cliques of the second kind could appear when two (or more) elements connected by some binary relation, say , having the same type and belonging to the same look for their witnesses for the -th conjunct , since in such case the original strategy requires them to use the same , and, e.g., they both could connect by to the same element forming a triangle, which may again be forbidden by some universal conjunct.
To avoid forming such problematic cliques we need to use more copies of each witness structure this time. For clarity let us describe the whole construction in details. Let be a normal form formula as in (24) and its model without kings.
Pattern witness structures. For each -type (=-type) realized in choose an element of -type and for each choose a witness structure for and . Let ). Let be the maximum size of across all the and .
Universe. We define the universe of as follows , where ranges over all -types realized in , over , over , and over . The sets are disjoint from each other. For all , , , we make isomorphic to . Note that in comparison to the case of we have four possible values for the index instead of three and an additional index .
Providing witnesses. Let us number the elements in each from up to, at most, . Consider now any element . Assume it belongs to , is numbered , and has -type . For each make the structure on isomorphic to . This provides a witness structure for and in . Note that there are no conflicts with the previously defined substructure on .
Completing the structure. For any tuple of elements of containing at least two distinct elements, and any relation symbol of arity , if the truth-value of in has not yet been defined then set it to false. Note that this step differs from the corresponding step in the proof of Thm. 3.2, as announced.
This finishes the definition of . We remark that using four values for instead of three guarantees that dangerous cliques of the first kind will not appear. On the other hand, introducing the extra index for witness structures, and the described strategy of providing wintesses guarantee that cliques of the second kind are avoided.
Actually, it is readily verified that the only cliques that can appear in the Gaifmann graph of are those consisting of elements from the same witness structure for some element. As the structure on them is copied from the original structure it follows that they cannot lead to a violation of the universal conjuncts of . As we explicitly take care of providing witness structures for all elements we get that is the desired exponential model of .
NExpTime-upper complexity bound then easily follows: we can just guess an exponentially bounded structure and verify that it is indeed a model of , similarly as described in the case of in the proof of Thm. 4.1 (iii).
Appendix D Complexity in the presence of constants (Thm. 6.1)
In this section we prove Thm. 6.1.
It is not difficult to see that Lemma 3.1 holds for formulas with constants.
Thus, to show (i) we can use a minor adaptation of our small model construction from the proof of Thm. 3.2. Indeed, interpretations of constants may be treated as kings. The number of -types remains doubly exponential. The construction works then essentially without changes, we only remark that in step Completing the structure, when a -type for a pair of elements is chosen, we need to define the truth-values of all relations on tuples built out of these elements and constants. This way we get a doubly exponential bound on the size of models.
The upper bound in (ii) follows from the fact that full GF with constants is in 2-ExpTime [7].
For the upper bound in (iii) we design a simple algorithm which just converts a given formula into its normal form, guesses its doubly exponentially bounded model guaranteed by part (i) of this lemma and verifies it. Alternatively, the upper bound for the general satisfiability problem follows from the fact that full TGF with constants is in 2-NExpTime [15]. We remark, however, that this upper bound for TGF is obtained without proving the finite model property, thus it does not give automatically the upper bound for finite satisfiability of with constants.
The rest of this section is devoted for lower bounds.
D.1 2-ExpTime-lower bound for GF1 with constants
Our 2-ExpTime-lower bound proof for with equality can be easily adapted to the case of with constants and without equality.
In the former, equality is needed only to enforce the existence of two kings (called bits). Here their role will be played by two constants.
Moreover, a simple inspection of the formulas we used shows that the formulas enforcing kings are the only formulas in which quantification in some subformulas with two variables is not guarded.
Thus, in the current scenario, we can use the proof for with only some minor changes: define bits using constants, replace existentially quantified variables of (4) and (11) by constants, and remove formula (7). This formula is not necessary, since the existence of a tape cell scanned by the head in every configuration will be enforced by requiring this explicitly in the initial configuration and then appropriately defining moves of the head as in formulas (14)–(16).
For the reader’s convenience we reproduce all the formulas with all the required modifications below.
Formulas (2)–(3) are replaced by:
[TABLE]
Formula (4) is replaced by:
[TABLE]
Formula (5) is retained:
[TABLE]
Formula (7) is completely removed. Formulas (8)–(10) are retained:
[TABLE]
Formula (11) is replaced by:
[TABLE]
Formula (12) is retained;
[TABLE]
Formulas (13)–(18) are retained:
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
[TABLE]
D.2 2-NExpTime-lower bound for TGF1 with constants
Our aim is now to define a doubly exponential toroidal grid, which can then serve to encode a doubly exponential tiling problem defined similarly as in Appendix B. This time, given a number written in unary, and a tiling system , the problem is to verify if has a tiling of the grid , where . It is well known that the doubly exponential tiling problem is -complete.
As in the previous proof we use two constants and , whose interpretations will be, as usually, called bits, or just zero and one. For unary predicates and we say:
[TABLE]
We introduce a predicate of arity , which will be made true for all tuples consisting of two arbitrary elements of a model followed by bits. Once more we use the trick similar to the one used to create the relation in the proof of Thm. 4.1 (i). We first say that, for any , holds for some tuple consisting of ones and zeros and then propagate to all relevant tuples.
[TABLE]
[TABLE]
The predicate can be used as a guard for any formula using two variables intended to be interpreted as two arbitrary elements and up to variables intended to be interpreted as bits. This turns out to be sufficient for our purposes.
It is probably worth commenting that this kind of a ‘universal guard’ cannot be enforced with in with equality (and thus with the ability of enforcing kings) but without constants. The reason is that kings would need to be quantified in (40) which would lead to a two-dimensional formula.
All the forthcoming formulas can be guarded by , , or , if necessary. For brevity, we omit such guards in our exposition.
We endow each element with a pair of coordinates in the range , treating tuples of length consisting of bits as indices of binary digits. We use predicate of arity to encode the horizontal coordinate of element . For a sequence of constants of length we interpret the value of as the value of the -th bit of the horizontal coordinate.
Recall our abbreviation. We use it to prepare ourselves for defining addition of to horizontal and vertical coordinates (addition in the range ). To this end we divide positions of coordinates into (the least significant [math]), (positions to the right from the ) and (positions to the left from the ).
[TABLE]
We proceed analogously for vertical coordinates, using predicates , , , and .
We enforce the existence of the origo, and a horizontal and a vertical neighbour of each element.
[TABLE]
We now take care of the coordinates of the neighbouring elements. We say that the horizontal coordinates of elements connected by differs by one.
[TABLE]
We proceed analogously with vertical coordinates of elements connected by .
We next connect any pair of elements with the same vertical and horizontal coordinates by binary predicate . To this end we introduce an auxiliary predicate .
[TABLE]
[TABLE]
Analogously we introduce , and write the advertised formula defining equality of the coordinates.
[TABLE]
Having such formulas we can now easily encode an instance of the doubly exponential tiling problem. In particular, the predicate may be used to say that two elements having the same horizontal and vertical coordinates are tiled identically. We omit the routine details.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] H. Andréka, J. van Benthem, and I. Németi. Modal languages and bounded fragments of predicate logic. Journal of Philosophical Logic , 27:217–274, 1998.
- 2[2] V. Bárány, G. Gottlob, and M. Otto. Querying the guarded fragment. Logical Methods in Computer Science , 10(2), 2014.
- 3[3] V. Bárány, B. ten Cate, and L. Segoufin. Guarded negation. J. ACM , 62(3):22, 2015.
- 4[4] P. Bourhis, M. Morak, and A. Pieris. Making cross products and guarded ontology languages compatible. In International Joint Conference on Artificial Intelligence, IJCAI 2017 , pages 880–886, 2017.
- 5[5] A. K. Chandra, D. Kozen, and L. J. Stockmeyer. Alternation. J. ACM , 28(1):114–133, 1981.
- 6[6] W. D. Goldfarb. The unsolvability of the G ödel class with identity. J. Symb. Logic , 49:1237–1252, 1984.
- 7[7] E. Grädel. On the restraining power of guards. J. Symb. Log. , 64(4):1719–1742, 1999.
- 8[8] E. Grädel, P. Kolaitis, and M. Y. Vardi. On the decision problem for two-variable first-order logic. Bulletin of Symbolic Logic , 3(1):53–69, 1997.
