First-order definable counting-only queries

被引:0
|
作者
Hellings, Jelle [1 ,2 ]
Gyssens, Marc [2 ]
Van Gucht, Dirk [3 ]
Wu, Yuqing [4 ]
机构
[1] Univ Calif Davis, Dept Comp Sci, Exploratory Syst Lab, Davis, CA 95616 USA
[2] Hasselt Univ, Fac Sci, Martelarenlaan 42, B-3500 Hasselt, Belgium
[3] Indiana Univ, Sch Informat Comp & Engn, 919 E 10th St, Bloomington, IN 47408 USA
[4] Pomona Coll, 185 E 6th St, Claremont, CA 91711 USA
基金
美国国家科学基金会;
关键词
Bag of sets; Counting-only query; First-order definable query; Satisfiability; LOGICS;
D O I
10.1007/s10472-019-09652-8
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Many data sources can be represented easily by collections of sets of objects. For several practical queries on such collections of sets of objects, the answer does not depend on the precise composition of these sets, but only on the number of sets to which each object belongs. This is the case k= 1 for the more general situation where the query answer only depends on the number of sets to which each collection of at most k objects belongs. We call such queries k-counting-only. Here, we focus on k-SyCALC, i.e., k-counting-only queries that are first-order definable. As k-SyCALC is semantically defined, however, it is not surprising that it is already undecidable whether a first-order query is in 1-SyCALC. Therefore, we introduce SimpleCALC-k, a syntactically defined (strict) fragment of k-SyCALC. It turns out that many practical queries in k-SyCALC can already be expressed in SimpleCALC- k. We also define the query language GCount- k, which expresses counting-only queries directly by using generalized counting terms, and show that this language is equivalent to SimpleCALC-k. We prove that the k-counting-only queries form a non-collapsing hierarchy: for every k, there exist (k+ 1)-counting-only queries that are not k-counting-only. This result specializes to both SimpleCALC- k and k-SyCALC. Finally, we establish a strong dichotomy between 1-SyCALC and SimpleCALC- k on the one hand and 2-SyCALC on the other hand by showing that satisfiability, validity, query containment, and query equivalence are decidable for the former two languages, but not for the latter one.
引用
收藏
页码:109 / 136
页数:28
相关论文
共 50 条
  • [31] First-order queries on finite structures over the reals
    Paredaens, J
    Van den Bussche, J
    Van Gucht, D
    SIAM JOURNAL ON COMPUTING, 1998, 27 (06) : 1747 - 1763
  • [32] First-order queries over one unary function
    Durand, A.
    Olive, F.
    COMPUTER SCIENCE LOGIC, PROCEEDINGS, 2006, 4207 : 334 - 348
  • [33] Groups, group actions and fields definable in first-order topological structures
    Wencel, Roman
    MATHEMATICAL LOGIC QUARTERLY, 2012, 58 (06) : 449 - 467
  • [34] Alternating complexity of counting first-order logic for the subword order
    Dietrich Kuske
    Christian Schwarz
    Acta Informatica, 2023, 60 : 79 - 100
  • [35] Learning first-order definable concepts over structures of small degree
    Grohe, Martin
    Ritzert, Martin
    2017 32ND ANNUAL ACM/IEEE SYMPOSIUM ON LOGIC IN COMPUTER SCIENCE (LICS), 2017,
  • [36] Buchi Automata Recognizing Sets of Reals Definable in First-Order Logic with Addition and Order
    Milchior, Arthur
    THEORY AND APPLICATIONS OF MODELS OF COMPUTATION (TAMC 2017), 2017, 10185 : 439 - 453
  • [37] Alternating complexity of counting first-order logic for the subword order
    Kuske, Dietrich
    Schwarz, Christian
    ACTA INFORMATICA, 2023, 60 (01) : 79 - 100
  • [38] INCREMENTAL AND DECREMENTAL EVALUATION OF TRANSITIVE CLOSURE BY FIRST-ORDER QUERIES
    DONG, GZ
    SU, JW
    INFORMATION AND COMPUTATION, 1995, 120 (01) : 101 - 106
  • [39] First-Order Rewritability of Temporal Ontology-Mediated Queries
    Artale, A.
    Kontchakov, R.
    Kovtunova, A.
    Ryzhikov, V
    Wolter, F.
    Zakharyaschev, M.
    PROCEEDINGS OF THE TWENTY-FOURTH INTERNATIONAL JOINT CONFERENCE ON ARTIFICIAL INTELLIGENCE (IJCAI), 2015, : 2706 - 2712
  • [40] First-order languages expressing constructible spatial database queries
    Kuijpers, Bart
    Kuper, Gabriel
    Paredaens, Jan
    Vandeurzen, Luc
    SIAM JOURNAL ON COMPUTING, 2007, 36 (06) : 1570 - 1599