Tutorial – First Order (Predicate) Logic

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

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.
Standard Logical Equivalences
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.
Knowledge Based Systems: Logic and Deduction Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Predicate Calculus Russell and Norvig: Chapter 8,9.
2-7 Flow Proofs.
Pamela Leutwyler. There are 100 animal lovers at a picnic. Everyone has a dog or a cat. 60 own dogs. 30 own cats and dogs. All of the dog owners are men.
English Language IQ Test
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
RESOLUTION: A COMPLETE INFERENCE PROCEDURE. I Then we certainly want to be able to conclude S(A); S(A) is true if S(A) or R(A) is true, and one of those.
Resolution Theorem Prover in First-Order Logic
PAI Recitation 3 – Logic Yuxin Chen Inference Truth tables Modus ponens Resolution …
Knowledge Representation Methods
Propositional Calculus A propositional calculus formula is composed of atomic propositions, which area simply statements that are either true or false.
COMMONWEALTH OF AUSTRALIA Copyright Regulations 1969 WARNING This material has been reproduced and communicated to you by or on behalf of Monash University.
1 Applied Computer Science II Resolution in FOL Luc De Raedt.
Inference in FOL Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 9 Spring 2004.
Formal Aspects of Computer Science – Week 12 RECAP Lee McCluskey, room 2/07
Adapted from Discrete Math
INFERENCE IN FIRST-ORDER LOGIC IES 503 ARTIFICIAL INTELLIGENCE İPEK SÜĞÜT.
For Friday Exam 1. For Monday No reading Take home portion of exam due.
Inference in First-Order logic Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
For Wednesday Read chapter 10 Prolog Handout 4. Exam 1 Monday Take home due at the exam.
1 Knowledge Representation. 2 Definitions Knowledge Base Knowledge Base A set of representations of facts about the world. A set of representations of.
Inference in FOL Compared to predicate logic, more abstract reasoning and specific conclusions.
Unification Algorithm Input: a finite set Σ of simple expressions Output: a mgu for Σ (if Σ is unifiable) 1. Set k = 0 and  0 = . 2. If Σ  k is a singleton,
Artificial Intelligence: Introduction Department of Computer Science & Engineering Indian Institute of Technology Kharagpur.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 11 of 41 Wednesday, 15.
Propositional Calculus – Methods of Proof Predicate Calculus Math Foundations of Computer Science.
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
Propositional Logic Predicate Logic
Propositional & Predicate Calculus _I
For Wednesday Finish reading chapter 10 – can skip chapter 8 No written homework.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Hamiltonian Cycles Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering,
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
Answer Extraction To use resolution to answer questions, for example a query of the form  X C(X), we must keep track of the substitutions made during.
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Trees Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering, IIT
Indian Institute of Technology Kharagpur PALLAB DASGUPTA Graph Theory: Planarity Pallab Dasgupta, Professor, Dept. of Computer Sc. and Engineering, IIT.
CT214 – Logical Foundations of Computing Darren Doherty Rm. 311 Dept. of Information Technology NUI Galway
NLP. Introduction to NLP What is the meaning of: (5+2)*(4+3)? Parse tree N N N N + + E E E E F F* FE E E 49.
Propositional Logic. Assignment Write any five rules each from two games which you like by using propositional logic notations.
Computing & Information Sciences Kansas State University Monday, 18 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 11 of 42 Monday, 18 September.
Foundations of Computing Science
Foundations of Computing Science
Propositional Calculus: Boolean Functions and Expressions
Lecture 1 – Formal Logic.
FIGURE 4-10 Function Return Statements
The Hebrew University of Jerusalem
Deadlock-free Packet Switching
Tutorial - Propositional Logic
CS 4700: Foundations of Artificial Intelligence
FIGURE 4-10 Function Return Statements
CS60002: Distributed Systems
Timed Automata Formal Systems Pallab Dasgupta Professor,
Context-free Languages
The Balanced Sliding Window Protocol
FIGURE 4-10 Function Return Statements
MAT 3100 Introduction to Proof
Resolution in predicate Logic
FIGURE 4-10 Function Return Statements
Graph Theory: Proof Techniques
Graph Theory: Degree Sequences and Digraphs
Deniz Beser A Fundamental Tradeoff in Knowledge Representation and Reasoning Hector J. Levesque and Ronald J. Brachman.
CS60002: Distributed Systems
Tutorial - 2 Course: CS60045 Pallab Dasgupta Professor,
Presentation transcript:

Tutorial – First Order (Predicate) Logic Foundations of Computing Science Pallab Dasgupta Professor, Dept. of Computer Sc & Engg INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Convert to Normal Form Express the statements below in FOL and convert each to Normal Form using the predicates: Phil(x) : x is a Philosopher Book(x): x is a Book Write(x,y): x writes book y StudentOf(y,x): y is a student of x. Read(x,y): x reads y Every philosopher writes at least one book All students of a philosopher read one of their teacher’s books. There exists a philosopher with students INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Reasoning using Predicate Logic Consider the following statements: A topper is a student with highest CGPA. For each topper, either everyone likes the topper or the topper dislikes everyone. Raj dislikes everyone. Express these statements in first-order logic. Use meaningful predicate names, such as, Topper(x), Likes(x, y) (for x likes y). Convert the statements into normal form. For each of the following statements, determine whether it is entailed from the above statements. For the ones that are entailed, provide a resolution-refutation proof. For the ones that are not entailed (if any), provide a justification. G1: Raj is the topper G2: Every topper dislikes everyone INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Did Curiosity kill the cat? Encode the following sentences in FOL: Jack owns a dog Every dog owner is an animal lover No animal lover kills an animal Either Jack or Curiosity killed the cat, who is named Tuna Did Curiosity kill the cat? INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Questions What is the meaning of the following FOL formulas? bought(Frank, dvd) ∃x.bought(Frank, x) ∀x(bought(Frank, x) → bought(Susan, x)) ∀x.bought(Frank, x) → ∀x.bought(Susan, x) ∀x∃y.bought(x, y) ∃x∀y.bought(x, y) [Question 3.6] INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Questions 2. Define an appropriate language and formalize the following sentences using FOL formulas. Bill has at least one sister. Bill has no sister. Bill has at most one sister. Bill has (exactly) one sister. Bill has at least two sisters. Every student takes at least one course. Only one student failed Geometry. No student failed Geometry but at least one student failed Analysis. Every student who takes Analysis also takes Geometry. [Question 3.6] INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR

Questions 3. Which of the following formulas is a formalization of the sentence: "There is a computer which is not used by any student” ∃x.(Computer(x) ∧ ∀y.(¬Student(y) ∧ ¬Uses(y, x))) ∃x.(Computer(x) → ∀y.(Student(y) → ¬Uses(y, x))) ∃x.(Computer(x) ∧ ∀y.(Student(y) → ¬Uses(y, x))) [Question 3.6] INDIAN INSTITUTE OF TECHNOLOGY KHARAGPUR