CSNB234 ARTIFICIAL INTELLIGENCE

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

1 Knowledge Representation Introduction KR and Logic.
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
Inference Rules Universal Instantiation Existential Generalization
Knowledge & Reasoning Logical Reasoning: to have a computer automatically perform deduction or prove theorems Knowledge Representations: modern ways of.
Justification-based TMSs (JTMS) JTMS utilizes 3 types of nodes, where each node is associated with an assertion: 1.Premises. Their justifications (provided.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
First Order Logic Resolution
We have seen that we can use Generalized Modus Ponens (GMP) combined with search to see if a fact is entailed from a Knowledge Base. Unfortunately, there.
For Friday No reading Homework: –Chapter 9, exercise 4 (This is VERY short – do it while you’re running your tests) Make sure you keep variables and constants.
Logic Use mathematical deduction to derive new knowledge.
1 DCP 1172 Introduction to Artificial Intelligence Chang-Sheng Chen Topics Covered: Introduction to Nonmonotonic Logic.
Logic CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Logic Concepts Lecture Module 11.
Copyright © Cengage Learning. All rights reserved.
F22H1 Logic and Proof Week 7 Clausal Form and Resolution.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Propositional Calculus A propositional calculus formula is composed of atomic propositions, which area simply statements that are either true or false.
1 Introduction to Computability Theory Lecture15: Reductions Prof. Amos Israeli.
1 Introduction to Computability Theory Lecture12: Reductions Prof. Amos Israeli.
CSE (c) S. Tanimoto, 2008 Propositional Logic
ITCS 3153 Artificial Intelligence Lecture 11 Logical Agents Chapter 7 Lecture 11 Logical Agents Chapter 7.
Logic and Proof. Argument An argument is a sequence of statements. All statements but the first one are called assumptions or hypothesis. The final statement.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution.
Inference and Resolution for Problem Solving
Knoweldge Representation & Reasoning
Chapter 3 Propositional Logic
Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus Artificial Intelligence Chapter 14 Resolution in the Propositional Calculus.
Artificial Intelligence Reasoning. Reasoning is the process of deriving logical conclusions from given facts. Durkin defines reasoning as ‘the process.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
Notes for Chapter 12 Logic Programming The AI War Basic Concepts of Logic Programming Prolog Review questions.
Inference is a process of building a proof of a sentence, or put it differently inference is an implementation of the entailment relation between sentences.
Proof Systems KB |- Q iff there is a sequence of wffs D1,..., Dn such that Dn is Q and for each Di in the sequence: a) either Di is in KB or b) Di can.
MATH 224 – Discrete Mathematics
1 Chapter 7 Propositional and Predicate Logic. 2 Chapter 7 Contents (1) l What is Logic? l Logical Operators l Translating between English and Logic l.
Pattern-directed inference systems
Logical Agents Logic Propositional Logic Summary
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
HAWKES LEARNING Students Count. Success Matters. Copyright © 2015 by Hawkes Learning/Quant Systems, Inc. All rights reserved. Section 1.1 Thinking Mathematically.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
2.3Logical Implication: Rules of Inference From the notion of a valid argument, we begin a formal study of what we shall mean by an argument and when such.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Automated Reasoning Early AI explored how to automated several reasoning tasks – these were solved by what we might call weak problem solving methods as.
Automated Reasoning Early AI explored how to automate several reasoning tasks – these were solved by what we might call weak problem solving methods as.
1 Introduction to Abstract Mathematics Chapter 2: The Logic of Quantified Statements. Predicate Calculus Instructor: Hayk Melikya 2.3.
Chapter 2 Logic 2.1 Statements 2.2 The Negation of a Statement 2.3 The Disjunction and Conjunction of Statements 2.4 The Implication 2.5 More on Implications.
Chapter 4: Inference Techniques
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
Resolution Theorem Proving in Predicate Calculus Lecture No 10 By Zahid Anwar.
What is an argument? An argument is, to quote the Monty Python sketch, "a connected series of statements to establish a definite proposition." Huh? Three.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Artificial Intelligence Knowledge Representation.
Artificial Intelligence Logical Agents Chapter 7.
Chapter 1 Logic and proofs
March 8, 2016Introduction to Artificial Intelligence Lecture 13: Knowledge Representation & Reasoning II 1Resolution And yet Another Example: Resolving.
Knowledge Based Systems
Chapter 1 Logic and Proof.
Chapter 7. Propositional and Predicate Logic
Introduction to Logic for Artificial Intelligence Lecture 2
Knowledge Representation and Reasoning
Resolution in the Propositional Calculus
CS201: Data Structures and Discrete Mathematics I
Biointelligence Lab School of Computer Sci. & Eng.
Resolution And yet Another Example:
CS 416 Artificial Intelligence
Biointelligence Lab School of Computer Sci. & Eng.
Chapter 7. Propositional and Predicate Logic
CSNB234 ARTIFICIAL INTELLIGENCE
CSNB234 ARTIFICIAL INTELLIGENCE
CS201: Data Structures and Discrete Mathematics I
Presentation transcript:

