Week 7 Predicate Logic
Week 7 Predicate Logic
Alice is
friends with Bob
object predicate object
be
↓ can rewritten as
placeholders for
arbitrary / unearned objects or individuals
↳ All of Atiees friends study logic
↓
if ✗ is a friend of Alice ,
N studies
logic
He
f- ( alice , a) → S (a)
→ We use
quantifiers for this
→ we can
quantify over
any
variable se
appearing in a
the In
Universal Quantifier and Existential duantifier
there exists an x
" "
for all a
" "
e.
g
Alice 's mother is a dentist
object function predicate
*
Dentist ( mother of ( alice ) )
_
Equality
→ we can
identify two terms equal with the as =
symbol
that acts
special predicate symbol
as a
of ( alice))
Another e.
g
for all se if R is even and x > 2
,
then there exists
,
y
→
Signature
→ The
signature or
vocabulary of a first order language is
a
triple
0 =
( ,
9- ,
G)
Predicate symbols Function
symbols constant symbols
9$ =
{P ,
D R,, . .
.
-
,
9- =
{ f. g ,
h ,
- .
-
,
8 =
{ alice
a b
, ,
C
,
. . .
Friends ,
. . . .
}
mother _
of ,
- - - -
} ,
_ . . .
n -
Tm • =
Predicates if t :
tn C- Tms are terms and PED is an
,
,
- - -
: >
,
CFV G) (F ,
G) and f- → G) formulae are
Fml
•
=
of positions
e. 9
Y n ( P C se
, g) → D C n ) ) 7 z R ( se
,
2- )
0 I 2 3 4 5 67 8 9 10 11121314 15 16 17 I 8 19 2021 2223
→
scope of first quantifier the are the positions
scope ( Vn)
=
{ 2 , 3,4 ; - .
-
,
14 }
→
Bound
an occurrence of a variable n is bound if its position
appears in the scope of a
matching quantifier tu or 7m
↳ Free
an occurrence of a variable is free if it is not bound
semantics of Predicate
Logic
→ A first order model is a
pair
M ( D I)
comprising
=
,
of
Domain :
Any finite or infinite set of objects
Interpretation :
an interpretation that associates each
symbol from with 0
appropriate an
symbol P
,
takes a set of function f. our constant
symbol
n tuples from our Domain function associates from our Domain
as
arguments an
appropriate function
that
maps 19^6-91
so a function that maps
our
symbols in 8^5
some unique symbol in
D
Variable
Assignments
→ a
function mapping each variable to an
object from our model
domain I
V : Vars → I
the
✗
notation
a
to
domain object a C- D
,
we use
% ↳a ]
denote the modified
assignment given by
% { a if a= y
=
a ] ✓ (g) if
y≠
n
,
tn ) then
±
t ¥ f- ( t ? .
ᵗ¥
,
_
.
.
,
Defining satisfiability
→ we define the
satisfiability of a formula H in a model M
under
assignment V
recursively as follows :
Predicates : if
of the form Pct
H is En ) then
≈
. ,
. _
,
:
M V F Pct tn ) iff Lt ? t F) C- P
,
,
- -
. -
,
. . .
.
,
, ,
t}
≈
M V F Ct til if f- t, ,
=
,
=
M V f- F if f- M V # F
,
>
,
M V f- ( FA G) iff M V F F and M V f- G
, , ,
M , V f- ( Fv G) iff M V f- For M V FG , ,
M V K 7nF iff
Mike + ] F- F for at least one a C- D
, >a
M ,
V FF for some model M and some
assignment V
→ We that first order formula F is valid or a tautology if
say a :
, Fn
when :
Fi ,
- - <
, Fn f- G iff M ,V f- G whenever
M , V f- Fi for i = 1
,
- - r
,
n