Symbolic Representation and Reasoning an Overview Stuart C. Shapiro Department of Computer Science and Engineering, Center for Multisource.

Slides:



Advertisements
Similar presentations
Artificial Intelligence
Advertisements

1 Knowledge Representation Introduction KR and Logic.
Computer Science CPSC 322 Lecture 25 Top Down Proof Procedure (Ch 5.2.2)
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.
Logic Use mathematical deduction to derive new knowledge.
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Propositional Logic Reading: C , C Logic: Outline Propositional Logic Inference in Propositional Logic First-order logic.
Propositional Logic Russell and Norvig: Chapter 6 Chapter 7, Sections 7.1—7.4 Slides adapted from: robotics.stanford.edu/~latombe/cs121/2003/home.htm.
Logic.
Knowledge Representation Methods
Knowledge Representation for Self-Aware Computer Systems Stuart C. Shapiro Department of Computer Science and Engineering, and Center for Cognitive.
CPSC 322 Introduction to Artificial Intelligence September 20, 2004.
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.
Semantics of a Propositional Network Stuart C. Shapiro Department of Computer Science & Engineering Center for MultiSource Information Fusion.
Knoweldge Representation & Reasoning
Chapter 7 Reasoning about Knowledge by Neha Saxena Id: 13 CS 267.
S.C. Shapiro An Introduction to SNePS 3 Stuart C. Shapiro Department of Computer Science and Engineering and Center for Cognitive Science State.
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
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.
Ming Fang 6/12/2009. Outlines  Classical logics  Introduction to DL  Syntax of DL  Semantics of DL  KR in DL  Reasoning in DL  Applications.
 Predicate: A sentence that contains a finite number of variables and becomes a statement when values are substituted for the variables. ◦ Domain: the.
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.
1 Knowledge Based Systems (CM0377) Lecture 4 (Last modified 5th February 2001)
Knowledge Representation Use of logic. Artificial agents need Knowledge and reasoning power Can combine GK with current percepts Build up KB incrementally.
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.
Slide 1 Propositional Definite Clause Logic: Syntax, Semantics and Bottom-up Proofs Jim Little UBC CS 322 – CSP October 20, 2014.
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.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 13 of 41 Monday, 20 September.
ARTIFICIAL INTELLIGENCE [INTELLIGENT AGENTS PARADIGM] Professor Janis Grundspenkis Riga Technical University Faculty of Computer Science and Information.
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
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.
October 17, 2012Introduction to Artificial Intelligence Lecture 11: Knowledge Representation and Reasoning I 1Semantics In propositional logic, we associate.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 14 of 41 Wednesday, 22.
CS6133 Software Specification and Verification
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
Computer Science CPSC 322 Lecture 22 Logical Consequences, Proof Procedures (Ch 5.2.2)
Nikolaj Bjørner Microsoft Research DTU Winter course January 2 nd 2012 Organized by Flemming Nielson & Hanne Riis Nielson.
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
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.
Logical Agents Chapter 7. Outline Knowledge-based agents Propositional (Boolean) logic Equivalence, validity, satisfiability Inference rules and theorem.
Daniel Kroening and Ofer Strichman 1 Decision Procedures An Algorithmic Point of View Basic Concepts and Background.
Kansas State University Department of Computing and Information Sciences CIS 730: Introduction to Artificial Intelligence Lecture 14 of 42 Wednesday, 22.
Metalogic Soundness and Completeness. Two Notions of Logical Consequence Validity: If the premises are true, then the conclusion must be true. Provability:
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.
CENG 424-Logic for CS Introduction Based on the Lecture Notes of Konstantin Korovin, Valentin Goranko, Russel and Norvig, and Michael Genesereth.
Chapter 7. Propositional and Predicate Logic
Knowledge Representation and Reasoning
The Propositional Calculus
Logic Use mathematical deduction to derive new knowledge.
Back to “Serious” Topics…
Computer Security: Art and Science, 2nd Edition
Negations of quantifiers
Logic: Domain Modeling /Proofs + Computer Science cpsc322, Lecture 22
Chapter 7. Propositional and Predicate Logic
Knowledge Representation I (Propositional Logic)
Propositional Logic CMSC 471 Chapter , 7.7 and Chuck Dyer
Representations & Reasoning Systems (RRS) (2.2)
Presentation transcript:

