1 Propositional Logic
1 Propositional Logic
Negation Operator
Let p be a proposition. The negation of
p, denoted by p, is the statement
It is not the case that p.
Conjunction Operator
Let p and q be propositions. The
conjunction of p and q, denoted by p q, is the
proposition p and q. The conjunction p q is
true when both p and q are true and is false
otherwise.
pq
Disjunction Operator
Let p and q be propositions. The
disjunction of p and q, denoted by p q, is the
proposition p or q. The disjunction p q is
false when both p and q are false and is true
otherwise.
pq
Exclusive Or Operator
Let p and q be proposition. The exclusive or
of p and q, denoted by p q, is the
proposition that is true when exactly one of p
and q is true and is false otherwise.
pq
Conditional Statement
Let p and q be propositions. The
conditional statement p q is the proposition
if p, then q. The conditional statement p q
is false when p is true and q is false, and true
otherwise. In the conditional statement p q, p
is called the hypothesis (or antecedent or
premise) and q is called the conclusion (or
consequence)
pq
if p, then q
p implies q
if p, q
p only if q
p is sufficient for q
q whenever p
q if p
q is necessary for p
a sufficient condition for q is p
q when p
a necessary condition for p is q
q unless p
q follows from p
Biconditional Statement
Let p and q be propositions. The
biconditional statement p q is the
proposition p if and only if q. The
biconditional statement p q is true when p
and q have the same truth values, and is false
otherwise.
pq
Precedence
2
3
4
5
xy xy
xy
Example:
1.
Identity Laws
pTp
pFp
Domination Laws
pTT
pFF
Idempotent Laws
ppp
ppp
Double Negation Law
(p) p
Commutative Laws
pqqp
pqqp
Associative Laws
p (q r) (p q) r
p (q r) (p q) r
Distributive Laws
p (q r) (p q) (p r)
p (q r) (p q) (p r)
De Morgans Laws
(p q) p q
(p q) p q
Absorption Laws
p (p q) p
p (p q) p
Negation Laws
p p T
p p F
Example:
Show that (p (p q)) and p q are
logically equivalent.
x + y = z
Example :
1. Let P(x) denote the statement x>3. What are the
truth values of P(4) and P(2)?
2. Let Q(x,y) denote the statement x = y+3. What
are the truth values of the proposition Q(1,2) and
Q(3,0)?
Example:
1.Let P(x) denote the statement x 4. What
are the truth values of the following?
a.P(0)
b. P(4)
c. P(6)