scispace - formally typeset
Open AccessJournal ArticleDOI

The Complexity of Regularity in Grammar Logics and Related Modal Logics

Stéphane Demri
- 01 Dec 2001 - 
- Vol. 11, Iss: 6, pp 933-960
TLDR
The proof of the exponential-time upper bound is extended to PDL-like extensions of K m and to global logical consequence and global satisfiability problems and the last part of the paper presents non-trivial classes of exponential time complete regular grammar logics.

Content maybe subject to copyright    Report

HAL Id: hal-03189648
https://hal.archives-ouvertes.fr/hal-03189648
Submitted on 4 Apr 2021
HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entic research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.
L’archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diusion de documents
scientiques de niveau recherche, publiés ou non,
émanant des établissements d’enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.
The Complexity of Regularity in Grammar Logics and
Related Modal Logics
Stéphane Demri
To cite this version:
Stéphane Demri. The Complexity of Regularity in Grammar Logics and Related Modal Logics. Jour-
nal of Logic and Computation, Oxford University Press (OUP), 2001, 11 (6), pp.933-960. �10.1093/log-
com/11.6.933�. �hal-03189648�

The Complexity of Regularity in
Grammar Logics
(long version)
St´ephane Demri
Lab. Sp´ecification et erification
ENS de Cachan & CNRS UMR 8643
61 Av. Pdt. Wilson
94235 Cachan Cedex, France
email: demri@lsv.ens-cachan.fr
Abstract
A modal reduction principle of the form [i
1
] . . . [i
n
]p [j
1
] . . . [j
n
0
]p can be
viewed as a production rule i
1
· . . . · i
n
j
1
· . . . · j
n
0
in a formal grammar.
We study the extensions of the multimodal logic K
m
with m independent K
modal connectives by finite addition of axiom schemes of the above form such
that the associated finite set of production rules forms a regular grammar. We
show that given a regular grammar G and a modal formula φ, deciding whether
the formula is satisfiable in the extension of K
m
with axiom schemes from G
can be done in deterministic exponential-time in the size of G and φ, and this
problem is complete for this complexity class. Such an extension of K
m
is called
a regular grammar logic. The proof of the exponential-time upper bound is
extended to PDL-like extensions of K
m
and to global logical consequence and
global satisfiability problems. Using an equational characterization of context-
free languages, we show that by replacing the regular grammars by linear ones,
the above problem becomes undecidable. The last part of the paper presents
non-trivial classes of exponential time complete regular grammar logics.
This is a long version of a paper to appear in Journal of Logic
and Computation.
Keywords: computational complexity, modal logic, formal gram-
mar, regular language, finite automaton.
On leave from Laboratoire LEIBNIZ, Grenoble, France.
1

1 Introduction
Capturing the decidability/complexity status of modal logics.
A nowadays popular approach to establish the decidability of modal log-
ics consists in studying the decidability status of fragments of first-order
logic [Var97, ANB98] (see also [Gab81]). Sometime, these fragments are
augmented by features that are not present in the standard first-order
language allowing more expressive power, often at the cost of losing de-
cidability (see e.g. [GOR97]). By contrast, the guarded fixed point logic
µLGF [GW99] is a decidable fragment of fixed-point first-order logic in
which can be naturally embedded the modal µ-calculus (see e.g. [Koz83]).
Once an interesting decidable fragment is identified, the design of deci-
sion procedures that meet the best worst-case complexity upper bounds
is often the next step (see e.g. [Sch97, Niv98, Hus99]). However, even if
your favorite modal logic can be embedded in a known decidable frag-
ment of second-order logic, the characterization of the worst-case com-
plexity of your logic is not straightforward from the complexity of the
second-order fragment. For instance, the standard modal logic K can
be embedded into FO2, the fragment of classical predicate logic with
only two individual variables and without function symbols but FO2-
satisfiability is NEXPTIME-complete whereas K-satisfiability is “only”
PSPACE-complete [Lad77] (see e.g. [Pap94] for a thorough introduction
to computational complexity). Therefore, there is a need to develop gen-
eral metho ds dedicated to the computational complexity of modal logics.
Spaan’s thesis [Spa93] can be considered as an important step towards
this direction. Indeed, the worst-case complexity of independent fusion
of modal logics is studied there (see also [Hem94]). The study of the com-
plexity of PDL-like logics (e.g. the modal µ-calculus, Combinatory PDL)
can be understood as the modal counterpart for the study of decidable
fragments of second-order logic. Indeed, many modal logics can be natu-
rally embedded into PDL-like logics (see e.g. [Tuo90, Sch91, Gia95]) and
therefore the design of efficient decision procedures for PDL-like logics is
another way to study the complexity of modal logics in a uniform frame-
work. Typically, there is some natural transformation from satisfiability
for the standard modal logics B, S4, S5 into PDL with converse (see e.g.
[FL79]). However, such translations have not been studied in a system-
atic way. In the present paper, the main object of study is a countably
infinite class of polymodal logics such that the satisfiability problem can
be embedded in linear-time to first-order logic. Unfortunately, the target
2

