Quine s Fluted Fragment is Non-elementary

Size: px
Start display at page:

Download "Quine s Fluted Fragment is Non-elementary"

Transcription

1 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, 2016

2 Outline

3 Fluted fragment: first identified by W.V.Quine in Order of quantification of variables matches order of appearance in predicates. Examples: No student admires every professor x 1 (student(x 1 ) x 2 (prof(x 2 ) admires(x 1, x 2 ))) No lecturer introduces any professor to every student x 1 (lecturer(x 1 ) x 2 (prof(x 2 ) x 3 (student(x 3 ) intro(x 1, x 2, x 3 )))).

4 The syntax of the fluted fragment is defined as follows. Let x 1, x 2,... be a fixed sequence of variables. The fluted fragment with k free variables, FL [k], is defined by simultaneous induction for all k: - any atom p(x l, x l+1,..., x k ) is in FL [k] ; - FL [k] is closed under Boolean operations; - FL [k] contains x k+1 ϕ and x k+1 ϕ for any ϕ FL [k+1]. The fluted fragment, FL is the union of all the FL [k]. For all m > 0, we define FL m, to be the set of fluted formulas containing at most the variables x 1,..., x m, free or bound. The allusion seems to be architectural:

5 History: Quine (1968): Skolem s proof for the monadic fragment of FOL generalizes to homogeneous m-adic formulas. Quine (1972): We can further generalize to the fluted fragment.

6 History: Quine (1968): Skolem s proof for the monadic fragment of FOL generalizes to homogeneous m-adic formulas. Quine (1972): We can further generalize to the fluted fragment. Noah (1980): Quine s further generalization invalidates Skolem s proof.

7 History: Quine (1968): Skolem s proof for the monadic fragment of FOL generalizes to homogeneous m-adic formulas. Quine (1972): We can further generalize to the fluted fragment. Noah (1980): Quine s further generalization invalidates Skolem s proof. Purdy (1996): FL has the finite model property; hence its satisfiability problem is decidable.

8 History: Quine (1968): Skolem s proof for the monadic fragment of FOL generalizes to homogeneous m-adic formulas. Quine (1972): We can further generalize to the fluted fragment. Noah (1980): Quine s further generalization invalidates Skolem s proof. Purdy (1996): FL has the finite model property; hence its satisfiability problem is decidable. Purdy (2002): FL has the exponential-sized model property; hence its satisfiability problem is in NExpTime.

9 History: Quine (1968): Skolem s proof for the monadic fragment of FOL generalizes to homogeneous m-adic formulas. Quine (1972): We can further generalize to the fluted fragment. Noah (1980): Quine s further generalization invalidates Skolem s proof. Purdy (1996): FL has the finite model property; hence its satisfiability problem is decidable. Purdy (2002): FL has the exponential-sized model property; hence its satisfiability problem is in NExpTime. The claims in Purdy 2002 are false.

10 In fact, satisfiable formulas of FL 2m force models of m-tuply exponential size, that is, of size bounded below by a function where p is a polynomial....2p( ϕ ) m 2 s 2 = t(m, p( ϕ )) Essentially the same construction shows that the satisfiability problem for FL 2m is m-nexptime-hard. On the other hand, we also show that any satisfiable formula of FL m has a model of m-tuply exponential size; hence, the satisfiability problem for FL m is in m-nexptime. Therefore, for m 1, the complexity of the satisfiability problem for FL m lies between m/2 -NExpTime-hard and m-nexptime.

11 Outline

