Strong AI vs. Weak AI Automated Reasoning

Size: px
Start display at page:

Download "Strong AI vs. Weak AI Automated Reasoning"

Transcription

1 Strong AI vs. Weak AI Automated Reasoning George F Luger ARTIFICIAL INTELLIGENCE 6th edition Structures and Strategies for Complex Problem Solving Artificial intelligence can be classified into two categories: strong AI and weak AI Strong AI: Can pass the Turing Test Has an intelligence that matches or exceeds that of human beings Weak AI: Doesn t pass the Turing Test Produces machines that act intelligently 1 2 Automated Reasoning Program An Example Logic Theorist Allows computers to reason completely, or nearly completely, automatically Uses weak problem-solving methods Prerequisite for weak method problem solving: An unambiguous and exact notation for representing information Precise inference rules for drawing conclusions, and A carefully described strategies to apply these rules The design of search strategies is an art cannot guarantee to find a useful solution 3 The first AI program Deliberately engineered to mimic the problem solving skills of a human being A weak problem solver Uses uniform representation medium propositional calculus Uses sound inference rules substitution, replacement, and detachment Uses strategies or heuristic methods to guide the solution process 4

2 Inference Rules of LT Substitution allows any expression to be substituted for every occurrence of a symbol (B B) B Substitute A for B, we have ( A A) A Replacement allows a connective to be replaced by its definition or an equivalent form Since A B A B Therefore A A can be replaced by A A Detachment is modus ponens 5 The Strategy of LT First, directly apply substitution to the goal to match it against all known axioms and theorems Second, if it fails, apply all possible detachments and replacements to the goal and test all results for success. If it fails, add them to a subproblem list Third, chaining method is used to find a new subproblem (if a c is a problem and b c is found, then a b is a new subproblem) Fourth, if the above three methods fail, go to the subproblem list and select the next untried subproblem 6 The Strategy of LT Reasoning as Search The executive routine applies the four methods repeatedly until either the solution is found or the memory and time are exhausted The LP executes a goal-driven, breath-first search of the problem space Matching process enables the substitution, replacement and detachment of the expressions Logic Theorist explored a search tree: the root was the initial hypothesis, each branch was a deduction based on the rules of logic. Somewhere "up" the tree was the goal: the proposition the program intended to prove. The pathway along the branches that led to the goal was a proof a series of statements, each deduced using the rules of logic, that led from the hypothesis to the proposition to be proved. 7 8

3 An Example Suppose we wish to prove: (p p) p 1. (A A) A Matching identifies the best axiom out of five available ones 2. ( A A) A Substitute A for A in order to apply 3. (A A) A Replacement of for and, followed by 4. (p p) p substitution of p for A 9 QED 10 General Problem Solver Study revealed there were many ways the LT s solution differed from those of human subjects Human behavior showed strong evidence of matching and difference reduction mechanism GPS was based on the LT GPS was intended to work as a universal problem solver to solve any formalized symbolic problem General Problem Solver The problem-solving strategies of human subject is called difference reduction The general process of using transformations to reduce problem differences is called means-ends analysis The algorithm applying means-ends analysis is called the General Problem Solver (GPS) Differences between the initial statement and the goal are found A difference table containing transformation rules is used to remove the differences 11 12

4 Fig 14.1a Transformation rules for logic problems, from Newell and Simon (1961) Fig 14.1b A proof of a theorem in propositional calculus, from Newell and Simon (1961), generated by human subject GPS Model Fig 14.2 Flow chart and difference reduction table for the General Problem Solver, from Newell and Simon (1963b). The GPS model of problem solving requires two components General procedure for comparing two state descriptions and reducing their differences The table of connections, giving links between problem differences and transformations that reduce them 15 16

5 Resolution Method Resolution Refutation A modern and more powerful method for automated reasoning Can prove theorems in both propositional and predicate calculus The primary rule of inference in PROLOG Uses a single rule of resolution, instead of trying different rules of inference and hoping one succeeds Greatly reduces the search space It proves a theorem by negating the goal statement to be proved and adding it to the set of given axioms known to be true Proving the theorem directly may take a long time or may not work at all It uses the resolution rule of inference to show that the negated goal leads to a contradiction It follows that the original goal must be consistent this proves the theorem Resolution Refutation Proof Steps Clause Form Put the premises or axioms into clause form Add the negation of what is to be proved, in clause form, to the set of axioms Resolve these clause together, producing new clauses that logically follow from them Produce a contradiction by generating the empty clause The substitutions used to produce the empty clause are those that make the original goal true A clause is a disjunction of literals e.g. A B C B C D A literal is an atomic expression or the negation of an atomic expression The database of axioms can be represented in a conjunctive normal form using only,, and e.g. (A B C ) ( B C D ) 19 20