Symbolic Representation and Reasoning an Overview Stuart C. Shapiro Department of Computer Science and Engineering, Center for Multisource Information Fusion, and Center for Cognitive Science University at Buffalo, The State University of New York 201 Bell Hall, Buffalo, NY

September, 2004S. C. Shapiro2 Introduction Knowledge Representation Reasoning Symbols Logics

September, 2004S. C. Shapiro3 Knowledge Representation A subarea of Artificial Intelligence Concerned with understanding, designing, and implementing ways of representing information in computers So that programs can use this information to derive information that is implied by it, to converse with people in natural languages, to plan future activities, to solve problems in areas that normally require human expertise.

September, 2004S. C. Shapiro4 Reasoning Deriving information that is implied by the information already present is a form of reasoning. Knowledge representation schemes are useless without the ability to reason with them. So, Knowledge Representation and Reasoning

September, 2004S. C. Shapiro5 Knowledge vs. Belief Knowledge: Justified True Belief KR systems operate the same whether or not the information stored is justified or true. So, Belief Representation and Reasoning would be better. But we’ll stick with KR.

September, 2004S. C. Shapiro6 What Is a Symbol? “A symbol token is a pattern that can be compared to some other symbol token and judged equal with it or different from it… Symbols may be formed into symbol structures by means of a set of relations… The `objects’ that symbols designate may include … objects in an external environment of sensible (readable) stimuli.” [Newell & Simon, Concise Encyclopedia of CS, 2004]

September, 2004S. C. Shapiro7 What Is Logic? The study of correct reasoning. Not a particular KR language. There are many systems of logic. With slight abuse, we call a system of logic a logic. KR research may be seen as the search for the correct logic(s) to use in intelligent systems.

September, 2004S. C. Shapiro8 Parts of Specifying a Logic Syntax Semantics Proof Theory

September, 2004S. C. Shapiro9 Syntax The specification of a set of atomic symbols, and the grammatical rules for combining them into well-formed expressions (symbol-structures).

September, 2004S. C. Shapiro10 Syntactic Expressions Atomic symbols Individual constants: Tom, Betty, white Variables: x, y, z Function symbols: motherOf Predicate symbols: Person, Elephant, Color Propositions: P, Q, BdT Terms Individual constants: Tom, Betty, white Variables : x, y, z Functional terms: motherOf(Fred) Well-formed formulas (wffs) Propositions (Proposition symbols) : P, Q, BdT Atomic formulas: Color(x, white), Duck(motherOf(Fred)) Non-atomic formulas: TdB  Td  Bp

September, 2004S. C. Shapiro11 Semantics The specification of the meaning (designation) of the atomic symbols, and the rules for determining the meanings of the well-formed expressions from the meanings of their parts.

September, 2004S. C. Shapiro12 Semantic Values Terms could denote Objects Categories of objects Properties… Wffs could denote Propositions Truth values

September, 2004S. C. Shapiro13 Truth Values Could be 2, 3, 4, …, ∞ different truth values. Some truth values are “distinguished” Needn’t have anything to do with truth in the real world. By default, we’ll assume 2 truth values. Call distinguished one True (T) Call other False (F)

September, 2004S. C. Shapiro14 Proof Theory The specification of a set of rules, which, given an initial collection of well-formed expressions, specify what other well-formed expressions can be added to the collection.

September, 2004S. C. Shapiro15 Proof / Knowledge Base The collection could be A proof A knowledge base The initial collection could be Axioms Hypotheses Assumptions Domain facts & rules The added expressions could be Theorems Derived facts & rules

September, 2004S. C. Shapiro16 Example Logic: Standard Propositional Logic Domain: CarPool World Atomic Proposition Symbols: BdT, TdB, Bd, Td, Bp, Tp Unary wff-forming connective:  Binary wff-forming connectives: , , , 

September, 2004S. C. Shapiro17 Intended Interpretation (Intensional Semantics) BdT: Betty drives Tom TdB: Tom drives Betty Bd: Betty is the driver Td: Tom is the driver Bp: Betty is the passenger Tp: Tom is the passenger

September, 2004S. C. Shapiro18 Extensional (Denotational) Semantics BdTTTTFF TdBTTFTF BdTTTFF TdTFFTF BpTFFTF TpTFTFF Bd  Tp TFTFF Td   Td TTTTT Td   Td FFFFF 5 of 2 6 = 64 possible situations

September, 2004S. C. Shapiro19 Properties of Wffs Satisfiable T in some situation BdTTTTFF TdBTTFTF BdTTTFF TdTFFTF BpTFFTF TpTFTFF Bd  Tp TFTFF Td   Td TTTTT Td   Td FFFFF

September, 2004S. C. Shapiro20 Properties of Wffs Contingent T in some, F in some BdTTTTFF TdBTTFTF BdTTTFF TdTFFTF BpTFFTF TpTFTFF Bd  Tp TFTFF Td   Td TTTTT Td   Td FFFFF

September, 2004S. C. Shapiro21 Properties of Wffs Valid T in all situations BdTTTTFF TdBTTFTF BdTTTFF TdTFFTF BpTFFTF TpTFTFF Bd  Tp TFTFF Td   Td TTTTT Td   Td FFFFF

September, 2004S. C. Shapiro22 Properties of Wffs Contradictory T in no situation BdTTTTFF TdBTTFTF BdTTTFF TdTFFTF BpTFFTF TpTFTFF Bd  Tp TFTFF Td   Td TTTTT Td   Td FFFFF

September, 2004S. C. Shapiro23 Logical Implication P 1, …, P n logically imply Q P 1, …, P n |= Q In every situation that P 1, …, P n are True, so is Q.

September, 2004S. C. Shapiro24 Example: CarPool World KB Let KB CPW = Bd   Bp Td   Tp BdT  Bd  Tp TdB  Td  Bp TdB  BdT

September, 2004S. C. Shapiro25 Extensional (Denotational) Semantics BdTTF TdBFT BdTF TdFT BpFT TpTF Only 2 of the 64 situations where KB CPW are T So, e.g., KB CPW, BdT |= Bd   Bp This is how a KB constrains a model to the domain we want.

September, 2004S. C. Shapiro26 Proof Theory Some Rules of Inference P Q P  Q P Q P  Q P Q P P  Q Modus Ponens or  Elimination  Elimination  Elimination  Introduction

September, 2004S. C. Shapiro27 Derivation from Assumptions Q is derivable from P 1, …, P n P 1, …, P n |- Q Starting from the collection P 1, …, P n, one can repeatedly apply rules of inference, and eventually get Q.

September, 2004S. C. Shapiro28 Example: CarPool World Proof BdT  Bd  Tp BdT Bd  Tp Bd Bd   Bp  Bp So, KB CPW, BdT |- Bd   Bp Bd   Bp

September, 2004S. C. Shapiro29 Theoremhood If Q is derivable from no assumptions, |- Q We say that Q is provable, and that Q is a theorem.

September, 2004S. C. Shapiro30 Deduction Theorem P 1, …, P n |= Q iff |= (P 1  · · ·  P n )  Q P 1, …, P n |- Q iff |- (P 1  · · ·  P n )  Q So theorem-proving is relevant to reasoning.

September, 2004S. C. Shapiro31 Properties of Logics Soundness If |- P then |= P (If P is a provable, then P is valid.) Completeness If |= P then |- P (If P is valid, then P is a provable.)

September, 2004S. C. Shapiro32 Soundness vs. Completeness Soundness is the essence of correct reasoning Completeness is less important because it doesn’t indicate how long it might take.

September, 2004S. C. Shapiro33 Commutativity Diagram for Sound and Complete Logics P1, …, Pn |= Q |= (P1  · · ·  Pn )  Q P1, …, Pn |- Q |- (P1  · · ·  Pn )  Q completeness soundness So, whenever you want one, you can do another.

September, 2004S. C. Shapiro34 Use of Commutativity Diagram Refutation proof techniques, such as resolution refutation or semantic tableaux, prove that there can be no situation in which P 1, …, and P n are True and Q is False. These are semantic proof techniques.

September, 2004S. C. Shapiro35 Decision Procedure A procedure that is guaranteed to terminate and tell whether or not P is provable.

September, 2004S. C. Shapiro36 Semidecision Procedure A procedure that, if P is a theorem is guaranteed to terminate and say so. Otherwise, it may not terminate.

September, 2004S. C. Shapiro37 A Tour of Some Classes of Logics Propositional Logics Elementary Predicate Logics Full First-Order Logics

September, 2004S. C. Shapiro38 Propositional Logics Smallest Unit: Proposition/Sentence  propositional logics that are Sound Complete Have decision procedures

September, 2004S. C. Shapiro39 What You Can Do with Propositional Logic BettyDrivesTom  TomDrivesBetty BettyDrivesTom  NearTomBetty TomDrivesBetty  NearTomBetty  NearTomBetty Can derive conclusions even though the “facts” aren’t entirely known.

September, 2004S. C. Shapiro40 Elementary Predicate Logics Propositions plus Predicate (Relation) symbols, Individual terms, variables, quantifiers  elementary predicate logics that are Sound Complete Have decision procedures

September, 2004S. C. Shapiro41 What You Can Say with Elementary Predicate Logic  x[Elephant(x)  HasA(x, trunk)] Can state generalities before all individuals are known.  x[Elephant(x)  Color(x, white)] Can describe individuals Even when they are not specifically known.

September, 2004S. C. Shapiro42 Full First-Order Logics Elementary predicate logic plus Function symbols/ functional terms  full first-order logics that are Sound None are Complete Have decision procedures

September, 2004S. C. Shapiro43 What You Can Say with Full First-Order Logic  p[HasProp(0, p)  x[HasProp(x, p)  HasProp(x+1, p)]   x HasProp(x, p)] Principle of induction.

September, 2004S. C. Shapiro44 Example of Undecidability Large KB about ducks, etc.  x[  y (Duck(y)  WalksLike(x,y))   y (Duck(y)  TalksLike(x,y))  Duck(x)]  x Duck(motherOf(x))  Duck(x) Duck(Fred)? If Fred is not a duck, possible ∞ loop.

September, 2004S. C. Shapiro45 Unsound Reasoning Induction From Raven(a)  Black(a) Raven(b)  Black(b)  Raven(c)  Black(c)  Raven(d)   Black(d) … Raven(n)  Black(n) To  x[Raven(x)  Black(x)]

September, 2004S. C. Shapiro46 Unsound Reasoning Abduction From  x[Person(x)  Injured(x)  Bandaged(x)] Person(Tom) Bandaged(Tom) To Injured(Tom)

September, 2004S. C. Shapiro47 What’s “First-Order” about First-Order Logics Can’t quantify over Function symbols Predicate symbols Propositions

September, 2004S. C. Shapiro48 Examples of SNePS Reasoning Using a Logic Designed for KRR

September, 2004S. C. Shapiro49 SNePS, A “Higher-Order” Logic : all(R)(Transitive(R) => (all(x,y,z)(R(x,y) and R(y,z) => R(x,z)))). : Bigger(elephants, lions). : Bigger(lions, mice). : Transitive(Bigger). : Bigger(elephants, mice)? Bigger(elephants,mice) Really a higher-order language for a first-order logic

September, 2004S. C. Shapiro50 “Higher-Order” Example 2 : all(source)(Trusted(source) => all(p)(Says(source, p) => p)). : Trusted(Agent007). : Says(Agent007, Dangerous(Dr_No)). : Dangerous(Dr_No)? Dangerous(Dr_No)

September, 2004S. C. Shapiro51 Designing New Connectives : andor(1,1){OnFloor(G2), OnFloor(G1), OnFloor(1), OnFloor(2)}. : OnFloor(G1). : OnFloor(?where)? ~OnFloor(G2) ~OnFloor(1) ~OnFloor(2) OnFloor(G1)

September, 2004S. C. Shapiro52 Belief Change : andor(1,1){OnFloor(G2), OnFloor(G1), OnFloor(1), OnFloor(2)}. : {OnFloor(G2), OnFloor(G1)} => {Location(belowGround)}. : {OnFloor(1), OnFloor(2)} => {Location(aboveGround)}. : perform believe(OnFloor(G2)) : Location(?where)? Location(belowGround) : perform believe(OnFloor(2)) : Location(?where)? Location(aboveGround)

September, 2004S. C. Shapiro53 Summary 1 Symbolic KRR uses logic. There are many logics. The question is which to use.

September, 2004S. C. Shapiro54 Summary 2 A logic has a Syntax Semantics Proof Theory Logics may Be sound Be complete Have a decision procedure

September, 2004S. C. Shapiro55 Summary 3 Logics provide non-atomic wffs That can describe situations Without knowing all specifics

September, 2004S. C. Shapiro56 Summary 4 One can design and build Useful new logics And reasoning systems using them.