Resolution: Motivation

Similar documents
Inference in first-order logic

Convert to clause form:

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

Inference in first-order logic

COMP9414: Artificial Intelligence First-Order Logic

Deductive Systems. Lecture - 3

Section Summary. Section 1.5 9/9/2014

CogSysI Lecture 8: Automated Theorem Proving

Propositional Resolution

Logic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning

CSC384: Intro to Artificial Intelligence Knowledge Representation II. Required Readings: 9.1, 9.2, and 9.5 Announcements:

Strong AI vs. Weak AI Automated Reasoning

Artificial Intelligence: Methods and Applications Lecture 3: Review of FOPL

COMP9414: Artificial Intelligence Propositional Logic: Automated Reasoning


Logic and Computation

Inference in first-order logic

Predicate Logic: Sematics Part 1

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

1 Introduction to Predicate Resolution

Inference in Propositional Logic

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

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017

Resolution for Predicate Logic

Proof Methods for Propositional Logic

Handout #7 Predicate Logic Trees

Propositional Reasoning

Propositional Logic. Premises: If Jack knows Jill, then Jill knows Jack. Jack knows Jill. Conclusion: Is it the case that Jill knows Jack?

Some Rewriting Systems as a Background of Proving Methods

Exercises 1 - Solutions

2-4: The Use of Quantifiers

CS 730/730W/830: Intro AI

Logic and Proof. On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes!

Inference Methods In Propositional Logic

Outline. Logic. Definition. Theorem (Gödel s Completeness Theorem) Summary of Previous Week. Undecidability. Unification

Advanced Topics in LP and FP

Propositional Resolution

On my first day of school my parents dropped me off at the wrong nursery. There I was...surrounded by trees and bushes! 26-Aug-2011 MA

Automated Reasoning in First-Order Logic

Proseminar on Semantic Theory Fall 2013 Ling 720 First Order (Predicate) Logic: Syntax and Natural Deduction 1

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19.

Introduction to Sets and Logic (MATH 1190)

Validating QBF Invalidity in HOL4

Predicate Calculus lecture 1

Inference Methods In Propositional Logic

Discrete Mathematics and Its Applications

software design & management Gachon University Chulyun Kim

α-formulas β-formulas

ArgoCaLyPso SAT-Inspired Coherent Logic Prover

CMSC 671 Fall FOL / Inference in FOL. Thu 10/7/10. Prof. Laura Zavala, ITE 373,

Propositional Resolution Introduction

ICS141: Discrete Mathematics for Computer Science I

INF3170 / INF4171 Notes on Resolution

Logic and Propositional Calculus

Logic and Propositional Calculus

Logic and Inferences

Inference in First-Order Logic

Introduction to Logic in Computer Science: Autumn 2007

Syntax of FOL. Introduction to Logic in Computer Science: Autumn Tableaux for First-order Logic. Syntax of FOL (2)

Introduction Logic Inference. Discrete Mathematics Andrei Bulatov

Closed Book Examination. Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. M.Sc. in Advanced Computer Science

CS 4700: Artificial Intelligence

README - Syntax. Skolemization. Skolemization - Example 1. Skolemization - Example 1. Skolemization - Example 1. Skolemization - Example 2

Logic: First Order Logic

Predicate Logic. Andreas Klappenecker

First-Order Logic. Resolution

THE LOGIC OF QUANTIFIED STATEMENTS. Predicates and Quantified Statements I. Predicates and Quantified Statements I CHAPTER 3 SECTION 3.

Solutions to Sample Problems for Midterm

CHAPTER 10. Predicate Automated Proof Systems

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

Discrete Mathematics

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

CSE 311: Foundations of Computing. Lecture 6: More Predicate Logic

Propositional Logic Not Enough

Propositional logic II.

MAI0203 Lecture 7: Inference and Predicate Calculus

First-Order Theorem Proving and Vampire. Laura Kovács (Chalmers University of Technology) Andrei Voronkov (The University of Manchester)

7.5.2 Proof by Resolution

Chapter 16. Logic Programming. Topics. Logic Programming. Logic Programming Paradigm

cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference

Completeness for FOL

Negation introduction

8 General first order representation

Lecture 10: Even more on predicate logic" Prerequisites for lifted inference: Skolemization and Unification" Inference in predicate logic"

Part I: Propositional Calculus

2. Use quantifiers to express the associative law for multiplication of real numbers.

Computational Logic Automated Deduction Fundamentals

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic

Propositional Functions. Quantifiers. Assignment of values. Existential Quantification of P(x) Universal Quantification of P(x)

Logic Programming (PLP 11) Predicate Calculus Clocksin-Mellish Procedure Horn Clauses

Predicate Logic. CSE 191, Class Note 02: Predicate Logic Computer Sci & Eng Dept SUNY Buffalo

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University

Computational Logic. Recall of First-Order Logic. Damiano Zanardini

Proposi'onal Logic Not Enough

Introduction to Isabelle/HOL

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

CS 771 Artificial Intelligence. First Order Logic Inference

6. Logical Inference

CSC242: Intro to AI. Lecture 13. Thursday, February 28, 13

First order Logic ( Predicate Logic) and Methods of Proof

Transcription:

