1 AI=Knowledge Representation & Reasoning zSyntax zSemantics zInference Procedure yAlgorithm ySound? yComplete? yComplexity.

Slides:



Advertisements
Similar presentations
Artificial Intelligence Chapter 13 The Propositional Calculus Biointelligence Lab School of Computer Sci. & Eng. Seoul National University.
Advertisements

Agents that reason logically Tuomas Sandholm Carnegie Mellon University Computer Science Department.
Propositional and First Order Reasoning. Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p 
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.
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.
Methods of Proof Chapter 7, second half.. Proof methods Proof methods divide into (roughly) two kinds: Application of inference rules: Legitimate (sound)
Logic Use mathematical deduction to derive new knowledge.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2004.
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 CPSC 386 Artificial Intelligence Ellen Walker Hiram College.
Logic.
Intro to AI Fall 2004 © L. Joskowicz 1 Introduction to Artificial Intelligence LECTURE 7: Knowledge Representation and Logic Motivation Knowledge bases.
Outline Recap Knowledge Representation I Textbook: Chapters 6, 7, 9 and 10.
Computability and Complexity 9-1 Computability and Complexity Andrei Bulatov Logic Reminder (Cnt’d)
Logic in general Logics are formal languages for representing information such that conclusions can be drawn Syntax defines the sentences in the language.
Agents That Reason Logically Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 6.
Computing & Information Sciences Kansas State University Lecture 11 of 42 CIS 530 / 730 Artificial Intelligence Lecture 11 of 42 William H. Hsu Department.
Knowledge Representation I (Propositional Logic) CSE 473.
Methods of Proof Chapter 7, second half.
Knoweldge Representation & Reasoning
1 Soundness and Completeness zKB |- S: S is provable from KB. zA proof procedure is sound if: yIf KB |- S, then KB |= S. yThat is, the procedure produces.
Logical Agents Copyright, 1996 © Dale Carnegie & Associates, Inc. Chapter 7 Spring 2005.
Chapter 3 Propositional Logic
Propositional Logic Reasoning correctly computationally Chapter 7 or 8.
Inference is a process of building a proof of a sentence, or put it differently inference is an implementation of the entailment relation between sentences.
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.
Propositional Resolution Computational LogicLecture 4 Michael Genesereth Spring 2005.
CS 4100 Artificial Intelligence Prof. C. Hafner Class Notes Jan 19, 2012.
Pattern-directed inference systems
Advanced Topics in Propositional Logic Chapter 17 Language, Proof and Logic.
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.
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
Logic in AI CSE 573. © Daniel S. Weld 2 Logistics Monday? Reading Ch 8 Ch 9 thru p 278 Section 10.3 Projects Due 11/10 Teams and project plan due by this.
1 Logical Agents Chapter 7. 2 A simple knowledge-based agent The agent must be able to: –Represent states, actions, etc. –Incorporate new percepts –Update.
LECTURE LECTURE Propositional Logic Syntax 1 Source: MIT OpenCourseWare.
LDK R Logics for Data and Knowledge Representation Propositional Logic: Reasoning First version by Alessandro Agostini and Fausto Giunchiglia Second version.
Logical Agents Chapter 7. Outline Knowledge-based agents Logic in general Propositional (Boolean) logic Equivalence, validity, satisfiability.
1 Logical Inference Algorithms CS 171/271 (Chapter 7, continued) Some text and images in these slides were drawn from Russel & Norvig’s published material.
Notes 7: Knowledge Representation, The Propositional Calculus ICS 270A Winter 2003.
CS6133 Software Specification and Verification
1 The Wumpus Game StenchBreeze Stench Gold Breeze StenchBreeze Start  Breeze.
© Copyright 2008 STI INNSBRUCK Intelligent Systems Propositional Logic.
11 Artificial Intelligence CS 165A Thursday, October 25, 2007  Knowledge and reasoning (Ch 7) Propositional logic 1.
CS2351 Artificial Intelligence Bhaskar.V Class Notes on Knowledge Representation - Logical Agents.
Reasoning with Propositional Logic automated processing of a simple knowledge base CD.
Dr. Shazzad Hosain Department of EECS North South Universtiy Lecture 04 – Part B Propositional Logic.
1 Propositional Logic Limits The expressive power of propositional logic is limited. The assumption is that everything can be expressed by simple facts.
Propositional Logic Rather than jumping right into FOL, we begin with propositional logic A logic involves: §Language (with a syntax) §Semantics §Proof.
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.
Logical Agents Chapter 7 Part I. 2 Outline Knowledge-based agents Wumpus world Logic in general - models and entailment Propositional (Boolean) logic.
Knowledge Repn. & Reasoning Lecture #9: Propositional Logic UIUC CS 498: Section EA Professor: Eyal Amir Fall Semester 2005.
March 3, 2016Introduction to Artificial Intelligence Lecture 12: Knowledge Representation & Reasoning I 1 Back to “Serious” Topics… Knowledge Representation.
CS.462 Artificial Intelligence SOMCHAI THANGSATHITYANGKUL Lecture 04 : Logic.
Logical Agents. Outline Knowledge-based agents Logic in general - models and entailment Propositional (Boolean) logic Equivalence, validity, satisfiability.
EA C461 Artificial Intelligence
Knowledge Representation and Reasoning
The Propositional Calculus
ARTIFICIAL INTELLIGENCE
Logics for Data and 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.
Logics for Data and Knowledge Representation
Logics for Data and Knowledge Representation
CS 416 Artificial Intelligence
Back to “Serious” Topics…
PROPOSITIONAL LOGIC - SYNTAX-
Knowledge Representation I (Propositional Logic)
Presentation transcript:

