Algorithms and Complexity of Constraint Satisfaction Problems (course number 3)

Size: px
Start display at page:

Download "Algorithms and Complexity of Constraint Satisfaction Problems (course number 3)"

Transcription

1 Algorithms and Complexity of Constraint Satisfaction Problems (course number 3) Nicolas (Miki) Hermann LIX, École Polytechnique Miki Hermann Algorithms and Complexity of csp (3) 1 / 48

2 General method for satisfiability testing Davis-Putnam-Logemann-Loveland (DPLL) algorithm Complete backtracking-based search algorithm for deciding the satisfiability of propositional formulas Pure literal A variable x occurring in ϕ only as a positive (resp. a negative) literal is called a pure literal. Miki Hermann Algorithms and Complexity of csp (3) 2 / 48

3 General method for satisfiability testing... DPLL algorithm Input: Propositional formula ϕ(x 1,...,x n ) in cnf. Output: 1 if ϕ is satisfiable, 0 otherwise. if ϕ = 1 then return 1 end if if ϕ = 0 then return 0 end if for all unit clauses l in ϕ do if l = x then ϕ ϕ[x 1] else ϕ ϕ[x 0] end if end for unit propagation Miki Hermann Algorithms and Complexity of csp (3) 3 / 48

4 General method for satisfiability testing... DPLL algorithm (cont) for all pure literals l in ϕ do pure literal if l = x then ϕ ϕ[x 1] else ϕ ϕ[x 0] end if end for while ϕ not simplified do simplification (optional) apply to ϕ the rules 0 x x, 1 x 1, 0 x 0, 1 x x end while x choose variable from ϕ different possible strategies return dpll(ϕ[x 0]) dpll(ϕ[x 1]) Miki Hermann Algorithms and Complexity of csp (3) 4 / 48

5 General method for satisfiability testing... dpll(ϕ(x 1,x 2,x 3 )) x 1 = 0 ϕ x 1 = 1 x 2 = 0 x 2 = 1 x 3 = 0 x 3 = 1 0/1 0/1 Miki Hermann Algorithms and Complexity of csp (3) 5 / 48

6 General method for satisfiability testing... dpll algorithm analysis (n = number of variables) Time complexity: O(2 n ) Space complexity: O(n) Other strategies to enhance sat solvers clause learning backjumping restarts Exercise 5 1 Change dpll to produce a satisfying assignment m for ϕ. 2 Change dpll to produce all satisfying assignments for ϕ. Miki Hermann Algorithms and Complexity of csp (3) 6 / 48

7 Properties of Horn relations Let us study the following Horn relation: [x y z] = {000,001,010,100,101,110,111} = R Choose two vectors m = 101 and m = 110, and compute the conjunction m m = (m[1] m [1], m[2] m [2], m[3] m [3]) coordinate by coordinate. m = 101 m = 110 m m = 100 We easily see that m m R. This is true for each couple of vectors m,m R. Miki Hermann Algorithms and Complexity of csp (3) 7 / 48

8 Properties of Horn relations The elements (vectors) of the relation [x y z] can be organized in an acyclic graph as follows, where the conjunction m m is the greatest common ancestor of m and m Miki Hermann Algorithms and Complexity of csp (3) 8 / 48

9 Conjunction of vectors Definition Let m,m {0,1} k be two boolean vectors of arity k. The conjunction m m is the vector (m[1] m [1],..., m[k] m [k]) constructed coordinate-wise by the boolean function. A boolean relation R {0,1} k is closed with respect to conjunction if for each couple of vectors m,m R we have m m R. Formally: m m (m,m R (m m ) R) Miki Hermann Algorithms and Complexity of csp (3) 9 / 48

10 Characterization of Horn formulas Theorem If ϕ is a Horn formula then the set of models [ϕ] is closed by conjunction. Proof. We will show for each clause c of ϕ the following implication: if m = c and m = c then (m m ) = c. Case analysis. 1 The clause c contains a positive literal x satisfied by m and m. Then we have m(x) = m (x) = 1, what implies (m m )(x) = 1. Hence the conjunction m m satisfies the clause c. 2 The positive literal of c is not satisfied by m and m or c does not have a positive literal. Then at least one of two models, say m, must satisfy a negative literal x of c, what implies m(x) = 0. Then we have (m m )(x) = m(x) = 0, hence the conjunction m m satisfies c. Miki Hermann Algorithms and Complexity of csp (3) 10 / 48

11 Characterization of Horn relations Question Can we prove the inverse of the previous theorem? Answer The answer is not so easy, since the general algorithm, which constructs a cnf formula for a relation, does not necessarily produce a Horn formula from a Horn relation. We will show how to transform a formula ϕ R, corresponding to a Horn relation R, into a Horn formula h(ϕ R ). Miki Hermann Algorithms and Complexity of csp (3) 11 / 48

12 Construction of Horn formulas Let ϕ R be a cnf formula, corresponding to a Horn relation R {0,1} k, produced by the general algorithm (cf. Course 2) and let c be a clause of ϕ R. Denote by c the sub-clause containing all negative literals of c. The vectors m R satisfaing a negative literal of c, also satisfy the restricted clause c. Hence, we only need to take care of the vectors of R satisfaying the positive literal but no negative literal of c. These vectors constitute the following set: We proceed by case analysis. R c = {m R m = c }. Miki Hermann Algorithms and Complexity of csp (3) 12 / 48

13 Construction of Horn formulas 1 If R c is empy, we can replace the clause c by the Horn clause h(c) = c. This operation does not change the identity [ϕ R ] = R. 2 Otherwise, note that the set R c is closed under conjunction, since the set R is already closed under the same operation. Indeed, if the vectors m and m falsify each negative literal x of c, then the conjunction m m falsifies the same literals. Therefore the set R c contains a minimal unique model m = R c. Each positive literal in c, satisfied by m, is also satisfied by all vectors in R c. Let l be a positive literal of c satisfied by m. There must be at least one, since otherwise m would falsify c and also each positive literal in c, which would imply m / R c. Hence we can replace the clause c by the Horn clause h(c) = l c and keep the identity. [ϕ R ] = R. Miki Hermann Algorithms and Complexity of csp (3) 13 / 48

14 Example The relation M = {000, 111} is Horn, since m m = m and = 000. The general algorithm constructs the complementary relation M = {0,1} 3 M = {001,010,100,011,101,110} which implies the formula ϕ M = (x y z) (x y z) ( x y z) (x y z) ( x y z) ( x y z) The first three clauses of ϕ M are not Horn. For c = (x y z) we construct c = z and M c = {111}. Hence h(c) = (x z). We obtain this way the Horn formula h(ϕ M ) = (x z) (x y) ( x y) (x y z) ( x y z) ( x y z) Miki Hermann Algorithms and Complexity of csp (3) 14 / 48

