First Order Logic
First Order Logic
LESSON 8
Reading
Chaper 8
◦ meaning of B1,1 P1,2 is derived from meaning of B1,1 and of P1,2
◦
>(1,2) >(1,2)
x P is true in a model m iff P is true with x being each possible object in the model
At(KingJohn,NUS) Smart(KingJohn)
At(Richard,NUS) Smart(Richard)
At(NUS,NUS) Smart(NUS)
...
x P is true in a model m iff P is true with x being some possible object in the model
At(KingJohn,NUS) Smart(KingJohn)
At(Richard,NUS) Smart(Richard)
At(NUS,NUS) Smart(NUS)
...
x At(x,NUS) Smart(x)
x y is the same as y x
x y Loves(x,y)
◦ “There is a person who loves everyone in the world”
◦
y x Loves(x,y)
◦ “Everyone in the world is loved by at least one person”
◦
“Sibling” is symmetric
x,s {x|s} = {}
x,s x s s = {x|s}
Tell(KB,Percept([Smell,Breeze,None],5))
Ask(KB,a BestAction(a,5))
Reflex
◦ t Glitter(t) BestAction(Grab,t)
Properties of squares:
s,t At(Agent,s,t) Breeze(t) Breezy(s)
2.
3.
4.
5.
6.
7.
8.
3. Decide on a vocabulary
4.
◦ Alternatives:
◦
Type(X1) = XOR
Type(X1, XOR)
XOR(X1)
Connected(Out(1,X1),In(1,X2)) Connected(In(1,C1),In(1,X1))
Connected(Out(1,X1),In(2,A2)) Connected(In(1,C1),In(1,A1))
Connected(Out(1,A2),In(1,O1)) Connected(In(2,C1),In(2,X1))
Connected(Out(1,A1),In(2,O1)) Connected(In(2,C1),In(2,A1))
Connected(Out(1,X2),Out(1,C1)) Connected(In(3,C1),In(2,X2))
Connected(Out(1,O1),Out(2,C1)) Connected(In(3,C1),In(1,A2))