fragment is not known to belong to identified decidable fragments and
therefore decidability and complexity shall be established by modal-like
techniques partly based on formal language theory.
Grammar logics. An important idea in logic programming is to trans-
late the special purpose formalism of formal (context-free) grammars into
a general purpose one, namely first-order predicate logics. In [FdCP88],
a similar approach is suggested where the analysis or generation of a
sentence is transformed to theorem proving for modal logics. The modal
logics (called “grammar logics”) introduced in [FdCP88] are closely re-
lated to formal grammars. Namely, with each production rule i
1
·. . .·i
n
j
1
· . . . · j
n
0
in the grammar is associated a modal axiom [i
1
] . . . [i
n
]p
[j
1
] . . . [j
n
0
]p. Such axioms are called reduction principles in [Ben76, CS94]
and they are a special type of Sahlqvist formulae [Sah75] and primitive
formulae [Kra96]. They are typical in modal logic. In this paper, we
study the extensions of the multimodal logic K
m
with m independent K
modal connectives by finite addition of axiom schemes of the above form
such that the associated finite set of production rules forms a regular
formal grammar.
Having in mind the initial motivation to introduce the grammar logics
in [FdCP88], it is worth observing that the regular grammar logics are
too express ive to encode the generation of strings by regular grammars.
Indeed, whether a string b elongs to a context-free language (defined by a
context-free grammar) is a P-complete problem (see e.g. [JL76, Corollary
11]) whereas the satisfiability problem of any regular grammar logic shall
be shown to be PSPACE-hard. In a sense, introducing regular gram-
mar logics to analyze regular languages is not very efficient. However,
we claim that it is more interesting to take advantage of the wealth of
knowledge about regular languages in order to analyze the computational
complexity of regular grammar logics.
Related modal logics. Although the grammar logics may seem ar-
tificial, many polymodal logics containing fragments that are regular
grammar logics can be found in the literature (see e.g. [FL79, Cat89,
HM92, G as94, FdCH95, Hem96, HM97] to quote a few examples). More
importantly, Description Logics (DLs) that are used to represent termi-
nological knowledge (see e.g. [SSS91]) are strongly related to grammar
logics. A current line of research in DLs community consists in studying
more and more expressive description logics as soon as they are mean-
3

ingful for knowledge representation languages (see e.g. [Wol99, HST00]).
Typically, in order to obtain expressive roles, one can either add role
constructors or constraint the interpretation of roles. Inverse roles, tran-
sitive roles, role value inclusions and role hierarchies are features of DLs
that allow a gain of expressive power for roles (see e.g. [HS99, HM00,
HST00, Are00]). The grammatical constraints on relations considered in
the present paper can be viewed as role inclusion axioms for roles built
from atomic roles and finite composition.
That is why understanding the complexity of grammar logics can help
understanding the complexity of other related modal logics, including
DLs.
Our contribution. We show that every regular grammar logic is de-
cidable. Up to now, it is only known that every right linear grammar
logic is decidable [Bal98, BGM98] and this solves an open problem men-
tioned in [Bal98, BGM98]. It is worth observing that although the right
linear grammars generate the same class of languages as the left lin-
ear grammars, this correspondence is not relevant at the level of regular
grammar logics. It is fair to mention that the initial motivation for this
work was to understand why the decidability proof in [Bal98, BGM98]
cannot be naturally extended to left linear grammars. Our decidability
proof consists in defining transformations into the satisfiability problem
for PDL. This allows us to prove that the satisfiability problem f or any
regular grammar logic is in EXPTIME and this result can be extended
to PDL-like logics, to description logics with inclusion axioms (some re-
strictions are made here), to the global logical consequence problem and
to the global satisfiability problem. Up to now, it is only known that
the satisfiability problem for any right linear grammar logics is in NEX-
PTIME [Bal98, BGM98]. Unfortunately, our transformation is not in
polynomial-time in the size of the regular grammars. We then show that
given a regular grammar G and a modal formula φ, deciding whether the
formula is satisfiable in the extension of K
m
with axiom schemes from
G can be done in deterministic exponential-time in the size of G and φ.
We refer to this problem as the general satisfiability problem for regular
grammar logics. The complexity upper bound is established by defin-
ing a polynomial time transformations into the satisfiability problem for
PDL with finite automata. PDL with automata is a succinct variant
of PDL where the regular expressions are replaced by finite automata.
Up to now, it is only known that the general satisfiability problem re-
4

Citations
More filters
Journal ArticleDOI