15 Construction of Horn formulas Observation By the aforementioned method we obtain a Horn formula h(ϕ R ) for each relation Horn R by replacing in ϕ R each clause c by its restriction h(c). Question Why that method does not work for every formula? Where is the hidden error? Analysis The previous algorithm transforms ϕ R into h(ϕ R ) in time O( R 2 k 2 ). There exists a more sophisticated algorithm with time complexity O( R k 2 ). Research problem Are you able to prove the lower bound Ω( R k 2 )? Miki Hermann Algorithms and Complexity of csp (3) 15 / 48

16 Construction of Horn formulas Theorem For each relation R, closed under conjunction, there exists a Horn formula ϕ R such that [ϕ R ] = R. Corollary A boolean relation R is closed under conjunction if and only if it is Horn, i.e., if there exists a Horn formula ϕ R satisfying the identity [ϕ R ] = R. Miki Hermann Algorithms and Complexity of csp (3) 16 / 48

17 Properties of dual Horn relations Let us study the following dual Horn relation: [x y z] = {000,010,011,100,101,110,111} = S Choose two vectors m = 010 et m = 101 and compute the disjunction m m = (m[1] m [1], m[2] m [2], m[3] m [3]) coordinate by coordinate m = 010 m = 101 m m = 111 It is easy to see that m m S. This is true for each couple of vectors m,m S. Miki Hermann Algorithms and Complexity of csp (3) 17 / 48

18 Properties of dual Horn relations The models of the relation [x y z] can be organized in the following acyclic graph, where the disjunction m m is the smallest common descendant of m and m Note that this graph is dual to the graph on the slide for Horn relations Miki Hermann Algorithms and Complexity of csp (3) 18 / 48

19 Disjunction of vectors Definition Let m,m {0,1} k be two boolean vectors of arity k. The disjunction m m is the vector (m[1] m [1],..., m[k] m [k]) constructed coordinatewise by the boolean function. A boolean relation R {0,1} k is closed with respect to disjonction if for each couple of vectors m,m R we have m m R. Formally: m m (m,m R (m m ) R) Miki Hermann Algorithms and Complexity of csp (3) 19 / 48

20 Characterization of dual Horn formulas Theorem If ϕ is a dual Horn formula then the set of models [ϕ] is closed under disjonction. Proof. By duality with Horn formulas. Miki Hermann Algorithms and Complexity of csp (3) 20 / 48

21 Characterization of dual Horn relations Question Can we prove the inverse of the previous theorem? Answer The answer in this case is simple because we can make use of duality. Theorem For each relation R closed under disjonction there exists a dual Horn formula ϕ R such that [ϕ R ] = R. Corollary A boolean relation R is closed under disjonction if and only if it is dual Horn, i.e., if there exists a dual Horn formula ϕ R satisfying the identity [ϕ R ] = R. Miki Hermann Algorithms and Complexity of csp (3) 21 / 48

22 Properties of bijunctive relations Let us study the following bijunctive relation: [(x y) (x z)] = {010,100,101,110,111} = S Choose three vectors m = 010, m = 101, m = 110 and compute the majority function maj(m,m,m ) = ( maj(m[1],m [1],m [1]),...,maj(m[3],m [3],m [3]) ) defined by the identities maj(0,0,0) = maj(0,0,1) = maj(0,1,0) = maj(1,0,0) = 0 maj(0,1,1) = maj(1,0,1) = maj(1,1,0) = maj(1,1,1) = 1 We see that maj(m,m,m ) S. This is true for each triplet of vectors m,m,m S. Miki Hermann Algorithms and Complexity of csp (3) 22 / 48

23 Majority of vecteurs Definition Let m,m,m {0,1} k be three boolean vectors of arity k. The majority maj(m,m,m ) is the vector ( maj(m[1],m [1],m [1]),..., maj(m[k],m [k],m [k]) ) constructed coordinatewise by the boolean function maj. A boolean relation R {0,1} k is closed under majority if for each triplet of vectors m,m,m R we have that maj(m,m,m ) R. Formally: m m m (m,m,m R maj(m,m,m ) R) Miki Hermann Algorithms and Complexity of csp (3) 23 / 48

24 Exercise 6 Prove that for each triplet of vectors m, m, m the majority function, sometimes also called median, satisfies the following identities: maj(m,m,m ) = (m m ) (m m ) (m m) = (m m ) (m m ) (m m) Attention! Do this exercise, otherwise you will have difficulties to understand the proof of the following lemma! Miki Hermann Algorithms and Complexity of csp (3) 24 / 48

25 Characterization of bijunctive formulas The closure property observed in the previous example is not accidental. To prove it, we need the following lemma. Lemma The vector maj(m,m,m ) satisfies a literal l if and only if at least two of the three vectors m, m, and m satisfy l. Proof. If the literal l is satisfied by at least two vectors, say m and m, then it is satisfied by the disjunctions (m m ), (m m ), and (m m). Hence l is satisfied by maj(m,m,m ) = (m m ) (m m ) (m m). If l is satisfied by one vector only, say m, or if l is not satisfied by any of the three vectors, then it is falsified by the disjunction (m m ). Therefore, it cannot be satisfied by maj(m,m,m ). Miki Hermann Algorithms and Complexity of csp (3) 25 / 48

26 Characterization of bijunctive formulas Theorem If ϕ is a bijunctive formula then the set of models [ϕ] is closed under majority. Proof. Given that ϕ is a conjunction of clauses, it is sufficient to prouve the closure property for one clause c = l l. Let m, m and m be three models of c. Following the Pigeonhole Principle, at least one of the two literals l and l is satisfied by at least two of the aforementioned models. Hence, according to the previous lemma, this literal as well as the clause c are satisfied by the model maj(m,m,m ). Miki Hermann Algorithms and Complexity of csp (3) 26 / 48

27 Characterization of bijunctives relations Question Can ve prove the inverse of the previous theorem? Answer The answer is constructive, as in the previous cases. The general algorithm does not necessarily construct a bijunctive formula ϕ R for a bijunctive relation R. We will show how to transform a formula ϕ R, corresponding to a bijunctive relation, into a bijunctive formula b(ϕ R ). Miki Hermann Algorithms and Complexity of csp (3) 27 / 48

28 Construction of bijunctive formulas Definition Let ϕ R be a formula in cnf, corresponding to a bijunctive relation R {0,1} k, produced by the general algorithm (cf. Course 2) and let c be a clause of ϕ R. We say that a literal l is essential is the clause c if there exists a model m R which satisfies l, but no other literal in c; we also say that m is the justification for l. Remark Of course, we can eliminate the non-essentiel literals of c without changing the identity [ϕ R ] = R. It is sufficient to show that no clause of ϕ R contains more than two essential literals. Miki Hermann Algorithms and Complexity of csp (3) 28 / 48

