Mth202 Lecher#2
Mth202 Lecher#2
Mth202 Lecher#2
1. ~ p ∧ q
2. ~ p ∧ (q ∨ ~ r)
3. (p∨q) ∧ ~ (p∧q)
P Q ~p ~ p∧ q
T T F F
T F F F
F T T T
F F T F
p q r ~r q∨~r ~p ~ p ∧ (q ∨~r)
T T T F T F F
T T F T T F F
T F T F F F F
T F F T T F F
F T T F T T T
F T F T T T T
F F T F F T F
F F F T T T T
P q P∨q P∧q ~ ( p ∧ q) (p ∨ q) ∧ ~ (p ∧
q)
T T T T F F
T F T F T F
F T T F T F
F F F F T F
p q p⊕q
T T F
T F T
F T T
F F F
If two logical expressions have the same logical values in the truth table, then we say that the two
logical expressions are logically equivalent. I
DE MORGAN’S LAWS
1) The negation of an AND statement is logically equivalent to the OR statement in which each
component is negated. Symbolically ~ (p ∧ q) ≡ ~ p ∨ ~ q
2) The negation of an OR statement is logically equivalent to the AND statement in which each
component is negated. Symbolically ~ (p ∨ q) ≡ ~ p ∧ ~ q
Truth Table of ~ (p ∨ q) ≡ ~ p ∧ ~ q
p q ~p ~q p∨q ~(p ∨ q) ~p ∧ ~q
T T F F T F F
T F F T T F F
F T T F T F F
F F T T F T T
What is Tautology?
A tautology is a statement form that is always true regardless of the truth values of the statement
variables. A tautology is represented by the symbol “t”.
EXAMPLE:
The statement form p ∨ ~ p is tautology.
Truth table:
p ~p p∨~p
BY ALONE WOLF GROUP
T F T
F T T
p∨~p≡t
What is CONTRADICTION?
A contradiction is a statement form that is always false regardless of the truth values of the statement
variables. A contradiction is represented by the symbol “c”.
EXAMPLE:
p ~p p∧~p
T F F
F T F
LAWS OF LOGIC
1) Commutative Laws
p∧q≡q∧p
p∨q≡q∨p
2) Associative Laws
(P ∧ q) ∧ r ≡ p ∧ ( q ∧ r )
(P ∨ q) ∨ r ≡ p ∨ ( q ∨ r )
3) Distributive Laws
P ∧ (q ∨ r) ≡ (p ∧ q) ∨ (p ∧ r)
P ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
4) Identity Laws
P∧t≡p
P∨c≡p
5) Negation Laws
P ∨ ∼p ≡ t
P ∧ ∼p ≡ c
∼ (∼p) ≡ p
7) Idempotent Laws
P∧p≡p
BY ALONE WOLF GROUP
P∨p≡p
8) DE Morgan’s Laws
~ (p ∧ q) ≡ ~p ∨ ∼q
~ (p ∨ q) ≡ ~p ∧ ∼q
P∨t≡t
P∧c≡c
p∨(p∧q)≡p
P ∧ (p ∨ q) ≡ p
~T≡c
~C≡t