MAT2002 Module 2
MAT2002 Module 2
MAT2002 Module 2
Inference Rule:
Rule T: Derivation
P
Modus Ponens: P→Q
Q
∼Q
Modus Tollens: P→Q
∼P
∼P ∼Q
Disjunctive Syllogism: P∨Q and P ∨ Q
Q P
P∧Q
Simplification:
P or Q
P, Q
Conjunction:
P∧Q
P −→ Q
Hypothetical Syllogism: Q −→ R
P −→ R
Dilemma P ∨ Q, P → R, Q → R ⇒ R
Dr.A.Benevatho Jaison MAT1002 March 30, 2021 52 / 199
Example 2.1.1
Prove that S is a valid conclusion from the premises P →∼ Q, Q ∨ R, ∼ S → P
and ∼ R.
Steps Statement Rule Step in- Justification
formula volved
1 ∼R P - -
2 Q∨R P - -
3 Q T 1,2 Disjunctive Syllogism
4 P →∼ Q P - -
5 ∼P T 3,4 Modus Tollens
6 ∼S→P P - -
7 ∼ (∼ S) T 5,6 Modus Tollens
8 S T 7 Double Negation
A B A + AB X
0 0 0+1.0 0
0 1 0+1.1 1
1 0 1+0.0 1
1 1 1+0.1 1
B
0 1
0 0 1
A
1 1 1
Grouping I Grouping II
A B A B
1 0 0 1
1 1 1 1
Answer: A+B
Dr.A.Benevatho Jaison MAT1002 March 30, 2021 56 / 199
Example 2.2.3
Simplify f = ABC + ABC + AB + C using K-map.
f =A+B+C
Grouping-I Grouping-II
A B C A B C
0 0 0 0 0 0
0 0 1 1 0 0
0 1 1 0 1 0
0 1 0 1 1 0
A C
F =A+C
Truth value of compound statement determine by the truth value of its sub-
statements together.
p q p∧q
T T T
T F F
F T F
F F F
p q p∨q
T T T
T F T
F T T
F F F
p q ∼p ∼q ∼ p∨ ∼ q
T T F F F
T F F T T
F T T F T
F F T T T
p q ∼p (∼ p) ∧ q ∼ ((∼ p) ∧ q)
T T F F T
T F F F T
F T T T F
F F T F T
Example Solution
A + BC 11111000
A(B + D) 11100000
(A + B)(A + C) 11111000
W(X + Y)Z 0000000010101000
PT(P + Z) 00110000
Example 2.4.3
p q p→q q→p (p → q) ∨ (q → p)
T T T T T
T F F T T
F T T F T
F F T T T
Example 2.4.5
p q p→q ∼ (p → q) q∧ ∼ (p → q)
T T T F F
T F F T F
F T T F F
F F T F F
∼ (p ∨ q) ≡ (∼ p) ∧ (∼ q)
Example 2.4.7
Show that P → Q and ∼ P ∨ Q are logically equivalent.
p q p→q ∼p ∼p∨q
T T T F T
T F F F F
F T T T T
F F T T T
(P ∧ Q) ∨ (R ∧ S) = (P ∨ R) ∧ (P ∨ S) ∧ (Q ∨ R) ∧ (Q ∨ S)
(P ∧ Q) ∨ (R ∨ S) = (P ∨ (R ∨ S)) ∧ (Q ∨ R ∨ S)
Statement
[(P ∨ Q)∧ ∼ (∼ P ∧ (∼ Q∨ ∼ R))] ∨ [(∼ P∧ ∼ Q) ∨ (∼ P∧ ∼ R)]
DeMorgans law
[(P ∨ Q)∧ ∼ (∼ P∧ ∼ (Q ∧ R))] ∨ [(∼ P∧ ∼ Q) ∨ (∼ P∧ ∼ R)]
Distributive law
[(P ∨ Q)∧ ∼ (∼ P∧ ∼ (Q ∧ R))] ∨ [∼ P ∧ (∼ Q∨ ∼ R)]
DeMorgans law
[(P ∨ Q)∧ ∼ × ∼ (P ∨ (Q ∧ R))] ∨ [∼ P∧ ∼ (Q ∧ R)]
Double negation, DeMorgans law
[(P ∨ Q) ∧ (P ∨ (Q ∧ R))] ∨ ∼ [P ∨ (Q ∧ R)]
Distributive law
[(P ∨ Q) ∧ {(P ∨ Q) ∧ (P ∨ R)}] ∨ ∼ [P ∨ (Q ∧ R)]
Associative law
[{(P ∨ Q) ∧ (P ∨ Q)} ∧ (P ∨ R)] ∨ ∼ [P ∨ (Q ∧ R)]
Statement
[∼ P ∧ (∼ Q ∧ R)] ∨ [(Q ∧ R) ∨ (P ∧ R)]
Associative law, Distributive law
[(∼ P∧ ∼ Q) ∧ R] ∨ [(Q ∨ P) ∧ R]
DeMorgans law
[∼ (P ∨ Q) ∧ R] ∨ [(P ∨ Q) ∧ R]
Distributive law
[∼ (P ∨ Q) ∨ (P ∨ Q)] ∧ R
Complement
T ∧R
Identities
R
A ⇒ B if A → B is a Tautology.
So we need to prove that ((P → R) ∧ (Q → R)) → ((P ∨ Q) → R) is a Tau-
tology.
Statement
((P → R) ∧ (Q → R)) → ((P ∨ Q) → R)
Conditional equivalence
((∼ P ∨ R) ∧ (∼ Q ∨ R)) → ((P ∨ Q) → R)
Distributive law
[(∼ P∧ ∼ Q) ∨ R] → ((P ∨ Q) → R)
DeMorgan’s law
[∼ (P ∨ Q) ∨ R] → ((P ∨ Q) → R)
Conditional equivalence
[(P ∨ Q) → R] → [(P ∨ Q) → R]
Conditional equivalence
∼ [(P ∨ Q) → R] ∨ ((P ∨ Q) → R)
Complement
T
Dr.A.Benevatho Jaison MAT1002 March 30, 2021 82 / 199
Example 2.5.4
Using the laws of logic, show that the following expression are logically equiv-
alent
Statement
[P ∧ (P∨ ∼ R ∨ Q)] ∨ [(Q ∧ R) ∨ (Q∧ ∼ R)]
Distributive
[P ∧ (P∨ ∼ R ∨ Q)] ∨ [Q ∧ (R∨ ∼ R)]
Complement
[P ∧ (P∨ ∼ R ∨ Q)] ∨ [Q ∧ T]
Identities
[P ∧ (P∨ ∼ R ∨ Q)] ∨ [Q]
((A → B) ∧ A) → B
Statement
((A → B) ∧ A) → B
Conditional equivalence
((∼ A ∨ B) ∧ A) → B
Conditional equivalence
∼ ((∼ A ∨ B) ∧ A) ∨ B
DeMorgan’s law
(∼ (∼ A ∨ B)∨ ∼ A) ∨ B
DeMorgan’s law
((A∧ ∼ B)∨ ∼ A) ∨ B
Dr.A.Benevatho Jaison MAT1002 March 30, 2021 85 / 199
Distributive
((A∨ ∼ A) ∧ (∼ B∨ ∼ A)) ∨ B
Complement
(T ∧ (∼ B∨ ∼ A)) ∨ B
Identities
(∼ B∨ ∼ A) ∨ B
Associative
∼ B ∨ (∼ A ∨ B)
Commutative
∼ B ∨ (B∨ ∼ A)
Associative
(∼ B ∨ B) ∨ ∼ A
Complement
T∨ ∼ A
Dominance Law
T