On Unit-Refutation Complete Formulae with Existentially Quantified Variables

Size: px
Start display at page:

Download "On Unit-Refutation Complete Formulae with Existentially Quantified Variables"

Transcription

1 On Unit-Refutation Complete Formulae with Existentially Quantified Variables Lucas Bordeaux 1 Mikoláš Janota 2 Joao Marques-Silva 3 Pierre Marquis 4 1 Microsoft Research, Cambridge 2 INESC-ID, Lisboa 3 CASL, UCD & IST/INESC-ID 4 CRIL-CNRS, U. d Artois Bordeaux et al Unit-Refutation Complete Formulas 1 / 13

2 CNF, Unit Propagation conjunctive normal form (CNF) is a popular language in solvers for its simple yet expressive structure unit propagation is an inference mechanism implemented virtually in all CNF-based solvers unit propagation can be computed polynomial time and moreover, efficient algorithms and data structures have been developed for it (watch literals) Bordeaux et al Unit-Refutation Complete Formulas 2 / 13

3 CNF, Unit Propagation conjunctive normal form (CNF) is a popular language in solvers for its simple yet expressive structure unit propagation is an inference mechanism implemented virtually in all CNF-based solvers unit propagation can be computed polynomial time and moreover, efficient algorithms and data structures have been developed for it (watch literals) Example of inference Propagation x x y ȳ z Bordeaux et al Unit-Refutation Complete Formulas 2 / 13

4 CNF, Unit Propagation conjunctive normal form (CNF) is a popular language in solvers for its simple yet expressive structure unit propagation is an inference mechanism implemented virtually in all CNF-based solvers unit propagation can be computed polynomial time and moreover, efficient algorithms and data structures have been developed for it (watch literals) Example of inference Propagation x x y ȳ z u z Bordeaux et al Unit-Refutation Complete Formulas 2 / 13

5 CNF, Unit Propagation conjunctive normal form (CNF) is a popular language in solvers for its simple yet expressive structure unit propagation is an inference mechanism implemented virtually in all CNF-based solvers unit propagation can be computed polynomial time and moreover, efficient algorithms and data structures have been developed for it (watch literals) Example of inference Propagation x x y ȳ z u z x z x z Refutation Bordeaux et al Unit-Refutation Complete Formulas 2 / 13

6 CNF, Unit Propagation conjunctive normal form (CNF) is a popular language in solvers for its simple yet expressive structure unit propagation is an inference mechanism implemented virtually in all CNF-based solvers unit propagation can be computed polynomial time and moreover, efficient algorithms and data structures have been developed for it (watch literals) Example of inference Propagation x x y ȳ z u z x z x z z Refutation Bordeaux et al Unit-Refutation Complete Formulas 2 / 13

7 CNF, Unit Propagation conjunctive normal form (CNF) is a popular language in solvers for its simple yet expressive structure unit propagation is an inference mechanism implemented virtually in all CNF-based solvers unit propagation can be computed polynomial time and moreover, efficient algorithms and data structures have been developed for it (watch literals) Example of inference Propagation x x y ȳ z u z x z x z z Refutation u Bordeaux et al Unit-Refutation Complete Formulas 2 / 13

8 Unit Refutation Completeness for general CNF, unit propagation is not complete, i.e. it does not let us infer all the facts Examples ū w u w x ū w x u w = x u x Bordeaux et al Unit-Refutation Complete Formulas 3 / 13

9 Unit Refutation Completeness for general CNF, unit propagation is not complete, i.e. it does not let us infer all the facts Examples ū w u w x ū w x u w = x u x ū w u w x ū w x u w x u Bordeaux et al Unit-Refutation Complete Formulas 3 / 13

10 Definition (URC-C) Languages a formula α CNF belongs to URC-C iff for every clause δ = l 1 l k if α = δ then α l 1... l k u Bordeaux et al Unit-Refutation Complete Formulas 4 / 13

11 Definition (URC-C) Languages a formula α CNF belongs to URC-C iff for every clause δ = l 1 l k if α = δ then α l 1... l k u Definition (Closures) if α 1 α n L then (α 1 α n ) L[ ] Bordeaux et al Unit-Refutation Complete Formulas 4 / 13

12 Definition (URC-C) Languages a formula α CNF belongs to URC-C iff for every clause δ = l 1 l k if α = δ then α l 1... l k u Definition (Closures) if α 1 α n L then (α 1 α n ) L[ ] if α L then ( X. α) L[ ] Bordeaux et al Unit-Refutation Complete Formulas 4 / 13

13 Definition (URC-C) Languages a formula α CNF belongs to URC-C iff for every clause δ = l 1 l k if α = δ then α l 1... l k u Definition (Closures) if α 1 α n L then (α 1 α n ) L[ ] if α L then ( X. α) L[ ] L[, ] enables both rules Bordeaux et al Unit-Refutation Complete Formulas 4 / 13

