Knowledge Representation using First-Order Logic (Part II) Reading: Chapter 8, 9.1-9.2 First lecture slides read: 8.1-8.2 Second lecture slides read: 8.3-8.4.

Slides:



Advertisements
Similar presentations
First-Order Logic Chapter 8.
Advertisements

10 주 강의 First-order Logic. Limitation of propositional logic A very limited ontology  to need to the representation power  first-order logic.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
Logic. Propositional Logic Logic as a Knowledge Representation Language A Logic is a formal language, with precisely defined syntax and semantics, which.
CS 561, Session Midterm format Date: 10/10/2002 from 11:00am – 12:20 pm Location: THH 101 Credits: 35% of overall grade Approx. 4 problems, several.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
Logical Agents Chapter 7. Why Do We Need Logic? Problem-solving agents were very inflexible: hard code every possible state. Search is almost always exponential.
FIRST-ORDER LOGIC FOL or FOPC
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
First-Order Logic Chapter 8. Problem of Propositional Logic  Propositional logic has very limited expressive power –E.g., cannot say "pits cause breezes.
Knowledge Representation using First-Order Logic (Part III) This lecture: R&N Chapters 8, 9 Next lecture: Chapter 13; Chapter (Please read lecture.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
Predicate Calculus.
Propositional Logic: Logical Agents (Part I) This lecture topic: Propositional Logic (two lectures) Chapter (this lecture, Part I) Chapter 7.5.
First-Order Logic Knowledge Representation Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read:
FIRST ORDER LOGIC Levent Tolga EREN.
Reading: Chapter 8, , FOL Syntax and Semantics read:
Knowledge representation methods جلسه سوم. KR is AI bottleneck The most important ingredient in any expert system is knowledge. The power of expert systems.
1 CS 2710, ISSP 2610 Chapter 8, Part 2 First Order Predicate Calculus FOPC.
Logical Agents Chapter 7 (based on slides from Stuart Russell and Hwee Tou Ng)
First Order Logic Chapter 7. PL is a Weak Representational Language §Propositional Logic (PL) is not a very expressive language because: §Hard to identify.
1st-order Predicate Logic (FOL)
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
Propositional Logic: Logical Agents (Part I) This lecture topic: Propositional Logic (two lectures) Chapter (this lecture, Part I) Chapter 7.5.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
Pattern-directed inference systems
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
1 Last time: Logic and Reasoning Knowledge Base (KB): contains a set of sentences expressed using a knowledge representation language TELL: operator to.
ARTIFICIAL INTELLIGENCE Lecture 3 Predicate Calculus.
First-Order Logic Chapter 8. Outline Why FOL? Syntax and semantics of FOL Using FOL Wumpus world in FOL Knowledge engineering in FOL.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
1 Logical Agents CS 171/271 (Chapter 7) Some text and images in these slides were drawn from Russel & Norvig’s published material.
October 17, 2012Introduction to Artificial Intelligence Lecture 11: Knowledge Representation and Reasoning I 1Semantics In propositional logic, we associate.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
UBC Department of Computer Science Undergraduate Events More
Artificial Intelligence First-Order Logic (FOL). Outline of this Chapter The need for FOL? What is a FOL? Syntax and semantics of FOL Using FOL.
For Wednesday Read chapter 9, sections 1-3 Homework: –Chapter 7, exercises 8 and 9.
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
LDK R Logics for Data and Knowledge Representation First Order Logics (FOL) Originally by Alessandro Agostini and Fausto Giunchiglia Modified by Fausto.
First-Order Logic Chapter 8 (not 8.1). Outline Why FOL? Why FOL? Syntax and semantics of FOL Syntax and semantics of FOL Using FOL Using FOL Wumpus world.
First-Order Logic. Outline Why FOL? Syntax and semantics of FOL Using FOL Knowledge engineering in FOL.
LOGIC. Logic in general  Logics are formal languages for representing information such that conclusions can be drawn  Syntax defines the sentences in.
Computing & Information Sciences Kansas State University Lecture 12 of 42 CIS 530 / 730 Artificial Intelligence Lecture 12 of 42 William H. Hsu Department.
First-Order Logic Semantics Reading: Chapter 8, , FOL Syntax and Semantics read: FOL Knowledge Engineering read: FOL.
1 First Order Logic CS 171/271 (Chapter 8) Some text and images in these slides were drawn from Russel & Norvig’s published material.
First-Order Logic Chapter 8. Problem of Propositional Logic  Propositional logic has very limited expressive power –E.g., cannot say "pits cause breezes.
Lecture 041 Predicate Calculus Learning outcomes Students are able to: 1. Evaluate predicate 2. Translate predicate into human language and vice versa.
1 CS 2710, ISSP 2610 Chapter 8, Part 1 First Order Predicate Calculus FOPC.
Knowledge Representation using First-Order Logic (Part II) Reading: R&N Chapters 8, 9.
1 Section 7.1 First-Order Predicate Calculus Predicate calculus studies the internal structure of sentences where subjects are applied to predicates existentially.
Artificial Intelligence Logical Agents Chapter 7.
Computing & Information Sciences Kansas State University Monday, 18 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 11 of 42 Monday, 18 September.
Propositional Logic: Logical Agents (Part I)
First-Order Logic Knowledge Representation
Knowledge Representation using First-Order Logic
First-Order Logic Chapter 8.
Notes 8: Predicate logic and inference
First-Order Logic Knowledge Representation
Semantics In propositional logic, we associate atoms with propositions about the world. We specify the semantics of our logic, giving it a “meaning”. Such.
First-Order Logic Knowledge Representation
First-Order Logic Knowledge Representation
First-Order Logic Chapter 8.
Introduction to Artificial Intelligence
Artificial Intelligence Lecture 11: First Order Logic
Knowledge Representation using First-Order Logic (Part III)
First-Order Logic Knowledge Representation
Knowledge Representation I (Propositional Logic)
First-Order Logic Chapter 8.
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

Knowledge Representation using First-Order Logic (Part II) Reading: Chapter 8, First lecture slides read: Second lecture slides read: Third lecture slides read: Chapter (lecture slides spread across two class sessions) (Please read lecture topic material before and after each lecture on that topic)

Aside: More syntactic sugar --- uniqueness ! x is “syntactic sugar” for “There exists a unique x” –“There exists one and only one x” –“There exists exactly one x” For example, E! x PresidentOfTheUSA(x) This is just syntactic sugar: –! x P(x) is the same as  x P(x)  ( y P(y) => (x = y) )

Outline Review: KB |= S is equivalent to |= (KB  S) –So what does {} |= S mean? Review: Follows, Entails, Derives –Follows: “Is it the case?” –Entails: “Is it true?” –Derives: “Is it provable?” Semantics of FOL (FOPC) FOL can be TOO expressive, can offer TOO MANY choices –Likely confusion, especially for teams of Knowledge Engineers –Different team members can make different representation choices –E.g., represent “Ball43 is Red.” as: a predicate (= verb)? E.g., “Red(Ball43)” ? an object (= noun)? E.g., “Red = Color(Ball43))” ? a property (= adjective)? E.g., “HasProperty(Ball43, Red)” ? –SOLUTION: An upon-agreed ontology that settles these questions Ontology = what exists in the world & how it is represented The Knowledge Engineering teams agrees upon an ontology BEFORE they begin encoding knowledge

