Introduction to AI & AI Principles (Semester 1) WEEK 9 - Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 9 - Wednesday (2008/09) John Barnden.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

The Foundations: Logic and Proofs
Introduction to Theorem Proving
Chapter 2 Fundamentals of Logic Dept of Information management National Central University Yen-Liang Chen.
1 Logic Logic in general is a subfield of philosophy and its development is credited to ancient Greeks. Symbolic or mathematical logic is used in AI. In.
First Order Logic Resolution
Logic Use mathematical deduction to derive new knowledge.
1 Introduction to Abstract Mathematics Valid AND Invalid Arguments 2.3 Instructor: Hayk Melikya
Deduction In addition to being able to represent facts, or real- world statements, as formulas, we want to be able to manipulate facts, e.g., derive new.
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
Introduction to AI & AI Principles (Semester 1) WEEK 6 – Tuesday Introduction to AI & AI Principles (Semester 1) WEEK 6 – Tuesday (2008/09) John Barnden.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
CSE (c) S. Tanimoto, 2008 Propositional Logic
Laws of , , and  Excluded middle law Contradiction law P   P  T P   P  F NameLaw Identity laws P  F  P P  T  P Domination laws P  T  T P.
Introduction to AI & AI Principles (Semester 1) WEEK 8 Introduction to AI & AI Principles (Semester 1) WEEK 8 (2008/09) John Barnden Professor of Artificial.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
Introduction to AI & AI Principles (Semester 1) WEEK 10 – Tuesday/Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 10 – Tuesday/Wednesday.
Lecture 19 Exam: Tuesday June14 4-6pm Overview. Disclaimer The following is a only study guide. You need to know all the material treated in class.
Introduction to AI & AI Principles (Semester 1) WEEK 11 (Wed) – Wrap-Up (2008/09) John Barnden Professor of Artificial Intelligence School of Computer.
Introduction to AI & AI Principles (Semester 1) WEEK 8 (07/08) [Barnden’s slides only] John Barnden Professor of Artificial Intelligence School of Computer.
Introduction to AI & AI Principles (Semester 1) WEEK 7 (07/08) [Barnden’s slides only] John Barnden Professor of Artificial Intelligence School of Computer.
Introduction to AI & AI Principles (Semester 1) WEEK 10 (07/08) [John Barnden’s slides only] School of Computer Science University of Birmingham, UK.
Introduction to AI & AI Principles (Semester 1) WEEK 7 John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Introduction to AI & AI Principles (Semester 1) WEEK 2 – Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 2 – Wednesday (2008/09) John Barnden.
Introduction to AI & AI Principles (Semester 1) WEEK 11 John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
1 Inference Rules and Proofs Z: Inference Rules and Proofs.
1 Inference Rules and Proofs Z: Inference Rules and Proofs.
Knoweldge Representation & Reasoning
Introduction to AI & AI Principles (Semester 1) WEEK 6 – Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 6 – Wednesday (2008/09) John Barnden.
Inference in First-Order Logic
Introduction to AI & AI Principles (Semester 1) WEEK 1 – Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 1 – Wednesday (2008/09) John Barnden.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Fall 2004.
Introduction to AI & AI Principles (Semester 1) WEEK 8 – Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 8 – Wednesday (2008/09) John Barnden.
Introduction to AI & AI Principles (Semester 1) WEEK 8 – Wednesday: answer to Exercise 3(b) Introduction to AI & AI Principles (Semester 1) WEEK 8 (2008/09)–
Proof by Deduction. Deductions and Formal Proofs A deduction is a sequence of logic statements, each of which is known or assumed to be true A formal.
Start with atomic sentences in the KB and apply Modus Ponens, adding new atomic sentences, until “done”.
Introduction to AI & AI Principles (Semester 1) WEEK 3 – Tuesday part B Introduction to AI & AI Principles (Semester 1) WEEK 3 – Tuesday part B (2008/09)
Introduction to AI & AI Principles (Semester 1) WEEK 4 – Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 4 – Wednesday (2008/09) John Barnden.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
Intro to Maths for CS: 2013/14 Sets (2) – OPTIONAL MATERIAL John Barnden Professor of Artificial Intelligence School of Computer Science University of.
Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005.
Deduction, Proofs, and Inference Rules. Let’s Review What we Know Take a look at your handout and see if you have any questions You should know how to.
Chap. 2 Fundamentals of Logic. Proposition Proposition (or statement): an declarative sentence that is either true or false, but not both. e.g. –Margret.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Fundamentals/ICY: Databases 2013/14 WEEK 9 –Monday John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham,
Propositional Calculus – Methods of Proof Predicate Calculus Math Foundations of Computer Science.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Chapter 3: Introduction to Logic. Logic Main goal: use logic to analyze arguments (claims) to see if they are valid or invalid. This is useful for math.
Computing & Information Sciences Kansas State University Lecture 14 of 42 CIS 530 / 730 Artificial Intelligence Lecture 14 of 42 William H. Hsu Department.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Computing & Information Sciences Kansas State University Monday, 25 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 14 of 42 Monday, 25 September.
LOGIC.
CS6133 Software Specification and Verification
CS2013 Mathematics for Computing Science Adam Wyner University of Aberdeen Computing Science Slides adapted from Michael P. Frank ' s course based on the.
Proof Tactics, Strategies and Derived Rules CS 270 Math Foundations of CS Jeremy Johnson.
Symbolic Logic ⊃ ≡ · v ~ ∴. What is a logical argument? Logic is the science of reasoning, proof, thinking, or inference. Logic allows us to analyze a.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
Lecture 1.3: Predicate Logic, and Rules of Inference* CS 250, Discrete Structures, Fall 2011 Nitesh Saxena *Adopted from previous lectures by Cinda Heeren.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
1 Propositional Proofs 1. Problem 2 Deduction In deduction, the conclusion is true whenever the premises are true.  Premise: p Conclusion: (p ∨ q) 
CT214 – Logical Foundations of Computing Darren Doherty Rm. 311 Dept. of Information Technology NUI Galway
Chapter 1 Logic and proofs
Arguments with Quantified Statements
CS201: Data Structures and Discrete Mathematics I
Deductive Reasoning: Propositional Logic
Malini Sen WESTERN LOGIC Presented by Assistant Professor
Computer Security: Art and Science, 2nd Edition
CS201: Data Structures and Discrete Mathematics I
Chapter 8 Natural Deduction
Presentation transcript:

