
arXiv: 2010.05677
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 \({\mathcal{C}}\) of finite structures that can be expressed in MSO and is closed under homomorphisms, and for all \(\ell,k\in{\mathbb{N}}\) , there exists a canonical Datalog program \(\Pi\) of width \((\ell,k)\) in the sense of Feder and Vardi. The same characterisations also hold for Guarded Second-Order Logic (GSO), which properly extends MSO. To prove our results, we show that every class \({\mathcal{C}}\) in GSO whose complement is closed under homomorphisms is a finite union of Constraint Satisfaction Problems (CSPs) of \(\omega\) -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 (GQ \({}^{+}\) ) . Yet, by exploiting our results, we can show that neither of the two query languages can serve as a characterisation, as we exhibit a CSP whose complement corresponds to a query in the intersection of MSO and Datalog that is not expressible in GQ \({}^{+}\) .
FOS: Computer and information sciences, Datalog, ω-categoricity, conjunctive query, Computational Complexity, Logic in Computer Science, Logic, constraint satisfaction, 03C13 Model theory of finite structures, pebble game, homomorphism-closed, Computational Complexity (cs.CC), Theory of computation → Finite Model Theory, 004, Logic in Computer Science (cs.LO), Guarded Second-order Logic, primitive positive formula, FOS: Mathematics, Monadic Second-order Logic, Logic (math.LO)
FOS: Computer and information sciences, Datalog, ω-categoricity, conjunctive query, Computational Complexity, Logic in Computer Science, Logic, constraint satisfaction, 03C13 Model theory of finite structures, pebble game, homomorphism-closed, Computational Complexity (cs.CC), Theory of computation → Finite Model Theory, 004, Logic in Computer Science (cs.LO), Guarded Second-order Logic, primitive positive formula, FOS: Mathematics, Monadic Second-order Logic, Logic (math.LO)
| selected citations These citations are derived from selected sources. This is an alternative to the "Influence" indicator, which also reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | 0 | |
| popularity This indicator reflects the "current" impact/attention (the "hype") of an article in the research community at large, based on the underlying citation network. | Average | |
| influence This indicator reflects the overall/total impact of an article in the research community at large, based on the underlying citation network (diachronically). | Average | |
| impulse This indicator reflects the initial momentum of an article directly after its publication, based on the underlying citation network. | Average |