14 Motivation The Quest for The Perfect Knowledge Representation Structure inference should be fast (tractability) representation should not be too large (succinctness) Bordeaux et al Unit-Refutation Complete Formulas 5 / 13

15 Motivation The Quest for The Perfect Knowledge Representation Structure inference should be fast (tractability) representation should not be too large (succinctness) If a formula is unit refutation complete... which queries can be answered efficiently? how does the size of formulas correspond to other representations? Bordeaux et al Unit-Refutation Complete Formulas 5 / 13

16 Succinctness ( s, p ) Knowledge Compilation Map L 1 s L 2, if any formula in L 2 can be equivalently expressed in polynomially sized formula from L 1 Bordeaux et al Unit-Refutation Complete Formulas 6 / 13

17 Succinctness ( s, p ) Knowledge Compilation Map L 1 s L 2, if any formula in L 2 can be equivalently expressed in polynomially sized formula from L 1 L 1 p L 2, just as p but we also have an polynomial algorithm for it Bordeaux et al Unit-Refutation Complete Formulas 6 / 13

18 Succinctness ( s, p ) Knowledge Compilation Map L 1 s L 2, if any formula in L 2 can be equivalently expressed in polynomially sized formula from L 1 L 1 p L 2, just as p but we also have an polynomial algorithm for it Queries can we decide in polynomial time... consistency, clausal entailment, etc. Bordeaux et al Unit-Refutation Complete Formulas 6 / 13

19 Succinctness ( s, p ) Knowledge Compilation Map L 1 s L 2, if any formula in L 2 can be equivalently expressed in polynomially sized formula from L 1 L 1 p L 2, just as p but we also have an polynomial algorithm for it Queries can we decide in polynomial time... consistency, clausal entailment, etc. Transformations can we construct in polynomial time... Conditioning (α[x]), disjunction (α 1 α n ), etc. Bordeaux et al Unit-Refutation Complete Formulas 6 / 13

20 Trivia for URC-C for α, α 1, α 2 URC-C clausal entailment α = γ can be decided in polynomial time negate γ and run unit propagation Bordeaux et al Unit-Refutation Complete Formulas 7 / 13

21 Trivia for URC-C for α, α 1, α 2 URC-C clausal entailment α = γ can be decided in polynomial time negate γ and run unit propagation consistency of α can be decided in polynomial time check that the empty clause is an implicate of α Bordeaux et al Unit-Refutation Complete Formulas 7 / 13

22 Trivia for URC-C for α, α 1, α 2 URC-C clausal entailment α = γ can be decided in polynomial time negate γ and run unit propagation consistency of α can be decided in polynomial time check that the empty clause is an implicate of α equivalence of α 1, α 2 decidable in polynomial time check that each clause in α 1 is an implicate of α 2 check that each clause in α2 is an implicate of α 1 Bordeaux et al Unit-Refutation Complete Formulas 7 / 13

23 Trivia for URC-C for α, α 1, α 2 URC-C clausal entailment α = γ can be decided in polynomial time negate γ and run unit propagation consistency of α can be decided in polynomial time check that the empty clause is an implicate of α equivalence of α 1, α 2 decidable in polynomial time check that each clause in α 1 is an implicate of α 2 check that each clause in α2 is an implicate of α 1 if β CNF contains all of its prime implicates then β URC-C if β = γ, then there is a prime implicate γ γ and immediately β γ u Bordeaux et al Unit-Refutation Complete Formulas 7 / 13

24 Enabling Existential Variables Motivation: Using fresh variables in CNF enables... polynomial Boolean logic representation (Tseitin) cardinality encodings other constraints, e.g. XOR(x 1,..., x n ) Bordeaux et al Unit-Refutation Complete Formulas 8 / 13

25 Enabling Existential Variables Motivation: Using fresh variables in CNF enables... polynomial Boolean logic representation (Tseitin) cardinality encodings other constraints, e.g. XOR(x 1,..., x n ) Definition ( URC-C) a formula X. α CNF[ ] belongs to URC-C iff for every clause δ = l 1 l k if X. α = δ then α l 1... l k u Bordeaux et al Unit-Refutation Complete Formulas 8 / 13

26 URC-C p URC-C[ ] α = ( X 1. α 1 ) ( X n. α n ) Bordeaux et al Unit-Refutation Complete Formulas 9 / 13

27 URC-C p URC-C[ ] α = ( X 1. α 1 ) ( X n. α n ) [prenex] α = X. α 1 α n Bordeaux et al Unit-Refutation Complete Formulas 9 / 13

28 URC-C p URC-C[ ] α = ( X 1. α 1 ) ( X n. α n ) [prenex] α = X. α 1 α n [Tseitin] α = X τ 1... τ n. τ 1 α 1... τ n α n τ 1 τ n Bordeaux et al Unit-Refutation Complete Formulas 9 / 13

