Logical Agents Final
Logical Agents Final
Logical Agents Final
Chapter 7
Outline
• Knowledge-based agents
• Wumpus world
• Logic in general - models and entailment
• Propositional (Boolean) logic
Knowledge bases
• Central component of a Knowledge-Based
Agent is a Knowledge-Base
– A set of sentences in a formal language
• Sentences are expressed using a knowledge representation
language
1. MAKE_PERCEPT_SENTENCE
2. MAKE_ACTION_QUERY
3. MAKE_ACTION_SENTENCE
Sensors: Stench, Breeze, Glitter, Bump (when walks into the wall),
Scream (when the Wumpus is killed)
[2,1] = breeze
x + 2 >= y is a sentence
3 Boolean choices 8
possible models
Wumpus models
Each of the three squares might or might not contain a pit, so (for the
purposes of this example) there are 23 = 8 possible models.
Wumpus models
• Completeness
– i is complete if
– whenever KB |= is true, KB |-i is true
• The semantics define the rules for determining the truth of a sentence wrt a
particular model