29 Construction of the algorithm Construction To produce a contradiction, suppose that there exists a clause c in ϕ R with at least three essential literals, say l 1, l 2, and l 3. Let m 1, m 2, and m 3 be their respective justifications, i.e., for each i we have m i = l i and m i satisfies no other literal in c. Following the Lemma, in this case maj(m 1,m 2,m 3 ) falsifies the clause c and therefore also the formula ϕ R. This is a contradiction with the hypothesis following which R = [ϕ R ] is a bijunctive relation. Miki Hermann Algorithms and Complexity of csp (3) 29 / 48

30 Algorithm The following algorithm transforms a formula ϕ R, corresponding to a bijunctive relation R, into a bijunctive formula b(ϕ R ). Algorithm for bijunctive formulas 1 Let R = {m 1,...,m p } be a bijunctive relation. For each clause c = l 1 l q of ϕ R we will fill in the table T of size R q in the following way: 1 if m i = l j, T[i,j] = 0 otherwise. 2 Using a greedy algorithm, we search for two essential literals l, l and set b(c) = l l. 3 The bijunctive formula b(ϕ R ) is the conjunction c ϕ R b(c). Miki Hermann Algorithms and Complexity of csp (3) 30 / 48

31 Analysis of the algorithm Analysis The number of literals q is bounded by the arity k of the relation R. The size of table T is therefore O( R k) and the algorithm works in time O( R nk), where n is the number of clauses of the formula ϕ R. Remark This algorithm, slightly adapted (search for all essential literals), also works for Horn relations. Exercise 7 Perform the correstness proof of this algorithm for Horn relations. Miki Hermann Algorithms and Complexity of csp (3) 31 / 48

32 Example The relation M = {000,111} is bijunctive since we have maj(000, 000, 111) = 000, maj(000, 111, 111) = 111, and maj(m,m,m) = m. The general algorithm constructs the formula ϕ M = (x y z) (x y z) ( x y z) (x y z) ( x y z) ( x y z) The tables T for the clauses c = (x y z) and c = (x y z) are x y z x y z Hence b(c) = (y z) and b(c ) = (x y). This way we get the formula b(ϕ M ) = (x y) (y z) (z x) = (y x) (z y) (x z) Miki Hermann Algorithms and Complexity of csp (3) 32 / 48

33 Bijunctive characterization The proof on the slide..., as well as the previous algorithm, imply the following result. Theorem For each relation R closed under majority there exists a bijunctive formula ϕ R such that [ϕ R ] = R. Corollary A boolean relation R is closed under majority if and only if it is bijunctive, i.e., if there exists a bijunctive formula ϕ R such that [ϕ R ] = R. Miki Hermann Algorithms and Complexity of csp (3) 33 / 48

34 Properties of affine relations Let us study the following affine relation: [x + y + z = 1] = {001,010,100,111} = S Choose three vectors m = 010, m = 100, m = 111 and compute the function affinity, also called minority or Mal tsev function aff(m,m,m ) = ( aff(m[1],m [1],m [1]),...,aff(m[3],m [3],m [3]) ) defined by aff(m,m,m ) = m + m + m mod 2 = m m + m We see that aff(m,m,m ) S. This is true for each triplet of vectors m,m,m S. Miki Hermann Algorithms and Complexity of csp (3) 34 / 48

35 Affinity or minority of vectors Definition Let m,m,m {0,1} k be three boolean vectors of arity k. The affinity or minority aff(m,m,m ) is the vector ( aff(m[1],m [1],m [1]),..., aff(m[k],m [k],m [k]) ) constructed coordinatewise by the boolean function aff. A boolean relation R {0,1} k is closed under affinity (or minority) if for each triplet of vectors m,m,m R we have aff(m,m,m ) R. Formally: m m m (m,m,m R aff(m,m,m ) R) Remark In the affine case we always work in the ring (field) (Z 2,+, ). Miki Hermann Algorithms and Complexity of csp (3) 35 / 48

36 Characterization of affine formulas The property found in the previous example is not random. Theorem If ϕ is an affine formula then the set of models [ϕ] is closed under affinity. Proof. Each affine formula corresponds to a system of linear equations A x = b over Z 2. The solutions of the system A x = b constitute an affine space A, which is a vector space V produced by the solutions of the corresponding homogeneous system A x = 0, translated by a solution a of the system A x = b. Formally: A = V + a. Each vector space is closed under addition of two vectors, i.e., a 1, a 2 V implies a 1 + a 2 V. Therefore, each affine space is closed under addition of three vectors: a,( a 1 + a),( a 2 + a) A implies ( a 1 + a) + ( a 2 + a) + a = ( a 1 + a 2 ) + a A. Miki Hermann Algorithms and Complexity of csp (3) 36 / 48

37 Characterization of affine relations Question Can we prove the inverse of the previous theorem? Answer YES, but the usual answer is not constructive. Indeed, we have the following theorem in linear algebra. Miki Hermann Algorithms and Complexity of csp (3) 37 / 48

38 Characterization of affine relations Theorem If a set of vecteurs M Z k 2 of arity k is closed under addition then M is a vector space. Corollary If a set of vectors M Z k 2 of arity k is closed under affinity then M is an affine space. Proof. It is sufficient to choose a vector m M and construct the set of vectors M = {m m m M} = {m + m m M}. The set M is an affine space if and only if M is a vector space. Miki Hermann Algorithms and Complexity of csp (3) 38 / 48

39 Characterization of affine relations Remark The proof of Corollary is not constructive and therefore it does not produce an algorithm. The constructive answer corresponds to a search for a basis of a vector space. We do not use the general algorithm followed by a transformation, as in the previous cases, but we construct directly the linear affine system A x = b. However, it is better to construct a system (I B) x = b, where I is the identity matrix. The matrix B is composed of rows B i and the element of the matrix B located on row i and column j is denoted by B j i. Miki Hermann Algorithms and Complexity of csp (3) 39 / 48

40 Characterization of affine relations Construction Let M {0,1} k be a set of boolean vectors of arity k. We must first verify if the cardinality M is equal to an power of 2, otherwise M cannot be an affine space over Z 2. In the positive case, the system (I B) x = b will have l = k log 2 M rows. Hence, I is the identity matrix of size l l and B is a matrix of size l (k l) over Z 2. The ith row of the system (I B) x = b is x i + B 1 i x l B k l i x k = b i Miki Hermann Algorithms and Complexity of csp (3) 40 / 48