6 Clause Form Resolution Rules of Reference Resolution is an operation on two clauses (one containing a literal and the other containing its negation) to produce a new and simpler clause where two literals are resolved away e.g. (A B C ) ( B C D ) A C D (p q ) ( q r) p r (f g ) (f g) f f f Unification may be required before resolution Axioms: Fido is a dog. All dogs are animals. All animals will die. Prove: Fido will die. Using predicate calculus: An Example 1. All dogs are animals: (X) (dog(x) animal(x)) 2. Fido is a dog: dog(fido) 3. Modus ponens and {fido/x} gives: animal(fido) 4. All animals will die: (Y) (animal(y) die(y)) 5. Modus ponens and {fido/y} gives: die(fido) Predicate Form: An Example Clause Form: 1. (X) (dog(x) animal(x)) dog(x) animal(x) 2. dog(fido) dog(fido) 3. (Y) (animal(y) die(y)) animal(y) die(y) Negate the conclusion that Fido will die: 4. die(fido) die(fido) The entire database can be represented as a conjunction of disjuncts: ( dog(x) animal(x)) ( animal(y) die(y)) (dog(fido)) ( die(fido)) 23 24

7 Resolution proof for the dead dog problem Substitution of Variables The sequence of substitutions used gives values of variables to make the goal true e.g. Find out if something will die is true Negated goal: ( Z die(z)) The substitution {fido/z} shows that fido is an instance of animal that will die Conversion to the Clause Form Prove: Some programmers hate failures No programmer hates any success No failure is a success Let: p(x) = X is a programmer f(x) = X is a failure s(x) = X is a success h(x, Y) = X hates Y Then premises and negated conclusion are: 1) ( X) [p(x) ( Y) (f(y) h(x, Y))] 2) ( X) [p(x) ( Y) (s(y) h(x, Y))] 3) ( Y) (f(y) s(y)) 27 Conversion to the Clause Form Nine steps to convert statements to the clause form: 1. Eliminate conditionals ( ) using a b a b 1) ( X) [p(x) ( Y) ( f(y) h(x, Y))] 2) ( X) [ p(x) ( Y) ( s(y) h(x, Y))] 3) ( Y) ( f(y) s(y)) 2. When possible, eliminate negations or reduce their scope using ( a) a (a b) a b ( X) a(x) ( X) a(x) (a b) a b ( X) a(x) ( X) a(x) 3) ( Y) (f(y) s(y)) 28

8 Conversion to the Clause Form Conversion to the Clause Form 3. Standardize variables (each quantifier has unique variable name). e.g. ( X) p(x) ( X) p(x) ( X) p(x) ( Y) p(y) 4. Move all to front without changing their order 1) ( Y) ( X) [p(x) ( f(y) h(x, Y))] 2) ( X) ( Y) [ p(x) s(y) h(x, Y)] 5. Eliminate existential quantifiers using Skolem functions 1) ( Y) [p(a) ( f(y) h(a, Y))] 2) ( X) ( Y) [ p(x) s(y) h(x, Y)] 3) f(b) s(b) Drop all universal quantification 1) p(a) ( f(y) h(a, Y))] 2) p(x) s(y) h(x, Y) 3) f(b) s(b) 7. Convert the expression to conjunctive normal form using: p (q r) = (p q) (p r) Our example is already in conjunctive normal form 30 Conversion to the Clause Form Conversion to the Clause Form 8. Eliminate signs by writing the expression as a set of clauses. 1) { p(a), f(y) h(a, Y) } 2) { p(x) s(y) h(x, Y) } 3) { f(b), s(b) } Or: 1a) p(a) 1b) f(y) h(a, Y) 2a) p(x) s(y) h(x, Y) 3a) f(b) 3b) s(b) 9. Rename variables in clauses so that each clause has unique variable name. Needless sharing of variable names may cause loss of generality in the solution. 1a) p(a) 1b) f(y) h(a, Y) 2a) p(x) s(z) h(x, Z) 3a) f(b) 3b) s(b) 31 32

9 Unification The process of finding substitutions for variables to make arguments match is called unification. Without unification it is impossible to resolve clauses such as: f(y) h(a, Y) f(b) For (1a) (3b): {a/x, b/y, b/z} 33 Proof by Resolution Refutation p(a) ( f(b) h(a, b) ) ( p(a) s(b) h(a, b) ) f(b) s(b) = nil Since the root is nil, the conclusion is valid. 34 The Binary Resolution Proof Procedure One resolution proof for an example from the propositional calculus. Prove a from the following axioms: Propositions b c a b d e c e f d f Clause Form a b c b c d e e f d f a We first convert the propositions to the clause form using: p q p q and (p q) p q Then the negated goal, a, is added to the clause set