Resolution: Motivation Steps in inferencing (e.g., forward-chaining) 1. Define a set of inference rules 2. Define a set of axioms 3. Repeatedly choose one inference rule & one or more axioms (or premices) to derive new sentences until the conclusion sentence is formed Basic requirement: Rules + axioms should constitute a complete proof system Observation: Automated inferencing could be a lot more efficient & easy to implement if there was just a single inference rule in the proof system!

Resolution Resolution (Robinson, 1965): A form of inference that relies on a single rule to prove the truth or falsity of logic sentences Because of its simplicity, efficiency & completeness properties, resolution has dominated reasoning in AI Key characteristics: Resolution produces proofs by refutation: To prove a statement, assume that the negation of the statement is true & try to arrive at a contradiction Simplicity achieved by forcing inference rule to operate on sentences that have a very special form called Clause Normal Form (CNF) Completeness achieved because every logic sentence can be converted to CNF

The Resolution Rule Resolution relies on the following rule: α β, β γ α γ Resolution rule equivalently, α β, β γ α γ Resolution rule Applying the resolution rule: CNF sentences 1. Find two sentences that contain the same literal, once in its positive form & once in its negative form: summer winter, winter cold 2. Use the resolution rule to eliminate the literal from both sentences summer cold

The Resolution Rule (cont.) A resolution example: parent clauses: at-home at-home resolvent: empty clause (falsity, contradiction) Another example: at-home at-work at-home at-work Observations: Resolution reduces the length of parent clauses by one literal Resolution applied after first converting all sentences to CNF form: Disjunctions only Negations of atoms only

Resolution in Propositional Logic Basic steps for proving a proposition S: 1. Convert all propositions in premises to CNF p (p q) r (s t) q t (p q) r (s t) q t p p q r s q t q t CNF 2. Negate S & convert result to CNF 3. Add negated S to premises 4. Repeat until contradiction or no progress is made: a. Select 2 clauses (call them parent clauses) b. Resolve them together c. If resolvent is the empty clause, a contradiction has been found (i.e., S follows from the premises) d. If not, add resolvent to the premises

Resolution in Propositional Logic Premises: p (p q) r (s t) q t p p q r s q t q t CNF A resolution proof of r: p q r r p q p q t q t t

Resolution in First-Order Logic In propopositional logic: at-home at-work at-home at-work In first-order logic: x.at-home(x) at-work(x) at-home(y)? To generalize resolution proofs to FOL we must account for Predicates Unbound variables Existential & universal quantifiers

Clause Form in First-Order Logic Disjunctions only Negations of atoms only P(A,B) No quantifiers: universal quantification implicit x.p(x) P(x) existential quantification replaced by Skolem constants/functions x.p(x) P(E) y x.p(x,y) P(E(y),y) Ordinary FOL Clause Form P(A) Q(A,B) (P(A) Q(B,C)) (P(A) Q(B,C)) none elimination demorgan demorgan dropping P(A) Q(A,B) P(A) Q(B,C) P(A), Q(B,C) 2 unit clauses

Clause Form in First-Order Logic Ordinary FOL Clause Form P(A) Q(B,C) elimination P(A) Q(B,C) (P(A) Q(B,C)) P(A) (Q(B,C) R(D)) elimination demorgan, drop drop P(A), Q(B,C) P(A), Q(B,C) R(D) P(A) (Q(B,C) R(D)) drop distribution P(A) Q(B,C), P(A) R(D) x.p(x) x.p(x) Q(x,A) x.p(x) P(A) x.q(x) drop elimination drop skolemization elimination skolemization P(x) P(x) Q(x,A) P(E), where E is a new constant P(A) Q(F) x.p(x) x. P(x) demorgan skolemization P(G)

Clause Form in First-Order Logic Ordinary FOL Clause Form x.p(x) demorgan x. P(x) drop ( x.p(x) x.q(x)) variable rename ( x.p(x) y.q(y)) demorgan x.p(x) y.q(y) demorgan x. P(x) y. Q(y) drop skolemization x y.p(x,y) fun. skolemization x.p(x,k(x)) P(G) P(x) Q(H) x y z.p(x,y,z) drop skolemization drop P(x,K(x)) P(x,y,L(x,y))

Clause Form in First-Order Logic Ordinary FOL Clause Form x.p(x) y.q(x,y) elimination skol., drop P(x) Q(x,M(x)) ( x.p(x)) y.p(y) elimination ( x.p(x)) y.p(y) demorgan x. P(x) y.p(y) skolemization P(N) P(O)

Conversion to Clause Form Steps in general case: 1. Rename all variables so that all quantifiers bind distinct variables 2. -elimination 3. demorgan (,,, ) 4. Skolemization ( -elimination) 5. -dropping 6. -distribution 7. -dropping

Resolution in First-Order Logic In propopositional logic: at-home at-work at-home In first-order logic: at-work To generalize resolution proofs to FOL we must account for Predicates Unbound variables Existential & universal quantifiers Idea: First convert sentences to clause form Then unify variables UNIFY x.at-home(x) at-work(x) at-home(y)?

Resolution Steps Resolution steps for 2 clauses containing P(arg.list1), P(arg.list2) 1. Make the variables in the 2 clauses distinct 2. Find the most general unifier of arg.list1 & arg.list2: go through the lists in parallel, making substitutions for variables only, so as to make the 2 lists the same 3. Make the substitutions corresponding to the m.g.u. throughout both clauses 4. The resolvent is the clause consisting of all the resulting literals except P & P