41 Algorithm Algorithm for affine formulas For each row x i + Bi 1x l B k l i x k = b i, where i = 1,...,l, of the system (I B) x = b we proceed in the following way: 1 For each vector m M, substitute m for variables x, i.e., substitute m[j] for x j, j = 1,...,k. We get the following system of equations m[i] + B 1 i m[l + 1] + + B k l i m[k] = b i (1) for each m M, i.e., with 2 k l rows, where B i = (B 1 i,...,bk l i ) and b i are variables. 2 Solve the system (1) to determine the values of the row B i and of b i. Miki Hermann Algorithms and Complexity of csp (3) 41 / 48

42 Example The relation M = {000,111} is affine, because = = 111 and = = 000. The algorithm constructs the linear system (I B)(xyz) T = b with 2 rows and 3 columns: x + B 1 1z = b 1 y + B 1 2z = b 2 We substitute the models of M for variables of the previous system. The first equation produces 0 = b 1 et 1 + B 1 1 = b 1, what implies B 1 1 = 1. The second equation produces 0 = b 2 and 1 + B 1 2 = b 2, what implies B 1 2 = 1. Therefore the sought system is x + z = 0 y + z = 0 Miki Hermann Algorithms and Complexity of csp (3) 42 / 48

43 Properties of other relations Question What are the (closure) properties satisfied by the other relations which we saw during Course 2? Miki Hermann Algorithms and Complexity of csp (3) 43 / 48

44 Properties of other relations nae and negation There are two relations to consider: nae = {001, 010, 011, 100, 101, 110} 1-in-3 = {001, 010, 100} For the relation nae, choose one vector m = 010 and compute its negation m = ( m[1], m[2], m[3]) coordinatewise. We get m = 101 nae. This is true for each vector m nae. Resistance of 1-in-3 On the contrary, the relation 1-in-3 resists to any characterization tentative. Miki Hermann Algorithms and Complexity of csp (3) 44 / 48

45 Negation of vectors Definition Let m {0,1} k be a boolean vector of arity k. The negation m is the vector ( m[1],..., m[k]) constructed coordinatewise by the boolean function. A boolean relation R {0,1} k is closed under negation if for each vector m R we have m R. Formally: m(m R m R) Miki Hermann Algorithms and Complexity of csp (3) 45 / 48

46 Complementive relations Definition A relation R {0,1} k is complementive if it is closed under negation. Example The relation nae = {001, 010, 100, 110, 101, 011} is complementive. However, it is not Horn, since = 000 / nae; it is not dual Horn, since = 111 / nae; it is not bijunctive, since maj(001, 010, 100) = 000 / nae; it is not affine, since = 111 / nae; it is neither 0-valid, nor 1-valid, since 000 / nae and 111 / nae. Miki Hermann Algorithms and Complexity of csp (3) 46 / 48

47 Exercise 8 1 Under which previously listed boolean functions is the relation R 1 = {001,010,101,110} closed? 2 Show that the relation R 2 = {011,100,101,110,111} is closed under implication and majority. Miki Hermann Algorithms and Complexity of csp (3) 47 / 48

48 End It s all for today. Do you have questions? Miki Hermann Algorithms and Complexity of csp (3) 48 / 48

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 31. Propositional Logic: DPLL Algorithm Malte Helmert and Gabriele Röger University of Basel April 24, 2017 Propositional Logic: Overview Chapter overview: propositional

More information

Lecture 2 Propositional Logic & SAT

Lecture 2 Propositional Logic & SAT CS 5110/6110 Rigorous System Design Spring 2017 Jan-17 Lecture 2 Propositional Logic & SAT Zvonimir Rakamarić University of Utah Announcements Homework 1 will be posted soon Propositional logic: Chapter

More information

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence Foundations of Artificial Intelligence 8. Satisfiability and Model Construction Davis-Putnam-Logemann-Loveland Procedure, Phase Transitions, GSAT Joschka Boedecker and Wolfram Burgard and Bernhard Nebel

More information

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna

The Calculus of Computation: Decision Procedures with Applications to Verification. Part I: FOUNDATIONS. by Aaron Bradley Zohar Manna The Calculus of Computation: Decision Procedures with Applications to Verification Part I: FOUNDATIONS by Aaron Bradley Zohar Manna 1. Propositional Logic(PL) Springer 2007 1-1 1-2 Propositional Logic(PL)

More information

Logic and Inferences

Logic and Inferences Artificial Intelligence Logic and Inferences Readings: Chapter 7 of Russell & Norvig. Artificial Intelligence p.1/34 Components of Propositional Logic Logic constants: True (1), and False (0) Propositional

More information

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Set 6: Knowledge Representation: The Propositional Calculus Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask Outline Representing knowledge using logic Agent that reason logically A knowledge based agent Representing

More information

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning COMP219: Artificial Intelligence Lecture 20: Propositional Reasoning 1 Overview Last time Logic for KR in general; Propositional Logic; Natural Deduction Today Entailment, satisfiability and validity Normal

More information

Trichotomies in the Complexity of Minimal Inference

