Professional Documents
Culture Documents
PREDICATE LOGIC
Nidheesh Chittil
1. Propositional Logic
A proposition a sentence that can be either true or false.
Propositional logic consists of:
Equivalence laws
Commutation
1.
PQ
Q P
2.
P V Q
Q V P
(P Q) R
Association
1.
P (Q R)
2.
P V (Q V R)
(P V Q) V R
Double Negation
~ (~ P)
Distributive Laws
1.
P ( Q V R)
(P Q) V (P R)
2.
P V ( Q R)
(P V Q) (P V R)
De Morgans Laws
1.
~ (P Q)
~P V~Q
2.
~ (P V Q)
~P ~Q
T (true)
Law of Contradiction
P ~P
F (false)
Truth table
Truth table gives us operational definitions of important logical
operators.
~P
PQ PVQ
P Q
P Q
Syntax
1. symbols
propositional symbols P, Q,
logical connectives
conjunction , disjunction ,
negation ,
implication , equivalence
parentheses ,
2. sentences
Cont.
Connectives:
and
or
not
implies
, >
equivalent to
False, True
Parenthesis:(, ).
Semantics
1. interpretation of the propositional symbols and constants
Semantics
2.
Predicate Logic
Variables
Connectives
x, y, a, b,...
, , , ,
Quantifiers
Universal quantifier
x, at(x,Villanova) smart(x)
means Everyone at Villanova is smart
x, at(x,Villanova) smart(x)
means Everyone is at Villanova and everyone is smart
Existential quantifier
x, at(x,Villanova) smart(x)
means There is someone who is at Villanova and is smart
x, at(x,Villanova) smart(x)
This is true if there is someone at Villanova who is smart...
...but it is also true if there is someone who is not at Villanova
By the rules of material implication, the result of F T is T
Properties of quantifiers
x y is the same as y x
x y is the same as y x
x y Loves(x,y)
y x Loves(x,y)
x Likes(x,IceCream)
x Likes(x,IceCream)
x Likes(x,Broccoli)
x Likes(x,Broccoli)
Parentheses
Parentheses are often used with quantifiers
Examples:
x, person(x) likes(x,iceCream)
x (person(x) likes(x,iceCream))
x (x > 0) x (x < 0)
Syntax
based on sentences
predicate symbols
Adjacent-To, Younger-Than, ...
Semantics
relates sentences to models
constants
predicate symbols
function symbols
> (3,4)
Brother(mohamed,Mostefa)
Function Symbol
A given object it is related to exactly one other
object by the relation Function(Term,,,,,)
FatherOf(Ahmad)
Equal(Plus(1,2))
1=1
S1 S2
S1 S2
S1 S2
S1 => S2