CSNB234 ARTIFICIAL INTELLIGENCE Chapter 4 Refutation and Resolution Proof (Part I) (Chapter 13, pp. 547-574, Textbook) Instructor: Alicia Tang Y. C.

Proof by Refutation & Resolution Resolution is a simple iterative process or procedure for deducing conclusions. In performing resolution to the set of clauses, the negation of the conclusion is also added. At each step, two clauses - called the parent clauses from this new set of clauses are compared (resolved), yielding a new clause called the Resolvent.

Proof by Refutation & Resolution The two clauses to be resolved are chosen in such a way that they contain a common literal appearing as positive in one and as negative in the other. The resolvent is obtained by combining the two clauses by an or () connective after removing the common literal from the parent clauses.

Steps:  construct the conflict set (premises + negation of the conclusion).  Convert the conflict set to a set of expressions in clausal form.  Repeatedly applying the resolution rule to try to derive a contradiction.  If a contradiction is found, then the argument is valid; if not, the argument is invalid.

Remove implications and we get: Let us look at this:  Premises: p  q q & s  r s p  Conclusion: r  Conflict set: { p q, q & s  r, s, p, r} Remove implications and we get: p  q (from p q) and q  s  r (from q & s  r)

& we shall get a conflict set that contains all clauses: {p  q, q  s  r, p, s, r} Apply resolution to derive a contradiction: 1. p  q 2. q  s  r 3. p 4. s 5. r 6. q  s (from 2 and 5) 7. q (from 4 and 6) 8. p (from 1 and 7) 9. Direct contradiction : 3 and 8. We can conclude that the argument is valid, i.e. the conclusion r is true.

A Worked Example Question: Given the following facts & rules: all cats are animals lily is a cat all animals will die Prove that “lily will die”

all cats are animals lily is a cat all animals will die (1) X. cat(X)  animal(X) (2) cat(lily) (3) X. animal(Y)  dies(Y)

Convert (1), (2) & (3) into clausal forms: 1. cat(X)  animal(X) 2. cat(lily) 3. animal(Y)  dies(Y) Don’t forget to negate the conclusion: 4. dies(lily) Direct contradiction 5. animal(lily) from 1 & 2 6. dies(lily) from 3 & 5 7. Nil from 4 & 6 Since we can reach a contradicting situation in the proof steps Therefore, “lily will die” is true (i.e. the given goal is true)

CSNB234 ARTIFICIAL INTELLIGENCE Chapter 4 Reasoning Methods (part II) Instructor: Alicia Tang Y. C.

Automated Reasoning Automated Reasoning is arguably the earliest application area of Artificial Intelligence Throughout the history of AI, automated reasoning has played an important role Its products include a large number of inferencing techniques and strategies

What is Reasoning? Reasoning the set of processes that enables us to go beyond the information provided Reasoning is the thought process that follows rules of logic.

What is Reasoning? We do reasoning in our day-to-day life while drawing conclusions from our knowledge or from information available to us This is a task that humans are good at

Automated Reasoning Components Three components make up an automated reasoning system: an unambiguous representation language, sound inference rules, and well defined search strategies.

