PLTruth Table II
PLTruth Table II
Prof.Dr.P.M.Bajracharya
Summary
1 Comparing Statements
Classification of Statements
Comparing Statements
Classifying Statements
2 Contradiction
3 Contingent statements
1. Tautology
A compound statement/proposition is called a
tautology (or logically true statement) if it is
true regardless of the truth values of its
components.
1. Tautology
A compound statement/proposition is called a
tautology (or logically true statement) if it is
true regardless of the truth values of its
components.
2. Contradiction
A compound statement is called a contradiction
(or logically false statement) if it is false
regardless of the truth values of its components.
3. Contingent statements
A compound statement is called a contingent
statement if its truth value varies depending on
the truth values of its components.
3. Contingent statements
A compound statement is called a contingent
statement if its truth value varies depending on
the truth values of its components.
Example
Let p and q be two statements. Then the
statement
• p ∨ ∼ p is a tautology.
• p ∧ ∼ p is a contradiction.
• p ⇒ q is contingent.
Example
Prove that the statement
∼ (p ∧ q) ⇔ ( ∼ p) ∨ ( ∼ q)
is a tautology.
Solution.
p q p∧q ∼ (p ∧ q) ⇔ ∼ p∨ ∼ q ∼p ∼q
T T T F T F F F
T F F T T T F T
F T F T T T T F
F F F T T T T T
∼ (p ∧ q) ⇔ (∼ p) ∨ (∼ q)
Example.
Prove that the statement
(G ∨ H) ⇔ ∼G ∧ ∼H
is a contradiction.
Solution.
G H G ∨H ⇔ ∼G ∧ ∼H ∼G ∼H
T T T F F F F
T F T F F F T
F T T F F T F
F F F F T T T
(G ∨H) ⇔ ∼G ∧ ∼H
Problems.
Use truth tables to determine whether the
following statements are tautology, contradiction,
or contingent:
1 ((p ⇒ q) ∧ p) ⇒ q
2 (p ∧ q) ∨ p
3 (p ⇒ p) ⇒ p
4 (p ⇒ q) ∧ (p ∨ ∼ q)
5 (p ⇒ q) ⇔ ( ∼ p ∧ q)
6 (p ⇒ q) ∧ (p ∧ ∼ q)
Comparing Statements
Equivalent statements
Two statements are said to be logically
equivalent if they have the same truth value on
each line under their main operator.
Contradictory statements
Two statements are said to be contradictory if
they have opposite truth values on each line
under their main operator.
Consistent statements
Two or more statements are said to be
consistent if there is at least one line on which
both (or all) of them turn out to be true,
Inconsistent statements
Two or more statements are said to be
inconsistent if there is no line on which both (or
all) of them turn out to be true.
Problem
Show that the propositions p ⇒ q and
∼ q ⇒ ∼ p are logically equivalent.
Solution.
p ⇒ q ∼q ⇒ ∼p
T T T F T F
T F F T F F
F T T F T T
F T F T T T
Problem
Show that the propositions p ⇒ q and p ∧ ∼ q
are contradictory.
Solution.
p ⇒ q p ∧ ∼q
T T T T F F
T F F T T T
F T T F F F
F T F F F T
Problem
Show that the propositions p ∨ q and p ∧ q are
consistent.
Solution.
p ∨ q p ∧ q
T T T T T T
T T F T F F
F T T F F T
F F F F F F
Problem
Show that the propositions p ⇔ q and p ∧ ∼ q
are inconsistent.
Solution.
p ⇔ q p ∧ ∼q
T T T T F F
T F F T T T
F F T F F F
F T F F F T
Let
p : juvenile killers are as responsible for their
crimes as adults are,
q : execution is a justifiable punishment.
Then the given argument is
p ⇒ q
∼p
∴ ∼q
p q p ⇒ q ∼p ∼q
T T
T F
F T
F F
Thus, we obtain
p q p ⇒ q ∼p ∼q
T T T F F
T F F F T
F T T T F
F F T T T
p q p ⇒ q ∼p ∼q
T T T F F
T F F F T
F T T T F
F F T T T
p q p ⇒ q ∼p ∼q
T T T F F
T F F F T
F T T T F
F F T T T
p q p ⇒ q ∼q ∼p
T T T F F
T F F T F
F T T F T
F F T T T
Inspection of the table reveals that the only
possible situation in which the premises arc both
true is that represented by the fourth line. And
we see that in the fourth line the conclusion is
true. The argument is therefore valid.
(p ∨ q) ⇒ r p r
T T T T T T T
T T T F F T F
T T F T T T T
T T F F F T F
F T T T T F T
F T T F F F F
F F F T T F T
F F F T F F F
There are just two rows on which the premises
are both true, and the conclusion is true on both
rows. So the argument is valid.
Prof.Dr.P.M.Bajracharya Truth Table 34 / 66
Classification TT for Arguments Indirect TT
Suppose that
p ∧ q
F
We know that the falsity of p ∧ q indicates that p
or q is false.
Suppose that
p ∧ q
F
We know that the falsity of p ∧ q indicates that p
or q is false.Thus,
p ∧ q
T F F
F F T
F F F
3. Suppose that
p ∨ q
T
We know the truth of p ∨ q indicates that p or q
is true.
3. Suppose that
p ∨ q
T
We know the truth of p ∨ q indicates that p or q
is true.So,
p ∨ q
T T T
F T T
T T F
Example
Consider the argument:
r ⇒∼s
s∧ ∼ p
∼q ⇒ r
∴ p⇔∼q
T T T F
Prof.Dr.P.M.Bajracharya Truth Table 46 / 66
Classification TT for Arguments Indirect TT
T T T T F T F
T F T T T T F T F F
F T F T T T T F T F T F F F T F
Class Work
Testing Consistency
We test a series of statements for consistency using
indirect truth tables. For it
1 Write the statements on a line, separating each with a
single slash mark.
2 Assume that the statements are consistent.
3 Assign a T to the main operator of each statement
4 Compute the truth values of the components.
5 If this computation leads necessarily to a
contradiction, then the statements are inconsistent.
6 If no contradiction is reached, the statements are
consistent.
Prof.Dr.P.M.Bajracharya Truth Table 55 / 66
Classification TT for Arguments Indirect TT
Problem.
Determine the consistency of the set of
statements:
A ∧B
B ⇒ (C ∨ A)
C ⇒ ∼B
∼A
T / T / T / T
F T T F T TF
Prof.Dr.P.M.Bajracharya Truth Table 57 / 66
Classification TT for Arguments Indirect TT
F TT TT F T T TF
F TT TT T T F T T TF
F TT TT T T F TTF T TF
T / T / T // F
T T T TTT
F TT
F TF
2 H ∧(K∨J ), ( J ∧H )∨ (H ∧K )
3 Z ∧(C ⇔ P ), C ⇔ (Z ∧ ∼P )