29 URC-C p URC-C[ ] α = ( X 1. α 1 ) ( X n. α n ) [prenex] α = X. α 1 α n [Tseitin] α = X τ 1... τ n. τ 1 α 1... τ n α n τ 1 τ n α is not necessarily unit refutation complete! Bordeaux et al Unit-Refutation Complete Formulas 9 / 13

30 URC-C p URC-C[ ] α = ( X 1. α 1 ) ( X n. α n ) [prenex] α = X. α 1 α n [Tseitin] α = X τ 1... τ n. τ 1 α 1... τ n α n τ 1 τ n α is not necessarily unit refutation complete! if α = γ, then ( X i. α i ) = γ, for i 1..n Bordeaux et al Unit-Refutation Complete Formulas 9 / 13

31 URC-C p URC-C[ ] α = ( X 1. α 1 ) ( X n. α n ) [prenex] α = X. α 1 α n [Tseitin] α = X τ 1... τ n. τ 1 α 1... τ n α n τ 1 τ n α is not necessarily unit refutation complete! if α = γ, then ( X i. α i ) = γ, for i 1..n since α i URC-C, then α τ i γ u, for i 1..n Bordeaux et al Unit-Refutation Complete Formulas 9 / 13

32 URC-C p URC-C[ ] α = ( X 1. α 1 ) ( X n. α n ) [prenex] α = X. α 1 α n [Tseitin] α = X τ 1... τ n. τ 1 α 1... τ n α n τ 1 τ n α is not necessarily unit refutation complete! if α = γ, then ( X i. α i ) = γ, for i 1..n since α i URC-C, then α τ i γ u, for i 1..n add new variables that simulate unit propagation on the disjuncts and derive if all derive Bordeaux et al Unit-Refutation Complete Formulas 9 / 13

33 Queries Results L CO VA CE IM EQ SE CT ME MC URC-C URC-C[, ] URC-C means satisfies means does not satisfy unless P=NP Bordeaux et al Unit-Refutation Complete Formulas 10 / 13

34 Succinctness Results 1. URC-C s URC-C[, ] < s URC-C < s PI 2. URC-C s CNF and CNF s URC-C 3. URC-C s CNF and CNF s URC-C 4. URC-C s DNF, URC-C s SDNNF, and URC-C s d-dnnf, 5. DNF s URC-C, SDNNF s URC-C, and FBDD s URC-C 6. URC-C s DNNF 7. URC-C < s DNF 8. URC-C < s SDNNF 9. URC-C < s d-dnnf L 1 s L 2 means that L 1 is not at least as succinct as L 2 unless PH collapses Bordeaux et al Unit-Refutation Complete Formulas 11 / 13

35 Transformations Results L CD FO SFO C BC C BC C URC-C URC-C[, ] URC-C?? means satisfies means does not satisfy means does not satisfy unless P=NP Bordeaux et al Unit-Refutation Complete Formulas 12 / 13

36 Conclusions and Future Work we studied the unit refutation complete language URC-C and its existential extension URC-C Bordeaux et al Unit-Refutation Complete Formulas 13 / 13

37 Conclusions and Future Work we studied the unit refutation complete language URC-C and its existential extension URC-C the languages have number of favorable KR properties Bordeaux et al Unit-Refutation Complete Formulas 13 / 13

38 Conclusions and Future Work we studied the unit refutation complete language URC-C and its existential extension URC-C the languages have number of favorable KR properties URC-C is powerful in answering queries, e.g. clausal entailment, equivalence Bordeaux et al Unit-Refutation Complete Formulas 13 / 13

39 Conclusions and Future Work we studied the unit refutation complete language URC-C and its existential extension URC-C the languages have number of favorable KR properties URC-C is powerful in answering queries, e.g. clausal entailment, equivalence URC-C loses some ability to answer queries but is (strictly) more succinct than number of interesting languages Bordeaux et al Unit-Refutation Complete Formulas 13 / 13

40 Conclusions and Future Work we studied the unit refutation complete language URC-C and its existential extension URC-C the languages have number of favorable KR properties URC-C is powerful in answering queries, e.g. clausal entailment, equivalence URC-C loses some ability to answer queries but is (strictly) more succinct than number of interesting languages in the future we are interested in practical algorithms for compilation into URC-C Bordeaux et al Unit-Refutation Complete Formulas 13 / 13

41 Conclusions and Future Work we studied the unit refutation complete language URC-C and its existential extension URC-C the languages have number of favorable KR properties URC-C is powerful in answering queries, e.g. clausal entailment, equivalence URC-C loses some ability to answer queries but is (strictly) more succinct than number of interesting languages in the future we are interested in practical algorithms for compilation into URC-C how can existential variables be employed ( URC-C) Bordeaux et al Unit-Refutation Complete Formulas 13 / 13