Reasoning Categories We are able to make approximate predictions of reasoning so we should be able to build models of reasoning process so that we will be able to solve a problem almost in the same way as a person does. Reasoning is used extensively for problem solving in AI. The reasoning process can be classified into two categories: Monotonic Reasoning and Non-monotonic Reasoning.

Monotonic Reasoning (I) Even though the newer conclusion may be more valid.. Because there is no mechanisms for ‘KB updating’ use… Monotonic Reasoning (I) In monotonic reasoning if we enlarge at set of axioms we cannot retract any existing assertions or axioms. Once an assertion is made, that can be considered as an axiom, i.e. during the process of reasoning, if we derive a conclusion, this conclusion can not be disproved throughout the entire process of reasoning.

Non-Monotonic Reasoning (II) The traditional logic is monotonic, i.e. if we are able to draw a conclusion from the set of axioms already available, then we will be able to draw the same conclusion after adding some more axioms to this set of axioms. Using the set of newly added axioms we may be able to draw further conclusions. This monotonicity property is not compatible to our natural ways of thinking.

Non-Monotonic Reasoning (III) In non-monotonic reasoning, an already derived conclusion may be removed, if necessary, in case of a newly added assertion forms a contradiction with the set of axioms. We tend to remove a rule (or axiom) from our memory, whenever we come across a rule that is contradictory to some rule in the memory.

Other Methods There are various reasoning methods used for problem solving in AI. Each method is based on a specific type of logic suitable for that method. Here we discuss different reasoning methods and the logic used for developing these methods.

Deductive Reasoning (I) Deductive reasoning allows us to draw conclusions that must hold given a set of premises (facts). By deductive reasoning, we make inferences about an object based on the information available about a class or category to which the object belongs. The logic used to do deductive reasoning is deductive logic.

Deductive Reasoning (II) Example: Suppose you are given information that all cats have tails then you may conclude that ‘sweetie” - your friend’s cat also has a tail even without seeing sweetie.

Inductive Reasoning (I) Inductive reasoning is exactly opposite to that of deductive reasoning as far as the way of making inferences is concerned. Inductive reasoning makes generalisation based on the results available for instances.

Inductive Reasoning (II) As a result, conclusions need not be true given premises Category-based induction Mental models In other words, when we do inductive reasoning, if we have information for a few objects then we conclude that this information is true for any object belonging to a class in which these objects belong.

Inductive Reasoning (III) Suppose you arrived in Bangi town that’s new to you and on the first day you found a new friend who is a vegetarian. This friend introduced you to another friend who is also a vegetarian. Next day when you went to your work place, you were told that your boss is a vegetarian. From these, can you conclude that “all people in Bangi are vegetarians”? Surely NOT! But inductive reasoning will say “YES”. i.e. all people in Bangi are vegetarian

Induction & Plausible Reasoning I have seen 1000 black Perdana. I have never seen a Perdana that is not black. Therefore, every Perdana is black. This conclusion sounds ok... but (still) it is not always right

Abductive Reasoning (I) The method of drawing conclusions using abductive reasoning is somewhat similar to the inverse process of applying a rule. It is about when Q is true, P will be true …which is missing from the earlier inference rules

Abductive Reasoning (II) Example: Suppose we have the rule X measles(X)  spots(X) This axiom says that having measles implies having spots. While doing abductive reasoning, if we notice spots, we may conclude measles. This conclusion is not valid as per the rules of logic. However this can be considered as a good guess when no other information is available. A measure of certainty can be attached to this guess to decide the acceptability of the guess.

Default Reasoning [Raymond Reiter 1980] This is a very common form of non-monotonic reasoning. where We want to draw conclusions based on what is most likely to be true. Default reasoning is concerned with making inferences in cases where the information at hand is incomplete. In other words, default reasoning is normally done based on the absence of information.

Default Reasoning By default reasoning, we believe any statement or axiom unless it is mentioned that the statement is false. For example: If Ali is a Professor of Computer Science and there is no proof that Ali does not possess a PhD then you may believe that Ali has a PhD Conclusions drawn from these type of rules are called defaults.