Math Logic
Math Logic
or
False???
True or False???
of the year.
Answer: TRUE
True or False???
Answer: FALSE
True or False???
Answer: FALSE
True or False???
Answer: TRUE
True or False???
Example
p: Everyone should study logic.
Propositional Logic
Exercise # 1
Determine whether the following statements are propositions
or not. If a proposition, determine its truth value.
r: Bohol is an island in the Philippines. - a proposition
s: The earth is round. - a proposition
t: Find the number which divides your age. - not a proposition
u: Welcome to the Philippines! - not a proposition
v: 3 + 2 = 5 - a proposition
w1: It is not the case the square root of 2 is a rational number. - a proposition
w2: The product of two irrational numbers is always irrational. - a proposition
Propositional Logic
Compound Propositions
• It will rain today and tomorrow.
Note:
A proposition is simple if it cannot be broken
down further into other component
propositions.
Propositional Logic
Negation
p1: I am not going to the party.
p2 : 2 + 3 ≠ 1
Negation
- The negation of a proposition p denoted by ~p (read as not p)
and is defined through its truth table:
p ~p
T F
F T
Propositional Logic
Exercise # 2
State the negation of the following propositions.
n1: P(x) = is a polynomial function.
- P(x) = is not a polynomial function.
n2: 2 is an odd number.
- 2 is an even number.
n3: The tinikling is the most difficult dance.
- The tinikling is not the most difficult dance.
n4: Everyone in Visayas speaks Cebuano.
- Not all in Visayas speaks Cebuano.
Propositional Logic
Conjunction
Given:
Disjunction
p3: You are going to have cookies or brownies for
dessert.
Order of Operations
- Grouping: (), [], {}
- ~
- ∧, left to right
- ∨, left to right
Propositional Logic
Exercise # 3
Determine the truth value of each of the following if
p is true, q is false and r is false.
1. p ∧ ~q Truth Value: True
2. ~p ∨ q Truth Value: False
3. p ∨ q ∧ r Truth Value: True
4. p ∧ (q ∨ q) Truth Value: False
5. ~p ∧ q ∧ (q ∨ r) Truth Value: False
6. (~p ∨ q) ∧ (q ∨ q) Truth Value: False
7. (p ∨ q) ∧ (~p ∨ ~r) Truth Value: True
Propositional Logic
De Morgan’s Laws
~(p ∧ q) = ~p ∨ ~q
~(p ∨ q) = ~p ∧ ~q
p q p → q q → p ~p ~q ~p → ~q ~q → ~p
T T T
T F F
F T T
F F T
Propositional Logic
Exercise # 7
Construct the truth table for ((p → q) ∧ q) ↔ q.
p q p → q (p → q) ∧ q ((p → q) ∧ q) ↔
q
T T
T F
F T
F F
Propositional Logic
Exercise # 6
Construct the truth table for the converse, inverse and
contrapositive of p → q.
p q p → q q → p ~p ~q ~p → ~q ~q → ~p
T T T T F F T T
T F F T F T T F
F T T F T F F T
F F T T T T T T
Propositional Logic
Exercise # 7
Construct the truth table for ((p → q) ∧ q) ↔ q.
p q p → q (p → q) ∧ q ((p → q) ∧ q) ↔
q
T T T T T
T F F F T
F T T T T
F F T F T
Propositional Logic
Exercise # 8
Construct the truth value of the following
propositions.
1. (p ∧ q) → p
2. (~p) → (p ∨ q)
3. (p → q) → (q ↔ p)
4. (~(p ∧ q) ∧ (~p)) ↔ q
Thank You!!!