CSE391- 2005 PredLogic 1 Knowledge Representation with Logic: First Order Predicate Calculus Outline –Introduction to First Order Predicate Calculus (FOPC)

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

First-Order Logic.
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Biointelligence Lab School of Computer Sci. & Eng.
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.
Artificial Intelligence
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.
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
1 DCP 1172 Introduction to Artificial Intelligence Lecture notes for Ch.8 [AIAM-2nd Ed.] First-order Logic (FOL) Chang-Sheng Chen.
Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus Artificial Intelligence Chapter 14. Resolution in the Propositional Calculus.
Knowledge Representation Methods
Knowledge Representation I Suppose I tell you the following... The Duck-Bill Platypus and the Echidna are the only two mammals that lay eggs. Only birds.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
CS 460, Session Midterm format Date: 10/07/2004 from 5:00pm – 6:30pm Location: WPH B27 (our regular classroom) Credits: 30% of overall grade Approx.
Knowledge Representation using First-Order Logic (Part II) Reading: Chapter 8, First lecture slides read: Second lecture slides read:
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.
Knowledge Representation I (Propositional Logic) CSE 473.
Logical Agents Chapter 7 Feb 26, Knowledge and Reasoning Knowledge of action outcome enables problem solving –a reflex agent can only find way from.
03 -1 Lecture 03 First-Order Predicate Logic Topics –Syntax –Formal Semantics –Denotational Semantics –Formal Inference –Resolution.
A Brief Summary for Exam 1 Subject Topics Propositional Logic (sections 1.1, 1.2) –Propositions Statement, Truth value, Proposition, Propositional symbol,
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.
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 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.
1 CMSC 471 Fall 2002 Class #10/12–Wednesday, October 2 / Wednesday, October 9.
Propositional Logic Dr. Rogelio Dávila Pérez Profesor-Investigador División de Posgrado Universidad Autónoma Guadalajara
Computing & Information Sciences Kansas State University Wednesday, 20 Sep 2006CIS 490 / 730: Artificial Intelligence Lecture 12 of 42 Wednesday, 20 September.
Propositional Calculus Knowledge based agent Knowledge is contained in agents in the form of sentences in a knowledge representation language stored in.
CS Introduction to AI Tutorial 8 Resolution Tutorial 8 Resolution.
1 Introduction to Computational Linguistics Eleni Miltsakaki AUTH Spring 2006-Lecture 8.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 12 Friday, 17 September.
9/30/98 Prof. Richard Fikes Inference In First Order Logic Computer Science Department Stanford University CS222 Fall 1998.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
CS6133 Software Specification and Verification
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.
Artificial Intelligence “Introduction to Formal Logic” Jennifer J. Burg Department of Mathematics and Computer Science.
Propositional Logic Predicate Logic
For Friday Read chapter 8 Homework: –Chapter 7, exercises 2 and 10 Program 1, Milestone 2 due.
Knowledge Repn. & Reasoning Lec. #5: First-Order Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2004.
Chapter 7. Propositional and Predicate Logic Fall 2013 Comp3710 Artificial Intelligence Computing Science Thompson Rivers University.
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.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
ARTIFICIAL INTELLIGENCE Lecture 2 Propositional Calculus.
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.
Instructor: Eyal Amir Grad TAs: Wen Pu, Yonatan Bisk Undergrad TAs: Sam Johnson, Nikhil Johri CS 440 / ECE 448 Introduction to Artificial Intelligence.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
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.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
Knowledge Representation and Reasoning
First-Order Logic Chapter 8.
The Propositional Calculus
Logic Use mathematical deduction to derive new knowledge.
First-Order Logic Chapter 8.
Back to “Serious” Topics…
Logical Agents Chapter 7.
Knowledge Representation I (Propositional Logic)
CSNB234 ARTIFICIAL INTELLIGENCE
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
First-Order Logic Chapter 8.
Introduction to Computational Linguistics
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

CSE PredLogic 1 Knowledge Representation with Logic: First Order Predicate Calculus Outline –Introduction to First Order Predicate Calculus (FOPC) syntax semantics –Entailment –Soundness and Completeness

CSE PredLogic 2 Modeling Our World with Propositional Logic Limited. –Quickly gets explosive and cumbersome, can’t express generalizations –Can’t distinguish between objects and relations

CSE PredLogic 3 Comparing Logics Ontology (ont = ‘to be’; logica = ‘word’): kinds of things one can talk about in the language Examples: Propositional Logic Facts Predicate Logic Objects, Relationships among Objects Temporal Logics Time Points or Intervals (divorce)

CSE PredLogic 4 Syntax of Predicate Logic Symbol set – give examples for: –constants –Boolean connectives –variables –functions –predicates (aka relations) –Quantifiers Terms: variables, constants, functional expressions (can be arguments to predicates)