10 Happy Student Problem Example Anyone passing his history exams and winning the lottery is happy. But anyone who studies or is lucky can pass all his exams. John did not study but he is lucky. Anyone who is lucky wins the lottery. Is John happy? To solve the problem, we first change the sentences to the predicate form Fig 14.5 One refutation for the happy student problem. Exciting Life Problem Example All people who are not poor and are smart are happy. Those people who read are smart. John can read and is not poor. Happy people have exciting lives. Can anyone be found with an exciting life? To apply resolution refutation method we change the sentences first to the predicate form and then to the clause form 39 40

11 Fig 14.6 Resolution proof for the exciting life problem Strategies and Simplification Techniques for Resolution Fig 14.7 another resolution refutation for the example of Fig There is a different resolution refutation proof tree for the exciting life problem (Fig. 17) For N clauses, there are up to N 2 ways of combining them at just the first level. In a large problem the exponential growth of the combinatorics will quickly get out of control Therefore search heuristics or strategies are used to control and simplify the proof process 43 44

12 The Breadth-First Strategy Fig 14.8 Complete state space for the exciting life problem generated by breadth-first search (to two levels). Each clause is compared for resolution with every clause in the clause space on the first round The clauses at level n are generated by resolving all clauses at level n-1 against the original clauses and all clauses previously produced It guarantees to find the shortest solution It guarantees to find a refutation if one exists A good strategy for a small problem Fig 14.9 Using the unit preference strategy on the exciting life problem. The Unit Preference Strategy A clause of one literal is called a unit clause The unit preference strategy uses units for resolving whenever they are available Resolving with a unit clause guarantees the resolvent is smaller than the largest parent clause, which makes it closer to producing the clause of no literals 47 48

13 Answer Extraction from Resolution Refutation Unification substitutions of Fig 14.6 applied to the original query Retaining information on the unification substitution made in the resolution refutation gives information for the correct answer To record the answer, retain the original conclusion to be approved and, into that conclusion, introduce each unification made in the resolution process Fido Dog Problem Example Fig Answer extraction process on the finding fido problem. Fido the dog goes wherever John, his master, goes. John is at the library. Where is Fido? First represent the sentences in predicate calculus expressions and then reduce them to clause form. Predicates: at(john, X) at(fido, X) at(john, library) Clauses: at(john, X) at(fido, X) at(john, library) Negated goal: at(fido, Z) 51 52

14 Grandparent Problem Example Fig Skolemization as part of the answer extraction process. Everyone has a parent. The parent of a parent is a grandparent. Given the person John, prove that John has a grandparent. The following are the sentences and negated goal in predicate calculus expressions and the clause form: ( X)( Y) p(x, Y) ( X)( Y)( Z) p(x, Y) p(y, Z) gp(x, Z) gp(john, W) p(x, pa(x)) p(w, Y) p(y, Z) gp(w, Z) gp(john, V) Prolog and Automated Reasoning One problem with resolution proof procedure is when predicate calculus descriptors are transformed to clause form, important heuristic problem-solving information is left out. For example: a b c d (provides heuristic information) a b c d (no heuristic information) Prolog uses Horn clauses whose procedural interpretation provides an explicit strategy that preserves the heuristic information Horn Clause A Horn clause contains at most one positive literal a b 1 b 2 b n To emphasize the positive literal (a), the Horn clause is generally written as an implication: a b 1 b 2 b n Horn clause allows only restricted representation of the clauses, but provides very efficient search strategy for refutation 55 56

15 Three Forms of the Horn Clause 1. The original clause has no positive literals b 1 b 2 b n called a headless clause or goals 2. It has no negative literals a 1 a 2 a 3 called the facts 3. It has one positive and one or more negative literals a b 1 b 2 b n Reducing Clauses into Horn Form It takes three steps Select and move the positive literal to the very left a b 1 b 2 b n Change the clause to Horn form by the rule: a b 1 b 2 b n a ( b 1 b 2 b n ) Use de Morgan s law to change it to a b 1 b 2 b n It may not always be possible to transform a clause to the Horn form (e.g. p q) called a rule Search Strategy for Refutation Prolog implements left-to-right, depth-first search of clause for refutation Given a goal: a 1 a 2 a n and a program P, the Prolog interpreter searches for the first clause in P whose head unifies with a 1 a 1 b 1 b 2 b m After reducing a 1, the goal clause becomes: b 1 b 2 b m a 2 a n Search Strategy for Refutation The Prolog interpreter continues to reduce the leftmost goal, b 1, using the first clause in P that unifies with b 1 b 1 c 1 c 2 c p The goal then becomes: c 1 c 2 c p b 2 b n a 2 a n The search continues from left to right and from top to down until the goal reduces to the null clause 59 60

16 Depth-First Search Strategy goal a 1 a 2 a 3 a n b 1 b 2 b 3 b m c 1 c 2 c 3 c p Homework Assignment 1. Put the following predicate calculus expression in clause form: (X) (p(x) { (Y) [p(y) p(f(x, Y))] (Y) [q(x, Y) p(y)]}) 2. Prove the following using resolution refutation method. Draw an inversed binary tree to show the resolution process. Fact: d(f) [b(f) c(f)] Rules: d(x) a(x) b(y) e(y) g(w) c(w) Prove: a(z) e(z) 61 62

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