Introduction to AI & AI Principles (Semester 1) WEEK 9 - Wednesday Introduction to AI & AI Principles (Semester 1) WEEK 9 - Wednesday (2008/09) John Barnden Professor of Artificial Intelligence School of Computer Science University of Birmingham, UK

Deductive Reasoning in Logic (contd.)

Reminder: Towards A Rule involving Variable Instantiation u We’d like to be able to go from, say,  (  p) (is-shop(p)  likes(Sally, p)) and, say, is-shop(Gap) to likes(Sally, Gap). uCan do this by first “instantiating” the variable p to get  is-shop(Gap)  likes(Sally, Gap) and then using MP (Modus Ponens).

(Universal) Variable Instantiation uOther terminology: variable substitution; universal elimination. uNOTE: a term is a constant symbol (e.g., Sally), variable, or the application of a function symbol (e.g., father-of) to terms. l E.g.: favourite-shop-of(father-of(Sally). A ground term is one that doesn’t involve any variables. uA simplified rule is: IF-HAVE (  α)A THEN-HAVE A[α /t] where α is a variable, A is a formula, t is a term, t is ground, and A[a/t] is A with all the (not-further-quantified) occurrences of α replaced by t. [We say t is substituted for the “free” occurrences of α in A.]  uSo with A being is-shop(p)  likes(Sally, p), α being p, and t being Gap, we get A[α /t] to be  is-shop(Gap)  likes(Sally, Gap).

A More Complex Example uWe can reason from, say,  (  q,p) ( (is-shop(q)  modern(q)  is-person(p))  likes(p, q) ) and, say, the separate propositions is-shop(Gap), is-modern(Gap), is-person(Sally) to likes(Sally, Gap) uby doing [universal] instantiation (= universal elimination) action(s) to get  (is-shop(Gap)  modern(Gap)  is-person(Sally))  likes(Sally, Gap)), and doing some conjunction-introduction and an MP action.

