1.2 - Unit1 - Proposition, Logical Operators, Truthtables
1.2 - Unit1 - Proposition, Logical Operators, Truthtables
1.2 - Unit1 - Proposition, Logical Operators, Truthtables
Emad Al-Zangana
Mustansiriyah University College of Science Dept. of Math. (2017-2018)
Remark 1.3.2. One informal way to check whether or not a certain logical formula is
a theorem is to construct its truth table.
Example 1.3.7.
p q p∧q ~ (p ∧ q) p ∨ ~ (p ∧ q)
T T T F T
T F F T T
F T F T T
F F F T T
Exercise 1. 1.3.8
8
Foundation of Mathematics 1 Dr. Bassam Al-Asadi and Dr. Emad Al-Zangana
Mustansiriyah University College of Science Dept. of Math. (2017-2018)
(p ↔ q) ∧ (~p∧ q)
is a contradiction.
is a tautology.
Propositions r and s are logically equivalent if the truth tables of r and s are the same
and denoted by (r ≡ s).
(p → q) ∧ (q → p) ≡ p ↔ q.
p q ~q p→q ~(p → q) p ∧ ~q
T T F T F F
T F T F T T
F T F T F F
F F T T F F
9
Foundation of Mathematics 1 Dr. Bassam Al-Asadi and Dr. Emad Al-Zangana
Mustansiriyah University College of Science Dept. of Math. (2017-2018)
The logical equivalences below are important equivalences that should be memorized.
1-Identity Laws: p ∧ T ≡ p.
p ∨ F≡ p.
2-Domination Laws: p ∨ T ≡ T.
p ∧ F ≡ F.
3-Idempotent Laws: p ∨ p ≡ p.
p ∧ p ≡ p.
5- Commutative Laws: p ∨ q ≡ q ∨ p.
p ∧ q ≡ q ∧ p.
9- Absorption Laws: p ∧ (p ∨ q) ≡ p.
p ∨ (p ∧ q) ≡ p.
p ∧ (~p ∨ q) ≡ p∧q.
p ∨ (~p ∧ q) ≡ p∨q.
10-Implication Law: (p → q) ≡ (~ p ∨ q).
11- Contrapositive Law: (p → q) ≡ (~ q → ~p).
12- Tautology: p ∨ ~ p ≡ T.
13- Contradiction: p ∧ ~p ≡ F.
14- Equivalence: (p → q) ∧ (q → p) ≡ (p ⟷ q).
10
Foundation of Mathematics 1 Dr. Bassam Al-Asadi and Dr. Emad Al-Zangana
Mustansiriyah University College of Science Dept. of Math. (2017-2018)
Solution.
p q ~p ~q p∧q ~ (p ∧ q) ~ p ∨ ~q
T T F F T F F
T F F T F T T
F T T F F T T
F F T T F T T
T T T T T T
T F F T F F
F T T F F F
F F T T T T
11
Foundation of Mathematics 1 Dr. Bassam Al-Asadi and Dr. Emad Al-Zangana
Mustansiriyah University College of Science Dept. of Math. (2017-2018)
p q p∨q p∧q ~ (p ∧ q) 𝐩 ∨𝐪 ( p ∨ q) ∧ ~ (p ∧ q)
T T T T F F F
T F T F T T T
F T T F T T T
F F F F T F F
12