Logic. Knowledge Representation & Reasoning Mechanisms. Logic. Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning Logic Knowledge Representation & Reasoning Mechanisms Logic Logic as KR Propositional Logic Predicate Logic (predicate Calculus) Automated Reasoning Logical inferences Resolution and Theorem-proving Logic

More information

Convert to clause form:

Convert to clause form: Convert to clause form: Convert the following statement to clause form: x[b(x) ( y [ Q(x,y) P(y) ] y [ Q(x,y) Q(y,x) ] y [ B(y) E(x,y)] ) ] 1- Eliminate the implication ( ) E1 E2 = E1 E2 x[ B(x) ( y [

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

Deductive Systems. Lecture - 3

Deductive Systems. Lecture - 3 Deductive Systems Lecture - 3 Axiomatic System Axiomatic System (AS) for PL AS is based on the set of only three axioms and one rule of deduction. It is minimal in structure but as powerful as the truth

More information

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning.

CS1021. Why logic? Logic about inference or argument. Start from assumptions or axioms. Make deductions according to rules of reasoning. 3: Logic Why logic? Logic about inference or argument Start from assumptions or axioms Make deductions according to rules of reasoning Logic 3-1 Why logic? (continued) If I don t buy a lottery ticket on

More information

6. Logical Inference

6. Logical Inference Artificial Intelligence 6. Logical Inference Prof. Bojana Dalbelo Bašić Assoc. Prof. Jan Šnajder University of Zagreb Faculty of Electrical Engineering and Computing Academic Year 2016/2017 Creative Commons

More information

Advanced Topics in LP and FP

Advanced Topics in LP and FP Lecture 1: Prolog and Summary of this lecture 1 Introduction to Prolog 2 3 Truth value evaluation 4 Prolog Logic programming language Introduction to Prolog Introduced in the 1970s Program = collection

More information

Computational Logic Automated Deduction Fundamentals

Computational Logic Automated Deduction Fundamentals Computational Logic Automated Deduction Fundamentals 1 Elements of First-Order Predicate Logic First Order Language: An alphabet consists of the following classes of symbols: 1. variables denoted by X,

More information

COMP9414: Artificial Intelligence First-Order Logic

COMP9414: Artificial Intelligence First-Order Logic COMP9414, Wednesday 13 April, 2005 First-Order Logic 2 COMP9414: Artificial Intelligence First-Order Logic Overview Syntax of First-Order Logic Semantics of First-Order Logic Conjunctive Normal Form Wayne

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

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic

2/2/2018. CS 103 Discrete Structures. Chapter 1. Propositional Logic. Chapter 1.1. Propositional Logic CS 103 Discrete Structures Chapter 1 Propositional Logic Chapter 1.1 Propositional Logic 1 1.1 Propositional Logic Definition: A proposition :is a declarative sentence (that is, a sentence that declares

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

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

Lecture 10: Even more on predicate logic Prerequisites for lifted inference: Skolemization and Unification Inference in predicate logic CS440/ECE448: Intro to Artificial Intelligence Lecture 10: Even more on predicate logic Prof. Julia Hockenmaier juliahmr@illinois.edu http://cs.illinois.edu/fa11/cs440 Inference in predicate logic All

More information

Inference Methods In Propositional Logic

Inference Methods In Propositional Logic Lecture Notes, Artificial Intelligence ((ENCS434)) University of Birzeit 1 st Semester, 2011 Artificial Intelligence (ENCS434) Inference Methods In Propositional Logic Dr. Mustafa Jarrar University of

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

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

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

3. The Logic of Quantified Statements Summary. Aaron Tan August 2017 3. The Logic of Quantified Statements Summary Aaron Tan 28 31 August 2017 1 3. The Logic of Quantified Statements 3.1 Predicates and Quantified Statements I Predicate; domain; truth set Universal quantifier,

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

Tentamen TDDC17 Artificial Intelligence 20 August 2012 kl

Tentamen TDDC17 Artificial Intelligence 20 August 2012 kl Linköpings Universitet Institutionen för Datavetenskap Patrick Doherty Tentamen TDDC17 Artificial Intelligence 20 August 2012 kl. 08-12 Points: The exam consists of exercises worth 32 points. To pass the

More information

Inference in first-order logic

Inference in first-order logic CS 2710 Foundations of AI Lecture 15 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Logical inference in FOL Logical inference problem: Given a knowledge base KB

More information

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

CSC384: Intro to Artificial Intelligence Knowledge Representation II. Required Readings: 9.1, 9.2, and 9.5 Announcements: CSC384: Intro to Artificial Intelligence Knowledge Representation II Required Readings: 9.1, 9.2, and 9.5 Announcements: 1 Models Examples. Environment A Language (Syntax) Constants: a,b,c,e Functions:

More information

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

Intelligent Agents. First Order Logic. Ute Schmid. Cognitive Systems, Applied Computer Science, Bamberg University. last change: 19. Intelligent Agents First Order Logic Ute Schmid Cognitive Systems, Applied Computer Science, Bamberg University last change: 19. Mai 2015 U. Schmid (CogSys) Intelligent Agents last change: 19. Mai 2015

More information

Inference Methods In Propositional Logic

Inference Methods In Propositional Logic Lecture Notes, Advanced Artificial Intelligence (SCOM7341) Sina Institute, University of Birzeit 2 nd Semester, 2012 Advanced Artificial Intelligence (SCOM7341) Inference Methods In Propositional Logic

More information

A Guide to Proof-Writing

A Guide to Proof-Writing A Guide to Proof-Writing 437 A Guide to Proof-Writing by Ron Morash, University of Michigan Dearborn Toward the end of Section 1.5, the text states that there is no algorithm for proving theorems.... Such

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

Rules Build Arguments Rules Building Arguments

Rules Build Arguments Rules Building Arguments Section 1.6 1 Section Summary Valid Arguments Inference Rules for Propositional Logic Using Rules of Inference to Build Arguments Rules of Inference for Quantified Statements Building Arguments for Quantified

More information

CogSysI Lecture 8: Automated Theorem Proving

CogSysI Lecture 8: Automated Theorem Proving CogSysI Lecture 8: Automated Theorem Proving Intelligent Agents WS 2004/2005 Part II: Inference and Learning Automated Theorem Proving CogSysI Lecture 8: Automated Theorem Proving p. 200 Remember......

More information

Artificial Intelligence Chapter 7: Logical Agents

Artificial Intelligence Chapter 7: Logical Agents Artificial Intelligence Chapter 7: Logical Agents Michael Scherger Department of Computer Science Kent State University February 20, 2006 AI: Chapter 7: Logical Agents 1 Contents Knowledge Based Agents

More information

CS 520: Introduction to Artificial Intelligence. Review

CS 520: Introduction to Artificial Intelligence. Review CS 520: Introduction to Artificial Intelligence Prof. Louis Steinberg : First-order Logic Proof Algorithms 1 Review Representing a Domain in FOL A domain is a portion of the world about which we wish to

More information

Inference in First Order Logic

Inference in First Order Logic Inference in First Order Logic Course: CS40002 Instructor: Dr. Pallab Dasgupta Department of Computer Science & Engineering Indian Institute of Technology Kharagpur Inference rules Universal elimination:

More information

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

cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference cse 311: foundations of computing Fall 2015 Lecture 6: Predicate Logic, Logical Inference quantifiers x P(x) P(x) is true for every x in the domain read as for all x, P of x x P x There is an x in the

More information

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

Chapter 16. Logic Programming. Topics. Logic Programming. Logic Programming Paradigm Topics Chapter 16 Logic Programming Introduction Predicate Propositions Clausal Form Horn 2 Logic Programming Paradigm AKA Declarative Paradigm The programmer Declares the goal of the computation (specification

More information

Resolution: Motivation

Resolution: Motivation 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)

More information

Logic Overview, I. and T T T T F F F T F F F F

Logic Overview, I. and T T T T F F F T F F F F Logic Overview, I DEFINITIONS A statement (proposition) is a declarative sentence that can be assigned a truth value T or F, but not both. Statements are denoted by letters p, q, r, s,... The 5 basic logical

More information

FIRST ORDER LOGIC AND PROBABILISTIC INFERENCING. ECE457 Applied Artificial Intelligence Page 1

FIRST ORDER LOGIC AND PROBABILISTIC INFERENCING. ECE457 Applied Artificial Intelligence Page 1 FIRST ORDER LOGIC AND PROBABILISTIC INFERENCING ECE457 Applied Artificial Intelligence Page 1 Resolution Recall from Propositional Logic (αβ), ( βγ) (α γ) Resolution rule is both sound and complete Idea

More information

Introduction to Metalogic

Introduction to Metalogic Philosophy 135 Spring 2008 Tony Martin Introduction to Metalogic 1 The semantics of sentential logic. The language L of sentential logic. Symbols of L: Remarks: (i) sentence letters p 0, p 1, p 2,... (ii)

More information

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

COMP 182 Algorithmic Thinking. Proofs. Luay Nakhleh Computer Science Rice University COMP 182 Algorithmic Thinking Proofs Luay Nakhleh Computer Science Rice University 1 Reading Material Chapter 1, Section 3, 6, 7, 8 Propositional Equivalences The compound propositions p and q are called

More information

Foundations of Logic Programming

Foundations of Logic Programming Foundations of Logic Programming Deductive Logic e.g. of use: Gypsy specifications and proofs About deductive logic (Gödel, 1931) Interesting systems (with a finite number of axioms) are necessarily either:

More information

Logical Agent & Propositional Logic

Logical Agent & Propositional Logic Logical Agent & Propositional Logic Berlin Chen 2005 References: 1. S. Russell and P. Norvig. Artificial Intelligence: A Modern Approach. Chapter 7 2. S. Russell s teaching materials Introduction The representation

More information

Logic and Reasoning. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Logic and Reasoning. Foundations of Computing Science. Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR Logic and Reasoning Foundations of Computing Science Pallab Dasgupta Professor, Dept. of Computer Sc & Engg 2 Knowledge and Reasoning Representation, Reasoning and Logic Propositional Logic First-Order

More information

Knowledge Representation and Reasoning

Knowledge Representation and Reasoning Knowledge Representation and Reasoning Geraint A. Wiggins Professor of Computational Creativity Department of Computer Science Vrije Universiteit Brussel Objectives Knowledge Representation in Logic The

More information

Logic III. Introduction to Artificial Intelligence CSE 150

Logic III. Introduction to Artificial Intelligence CSE 150 Logic III Introduction to Artificial Intelligence CSE 150 Outline Last Lecture Propositional Logic and Sound inference rules Introduction First order logic Symbols, Variables, Functions, Predicates This

More information

COMP4418: Knowledge Representation and Reasoning First-Order Logic

COMP4418: Knowledge Representation and Reasoning First-Order Logic COMP4418: Knowledge Representation and Reasoning First-Order Logic Maurice Pagnucco School of Computer Science and Engineering University of New South Wales NSW 2052, AUSTRALIA morri@cse.unsw.edu.au COMP4418

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

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

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

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

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

More information

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PREDICATE LOGIC

INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PREDICATE LOGIC 1 CHAPTER 7. PREDICATE LOGIC 1 INSTITIÚID TEICNEOLAÍOCHTA CHEATHARLACH INSTITUTE OF TECHNOLOGY CARLOW PREDICATE LOGIC 1 Predicate Logic 1.1 Introduction There are various arguments which cannot be dealt

More information

Propositional Logic Language

Propositional Logic Language Propositional Logic Language A logic consists of: an alphabet A, a language L, i.e., a set of formulas, and a binary relation = between a set of formulas and a formula. An alphabet A consists of a finite

More information

Logical Inference 2 rule based reasoning

Logical Inference 2 rule based reasoning Logical Inference 2 rule based reasoning Chapter 9 Some material adopted from notes by Andreas Geyer-Schulz,, Chuck Dyer, and Mary Getoor Automated inference for FOL Automated inference for FOL is harder

More information

MAI0203 Lecture 7: Inference and Predicate Calculus

MAI0203 Lecture 7: Inference and Predicate Calculus MAI0203 Lecture 7: Inference and Predicate Calculus Methods of Artificial Intelligence WS 2002/2003 Part II: Inference and Knowledge Representation II.7 Inference and Predicate Calculus MAI0203 Lecture

More information

Predicate Logic & Quantification

Predicate Logic & Quantification Predicate Logic & Quantification Things you should do Homework 1 due today at 3pm Via gradescope. Directions posted on the website. Group homework 1 posted, due Tuesday. Groups of 1-3. We suggest 3. In

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

AI Programming CS S-09 Knowledge Representation

AI Programming CS S-09 Knowledge Representation AI Programming CS662-2013S-09 Knowledge Representation David Galles Department of Computer Science University of San Francisco 09-0: Overview So far, we ve talked about search, which is a means of considering

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

Computational Logic Fundamentals (of Definite Programs): Syntax and Semantics

Computational Logic Fundamentals (of Definite Programs): Syntax and Semantics Computational Logic Fundamentals (of Definite Programs): Syntax and Semantics 1 Towards Logic Programming Conclusion: resolution is a complete and effective deduction mechanism using: Horn clauses (related

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

Knowledge based Agents

Knowledge based Agents Knowledge based Agents Shobhanjana Kalita Dept. of Computer Science & Engineering Tezpur University Slides prepared from Artificial Intelligence A Modern approach by Russell & Norvig Knowledge Based Agents

More information

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them.

Proofs. Example of an axiom in this system: Given two distinct points, there is exactly one line that contains them. Proofs A mathematical system consists of axioms, definitions and undefined terms. An axiom is assumed true. Definitions are used to create new concepts in terms of existing ones. Undefined terms are only

More information

Quantifiers. P. Danziger

Quantifiers. P. Danziger - 2 Quantifiers P. Danziger 1 Elementary Quantifiers (2.1) We wish to be able to use variables, such as x or n in logical statements. We do this by using the two quantifiers: 1. - There Exists 2. - For

More information

Predicate Logic. Andreas Klappenecker

Predicate Logic. Andreas Klappenecker Predicate Logic Andreas Klappenecker Predicates A function P from a set D to the set Prop of propositions is called a predicate. The set D is called the domain of P. Example Let D=Z be the set of integers.

More information

Mat 243 Exam 1 Review

Mat 243 Exam 1 Review OBJECTIVES (Review problems: on next page) 1.1 Distinguish between propositions and non-propositions. Know the truth tables (i.e., the definitions) of the logical operators,,,, and Write truth tables for

More information

(Refer Slide Time: 02:20)

(Refer Slide Time: 02:20) Discrete Mathematical Structures Dr. Kamala Krithivasan Department of Computer Science and Engineering Indian Institute of Technology, Madras Lecture - 5 Logical Inference In the last class we saw about

More information

Inference in first-order logic

Inference in first-order logic CS 270 Foundations of AI Lecture 4 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square First-order logic FOL More epressive than propositional logic Advantages: Represents

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

CS 380: ARTIFICIAL INTELLIGENCE

CS 380: ARTIFICIAL INTELLIGENCE CS 380: RTIFICIL INTELLIGENCE PREDICTE LOGICS 11/8/2013 Santiago Ontañón santi@cs.drexel.edu https://www.cs.drexel.edu/~santi/teaching/2013/cs380/intro.html Summary of last day: Logical gents: The can

More information

Methods of Partial Logic for Knowledge Representation and Deductive Reasoning in Incompletely Specified Domains

Methods of Partial Logic for Knowledge Representation and Deductive Reasoning in Incompletely Specified Domains Methods of Partial Logic for Knowledge Representation and Deductive Reasoning in Incompletely Specified Domains Anatoly Prihozhy and Liudmila Prihozhaya Information Technologies and Robotics Department,

More information

Resolution (14A) Young W. Lim 8/15/14

Resolution (14A) Young W. Lim 8/15/14 Resolution (14A) Young W. Lim Copyright (c) 2013-2014 Young W. Lim. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version

More information

Logical Agents (I) Instructor: Tsung-Che Chiang

Logical Agents (I) Instructor: Tsung-Che Chiang Logical Agents (I) Instructor: Tsung-Che Chiang tcchiang@ieee.org Department of Computer Science and Information Engineering National Taiwan Normal University Artificial Intelligence, Spring, 2010 編譯有誤

More information

Propositional Logic Not Enough

Propositional Logic Not Enough Section 1.4 Propositional Logic Not Enough If we have: All men are mortal. Socrates is a man. Does it follow that Socrates is mortal? Can t be represented in propositional logic. Need a language that talks

More information

7.5.2 Proof by Resolution

7.5.2 Proof by Resolution 137 7.5.2 Proof by Resolution The inference rules covered so far are sound Combined with any complete search algorithm they also constitute a complete inference algorithm However, removing any one inference

More information

First order Logic ( Predicate Logic) and Methods of Proof

First order Logic ( Predicate Logic) and Methods of Proof First order Logic ( Predicate Logic) and Methods of Proof 1 Outline Introduction Terminology: Propositional functions; arguments; arity; universe of discourse Quantifiers Definition; using, mixing, negating

More information

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations

3/29/2017. Logic. Propositions and logical operations. Main concepts: propositions truth values propositional variables logical operations Logic Propositions and logical operations Main concepts: propositions truth values propositional variables logical operations 1 Propositions and logical operations A proposition is the most basic element

More information

Propositional Logic: Review

Propositional Logic: Review Propositional Logic: Review Propositional logic Logical constants: true, false Propositional symbols: P, Q, S,... (atomic sentences) Wrapping parentheses: ( ) Sentences are combined by connectives:...and...or

More information

Logical Agent & Propositional Logic

Logical Agent & Propositional Logic Logical Agent & Propositional Logic Berlin Chen Department of Computer Science & Information Engineering National Taiwan Normal University References: 1. S. Russell and P. Norvig. Artificial Intelligence:

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

Marie Duží

Marie Duží Marie Duží marie.duzi@vsb.cz 1 Formal systems, Proof calculi A proof calculus (of a theory) is given by: 1. a language 2. a set of axioms 3. a set of deduction rules ad 1. The definition of a language

More information

Inferences Critical. Lecture 30: Inference. Application: Question Answering. Types of Inferences

Inferences Critical. Lecture 30: Inference. Application: Question Answering. Types of Inferences Inferences Critical Lecture 30: Inference CS 181O Spring 2016 Kim Bruce Inferences, often using world knowledge, play a big role in understanding utterances John ate the pudding with a fork John ate the

More information

CITS2211 Discrete Structures Proofs

CITS2211 Discrete Structures Proofs CITS2211 Discrete Structures Proofs Unit coordinator: Rachel Cardell-Oliver August 13, 2017 Highlights 1 Arguments vs Proofs. 2 Proof strategies 3 Famous proofs Reading Chapter 1: What is a proof? Mathematics

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

Inference in first-order logic

Inference in first-order logic CS 57 Introduction to AI Lecture 5 Inference in first-order logic Milos Hauskrecht milos@cs.pitt.edu 5329 Sennott Square Logical inference in FOL Logical inference problem: Given a knowledge base KB (a

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

ECOM Discrete Mathematics

ECOM Discrete Mathematics ECOM 2311- Discrete Mathematics Chapter # 1 : The Foundations: Logic and Proofs Fall, 2013/2014 ECOM 2311- Discrete Mathematics - Ch.1 Dr. Musbah Shaat 1 / 85 Outline 1 Propositional Logic 2 Propositional

More information

Logic and Proofs. (A brief summary)

Logic and Proofs. (A brief summary) Logic and Proofs (A brief summary) Why Study Logic: To learn to prove claims/statements rigorously To be able to judge better the soundness and consistency of (others ) arguments To gain the foundations

More information

Warm-Up Problem. Write a Resolution Proof for. Res 1/32

Warm-Up Problem. Write a Resolution Proof for. Res 1/32 Warm-Up Problem Write a Resolution Proof for Res 1/32 A second Rule Sometimes throughout we need to also make simplifications: You can do this in line without explicitly mentioning it (just pretend you

More information

1 Introduction to Predicate Resolution

1 Introduction to Predicate Resolution 1 Introduction to Predicate Resolution The resolution proof system for Predicate Logic operates, as in propositional case on sets of clauses and uses a resolution rule as the only rule of inference. The

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

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

Logic Programming (PLP 11) Predicate Calculus Clocksin-Mellish Procedure Horn Clauses Logic Programming (PLP 11) Predicate Calculus Clocksin-Mellish Procedure Horn Clauses Carlos Varela Rennselaer Polytechnic Institute January 29, 2015 C. Varela 1 Propositional Logic Assigning truth values

More information

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic:

CS2742 midterm test 2 study sheet. Boolean circuits: Predicate logic: x NOT ~x x y AND x /\ y x y OR x \/ y Figure 1: Types of gates in a digital circuit. CS2742 midterm test 2 study sheet Boolean circuits: Boolean circuits is a generalization of Boolean formulas in which

More information

How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey.

How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague, such as: this paint is grey. Major results: (wrt propositional logic) How to reason correctly. How to reason efficiently. How to determine if a statement is true or false. Fuzzy logic deal with statements that are somewhat vague,

More information

COMP219: Artificial Intelligence. Lecture 19: Logic for KR

COMP219: Artificial Intelligence. Lecture 19: Logic for KR COMP219: Artificial Intelligence Lecture 19: Logic for KR 1 Overview Last time Expert Systems and Ontologies Today Logic as a knowledge representation scheme Propositional Logic Syntax Semantics Proof

More information

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another.

Logic. Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another. Math 0413 Appendix A.0 Logic Definition [1] A logic is a formal language that comes with rules for deducing the truth of one proposition from the truth of another. This type of logic is called propositional.

More information

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

2. Use quantifiers to express the associative law for multiplication of real numbers. 1. Define statement function of one variable. When it will become a statement? Statement function is an expression containing symbols and an individual variable. It becomes a statement when the variable

More information

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

Artificial Intelligence: Methods and Applications Lecture 3: Review of FOPL Artificial Intelligence: Methods and Applications Lecture 3: Review of FOPL Henrik Björklund Ruvan Weerasinghe Umeå University What I d be doing Topics in Knowledge Representation 12 th Nov (Tue) Revision

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

ICS141: Discrete Mathematics for Computer Science I

ICS141: Discrete Mathematics for Computer Science I ICS141: Discrete Mathematics for Computer Science I Dept. Information & Computer Sci., Originals slides by Dr. Baek and Dr. Still, adapted by J. Stelovsky Based on slides Dr. M. P. Frank and Dr. J.L. Gross

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

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic

Propositional Logic. Logic. Propositional Logic Syntax. Propositional Logic Propositional Logic Reading: Chapter 7.1, 7.3 7.5 [ased on slides from Jerry Zhu, Louis Oliphant and ndrew Moore] Logic If the rules of the world are presented formally, then a decision maker can use logical

More information

What is the decimal (base 10) representation of the binary number ? Show your work and place your final answer in the box.

What is the decimal (base 10) representation of the binary number ? Show your work and place your final answer in the box. Question 1. [10 marks] Part (a) [2 marks] What is the decimal (base 10) representation of the binary number 110101? Show your work and place your final answer in the box. 2 0 + 2 2 + 2 4 + 2 5 = 1 + 4

More information

Inf2D 13: Resolution-Based Inference

Inf2D 13: Resolution-Based Inference School of Informatics, University of Edinburgh 13/02/18 Slide Credits: Jacques Fleuriot, Michael Rovatsos, Michael Herrmann Last lecture: Forward and backward chaining Backward chaining: If Goal is known

More information