FOL (or FOPC) Ontology: What kind of things exist in the world? What do we need to describe and reason about? Objects --- with their relations, functions, predicates, properties, and general rules. Reasoning Representation A Formal Symbol System Inference Formal Pattern Matching Syntax What is said Semantics What it means Schema Rules of Inference Execution Search Strategy Last lectureThis lectureNext lecture

Review: Schematic for Follows, Entails, and Derives If KB is true in the real world, then any sentence  entailed by KB and any sentence  derived from KB by a sound inference procedure is also true in the real world. Sentences Sentence Derives Inference

Schematic Example: Follows, Entails, and Derives Inference “Mary is Sue’s sister and Amy is Sue’s daughter.” “Mary is Amy’s aunt.” Representation Derives Entails Follows World MarySue Amy “Mary is Sue’s sister and Amy is Sue’s daughter.” “An aunt is a sister of a parent.” Sister Daughter Mary Amy Aunt “Mary is Amy’s aunt.” Is it provable? Is it true? Is it the case?

Review: Models (and in FOL, Interpretations) Models are formal worlds in which truth can be evaluated We say m is a model of a sentence α if α is true in m M(α) is the set of all models of α Then KB ╞ α iff M(KB)  M(α) –E.g. KB, = “Mary is Sue’s sister and Amy is Sue’s daughter.” –α = “Mary is Amy’s aunt.” Think of KB and α as constraints, and of models m as possible states. M(KB) are the solutions to KB and M(α) the solutions to α. Then, KB ╞ α, i.e., ╞ (KB  a), when all solutions to KB are also solutions to α.

