QUERIES WITH ARITHMETICAL CONSTRAINTS

Authors
Citation
S. Grumbach et Jw. Su, QUERIES WITH ARITHMETICAL CONSTRAINTS, Theoretical computer science, 173(1), 1997, pp. 151-181
Citations number
51
Categorie Soggetti
Computer Sciences","Computer Science Theory & Methods
ISSN journal
03043975
Volume
173
Issue
1
Year of publication
1997
Pages
151 - 181
Database
ISI
SICI code
0304-3975(1997)173:1<151:QWAC>2.0.ZU;2-A
Abstract
In this paper, we study the expressive power and the complexity of fir st-order logic with arithmetic, as a query language over relational an d constraint databases. We consider constraints over various domains ( N,Z,Q, and R), and with various arithmetical operations (less than or equal to, +, x, etc.). We first consider the data complexity of first- order queries. We prove in particular that linear queries can be evalu ated in AC(0) over finite integer databases, and in NC1 over linear co nstraint databases. This improves previously known bounds. We also sho w that over all domains, enough arithmetic lead to arithmetical querie s, therefore, showing the frontiers of constraints for database purpos es. We then tackle the problem of the expressive power, with the defin ability of the parity and the connectivity, which are the most classic al examples of queries not expressible in first-order logic over finit e structures. We prove that these two queries are first-order definabl e in the presence of (enough) arithmetic. Nevertheless, we show that t hey are not definable with constraints of interest for constraint data bases such as linear constraints for instance. Finally, we developed r eduction techniques for queries over constraint databases, that allow us to draw conclusions with respect to their undefinability in various constraint query languages.