Dependency Diagram (Proof Tree)  (is-shop(G)  mod(G)  is-pers(S))   likes(S, G) UnivElim (q:G) likes(S, G)  is-shop(G)  mod(G)  is-pers(S) is-shop(G) mod(G) is-pers(S)  (  q,p) ( (is-shop(q)  mod(q)  is-pers(p))   likes(p, q))  (  p) ( (is-shop(G)  mod(G)  is-pers(p))   likes(p, G)) UnivElim (p:S) Modus Ponens Conj Intro

Variant of Previous Example uWe can reason from, say,  (  q) ( is-modern-shop(q)  likes(Sally, q) ),   likes(Sally, Gap), to   is-modern-shop(Gap), by a universal elimination (instantiation) and a use of MT (Modus Tollens – see a previous slide). uNB: an implication can support the drawing of conclusions in both directions across it (though in different ways), unlike a rule in a PS such as IF-HAVE is-modern-shop(q) THEN-HAVE likes(Sally, q))

Proof Tree  is-mod-shop(G)  likes(S, G)  is-  is-mod-shop(S, G)  (  q) ( (is-mod-shop(q)  likes(S, q) ) UnivElim (q:S) Modus Tollens   likes(S, G)

Another Example uWe can reason from, say,  (  p) (is-person(p)     asleep(p)  (unconscious(p))  dead(p)))   (should-call(Ego, Police)  should-protect(Ego,p))),  (  q,g) (is-person(q)  is-game(g)  playing(q,g)    asleep(q)), is-person(Person123), playing(Person123, Chess), unconscious(Person123), is-game(Chess) to should-protect(Ego, Person123).

Part of Proof Tree UnivElim (p:P123)  (  p) ((is-pers(p)     asleep(p)  (unconsc(p))  dead(p)))   (shld-call(Ego, Pol)  should-prot(Ego,p))) Modus Ponens Conj Intro  shld-call(Ego, Pol)  shld-prot(Ego, P123)  (is-pers(P123)     asleep(P123)  (unconsc(P123))  dead(P123)))   (shld-call(Ego, Pol)  should-prot(Ego,P123))  is-pers(P123)     asleep(P123)  (unconsc(P123))  dead(P123)) is-pers(P123)  unconsc(P123))  dead(P123)   asleep(P123) unconsc(P123)) Disj Intro shld-prot(Ego, P123) Conj Elim

Some Difficulties uWhat inference rule to apply when, and exactly how (e.g., what variable instantiations to do)?? ui.e., hefty search process: how to guide it? NB: Searching backwards from a reasoning goal is generally beneficial. (Backwards chaining.) uLots of fiddling around, piecing together and taking apart conjunctions, disjunctions, etc. uAnd have only shown some of the types of fiddling that are needed! uIt would be more convenient to be able combine the effects of certain inference rules in various ways, e.g. to combine MP and variable instantiation.

Some Other Sorts of Fiddling uFollowing are logical inference rules in non-traditional IF-THEN form. uRules about distributivity of conjunction and disjunction over each other.     l IF-HAVE A  (B  C) THEN-HAVE (A  B)  (A  C) and its converse     IF-HAVE (A  B)  (A  C) THEN-HAVE A  (B  C)      l IF-HAVE A  (B  C) THEN-HAVE (A  B)  (A  C) and its converse      IF-HAVE (A  B)  (A  C) THEN-HAVE A  (B  C)

Some Other Sorts of Fiddling, contd. uDouble negation:   IF-HAVE   A THEN-HAVE A   IF-HAVE A THEN-HAVE   A uDe Morgan’s Laws (in inference-rule form):     l IF-HAVE  (A  B) THEN-HAVE  A   B and its converse    IF-HAVE  A   B THEN-HAVE  (A  B)      l IF-HAVE  (A  B) THEN-HAVE  A   B and its converse   IF-HAVE  A   B THEN-HAVE  (A  B)