Lec 11
Lec 11
CS-481
Lecture 11
“Chapter 7 Knowledge Representation
Schemes”
(AVB)^C
(AV ~B) ^ B
9 FOL
Statements that can not be made in Propositional Logic but can be made in
FOL
When you paint a block with green paints, it becomes green
In Propositional Logic one would need a statement about every single block, one can
not make a general statement about all blocks.
When you sterilize a jar, all bacteria are dead.
In FOL we can talk about all bacteria without naming them explicitly.
12 First-Order Logic
First-Order Predicate Logic
First-Order Predicate Calculus
First-Order Logic
First-Order Logic
Sentences in FOL
Atomic Sentences:
Atomic sentences are the most basic sentences of first-order logic. These
sentences are formed from a predicate symbol followed by a parenthesis with a
sequence of terms.
We can represent atomic sentences as Predicate (term1, term2, ......, term n).
Example:
Ahmad and Saad are brothers: => Brothers(Ahmad, Saad)
Tom is a cat: => cat (Tom).
Sentences in FOL
Complex Sentences:
Complex sentences are made by combining atomic sentences
using connectives.
Brother(Richard, John) Brother(John, Richard)
King(Richard) King(John)
Note that
x King(x) Person(x) is not
correct!
Examples:
x King(x)
x Lives_in(John, Castle(x))
i Integer(i) GreaterThan(i,0)
Examples