12 For any z 1, the canonical representation of any integer n (0 n < 2 z 1) is its conventional binary encoding s z 1,..., s 0. For n in this range, to compute n 1 mod 2 z : for all i (0 < i < z), flip the ith digit of n just in case all digits of n less significant than the ith are 0. Let int 1 and p 0,..., p n 1 be unary predicates. We refer to any object b satisfying int 1 (in some structure) as a 1-integer. Define val 1 (b) to be the integer s n 1,..., s 0, where, for all i (0 i < n), { 1 if A = p i [b]; s i = 0 otherwise.

13 We can easily force a binary predicate pred 1 to denote the predecessor relation for 1-integers: x 1 x 2 pred 1 (x 1, x 2 ) n 1 i=0 0 j<i p i (x 1 ) [p i (x 1 ) p i (x 2 )] Suppose a structure A also makes the following true: x 1 int 1 (x 1 ) x 1 (int 1 (x 1 ) x 2 (int 1 (x 2 ) pred 1 (x 1, x 2 ))). Then A contains 1-integers with all values in the range [0, 2 n 1], whence A 2 n.

14 The above formula defining pred 1 is not fluted; but we can make it so using a trick. We shadow the unary predicates p 0,..., p n 1 with binary predicates p0 1,..., p1 n 1, and write, for all i (0 i < n) x 1 (p i (x 1 ) x 2.p 1 i (x 1, x 2 )) x 1 ( p i (x 1 ) x 2 p 1 i (x 1, x 2 )) Now we can perform a simple replacement x 1 x 2 pred 1 (x 1, x 2 ) n 1 i=0 0 j<i p i (x 1 ) [p i (x 1 ) p i (x 2 )]

15 The above formula defining pred 1 is not fluted; but we can make it so using a trick. We shadow the unary predicates p 0,..., p n 1 with binary predicates p0 1,..., p1 n 1, and write, for all i (0 i < n) x 1 (p i (x 1 ) x 2.p 1 i (x 1, x 2 )) x 1 ( p i (x 1 ) x 2 p 1 i (x 1, x 2 )) Now we can perform a simple replacement x 1 x 2 pred 1 (x 1, x 2 ) n 1 i=0 0 j<i p i (x 1 ) [p i (x 1 ) p i (x 2 )]

16 The above formula defining pred 1 is not fluted; but we can make it so using a trick. We shadow the unary predicates p 0,..., p n 1 with binary predicates p0 1,..., p1 n 1, and write, for all i (0 i < n) x 1 (p i (x 1 ) x 2.p 1 i (x 1, x 2 )) x 1 ( p i (x 1 ) x 2 p 1 i (x 1, x 2 )) Now we can perform a simple replacement x 1 x 2 pred 1 (x 1, x 2 ) n 1 i=0 0 j<i pi 1 (x 1, x 2 ) [ pi 1 (x 1, x 2 ) p i (x 2 ) ]

17 By writing further fluted formulas, we can fix the predicates zero 1 and eq 1 such that, for all 1-integers b and b :1 A = zero 1 [b] val 1 (b ) = 0 A = eq 1 [b, b ] val 1 (b ) = val 1 (b). Actually, if eq 1,l is a l + 2-ary predicate, we can write fluted formulas ensuring A = eq 1,l [b, c 1,..., c l, b ] val 1 (b ) = val 1 (b). That is, we can insert semantically inert arguments into the equality predicate.

18 We introduce a unary predicate int 2 ; any object satisfying int 2 in a model of interest will be call a 2-integer. We also introduce a binary predicate in 1 relating 1- and 2-integers. a 2 n 1 val 2 (b) = val 1 (a i ) = i a 2 a 1 b a 0 For any 2-integer b, define val 2 (b) to be the integer in the range [0, 2 2n 1] canonically represented by the 2 n -element bit-string s 2 n 1,..., s 0, where, for all i (0 i < 2 n ), { 1 if A = in 1 [a, b] for some 1-integer a s.t. val 1 (a) = i; s i = 0 otherwise.

19 We have to be a bit careful here: we want any 2-integer b in some structure A to satisfy a harmony requirement: If a and a are 1-integers with val 1 (a) = val 1 (a ) then A = in 1 [a, b] iff A = in 1 [a, b]. a 2 n val 2 (b) = val 1 (a i ) = i a 2 a 1 b a 0 We can do this by writing the (non-fluted) formula x 1 x 1x 2 (eq 1 (x 1, x 1) (in 1 (x 1, x 2 ) in 1 (x 1, x 2 ))).

20 Can we harmonize 2-integers using fluted formulas? Yes, provided that we represent them as mirrored structures related to 1-integers via the binary predicates in 1 and out 1, satisfying the strengthened harmony requirement: For any 2-integer b and 1-integers a, a val 1 (a) = val 1 (a ) implies A = in 1 [a, b] A = out 1 [b, a ]. a 2 n 1 a 2 a 1 a 0. val 2 (b) = b in 1 out 1 a 2 n 1 a 2 a 1 a 0

21 This harmony requirement is easily enforced by fluted formulas. Remember eq 1,1 (x 1, x 2, x 3 ) is to be read as val 1 (x 1 ) = val 1 (x 3 ). We then write: x 1 (int 1 (x 1 ) x 2 (int 2 (x 2 ) in 1 (x 1, x 2 ) x 3 (int 1 (x 3 ) eq 1,1 (x 1, x 2, x 3 ) out 1 (x 2, x 3 )))). eq 1,1 b a a in 1 out 1

22 This harmony requirement is easily enforced by fluted formulas. Remember eq 1,1 (x 1, x 2, x 3 ) is to be read as val 1 (x 1 ) = val 1 (x 3 ). We then write: x 1 (int 1 (x 1 ) x 2 (int 2 (x 2 ) in 1 (x 1, x 2 ) x 3 (int 1 (x 3 ) eq 1,1 (x 1, x 2, x 3 ) out 1 (x 2, x 3 )))). eq 1,1 b a a in 1 out 1

23 These mirrored structures allow us to sat that the 2-integers b and b are equal, in a particular digit (represented by a 1-integer a): eq 1,2 b b a a in 1 out 1 and hence we can define an equality predicate eq 2 for 2-integers. (We need four variables.) And of course we can insert l semantically inert arguments eq 2,l b b a in a 1 out 1 (for which we need 4 + l variables).

24 Can we now define a decrement relation on 2-integers? We first introduce a binary predicate in 1(x 1, x 2 ), and say: if zero 1 (x 1 ) then in 1(x 1, x 2 ); otherwise, if pred 1 (x 1, x 1 ) then in 1(x 1, x 2 ) iff in 1(x 1, x 2) and in 1 (x 1, x 2). Now we can define pred 2 (x 1, x 2 ), by writing a fluted formula saying: for all 1-integers y, in 1 (y, x 1 ) and in 1 (y, x 2 ) differ in truth-value just in case in 1(y, x 1 ). By writing x 1.int 2 (x 1 ) x 1 (int 2 (x 1 ) x 2 (int 2 (x 2 ) pred 2 (x 1, x 2 ))), we can enforce models of size 2 2n = t(2, n).

25 This process can be continued, to build 3-integers, with values up to 2 22n 1:. 2 2n 1. val 3 (b) = n b in 2 out in 1 out 1. Thus, we can force models of size 2 22n appear to need six variables. = t(3, n). But we

26 In this way, we can construct, in time bounded by a polynomial function of m and n, a (finitely) satisfiable formula Φ m,n of FL 2m featuring int m, such that any model of ϕ has cardinality at least t(m, n). Hence, there is no elementary bound on the sizes of models forced by satisfiable formulas of FL. A simple modification of this argument shows that FL 2m is m-nexptime-hard. Hence, the satisfiability problem for FL is not elementary. Purdy s (2002) bound of NExpTime is wrong.

27 Outline

28 We employ a fluted analogue of Hintikka constituents. An atomic fluted m-type is a maximal consistent conjunction of fluted literals in FL [m], e.g.: p(x 3 ) q(x 2, x 3 ) r(x 1, x 2, x 3 ) is an atomic fluted 3-type over the signature p/1, q/2, r/3. A fluted (m, m)-constituent is an atomic fluted m-type. Let k satisfy m > k 0. A fluted (k, m)-constituent is a formula λ = t(x 1,..., x k ) x k+1.λ x k+1 λ, λ Λ λ Λ where t is an atomic fluted k-type and Λ is some set of fluted (k + 1, m)-constituents, and t is a atomic fluted k-type.

29 Fluted constituents have analogous properties to Hintikka constituents. In particular, in any structure A, for any m > 0, there exists a unique (0, m)-fluted constituent true in A, denoted fc A m[ ]. It is useful to think of a fluted constituent λ = t(x 1,..., x k ) x k+1.λ x k+1.λ, λ Λ λ Λ as a (labelled) tree in which t is the label of the root and the λ Λ are the top-level daughters.

30 The following property of fluted constituents is a bit less obvious. If λ is a fluted (k, m)-constituent and k > 0, define λ to be the formula obtained by deleting all literals of λ containing x 1 and then shifting remaining variables left, i.e. replacing each variable x i+1 by x i, for i > 1. Then λ is a fluted (k 1, m 1)-constituent. Call λ the pull-back of λ.

31 Thus, the fluted constituent fc A m[ ] forms a kind of double-tree whose vertices, at level k, are labelled by realized fluted (k, m)-constituents. fc A m[ ] level k 1 level k level k + 1 f w g g f... These two trees obey a confluence property: g(f 1 (w)) f 1 (g(w)).

32 Thus, the fluted constituent fc A m[ ] forms a kind of double-tree whose vertices, at level k, are labelled by realized fluted (k, m)-constituents. fc A m[ ] level k 1 level k level k + 1 f w g g f... These two trees obey a confluence property: g(f 1 (w)) = f 1 (g(w)). By duplicating nodes, we can ensure that every non-leaf vertex is at the end of some g-arrow.

33 Given any such double tree (with this property), we can generate a structure realizing exactly the given fluted (k, m)-constituents. The domain of this structure coinsists of the set of leaves of the tree and so is bounded by t(m, p( ϕ )). We can check from the double tree alone whether the corresponding structure satisfies ϕ. Any satisfiable formula of FL m has a model of m-tuply exponential size; hence, the satisfiability problem for FL m is in m-nexptime.

34 Outline

35 The complexity of the satisfiability problem for FL m lies between m/2 -NExpTime-hard and m-nexptime. For m 3, we can improve the upper bound to (m 2)-NExpTime with a little effort. Also, FL 1 is in NPTime, and FL 2 is in NExpTime. Thus, for m 4, we have tight bounds of m/2 -NExpTime-complete; but still have a gap when m 5. Despite considerable effort, we have not been able to close this gap.

Quine s Fluted Fragment is Non-elementary

Quine s Fluted Fragment is Non-elementary Quine s Fluted Fragment is Non-elementary Ian Pratt-Hartmann 1, Wiesław Szwast 2, and Lidia Tendera 2 1 School of Computer Science, University of Manchester, UK ipratt@cs.man.ac.uk 2 Institute of Mathematics

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 School of Computer Science, University of Manchester, UK ipratt@cs.man.ac.uk Wiesław Szwast Lidia Tendera Institute of Mathematics and Informatics

More information

Logics with Counting. Ian Pratt-Hartmann School of Computer Science University of Manchester Manchester M13 9PL, UK

Logics with Counting. Ian Pratt-Hartmann School of Computer Science University of Manchester Manchester M13 9PL, UK Logics with Counting Ian Pratt-Hartmann School of Computer Science University of Manchester Manchester M13 9PL, UK 2 Chapter 1 Introduction It is well-known that first-order logic is able to express facts

More information

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig

First-Order Logic First-Order Theories. Roopsha Samanta. Partly based on slides by Aaron Bradley and Isil Dillig First-Order Logic First-Order Theories Roopsha Samanta Partly based on slides by Aaron Bradley and Isil Dillig Roadmap Review: propositional logic Syntax and semantics of first-order logic (FOL) Semantic

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

Comp487/587 - Boolean Formulas

Comp487/587 - Boolean Formulas Comp487/587 - Boolean Formulas 1 Logic and SAT 1.1 What is a Boolean Formula Logic is a way through which we can analyze and reason about simple or complicated events. In particular, we are interested

More information

Tecniche di Verifica. Introduction to Propositional Logic

Tecniche di Verifica. Introduction to Propositional Logic Tecniche di Verifica Introduction to Propositional Logic 1 Logic A formal logic is defined by its syntax and semantics. Syntax An alphabet is a set of symbols. A finite sequence of these symbols is called

More information

20.1 2SAT. CS125 Lecture 20 Fall 2016

20.1 2SAT. CS125 Lecture 20 Fall 2016 CS125 Lecture 20 Fall 2016 20.1 2SAT We show yet another possible way to solve the 2SAT problem. Recall that the input to 2SAT is a logical expression that is the conunction (AND) of a set of clauses,

More information

Lecture 7. Logic. Section1: Statement Logic.

Lecture 7. Logic. Section1: Statement Logic. Ling 726: Mathematical Linguistics, Logic, Section : Statement Logic V. Borschev and B. Partee, October 5, 26 p. Lecture 7. Logic. Section: Statement Logic.. Statement Logic..... Goals..... Syntax of Statement

More information

CSE507. Satisfiability Modulo Theories. Computer-Aided Reasoning for Software. Emina Torlak

CSE507. Satisfiability Modulo Theories. Computer-Aided Reasoning for Software. Emina Torlak Computer-Aided Reasoning for Software CSE507 Satisfiability Modulo Theories courses.cs.washington.edu/courses/cse507/18sp/ Emina Torlak emina@cs.washington.edu Today Last lecture Practical applications

More information

First-Order Logic (FOL)

First-Order Logic (FOL) First-Order Logic (FOL) Also called Predicate Logic or Predicate Calculus 2. First-Order Logic (FOL) FOL Syntax variables x, y, z, constants a, b, c, functions f, g, h, terms variables, constants or n-ary

More information

Essential facts about NP-completeness:

Essential facts about NP-completeness: CMPSCI611: NP Completeness Lecture 17 Essential facts about NP-completeness: Any NP-complete problem can be solved by a simple, but exponentially slow algorithm. We don t have polynomial-time solutions

More information

Propositional Logic: Models and Proofs

Propositional Logic: Models and Proofs Propositional Logic: Models and Proofs C. R. Ramakrishnan CSE 505 1 Syntax 2 Model Theory 3 Proof Theory and Resolution Compiled at 11:51 on 2016/11/02 Computing with Logic Propositional Logic CSE 505

More information

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65

Undecidable Problems. Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, / 65 Undecidable Problems Z. Sawa (TU Ostrava) Introd. to Theoretical Computer Science May 12, 2018 1/ 65 Algorithmically Solvable Problems Let us assume we have a problem P. If there is an algorithm solving

More information

Predicate Calculus - Syntax

Predicate Calculus - Syntax Predicate Calculus - Syntax Lila Kari University of Waterloo Predicate Calculus - Syntax CS245, Logic and Computation 1 / 26 The language L pred of Predicate Calculus - Syntax L pred, the formal language

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

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions CS 6743 Lecture 15 1 Fall 2007 1 Circuit Complexity 1.1 Definitions A Boolean circuit C on n inputs x 1,..., x n is a directed acyclic graph (DAG) with n nodes of in-degree 0 (the inputs x 1,..., x n ),

More information

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies

Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies Logic as a Tool Chapter 1: Understanding Propositional Logic 1.1 Propositions and logical connectives. Truth tables and tautologies Valentin Stockholm University September 2016 Propositions Proposition:

More information

Logic: The Big Picture

Logic: The Big Picture Logic: The Big Picture A typical logic is described in terms of syntax: what are the legitimate formulas semantics: under what circumstances is a formula true proof theory/ axiomatization: rules for proving

More information

1 PSPACE-Completeness

1 PSPACE-Completeness CS 6743 Lecture 14 1 Fall 2007 1 PSPACE-Completeness Recall the NP-complete problem SAT: Is a given Boolean formula φ(x 1,..., x n ) satisfiable? The same question can be stated equivalently as: Is the

More information

Automata, Logic and Games: Theory and Application

Automata, Logic and Games: Theory and Application Automata, Logic and Games: Theory and Application 1. Büchi Automata and S1S Luke Ong University of Oxford TACL Summer School University of Salerno, 14-19 June 2015 Luke Ong Büchi Automata & S1S 14-19 June

More information

Reduced Ordered Binary Decision Diagrams

Reduced Ordered Binary Decision Diagrams Reduced Ordered Binary Decision Diagrams Lecture #12 of Advanced Model Checking Joost-Pieter Katoen Lehrstuhl 2: Software Modeling & Verification E-mail: katoen@cs.rwth-aachen.de December 13, 2016 c JPK

More information

Intro to Theory of Computation

Intro to Theory of Computation Intro to Theory of Computation LECTURE 25 Last time Class NP Today Polynomial-time reductions Adam Smith; Sofya Raskhodnikova 4/18/2016 L25.1 The classes P and NP P is the class of languages decidable

More information

CS156: The Calculus of Computation Zohar Manna Winter 2010

CS156: The Calculus of Computation Zohar Manna Winter 2010 Page 3 of 35 Page 4 of 35 quantifiers CS156: The Calculus of Computation Zohar Manna Winter 2010 Chapter 2: First-Order Logic (FOL) existential quantifier x. F [x] there exists an x such that F [x] Note:

More information

CS6840: Advanced Complexity Theory Mar 29, Lecturer: Jayalal Sarma M.N. Scribe: Dinesh K.

CS6840: Advanced Complexity Theory Mar 29, Lecturer: Jayalal Sarma M.N. Scribe: Dinesh K. CS684: Advanced Complexity Theory Mar 29, 22 Lecture 46 : Size lower bounds for AC circuits computing Parity Lecturer: Jayalal Sarma M.N. Scribe: Dinesh K. Theme: Circuit Complexity Lecture Plan: Proof

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

Theory of Computation

Theory of Computation Theory of Computation Dr. Sarmad Abbasi Dr. Sarmad Abbasi () Theory of Computation / Lecture 3: Overview Decidability of Logical Theories Presburger arithmetic Decidability of Presburger Arithmetic Dr.

More information

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory

Motivation. CS389L: Automated Logical Reasoning. Lecture 10: Overview of First-Order Theories. Signature and Axioms of First-Order Theory Motivation CS389L: Automated Logical Reasoning Lecture 10: Overview of First-Order Theories Işıl Dillig Last few lectures: Full first-order logic In FOL, functions/predicates are uninterpreted (i.e., structure

More information

Quantified Boolean Formulas Part 1

Quantified Boolean Formulas Part 1 Quantified Boolean Formulas Part 1 Uwe Egly Knowledge-Based Systems Group Institute of Information Systems Vienna University of Technology Results of the SAT 2009 application benchmarks for leading solvers

More information

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler

Database Theory VU , SS Complexity of Query Evaluation. Reinhard Pichler Database Theory Database Theory VU 181.140, SS 2018 5. Complexity of Query Evaluation Reinhard Pichler Institut für Informationssysteme Arbeitsbereich DBAI Technische Universität Wien 17 April, 2018 Pichler

More information

Limitations of Algorithm Power

Limitations of Algorithm Power Limitations of Algorithm Power Objectives We now move into the third and final major theme for this course. 1. Tools for analyzing algorithms. 2. Design strategies for designing algorithms. 3. Identifying

More information

Incomplete version for students of easllc2012 only. 6.6 The Model Existence Game 99

Incomplete version for students of easllc2012 only. 6.6 The Model Existence Game 99 98 First-Order Logic 6.6 The Model Existence Game In this section we learn a new game associated with trying to construct a model for a sentence or a set of sentences. This is of fundamental importance

More information

Lecture 15 - NP Completeness 1

Lecture 15 - NP Completeness 1 CME 305: Discrete Mathematics and Algorithms Instructor: Professor Aaron Sidford (sidford@stanford.edu) February 29, 2018 Lecture 15 - NP Completeness 1 In the last lecture we discussed how to provide

More information

CS21 Decidability and Tractability

CS21 Decidability and Tractability CS21 Decidability and Tractability Lecture 20 February 23, 2018 February 23, 2018 CS21 Lecture 20 1 Outline the complexity class NP NP-complete probelems: Subset Sum NP-complete problems: NAE-3-SAT, max

More information

Lecture 21: Algebraic Computation Models

Lecture 21: Algebraic Computation Models princeton university cos 522: computational complexity Lecture 21: Algebraic Computation Models Lecturer: Sanjeev Arora Scribe:Loukas Georgiadis We think of numerical algorithms root-finding, gaussian

More information

AAA615: Formal Methods. Lecture 2 First-Order Logic

AAA615: Formal Methods. Lecture 2 First-Order Logic AAA615: Formal Methods Lecture 2 First-Order Logic Hakjoo Oh 2017 Fall Hakjoo Oh AAA615 2017 Fall, Lecture 2 September 24, 2017 1 / 29 First-Order Logic An extension of propositional logic with predicates,

More information

DRAFT. Algebraic computation models. Chapter 14

DRAFT. Algebraic computation models. Chapter 14 Chapter 14 Algebraic computation models Somewhat rough We think of numerical algorithms root-finding, gaussian elimination etc. as operating over R or C, even though the underlying representation of the

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

Cardinality Networks: a Theoretical and Empirical Study

Cardinality Networks: a Theoretical and Empirical Study Constraints manuscript No. (will be inserted by the editor) Cardinality Networks: a Theoretical and Empirical Study Roberto Asín, Robert Nieuwenhuis, Albert Oliveras, Enric Rodríguez-Carbonell Received:

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

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories

Halting and Equivalence of Program Schemes in Models of Arbitrary Theories Halting and Equivalence of Program Schemes in Models of Arbitrary Theories Dexter Kozen Cornell University, Ithaca, New York 14853-7501, USA, kozen@cs.cornell.edu, http://www.cs.cornell.edu/~kozen In Honor

More information

CSCI3390-Second Test with Solutions

CSCI3390-Second Test with Solutions CSCI3390-Second Test with Solutions April 26, 2016 Each of the 15 parts of the problems below is worth 10 points, except for the more involved 4(d), which is worth 20. A perfect score is 100: if your score

More information

On the Complexity of the Reflected Logic of Proofs

On the Complexity of the Reflected Logic of Proofs On the Complexity of the Reflected Logic of Proofs Nikolai V. Krupski Department of Math. Logic and the Theory of Algorithms, Faculty of Mechanics and Mathematics, Moscow State University, Moscow 119899,

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

TECHNISCHE UNIVERSITEIT EINDHOVEN Faculteit Wiskunde en Informatica. Final exam Logic & Set Theory (2IT61) (correction model)

TECHNISCHE UNIVERSITEIT EINDHOVEN Faculteit Wiskunde en Informatica. Final exam Logic & Set Theory (2IT61) (correction model) TECHNISCHE UNIVERSITEIT EINDHOVEN Faculteit Wiskunde en Informatica Final exam Logic & Set Theory (2IT61) (correction model) Thursday November 4, 2016, 9:00 12:00 hrs. (2) 1. Determine whether the abstract

More information

A An Overview of Complexity Theory for the Algorithm Designer

A An Overview of Complexity Theory for the Algorithm Designer A An Overview of Complexity Theory for the Algorithm Designer A.1 Certificates and the class NP A decision problem is one whose answer is either yes or no. Two examples are: SAT: Given a Boolean formula

More information

Boolean Algebra and Digital Logic

Boolean Algebra and Digital Logic All modern digital computers are dependent on circuits that implement Boolean functions. We shall discuss two classes of such circuits: Combinational and Sequential. The difference between the two types

More information

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas.

3. Only sequences that were formed by using finitely many applications of rules 1 and 2, are propositional formulas. 1 Chapter 1 Propositional Logic Mathematical logic studies correct thinking, correct deductions of statements from other statements. Let us make it more precise. A fundamental property of a statement is

More information

Herbrand Theorem, Equality, and Compactness

Herbrand Theorem, Equality, and Compactness CSC 438F/2404F Notes (S. Cook and T. Pitassi) Fall, 2014 Herbrand Theorem, Equality, and Compactness The Herbrand Theorem We now consider a complete method for proving the unsatisfiability of sets of first-order

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

Exercises 1 - Solutions

Exercises 1 - Solutions Exercises 1 - Solutions SAV 2013 1 PL validity For each of the following propositional logic formulae determine whether it is valid or not. If it is valid prove it, otherwise give a counterexample. Note

More information

Lecture 18: More NP-Complete Problems

Lecture 18: More NP-Complete Problems 6.045 Lecture 18: More NP-Complete Problems 1 The Clique Problem a d f c b e g Given a graph G and positive k, does G contain a complete subgraph on k nodes? CLIQUE = { (G,k) G is an undirected graph with

More information

The Class NP. NP is the problems that can be solved in polynomial time by a nondeterministic machine.

The Class NP. NP is the problems that can be solved in polynomial time by a nondeterministic machine. The Class NP NP is the problems that can be solved in polynomial time by a nondeterministic machine. NP The time taken by nondeterministic TM is the length of the longest branch. The collection of all

More information

Lecture 4: Proposition, Connectives and Truth Tables

Lecture 4: Proposition, Connectives and Truth Tables Discrete Mathematics (II) Spring 2017 Lecture 4: Proposition, Connectives and Truth Tables Lecturer: Yi Li 1 Overview In last lecture, we give a brief introduction to mathematical logic and then redefine

More information

Notes on Computer Theory Last updated: November, Circuits

Notes on Computer Theory Last updated: November, Circuits Notes on Computer Theory Last updated: November, 2015 Circuits Notes by Jonathan Katz, lightly edited by Dov Gordon. 1 Circuits Boolean circuits offer an alternate model of computation: a non-uniform one

More information

NP and Computational Intractability

NP and Computational Intractability NP and Computational Intractability 1 Polynomial-Time Reduction Desiderata'. Suppose we could solve X in polynomial-time. What else could we solve in polynomial time? don't confuse with reduces from Reduction.

More information

Computer Science 385 Analysis of Algorithms Siena College Spring Topic Notes: Limitations of Algorithms

Computer Science 385 Analysis of Algorithms Siena College Spring Topic Notes: Limitations of Algorithms Computer Science 385 Analysis of Algorithms Siena College Spring 2011 Topic Notes: Limitations of Algorithms We conclude with a discussion of the limitations of the power of algorithms. That is, what kinds

More information

NP-Completeness. Algorithmique Fall semester 2011/12

NP-Completeness. Algorithmique Fall semester 2011/12 NP-Completeness Algorithmique Fall semester 2011/12 1 What is an Algorithm? We haven t really answered this question in this course. Informally, an algorithm is a step-by-step procedure for computing a

More information

Geometric Steiner Trees

Geometric Steiner Trees Geometric Steiner Trees From the book: Optimal Interconnection Trees in the Plane By Marcus Brazil and Martin Zachariasen Part 3: Computational Complexity and the Steiner Tree Problem Marcus Brazil 2015

More information

Lecture 4 : Quest for Structure in Counting Problems

Lecture 4 : Quest for Structure in Counting Problems CS6840: Advanced Complexity Theory Jan 10, 2012 Lecture 4 : Quest for Structure in Counting Problems Lecturer: Jayalal Sarma M.N. Scribe: Dinesh K. Theme: Between P and PSPACE. Lecture Plan:Counting problems

More information

Propositional and Predicate Logic - II

Propositional and Predicate Logic - II Propositional and Predicate Logic - II Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - II WS 2016/2017 1 / 16 Basic syntax Language Propositional logic

More information

Computational Intractability 2010/4/15. Lecture 2

Computational Intractability 2010/4/15. Lecture 2 Computational Intractability 2010/4/15 Professor: David Avis Lecture 2 Scribe:Naoki Hatta 1 P and NP 1.1 Definition of P and NP Decision problem it requires yes/no answer. Example: X is a set of strings.

More information

A RESOLUTION DECISION PROCEDURE FOR SHOIQ

A RESOLUTION DECISION PROCEDURE FOR SHOIQ A RESOLUTION DECISION PROCEDURE FOR SHOIQ Yevgeny Kazakov and Boris Motik The University of Manchester August 20, 2006 SHOIQ IS A DESCRIPTION LOGIC! Yevgeny Kazakov and Boris Motik A Resolution Decision

More information

Propositional Logic: Part II - Syntax & Proofs 0-0

Propositional Logic: Part II - Syntax & Proofs 0-0 Propositional Logic: Part II - Syntax & Proofs 0-0 Outline Syntax of Propositional Formulas Motivating Proofs Syntactic Entailment and Proofs Proof Rules for Natural Deduction Axioms, theories and theorems

More information

Predicate Logic: Sematics Part 1

Predicate Logic: Sematics Part 1 Predicate Logic: Sematics Part 1 CS402, Spring 2018 Shin Yoo Predicate Calculus Propositional logic is also called sentential logic, i.e. a logical system that deals with whole sentences connected with

More information

Limits to Approximability: When Algorithms Won't Help You. Note: Contents of today s lecture won t be on the exam

Limits to Approximability: When Algorithms Won't Help You. Note: Contents of today s lecture won t be on the exam Limits to Approximability: When Algorithms Won't Help You Note: Contents of today s lecture won t be on the exam Outline Limits to Approximability: basic results Detour: Provers, verifiers, and NP Graph

More information

1.1 P, NP, and NP-complete

1.1 P, NP, and NP-complete CSC5160: Combinatorial Optimization and Approximation Algorithms Topic: Introduction to NP-complete Problems Date: 11/01/2008 Lecturer: Lap Chi Lau Scribe: Jerry Jilin Le This lecture gives a general introduction

More information

Lecture 13: Soundness, Completeness and Compactness

Lecture 13: Soundness, Completeness and Compactness Discrete Mathematics (II) Spring 2017 Lecture 13: Soundness, Completeness and Compactness Lecturer: Yi Li 1 Overview In this lecture, we will prvoe the soundness and completeness of tableau proof system,

More information

The Complexity of Optimization Problems

The Complexity of Optimization Problems The Complexity of Optimization Problems Summary Lecture 1 - Complexity of algorithms and problems - Complexity classes: P and NP - Reducibility - Karp reducibility - Turing reducibility Uniform and logarithmic

More information

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007)

Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007) Department of Computer Science University at Albany, State University of New York Solutions to Sample Discrete Mathematics Examination II (Fall 2007) Problem 1: Specify two different predicates P (x) and

More information

CS156: The Calculus of Computation

CS156: The Calculus of Computation Page 1 of 31 CS156: The Calculus of Computation Zohar Manna Winter 2010 Chapter 3: First-Order Theories Page 2 of 31 First-Order Theories I First-order theory T consists of Signature Σ T - set of constant,

More information

Conjunctive Normal Form and SAT

Conjunctive Normal Form and SAT Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca October 4, 2015 These notes are a preliminary draft. Please use freely, but do not re-distribute

More information

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem. 1 More on NP In this set of lecture notes, we examine the class NP in more detail. We give a characterization of NP which justifies the guess and verify paradigm, and study the complexity of solving search

More information

CSE 20. Lecture 4: Introduction to Boolean algebra. CSE 20: Lecture4

CSE 20. Lecture 4: Introduction to Boolean algebra. CSE 20: Lecture4 CSE 20 Lecture 4: Introduction to Boolean algebra Reminder First quiz will be on Friday (17th January) in class. It is a paper quiz. Syllabus is all that has been done till Wednesday. If you want you may

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

Part V. Intractable Problems

Part V. Intractable Problems Part V Intractable Problems 507 Chapter 16 N P-Completeness Up to now, we have focused on developing efficient algorithms for solving problems. The word efficient is somewhat subjective, and the degree

More information

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k.

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k. Complexity Theory Problems are divided into complexity classes. Informally: So far in this course, almost all algorithms had polynomial running time, i.e., on inputs of size n, worst-case running time

More information

Conjunctive Normal Form and SAT

Conjunctive Normal Form and SAT Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca September 10, 2014 These notes are a preliminary draft. Please use freely, but do not re-distribute

More information

Lecturecise 22 Weak monadic second-order theory of one successor (WS1S)

Lecturecise 22 Weak monadic second-order theory of one successor (WS1S) Lecturecise 22 Weak monadic second-order theory of one successor (WS1S) 2013 Reachability in the Heap Many programs manipulate linked data structures (lists, trees). To express many important properties

More information

TheTwo-VariableGuardedFragmentwith Transitive Guards Is 2EXPTIME-Hard

TheTwo-VariableGuardedFragmentwith Transitive Guards Is 2EXPTIME-Hard TheTwo-VariableGuardedFragmentwith Transitive Guards Is 2EXPTIME-Hard Emanuel Kieroński Institute of Computer Science University of Wroc law ul. Przesmyckiego 20, 51-151 Wroc law, Poland kiero@ii.uni.wroc.pl

More information

Theory of Computation

Theory of Computation Theory of Computation Prof. Michael Mascagni Florida State University Department of Computer Science 1 / 33 This course aims to cover... the development of computability theory using an extremely simple

More information

CS 70 Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand Midterm 1 Solutions

CS 70 Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand Midterm 1 Solutions CS 70 Discrete Mathematics and Probability Theory Fall 2016 Seshia and Walrand Midterm 1 Solutions PRINT Your Name: Answer: Oski Bear SIGN Your Name: PRINT Your Student ID: CIRCLE your exam room: Dwinelle

More information

Conjunctive Normal Form and SAT

Conjunctive Normal Form and SAT Notes on Satisfiability-Based Problem Solving Conjunctive Normal Form and SAT David Mitchell mitchell@cs.sfu.ca September 19, 2013 This is a preliminary draft of these notes. Please do not distribute without

More information

CVO103: Programming Languages. Lecture 2 Inductive Definitions (2)

CVO103: Programming Languages. Lecture 2 Inductive Definitions (2) CVO103: Programming Languages Lecture 2 Inductive Definitions (2) Hakjoo Oh 2018 Spring Hakjoo Oh CVO103 2018 Spring, Lecture 2 March 13, 2018 1 / 20 Contents More examples of inductive definitions natural

More information

Reduced Ordered Binary Decision Diagrams

Reduced Ordered Binary Decision Diagrams Reduced Ordered Binary Decision Diagrams Lecture #13 of Advanced Model Checking Joost-Pieter Katoen Lehrstuhl 2: Software Modeling & Verification E-mail: katoen@cs.rwth-aachen.de June 5, 2012 c JPK Switching

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

Propositional and Predicate Logic - XIII

Propositional and Predicate Logic - XIII Propositional and Predicate Logic - XIII Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - XIII WS 2016/2017 1 / 22 Undecidability Introduction Recursive

More information

Propositional Logic. What is discrete math? Tautology, equivalence, and inference. Applications

Propositional Logic. What is discrete math? Tautology, equivalence, and inference. Applications What is discrete math? Propositional Logic The real numbers are continuous in the senses that: between any two real numbers there is a real number The integers do not share this property. In this sense

More information

P, NP, NP-Complete, and NPhard

P, NP, NP-Complete, and NPhard P, NP, NP-Complete, and NPhard Problems Zhenjiang Li 21/09/2011 Outline Algorithm time complicity P and NP problems NP-Complete and NP-Hard problems Algorithm time complicity Outline What is this course

More information

The Query Containment Problem: Set Semantics vs. Bag Semantics. Phokion G. Kolaitis University of California Santa Cruz & IBM Research - Almaden

The Query Containment Problem: Set Semantics vs. Bag Semantics. Phokion G. Kolaitis University of California Santa Cruz & IBM Research - Almaden The Query Containment Problem: Set Semantics vs. Bag Semantics Phokion G. Kolaitis University of California Santa Cruz & IBM Research - Almaden PROBLEMS Problems worthy of attack prove their worth by hitting

More information

CS156: The Calculus of Computation

CS156: The Calculus of Computation CS156: The Calculus of Computation Zohar Manna Winter 2010 It is reasonable to hope that the relationship between computation and mathematical logic will be as fruitful in the next century as that between

More information

De Morgan s a Laws. De Morgan s laws say that. (φ 1 φ 2 ) = φ 1 φ 2, (φ 1 φ 2 ) = φ 1 φ 2.

De Morgan s a Laws. De Morgan s laws say that. (φ 1 φ 2 ) = φ 1 φ 2, (φ 1 φ 2 ) = φ 1 φ 2. De Morgan s a Laws De Morgan s laws say that (φ 1 φ 2 ) = φ 1 φ 2, (φ 1 φ 2 ) = φ 1 φ 2. Here is a proof for the first law: φ 1 φ 2 (φ 1 φ 2 ) φ 1 φ 2 0 0 1 1 0 1 1 1 1 0 1 1 1 1 0 0 a Augustus DeMorgan

More information

A brief introduction to Logic. (slides from

A brief introduction to Logic. (slides from A brief introduction to Logic (slides from http://www.decision-procedures.org/) 1 A Brief Introduction to Logic - Outline Propositional Logic :Syntax Propositional Logic :Semantics Satisfiability and validity

More information

Lecture 6: Introducing Complexity

Lecture 6: Introducing Complexity COMP26120: Algorithms and Imperative Programming Lecture 6: Introducing Complexity Ian Pratt-Hartmann Room KB2.38: email: ipratt@cs.man.ac.uk 2015 16 You need this book: Make sure you use the up-to-date

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

CONTENTS. Appendix C: Gothic Alphabet 109

CONTENTS. Appendix C: Gothic Alphabet 109 Contents 1 Sentential Logic 1 1.1 Introduction............................ 1 1.2 Sentences of Sentential Logic................... 2 1.3 Truth Assignments........................ 7 1.4 Logical Consequence.......................

More information

Lecture 4. 1 Circuit Complexity. Notes on Complexity Theory: Fall 2005 Last updated: September, Jonathan Katz

Lecture 4. 1 Circuit Complexity. Notes on Complexity Theory: Fall 2005 Last updated: September, Jonathan Katz Notes on Complexity Theory: Fall 2005 Last updated: September, 2005 Jonathan Katz Lecture 4 1 Circuit Complexity Circuits are directed, acyclic graphs where nodes are called gates and edges are called

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