Professional Documents
Culture Documents
Modern World
Logic
Discuss logic statements
Construct truth tables
Translate compound statements in symbolic form
If a plane crushes on the
border between
Philippine and Malaysia,
where do they bury the
survivors?
Once
Manila is the capital of the Philippines.
Binary Operators
It is applied to two propositions.
Unary Operator
Negation
• “Not”
• ~ or ¬ symbol is
used to denote
negation.
Example:
p: This book is interesting.
~p can be read as:
1. This book is not interesting.
2. This book is uninteresting.
3. It is not the case that this book
is interesting.
p ~p
T F
F T
Conjunction (^)
Disjunction (˅)
Exclusive or ()
Implication(→)
Biconditional(↔)
Binary Operator
Conjunction
• “and”
• ^ symbol is used to denote
conjunction
• p and q is the same as p^q
Example 1:
p: This book is interesting.
q: I am staying at home.
p^q:
This book is interesting and I
am staying at home.
Example 2:
p: I am at home.
q: It is raining.
p^q:
I am at home and it is raining.
The conjunction p^q of p and
q is the proposition that is
TRUE when both p and q are
true and false otherwise.
p q p^q
T T T
T F F
F T F
F F F
Binary Operator
Disjunction
• “or” (inclusive or)
• ˅ symbol is used to denote
disjunction.
• p or q is the same as p˅q
Example 1:
p: This book is interesting.
q: I am staying at home.
p˅q:
This book is interesting or I am
staying at home.
Example 2:
p: I am at home.
q: It is raining.
p˅q:
I am at home or it is raining.
The disjunction p ˅q of p or q is
the proposition that is
TRUE when either p is true, q
is true or both are true and is
false otherwise.
p q p˅q
T T T
T F T
F T T
F F F
Binary Operator
• Exclusive or ()
• “xor” (exclusive or)
• symbol is used to denote
exclusive or
• p xor q is the same as pq
Example 1:
p: This book is interesting.
q: I am staying at home.
p q:
Either this book is interesting or I
am staying at home, but not both.
Example 2:
p: I am at home.
q: It is raining.
pq:
Either I am at home or it is
raining.
The exclusive or (pq) is the
proposition that is
TRUE when exactly one of p
or q is true, but not both. It is
false if both are true or both are
false.
p q pq
T T F
T F T
F T T
F F F
Binary Operator
• Implication(→)
• If-then statement
• → symbol is used to denote
implication
• “If p then q”
Example:
p: Maria learns discrete Mathematics.
q: Maria will find a good job.
p→q:
If Maria learns discrete mathematics,
then she will find a good job.
Example:
It can also be:
p→q: “Maria will find a good job
when she learns discrete
mathematics.”
p→q:“For Maria to get a good job,
it is sufficient for her to learn
discrete mathematics.”
EquivaIent forms of “If p then q.”
• p implies q
• If p, q
• p only if q
• p is a sufficient condition for q
• q if p
• q whenever p
• q is a necessary condition for p
Examples:
• If it's raining then streets are
wet.
• If it's raining,streets are wet.
• Rain implies that streets are wet.
• Streets are wet when it's raining.
Examples:
P: I am at home.
Q: It is raining.
Forms of Conditional Propositions
P: I am at home.
Q: It is raining.
Implication: P→Q
If I am at home then it is raining.
Converse: Q→P
If it is raining then I am at home.
Suppose we have the following statements for P and Q:
P: I am at home.
Q: It is raining.
Inverse: ~P→~Q
If I am not at home then it is not raining.
Contrapositive: ~Q→~P
If it is not raining then I am not at home.
PRECEDENCE OF LOGICAL OPERATIONS
TRUTH TABLES
~ pq
p q ~p ~p v q
T T F T
T F F F
F T T T
F F T T
TRUTH TABLES
~ p ~ q
p
~ p ~
q q ~p ~q
F
~ p ~ q
T T F T
T F F T T
F T T F F
F F T T T
TRUTH TABLES
~ p ~ q
p
~ p ~
q q ~p ~q
F
~ p ~ q
T T F F
T F F T T
F T T F T
F F T T T
construct a truth table in
each of the following:
~ p q~ ~ r
p r (q r )
p ~ q r
p ~ q r
p q r ~q p ~ q
T T T F F T
T T F F F T
~ p ~ q
T F T T T T
T F F T T F
F T T F F T
F T F F F T
F F T T F T
F F F T F T
p r (q r )
p q r (pr) (qr) (pr)v(qr)
T T T T T T
T T F F F F
~ p ~ q
T
T
F
F
T
F
T
F
T
T
T
T
F T T T T T
F T F T F T
F F T T T T
F F F T T T
Write compound statements in symbolic form:
p: Today is Friday.
q: It is raining.
r: I am going to a movie.
s: I am not going to the basketball game.
Exercise:
1. Today is Friday and it is raining. p ^ q
2. It is not raining and I am going to a movie.~q ^ r
C. The consequent
D. The antecedent
If a conditional statement is TRUE., its
converse is sometimes TRUE.
Agree
Disagree
If a triangle is obtuse, then it has two
acute angles.
State the
contrapositive.
If a triangle has no two acute
angles, then it is not obtuse.
In a disjunction, even if one of the
statements is false, the whole disjunction
is still...
A. False
B. Negated
C. True
D. Both true and false