Trichotomies in the Complexity of Minimal Inference Trichotomies in the Complexity of Minimal Inference Arnaud Durand ELM (CNRS FRE 3233) Université Denis-Diderot Paris 7 75251 Paris cedex 05, France durand@logique.jussieu.fr Miki Hermann LIX (CNRS UMR

More information

The Complexity of Default Logic on Generalized Conjunctive Queries

The Complexity of Default Logic on Generalized Conjunctive Queries The Complexity of Default Logic on Generalized Conjunctive Queries Philippe Chapdelaine 1, Miki Hermann 2, and Ilka Schnoor 3 1 GREYC (UMR 6072), Université de Caen, France. pchapdel@info.unicaen.fr 2

More information

On the Counting Complexity of Propositional Circumscription

On the Counting Complexity of Propositional Circumscription On the Counting Complexity of Propositional Circumscription Arnaud Durand Miki Hermann Abstract Propositional circumscription, asking for the minimal models of a Boolean formula, is an important problem

More information

CS:4420 Artificial Intelligence

CS:4420 Artificial Intelligence CS:4420 Artificial Intelligence Spring 2018 Propositional Logic Cesare Tinelli The University of Iowa Copyright 2004 18, Cesare Tinelli and Stuart Russell a a These notes were originally developed by Stuart

More information

Lecture 9: The Splitting Method for SAT

Lecture 9: The Splitting Method for SAT Lecture 9: The Splitting Method for SAT 1 Importance of SAT Cook-Levin Theorem: SAT is NP-complete. The reason why SAT is an important problem can be summarized as below: 1. A natural NP-Complete problem.

More information

Tutorial 1: Modern SMT Solvers and Verification

Tutorial 1: Modern SMT Solvers and Verification University of Illinois at Urbana-Champaign Tutorial 1: Modern SMT Solvers and Verification Sayan Mitra Electrical & Computer Engineering Coordinated Science Laboratory University of Illinois at Urbana

More information

Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011

Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber Aug 31, 2011 Solvers for the Problem of Boolean Satisfiability (SAT) Will Klieber 15-414 Aug 31, 2011 Why study SAT solvers? Many problems reduce to SAT. Formal verification CAD, VLSI Optimization AI, planning, automated

More information

Shortest reconfiguration paths in the solution space of Boolean formulas

Shortest reconfiguration paths in the solution space of Boolean formulas Shortest reconfiguration paths in the solution space of Boolean formulas Amer Mouawad Department of Informatics University of Bergen Joint work with Naomi Nishimura, Vinayak Pathak, and Venkatesh Raman

More information

Propositional Logic: Methods of Proof (Part II)

Propositional Logic: Methods of Proof (Part II) Propositional Logic: Methods of Proof (Part II) This lecture topic: Propositional Logic (two lectures) Chapter 7.1-7.4 (previous lecture, Part I) Chapter 7.5 (this lecture, Part II) (optional: 7.6-7.8)

More information

CS 512, Spring 2017, Handout 10 Propositional Logic: Conjunctive Normal Forms, Disjunctive Normal Forms, Horn Formulas, and other special forms

CS 512, Spring 2017, Handout 10 Propositional Logic: Conjunctive Normal Forms, Disjunctive Normal Forms, Horn Formulas, and other special forms CS 512, Spring 2017, Handout 10 Propositional Logic: Conjunctive Normal Forms, Disjunctive Normal Forms, Horn Formulas, and other special forms Assaf Kfoury 5 February 2017 Assaf Kfoury, CS 512, Spring

More information

Satisfiability Modulo Theories

Satisfiability Modulo Theories Satisfiability Modulo Theories Summer School on Formal Methods Menlo College, 2011 Bruno Dutertre and Leonardo de Moura bruno@csl.sri.com, leonardo@microsoft.com SRI International, Microsoft Research SAT/SMT

More information

Propositional Logic: Methods of Proof (Part II)

Propositional Logic: Methods of Proof (Part II) Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short

More information

Propositional and First Order Reasoning

Propositional and First Order Reasoning Propositional and First Order Reasoning Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p p Clause: disjunction of literals q \/ p \/ r given by

More information

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010

Introduction to Artificial Intelligence Propositional Logic & SAT Solving. UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Introduction to Artificial Intelligence Propositional Logic & SAT Solving UIUC CS 440 / ECE 448 Professor: Eyal Amir Spring Semester 2010 Today Representation in Propositional Logic Semantics & Deduction

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

Logical Agents. Chapter 7

Logical Agents. Chapter 7 Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem

More information

Part 1: Propositional Logic

Part 1: Propositional Logic Part 1: Propositional Logic Literature (also for first-order logic) Schöning: Logik für Informatiker, Spektrum Fitting: First-Order Logic and Automated Theorem Proving, Springer 1 Last time 1.1 Syntax

More information

An Introduction to SAT Solving

An Introduction to SAT Solving An Introduction to SAT Solving Applied Logic for Computer Science UWO December 3, 2017 Applied Logic for Computer Science An Introduction to SAT Solving UWO December 3, 2017 1 / 46 Plan 1 The Boolean satisfiability

More information

Propositional Calculus

Propositional Calculus Propositional Calculus Dr. Neil T. Dantam CSCI-498/598 RPM, Colorado School of Mines Spring 2018 Dantam (Mines CSCI, RPM) Propositional Calculus Spring 2018 1 / 64 Calculus? Definition: Calculus A well

More information

Bernhard Nebel, Julien Hué, and Stefan Wölfl. June 27 & July 2/4, 2012

Bernhard Nebel, Julien Hué, and Stefan Wölfl. June 27 & July 2/4, 2012 Bernhard Nebel, Julien Hué, and Stefan Wölfl Albert-Ludwigs-Universität Freiburg June 27 & July 2/4, 2012 vs. complexity For some restricted constraint languages we know some polynomial time algorithms

More information

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS Lecture 10, 5/9/2005 University of Washington, Department of Electrical Engineering Spring 2005 Instructor: Professor Jeff A. Bilmes Logical Agents Chapter 7

More information

Proof Methods for Propositional Logic

Proof Methods for Propositional Logic Proof Methods for Propositional Logic Logical equivalence Two sentences are logically equivalent iff they are true in the same models: α ß iff α β and β α Russell and Norvig Chapter 7 CS440 Fall 2015 1

More information

Propositional Logic: Methods of Proof (Part II)

Propositional Logic: Methods of Proof (Part II) Propositional Logic: Methods of Proof (Part II) You will be expected to know Basic definitions Inference, derive, sound, complete Conjunctive Normal Form (CNF) Convert a Boolean formula to CNF Do a short

More information

Topics in Model-Based Reasoning

Topics in Model-Based Reasoning Towards Integration of Proving and Solving Dipartimento di Informatica Università degli Studi di Verona Verona, Italy March, 2014 Automated reasoning Artificial Intelligence Automated Reasoning Computational

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

Propositional Logic: Methods of Proof. Chapter 7, Part II

Propositional Logic: Methods of Proof. Chapter 7, Part II Propositional Logic: Methods of Proof Chapter 7, Part II Inference in Formal Symbol Systems: Ontology, Representation, ti Inference Formal Symbol Systems Symbols correspond to things/ideas in the world

More information

SAT Solvers: Theory and Practice

SAT Solvers: Theory and Practice Summer School on Verification Technology, Systems & Applications, September 17, 2008 p. 1/98 SAT Solvers: Theory and Practice Clark Barrett barrett@cs.nyu.edu New York University Summer School on Verification

More information

Propositional logic. Programming and Modal Logic

Propositional logic. Programming and Modal Logic Propositional logic Programming and Modal Logic 2006-2007 4 Contents Syntax of propositional logic Semantics of propositional logic Semantic entailment Natural deduction proof system Soundness and completeness

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

1 Efficient Transformation to CNF Formulas

1 Efficient Transformation to CNF Formulas 1 Efficient Transformation to CNF Formulas We discuss an algorithm, due to Tseitin [?], which efficiently transforms an arbitrary Boolean formula φ to a CNF formula ψ such that ψ has a model if and only

More information

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms P Formula Simplification, Essential Laws, Normal Forms Lila Kari University of Waterloo P Formula Simplification, Essential Laws, Normal CS245, Forms Logic and Computation 1 / 26 Propositional calculus

More information

Intelligent Agents. Pınar Yolum Utrecht University

Intelligent Agents. Pınar Yolum Utrecht University Intelligent Agents Pınar Yolum p.yolum@uu.nl Utrecht University Logical Agents (Based mostly on the course slides from http://aima.cs.berkeley.edu/) Outline Knowledge-based agents Wumpus world Logic in

More information

A Lower Bound of 2 n Conditional Jumps for Boolean Satisfiability on A Random Access Machine

A Lower Bound of 2 n Conditional Jumps for Boolean Satisfiability on A Random Access Machine A Lower Bound of 2 n Conditional Jumps for Boolean Satisfiability on A Random Access Machine Samuel C. Hsieh Computer Science Department, Ball State University July 3, 2014 Abstract We establish a lower

More information

The Wumpus Game. Stench Gold. Start. Cao Hoang Tru CSE Faculty - HCMUT

The Wumpus Game. Stench Gold. Start. Cao Hoang Tru CSE Faculty - HCMUT The Wumpus Game Stench Stench Gold Stench Start 1 The Wumpus Game Stench in the square containing the wumpus and in the directly adjacent squares in the squares directly adjacent to a pit Glitter in the

More information

Warm-Up Problem. Is the following true or false? 1/35

Warm-Up Problem. Is the following true or false? 1/35 Warm-Up Problem Is the following true or false? 1/35 Propositional Logic: Resolution Carmen Bruni Lecture 6 Based on work by J Buss, A Gao, L Kari, A Lubiw, B Bonakdarpour, D Maftuleac, C Roberts, R Trefler,

More information

Formal Verification Methods 1: Propositional Logic

Formal Verification Methods 1: Propositional Logic Formal Verification Methods 1: Propositional Logic John Harrison Intel Corporation Course overview Propositional logic A resurgence of interest Logic and circuits Normal forms The Davis-Putnam procedure

More information

Tautologies, Contradictions, and Contingencies

Tautologies, Contradictions, and Contingencies Section 1.3 Tautologies, Contradictions, and Contingencies A tautology is a proposition which is always true. Example: p p A contradiction is a proposition which is always false. Example: p p A contingency

More information

Lecture 9: Search 8. Victor R. Lesser. CMPSCI 683 Fall 2010

Lecture 9: Search 8. Victor R. Lesser. CMPSCI 683 Fall 2010 Lecture 9: Search 8 Victor R. Lesser CMPSCI 683 Fall 2010 ANNOUNCEMENTS REMEMBER LECTURE ON TUESDAY! EXAM ON OCTOBER 18 OPEN BOOK ALL MATERIAL COVERED IN LECTURES REQUIRED READINGS WILL MOST PROBABLY NOT

More information

CSE507. Introduction. Computer-Aided Reasoning for Software. Emina Torlak courses.cs.washington.edu/courses/cse507/17wi/

CSE507. Introduction. Computer-Aided Reasoning for Software. Emina Torlak courses.cs.washington.edu/courses/cse507/17wi/ Computer-Aided Reasoning for Software CSE507 courses.cs.washington.edu/courses/cse507/17wi/ Introduction Emina Torlak emina@cs.washington.edu Today What is this course about? Course logistics Review of

More information

Lecture Notes on SAT Solvers & DPLL

Lecture Notes on SAT Solvers & DPLL 15-414: Bug Catching: Automated Program Verification Lecture Notes on SAT Solvers & DPLL Matt Fredrikson André Platzer Carnegie Mellon University Lecture 10 1 Introduction In this lecture we will switch

More information

Solving SAT Modulo Theories

Solving SAT Modulo Theories Solving SAT Modulo Theories R. Nieuwenhuis, A. Oliveras, and C.Tinelli. Solving SAT and SAT Modulo Theories: from an Abstract Davis-Putnam-Logemann-Loveland Procedure to DPLL(T) Mooly Sagiv Motivation

More information

Satisfiability Modulo Theories (SMT)

Satisfiability Modulo Theories (SMT) Satisfiability Modulo Theories (SMT) Sylvain Conchon Cours 7 / 9 avril 2014 1 Road map The SMT problem Modern efficient SAT solvers CDCL(T) Examples of decision procedures: equality (CC) and difference

More information

Deliberative Agents Knowledge Representation I. Deliberative Agents

Deliberative Agents Knowledge Representation I. Deliberative Agents Deliberative Agents Knowledge Representation I Vasant Honavar Bioinformatics and Computational Biology Program Center for Computational Intelligence, Learning, & Discovery honavar@cs.iastate.edu www.cs.iastate.edu/~honavar/

More information

3 Propositional Logic

3 Propositional Logic 3 Propositional Logic 3.1 Syntax 3.2 Semantics 3.3 Equivalence and Normal Forms 3.4 Proof Procedures 3.5 Properties Propositional Logic (25th October 2007) 1 3.1 Syntax Definition 3.0 An alphabet Σ consists

More information

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30)

Computational Logic. Davide Martinenghi. Spring Free University of Bozen-Bolzano. Computational Logic Davide Martinenghi (1/30) Computational Logic Davide Martinenghi Free University of Bozen-Bolzano Spring 2010 Computational Logic Davide Martinenghi (1/30) Propositional Logic - sequent calculus To overcome the problems of natural

More information

VLSI CAD: Lecture 4.1. Logic to Layout. Computational Boolean Algebra Representations: Satisfiability (SAT), Part 1

VLSI CAD: Lecture 4.1. Logic to Layout. Computational Boolean Algebra Representations: Satisfiability (SAT), Part 1 VLSI CAD: Logic to Layout Rob A. Rutenbar University of Illinois Lecture 4.1 Computational Boolean Algebra Representations: Satisfiability (SAT), Part 1 Some Terminology Satisfiability (called SAT for

More information

WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008

WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008 WHAT IS AN SMT SOLVER? Jaeheon Yi - April 17, 2008 WHAT I LL TALK ABOUT Propositional Logic Terminology, Satisfiability, Decision Procedure First-Order Logic Terminology, Background Theories Satisfiability

More information

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel

Propositional Logic. Methods & Tools for Software Engineering (MTSE) Fall Prof. Arie Gurfinkel Propositional Logic Methods & Tools for Software Engineering (MTSE) Fall 2017 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

More information

MATHEMATICAL ENGINEERING TECHNICAL REPORTS. On the Boolean Connectivity Problem for Horn Relations

MATHEMATICAL ENGINEERING TECHNICAL REPORTS. On the Boolean Connectivity Problem for Horn Relations MATHEMATICAL ENGINEERING TECHNICAL REPORTS On the Boolean Connectivity Problem for Horn Relations Kazuhisa Makino, Suguru Tamaki, and Masaki Yamamoto METR 2007 25 April 2007 DEPARTMENT OF MATHEMATICAL

More information

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5)

Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) B.Y. Choueiry 1 Instructor s notes #12 Title: Logical Agents AIMA: Chapter 7 (Sections 7.4 and 7.5) Introduction to Artificial Intelligence CSCE 476-876, Fall 2018 URL: www.cse.unl.edu/ choueiry/f18-476-876

