Tasks 41-50. Task 41 Solve Exercise 12, Chapter 2.

Slides:



Advertisements
Similar presentations
Inference Rules Universal Instantiation Existential Generalization
Advertisements

1 A formula in predicate logic An atom is a formula. If F is a formula then (~F) is a formula. If F and G are Formulae then (F /\ G), (F \/ G), (F → G),
Introduction to Theorem Proving
Standard Logical Equivalences
CPSC 121: Models of Computation Unit 6 Rewriting Predicate Logic Statements Based on slides by Patrice Belleville and Steve Wolfman.
UIUC CS 497: Section EA Lecture #2 Reasoning in Artificial Intelligence Professor: Eyal Amir Spring Semester 2004.
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
Inference and Reasoning. Basic Idea Given a set of statements, does a new statement logically follow from this. For example If an animal has wings and.
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.
Resolution
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
13 Automated Reasoning 13.0 Introduction to Weak Methods in Theorem Proving 13.1 The General Problem Solver and Difference Tables 13.2 Resolution.
Resolution Theorem Proving
Logic.
Resolution in Propositional and First-Order Logic.
Logic Concepts Lecture Module 11.
Prolog IV Logic, condensed. 2 Propositional logic Propositional logic consists of: The logical values true and false ( T and F ) Propositions: “Sentences,”
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
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)
Formal Logic Proof Methods Direct Proof / Natural Deduction Conditional Proof (Implication Introduction) Reductio ad Absurdum Resolution Refutation.
CSE (c) S. Tanimoto, 2008 Propositional Logic
ITCS 3153 Artificial Intelligence Lecture 11 Logical Agents Chapter 7 Lecture 11 Logical Agents Chapter 7.
1 Automated Reasoning Introduction to Weak Methods in Theorem Proving 13.1The General Problem Solver and Difference Tables 13.2Resolution Theorem.
Logic in Computer Science Transparency No Chapter 3 Propositional Logic 3.6. Propositional Resolution.
3 Logic Translate the following four English sentences to first order logic (FOL). [4p] 1. Anyone passing his history exams and winning the lottery is.
From Chapter 4 Formal Specification using Z David Lightfoot
Knoweldge Representation & Reasoning
Chapter 3 Propositional Logic
Artificial Intelligence
Propositional logic It represents real-world facts as logical propositions in well formed formulas. It presented as an atomic propositions, and complex.
Automated Reasoning ARTIFICIAL INTELLIGENCE 6th edition George F Luger
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
CSCI 115 Chapter 2 Logic. CSCI 115 §2.1 Propositions and Logical Operations.
Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005.
Conjunctive normal form: any formula of the predicate calculus can be transformed into a conjunctive normal form. Def. A formula is said to be in conjunctive.
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.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
Fundamentals of Logic 1. What is a valid argument or proof? 2. Study system of logic 3. In proving theorems or solving problems, creativity and insight.
KU NLP Resolution Theorem Proving Resolution Theorem Proving q Introduction - Resolution Principle q Producing the Clause Form q
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.
CS6133 Software Specification and Verification
For Wednesday Finish reading chapter 10 – can skip chapter 8 No written homework.
Chapter 2 Fundamentals of Logic 1. What is a valid argument or proof?
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Resolution Theorem Proving in Predicate Calculus Lecture No 10 By Zahid Anwar.
Foundations of Discrete Mathematics Chapter 1 By Dr. Dalia M. Gil, Ph.D.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
Chapter 1 Logic and proofs
Lectures 1,2 Introduction to the course Logics. WHO AM I?
2. The Logic of Compound Statements Summary
Lecture 1 – Formal Logic.
Propositional Logic Resolution
Propositional Approaches to First-Order Theorem Proving
Logic Use mathematical deduction to derive new knowledge.
CS 416 Artificial Intelligence
Prolog IV Logic, condensed.
Resolution Theorem Proving
Back to “Serious” Topics…
Reasoning with the Propositional Calculus
Reasoning with the Propositional Calculus
Foundations of Discrete Mathematics
Reasoning with the Propositional Calculus
Reasoning with the Propositional Calculus
RESOLUTION.
Resolution Proof System for First Order Logic
Presentation transcript:

Tasks 41-50

Task 41 Solve Exercise 12, Chapter 2

Task 42 Solve Exercise 2, Chapter 12

