Locality of Counting Logics

Size: px
Start display at page:

Download "Locality of Counting Logics"

Transcription

1 Locality of Counting Logics Dietrich Kuske Technische Universität Ilmenau 1/22

2 Example 1 Can a first-order formula distinguish the following two graphs? vs. no, but why? Hanf (1965): every single-centered sphere appears equally often in both graphs 2/22

3 Example 2 Can a first-order formula distinguish the following two graphs with distinguished vertex? (N,S,4) = (N,S,5) = vs. Can we do with smaller formula / formula of lower quantifier rank? Fagin, Stockmeyer, Vardi (1995): give bounds on quantifier rank of distinguishing formula 3/22

4 Example 3 Given a node-labeled graph G and a first-order formula ϕ, how difficult is it to check whether G = ϕ holds? e.g. ϕ = x,y: red(x) blue(y) E(x,y) ϕ = (x i ) 1 i n : color i (x i ) 1 i n 1 i<j n E(x i,x j ) space 2 log( G ), time G 2 space ϕ log( G ), time G ϕ if G has degree d (Seese 1996): first compute condition on sphere counts from ϕ and d, then evaluate this condition on G i.e., time f( ϕ,d) G ( fixed parameter tractable ) 4/22

5 A = (A,(R i ) 1 i k ): structure over purely relational signature σ Gaifman-graph G(A) = (A,E) with (a,b) E (...,a,...,b,...) R i R 1 i for some i distance d A (a,b) and degree to be understood in G(A) (possibly ) ball B r A (a 1,...,a n ) = {b A d A (a i,b) r for some i} (a 1,...,a n A, r N) sphere S r A (a 1,...,a n ) = (A B r A (a 1,...,a n),a 1,...,a n ) is σ-structure with n constants ( centers ) for sphere τ of radius r with n centers: # τ (A) = {a A n : τ = S r A(a)} is the number of realizations of τ in A 5/22

6 A = τ = # τ (A) =? 10 Theorem (Hanf, 1965) Let A and B be locally finite such that # τ (A) = # τ (B) for any 1-centered sphere τ (of any radius). Then A and B are indistinuishable by first-order formulas. Consequence (N,S) (N,S) (Z,S) 6/22

7 Theorem (Fagin, Stockmeyer, Vardi 1995) The following holds for any quantifier rank q and any degree bound d: Let A and B be locally finite structures of degree d such that # τ (A) = # τ (B)min(# τ (A),d 2q ) = min(# τ (B),d 2q ) for all 1-centered spheres τ. of radius 2 q. of degree d. Then A and B cannot be distinguished by first-order formulas. of quantifier-rank q. Consequence (N,S,2 q ) and (N,S,2 q +1) cannot be distinguished by formulas of small quantifier rank. 7/22

8 Theorem (Fagin, Stockmeyer, Vardi 1995) The following holds for any quantifier rank q and any degree bound d: Let A and B be locally finite structures of degree d such that # τ (A) = # τ (B)min(# τ (A),d 2q ) = min(# τ (B),d 2q ) for all 1-centered spheres τ. of radius 2 q. of degree d. Then A and B cannot be distinguished by first-order formulas. of quantifier-rank q. Note τ n-centered sphere of radius r 2 q and degree d = τ n d 2q elements = there is a formula sph τ (x) with A = sph τ (a) iff S r A (a) = τ f.a. A and a A n. 7/22

9 Hanf normal form Consequence (Fagin, Stockmeyer, Vardi 1995) For any d 0 and any formula ϕ(x) FO, there exists a d-equivalent formula ψ(x) in Hanf normal form, i.e., a Boolean combination of formulas sph ρ (x) with ρ a sphere with x centres, k y sph τ (y) with k 1 and τ a 1-centered sphere. Theorem (Bollig, K 2012) ψ is computable from d and ϕ in time exp(d 2 ϕ ) = 3-exp( ϕ +loglogd) (and not faster). 8/22

10 Consequences (1) there is no formula distinguishing, for all n 1, the graphs C n C n and C 2n, in particular connectivity is not expressible (2) evaluation of FO-formula ϕ on finite structure A: in general in time A ϕ if A has degree d: 3-exp(ϕ,d) A, i.e., fixed parameter linear with elementary parameter dependence Remark. fixed parameter polynomial (=fpt) is know for any class of nowhere dense structures (3) evaluation of FO-queries on dynamic databases of degree d with constant delay 9/22

11 From now on, all structures are finite (and usually symmetric graphs). 10/22

12 A counting extension of first-order logic FO(Q) = first-order logic with unary counting quantifiers Qy ϕ for Q Q P(N) (Hella, Nurmonen et al.) (A,β) = Qy ϕ {a A (A,β) = ϕ(a)} Q examples: 1. Q = N 1 A = Qx ϕ(x) iff {a A A = ϕ(a)} 1 iff A = x ϕ 2. 1 mod 2 = 2N+1 A = 1 mod 2 x ϕ(x) iff {a A A = ϕ(a)} odd which is not expressible in FO 11/22

13 Hanf normal form Theorem (Heimberg, K, Schweikardt 2016) Let Q be a class of ultimately periodic counting quantifiers. For any d 0 and any formula ϕ(x) FO(Q), there exists a d-equivalent formula ψ(x) in Hanf normal form, i.e., a Boolean combination of formulas sph ρ (x) with ρ a sphere with x centres, k y sph τ (y) with k 1 and τ a sphere with 1 centre, and (Q+k)y sph τ (y) with τ a sphere with 1 centre. Such a ψ is computable in time 3-exp( ϕ +loglogd) and not faster. 12/22

14 Hanf normal form Theorem (K, Schweikardt 2017) Let Q be a class of///////////// ultimately////////// periodic counting quantifiers. For any d 0 and any formula ϕ(x) FO(Q), there exists a d-equivalent formula ψ(x) in Hanf normal form, i.e., a Boolean combination of formulas sph ρ (x) with ρ a sphere with x centres, k y sph τ (y) with k 1 and τ a sphere with 1 centre, and τ T sph τ(y) with T asetofsphereswith1centre. Such a ψ is computable in time 4-exp( ϕ +loglogd) and (for many classes Q) not faster. 12/22

