Title: Reasoning in Predicate Logic
1Reasoning in Predicate Logic
2Learning Objectives
- Introduction to First-Order Logic (FOL)
- Syntax and Semantics of FOL
- Fun with sentences
- Wumpus world in FOL
3Acknowledgements
- These slides have been adapted from Stuart
Russell and Peter Norvig.
4ReviewSimple Knowledge-Based Agent
5Pros and Cons of Propositional Logic
6First-Order Logic
7Logics in General
8Syntax of FOL Basic Elements
9Atomic Sentences
10Complex Sentences
11Truth in First-Order Logic
12Models for FOL Example
13Models for FOL A Lot!
14Universal Quantification
15A Common Mistake to Avoid
16Existential Quantification
17Another Common Mistake to Avoid
18Properties of Quantifiers
19Fun with Sentences
20Fun with Sentences
21Fun with Sentences
22Fun with Sentences
23Fun with Sentences
24Equality
25More Fun with Sentences
- Every Dog Chases Its Own Tail
- ? d . Chases (d, tail-of (d))
- Alternative Statement ? d . ? t . Tail-Of (t, d)
? Chases (d, t) - Prefigures concept of Skolemization (Skolem
variables / functions) - Every Dog Chases Its Own (Unique) Tail
- ? d . ?1 t . Tail-Of (t, d) ? Chases (d, t) ?
? d . ? t . Tail-Of (t, d) ? Chases (d, t) ? ?
t Chases (d, t) ? t t - Only The Wicked Flee when No One Pursueth
- ? x . Flees (x) ? ? y Pursues (y, x) ? Wicked
(x) - Alternative ? x . ? y . Flees (x, y) ? ? z
. Pursues (z, x) ? Wicked (x)
26Wumpus World RevisitedInteracting with FOL KBs
27Knowledge Base forThe Wumpus World
28Deducing Hidden Properties
29Keeping Track of ChangeSituation Calculus
30Describing Actions 1Frame, Qualification, and
Ramification Problems
31Describing Actions 2Successor State Axioms
32Making Plans
33Making PlansA Better Way
34First-Order LogicSummary
35A Look Ahead 1Automated Deduction
36A Look Ahead 2Classical Planning
37Summary Points
- Previously Logical Agents and Calculi
- Logic in general tools for KR, inference,
planning - Propositional calculus normal forms, sequent
rules - Predicate logic
- First-order logic (FOL) aka first-order predicate
calculus (FOPC) - Today FOL in Practice
- FOL agents
- Example Wumpus World in FOL
- Situation calculus
- Frame problem and variants (see RN sidebar)
- Representational vs. inferential frame problems
- Qualification problem what if?
- Ramification problem what else? (side effects)
- Successor-state axioms
38Terminology
- Logical Languages
- Propositional logic
- Predicates, terms, functions, atoms (atomic
sentences / atomic WFFs), WFFs - First-order logic (FOL, FOPC) universal and
existential quantification - Properties of Knowledge Bases (KBs)
- Satisfiability and validity
- Entailment and provability
- Properties of Proof Systems Soundness and
Completeness - Normal Forms CNF, DNF, Horn Clauses vs. Terms
- Situation Calculus
- Frame, Ramification, Qualification Problems
- Successor-State Axiomatization