Knowledge Representation and Reasoning 2

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

Biointelligence Lab School of Computer Sci. & Eng.
Standard Logical Equivalences
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.
Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in.
1 Knowledge Representation and Reasoning. 2 Knowledge Representation & Reasoning How knowledge about the world can be represented How knowledge about.
Introduction to Logic for Artificial Intelligence Lecture 2 Erik Sandewall 2010.
Fall 2002CMSC Discrete Structures1 Let’s proceed to… Mathematical Reasoning.
Adapted from Discrete Math
November 7, 2012Introduction to Artificial Intelligence Lecture 13: Neural Network Basics 1 Note about Resolution Refutation You have a set of hypotheses.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
First Order Logic Chapter 7. PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
CMPF144 FUNDAMENTALS OF COMPUTING THEORY Module 5: Classical Logic.
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
1.  Provides the ability to access individual assertions. e.g. in Predicate calculus we may say: P denotes “It rained on Tuesday” but in predicate calculus.
Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in.
Hazırlayan DISCRETE COMPUTATIONAL STRUCTURES Propositional Logic PROF. DR. YUSUF OYSAL.
Artificial Intelligence Chapter 15 The Predicate Calculus Artificial Intelligence Chapter 15 The Predicate Calculus Biointelligence Lab School of Computer.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
Propositional Logic Predicate Logic
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
1 Knowledge Based Systems (CM0377) Lecture 6 (last modified 20th February 2002)
Albert Gatt LIN3021 Formal Semantics Lecture 3. Aims This lecture is divided into two parts: 1. We make our first attempts at formalising the notion of.
PREDICATE CALCULS In Propositional Calculus, each atomic symbol denotes a proposition. But there is no way to access the components of an individual assertion.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
March 8, 2016Introduction to Artificial Intelligence Lecture 13: Knowledge Representation & Reasoning II 1Resolution And yet Another Example: Resolving.
Propositional Calculus
Introduction to Logic for Artificial Intelligence Lecture 2
Knowledge Representation and Reasoning
Applied Discrete Mathematics Week 5: Mathematical Reasoning
Rules of inference for quantifiers
The function of knowledge representation scheme is
The Propositional Calculus
Predicate Calculus Discussion #14 Chapter 2, Section 1 1/20.
Discussion #14 Predicate Calculus
Proposition & Predicates
Notes 8: Predicate logic and inference
CMSC Discrete Structures
Artificial Intelligence
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
CS201: Data Structures and Discrete Mathematics I
CSE 311 Foundations of Computing I
Mathematical Reasoning
Predicate Calculus Discussion #14 Chapter 2, Section 1.
CMSC Discrete Structures
Resolution And yet Another Example:
Artificial Intelligence Chapter 15. The Predicate Calculus
Horn Clauses and Unification
Back to “Serious” Topics…
MA/CSSE 474 More Math Review Theory of Computation
Applied Discrete Mathematics Week 2: Proofs
Discrete Mathematics CMP-200 Propositional Equivalences, Predicates & Quantifiers, Negating Quantified Statements Abdul Hameed
Discrete Mathematics Lecture 4 & 5: Predicate and Quantifier
Predicates and Quantifiers
CS621 : Artificial Intelligence
Chapter 1: Propositional and First-Order Logic
Propositional Calculus
Encoding Knowledge with First Order Predicate Logic
CS201: Data Structures and Discrete Mathematics I
Mathematical Reasoning
Predicate Calculus. Predicate Calculus Topics Predicates Variables and instantiation Quantifiers Logical expressions Bound and free variables.
Predicate Logic: Syntax.
Predicate Logic.
Representations & Reasoning Systems (RRS) (2.2)
Knowledge Representation
Presentation transcript:

Knowledge Representation and Reasoning 2 Advance Artificial Intelligence

Knowledge Representation & Reasoning Knowledge representation is the study of how knowledge about the world can be represented and what kinds of reasoning can be done with that knowledge. We will discuss two different systems that are commonly used to represent knowledge in machines and perform algorithmic reasoning: Propositional calculus Predicate calculus Advance Artificial Intelligence

Advance Artificial Intelligence Predicate Calculus So it is a better idea to use predicates instead of propositions. This leads us to predicate calculus. Predicate calculus has symbols called object constants, relation constants, and function constants These symbols will be used to refer to objects in the world and to propositions about the word. Advance Artificial Intelligence

Advance Artificial Intelligence Components Object constants: Strings of alphanumeric characters beginning with either a capital letter or a numeral. Examples: XY, Allahabad, 154, H1B Function constants: Strings of alphanumeric characters beginning with a lowercase letter and (sometimes) superscripted by their “arity”: Examples: fatherOf1, distanceBetween2 Advance Artificial Intelligence

