Propositional Resolution

Similar documents
COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning

Inference in Propositional Logic

Language of Propositional Logic

Deductive Systems. Lecture - 3

Propositional Reasoning

Part 1: Propositional Logic

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

Propositional Resolution

6. Logical Inference

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

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

Advanced Topics in LP and FP

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

Supplementary exercises in propositional logic

Propositional Calculus: Formula Simplification, Essential Laws, Normal Forms

Propositional Resolution Introduction

Foundations of Artificial Intelligence

Foundations of Artificial Intelligence

02 Propositional Logic

Propositional and Predicate Logic - V

COMP219: Artificial Intelligence. Lecture 20: Propositional Reasoning

Propositional Logic: Methods of Proof (Part II)

Solutions to Sample Problems for Midterm

CS206 Lecture 03. Propositional Logic Proofs. Plan for Lecture 03. Axioms. Normal Forms

Inference Methods In Propositional Logic

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

Propositional Logic Language

Propositional Logic: Models and Proofs

Inference Methods In Propositional Logic

Propositional Logic Resolution (6A) Young W. Lim 12/12/16

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

Logical Agents (I) Instructor: Tsung-Che Chiang

Tautologies, Contradictions, and Contingencies

A brief introduction to Logic. (slides from

Propositional Logic Resolution (6A) Young W. Lim 12/31/16

Artificial Intelligence Chapter 7: Logical Agents

Propositional Logic: Methods of Proof (Part II)

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic

Logical Agent & Propositional Logic

CS 380: ARTIFICIAL INTELLIGENCE

Part 1: Propositional Logic

7. Propositional Logic. Wolfram Burgard and Bernhard Nebel

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

Logic: Propositional Logic (Part I)

Foundations of Artificial Intelligence

Proof Methods for Propositional Logic

Computation and Logic Definitions

Equivalences. Proposition 2.8: The following equivalences are valid for all formulas φ, ψ, χ: (φ φ) φ. Idempotency Idempotency Commutativity

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

Propositional natural deduction

Tecniche di Verifica. Introduction to Propositional Logic

CSC242: Intro to AI. Lecture 11. Tuesday, February 26, 13

Propositional logic II.

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

Self-assessment due: Monday 3/18/2019 at 11:59pm (submit via Gradescope)

3 Propositional Logic

Propositional Logic: Methods of Proof (Part II)

Propositional and First Order Reasoning

Description Logics. Deduction in Propositional Logic. franconi. Enrico Franconi

Propositional inference, propositional agents

Convert to clause form:

Artificial Intelligence. Propositional Logic. Copyright 2011 Dieter Fensel and Florian Fischer

Propositional and First-Order Logic

Critical Reading of Optimization Methods for Logical Inference [1]

LOGIC PROPOSITIONAL REASONING

A Resolution Method for Modal Logic S5

Logical Agent & Propositional Logic

Introduction to Artificial Intelligence. Logical Agents

Chapter 7 R&N ICS 271 Fall 2017 Kalev Kask

Deliberative Agents Knowledge Representation I. Deliberative Agents

EE562 ARTIFICIAL INTELLIGENCE FOR ENGINEERS

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

CS 771 Artificial Intelligence. Propositional Logic

A Unit Resolution Approach to Knowledge Compilation. 2. Preliminaries

Propositional Logic Part 1

Intelligent Systems. Propositional Logic. Dieter Fensel and Dumitru Roman. Copyright 2008 STI INNSBRUCK

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

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Description Logics. Foundations of Propositional Logic. franconi. Enrico Franconi

Propositional Logic Basics Propositional Equivalences Normal forms Boolean functions and digital circuits. Propositional Logic.

Knowledge based Agents

CS 7180: Behavioral Modeling and Decision- making in AI

Solutions to Homework I (1.1)

Introduction to Intelligent Systems

Theory of Computer Science

PRUNING PROCEDURE FOR INCOMPLETE-OBSERVATION DIAGNOSTIC MODEL SIMPLIFICATION

COMP3702/7702 Artificial Intelligence Week 5: Search in Continuous Space with an Application in Motion Planning " Hanna Kurniawati"

Artificial Intelligence

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

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

Comp487/587 - Boolean Formulas

Logical agents. Chapter 7. Chapter 7 1

Strong AI vs. Weak AI Automated Reasoning

Substitution Theorem. Equivalences. Proposition 2.8 The following equivalences are valid for all formulas φ, ψ, χ: (φ φ) φ Idempotency

Propositional Logic: Syntax

Introduction to Metalogic

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

Validating QBF Invalidity in HOL4

Propositional Logic: Evaluating the Formulas

Propositional and Predicate Logic - II

Transcription:

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 axiom schemas and MP) does not translate into an algorithm In fact, when trying to find a demonstration of : We can use all (if is finite) We can apply the inference rule MP whenever possible We cannot generate all axiom instances from Axn (OK) (OK) (KO) Moral: the problem is the infinite set of axioms Propositional Resolution 2]