Decidability of SHIQ with complex role inclusion axioms

TL;DR: A tableau algorithm is presented for this DL extended with role inclusion axioms (RIAs) of the form Ro S ⊆ P and its implementation is reported on, which behaves well in practise and provides important additional functionality in a medical terminology application.
Proceedings Article

RIQ and SROIQ are harder than SHOIQ

TL;DR: The computational complexity of (finite model) reasoning in the sublanguages of the description logic SROIQ—the logic currently proposed as the basis for the next version of the web ontology language OWL—is identified and it is proved that the classical reasoning problems are N2ExpTime-complete for SRO IQ and 2Exp time-hard for its sublanguage RIQ.
Journal Article

SRIQ and SROIQ are Harder than SHOIQ.

Yevgeny Kazakov
- 01 Jan 2008 - 
TL;DR: It is proved that reasoning in SRIQ and SROIQ is exponentially harder than in SHOIQ, and the tableau-based procedures for the respective DLs are presented and prove their soundness, completeness and termination.
Book ChapterDOI

Towards Efficient Satisfiability Checking for Boolean Algebra with Presburger Arithmetic

TL;DR: This paper presents an algorithm for checking satisfiability of QFBAPA formulas by reducing them to formulas of quantifier-free PA, with only O(n log(n) increase in formula size, and proves the correctness of the algorithm using a theorem about sparse solutions of integer linear programming problems.
Journal ArticleDOI

Deciding Regular Grammar Logics with Converse Through First-Order Logic

TL;DR: In this paper, a simple translation of the satisfiability problem for regular grammar logics with converse into GF2, which is the intersection of the guarded fragment and the 2-variable fragment of first-order logic, was given.
Frequently Asked Questions (14)
Q1. What contributions have the authors mentioned in the paper "The complexity of regularity in grammar logics and related modal logics" ?

The authors study the extensions of the multimodal logic Km with m independent K modal connectives by finite addition of axiom schemes of the above form such that the associated finite set of production rules forms a regular grammar. The authors show that given a regular grammar G and a modal formula φ, deciding whether the formula is satisfiable in the extension of Km with axiom schemes from G can be done in deterministic exponential-time in the size of G and φ, and this problem is complete for this complexity class. Using an equational characterization of contextfree languages, the authors show that by replacing the regular grammars by linear ones, the above problem becomes undecidable. The last part of the paper presents non-trivial classes of exponential time complete regular grammar logics. This is a long version of a paper to appear in Journal of Logic and Computation. 

Parametrized complexity is a powerful framework to study the complexity of problems where in the inputs, parameters can be distinguished ( see e. g. [ DF99 ] ). The remarks and suggestions of the anonymous referees on a previous version of this work were extremely valuable and helpful to improve the quality of this paper. 

Inverse roles, transitive roles, role value inclusions and role hierarchies are features of DLs that allow a gain of expressive power for roles (see e.g. [HS99, HM00, HST00, Are00]). 

The complexity upper bound is established by defining a polynomial time transformations into the satisfiability problem for PDL with finite automata. 

The grammatical constraints on relations considered in the present paper can be viewed as role inclusion axioms for roles built from atomic roles and finite composition. 

The study of the complexity of PDL-like logics (e.g. the modal µ-calculus, Combinatory PDL) can be understood as the modal counterpart for the study of decidable fragments of second-order logic. 

The authors already know that the satisfiability problem of every regular grammar logic can be translated into satisfiability for the guarded fixed point logic µLGF that is in EXPTIME [Grä99b] when the relation symbols have bounded arity. 

The restriction of the map f to regular expressions simply takes advantage of the fact that any regular expression e over N ∪ Σ without occurrence of ∅ can be easily viewed as a syntactic variant of the program expression f(e). 

A nowadays popular approach to establish the decidability of modal logics consists in studying the decidability status of fragments of first-order logic [Var97, ANB98] (see also [Gab81]). 

REG-GSP(PDL(0)) can be transformed in polynomial time to APDLsatisfiability which provides the required EXPTIME upper bound for REG-GSP(PDL(0)). 

GSP(REG) captures a form of recursion weaker than PDL(0)+id but as will be shown later, this restriction preserves the deterministic exponential-time complexity lower bound. 

the authors prove here that the general satisfiability problem for linear grammar logics is undecidable and the core of their proof uses a method based on properties of formal languages only. 

When TG is defined as in Example 48, checking whether a grammar satisfies the assumptions of any new theorem in Theorem 49(I) can be done in at most exponential time in |G|. 

uniformly, one can design a finite axiomatization for LGCm and by using standard arguments from [Har58] (see also [BRV01, Chapter 6]), the undecidability of GSP(C) entails the existence of such GC and φC. Undecidable problems of the form GSP(C) can be found in Section 6.2 and Section 6.3.