15 Further counting extensions of first-order logic FO(Cnt) = FO+Count (Immerman, Libkin) = FO+C (Grohe) FO+predicates on witness counts (given by formulas of bounded arithmetic) 2-sorted structures: usual σ-structure A together with (N, +, ) 2-sorted logic: FO[σ] + quantification of number variables κ,λ,... (extends over {0,1,..., A }) + equality of polynomials over number variables + counting operator λ #y ϕ (A,β) = (λ #y ϕ) β(λ) {a A (A,β) = ϕ(a)} 13/22

16 FO(unary) = FO+unary generalized quantifiers Q K y (ϕ 1,...,ϕ k ) for K a class of structures with k unary relations FO+predicates on witness counts (from a fixed set P of predicates) (Hella, Nurmonen, Libkin et al.) FO[σ] + counting expressions ψ = P(#y ϕ 1,#y ϕ 2...,#y ϕ n ) for P P n-ary (A,β) = ψ ( ϕ A 1, ϕ 2 A,..., ϕ A n ) P 14/22

17 New counting logic FOCN(P) FO+predicates on counts of witnessing tuples (given by formulas of bounded arithmetic and, in addition, from a fixed set P of predicates) 2-sorted structures: usual σ-structure A Z with functions + and, and numerical predicates from P 2-sorted logic: FO[σ] + quantification over number variables (extends over {0,1,..., A }) + atomic formulas P(t 1,...,t k ) with P P of arity k and t 1,...,t k counting terms + counting terms: #(y 1,...,y n )ϕ for structure variables y i, integers, number variables κ,λ,..., + and. 15/22

18 For I = (A,β): [#(y 1,...,y n )ϕ] I = {(a 1,...,a n ) A n I = ϕ(a 1,...,a n )} Examples = number of witnessing tuples for ϕ (1) with P = {1,2,...}: P (#(y)ϕ) y ϕ (2) LE(#(y)ϕ,#(z)ψ) with LE = {(m,n) m n} expresses Rescher quantifier (3) all previously mentioned counting logics can be encoded into FOCN(P) (for suitable P) 16/22

19 (4) Prime(#(x)x = x +#(x,y)e(x,y)) expresses: V + E is a prime (5) EQ(#(x,y)E(x,y),#(x,y)E(x,y)) expresses: there are as many red edges as there are blue edges Luosto 2000: not expressible in FO(unary). (6) κpoweroftwo(#(y) EQ(κ,#(z)E(y,z) )) }{{} out-degree of y } {{ } out-degree of y is κ expresses: there is some out-degree κ whose number of realisations is a power of 2 17/22

20 Theorem (K, Schweikardt 2017) For any set of numerical predicates P, any formula ϕ(x) from FOCN(P), and any degree bound d, there exists a d-equivalent formula ψ(x) in Hanf normal form., i.e., a Boolean combination of formulas sph ρ (x) with ρ a sphere with x centres, k y sph τ (y) with k 1 and τ a sphere with 1 centre, and oc-type conditions: built by,, κ from atomic oc-type conditions atomic oc-type conditions: P(t 1,...,t k ) with P P of arity k and simple counting terms t i simple counting terms: built from #(y)sph τ (y) and κ using +,, and integers 18/22

21 Example. ϕ = P ( #(x,y): red(x) blue(y) E(x,y) ) ψ ( = P #(x)sph τ (x) with τ T τ T #(y)sph τ (y) τ T k τ #(x)sph τ (x) T set of all 1-centered spheres of radius 0 with red center, T set of all 1-centered spheres of radius 0 with blue center, T set of all d-bounded 1-centered spheres of radius 1 with red center, and k τ number of blue nodes in τ. ) 19/22

22 Example. ϕ(x) = P ( #(y)α(x,y) ) where α is a Boolean combination of atomic oc-type conditions (hence independent from y) from S and formulas sph τ (x,y) with τ of radius r ϕ θ θ P(#(y)α H (x,y)) }{{} H S θ H θ S\H =:β H where α H is a Boolean combination of formulas sph τ (x,y). β H d sph σ (x) P #(y)sph τ (y) c σ +l σ τ T σ σ T T is set of all d-bounded 1-centered spheres of radius 3r +1 T σ is set of d-bounded 1-centered spheres of radius r s.t. S r σ(x) τ = α H c σ = {y σ d σ (x,y) 2r and S r σ(x) S r σ(y) = α H } l σ = {y σ d σ (x,y) 2r and S r σ(x,y) = α H } 20/22

23 Theorem (algorithmic version) Fix countable P. Computable in time 5-exp( ϕ +loglogd): input: degree bound d 0 and FOCN(P)-formula ϕ(x) output: d-equivalent formula ψ(x) in Hanf normal form with nqr(ψ) nqr(ϕ) (number quantifier rank) and locality radius of ψ < (2bw(ϕ)+1) br(ϕ) 21/22

24 Consequences (1) FOCN(P) is Hanf-local, hence, e.g., connectivity is not expressible (2) FO-formulas ϕ Σ n have Hanf locality radius ϕ n Does this hold for infinite structures of bounded degree? (3) evaluation of FOCN(P)-formulas on structures of degree d with oracles for P in time 5-exp(ϕ,d)+3-exp(ϕ,d) A +5-exp(ϕ,d) A nqr(ϕ) hence fixed parameter linear with elementary parameter dependence for numberfree fragment FOC(P) of FOCN(P) Grohe, Schweikardt: holds for natural fragment of FOC(P) on nowhere dense classes of structures (4) evaluation of FOC(P)-queries on dynamic databases of degree d with constant delay 22/22

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

Hanf normal form for first-order logic with unary counting quantifiers Hanf normal form for first-order logic with unary counting quantifiers Lucas Heimberg Humboldt-Universität zu Berlin heimberl@informatik.hu-berlin.de Dietrich Kuske Technische Universität Ilmenau dietrich.kuske@tu-ilmenau.de

More information

Preliminaries. Introduction to EF-games. Inexpressivity results for first-order logic. Normal forms for first-order logic

Preliminaries. Introduction to EF-games. Inexpressivity results for first-order logic. Normal forms for first-order logic Introduction to EF-games Inexpressivity results for first-order logic Normal forms for first-order logic Algorithms and complexity for specific classes of structures General complexity bounds Preliminaries

More information

logic, cf. [1]. Another area of application is descriptive complexity. It turns out that familiar logics capture complexity classes over classes of (o

logic, cf. [1]. Another area of application is descriptive complexity. It turns out that familiar logics capture complexity classes over classes of (o Notions of locality and their logical characterizations over nite models Lauri Hella Department of Mathematics P.O. Box 4 (Yliopistonkatu 5) 00014 University of Helsinki, Finland Email: lauri.hella@helsinki.fi

More information

A Local Normal Form Theorem for Infinitary Logic with Unary Quantifiers

A Local Normal Form Theorem for Infinitary Logic with Unary Quantifiers mlq header will be provided by the publisher Local Normal Form Theorem for Infinitary Logic with Unary Quantifiers H. Jerome Keisler 1 and Wafik Boulos Lotfallah 2 1 Department of Mathematics University

More information

A short tutorial on order-invariant first-order logic

A short tutorial on order-invariant first-order logic A short tutorial on order-invariant first-order logic Nicole Schweikardt Goethe-Universität Frankfurt am Main, Germany schweika@informatik.uni-frankfurt.de Abstract. This paper gives a short introduction

More information

A local normal form theorem for infinitary logic with unary quantifiers

A local normal form theorem for infinitary logic with unary quantifiers Math. Log. Quart. 51, No. 2, 137 144 (2005) / DOI 10.1002/malq.200410013 / www.mlq-journal.org A local normal form theorem for infinitary logic with unary quantifiers H. Jerome Keisler 1 and Wafik Boulos

More information

Hanf Locality and Invariant Elementary Definability

Hanf Locality and Invariant Elementary Definability Hanf Locality and Invariant Elementary Definability Steven Lindell Haverford College Henry Towsner University of Pennsylvania Scott Weinstein University of Pennsylvania January 27, 2017 Abstract We introduce

More information

Locality of queries definable in invariant first-order logic with arbitrary built-in predicates

Locality of queries definable in invariant first-order logic with arbitrary built-in predicates Locality of queries definable in invariant first-order logic with arbitrary built-in predicates Matthew Anderson 1,, Dieter van Melkebeek 1,, Nicole Schweikardt 2, Luc Segoufin 3 1 University of Wisconsin

More information

Finite and Algorithmic Model Theory II: Automata-Based Methods

Finite and Algorithmic Model Theory II: Automata-Based Methods Finite and Algorithmic Model Theory II: Automata-Based Methods Anuj Dawar University of Cambridge Computer Laboratory Simons Institute, 30 August 2016 Review We aim to develop tools for studying the expressive

More information

FIRST-ORDER QUERY EVALUATION ON STRUCTURES OF BOUNDED DEGREE

FIRST-ORDER QUERY EVALUATION ON STRUCTURES OF BOUNDED DEGREE FIRST-ORDER QUERY EVALUATION ON STRUCTURES OF BOUNDED DEGREE INRIA and ENS Cachan e-mail address: kazana@lsv.ens-cachan.fr WOJCIECH KAZANA AND LUC SEGOUFIN INRIA and ENS Cachan e-mail address: see http://pages.saclay.inria.fr/luc.segoufin/

More information

Connectivity. Topics in Logic and Complexity Handout 7. Proof. Proof. Consider the signature (E, <).

Connectivity. Topics in Logic and Complexity Handout 7. Proof. Proof. Consider the signature (E, <). 1 2 Topics in Logic and Complexity Handout 7 Anuj Dawar MPhil Advanced Computer Science, Lent 2010 Consider the signature (E,

More information

On the Expressive Power of Logics on Finite Models

On the Expressive Power of Logics on Finite Models On the Expressive Power of Logics on Finite Models Phokion G. Kolaitis Computer Science Department University of California, Santa Cruz Santa Cruz, CA 95064, USA kolaitis@cs.ucsc.edu August 1, 2003 Partially

More information

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms

First-Order Logic. 1 Syntax. Domain of Discourse. FO Vocabulary. Terms First-Order Logic 1 Syntax Domain of Discourse The domain of discourse for first order logic is FO structures or models. A FO structure contains Relations Functions Constants (functions of arity 0) FO

More information

Random Graphs. and. The Parity Quantifier

Random Graphs. and. The Parity Quantifier Random Graphs and The Parity Quantifier Phokion G. Kolaitis Swastik Kopparty UC Santa Cruz MIT & & IBM Research-Almaden Institute for Advanced Study What is finite model theory? It is the study of logics

More information

Pattern Logics and Auxiliary Relations

Pattern Logics and Auxiliary Relations Pattern Logics and Auxiliary Relations Diego Figueira Leonid Libkin University of Edinburgh Abstract A common theme in the study of logics over finite structures is adding auxiliary predicates to enhance

More information

Finite Model Theory: First-Order Logic on the Class of Finite Models

Finite Model Theory: First-Order Logic on the Class of Finite Models 1 Finite Model Theory: First-Order Logic on the Class of Finite Models Anuj Dawar University of Cambridge Modnet Tutorial, La Roche, 21 April 2008 2 Finite Model Theory In the 1980s, the term finite model

More information

RANK HIERARCHIES FOR GENERALIZED QUANTIFIERS

RANK HIERARCHIES FOR GENERALIZED QUANTIFIERS RANK HIERARCHIES FOR GENERALIZED QUANTIFIERS H. JEROME KEISLER AND WAFIK BOULOS LOTFALLAH Abstract. We show that for each n and m, there is an existential first order sentence which is NOT logically equivalent

More information

Existential Second-Order Logic Over Graphs: Charting the Tractability Frontier

Existential Second-Order Logic Over Graphs: Charting the Tractability Frontier Existential Second-Order Logic Over Graphs: Charting the Tractability Frontier GEORG GOTTLOB Technische Universität Wien, Wien, Austria PHOKION G. KOLAITIS UC Santa Cruz, Santa Cruz, California AND THOMAS

More information

First-Order Queries over One Unary Function

First-Order Queries over One Unary Function First-Order Queries over One Unary Function Arnaud Durand 1 and Frédéric Olive 2 1 Equipe de Logique Mathématique, CNRS UMR 7056 - Université Denis Diderot, 2 place Jussieu, 75251 Paris Cedex 05, France

More information

Overview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang

Overview of Topics. Finite Model Theory. Finite Model Theory. Connections to Database Theory. Qing Wang Overview of Topics Finite Model Theory Part 1: Introduction 1 What is finite model theory? 2 Connections to some areas in CS Qing Wang qing.wang@anu.edu.au Database theory Complexity theory 3 Basic definitions

More information

Finite Model Theory and Graph Isomorphism. II.

Finite Model Theory and Graph Isomorphism. II. Finite Model Theory and Graph Isomorphism. II. Anuj Dawar University of Cambridge Computer Laboratory visiting RWTH Aachen Beroun, 13 December 2013 Recapitulation Finite Model Theory aims to study the

More information

Relations to first order logic

Relations to first order logic An Introduction to Description Logic IV Relations to first order logic Marco Cerami Palacký University in Olomouc Department of Computer Science Olomouc, Czech Republic Olomouc, November 6 th 2014 Marco

More information

Games and Isomorphism in Finite Model Theory. Part 1

Games and Isomorphism in Finite Model Theory. Part 1 1 Games and Isomorphism in Finite Model Theory Part 1 Anuj Dawar University of Cambridge Games Winter School, Champéry, 6 February 2013 2 Model Comparison Games Games in Finite Model Theory are generally

More information

Notes on Satisfiability-Based Problem Solving. First Order Logic. David Mitchell October 23, 2013

Notes on Satisfiability-Based Problem Solving. First Order Logic. David Mitchell October 23, 2013 Notes on Satisfiability-Based Problem Solving First Order Logic David Mitchell mitchell@cs.sfu.ca October 23, 2013 Preliminary draft. Please do not distribute. Corrections and suggestions welcome. In this

More information

Algorithmic Meta-Theorems

Algorithmic Meta-Theorems Algorithmic Meta-Theorems Stephan Kreutzer Oxford University Computing Laboratory stephan.kreutzer@comlab.ox.ac.uk Abstract. Algorithmic meta-theorems are general algorithmic results applying to a whole

More information

On expansions of the real field by complex subgroups

On expansions of the real field by complex subgroups On expansions of the real field by complex subgroups University of Illinois at Urbana-Champaign July 21, 2016 Previous work Expansions of the real field R by subgroups of C have been studied previously.

More information

Fundamentos lógicos de bases de datos (Logical foundations of databases)

Fundamentos lógicos de bases de datos (Logical foundations of databases) 20/7/2015 ECI 2015 Buenos Aires Fundamentos lógicos de bases de datos (Logical foundations of databases) Diego Figueira Gabriele Puppis CNRS LaBRI About the speakers Gabriele Puppis PhD from Udine (Italy)

More information

Database Theory VU , SS Ehrenfeucht-Fraïssé Games. Reinhard Pichler

Database Theory VU , SS Ehrenfeucht-Fraïssé Games. Reinhard Pichler Database Theory Database Theory VU 181.140, SS 2018 7. Ehrenfeucht-Fraïssé Games Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Pichler 15

More information

VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0. Contents

VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0. Contents VAUGHT S THEOREM: THE FINITE SPECTRUM OF COMPLETE THEORIES IN ℵ 0 BENJAMIN LEDEAUX Abstract. This expository paper introduces model theory with a focus on countable models of complete theories. Vaught

More information

Algorithmic Model Theory SS 2016

Algorithmic Model Theory SS 2016 Algorithmic Model Theory SS 2016 Prof. Dr. Erich Grädel and Dr. Wied Pakusa Mathematische Grundlagen der Informatik RWTH Aachen cbnd This work is licensed under: http://creativecommons.org/licenses/by-nc-nd/3.0/de/

More information

Introduction to Model Theory

Introduction to Model Theory Introduction to Model Theory Charles Steinhorn, Vassar College Katrin Tent, University of Münster CIRM, January 8, 2018 The three lectures Introduction to basic model theory Focus on Definability More

More information

The expressive power of two-variable least fixed-point logics

The expressive power of two-variable least fixed-point logics The expressive power of two-variable least fixed-point logics Martin Grohe, Stephan Kreutzer, and Nicole Schweikardt Institut für Informatik, Humboldt-Universität, Berlin {grohe,kreutzer,schweika}@informatik.hu-berlin.de

More information

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler Complexity Theory Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 15 May, 2018 Reinhard

More information

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181. Complexity Theory Complexity Theory Outline Complexity Theory VU 181.142, SS 2018 6. The Polynomial Hierarchy Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität

More information

The Natural Order-Generic Collapse for ω-representable Databases over the Rational and the Real Ordered Group

The Natural Order-Generic Collapse for ω-representable Databases over the Rational and the Real Ordered Group The Natural Order-Generic Collapse for ω-representable Databases over the Rational and the Real Ordered Group Nicole Schweikardt Institut für Informatik / FB 17 Johannes Gutenberg-Universität, D-55099

More information

Structural Tractability of Counting of Solutions to Conjunctive Queries

Structural Tractability of Counting of Solutions to Conjunctive Queries Structural Tractability of Counting of Solutions to Conjunctive Queries Arnaud Durand 1 1 University Paris Diderot Journées DAG, june 2013 Joint work with Stefan Mengel (JCSS (to appear) + ICDT 2013) 1

More information

Infinite and Finite Model Theory Part II

Infinite and Finite Model Theory Part II Infinite and Finite Model Theory Part II Anuj Dawar Computer Laboratory University of Cambridge Lent 2002 3/2002 0 Finite Model Theory Finite Model Theory motivated by computational issues; relationship

More information

Ehrenfeucht-Fraïssé Games

Ehrenfeucht-Fraïssé Games Chapter 6 Ehrenfeucht-Fraïssé Games We introduce combinatorial games that are useful for determining what can be expressed in various logics. Ehrenfeucht-Fraïssé games offer a semantics for firstorder

More information

An introduction to Parameterized Complexity Theory

An introduction to Parameterized Complexity Theory An introduction to Parameterized Complexity Theory May 15, 2012 A motivation to parametrize Definitions Standard Complexity Theory does not distinguish between the distinct parts of the input. It categorizes

More information

Finite Model Theory Tutorial. Lecture 1

Finite Model Theory Tutorial. Lecture 1 1 Finite Model Theory Tutorial Lecture 1 Anuj Dawar University of Cambridge Modnet Summer School, Manchester, 14-18 July 2008 2 Finite Model Theory In the 1980s, the term finite model theory came to be

More information

Friendly Logics, Fall 2015, Lecture Notes 5

Friendly Logics, Fall 2015, Lecture Notes 5 Friendly Logics, Fall 2015, Lecture Notes 5 Val Tannen 1 FO definability In these lecture notes we restrict attention to relational vocabularies i.e., vocabularies consisting only of relation symbols (or

More information

DEFINABILITY OF SECOND ORDER GENERALIZED QUANTIFIERS JUHA KONTINEN

DEFINABILITY OF SECOND ORDER GENERALIZED QUANTIFIERS JUHA KONTINEN DEFINABILITY OF SECOND ORDER GENERALIZED QUANTIFIERS JUHA KONTINEN Academic dissertation To be presented, with the permission of the Faculty of Science of the University of Helsinki, for public criticism

More information

1 Introduction The computational complexity of a problem is the amount of resources, such as time or space, required by a machine that solves the prob

1 Introduction The computational complexity of a problem is the amount of resources, such as time or space, required by a machine that solves the prob Easier Ways to Win Logical Games Ronald Fagin IBM Almaden Research Center 650 Harry Road San Jose, California 95120-6099 email: fagin@almaden.ibm.com URL: http://www.almaden.ibm.com/cs/people/fagin/ Abstract

More information

A Little Logic. Propositional Logic. Satisfiability Problems. Solving Sudokus. First Order Logic. Logic Programming

A Little Logic. Propositional Logic. Satisfiability Problems. Solving Sudokus. First Order Logic. Logic Programming A Little Logic International Center for Computational Logic Technische Universität Dresden Germany Propositional Logic Satisfiability Problems Solving Sudokus First Order Logic Logic Programming A Little

More information

A Formalism for Graph Databases and its Model of Computation

A Formalism for Graph Databases and its Model of Computation A Formalism for Graph Databases and its Model of Computation Juan Reutter and Tony Tan University of Edinburgh Abstract. Graph databases are directed graphs in which the edges are labeled with symbols

More information

Abstract model theory for extensions of modal logic

Abstract model theory for extensions of modal logic Abstract model theory for extensions of modal logic Balder ten Cate Stanford, May 13, 2008 Largely based on joint work with Johan van Benthem and Jouko Väänänen Balder ten Cate Abstract model theory for

More information

Generalized Quantifiers

Generalized Quantifiers Generalized Quantifiers Jouko Väänänen Department of Mathematics University of Helsinki Helsinki, Finland Abstract We review recent work in the field of generalized quantifiers on finite models. We give

More information

About the relationship between formal logic and complexity classes

About the relationship between formal logic and complexity classes About the relationship between formal logic and complexity classes Working paper Comments welcome; my email: armandobcm@yahoo.com Armando B. Matos October 20, 2013 1 Introduction We analyze a particular

More information

On Datalog vs. LFP. Anuj Dawar and Stephan Kreutzer

On Datalog vs. LFP. Anuj Dawar and Stephan Kreutzer On Datalog vs. LFP Anuj Dawar and Stephan Kreutzer 1 University of Cambridge Computer Lab, anuj.dawar@cl.cam.ac.uk 2 Oxford University Computing Laboratory, kreutzer@comlab.ox.ac.uk Abstract. We show that

More information

Enumerating Homomorphisms

Enumerating Homomorphisms Enumerating Homomorphisms Andrei A. Bulatov School of Computing Science, Simon Fraser University, Burnaby, Canada Víctor Dalmau 1, Department of Information and Communication Technologies, Universitat

More information

CAPTURING POLYNOMIAL TIME USING MODULAR DECOMPOSITION

CAPTURING POLYNOMIAL TIME USING MODULAR DECOMPOSITION Logical Methods in Computer Science Volume 15, Issue 1, 2019, pp. 24:1 24:38 https://lmcs.episciences.org/ Submitted Mar. 30, 2018 Published Mar. 05, 2019 CAPTURING POLYNOMIAL TIME USING MODULAR DECOMPOSITION

More information

Finite Model Theory and CSPs

Finite Model Theory and CSPs Finite Model Theory and CSPs Albert Atserias Universitat Politècnica de Catalunya Barcelona, Spain June 19, 2007 Part I FIRST-ORDER LOGIC, TYPES AND GAMES Relational Structures vs. Functional Structures

More information

On the Expressive Power of Monadic Least Fixed Point Logic

On the Expressive Power of Monadic Least Fixed Point Logic On the Expressive Power of Monadic Least Fixed Point Logic Nicole Schweikardt Institut für Informatik, Humboldt-Universität Berlin, Unter den Linden 6, D-10099 Berlin, Germany, Email: schweika@informatik.hu-berlin.de,

More information

arxiv: v3 [math.lo] 26 Apr 2016

arxiv: v3 [math.lo] 26 Apr 2016 Discrete Temporal Constraint Satisfaction Problems arxiv:1503.08572v3 [math.lo] 26 Apr 2016 Manuel Bodirsky Institut für Algebra, TU Dresden, Dresden Barnaby Martin School of Science and Technology, Middlesex

More information

VC-DENSITY FOR TREES

VC-DENSITY FOR TREES VC-DENSITY FOR TREES ANTON BOBKOV Abstract. We show that for the theory of infinite trees we have vc(n) = n for all n. VC density was introduced in [1] by Aschenbrenner, Dolich, Haskell, MacPherson, and

More information

Two logical hierarchies of optimization problems over the real numbers

Two logical hierarchies of optimization problems over the real numbers Two logical hierarchies of optimization problems over the real numbers Uffe Flarup Hansen and Klaus Meer Department of Mathematics and Computer Science Syddansk Universitet, Campusvej 55, 5230 Odense M,

More information

Tractable Lineages on Treelike Instances: Limits and Extensions

Tractable Lineages on Treelike Instances: Limits and Extensions Tractable Lineages on Treelike Instances: Limits and Extensions Antoine Amarilli 1, Pierre Bourhis 2, Pierre enellart 1,3 June 29th, 2016 1 Télécom ParisTech 2 CNR CRItAL 3 National University of ingapore

More information

Theory of Computer Science

Theory of Computer Science Theory of Computer Science B3. Predicate Logic I Malte Helmert University of Basel March 7, 2016 Motivation Limits of Propositional Logic group axioms for G, and neutral element e: 1 For all x, y, z G,

More information

FINITE MODELS AND FINITELY MANY VARIABLES

FINITE MODELS AND FINITELY MANY VARIABLES LOGIC, ALGEBRA, AND COMPUTER SCIENCE BANACH CENTER PUBLICATIONS, VOLUME 46 INSTITUTE OF MATHEMATICS POLISH ACADEMY OF SCIENCES WARSZAWA 1999 FINITE MODELS AND FINITELY MANY VARIABLES ANUJ DAWAR Department

More information

arxiv: v2 [cs.cc] 5 Oct 2017

arxiv: v2 [cs.cc] 5 Oct 2017 A Model-Theoretic Characterization of Constant-Depth Arithmetic Circuits Anselm Haak and Heribert Vollmer arxiv:1603.09531v2 [cs.cc] 5 Oct 2017 Theoretische Informatik, Leibniz Universität Hannover, Appelstraße,

More information

AUTOMATIC STRUCTURES OF BOUNDED DEGREE REVISITED

AUTOMATIC STRUCTURES OF BOUNDED DEGREE REVISITED The Journal of Symbolic Logic Volume 00, Number 0, XXX 0000 AUTOMATIC STRUCTURES OF BOUNDED DEGREE REVISITED DIETRICH KUSKE AND MARKUS LOHREY Abstract. The first-order theory of a string automatic structure

More information

Wied Pakusa. Finite Model Theory with Operators from Linear Algebra

Wied Pakusa. Finite Model Theory with Operators from Linear Algebra Wied Pakusa Finite Model Theory with Operators from Linear Algebra Contents Introduction 1 1. Preliminaries 7 1.1. Structures and Logics............................. 7 1.2. Descriptive Complexity Theory........................

More information

MSO Querying over Trees via Datalog Evaluation

MSO Querying over Trees via Datalog Evaluation MSO Querying over Trees via Datalog Evaluation Eugénie Foustoucos and Labrini Kalantzi M.Π.Λ.A., Department of Mathematics National and Capodistrian University of Athens Panepistimiopolis, 15784 Athens,

More information

Monadic Datalog Containment on Trees Using the Descendant-Axis

Monadic Datalog Containment on Trees Using the Descendant-Axis Monadic Datalog Containment on Trees Using the Descendant-Axis André Frochaux and Nicole Schweikardt Institut für Informatik, Humboldt-Universität zu Berlin {frochaua,schweikn}@informatik.hu-berlin.de

More information

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes)

ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) ACLT: Algebra, Categories, Logic in Topology - Grothendieck's generalized topological spaces (toposes) Steve Vickers CS Theory Group Birmingham 2. Theories and models Categorical approach to many-sorted

More information

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method

Overview. CS389L: Automated Logical Reasoning. Lecture 7: Validity Proofs and Properties of FOL. Motivation for semantic argument method Overview CS389L: Automated Logical Reasoning Lecture 7: Validity Proofs and Properties of FOL Agenda for today: Semantic argument method for proving FOL validity Işıl Dillig Important properties of FOL

More information

Hence C has VC-dimension d iff. π C (d) = 2 d. (4) C has VC-density l if there exists K R such that, for all

Hence C has VC-dimension d iff. π C (d) = 2 d. (4) C has VC-density l if there exists K R such that, for all 1. Computational Learning Abstract. I discuss the basics of computational learning theory, including concept classes, VC-dimension, and VC-density. Next, I touch on the VC-Theorem, ɛ-nets, and the (p,

More information

Fixpoint Logic vs. Infinitary Logic in Finite-Model Theory

Fixpoint Logic vs. Infinitary Logic in Finite-Model Theory Fixpoint Logic vs. Infinitary Logic in Finite-Model Theory Phokion G. Kolaitis Computer and Information Sciences University of California, Santa Cruz Santa Cruz, CA 95064 kolaitis@cse.ucsc.edu Moshe Y.

More information

arxiv: v1 [cs.fl] 8 Jan 2019

arxiv: v1 [cs.fl] 8 Jan 2019 Languages ordered by the subword order Dietrich Kuske TU Ilmenau, Germany dietrich.kuske@tu-ilmenau.de Georg Zetzsche MPI-SWS, Germany georg@mpi-sws.org arxiv:1901.02194v1 [cs.fl] 8 Jan 2019 Abstract We

More information

THE CHARACTERISTIC SEQUENCE OF A FIRST-ORDER FORMULA

THE CHARACTERISTIC SEQUENCE OF A FIRST-ORDER FORMULA THE CHARACTERISTIC SEQUENCE OF A FIRST-ORDER FORMULA M. E. MALLIARIS Abstract. For a first-order formula ϕ(x; y) we introduce and study the characteristic sequence P n : n < ω of hypergraphs defined by

More information

First Order Logic (FOL) 1 znj/dm2017

First Order Logic (FOL) 1   znj/dm2017 First Order Logic (FOL) 1 http://lcs.ios.ac.cn/ znj/dm2017 Naijun Zhan March 19, 2017 1 Special thanks to Profs Hanpin Wang (PKU) and Lijun Zhang (ISCAS) for their courtesy of the slides on this course.

More information

if t 1,...,t k Terms and P k is a k-ary predicate, then P k (t 1,...,t k ) Formulas (atomic formulas)

if t 1,...,t k Terms and P k is a k-ary predicate, then P k (t 1,...,t k ) Formulas (atomic formulas) FOL Query Evaluation Giuseppe De Giacomo Università di Roma La Sapienza Corso di Seminari di Ingegneria del Software: Data and Service Integration Laurea Specialistica in Ingegneria Informatica Università

More information

The Monadic Quantifier Alternation Hierarchy over Graphs is Infinite

The Monadic Quantifier Alternation Hierarchy over Graphs is Infinite The Monadic Quantifier Alternation Hierarchy over Graphs is Infinite Oliver Matz and Wolfgang Thomas Institut für Informatik und Praktische Mathematik Christian-Albrechts-Universität zu Kiel, D-24098 Kiel

More information

Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations

Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations Existential Second-Order Logic and Modal Logic with Quantified Accessibility Relations preprint Lauri Hella University of Tampere Antti Kuusisto University of Bremen Abstract This article investigates

More information

Machine Characterizations of the Classes of the W-Hierarchy

Machine Characterizations of the Classes of the W-Hierarchy Machine Characterizations of the Classes of the W-Hierarchy Yijia Chen and Jörg Flum Abteilung für Mathematische Logik, Universität Freiburg, Eckerstr. 1, 79104 Freiburg, Germany. chen@zermelo.mathematik.uni-freiburg.de

More information

1 CHAPTER 1 INTRODUCTION 1.1 Background One branch of the study of descriptive complexity aims at characterizing complexity classes according to the l

1 CHAPTER 1 INTRODUCTION 1.1 Background One branch of the study of descriptive complexity aims at characterizing complexity classes according to the l viii CONTENTS ABSTRACT IN ENGLISH ABSTRACT IN TAMIL LIST OF TABLES LIST OF FIGURES iii v ix x 1 INTRODUCTION 1 1.1 Background : : : : : : : : : : : : : : : : : : : : : : : : : : : : 1 1.2 Preliminaries

More information

The parameterized complexity of counting problems

The parameterized complexity of counting problems The parameterized complexity of counting problems Jörg Flum Martin Grohe January 22, 2004 Abstract We develop a parameterized complexity theory for counting problems. As the basis of this theory, we introduce

More information

MATHEMATICS: CONCEPTS, AND FOUNDATIONS Vol. II - Model Theory - H. Jerome Keisler

MATHEMATICS: CONCEPTS, AND FOUNDATIONS Vol. II - Model Theory - H. Jerome Keisler ATHEATCS: CONCEPTS, AND FOUNDATONS Vol. - odel Theory - H. Jerome Keisler ODEL THEORY H. Jerome Keisler Department of athematics, University of Wisconsin, adison Wisconsin U.S.A. Keywords: adapted probability

More information

A Trichotomy in the Complexity of Counting Answers to Conjunctive Queries

A Trichotomy in the Complexity of Counting Answers to Conjunctive Queries A Trichotomy in the Complexity of Counting Answers to Conjunctive Queries Hubie Chen Stefan Mengel August 5, 2014 Conjunctive queries are basic and heavily studied database queries; in relational algebra,

More information

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation

1 First-order logic. 1 Syntax of first-order logic. 2 Semantics of first-order logic. 3 First-order logic queries. 2 First-order query evaluation Knowledge Bases and Databases Part 1: First-Order Queries Diego Calvanese Faculty of Computer Science Master of Science in Computer Science A.Y. 2007/2008 Overview of Part 1: First-order queries 1 First-order

More information

Umans Complexity Theory Lectures

Umans Complexity Theory Lectures Umans Complexity Theory Lectures Lecture 12: The Polynomial-Time Hierarchy Oracle Turing Machines Oracle Turing Machine (OTM): Deterministic multitape TM M with special query tape special states q?, q

More information

Efficient Reasoning about Data Trees via Integer Linear Programming

Efficient Reasoning about Data Trees via Integer Linear Programming Efficient Reasoning about Data Trees via Integer Linear Programming Claire David Université Paris-Est Claire.David@univ-mlv.fr Leonid Libkin University of Edinburgh libkin@inf.ed.ac.uk Tony Tan University

More information

Lecture 2: Syntax. January 24, 2018

Lecture 2: Syntax. January 24, 2018 Lecture 2: Syntax January 24, 2018 We now review the basic definitions of first-order logic in more detail. Recall that a language consists of a collection of symbols {P i }, each of which has some specified

More information

Model Checking Lower Bounds for Simple Graphs. Michael Lampis KTH Royal Institute of Technology

Model Checking Lower Bounds for Simple Graphs. Michael Lampis KTH Royal Institute of Technology Model Checking Lower Bounds for Simple Graphs Michael Lampis KTH Royal Institute of Technology March 11, 2013 Algorithmic Meta-Theorems Positive results Problem X is tractable. Negative results Problem

More information

The complexity of enumeration and counting for acyclic conjunctive queries

The complexity of enumeration and counting for acyclic conjunctive queries The complexity of enumeration and counting for acyclic conjunctive queries Cambridge, march 2012 Counting and enumeration Counting Output the number of solutions Example : sat, Perfect Matching, Permanent,

More information

On Decidability Properties of One-Dimensional Cellular Automata

On Decidability Properties of One-Dimensional Cellular Automata On Decidability Properties of One-Dimensional Cellular Automata arxiv:0903.4615v1 [cs.lo] 26 Mar 2009 Olivier Finkel Equipe de Logique Mathématique CNRS et Université Paris 7, France. finkel@logique.jussieu.fr

More information

Özgür L. Özçep Data Exchange 1

Özgür L. Özçep Data Exchange 1 INSTITUT FÜR INFORMATIONSSYSTEME Özgür L. Özçep Data Exchange 1 Lecture 5: Motivation, Relational DE, Chase 16 November, 2016 Foundations of Ontologies and Databases for Information Systems CS5130 (Winter

More information

Relations. We have seen several types of abstract, mathematical objects, including propositions, predicates, sets, and ordered pairs and tuples.

Relations. We have seen several types of abstract, mathematical objects, including propositions, predicates, sets, and ordered pairs and tuples. Relations We have seen several types of abstract, mathematical objects, including propositions, predicates, sets, and ordered pairs and tuples. Relations use ordered tuples to represent relationships among

More information

Choiceless Polynomial Time, Counting and the Cai Fürer Immerman Graphs

Choiceless Polynomial Time, Counting and the Cai Fürer Immerman Graphs Choiceless Polynomial Time, Counting and the Cai Fürer Immerman Graphs Anuj Dawar University of Cambridge Computer Laboratory, William Gates Building, J.J. Thomson Avenue, Cambridge, CB3 0FD, United Kingdom.

More information

Directed st-connectivity is not Expressible in Symmetric Datalog

Directed st-connectivity is not Expressible in Symmetric Datalog Directed st-connectivity is not Expressible in Symmetric Datalog László Egri 1, Benoît Larose 2, and Pascal Tesson 3 1 School of Computer Science, McGill University legri1@cs.mcgill.ca 2 Département d

More information

Introduction. Itaï Ben-Yaacov C. Ward Henson. September American Institute of Mathematics Workshop. Continuous logic Continuous model theory

Introduction. Itaï Ben-Yaacov C. Ward Henson. September American Institute of Mathematics Workshop. Continuous logic Continuous model theory Itaï Ben-Yaacov C. Ward Henson American Institute of Mathematics Workshop September 2006 Outline Continuous logic 1 Continuous logic 2 The metric on S n (T ) Origins Continuous logic Many classes of (complete)

More information

Quine s Fluted Fragment is Non-elementary

Quine s Fluted Fragment is Non-elementary Quine s Fluted Fragment is Non-elementary Ian Pratt-Hartmann Wies law Szwast Lidia Tendera University of Manchester/University of Opole 25th EACSL Annual Conference on Computer Science Logic 1 st September,

More information

arxiv: v1 [cs.db] 21 Feb 2017

arxiv: v1 [cs.db] 21 Feb 2017 Answering Conjunctive Queries under Updates Christoph Berkholz, Jens Keppeler, Nicole Schweikardt Humboldt-Universität zu Berlin {berkholz,keppelej,schweika}@informatik.hu-berlin.de February 22, 207 arxiv:702.06370v

More information

From Constructibility and Absoluteness to Computability and Domain Independence

From Constructibility and Absoluteness to Computability and Domain Independence From Constructibility and Absoluteness to Computability and Domain Independence Arnon Avron School of Computer Science Tel Aviv University, Tel Aviv 69978, Israel aa@math.tau.ac.il Abstract. Gödel s main

More information

On the Satisfiability of Two-Variable Logic over Data Words

On the Satisfiability of Two-Variable Logic over Data Words On the Satisfiability of Two-Variable Logic over Data Words Claire David, Leonid Libkin, and Tony Tan School of Informatics, University of Edinburgh Abstract. Data trees and data words have been studied

More information

Datalog and Constraint Satisfaction with Infinite Templates

Datalog and Constraint Satisfaction with Infinite Templates Datalog and Constraint Satisfaction with Infinite Templates Manuel Bodirsky 1 and Víctor Dalmau 2 1 CNRS/LIX, École Polytechnique, bodirsky@lix.polytechnique.fr 2 Universitat Pompeu Fabra, victor.dalmau@upf.edu

More information

Introduction to Tree Logics

Introduction to Tree Logics 1 / 26 Introduction to Tree Logics Pierre Genevès CNRS (slides mostly based on the ones by W. Martens and T. Schwentick) University of Grenoble, 2014 2015 2 / 26 Why Logic? Tree automaton algorithm Logical

More information

CHAPTER 2. FIRST ORDER LOGIC

CHAPTER 2. FIRST ORDER LOGIC CHAPTER 2. FIRST ORDER LOGIC 1. Introduction First order logic is a much richer system than sentential logic. Its interpretations include the usual structures of mathematics, and its sentences enable us

More information

Shamir s Theorem. Johannes Mittmann. Technische Universität München (TUM)

Shamir s Theorem. Johannes Mittmann. Technische Universität München (TUM) IP = PSPACE Shamir s Theorem Johannes Mittmann Technische Universität München (TUM) 4 th Joint Advanced Student School (JASS) St. Petersburg, April 2 12, 2006 Course 1: Proofs and Computers Johannes Mittmann

More information

NON-ISOMORPHISM INVARIANT BOREL QUANTIFIERS

NON-ISOMORPHISM INVARIANT BOREL QUANTIFIERS PROCEEDINGS OF THE AMERICAN MATHEMATICAL SOCIETY Volume 00, Number 0, Pages 000 000 S 0002-9939(XX)0000-0 NON-ISOMORPHISM INVARIANT BOREL QUANTIFIERS FREDRIK ENGSTRÖM AND PHILIPP SCHLICHT Abstract. Every

More information