Review: Wumpus models KB = all possible wumpus-worlds consistent with the observations and the “physics” of the Wumpus world.

Review: Wumpus models α 1 = "[1,2] is safe", KB ╞ α 1, proved by model checking. Every model that makes KB true also makes α 1 true.

Semantics: Worlds The world consists of objects that have properties. –There are relations and functions between these objects –Objects in the world, individuals: people, houses, numbers, colors, baseball games, wars, centuries Clock A, John, 7, the-house in the corner, Tel-Aviv, Ball43 –Functions on individuals: father-of, best friend, third inning of, one more than –Relations: brother-of, bigger than, inside, part-of, has color, occurred after –Properties (a relation of arity 1): red, round, bogus, prime, multistoried, beautiful

Semantics: Interpretation An interpretation of a sentence (wff) is an assignment that maps –Object constant symbols to objects in the world, –n-ary function symbols to n-ary functions in the world, –n-ary relation symbols to n-ary relations in the world Given an interpretation, an atomic sentence has the value “true” if it denotes a relation that holds for those individuals denoted in the terms. Otherwise it has the value “false.” –Example: Kinship world: Symbols = Ann, Bill, Sue, Married, Parent, Child, Sibling, … –World consists of individuals in relations: Married(Ann,Bill) is false, Parent(Bill,Sue) is true, …

Truth in first-order logic Sentences are true with respect to a model and an interpretation Model contains objects (domain elements) and relations among them Interpretation specifies referents for constant symbols → objects predicate symbols → relations function symbols → functional relations An atomic sentence predicate(term 1,...,term n ) is true iff the objects referred to by term 1,...,term n are in the relation referred to by predicate

Semantics: Models An interpretation satisfies a wff (sentence) if the wff has the value “true” under the interpretation. Model: A domain and an interpretation that satisfies a wff is a model of that wff Validity: Any wff that has the value “true” under all interpretations is valid Any wff that does not have a model is inconsistent or unsatisfiable If a wff w has a value true under all the models of a set of sentences KB then KB logically entails w

Models for FOL: Example

Syntactic Ambiguity FOPC provides many ways to represent the same thing. E.g., “Ball-5 is red.” –HasColor(Ball-5, Red) Ball-5 and Red are objects related by HasColor. –Red(Ball-5) Red is a unary predicate applied to the Ball-5 object. –HasProperty(Ball-5, Color, Red) Ball-5, Color, and Red are objects related by HasProperty. –ColorOf(Ball-5) = Red Ball-5 and Red are objects, and ColorOf() is a function. –HasColor(Ball-5(), Red()) Ball-5() and Red() are functions of zero arguments that both return an object, which objects are related by HasColor. –… This can GREATLY confuse a pattern-matching reasoner. –Especially if multiple people collaborate to build the KB, and they all have different representational conventions.

FOL (or FOPC) Ontology: What kind of things exist in the world? What do we need to describe and reason about? Objects --- with their relations, functions, predicates, properties, and general rules. Reasoning Representation A Formal Symbol System Inference Formal Pattern Matching Syntax What is said Semantics What it means Schema Rules of Inference Execution Search Strategy Last lectureThis lectureNext lecture

Summary First-order logic: –Much more expressive than propositional logic –Allows objects and relations as semantic primitives –Universal and existential quantifiers –syntax: constants, functions, predicates, equality, quantifiers Knowledge engineering using FOL –Capturing domain knowledge in logical form Inference and reasoning in FOL –Next lecture Required Reading: –Chapter –Next lecture: –Next lecture: Chapter