More information

Detecting Backdoor Sets with Respect to Horn and Binary Clauses

Detecting Backdoor Sets with Respect to Horn and Binary Clauses Detecting Backdoor Sets with Respect to Horn and Binary Clauses Naomi Nishimura 1,, Prabhakar Ragde 1,, and Stefan Szeider 2, 1 School of Computer Science, University of Waterloo, Waterloo, Ontario, N2L

More information

Classical Propositional Logic

Classical Propositional Logic Classical Propositional Logic Peter Baumgartner http://users.cecs.anu.edu.au/~baumgart/ Ph: 02 6218 3717 Data61/CSIRO and ANU July 2017 1 / 71 Classical Logic and Reasoning Problems A 1 : Socrates is a

More information

Propositional and Predicate Logic - V

Propositional and Predicate Logic - V Propositional and Predicate Logic - V Petr Gregor KTIML MFF UK WS 2016/2017 Petr Gregor (KTIML MFF UK) Propositional and Predicate Logic - V WS 2016/2017 1 / 21 Formal proof systems Hilbert s calculus

More information

Normal Forms of Propositional Logic

Normal Forms of Propositional Logic Normal Forms of Propositional Logic Bow-Yaw Wang Institute of Information Science Academia Sinica, Taiwan September 12, 2017 Bow-Yaw Wang (Academia Sinica) Normal Forms of Propositional Logic September