Advance Artificial Intelligence Components Relation constants: Strings of alphanumeric characters beginning with a capital letter and (sometimes) superscripted by their “arity”: Examples: BeatsUp2, Tired1 Other symbols: Propositional connectives , , , and , delimiters (, ), [, ], and separator ,. Advance Artificial Intelligence

Advance Artificial Intelligence Terms An object constant is a term. A function constant of arity n, followed by n terms in parentheses and separated by commas, is a term. Examples: fatherOf(Sunita), times(3, minus(5, 2)) Advance Artificial Intelligence

Advance Artificial Intelligence Wffs Atoms: A relation constant of arity n followed by n terms in parentheses and separated by commas is an atom. An atom is a wff. Examples: Tired(Tanya), OlderThan(Pawan, Afsa) Propositional wffs: Any expression formed out of predicate-calculus wffs in the same way that the propositional calculus forms wffs out of other wffs is a propositional wff. Example: OlderThan(Pawan, Afsa)  OlderThan(Afsa, Komal) Advance Artificial Intelligence

Advance Artificial Intelligence Interpretations An interpretation of an expression in the predicate calculus is an assignment that maps object constants into objects in the world, n-ary function constants into n-ary functions, n-ary relation constants into n-ary relations. These assignments are called the denotations of their corresponding predicate-calculus expressions. Advance Artificial Intelligence

Advance Artificial Intelligence Interpretations B Example: Blocks world: A C Floor Predicate Calculus World A A B B C C Fl Floor On On = {<B,A>, <A,C>, <C, Floor>} Clear Clear = {<B>} Advance Artificial Intelligence

Advance Artificial Intelligence Quantification Introducing the universal quantifier  and the existential quantifier  facilitates the translation of world knowledge into predicate calculus. Examples: Paul beats up all professors who fail him. x(Professor(x)  Fails(x, Paul)  BeatsUp(Paul, x)) There is at least one intelligent IIITA professor. x(IIITAProf(x)  Intelligent(x)) Advance Artificial Intelligence

Note about Resolution Refutation You have a set of hypotheses h1, h2, …, hn, and a conclusion c. Your argument is that whenever all of the h1, h2, …, hn are true, then c is true as well. In other words, whenever all of the h1, h2, …, hn are true, then c is false. If and only if the argument is valid, then the conjunction h1  h2  …  hn  c is false, because either (at least) one of the h1, h2, …, hn is false, or if they are all true, then c is false. Therefore, if this conjunction resolves to false, we have shown that the argument is valid. Advance Artificial Intelligence

Advance Artificial Intelligence Quantification Introducing the universal quantifier  and the existential quantifier  facilitates the translation of world knowledge into predicate calculus. Examples: Paul beats up all professors who fail him. x(Professor(x)  Fails(x, Paul)  BeatsUp(Paul, x)) There is at least one intelligent UMB professor. x(UMBProf(x)  Intelligent(x)) Advance Artificial Intelligence

Knowledge Representation a) There are no crazy UMB students. x (UMBStudent(x)  Crazy(x)) b) All computer scientists are either rich or crazy, but not both. x (CS(x)  [Rich(x)  Crazy(x)]  [Rich(x)  Crazy(x)] ) c) All UMB students except one are intelligent. x (UMBStudent(x)  Intelligent(x))  x,y (UMBStudent(x)  UMBStudent(y)  Identical(x, y)  Intelligent(x)  Intelligent(y)) d) Jerry and Betty have the same friends. x ([Friends(Betty, x)  Friends(Jerry, x)]  [Friends(Jerry, x)  Friends(Betty, x)]) e) No mouse is bigger than an elephant. x,y (Mouse(x)  Elephant(y)  BiggerThan(x, y)) Advance Artificial Intelligence

Advance Artificial Intelligence Rules of Inference x P(x) __________  P(c) if cU Universal instantiation P(c) for an arbitrary cU ___________________  x P(x) Universal generalization x P(x) ______________________  P(c) for some element cU Existential instantiation P(c) for some element cU ____________________  x P(x) Existential generalization Advance Artificial Intelligence

Advance Artificial Intelligence Rules of Inference Example: Every IS student is a genius. Sonal is a IS student. Therefore, Sonal is a genius. I(x): “x is an IS student.” G(x): “x is a genius.” Advance Artificial Intelligence

Advance Artificial Intelligence Rules of Inference The steps used can be interpreted as: Step 1: x (I(x)  G(x)) Step 2: I(Sonal)  G(Sonal) Find some x such that x is an IS student and then infer that x is genius If there is some substitution α that makes the premise of the implication identical to sentences already in the knowledge base , then we can assert the conclusion after applying α. In the above case, {x/Sonal} Advance Artificial Intelligence

Advance Artificial Intelligence Unification It is the process of finding substitutions that make different logical expressions look identical. Unify(p,q) = α where Subst(α,p) = Subst(α,q) Advance Artificial Intelligence