Resolution rule (Just another inference rule), is also called the resolvent of e The resolution rule is correct 0 0 0 0 1 0 0 0 1 1 0 0 0 1 0 0 1 1 0 1 1 1 1 1 1 0 0 1 1 1 1 0 1 1 0 1 1 1 0 1 1 1 1 1 1 1 1 1 The rules MP can be seen a special case resolution, can be rewritten as, Propositional Resolution 3]

Normal forms = translation of each wff into an equivalent wff having a specific structure Conjunctive Normal Form (CNF) A wff with a structure 1 2 n where each i has a structure ( 1 2 n ) where each j is a literal (i.e. an atomic symbol or the negation of an atomic symbol) Examples: (B D) (A C) C (B A C) ( D A C) Disjunctive Normal Form (DNF) A wff with a structure 1 2 n where each i has a structure ( 1 2 n ) where each j is a literal Propositional Resolution 4]

Conjunctive Normal Form Translation into CNF (it can be automated) Exhaustive application of the following rules: 1) Rewrite and using,, 2) Move inside composite formulae De Morgan laws : ( ) ( ) ( ) ( ) 3) Eliminate double negations: 4) Distribute (( ) ) (( ) ( )) Examples: ( B D) (A C) B D (A C) (rewrite ) B D A C (De Morgan) (B D) (A C) ( B D) (A C) (rewrite ) (B D) ( A C) (De Morgan) (B A C) ( D A C) (distribute ) Propositional Resolution 5]

Clausal Forms = each wff is translated into an equivalent set of wffs having a specific structure Clausal Form (CF) Starting from a wff in CNF 1 2 n the clausal form is simply the set of all clauses { 1, 2,, n } Examples: (B D) (A C) C {(B D), (A C), C} Special notation Each clause is usually written as a set 1 2 n { 1, 2,, n } Example: {{B, D}, {A, C}, {C}} A set of literals: ordering is irrelevant no multiple copies Propositional Resolution 6]

Resolution by refutation Algorithm Problem:? The problem is transformed into: is { } coherent? If then { } is incoherent and therefore a contradiction can be derived { } is translated into CNF hence in CF The resolution algorithm is applied to the set of clauses { } At each step: a) Select a pair of clauses {C 1,C 2 } containing a pair of complementary literals making sure that this combination has never been selected before b) Compute C as the resolvent of{c 1,C 2 } according to the resolution rule. c) Add C to the set of clauses Termination: When C is the empty clause { } or there are no more combinations to be selected in step a) Advantages: No axioms. Only one operation (i.e. the resolution rule). It is a native algorithm Propositional Resolution 7]

Resolution by refutation The same example as before B D A C, B C, A D, B D Refutation + rewrite in CNF: B D A C, B C, A D, B, D Rewrite in CF: {B, D, A, C}, {B, C}, {A, D}, { B}, { D} Applying the resolution rule: {B, D, A, C} {B, C} { B} {A, D} { D} {C} {B, D, A} {D, A} {D} { } Refutation graph: shows relevant resolutions only Propositional Resolution 8]

Resolution by refutation The same example as before B D A C, B C, A D, B D Refutation + rewrite in CNF: B D A C, B C, A D, B, D Rewrite in CF: {B, D, A, C}, {B, C}, {A, D}, { B}, { D} Applying the resolution rule: {B, D, A, C} {B, C} { B} {A, D} { D} {D, A, C} {B, A, C} {C} {A} {D, C} {B, D, C} {B, D, A} { C} { } {B, C} {B} { } {B, D} {D, A} {D} { } Refutation graph: shows relevant resolutions only (but there are more) Propositional Resolution 9]

Resolution by refutation Resolution by refutation for propositional logic Is correct: Is complete: In this sense: if then there exists a refutation graph Algorithm It is a decision procedure for the problem It has time complexity O(2 n ) where n is the number of propositional symbols in { } Propositional Resolution 10 10]