Hanf normal form for first-order logic with unary counting quantifiers

We study the existence of Hanf normal forms for extensions FO(Q) of first-order logic by sets ${\mathbf{Q}} \subseteq \mathcal{P}(\mathbb{N})$ of unary counting quantifiers. A formula is in Hanf normal form if it is a Boolean combination of formulas $\xi (\bar x)$ describing the isomorphism type of a local neighbourhood around its free variables $\bar x$ and statements of the form "the number of witnesses y of ψ(y) belongs to (Q+k)" here Q ∈ Q, k ∈ ℕ, and ψ describes the isomorphism type of a local neighbourhood around its unique free variable y.We show that a formula from FO(Q) can be transformed into a formula in Hanf normal form that is equivalent on all structures of degree ⩽ d if, and only if, all counting quantifiers occurring in the formula are ultimately periodic. This transformation can be carried out in worst-case optimal 3-fold exponential time.In particular, this yields an algorithmic version of Nurmonen’s extension of Hanf’s theorem for first-order logic with modulo-counting quantifiers. As an immediate consequence, we obtain that on finite structures of degree ⩽ d, model checking of first-order logic with modulo-counting quantifiers is fixed-parameter tractable.

[1]  M. Lothaire,et al.  Applied Combinatorics on Words , 2005 .

[2]  Arnaud Durand,et al.  First-order queries on structures of bounded degree are computable with constant delay , 2005, TOCL.

[3]  Thomas Schwentick,et al.  Local Normal Forms for First-Order Logic with Applications to Games and Automata , 1998, Discret. Math. Theor. Comput. Sci..

[4]  Lauri Hella,et al.  Notions of Locality and Their Logical Characterizations over Finite Models , 1999, J. Symb. Log..

[5]  Leonid Libkin,et al.  Elements Of Finite Model Theory (Texts in Theoretical Computer Science. An Eatcs Series) , 2004 .

[6]  Jörg Flum,et al.  Parameterized Complexity Theory (Texts in Theoretical Computer Science. An EATCS Series) , 2006 .

[7]  Juha Nurmonen,et al.  Counting Modulo Quantifiers on Finite Structures , 2000, Inf. Comput..

[8]  Luc Segoufin A glimpse on constant delay enumeration (Invited Talk) , 2014, STACS.

[9]  Stephan Kreutzer,et al.  Algorithmic Meta-theorems , 2008, IWPEC.

[10]  Frank Neven,et al.  Distributed Streaming with Finite Memory , 2015, ICDT.

[11]  Steven Lindell A Normal Form for First-Order Logic over Doubly-Linked Data Structures , 2008, Int. J. Found. Comput. Sci..

[12]  H. Gaifman On Local and Non-Local Properties , 1982 .

[13]  Martin Grohe,et al.  Deciding first-order properties of locally tree-decomposable structures , 2000, JACM.

[14]  Stephan Kreutzer,et al.  Model Theory Makes Formulas Large , 2007, ICALP.

[15]  Jörg Flum,et al.  Parameterized Complexity Theory , 2006, Texts in Theoretical Computer Science. An EATCS Series.

[16]  Armando B. Matos Periodic Sets of Integers , 1994, Theor. Comput. Sci..

[17]  Leonid Libkin,et al.  Elements of Finite Model Theory , 2004, Texts in Theoretical Computer Science.

[18]  Ronald Fagin,et al.  On Monadic NP vs. Monadic co-NP , 1995, Inf. Comput..

[19]  Benedikt Bollig,et al.  An optimal construction of Hanf sentences , 2011, J. Appl. Log..

[20]  Detlef Seese,et al.  Linear time computable problems and first-order descriptions , 1996, Mathematical Structures in Computer Science.

[21]  W. Hanf MODEL-THEORETIC METHODS IN THE STUDY OF ELEMENTARY LOGIC , 2014 .

[22]  Luc Segoufin,et al.  First-order query evaluation on structures of bounded degree , 2011, Log. Methods Comput. Sci..

[23]  Jörg Flum,et al.  Finite model theory , 1995, Perspectives in Mathematical Logic.