MMW - Logic
MMW - Logic
GEC 14
Mathematics in the Modern World
Department of Mathematics
College of Science
Bicol University
Example: p: 1+1 = 3
q: A century is 100 years.
then:
conjunction (p ∧ q): 1+1 = 3 and a century is 100 years.
disjunction (p ∨ q): 1+1 = 3 or a century is 100 years.
then:
p: “0 < x”
q: “x < 5”
r: “x = 5”
Example:
p: The Dept. of Health gets an additional Php. 200,000.
q: The Dept. of Health hires one new health worker.
p → q : If the Dept. of Health gets an additional
Php. 200,000, then it will hire one health worker.
p↔q
• p is equivalent to q
• p iff q
• p is a sufficient and necessary condition for q
• p → q and q → p (p implies q and q implies p)
p q p∨q p̄ ∧ q̄
T T F F
T F F F
F T F F
F F T T
∴ P and Q logically equivalent
Theorem
The conditional proposition p → q and its contrapositive
q̄ → p̄ are logically equivalent.
p: Today is Saturday.
q: It is a sunny day.
r: I am going to the theater.
s: I am not going to the soccer game.
Do the following.
a. Write (p ∧ q) → r as an English sentence.
b. Write in symbolic form: “ If you do not finish the job early,
then you cannot take an early vacation and you will not
receive a bonus.”
4. Show that p → q ≡ p̄ ∨ q.
5. Write each of the following in its equivalent disjunctive
form. (use no. 4)
a. If I could play the violin, I would join the orchestra.
b. If LeBron James cannot play, then his team will lose.
Example:
If Heracles was human, then Heracles was mortal.
Heracles was human.
∴p
2. fallacy of the inverse
p→q
p̄
∴ q̄
J.B.E. Riñon - Bicol University GEC 14 MMW: Logic 28 / 34
Logically Equivalent Statements
• Idempotent Laws • Associative properties
p∧p ≡p p ∧ (q ∧ r ) ≡ (p ∧ q) ∧ r
p∨p ≡p p ∨ (q ∨ r ) ≡ (p ∨ q) ∨ r
• Double Negation • Distributive properties
p̄ ≡ p p ∧ (q ∨ r ) ≡ (p ∧ q) ∨ (p ∧ r )
• De Morgan’s Laws p ∨ (q ∧ r ) ≡ (p ∨ q) ∧ (p ∨ r )
(p ∨ q) ≡ p̄ ∧ q̄ • Equivalence of Contrapositive
(p ∧ q) ≡ p̄ ∨ q̄ p → q ≡ q̄ → p̄
• Commutative Properties • Other useful properties
p∧q ≡q∧p p → q ≡ p̄ ∨ q
p∨q ≡q∨q p ↔ q ≡ (p → q) ∧ (q → p)
p
p→q
s ∨r
r → q̄
∴s ∨t