Professional Documents
Culture Documents
Chapter 8 FOL
Chapter 8 FOL
Chapters 8
Section 1 – 5
Outline
First-order logic (FOL)
Sentences
Russell & Norvig, chapter 8
Inference
Russell & Norvig, chapter 9
Review Logical agent
Propositional logic : Very Simple Logic
Equivalence, Validity And Satisfaibility
Rules:
Equivalence: two sentences α and β are
logically equivalent if they are true in the same
of set of models
Validity: A sentence is valid if it is true in all
models
Satisfaibility: a sentence is satisfiable if it is
true in some model
Rules and Equivalences
Logical equivalences
(α β) (β α)
(α β) (β α)
((α β) γ) (α (β γ))
((α β) γ) (α (β γ))
¬(¬α) α
(α β) (¬β ¬α)
(α β) (¬α β)
(α β) ((α β) (β α))
¬(α β) (¬α ¬β)
¬(α β) (¬α ¬β)
(α (β γ)) ((α β) (α γ))
(α (β γ)) ((α β) (α γ))
Prove
Prove ¬(¬α) α
¬(α β) (¬α ¬β)
Validity
Prove (P^Q)(Q^P)
T T T T T
T F F F T
F T F F T
F F F F T
Validity (class work)
Prove (PVQ)(QVP)
T T ? ? ?
T F ? ? ?
F T ? ? ?
F F ? ? ?
Validity
Prove (p^(Q^R)(P^Q)^R)
P Q R (Q^R) P^(Q^R) (P^Q) (P^Q)^R P^(Q^R) (P^Q)^r
)
T T T T T T T T
T T F F F T F T
T F T F F F F T
T F F F F F F T
F T T F F F F T
F T F F F F F T
F F T F F F F T
F F F F F F F T
Satisfiable
Prove (Smoke Fire)
Smoke Fire Smoke Fire
T T T
T F F
F T T
F F T
Validity
Prove (Smoke Smoke)
F F T
First-Order Logic
Propositional logic is limited
Cannot represent information concisely
We want something more expressive
First-order logic
Allows the representation of objects, functions
on objects and relations between objects
Allows us to represent almost any English
sentence
New Symbols in FOL
Constant symbol
An individual object in the world
Bob, James, Hat
Predicate symbol
A relation between two objects that can be true or false
Brother(Bob, James), OnHead(Hat, Bob)
Function symbol
Special type of relation that maps one object to another
Head(Bob)
All symbols begin with uppercase letters
New Variables in FOL
Begin with lowercase letters
Stand-in for any symbol
Brother(x,y)
x is the brother of y
New Quantifiers in FOL
Universal quantifier
x means “For all x…”
Always true
Usually used with
x means “Not all x…”
Existential quantifier
x means “There exists an x…”
True for at least one interpretation
Usually used with
x means “There exists no x…”
Properties of New Quantifiers
Duality
x P(x) same as x P(x)
x P(x) same as x P(x)
Nesting
x y P(x,y) same as y x P(x,y)
x y P(x,y) same as y x P(x,y)
x y P(x,y) not same as y x P(x,y)
Sentences in FOL
Term
Constant symbol, function symbol, or variable
Existential quantifier
Usually used with to list properties of an
object
Using it with creates sentences that do not
say much
Example Sentences