1 AI=Knowledge Representation & Reasoning zSyntax zSemantics zInference Procedure yAlgorithm ySound? yComplete? yComplexity

2 Some KR Languages zPropositional Logic zPredicate Calculus zFrame Systems zRules with Certainty Factors zBayesian Belief Networks zInfluence Diagrams zSemantic Networks zConcept Description Languages zNonmonotonic Logic

3 Propositional Logic zSyntax yAtomic sentences: P, Q, … yConnectives: , , ,  zSemantics y Truth Tables zInference yModus Ponens yResolution ySoundness and completeness zComplexity issues.

4 Semantics zSyntax: a description of the legal arrangements of symbols (Def “sentences”) zSemantics: what the arrangement of symbols means in the world Sentences Facts Sentences Representation World Semantics Inference

5 Propsitional Logic: Syntax zAtoms zLiterals zSentences yAny literal is a sentence yIf S1 and S2 are sentences, then xThen (S1  S2) is a sentence xThen (S1  S2) is a sentence xThen (S1  S2) is a sentence xThen  S1 is a sentence

6 Propositional Logic: SEMANTICS zAn interpretation is an assignment to each variable either True or False. zAssignments to compound sentences are defined by the standard truth tables: zA propositional knowledge base says which sentences must be true in the world. P T T F F Q P T T F F Q P  Q P  Q  P T FF F F TT T T F Q P T F T F

7 Example Knowledge Base z(Smoke  fire) Alarm zAlarm

8 More Definitions zvalid = tautology = always true zsatisfiable = sometimes true zunsatisfiable = never true 1) smoke  fire 2) smoke  smoke 3) smoke  fire   fire 4)(smoke  fire)  (  smoke   fire)

9 Making Inferences zA knowledge base gives us partial information about the world: it constrains the world to a set of possible truth assignments. zBy inference, we decide what else holds in all of the truth assignments allowed by the knowledge base. zInference question: does KB  = S ?

10 Proof Procedures zTo decide whether KB  = S, we can try to look for a proof of S from KB. zA proof procedure is some algorithm that we apply to a KB to produce its logical consequences. zA proof uses: ythe knowledge base, yaxiom schemas yinference rules.

11 Soundness and Completeness zKB |- S: S is provable from KB. zA proof procedure is sound if: yIf KB |- S, then KB |= S. yThat is, the procedure produces only correct consequences. zA proof procedure is complete if: yIf KB |= S, then KB |- S. yThat is, the procedure produces all the consequences. zIdeally, the procedure should be sound and complete. (Ideals are nice in theory).

12 Modus Ponens zFrom A and A  B, infer B. zModus ponens with a few axiom schemas is sound and complete: y A  (B  A) yA  (B  C)  ((A  B)  (A  C)) y(  A   B)  (B  A) yMore in the book.

13 Normal Forms zCNF = Conjunctive Normal Form zConjunction of disjuncts (each disjunct = “clause”) (P  Q)  R (P  Q)  R  (P  Q)  R  P   Q  R (  P   Q)  R (  P  R)  (  Q  R)

14 Resolution A  B  C,  C  D   E A  B  D   E zRefutation Complete yGiven an unsatisfiable KB in CNF, yResolution will eventually deduce the empty clause zProof by Contradiction yTo show   = Q yShow   {  Q} is unsatisfiable!

15 Resolution Example prove P (A B C) (B) (  B D) (  C A D) (  D P Q) (  Q)

16 Computational Complexity zDetermining satisfiability is NP-complete. zEven when all clauses have at most 3 literals. zHence, also validity and entailment testing are NP-complete zIf all clauses have at most 2 literals, it is polynomial. zBut if the KB is in DNF, satisfiability is polynomial. yWhat does this tell us about transforming a CNF into a DNF knowledge base?

17 Horn Clauses zIf every sentence in KB is of the form: Then Modus Ponens is –Polynomial time, and –Complete! A  B  C ...  F  Z equivalently  A   B   C ...   F  Z Clause means a big disjunction At most one positive literal