This is an author-deposited version published in : Eprints ID : 16897

This is an author-deposited version published in :   Eprints ID : 16897 Open Archive TOULOUSE Archive Ouverte (OATAO) OATAO is an open access repository that collects the work of Toulouse researchers and makes it freely available over the web where possible. This is an author-deposited

More information

A Knowledge Compilation Map

A Knowledge Compilation Map Journal of Artificial Intelligence Research 17 (2002) 229-264 Submitted 12/01; published 9/02 A Knowledge Compilation Map Adnan Darwiche Computer Science Department University of California, Los Angeles

More information

Reduced Ordered Binary Decision Diagram with Implied Literals: A New knowledge Compilation Approach

Reduced Ordered Binary Decision Diagram with Implied Literals: A New knowledge Compilation Approach Reduced Ordered Binary Decision Diagram with Implied Literals: A New knowledge Compilation Approach Yong Lai, Dayou Liu, Shengsheng Wang College of Computer Science and Technology Jilin University, Changchun

More information

Propositional Fragments for Knowledge Compilation and Quantified Boolean Formulae

Propositional Fragments for Knowledge Compilation and Quantified Boolean Formulae 1/15 Propositional Fragments for Knowledge Compilation and Quantified Boolean Formulae Sylvie Coste-Marquis Daniel Le Berre Florian Letombe Pierre Marquis CRIL, CNRS FRE 2499 Lens, Université d Artois,

More information

Knowledge Compilation in the Modal Logic S5

Knowledge Compilation in the Modal Logic S5 Knowledge Compilation in the Modal Logic S5 Meghyn Bienvenu Universität Bremen Bremen, Germany meghyn@informatik.uni-bremen.de Hélène Fargier IRIT-CNRS, Université Paul Sabatier, Toulouse, France fargier@irit.fr

More information

Encoding formulas with partially constrained weights in a possibilistic-like many-sorted propositional logic

Encoding formulas with partially constrained weights in a possibilistic-like many-sorted propositional logic Encoding formulas with partially constrained weights in a possibilistic-like many-sorted propositional logic Salem Benferhat CRIL-CNRS, Université d Artois rue Jean Souvraz 62307 Lens Cedex France benferhat@criluniv-artoisfr

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

On Computing Backbones of Propositional Theories

On Computing Backbones of Propositional Theories On Computing Backbones of Propositional Theories Joao Marques-Silva 1 Mikoláš Janota 2 Inês Lynce 3 1 CASL/CSI, University College Dublin, Ireland 2 INESC-ID, Lisbon, Portugal 3 INESC-ID/IST, Lisbon, Portugal

More information

Extending DPLL-Based QBF Solvers to Handle Free Variables

Extending DPLL-Based QBF Solvers to Handle Free Variables Extending DPLL-Based QBF Solvers to Handle Free Variables Will Klieber, Mikoláš Janota, Joao Marques-Silva, Edmund Clarke July 9, 2013 1 Open QBF Closed QBF: All variables quantified; answer is True or

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

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

On the Compilation of Stratified Belief Bases under Linear and Possibilistic Logic Policies

On the Compilation of Stratified Belief Bases under Linear and Possibilistic Logic Policies Salem Benferhat CRIL-CNRS, Université d Artois rue Jean Souvraz 62307 Lens Cedex. France. benferhat@cril.univ-artois.fr On the Compilation of Stratified Belief Bases under Linear and Possibilistic Logic

More information

Compiling Knowledge into Decomposable Negation Normal Form

Compiling Knowledge into Decomposable Negation Normal Form Compiling Knowledge into Decomposable Negation Normal Form Adnan Darwiche Cognitive Systems Laboratory Department of Computer Science University of California Los Angeles, CA 90024 darwiche@cs. ucla. edu

More information

Knowledge Compilation and Theory Approximation. Henry Kautz and Bart Selman Presented by Kelvin Ku

Knowledge Compilation and Theory Approximation. Henry Kautz and Bart Selman Presented by Kelvin Ku Knowledge Compilation and Theory Approximation Henry Kautz and Bart Selman Presented by Kelvin Ku kelvin@cs.toronto.edu 1 Overview Problem Approach Horn Theory and Approximation Computing Horn Approximations

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

Proof Complexity of Quantified Boolean Formulas

