Datalog-Expressibility for Monadic and Guarded Second-Order Logic

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Bodirsky, Manuel, Knäuer, Simon, Rudolph, Sebastian
Format: Preprint
Veröffentlicht: 2020
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909899810668544
author Bodirsky, Manuel
Knäuer, Simon
Rudolph, Sebastian
author_facet Bodirsky, Manuel
Knäuer, Simon
Rudolph, Sebastian
contents We characterise the sentences in Monadic Second-order Logic (MSO) that are over finite structures equivalent to a Datalog program, in terms of an existential pebble game. We also show that for every class C of finite structures that can be expressed in MSO and is closed under homomorphisms, and for all integers l,k, there exists a canonical Datalog program Pi of width (l,k) in the sense of Feder and Verdi. The same characterisations also hold for Guarded Second-order Logic (GSO), which properly extends MSO. To prove our results, we show that every class C in GSO whose complement is closed under homomorphisms is a finite union of constraint satisfaction problems (CSPs) of countably categorical structures. The intersection of MSO and Datalog is known to contain the class of nested monadically defined queries (Nemodeq); likewise, we show that the intersection of GSO and Datalog contains all problems that can be expressed by the more expressive language of nested guarded queries. Yet, by exploiting our results, we can show that neither of the two query languages can serve as a characterization, as we exhibit a query in the intersection of MSO and Datalog that is not expressible in nested guarded queries.
format Preprint
id arxiv_https___arxiv_org_abs_2010_05677
institution arXiv
publishDate 2020
record_format arxiv
spellingShingle Datalog-Expressibility for Monadic and Guarded Second-Order Logic
Bodirsky, Manuel
Knäuer, Simon
Rudolph, Sebastian
Logic in Computer Science
Computational Complexity
Logic
03C13 Model theory of finite structures
We characterise the sentences in Monadic Second-order Logic (MSO) that are over finite structures equivalent to a Datalog program, in terms of an existential pebble game. We also show that for every class C of finite structures that can be expressed in MSO and is closed under homomorphisms, and for all integers l,k, there exists a canonical Datalog program Pi of width (l,k) in the sense of Feder and Verdi. The same characterisations also hold for Guarded Second-order Logic (GSO), which properly extends MSO. To prove our results, we show that every class C in GSO whose complement is closed under homomorphisms is a finite union of constraint satisfaction problems (CSPs) of countably categorical structures. The intersection of MSO and Datalog is known to contain the class of nested monadically defined queries (Nemodeq); likewise, we show that the intersection of GSO and Datalog contains all problems that can be expressed by the more expressive language of nested guarded queries. Yet, by exploiting our results, we can show that neither of the two query languages can serve as a characterization, as we exhibit a query in the intersection of MSO and Datalog that is not expressible in nested guarded queries.
title Datalog-Expressibility for Monadic and Guarded Second-Order Logic
topic Logic in Computer Science
Computational Complexity
Logic
03C13 Model theory of finite structures
url https://arxiv.org/abs/2010.05677