Datalog-Expressibility for Monadic and Guarded Second-Order Logic

10/12/2020
by   Manuel Bodirsky, et al.
0

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), that is, a Datalog program of width (l,k) which is sound for C (i.e., Pi only derives the goal predicate on a finite structure A if A is in C) and with the property that Pi derives the goal predicate whenever *some* Datalog program of width (l,k) which is sound for C derives the goal predicate. 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.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/11/2022

The Complexity and Expressive Power of Second-Order Extended Logic

We study the expressive powers of SO-HORN^*, SO-HORN^r and SO-HORN^*r on...
research
07/19/2022

Capturing the polynomial hierarchy by second-order revised Krom logic

We study the expressive power and complexity of second-order revised Kro...
research
08/13/2018

Proving Program Properties as First-Order Satisfiability

Program semantics can often be expressed as a (many-sorted) first-order ...
research
02/09/2018

A universal-algebraic proof of the complexity dichotomy for Monotone Monadic SNP

The logic MMSNP is a restricted fragment of existential second-order log...
research
05/11/2022

A game comonadic account of Courcelle and Feferman-Vaught-Mostowski theorems

Game comonads, introduced by Abramsky, Dawar and Wang, and developed by ...
research
02/15/2021

Smooth Approximations and Relational Width Collapses

We prove that relational structures admitting specific polymorphisms (na...
research
05/08/2023

Preservation theorems for Tarski's relation algebra

We investigate a number of semantically defined fragments of Tarski's al...

Please sign up or login with your details

Forgot password? Click here to reset