Proof Complexity of Quantified Boolean Formulas Proof Complexity of Quantified Boolean Formulas Olaf Beyersdorff School of Computing, University of Leeds Olaf Beyersdorff Proof Complexity of Quantified Boolean Formulas 1 / 39 Proof complexity (in one

More information

LOGIC PROPOSITIONAL REASONING

LOGIC PROPOSITIONAL REASONING LOGIC PROPOSITIONAL REASONING WS 2017/2018 (342.208) Armin Biere Martina Seidl biere@jku.at martina.seidl@jku.at Institute for Formal Models and Verification Johannes Kepler Universität Linz Version 2018.1

More information

ECE473 Lecture 15: Propositional Logic

ECE473 Lecture 15: Propositional Logic ECE473 Lecture 15: Propositional Logic Jeffrey Mark Siskind School of Electrical and Computer Engineering Spring 2018 Siskind (Purdue ECE) ECE473 Lecture 15: Propositional Logic Spring 2018 1 / 23 What

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

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning COMP9414, Monday 26 March, 2012 Propositional Logic 2 COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning Overview Proof systems (including soundness and completeness) Normal Forms

More information

A Method for Generating All the Prime Implicants of Binary CNF Formulas

A Method for Generating All the Prime Implicants of Binary CNF Formulas A Method for Generating All the Prime Implicants of Binary CNF Formulas Yakoub Salhi CRIL-CNRS, Université d Artois, F-62307 Lens Cedex, France salhi@cril.fr Abstract In this paper, we propose a method

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

Propositional Logic: Evaluating the Formulas

Propositional Logic: Evaluating the Formulas Institute for Formal Models and Verification Johannes Kepler University Linz VL Logik (LVA-Nr. 342208) Winter Semester 2015/2016 Propositional Logic: Evaluating the Formulas Version 2015.2 Armin Biere

More information

The Cook-Levin Theorem

The Cook-Levin Theorem An Exposition Sandip Sinha Anamay Chaturvedi Indian Institute of Science, Bangalore 14th November 14 Introduction Deciding a Language Let L {0, 1} be a language, and let M be a Turing machine. We say M

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

Validating QBF Invalidity in HOL4

Validating QBF Invalidity in HOL4 Interactive Theorem Proving (ITP) 14 July, 2010 Quantified Boolean Formulae Quantified Boolean Formulae Motivation System Overview Related Work QBF = propositional logic + quantifiers over Boolean variables

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

Propositional Resolution

Propositional Resolution Computational Logic Lecture 4 Propositional Resolution Michael Genesereth Spring 2005 Stanford University Modified by Charles Ling and TA, for CS2209 Use with permission Propositional Resolution Propositional

More information

Solving QBF with Free Variables

Solving QBF with Free Variables Solving QBF with Free Variables William Klieber 1, Mikoláš Janota 2, Joao Marques-Silva 2,3, and Edmund Clarke 1 1 Carnegie Mellon University, Pittsburgh, PA, USA 2 IST/INESC-ID, Lisbon, Portugal 3 University

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

Computation and Logic Definitions

Computation and Logic Definitions Computation and Logic Definitions True and False Also called Boolean truth values, True and False represent the two values or states an atom can assume. We can use any two distinct objects to represent

More information

Logic: First Order Logic

Logic: First Order Logic Logic: First Order Logic Raffaella Bernardi bernardi@inf.unibz.it P.zza Domenicani 3, Room 2.28 Faculty of Computer Science, Free University of Bolzano-Bozen http://www.inf.unibz.it/~bernardi/courses/logic06

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

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

First-Order Knowledge Compilation for Probabilistic Reasoning

First-Order Knowledge Compilation for Probabilistic Reasoning First-Order Knowledge Compilation for Probabilistic Reasoning Guy Van den Broeck based on joint work with Adnan Darwiche, Dan Suciu, and many others MOTIVATION 1 A Simple Reasoning Problem...? Probability

More information

On propositional definability

On propositional definability Artificial Intelligence 172 (2008) 991 1017 www.elsevier.com/locate/artint On propositional definability Jérôme Lang a, Pierre Marquis b, a IRIT, CNRS / Université Paul Sabatier, 118 route de Narbonne,

More information

A Unit Resolution Approach to Knowledge Compilation. 2. Preliminaries

A Unit Resolution Approach to Knowledge Compilation. 2. Preliminaries A Unit Resolution Approach to Knowledge Compilation Arindama Singh and Manoj K Raut Department of Mathematics Indian Institute of Technology Chennai-600036, India Abstract : Knowledge compilation deals

More information

Algorithms for Satisfiability beyond Resolution.

Algorithms for Satisfiability beyond Resolution. Algorithms for Satisfiability beyond Resolution. Maria Luisa Bonet UPC, Barcelona, Spain Oaxaca, August, 2018 Co-Authors: Sam Buss, Alexey Ignatiev, Joao Marques-Silva, Antonio Morgado. Motivation. Satisfiability

More information

Decision Procedures for Satisfiability and Validity in Propositional Logic

Decision Procedures for Satisfiability and Validity in Propositional Logic Decision Procedures for Satisfiability and Validity in Propositional Logic Meghdad Ghari Institute for Research in Fundamental Sciences (IPM) School of Mathematics-Isfahan Branch Logic Group http://math.ipm.ac.ir/isfahan/logic-group.htm

More information

Inference in Propositional Logic

Inference in Propositional Logic Inference in Propositional Logic Deepak Kumar November 2017 Propositional Logic A language for symbolic reasoning Proposition a statement that is either True or False. E.g. Bryn Mawr College is located

More information

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system):