More information

Sec$on Summary. Tautologies, Contradictions, and Contingencies. Logical Equivalence. Normal Forms (optional, covered in exercises in text)

Sec$on Summary. Tautologies, Contradictions, and Contingencies. Logical Equivalence. Normal Forms (optional, covered in exercises in text) Section 1.3 1 Sec$on Summary Tautologies, Contradictions, and Contingencies. Logical Equivalence Important Logical Equivalences Showing Logical Equivalence Normal Forms (optional, covered in exercises

More information

Maximum 3-SAT as QUBO

Maximum 3-SAT as QUBO Maximum 3-SAT as QUBO Michael J. Dinneen 1 Semester 2, 2016 1/15 1 Slides mostly based on Alex Fowler s and Rong (Richard) Wang s notes. Boolean Formula 2/15 A Boolean variable is a variable that can take

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

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic

Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic Automated Program Verification and Testing 15414/15614 Fall 2016 Lecture 2: Propositional Logic Matt Fredrikson mfredrik@cs.cmu.edu October 17, 2016 Matt Fredrikson Propositional Logic 1 / 33 Propositional

More information

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Dieter Fox, Henry Kautz )

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Dieter Fox, Henry Kautz ) Logic in AI Chapter 7 Mausam (Based on slides of Dan Weld, Stuart Russell, Dieter Fox, Henry Kautz ) Knowledge Representation represent knowledge in a manner that facilitates inferencing (i.e. drawing

More information

RESOLUTION TREES WITH LEMMAS: RESOLUTION REFINEMENTS THAT CHARACTERIZE DLL ALGORITHMS WITH CLAUSE LEARNING

RESOLUTION TREES WITH LEMMAS: RESOLUTION REFINEMENTS THAT CHARACTERIZE DLL ALGORITHMS WITH CLAUSE LEARNING Logical Methods in Computer Science Vol. 4 (4:13) 2008, pp. 1 28 www.lmcs-online.org Submitted Jun. 24, 2008 Published Dec. 5, 2008 RESOLUTION TREES WITH LEMMAS: RESOLUTION REFINEMENTS THAT CHARACTERIZE

More information

Backdoor Sets for DLL Subsolvers

Backdoor Sets for DLL Subsolvers Backdoor Sets for DLL Subsolvers Stefan Szeider Department of Computer Science Durham University DH1 3LE Durham, England, UK Abstract We study the parameterized complexity of detecting small backdoor sets

More information

CS156: The Calculus of Computation Zohar Manna Autumn 2008

CS156: The Calculus of Computation Zohar Manna Autumn 2008 Page 3 of 52 Page 4 of 52 CS156: The Calculus of Computation Zohar Manna Autumn 2008 Lecturer: Zohar Manna (manna@cs.stanford.edu) Office Hours: MW 12:30-1:00 at Gates 481 TAs: Boyu Wang (wangboyu@stanford.edu)

More information

A Lower Bound for Boolean Satisfiability on Turing Machines

A Lower Bound for Boolean Satisfiability on Turing Machines A Lower Bound for Boolean Satisfiability on Turing Machines arxiv:1406.5970v1 [cs.cc] 23 Jun 2014 Samuel C. Hsieh Computer Science Department, Ball State University March 16, 2018 Abstract We establish

More information

Propositional Reasoning

Propositional Reasoning Propositional Reasoning CS 440 / ECE 448 Introduction to Artificial Intelligence Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri Spring 2010 Intro to AI (CS

More information

Propositional Resolution

Propositional Resolution Artificial Intelligence Propositional Resolution Marco Piastra Propositional Resolution 1] Deductive systems and automation Is problem decidible? A deductive system a la Hilbert (i.e. derivation using

More information

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013 Chapter 2 Reductions and NP CS 573: Algorithms, Fall 2013 August 29, 2013 2.1 Reductions Continued 2.1.1 The Satisfiability Problem SAT 2.1.1.1 Propositional Formulas Definition 2.1.1. Consider a set of

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

Artificial Intelligence

Artificial Intelligence Artificial Intelligence Propositional Logic Marc Toussaint University of Stuttgart Winter 2016/17 (slides based on Stuart Russell s AI course) Motivation: Most students will have learnt about propositional

More information

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit:

Price: $25 (incl. T-Shirt, morning tea and lunch) Visit: Three days of interesting talks & workshops from industry experts across Australia Explore new computing topics Network with students & employers in Brisbane Price: $25 (incl. T-Shirt, morning tea and

More information

Propositional and Predicate Logic. jean/gbooks/logic.html

Propositional and Predicate Logic.   jean/gbooks/logic.html CMSC 630 February 10, 2009 1 Propositional and Predicate Logic Sources J. Gallier. Logic for Computer Science, John Wiley and Sons, Hoboken NJ, 1986. 2003 revised edition available on line at http://www.cis.upenn.edu/

More information

An instance of SAT is defined as (X, S)

An instance of SAT is defined as (X, S) SAT: Propositional Satisfiability 22c:45 Artificial Intelligence Russell & Norvig, Ch. 7.6 Validity vs. Satisfiability Validity: A sentence is valid if it is true in every interpretation (every interpretation

More information

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz )

Logic in AI Chapter 7. Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz ) Logic in AI Chapter 7 Mausam (Based on slides of Dan Weld, Stuart Russell, Subbarao Kambhampati, Dieter Fox, Henry Kautz ) 2 Knowledge Representation represent knowledge about the world in a manner that

More information

Clause/Term Resolution and Learning in the Evaluation of Quantified Boolean Formulas

Clause/Term Resolution and Learning in the Evaluation of Quantified Boolean Formulas Journal of Artificial Intelligence Research 1 (1993) 1-15 Submitted 6/91; published 9/91 Clause/Term Resolution and Learning in the Evaluation of Quantified Boolean Formulas Enrico Giunchiglia Massimo

More information

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5

Logical Inference. Artificial Intelligence. Topic 12. Reading: Russell and Norvig, Chapter 7, Section 5 rtificial Intelligence Topic 12 Logical Inference Reading: Russell and Norvig, Chapter 7, Section 5 c Cara MacNish. Includes material c S. Russell & P. Norvig 1995,2003 with permission. CITS4211 Logical

More information

Chapter 7 Propositional Satisfiability Techniques

Chapter 7 Propositional Satisfiability Techniques Lecture slides for Automated Planning: Theory and Practice Chapter 7 Propositional Satisfiability Techniques Dana S. Nau University of Maryland 12:58 PM February 15, 2012 1 Motivation Propositional satisfiability:

More information

Algorithms. NP -Complete Problems. Dong Kyue Kim Hanyang University

Algorithms. NP -Complete Problems. Dong Kyue Kim Hanyang University Algorithms NP -Complete Problems Dong Kyue Kim Hanyang University dqkim@hanyang.ac.kr The Class P Definition 13.2 Polynomially bounded An algorithm is said to be polynomially bounded if its worst-case

More information

Sums of Products. Pasi Rastas November 15, 2005

Sums of Products. Pasi Rastas November 15, 2005 Sums of Products Pasi Rastas November 15, 2005 1 Introduction This presentation is mainly based on 1. Bacchus, Dalmao and Pitassi : Algorithms and Complexity results for #SAT and Bayesian inference 2.

More information

Logical Agents. Santa Clara University

Logical Agents. Santa Clara University Logical Agents Santa Clara University Logical Agents Humans know things Humans use knowledge to make plans Humans do not act completely reflexive, but reason AI: Simple problem-solving agents have knowledge

More information

Trichotomy Results on the Complexity of Reasoning with Disjunctive Logic Programs

Trichotomy Results on the Complexity of Reasoning with Disjunctive Logic Programs Trichotomy Results on the Complexity of Reasoning with Disjunctive Logic Programs Mirosław Truszczyński Department of Computer Science, University of Kentucky, Lexington, KY 40506, USA Abstract. We present

More information

Mathematical Logic Part Three

Mathematical Logic Part Three Mathematical Logic Part hree riday our Square! oday at 4:15PM, Outside Gates Announcements Problem Set 3 due right now. Problem Set 4 goes out today. Checkpoint due Monday, October 22. Remainder due riday,

More information

Reasoning with Quantified Boolean Formulas

Reasoning with Quantified Boolean Formulas Reasoning with Quantified Boolean Formulas Martina Seidl Institute for Formal Models and Verification Johannes Kepler University Linz 1 What are QBF? Quantified Boolean formulas (QBF) are formulas of propositional

More information

Logical Agents. Chapter 7

Logical Agents. Chapter 7 Logical Agents Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem

More information

Supplementary exercises in propositional logic

Supplementary exercises in propositional logic Supplementary exercises in propositional logic The purpose of these exercises is to train your ability to manipulate and analyze logical formulas. Familiarize yourself with chapter 7.3-7.5 in the course

More information

Agenda. Artificial Intelligence. Reasoning in the Wumpus World. The Wumpus World

Agenda. Artificial Intelligence. Reasoning in the Wumpus World. The Wumpus World Agenda Artificial Intelligence 10. Propositional Reasoning, Part I: Principles How to Think About What is True or False 1 Introduction Álvaro Torralba Wolfgang Wahlster 2 Propositional Logic 3 Resolution

More information

Logical agents. Chapter 7. Chapter 7 1

Logical agents. Chapter 7. Chapter 7 1 Logical agents Chapter 7 Chapter 7 1 Outline Knowledge-based agents Logic in general models and entailment Propositional (oolean) logic Equivalence, validity, satisfiability Inference rules and theorem

More information

CS 188: Artificial Intelligence Spring 2007

CS 188: Artificial Intelligence Spring 2007 CS 188: Artificial Intelligence Spring 2007 Lecture 8: Logical Agents - I 2/8/2007 Srini Narayanan ICSI and UC Berkeley Many slides over the course adapted from Dan Klein, Stuart Russell or Andrew Moore

More information

Abstract Answer Set Solvers with Backjumping and Learning

Abstract Answer Set Solvers with Backjumping and Learning Under consideration for publication in Theory and Practice of Logic Programming 1 Abstract Answer Set Solvers with Backjumping and Learning YULIYA LIERLER Department of Computer Science University of Texas

More information

From Satisfiability to Linear Algebra

From Satisfiability to Linear Algebra From Satisfiability to Linear Algebra Fangzhen Lin Department of Computer Science Hong Kong University of Science and Technology Clear Water Bay, Kowloon, Hong Kong Technical Report August 2013 1 Introduction

More information

From SAT To SMT: Part 1. Vijay Ganesh MIT

From SAT To SMT: Part 1. Vijay Ganesh MIT From SAT To SMT: Part 1 Vijay Ganesh MIT Software Engineering & SMT Solvers An Indispensable Tactic for Any Strategy Formal Methods Program Analysis SE Goal: Reliable/Secure Software Automatic Testing

More information

Worst-Case Upper Bound for (1, 2)-QSAT

Worst-Case Upper Bound for (1, 2)-QSAT Worst-Case Upper Bound for (1, 2)-QSAT Minghao Yin Department of Computer, Northeast Normal University, Changchun, China, 130117 ymh@nenu.edu.cn Abstract. The rigorous theoretical analysis of the algorithm

More information

Logical agents. Chapter 7. Chapter 7 1

Logical agents. Chapter 7. Chapter 7 1 Logical agents Chapter 7 Chapter 7 Outline Knowledge-based agents Wumpus world Logic in general models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules

More information

CS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón

CS 380: ARTIFICIAL INTELLIGENCE PREDICATE LOGICS. Santiago Ontañón CS 380: RTIFICIL INTELLIGENCE PREDICTE LOGICS Santiago Ontañón so367@drexeledu Summary of last day: Logical gents: The can reason from the knowledge they have They can make deductions from their perceptions,

More information

Proof Complexity Meets Algebra

Proof Complexity Meets Algebra ICALP 17, Warsaw 11th July 2017 (CSP problem) P 3-COL S resolution (proof system) Proofs in S of the fact that an instance of P is unsatisfiable. Resolution proofs of a graph being not 3-colorable. Standard

More information