Task 43 Solve Exercise 3, Chapter 12

Task 44 Solve Exercise 8, Chapter 12

Task 45 Solve Exercise 13, Chapter 12

Task 46 Consider transformation rules R1-R12 from Lecture 10 Provide the shortest possible proof for the example considered at Lecture 10 (that consisting of 14 steps)

Task 47 Derive a resolution proof for the example mentioned in Task 46

Task 48 Using the truth tables, show that the reasoning rules applied in the resolution proofs are always valid

Task 49 Consider standard fuzzy logic system where –The degree of negation  P equals to one subtracted by the degree of P –The degree of conjunction P  Q equals to the minimum of the degree of P and the degree of Q –The degree of disjunction P  Q equals to the maximum of the degree of P and the degree of Q Show that in this system a fuzzy de Morgan law holds, that is: the degrees of formulas  (P  Q) and  P   Q are always the same

Task 50 Consider fuzzy logic system where –The degree of negation  P equals to one subtracted by the degree of P –The degree of P  Q equals to the multiplication of the degree of P and the degree of Q How should we define the formula for the degree of disjunction to obtain a law analogous to that from Task 49?

Transformation rules for logic problems (Newell & Simon, 1961) “  ” denotes conjunction “  ” denotes disjunction “  ” denotes negation “  ” denotes implication “  ” and “  ” denote legal replacement

Transformation rules for logic problems (Newell & Simon, 1961) Modus Ponens (Detachment) Chaining

A proof of a theorem in propositional calculus (Newell & Simon, 1961)

Flow charts for General Problem Solver (Newell & Simon, 1963)

Table of connections for GPS (Newell & Simon, 1963) X means some variant of the rule is relevant GPS will pick the appropriate variant

RESOLUTION THEOREM PROVING

Resolution refutation proof Put the premises or axioms into clause form (CNF-form) Add the negation of what is to be proved, in clause form, to the set axioms Resolve these clauses together, producing new clauses that logically follow from them Produce a contradiction by generating the empty clause

Example We wish to prove that “Fido will die” from the statements that “Fido is a dog” and “all dogs are animals” and “all animals will die”

Applying modus ponens to the corresponding predicates All dogs are animals:  (X)(dog(X)  animal(X)) Fido is a dog: dog(fido) Modus ponens and {fido/X} gives: animal(fido) All animals will die:  (Y)(animal(Y)  die(Y)) Modus ponens and {fido/Y} gives: die(fido)

Reasoning by resolution  (X)(dog(X)  animal(X))  dog(X)  animal(X) dog(fido)  (Y)(animal(Y)  die(Y))  animal(Y)  die(Y)  die(fido) We show that the following is false: (  dog(X)  animal(X))  (dog(fido))  (  animal(Y)  die(Y))  (  die(fido))

Resolution proof

Summary The resolution refutation proof procedure answers a query or deduces a new result by reducing the set of clauses to a contradiction, represented by the null clause (  ) The contradiction is produced by resolving pairs of clauses from the database If a resolution does not produce a contradiction directly, then the clause produced by the resolution, the resolvent, is added to the database of clauses and the process continues

Binary Resolution Procedure Suppose a  b and b  c are both true statements One of literals b and  b must be false Therefore, one of literals a and c is true As a conclusion, a  c is true a  c is the resolvent of the parent clauses a  b and b  c

Example Suppose we have axioms a  b  c b c  d  e e  f d  f We want to prove a

Reducing to the clause form a  b  c a  (b  c)by l  m   l  m a  b  cby de Morgan’s law

Final clause form abcabca  b  c bb cdecdec  d  e efefefef d  f d ff

Resolution proof

Yet another 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?

Predicate Calculus Anyone passing his history exams and winning the lottery is happy  X(pass(X,history)  win(X,lottery)  happy(X)) Anyone who studies or is lucky can pass all his exams  X  Y(study(X)  lucky(X)  pass(X,Y)) John did not study but he is lucky  study(john)  lucky(john) Anyone who is lucky wins the lottery  X(lucky(X)  win(X,lottery))

Clause form Premises:  pass(X,history)  win(X,lottery)  happy(X)  study(Y)  pass(Y,Z)  lucky(W)  pass(W,V)  study(john) lucky(john)  lucky(U)  win(U,lottery) Negation of conclusion:  happy(john)

Resolution proof

THANK YOU