MAT Lecture 6 Truth Tables
MAT Lecture 6 Truth Tables
MATHEMATICS
Lecture-7
Truth Tables
Objectives of today’s class:
Tautology
Contradiction
Inverse
Converse
Contrapositive
Converse
For a given the conditional statement p→q, we can write
the converse statement by interchanging or swapping the roles of
the hypothesis and conclusion of the original conditional statement.
Therefore, the converse is the implication q→p.
Example:
– If it is raining, then the home team wins.
If the home team wins then it is raining
– If it snows tonight, then I will stay at home
If I stay home tonight then there is snow
Inverse
The inverse of a conditional statement is formed by negating the
hypothesis and negating the conclusion of the original statement. In
other words, the word "not" is added to both parts of the sentence.
If p q is a statement then the inverse is ~p ~q
Example:
– “If it is raining, then the home team wins.”
If it is not raining, then the home team does not win
– If it snows tonight, then I will stay at home
If it does not snow tonight, then I will not stay at home
Contrapositive
The contrapositive of a conditional statement is formed by
negating both the hypothesis and the conclusion, and
then interchanging the resulting negations.
In other words, the contrapositive negates and switches the parts of the
sentence. It does BOTH the jobs of the INVERSE and the
CONVERSE.
If p q is a statement then the contrapositive is ~q ~p
Example:
– “If it is raining, then the home team wins.”
If the home team does not win, then it is not raining
– If it snows tonight, then I will stay at home
If I do not stay home tonight then it there is no snow
Truth table for Converse, Inverse and Contrapositive:
Tautology
A tautology is a compound statement (premise and conclusion) that always produces
truth. A proposition P is a tautology if it is true under all circumstances. It means it
contains the only T in the final column of its truth table.
If p is a proposition, then tautology is defined as “p ∨ ~p”
The simple examples of tautology are;
•Either Mohan will go home or Mohan will not go home.
•He is healthy or he is not healthy
•A number is odd or a number is not odd.
Example: Prove that the statement (p⟶q) ↔(∼q⟶∼p) is a tautology.
F F T T T T T
Contradiction
A contradiction is a compound statement (premise and conclusion) that
always produces false. A proposition P is a contradiction if it is false
under all circumstances. It means it contains the only F in the final
column of its truth table.
If p is a proposition, then contradiction is defined as “p ∧ ~p”
Example: Show that the statement p ∧∼p is a contradiction.
Solution:
p ∼p p ∧∼p
T F F
F T F
Contingency
A Contingency is a formula which has both some true and some
false values for every value of its propositional variables.
Example: Show that statement (p →q)⟶ (p∧q ) is a contingency
T T T T T
T F F F T
F T T F F
F F T F F
Logical Equivalence
Two statements are logically equivalent provided that they have exactly
the same truth values in all possible cases. In other words, their columns
on a truth table are identical. If p and q are logically equivalent, we can
represent this symbolically as “p⇔q
Idempotent laws
• pp p
• ppp
Associative laws
(a) (pq) r p (qr)
(b) (p q) r p (q r)
Commutative laws
•pq qp
•p q q p
Distributive laws
•p(qr) (pq)(pr)
•p(qr) (pq) (p r)
Identity laws
•p0p
•p11
•p1p
•p00
Complement laws
•p~p 1
•p~p 0
•~~p p
•~1 0
•~0 1
DeMorgan’s Laws
•~(p q) ~p ~q
•~(p q) ~p ~q
Evaluating the propositions using the axioms:
1) Write the following sentences in symbolic form using p and q
p =“He is tall”, q = “He is handsome”
Solution:
p ∨ p ∧ q = (p ∧ 1) ∨ (p ∧ q) identity axiom
= p ∧ ( 1 ∨ q) distributive axiom
=p∧1 identity axiom
=p identity axiom
Solution:
~ (p ∨ q) ∨ ( ~p ∧ q) = (~p ∧ ~q) ∨ (~p ∧ q) Demorgan’s law
= ~p ∧ (~q ∨ q) Distributive law
= ~p ∧ 1 Complement law
= ~p Identity law
•Determine the Inverse, converse and contrapositive of each statement:
If he has courage he will win
Only if he does not tire will he win
•Find
1) p ∨ (q ∧ r) ≡ (p ∨ q) ∧ (p ∨ r)
2) (p ∨ q) ≡ (~p ∧ ~ q)
3) (p → q) ∧ (q → p) ≡ p ↔ q.
Thank you!