Docsity

CS 510 Lecture 5: Logic and Planning in Artificial Intelligence - Prof. Rachel A. Greensta, Study notes of Computer Science

Partial preview of the text

Download CS 510 Lecture 5: Logic and Planning in Artificial Intelligence - Prof. Rachel A. Greensta and more Study notes Computer Science in PDF only on Docsity!

CS 510 Lecture 5:

Logic and Planning

Rachel Greenstadt October 28, 2008

Reminders

Revised proposals due next week

Remember to add a brief section discussing

progress

Also, an election next week, if you need to

be late to vote, okay (bring sticker)

Overview

Knowledge Bases

Propositional logic

Exercise

Planning Representations

Knowledge Bases

Knowledge base = set of sentences in a formal language

Declarative approach to building an agent - TELL it what it needs to know

Then it ASKs itself what to do, answers follow from knowledge base

“Building a model of the world” part from Lecture 1

BDI is one paradigm for this

Knowledge-based agent

The agent must be able to: Represent states, actions, etc Incorporate new percepts Update internal representation of the world Deduce hidden properties of the world Deduce appropriate actions

Breeze Breeze Breeze Breeze Breeze Stench Stench Breeze PIT PIT PIT 1 2 3 4 1 2 3 4 START Gold Stench

Types of Logic

Logics are characterized by what they commit to as primitives

Ontological commitment - What exists?

Facts, objects, times, beliefs?

Entailment

Knowledge Base KB entails a sentence α

if and only if

α is true in all worlds where KB is true

E.g. , the KB containing “the Giants won”

and “the Reds won” entails “either the

Giants won or the Reds won”

KB = α

Propositional Logic:

Syntax

  • Propositional logic is the simplest logic – illustrates basic ideas

The proposition symbols P 1 , P 2 etc are sentences

Propositional Logic:

Semantics

Enumeration Solution

Normal Forms

Forward chaining

  • Idea: fire any rule whose premises are satisfied in the KB ,
    • add its conclusion to the KB , until query is found

Proof of completeness

  • FC derives every atomic sentence that is entailed
by KB
  1. FC reaches a fixed point where no new atomic sentences are derived
  2. Consider the final state as a model m , assigning true/ false to symbols
  3. Every clause in the original KB is true in m a 1 ∧ … ∧ a k (^) ⇒ b
  4. Hence m is a model of KB