CSE PredLogic 5 Syntax of Predicate Logic Sentences: –atomic sentences (predicate expressions, literals) Ground literal? –complex sentences (atomic sentences connected by Booleans) –quantified sentences

CSE PredLogic 6 Examples of Terms: Constants, Variables and Functions Constants –Alan, Sam, R225, R216 Variables –PersonX, PersonY, RoomS, RoomT Functions –father_of(PersonX) –product_of(Number1,Number2)

CSE PredLogic 7 Examples of Predicates and Quantifiers Predicates –in(Alan,R225) –partOf(R225,Pender) –fatherOf(PersonX,PersonY) Quantifiers –All dogs are mammals. –Some birds can’t fly. –3 birds can’t fly.

CSE PredLogic 8 Semantics of Predicate Logic A term is a reference to an object –constants –variables –functional expressions Sentences make claims about objects –Well-formed formulas, (wffs)

CSE PredLogic 9 Semantics, part 2 Object constants refer to individuals There is a correspondence between –functions, which return values –Predicates (or relations), which are true or false Function: father_of(Mary) = Bill Predicate: father_of(Mary, Bill)

CSE PredLogic 10 Semantics, part 3 Referring to individuals –Jackie –son-of(Jackie), Sam Referring to states of the world –person(Jackie), female(Jackie) –mother(Sam, Jackie)

CSE PredLogic 11 Combining Logical Symbols Terms: logical expressions referring to objects –first([a,b,c]), sq_root(9), sq_root(n), tail([a,b,c]) Atomic Sentences: –loves(John,Mary), brother_of(John,Ted) Complex Sentences: –loves(John,Mary) brother_of(John,Ted) teases(Ted, John)

CSE PredLogic 12 Encoding Facts pass(John, courses,40) => graduate(John) cavity(molar) => x-ray_shadow(molar) leak(pipe, kitchen) /\ full(pipe,water) => location(water, kitchen_floor)

CSE PredLogic 13 KB Design Choices Design choice: red(block1) color(block1, red) val(color,block1,red) 2 nd order predicate calculus.... Implication of choice: ????? nice(red) property(color)

CSE PredLogic 14 Quantifiers Universal Quantifiers. –All cats are mammals. Existential Quantifiers. –There is a cat owned by John.

CSE PredLogic 15 Restricting Quantifiers To say “All lawyers ___.” (  x Lawyer(x)  _____ ) To say “a lawyer ___.” “some lawyers ___.” (  x Lawyer(x)  _____ ) To say “no lawyers ___.” (  x Lawyer(x)   _____ )  (  x Lawyer(x)  _____ ) All lawyers do not ___. There does not exist a lawyer who ___.

CSE PredLogic 16 Negation and Quantification When you move negation inside or outside of a quantifier, then  and  get flipped. “All lawyers are not naïve.” is equivalent to “There is no lawyer that is naïve.” (Conditional Law) (DeMorgan’s Law) (Flip Quantifier)

CSE PredLogic 17 Nested Quantification There is some cat that has some owner. All cats have an owner (but that owner could be different). There is some person who owns all the cats in the world. For all the owners and ownees in the world, the owner loves the ownee. Order matters when some are  and some .

CSE PredLogic 18 The Power of Expressivity Indirect knowledge: Tall(MotherOf(john)) Counterfactuals: ¬Tall(john) Partial knowledge (disjunction): IsSisterOf(b,a)  IsSisterOf(c,a) Partial knowledge (indefiniteness):  xIsSisterOf(X,a)

CSE PredLogic 19 Inference Procedures Mechanical rules that compute (derive) a new sentence from a set of sentences. Proof theory: set of rules for deducing the entailments of a set of sentences. Terminology: –proof = sequence of inference rule applications –derived wff = result of proof, theorem

CSE PredLogic 20 General Resolution Unit resolution with variables (requires unification) and more complex sentences Complete – if something can be proven from KB, general resolution will prove it

CSE PredLogic 21 Entailment is a Strong Requirement Q is a sentence; KB is a set of sentences If whenever the sentences in KB are true, Q is true, then KB Q (KB “entails” Q)

CSE PredLogic 22 Logic as a representation of the World entails Representation: Sentences Sentence Refers to (semantics) follows World: Facts Fact

CSE PredLogic 23 Soundness & Completeness Soundness: anything derived is entailed; inference procedure (rule) only produces entailments. Completeness: anything entailed is derived; inference procedure (rules) produces all entailments.

CSE PredLogic 24 General Resolution Complete, but only semi-decidable If its true it can be proven If its not true, theorem prover might not halt, may not be able to prove that its not true Closed World Assumption – no missing information, if P can’t be proven, assume P is false.