Module 1-1
Module 1-1
Module 1
Mathematical Logic
Content
From the above examples we note that 1, 2, 3 are proposition, whereas 4 and 5 are not the
propositions.
Logical Connectives and Truth table:
New propositions are obtained by starting with given propositions with the aid of words or
phrases like ‘not’, ‘and’, ‘if … then, and ‘if and only if’. Such words or phrases are called
Logical connectives.
1. Negation:
A proposition is obtained by inserting the word ‘not’ at an appropriate place in the given
proposition is called the negation of the given proposition.
The negation of a Proposition p is denoted by ¬ p (read ‘not p’). For any Proposition p, if p
is true, then ¬ p is false, and if p is false, then ¬ p is true. i.e., If the truth value of a proposition
p is 1 then the truth value of ¬ p is 0 and If the truth value of a proposition p is 0 then the truth
value of ¬ p is 1.
Example:
p: 4 is an even number.
¬ p: 4 is not an even number.
Truth table for Negation
p ¬p
0 1
1 0
2. Conjunction:
A compound proposition obtained by combining two given propositions by inserting the
word ‘and’ in between them is called the conjunction of the given proposition.
The conjunction of two propositions p and q is denoted by p ˄ q (read ‘p and q’). The
conjunction p ˄ q is true only when p is true and q is true, in all other cases it is false. i.e., the
truth value of the conjunction p ˄ q is 1 only when the truth value of p is 1 and truth value of
q is 1, in all other cases the truth value of p ˄ q is 0.
Example:
p: √2 is an irrational number.
q: 9 is a prime number.
p q p˄q
0 0 0
0 1 0
1 0 0
1 1 1
3. Disjunction:
A compound proposition obtained by combining two given propositions by inserting the word
‘or’ in between them is called the disjunction of the given propositions.
The disjunction of two propositions p and q is denoted by p ˅ q (read ‘p or q’). The disjunction
p ˅ q is false only when p is false and q is false, in all other cases it is true. i.e., the truth value
of the disjunction p ˅ q is 0 only when the truth value of p is 0 and truth value of q is 0, in all
other cases the truth value of p ˅ q is 1.
Example:
p: All triangles are equilateral.
q: 2+5=7.
p ˅ q: All triangles are equilateral or 2+5=7.
Truth table for Disjunction
p q p˅q
0 0 0
0 1 1
1 0 1
1 1 1
4. Exclusive Disjunction:
We require that the compound proposition “p or q” to be true only when either p is true or q
is true but not both. The exclusive or is denoted by the ⊻.
The compound proposition p ⊻ q (read as either p or q but not both) is called as exclusive
disjunction of the propositions p and q. i.e., p ⊻ q = (p ˄ ¬ q) ⅴ (q ˄ ¬ p)
Example:
p:9 is a prime number
q: all triangles are isosceles.
p ⊻ q: Either 9 is prime number or all triangles are isosceles, but not both
Truth table for Exclusive Disjunction
p q p⊻q
0 0 0
0 1 1
1 0 1
1 1 0
5. Conditional:
A compound proposition obtained by combining two given propositions by using the words
‘if’ and ‘then’ at appropriate places is called a conditional.
The Conditional “If p, then q” is denoted by p → q and the Conditional “If q, then p” is
denoted by q → p. The Conditional p → q is false only when p is true and q is false, in all
other cases it is true. i.e., the truth value of the conditional p → q is 0 only when the truth
value of p is 1 and the truth value of q is 0, in all other cases the truth value of p → q is 1.
Example:
p: 3 is a prime number.
q: 9 is a multiple of 6
Truth table for Conditional
6.
p q p→q
0 0 1
0 1 1
1 0 0
1 1 1
Biconditional:
Let p and q be two sample propositions then the conjunction of the conditionals p → q and q
→ p is called the biconditional of p and q. It is denoted by p ↔ q and it is same as (p → q) ˄
(q → p) is read as “If p then q and if q then p”.
Truth table for Biconditional
0 0 1 1 1
0 1 1 0 0
1 0 0 1 0
1 1 1 1 1
Problems:
1. Construct the truth tables for the following propositions.
(i). p ˄ (¬ q) (ⅱ). (¬ p) ˅ q (ⅲ). p → (¬ q) (ⅳ). (¬ p) ⊻ (¬ q)
Solution:
The desired truth tables are obtained by considering all possible combinations of the
truth values of p and q. the combined form of required truth table is given below
p q ¬p ¬q p ˄ (¬ q) (¬ p) ˅ q p → (¬ q) (¬ p) ⊻ (¬ q)
0 0 1 1 0 1 1 0
0 1 1 0 0 1 1 1
1 0 0 1 1 0 1 1
1 1 0 0 0 1 0 0
2. Let p, q and r be propositions having truth values 0, 0 and 1 respectively. Find the truth
values if the following compound propositions:
(ⅰ). (p ˅ q) ˅ r (ⅱ). (p ˄ q) ˄ r (ⅲ). (p ˄ q) → r
(ⅳ). p → (q ˄ r) (ⅴ). p ˄ (q → r) (ⅵ). p → (q →¬ r)
Solution:
(i) Since both p and q are false then (p ˅ q) is also false. Since r true it follows that (p ˅ q) ˅ r
is true. Thus, the truth value of (p ˅ q) ˅ r is 1.
(ii) Since both p and q are false, (p ˄ q) is false. Since (p ˄ q) is false and r is true (p ˄ q) ˄ r is
false. Thus, the truth value of (p ˄ q) ˄ r is 0.
(iii) Since (p ˄ q) is false and r is true, (p ˄ q) → r is true. Thus, the truth value of (p ˄ q) → r
is 1.
(iv) Since q is false and r is true, (q ˄ r) is false. Also, p is false, therefore p → (q ˄ r) is true.
Thus, the truth value of p → (q ˄ r) is 1.
(v) Since r is true and q is false (q → r) is true. Also, p is false. Therefore, p ˄ (q → r) is false.
Thus, the truth value of p ˄ (q → r) is 0
(vi) Since r is true, ¬ r is false. Since q is false, q → (¬ r) is true. Also, p is false. Therefore,
p → (q →¬ r) is true. Thus, the truth value of p → (q→¬ r) is 1.
3. Indicate how many rows are needed in the truth table for the compound proposition
(p ˅ (¬ q)) ↔ ((¬ r) ˄ s) → t. Find the truth value of the proposition if p and r, are true
and q, s, t, are false.
Solution:
The given compound proposition contains five primitives p, q, r, s, t. Therefore, the number of
possible combinations of the truth values of these components which we have to consider is
25=32. Hence 32 rows are needed in the truth table for the given compound proposition.
Next, suppose that p and r, are true and q, s, t are false, then ¬ q is true and ¬ r is false. Since p
is true and ¬ q is true, (p ˅ (¬ q)) is true on the other hand, since ¬ r is false and s is false, ¬ r
˄ s is false. Also, t is false. Hence ((¬ r) ˄ s) →t is true.
Since (p ˅ (¬ q)) is true and ((¬ r) ˄ s) → t is true, it follows that the truth values of the given
propositions (p ˅ (¬ q)) ↔ ((¬ r ˄ s) → t is 1.
(vi) If a circle is not a conic then √5 is a real number and if √5 is a real number then a
circle is not a conic.
0 0 0 1 0 1 0 0
0 0 1 0 0 1 1 0
0 1 0 1 0 1 0 0
0 1 1 0 0 1 1 1
1 0 0 1 0 1 1 0
1 0 1 0 0 1 1 0
1 1 0 1 1 1 1 1
1 1 1 0 1 0 1 1
☻Tautology and Contradiction:
A compound proposition which is true for all possible truth values of its components is called
a tautology.
A compound proposition which is false for all possible truth values of its components is called
Contradiction or an absurdity.
A compound proposition that can be true or false is called a contingency. In other words, a
contingency is a compound proposition which is neither a tautology nor a contradiction.
Problems:
1. Show that for any proposition p and q, the compound proposition p → (p ˅ q) is a tautology
and the compound proposition p ˄ (¬ p ˄ q) is called contradiction.
Solution:
Let us first prepare the truth tables for p → (p ˅ q) and p ˄ (¬ p ˄ q). these truth tables are
shown below in the combined form.
p q p˅q p → (p ˅ q) ¬p (¬ p ˄ q) p ˄ (¬ p ˄ q)
0 0 0 1 1 0 0
0 1 1 1 1 1 0
1 0 1 1 0 0 0
1 1 1 1 0 0 0
From the above table we note that, for all possible values of p and q the compound proposition
p → (p ˅ q) is true and the compound proposition p ˄ (¬ p ˄ q) is false.
Therefore p ˄ (¬ p ˄ q) is contradiction and p → (p ˅ q) is tautology.
Solution:
The following truth table gives the required result.
p q r p→q q→r (p → q) ˄ (q → r) p→r (p → q) ˄ (q → r) → (p → r)
0 0 0 1 1 1 1 1
0 0 1 1 1 1 1 1
0 1 0 1 0 0 1 1
0 1 1 1 1 1 1 1
1 0 0 0 1 0 0 1
1 0 1 0 1 0 1 1
1 1 0 1 0 0 0 1
1 1 1 1 1 1 1 1
0 0 0 1 1 1 0 1
0 0 1 1 1 1 0 1
0 1 0 1 0 0 1 1
0 1 1 1 1 1 1 1
1 0 0 0 1 0 1 1
1 0 1 1 1 1 1 1
1 1 0 0 0 0 1 1
1 1 1 1 1 1 1 1
0 0 0 1 1 1 0 1 1
0 0 1 1 1 1 1 1 1
0 1 0 1 1 1 1 1 1
0 1 1 1 1 1 1 1 1
1 0 0 0 0 0 0 0 1
1 0 1 0 1 1 1 1 1
1 1 0 1 0 1 1 1 1
1 1 1 1 1 1 1 1 1
Solution:
The following truth table gives the required result.
0 0 0 1 1 1 1 1
0 0 1 1 1 1 1 1
0 1 0 1 0 0 1 1
0 1 1 1 1 1 1 1
1 0 0 0 1 0 0 1
1 0 1 0 1 0 1 1
1 1 0 1 0 0 0 1
1 1 1 1 1 1 1 1
0 0 0 1 1 1 0 0 1
0 0 1 1 1 1 0 0 1
0 1 0 1 0 0 1 0 1
0 1 1 1 1 1 1 1 1
1 0 0 0 1 0 1 0 1
1 0 1 1 1 1 1 1 1
1 1 0 0 0 0 1 0 1
1 1 1 1 1 1 1 1 1
p q r ¬r p˅q (p ˅ q) → r ¬ (p ˅ q) ¬ r → ¬ (p ˅ q) (p ˅ q) → r ↔ (¬ r →
¬ (p ˅ q))
0 0 0 1 0 1 1 1 1
0 0 1 0 0 1 1 1 1
0 1 0 1 1 0 0 0 1
0 1 1 0 1 1 0 1 1
1 0 0 1 1 0 0 0 1
1 0 1 0 1 1 0 1 1
1 1 0 1 1 0 0 0 1
1 1 1 0 1 1 0 1 1
0 0 0 1 1 1 1 1 1
0 0 1 1 1 1 1 1 1
0 1 0 1 1 0 1 1 1
0 1 1 1 1 1 1 1 1
1 0 0 0 0 1 1 1 1
1 0 1 0 1 1 1 1 1
1 1 0 1 0 0 0 0 1
1 1 1 1 1 1 1 1 1
☻Logic equivalence:
Two statement s1, s2 are said to be logically equivalent, and we write s1↔s2, when the statement
s1 is true (respectively false) if and only if the statement s2 is true (respectively false). Or the
biconditional s1↔s2 is a tautology
Problems:
p q ¬p ¬p˅q p→q
0 0 1 1 1
0 1 1 1 1
1 0 0 0 0
1 1 0 1 1
From the column 4 and 5 of the above truth table, we find that ¬ p ˅ q and p → q has the same
truth values of p and q. Therefore (p → q)⇔( ¬ p) ˅ q.
p q ¬p ¬q p→¬q q→¬p
0 0 1 1 1 1
0 1 1 0 1 1
1 0 0 1 1 1
1 1 0 0 0 0
From the column 5 and 6 of the above truth table, we find that p → ¬ q and q → ¬ p has the
same truth values of p and q. Therefore (p →¬ q)⇔ (q → ¬ p).
3. For any two propositions p, q Prove that (p ⊻ q)⇔(p ˅ q) ˄ ¬ (p ˄ q).
Solution: The following truth table gives the required result.
p q (p ˅ q) (p ⊻ q) (p ˄ q) ¬ (p ˄ q) (p ˅ q) ˄ ¬ (p ˄ q)
0 0 0 0 0 1 0
0 1 1 1 0 1 1
1 0 1 1 0 1 1
1 1 1 0 1 0 0
From the column 4 and 7 of the above truth table, we find that (p ⊻ q) and (p ˅ q) ˄ ¬ (p ˄ q)
has the same truth values of p and q. Therefore (p ⊻ q)⇔(p ˅ q) ʌ¬ (p ˄ q).
4. For any propositions p, q, r. Prove that [(p → (q → r)]⇔ [(p ˄¬ r) → ¬ q)]
Solution: The following truth table gives the required result.
p q r ¬q ¬r q→r p ˄¬ r p → (q → r) (p ˄¬ r) → ¬ q)
0 0 0 1 1 1 0 1 1
0 0 1 1 0 1 0 1 1
0 1 0 0 1 0 0 1 1
0 1 1 0 0 1 0 1 1
1 0 0 1 1 1 1 1 1
1 0 1 1 0 1 0 1 1
1 1 0 0 1 0 1 0 0
1 1 1 0 0 1 0 1 1
From the column 8 and 9 of the above truth table, we find that [p → (q → r)] and [(p ˄¬ r) →
¬ q)] has the same truth values of p and q. Therefore [(p → (q → r)]⇔ [(p ˄¬ r) → ¬ q)].
5. Show that the compound propositions p ˄ ((¬ q) ˅ r) and p ˅ (q ˄ (¬ r)) are not logically
equivalent.
Solution: The following truth table gives the required result
p q r ¬q ¬r ¬q˅r q˄¬r p ˄ ((¬ q) ˅ r) p ˅ (q ˄ (¬ r))
0 0 0 1 1 1 0 0 0
0 0 1 1 0 1 0 0 0
0 1 0 0 1 0 1 0 1
0 1 1 0 0 1 0 0 0
1 0 0 1 1 1 0 1 1
1 0 1 1 0 1 0 1 1
1 1 0 0 1 0 1 0 1
1 1 1 0 0 1 0 1 1
From the last two rows we note that p ˄ ((¬ q) ˅ r) and p ˅ (q ˄ (¬ r)) do not have the same
values in all possible situations. Therefore, they are not logically equivalent.
The Laws of Logic:
For any primitive statements p, q, r any tautology To and any contradiction Fo
0 0 0 0 0 0 0 0
0 0 1 0 0 0 1 0
0 1 0 0 0 1 0 0
0 1 1 1 1 1 1 1
1 0 0 0 1 1 1 1
1 0 1 0 1 1 1 1
1 1 0 0 1 1 1 1
1 1 1 0 1 1 1 1
From columns 5 and 8 of the above table, we find that {p ˅ (q ˄ r)} and {(p ˅ q) ˄ (p ˅ r)}
has same truth values in all possible situations. Therefore, p ˅ (q ˄ r)⇔(p ˅ q) ˄ (p ˅ r).
Similarly, we can prove p ˄ (q ˅ r)⇔(p ˄ q) ˅ (p ˄ r).
0 0 1 1 0 1 1
0 1 1 0 1 0 0
1 0 0 1 1 0 0
1 1 0 0 1 0 0
From columns 5 and 8 of the above table, we find that ¬ (p ˅ q) and ¬ p ˅ ¬ q has same truth
values in all possible situations. Therefore, ¬ (p ˅ q) ⇔ ¬ p ˄ ¬ q.
Similarly, we can prove ¬ (p ˄ q) ⇔ ¬ p ˅ ¬ q
Law for the negation of a conditional:
Given a conditional p → q, its negation is obtained by using the following law.
¬ (p → q)⇔[p ˄ (¬ q)]
Proof:
The following table gives the truth values of ¬ (p → q) and p ˄ (¬ q) for all possible truth
values of p and q.
p q p→q ¬ (p → q) ¬q p ˄ (¬ q)
0 0 1 0 1 0
0 1 1 0 0 0
1 0 0 1 1 1
1 1 1 0 0 0
We note that ¬ (p → q) and p ˄ (¬ q) have same truth values in all possible situations. Hence,
¬ (p → q)⇔[p ˄ (¬ q)].
Problems:
1. Simplify the following compounds propositions using the laws of logic.
(ⅰ) p ˅ q ˄ [ ¬ {(¬ p) ˄ q}] (ⅱ) p ˅ q ˄ [ ¬ {(¬ p) ˅ q}]
(ⅲ) ¬ [ ¬ {(p ˅ q) ˄ r} ˅ (¬ q)]
Solution:
(i) p ˅ q ˄ [ ¬ {(¬ p) ˄ q}]
= p ˅ q ˄ {(¬ ¬ p) ˅ (¬ q)} By De Morgan’s law
= p ˅ q ˄ {p ˅ (¬ q)} By Law of double negation
= p ˅ {q ˄ (¬ q)} By Distributive law
= p ˅ Fo By Inverse law
=p By Identity law
(ⅰ) [p ˅ q ˅ (¬ p ˄ ¬ q ˄ r)]⇔ p ˅ q ˅ r
Because (u → v) ⇔ (¬ u ⅴ v)
⇔ (¬ p ⅴ ¬ q) ⅴ r Associative law
⇔ (p ˄ q) ⅴ r De-Morgan’s law
⇔ (p ˄ q) →r Because (u → v) ⇔ (¬ u ⅴ v)
Duality:
Let s be a statement. If s contains no logical connectives other than ˄ and ⅴ, the dual of s
denoted by sd, is the statement obtained from s by replacing each occurrence of ˄ and ⅴ by ⅴ
and ˄ respectively, and each occurrence of To and Fo by Fo and To, respectively.
Example: Given the primitive statements p, q, r and the compound statements
s: (p ˄ (¬ q)) ⅴ (r ˄ To)
Principle of Duality:
Let s and t be two statements that contains no logical connections than ˄ and ⅴ. If s⇔t, then
sd⇔td.
Problems:
1. Write duals of the following propositions.
(i). p → q (ii). (p → q) → r (iii). p → (q → r)
⇔ [ (p ˄ ¬ q) ⅴ r]d
⇔ (p ⅴ ¬ q) ˄ r
⇔ ¬ p ˄ (¬ q ˄ r)
2. Write duals of the following propositions.
(i). q → p (ii). (p ⅴ q) ˄ r (iii). (p ˄ q) ⅴT0
(iv). p → (q ˄ r) (v). p ↔ q (vi). p ⊻ q
⇔ (¬ p ˄ q) ⅴ (¬ q ˄ p)
The compound proposition ¬ (p ⅴ q) is read as “Not p or q” and also denoted by (p ↓ q). The
symbol ↓ is called the NOR connective.
Truth table
p q p↑q p↓q
0 0 1 1
0 1 1 0
1 0 1 0
1 1 0 0
Where p ↑ q = ¬ (p ˄ q) ⇔ ¬ p ⅴ ¬ q and p ↓ q = ¬ (p ⅴ q) ⇔¬ p ˄ ¬ q
Problems:
1. For any propositions p, q Prove the following
(i). ¬ (p ↓ q) ⇔ ¬ p ↑ ¬ q (ii). ¬ (p ↑ q) ⇔ ¬ p ↓ ¬ q
Solution: Using definition, we find that
i. ¬ (p ↓ q) ⇔ ¬ [ ¬ (pⅴq)]
⇔ ¬ [ ¬ p ˄ ¬ q]
⇔¬ p ↑ ¬ q
ii. ¬ (p ↑ q) ⇔ ¬ [ ¬ (p ˄ q)]
⇔ ¬ [ ¬ p ⅴ ¬ q]
⇔ ¬p↓¬q
2. For any propositions p, q, r Prove the following
(i). p ↑ (q ↑ r) ⇔ ¬ pⅴ (q ˄ r) (ii). (p ↑ q) ↑ r ⇔ (p ˄ q) ⅴ¬ r
(iii). p ↓ (q ↓ r) ⇔ ¬ p ˄ (q ⅴr) (iv). (p ↓ q) ↓ r ⇔ (p ⅴ q) ˄ ¬ r
Solution: Using definition, we find that
(i). p ↑ (q ↑ r) ⇔ ¬ [p ˄ (q ↑ r))]
⇔ ¬ [p ˄ ¬ (q ˄ r)]
⇔ ¬ p ⅴ ¬ [ ¬ (q ˄ r)]
⇔ ¬ pⅴ (q ˄ r)
(ii). (p ↑ q) ↑ r ⇔ ¬ [(p ↑ q) ˄ r]
⇔ ¬ [¬ (p ˄ q) ˄ r]
⇔ ¬ [¬ (p ˄ q)] ⅴ ¬ r
⇔ (p ˄ q) ⅴ¬ r
(iii). p ↓ (q ↓ r) ⇔ ¬ [p ⅴ (q ↓ r))]
⇔ ¬ [p ⅴ ¬ (q ⅴ r)]
⇔ ¬ p ˄ ¬ [ ¬ (q ⅴ r)]
⇔ ¬ p ˄ (q ⅴr)
(iv). (p ↓ q) ↓ r ⇔ ¬ [(p ↓ q) ⅴ r]
⇔ ¬ [¬ (p ⅴ q) ⅴ r]
⇔ ¬ [¬ (p ⅴ q)] ˄ ¬ r
⇔ (p ⅴ q) ˄ ¬ r
Converse, Inverse and Contrapositive:
Consider a conditional p → q then:
1. q → p is called the converse of p → q.
2. ¬ p →¬ q is called the inverse of p → q.
3. ¬ q →¬ p is called the contrapositive of p → q.
Truth table for converse, inverse and contrapositive
p q ¬p ¬q p→q q→p ¬ p→¬ q ¬ q →¬ p
0 0 1 1 1 1 1 1
0 1 1 0 1 0 0 1
1 0 0 1 0 1 1 0
1 1 0 0 1 1 1 1
Problems:
1. State the converse inverse and contrapositive of
i) If the triangle is not isosceles, then it is not equilateral
ii) If the real number x2 is greater than zero, then x is not equal to zero.
iii) If a quadrilateral is a parallelogram, then its diagonals bisect each other.
Solution:
(i) p: Triangle is not isosceles and q: Triangle is not equilateral.
Implication: p → q. if triangle is not isosceles then it is not equilateral.
Converse: q → p. if a triangle is not equilateral then it is not isosceles.
Inverse: ¬ p →¬ q. if a triangle is isosceles then it is equilateral.
Contrapositive: ¬ q→¬ p: if a triangle is equilateral then it is isosceles.
(ii) p: A real number x2 is greater than zero and q: x is not equal to zero.
Implication: p → q. if a real number x2 is greater than zero then, x is not equal to zero.
Converse: q → p. if a real number x is not equal to zero then, x2 is greater zero.
Inverse: ¬ p→¬ q. if a real number x2 is not greater than zero then, x is equal to zero.
Contrapositive: If a real number x is equal to zero then, x2 is not greater than zero
(ⅰii) p: If Quadrilateral is a parallelogram and q: its Diagonals Bisects each other.
Implication: p → q. If Quadrilateral is a parallelogram, then its diagonals bisects each
other.
Converse: q → p. If the diagonals of the Quadrilateral bisect each other, then it is a
parallelogram.
Inverse: ¬ p →¬ q. If Quadrilateral is not a parallelogram, then its diagonals do not bisect
each other.
Contrapositive: ¬ q→¬ p: If the diagonals of the Quadrilateral do not bisect each other,
then it is a not a parallelogram.
2. Write down the following statements in the ‘Necessary and Sufficient Condition’
Language.
i) If the triangle is not isosceles, then it is not equilateral
ii) If the real number x2 is greater than zero, then x is not equal to zero.
iii) If a quadrilateral is a parallelogram, then its diagonals bisect each other.
Solution:
Necessary Condition Language:
(i). For a triangle to be non-isosceles it is necessary that is not equilateral.
(ii). A necessary condition for a real number x2 to be greater than zero is that x is not equal to
zero.
(iii). A necessary condition for a quadrilateral to be a parallelogram is that its diagonals bisect
each other.
Necessary Condition Language:
(i). A sufficient condition for a triangle to be not equilateral is that it is not isosceles.
(ii). For a real number x, the condition x2 to be greater than zero is sufficient for x to be not
equal to zero.
(iii). A sufficient condition for the diagonals of a quadrilateral to bisect each other is that the
quadrilateral is a parallelogram.
☻Rules of inference:
Let us consider the implication (p1 ˄ p2 ˄ …. ˄ pn) → q
Here n is a positive integer, the statements p1, p2, …. pn are called the premises of the argument
and q is called the conclusion of the argument.
We write the above argument in the following tabular form:
𝑝1
𝑝2
𝑝3
⋮
⋮
𝑝𝑛
∴q
The preceding argument is said to be valid if whenever each of the premises p1, p2, …. pn is
true, then the conclusion q is likewise true.
i.e., (p1 ˄ p2 ˄ …. ˄ pn) → q is valid when (p1 ˄ p2 ˄ …. ˄ pn) ⇒ q
It is to be emphasized that in an argument, the premises are always taken to be true whereas
the conclusion may be true or false. The conclusion is true only in the case of valid argument.
There exist rules of logic which can be employed for establishing the validity of arguments.
These rules are called Rules of Inference.
(because (p →¬ q) ⇔ (¬ ¬ q → ¬ p))
(because (¬ r → p) ⇔ (¬ p → r))
∴ r ¬q→¬r ∴ (p ⅴ q) → r
∴ ¬r
Solution:
(i). Since p ˄ q is true, both p and q are true. Since p is true and p → (q → r) is true, q → r
Should be true. Since q is true and q → r is true, r should be true. Hence the given argument is
valid.
(ii). The premises p → ¬ q and ¬ q → ¬ r together yields the premise p → ¬ r. since p is true,
this premise p → ¬ r establishes that ¬ r is true. Hence the given argument is valid.
(iii) We note that
(p → r) ˄ (q → r) ⇔ (¬ p ⅴ r) ˄ (¬ q ⅴ r)
⇔ (r ⅴ¬ p) ˄ (r ⅴ¬ q) By Commutative law
⇔ r ⅴ (¬ p ˄ ¬ q) By Distributive law
⇔ (p ⅴ q) → r
This Logical equivalence shows that the given argument is valid.
9. Test whether the following arguments are valid:
pⅴr ¬qⅴ¬s
∴ qⅴs ∴ ¬ (p ˄ r)
Solution:
(i) We note that
(p → q) ˄ (r → s) ˄ (p ⅴ r) ⇔ (p → q) ˄ (r → s) ˄ (¬ p → r)
⇔ (p → q) ˄ (¬ p → r) ˄ (r → s) By Commutative law
⇔ (p → q) ˄ (¬ p → s) Using Rule of Syllogism
⇔ (¬ q → ¬ p) ˄ (¬ p → s) Using Contrapositive
⇔ (¬ q → s) Using Rule of Syllogism
⇔qⅴs
This Logical equivalence shows that the given argument is valid.
(ii) We note that
(p → q) ˄ (r → s) ˄ (¬ q ⅴ ¬ s) ⇔ (p → q) ˄ (r → s) ˄ (q → ¬ s)
⇔ (p → q) ˄ (q → ¬ s) ˄ (r → s) By Commutative law
⇔ (p → ¬ s) ˄ (r → s) Using Rule of Syllogism
⇔ (p → ¬ s) ˄ (¬ s → ¬ r) Using Contrapositive
⇔ (p → ¬ r) Using Rule of Syllogism
⇔ ¬ p ⅴ¬ r)
⇔ ¬ (p ˄ r)
This Logical equivalence shows that the given argument is valid.
10. Show that the following argument is not valid:
p
pⅴq
q → (r → s)
t→r
∴¬s→¬t
Solution:
Here p is true (premise) and (p ⅴ q) is true (premise). Therefore, q may be true or false.
Suppose q is false. Then, since q → (r → s) is true (premise), r → s must be false. This
means that r must be true, and s must be false. Since r is true and t → r is true (premise), t may
be true or false. Suppose t is true, then ¬ t is false. Since s must be false, ¬ s must be true.
Consequently, ¬ s → ¬ t is false.
Thus, when q is false and t is true, the given conclusion does not follow from the given
premise. As such, the given argument is not valid argument.
☻Open statement:
A declaration statement is an open statement
i. If it contains one or more variables.
ii. If it is not statement.
iii. But it becomes statement when the variables in it are replaced by certain allowable
choices.
Example: “The number x+2 is an even integer” is denoted by P(x) then ¬ P(x) may be read as
“The number x+2 is not an even integer”.
Quantifiers:
The words “all”, “every”, “some”, “there exist” are associated with the idea of a quantity such
words are called quantifiers.
1. Universal quantifiers:
The symbol Ɐ has been used to denote the phrases “for all” and “for every” in logic “for
each” and “for any” are also taken up to equivalent to these. These equivalent phrases are
called universal quantifiers.
2. Existential quantifiers:
The symbol ∃ has been used to denote the phrases “there exist”, “for some” and “for at
least one” each of these equivalent phrases is called the existential quantifiers.
≡ ∃ x, [ ¬ p(x) ⅴ q(x)]
≡ ∃ x, [p(x) ˄ ¬ q(x)}]
We note that
Ɐ x, [p(x) → q(x)] ˄ {Ɐ x, [q(x) → r(x)]} ˄ ¬ r(c)
⇒ {Ɐ x, [p(x) → r(x)] ˄ ¬ r(c)}, By Rule of Syllogism
⇒ {[p(c) → r(c)] ˄ ¬ r(c)}, By Rule of Universal Specification
⇒ ¬ p(c) By Modus Tollens Rule
This proves that the given argument is valid.
8. Prove that the following argument is valid.
Ɐ x, [p(x) ⅴ q(x)]
∃ x, ¬ p(x)
Ɐ x, [¬ q(x) ⅴ r(x)]
Ɐ x, [s(x) → ¬ r(x)]
∴ ∃ x, ¬ s(x)
Solution:
We note that
Direct proof: