Professional Documents
Culture Documents
Topics
1) Syntax
2) Semantics
Suppose that
follows.
8X
[ likes(ber,X)
likes(X,logic) ]
likes(sombat,logic)
likes(lalita,logic)
Thus, we can conclude that
likes(ber,sombat)
likes(ber,lalita)
2
\p(X) is true for all objects X in the domain of interest (or the universe of
discourse)".
In the above example, all values of
in-this-class(X) ! studied-english(X) ]
Note that the domain of interest consists of all students (in a university).
In this example, the domain is implicit.
2) The statement \For every X in the set of natural numbers, X + 1 > X ."
can be expressed in FOL as follows:
8X 2
N[X+1>X]
true."
2) The statement \There is a natural number which is greater than 4" can
be expressed as follows:
9X 2
N[X
>
4]
lion(X) ! erce(X) ]
large-bird(X) ^ live-on-honey(X) ]
is-best-friend(X,Y) ^ ( is-best-friend(Z,Y) ! X = Z ) ]
4
loves(Y,X) ]
loves(Y,X) ]
\Every lion is erce." means that \There is no lion which is not erce."
Formally, this is captured by
8X [
:9X [
:9X :[
lion(X) ! erce(X) ]
Thus, 8X
objects.
5
FOL as
8X [
odd(X) ! odd(square(X)) ]
X < X
8X [
X <
+(X ,1) ]
\An item is on the oor at a situation which results from dropping the
holds(broken, result(drop,s0))
holds(fragile, s0)
with lower case letters. Variable symbols start with upper case letters.
6
is a term.
Any constant symbol can be seen as a function symbol without any ar-
guement (ie.
= 0).
is a formula and
formulae.
) and (9X
) are
5.
(respectively 9X
) is F .
2) 8X ( p(X ) ^ q(X ) )
The scope of 8X is p(X ) ^ q(X ). Thus, X is a bound variable.
1.2 Semantics
Recall that formulae in FOL are associated with a
domain of interest in
that any quantication in such formulae refers to elements in the domain.
Essentially, an interpretation of a rst-order language is
arguments, where 1 k j .
9
Note that constant symbols, which are treated as functions, are assigned
tively.
Thus, 8X p(a,X) under I1 means that every number in N is greater than
or equal to 0, ie. 8X 2 N ( 0 X ).
b) I2 = (Z, fg, f0g) such that a and p are assigned to 0 and , respectively.
Thus, 8X p(a,X) under I2 means that every number in Z is greater than
or equal to 0, ie. 8X 2 Z ( 0 X ).
2. An Interpretation of 8X,Y (p(X; Y ) ! p(f (X; a); f (Y ; a))) is as follows.
Note that P = fpg, F = ff , ag.
I3 = (Z, fg, f+, 1g) such that p is assigned to , f is assigned to +, and
a
is assigned to 1.
Z 8Y 2 Z ( X Y ! (X + 1) (Y + 1) ).
10
as 8X 2 D R(X).
But how about p(X) where X is a free variable. ????
In other words, how to interpret open formulae?
The interpretation of open formula is analogous to the computation of a
environment.
11
12
3. If A = B ^ C , then
l (B ^ C ) = T i vl (B ) = T and vl (C ) = T ,
and similarly for the other logical connectives.
v
4. If A = 8X
, then
l (9X
) = T i for some
, vl[X 7!d](B ) = T .
and
is
assigned to +, the predicate p is assigned to as specied in the interpretation I1 = (Z, fg, f+,0,1g). Suppose that l is an environment.
Thus, in I1 and l the following holds.
l ( p(a,a) ) = T i 0 0 holds.
vl ( p(a,f(a,b)) ) = T i 0 (0 + 1).
v
13
Z, vl[X 7!d](p(X,a)) = T .
i for all d 2 Z, (vl[X 7!d](X), vl[X 7!d](a)).
i for all d 2 Z, (d, 0).
v ( 8X 9Y p(X,Y) ) = T , i for all X 2 Z for some Y 2 Z (X Y ).
v ( 9X 8Y p(X,Y) ) = T , i for some X 2 Z for all Y 2 Z (X Y ).
v( 8X p(X,a) ) T i for all
p(f(X,a), f(Y,a)))
p(a,f(a,b))
I1 j=l 8X 9Y
p(X,Y)
logical equivalence.
8X A(X) $ :9X:A(X)
9X A(X) $ :8X:A(X)
8X A(X) ! 9X A(X)
9X8Y A(X,Y) ! 8Y9X A(X,Y)
8X8Y A(X,Y) $ 8Y8X A(X,Y)
9X9Y A(X,Y) $ 9Y9X A(X,Y)
9X (A(X) _ B(X)) $ (9X A(X) _ 9X B(X))
8X (A(X) ^ B(X)) $ (8X A(X) ^ 8X B(X))
8X A(X) _ 8X B(X) ! 8X (A(X) _ B(X))
9X (A(X) ^ B(X)) ! (9X A(X) ^ 9X B(X))
8X (A(X) $ B(X)) ! (8X A(X) $ 8X B(X))
8X (A(X) $ B(X)) ! (9X A(X) $ 9X B(X))
16