• DocumentCode
    3036630
  • Title

    Logics with aggregate operators

  • Author

    Hella, Lauri ; Libkin, Leonid ; Nurmonen, Juha ; Wong, Limson

  • Author_Institution
    Helsinki Univ., Finland
  • fYear
    1999
  • fDate
    1999
  • Firstpage
    35
  • Lastpage
    44
  • Abstract
    We study adding aggregate operators, such as summing up elements of a column of a relation, to logics with counting mechanisms. The primary motivation comes from database applications, where aggregate operators are present in all real life query languages. Unlike other features of query languages, aggregates are not adequately captured by the existing logical formalisms. Consequently, all previous approaches to analyzing the expressive power of aggregation were only capable of producing partial results, depending on the allowed class of aggregate and arithmetic operations. We consider a powerful counting logic, and extend it with the set of all aggregate operators. We show that the resulting logic satisfies analogs of Hanf´s and Gaifman´s theorems, meaning that it can only express local properties. We consider a database query language that expresses all the standard aggregates found in commercial query languages, and show how it can be translated into the aggregate logic, thereby providing a number of expressivity bounds, that do not depend on a particular class of arithmetic functions, and that subsume all those previously known. We consider a restricted aggregate logic that gives us a tighter capture of database languages, end also use it to show that some questions on expressivity of aggregation cannot be answered without resolving some deep problems in complexity theory
  • Keywords
    computational complexity; formal logic; query languages; aggregate logic; aggregate operators; arithmetic functions; arithmetic operations; commercial query languages; complexity theory; counting logic; counting mechanisms; database languages; database query language; expressivity bounds; local properties; real life query languages; restricted aggregate logic; Aggregates; Application software; Arithmetic; Complexity theory; Computer science; Database languages; Logic; Mathematics; Relational databases; Spatial databases;
  • fLanguage
    English
  • Publisher
    ieee
  • Conference_Titel
    Logic in Computer Science, 1999. Proceedings. 14th Symposium on
  • Conference_Location
    Trento
  • ISSN
    1043-6871
  • Print_ISBN
    0-7695-0158-3
  • Type

    conf

  • DOI
    10.1109/LICS.1999.782583
  • Filename
    782583