Knowledge base (KB) = set of sentences in a formal language Declarative approach to building an agent (or other system): Logic Knowledge-based agents Inference engine Knowledge base Domain-independent algorithms Domain-specific content Knowledge base (KB) = set of sentences in a formal language Declarative approach to building

More information

Knowledge Compilation for Model Counting: Affine Decision Trees

Knowledge Compilation for Model Counting: Affine Decision Trees Proceedings of the Twenty-Third International Joint Conference on Artificial Intelligence Knowledge Compilation for Model Counting: Affine Decision Trees Frédéric Koriche 1, Jean-Marie Lagniez 2, Pierre

More information

Fixed-parameter tractable reductions to SAT. Vienna University of Technology

Fixed-parameter tractable reductions to SAT. Vienna University of Technology Fixed-parameter tractable reductions to SAT Ronald de Haan Stefan Szeider Vienna University of Technology Reductions to SAT Problems in NP can be encoded into SAT in poly-time. Problems at the second level

More information

Logical Compilation of Bayesian Networks

Logical Compilation of Bayesian Networks Logical Compilation of Bayesian Networks Michael Wachter & Rolf Haenni iam-06-006 August 2006 Logical Compilation of Bayesian Networks Michael Wachter & Rolf Haenni University of Bern Institute of Computer

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

Language of Propositional Logic

Language of Propositional Logic Logic A logic has: 1. An alphabet that contains all the symbols of the language of the logic. 2. A syntax giving the rules that define the well formed expressions of the language of the logic (often called

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

Counterexample Guided Abstraction Refinement Algorithm for Propositional Circumscription

Counterexample Guided Abstraction Refinement Algorithm for Propositional Circumscription Counterexample Guided Abstraction Refinement Algorithm for Propositional Circumscription Mikoláš Janota 1, Radu Grigore 2, and Joao Marques-Silva 3 1 INESC-ID, Lisbon, Portugal 2 Queen Mary, University

More information

Propositional Fragments for Knowledge Compilation and Quantified Boolean Formulae

Propositional Fragments for Knowledge Compilation and Quantified Boolean Formulae Propositional Fragments for Knowledge Compilation and Quantified Boolean Formulae Sylvie Coste-Marquis and Daniel Le Berre and Florian Letombe and Pierre Marquis CRIL/CNRS, Université d Artois, F-62307

More information

Unifying hierarchies of fast SAT decision and knowledge compilation

Unifying hierarchies of fast SAT decision and knowledge compilation Unifying hierarchies of fast SAT decision and knowledge compilation Matthew Gwynne and Oliver Kullmann Swansea University, United Kingdom http://cs.swan.ac.uk/~csmg Špindlerův Mlýn, January 28, 2013, SOFSEM

More information

On the Role of Canonicity in Bottom-up Knowledge Compilation

On the Role of Canonicity in Bottom-up Knowledge Compilation On the Role of Canonicity in Bottom-up Knowledge Compilation Guy Van den Broeck and Adnan Darwiche Computer Science Department University of California, Los Angeles {guyvdb,darwiche}@cs.ucla.edu Abstract

More information

Logic as a Tool Chapter 4: Deductive Reasoning in First-Order Logic 4.4 Prenex normal form. Skolemization. Clausal form.

Logic as a Tool Chapter 4: Deductive Reasoning in First-Order Logic 4.4 Prenex normal form. Skolemization. Clausal form. Logic as a Tool Chapter 4: Deductive Reasoning in First-Order Logic 4.4 Prenex normal form. Skolemization. Clausal form. Valentin Stockholm University October 2016 Revision: CNF and DNF of propositional

More information

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel

Propositional Logic. Testing, Quality Assurance, and Maintenance Winter Prof. Arie Gurfinkel Propositional Logic Testing, Quality Assurance, and Maintenance Winter 2018 Prof. Arie Gurfinkel References Chpater 1 of Logic for Computer Scientists http://www.springerlink.com/content/978-0-8176-4762-9/

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

A Tutorial on Computational Learning Theory Presented at Genetic Programming 1997 Stanford University, July 1997

A Tutorial on Computational Learning Theory Presented at Genetic Programming 1997 Stanford University, July 1997 A Tutorial on Computational Learning Theory Presented at Genetic Programming 1997 Stanford University, July 1997 Vasant Honavar Artificial Intelligence Research Laboratory Department of Computer Science

More information

Introduction to Solving Combinatorial Problems with SAT

Introduction to Solving Combinatorial Problems with SAT Introduction to Solving Combinatorial Problems with SAT Javier Larrosa December 19, 2014 Overview of the session Review of Propositional Logic The Conjunctive Normal Form (CNF) Modeling and solving combinatorial

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

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

Critical Reading of Optimization Methods for Logical Inference [1]

Critical Reading of Optimization Methods for Logical Inference [1] Critical Reading of Optimization Methods for Logical Inference [1] Undergraduate Research Internship Department of Management Sciences Fall 2007 Supervisor: Dr. Miguel Anjos UNIVERSITY OF WATERLOO Rajesh

More information

Complexity results for Quantified Boolean Formulae based on complete propositional languages

Complexity results for Quantified Boolean Formulae based on complete propositional languages Journal on Satisfiability, Boolean Modeling and Computation 1 (2006) 61 88 Complexity results for Quantified Boolean Formulae based on complete propositional languages Sylvie Coste-Marquis Daniel Le Berre

More information

1 FUNDAMENTALS OF LOGIC NO.10 HERBRAND THEOREM Tatsuya Hagino hagino@sfc.keio.ac.jp lecture URL https://vu5.sfc.keio.ac.jp/slide/ 2 So Far Propositional Logic Logical connectives (,,, ) Truth table Tautology

More information

Dalal s Revision without Hamming Distance

Dalal s Revision without Hamming Distance Dalal s Revision without Hamming Distance Pilar Pozos-Parra 1, Weiru Liu 2, and Laurent Perrussel 3 1 University of Tabasco, Mexico pilar.pozos@ujat.mx 2 Queen s University Belfast, UK w.liu@qub.ac.uk

More information

PROPOSITIONAL LOGIC. VL Logik: WS 2018/19

PROPOSITIONAL LOGIC. VL Logik: WS 2018/19 PROPOSITIONAL LOGIC VL Logik: WS 2018/19 (Version 2018.2) Martina Seidl (martina.seidl@jku.at), Armin Biere (biere@jku.at) Institut für Formale Modelle und Verifikation BOX Game: Rules 1. The game board

More information

CV-width: A New Complexity Parameter for CNFs

CV-width: A New Complexity Parameter for CNFs CV-width: A New Complexity Parameter for CNFs Umut Oztok and Adnan Darwiche 1 Abstract. We present new complexity results on the compilation of CNFs into DNNFs and OBDDs. In particular, we introduce a

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

NP Complete Problems. COMP 215 Lecture 20

NP Complete Problems. COMP 215 Lecture 20 NP Complete Problems COMP 215 Lecture 20 Complexity Theory Complexity theory is a research area unto itself. The central project is classifying problems as either tractable or intractable. Tractable Worst

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

Compiling Stratified Belief Bases

Compiling Stratified Belief Bases Compiling Stratified Belief Bases Sylvie Coste-Marquis 1 and Pierre Marquis 2 Abstract. Many coherence-based approaches to inconsistency handling within propositional belief bases have been proposed so

More information

Representing Policies for Quantified Boolean Formulas

Representing Policies for Quantified Boolean Formulas Representing Policies for Quantified Boolean Formulas Sylvie Coste-Marquis CRIL Univ. d Artois, Lens, France Hélène Fargier and Jérôme Lang IRIT Univ. Paul Sabatier, Toulouse, France Daniel Le Berre and

More information

CSE 555 HW 5 SAMPLE SOLUTION. Question 1.

CSE 555 HW 5 SAMPLE SOLUTION. Question 1. CSE 555 HW 5 SAMPLE SOLUTION Question 1. Show that if L is PSPACE-complete, then L is NP-hard. Show that the converse is not true. If L is PSPACE-complete, then for all A PSPACE, A P L. We know SAT PSPACE

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

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

Tableaux, Path Dissolution, and Decomposable Negation Normal Form for Knowledge Compilation

Tableaux, Path Dissolution, and Decomposable Negation Normal Form for Knowledge Compilation Tableaux, Path Dissolution, and Decomposable Negation Normal Form for Knowledge Compilation Neil V. Murray 1 and Erik Rosenthal 2 1 Department of Computer Science, State University of New York, Albany,

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

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

Propositional Resolution Introduction

Propositional Resolution Introduction Propositional Resolution Introduction (Nilsson Book Handout) Professor Anita Wasilewska CSE 352 Artificial Intelligence Propositional Resolution Part 1 SYNTAX dictionary Literal any propositional VARIABLE

More information

Planning Graphs and Knowledge Compilation

Planning Graphs and Knowledge Compilation Planning Graphs and Knowledge Compilation Héctor Geffner ICREA and Universitat Pompeu Fabra Barcelona, SPAIN 6/2004 Hector Geffner, Planning Graphs and Knowledge Compilation, 6/2004 1 Planning as SAT (Kautz

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

MATHEMATICAL ENGINEERING TECHNICAL REPORTS. Deductive Inference for the Interiors and Exteriors of Horn Theories

MATHEMATICAL ENGINEERING TECHNICAL REPORTS. Deductive Inference for the Interiors and Exteriors of Horn Theories MATHEMATICAL ENGINEERING TECHNICAL REPORTS Deductive Inference for the Interiors and Exteriors of Horn Theories Kazuhisa MAKINO and Hirotaka ONO METR 2007 06 February 2007 DEPARTMENT OF MATHEMATICAL INFORMATICS

More information

A Collection of Problems in Propositional Logic

A Collection of Problems in Propositional Logic A Collection of Problems in Propositional Logic Hans Kleine Büning SS 2016 Problem 1: SAT (respectively SAT) Instance: A propositional formula α (for SAT in CNF). Question: Is α satisfiable? The problems

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

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel Foundations of AI 7. Propositional Logic Rational Thinking, Logic, Resolution Wolfram Burgard and Bernhard Nebel Contents Agents that think rationally The wumpus world Propositional logic: syntax and semantics

More information

Duality in Knowledge Compilation Techniques

Duality in Knowledge Compilation Techniques Duality in Knowledge Compilation Techniques Neil V. Murray 1 and Erik Rosenthal 2 1 Department of Computer Science, State University of New York, Albany, NY 12222, USA, nvm@cs.albany.edu 2 Department of

More information

Introduction to Intelligent Systems

Introduction to Intelligent Systems Logical Agents Objectives Inference and entailment Sound and complete inference algorithms Inference by model checking Inference by proof Resolution Forward and backward chaining Reference Russel/Norvig:

More information

Lecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition.

Lecture #14: NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition. Lecture #14: 0.0.1 NP-Completeness (Chapter 34 Old Edition Chapter 36) Discussion here is from the old edition. 0.0.2 Preliminaries: Definition 1 n abstract problem Q is a binary relations on a set I of

More information

Introduction to Intelligent Systems

Introduction to Intelligent Systems Logical Agents Objectives Inference and entailment Sound and complete inference algorithms Inference by model checking Inference by proof Resolution Forward and backward chaining Reference Russel/Norvig:

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

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

Interleaved Alldifferent Constraints: CSP vs. SAT Approaches

Interleaved Alldifferent Constraints: CSP vs. SAT Approaches Interleaved Alldifferent Constraints: CSP vs. SAT Approaches Frédéric Lardeux 3, Eric Monfroy 1,2, and Frédéric Saubion 3 1 Universidad Técnica Federico Santa María, Valparaíso, Chile 2 LINA, Université

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

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

A New 3-CNF Transformation by Parallel-Serial Graphs 1

A New 3-CNF Transformation by Parallel-Serial Graphs 1 A New 3-CNF Transformation by Parallel-Serial Graphs 1 Uwe Bubeck, Hans Kleine Büning University of Paderborn, Computer Science Institute, 33098 Paderborn, Germany Abstract For propositional formulas we

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

Propositional Resolution Part 1. Short Review Professor Anita Wasilewska CSE 352 Artificial Intelligence

Propositional Resolution Part 1. Short Review Professor Anita Wasilewska CSE 352 Artificial Intelligence Propositional Resolution Part 1 Short Review Professor Anita Wasilewska CSE 352 Artificial Intelligence SYNTAX dictionary Literal any propositional VARIABLE a or negation of a variable a, a VAR, Example

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

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication

CSE20: Discrete Mathematics for Computer Science. Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication CSE20: Discrete Mathematics for Computer Science Lecture Unit 2: Boolan Functions, Logic Circuits, and Implication Disjunctive normal form Example: Let f (x, y, z) =xy z. Write this function in DNF. Minterm

More information

The Strength of Multilinear Proofs

The Strength of Multilinear Proofs The Strength of Multilinear Proofs Ran Raz Iddo Tzameret December 19, 2006 Abstract We introduce an algebraic proof system that manipulates multilinear arithmetic formulas. We show that this proof system

More information

Integer vs. constraint programming. IP vs. CP: Language

Integer vs. constraint programming. IP vs. CP: Language Discrete Math for Bioinformatics WS 0/, by A. Bockmayr/K. Reinert,. Januar 0, 0:6 00 Integer vs. constraint programming Practical Problem Solving Model building: Language Model solving: Algorithms IP vs.

More information

A Unit Resolution-Based Approach to Tractable and Paraconsistent Reasoning

A Unit Resolution-Based Approach to Tractable and Paraconsistent Reasoning A Unit Resolution-Based Approach to Tractable and Paraconsistent Reasoning ylvie Coste-Marquis and Pierre Marquis 1 Abstract. A family of unit resolution-based paraconsistent inference relations Σ for

More information