0% found this document useful (0 votes)
1 views44 pages

Module 1-1

The document outlines the syllabus and content for a course on Discrete Mathematical Structures, focusing on Mathematical Logic. It covers topics such as basic connectives, truth tables, tautology, contradiction, logical equivalence, and rules of inference. Additionally, it includes examples, problems, and truth tables to illustrate the concepts discussed.

Uploaded by

chirushiva686
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1 views44 pages

Module 1-1

The document outlines the syllabus and content for a course on Discrete Mathematical Structures, focusing on Mathematical Logic. It covers topics such as basic connectives, truth tables, tautology, contradiction, logical equivalence, and rules of inference. Additionally, it includes examples, problems, and truth tables to illustrate the concepts discussed.

Uploaded by

chirushiva686
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 44

BCS405A

Discrete Mathematical Structures


(For the 4th Semester Computer Science and Engineering Stream)

Module 1
Mathematical Logic
Content

S.No Topic Page No


1 Syllabus 1-1
2 Basic Connectives and Truth table 1-4
3 Problems on Basic Connectives and Truth tables 5-7
4 Tautology and contradiction 8-12
5 Logic Equivalence-The Laws of Logic 13-15
6 Problems on The Laws of Logic 16-21
7 Logical implication 22-24
8 Rules of Inference 25-31
9 The Quantifiers 32-33
10 Problems on Quantifiers 33-38
11 Definition and Proofs of Theorems 39-42
Module-1
Mathematical Logic
☻Syllabus:
Fundamentals of Logic: Basic Connectives and Truth Tables, Logic Equivalence – The Laws
of Logic, Logical Implication – Rules of Inference. The Use of Quantifiers, Quantifiers,
Definitions and the Proofs of Theorems.
☻Basic Connectives and Truth table:
Proposition:
A proposition is a declarative sentence that is either true or false, but not both.
Example:
1. 2 is a prime number. (true)
2. All sides are equal in scalene triangle. (false)
3. 2+3=4. (false)
4. What is the time now?
5. Read this carefully.

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: √2 is an irrational number and 9 is a prime number.


Truth table for conjunction

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

p q p→q q→p p↔q

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.

4. Let p: A circle is a conic, q: √5 is a real number, r: Exponential series is convergent.


Express the following compound Proposition in words:
(i). p ˄ (¬ q) (ii). (¬ p) ˄ q (iii) q → (¬ p)
(iv). p ⊻ (¬ q) (v). p → (q ⊻ r) (vi). ¬ p ↔ q
Solution:

(i) A circle is a conic and √5 is not a real number.


(ii) A circle is not a conic and √5 is a real number.
(iii) If √5 is a real number, then a circle is not a conic.
(iv) Either a circle is a conic or √5 is not a real number (but not both).
(v) If a circle is a conic then either √5 is a real number or the exponential series is
convergent (but not both).

(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.

5. Construct the truth table for the following compound propositions:


(ⅰ). (p ˄ q) → ¬ r (ⅱ). q ˄ ((¬ r) → p)
Solution:
The required truth table are shown below in a combined form
p q r ¬r p˄q (p ˄ q) → ¬ r (¬ r) → p q ˄ ((¬ r) → p)

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.

2. Prove that, for any proposition p, q, r the compound proposition


(p → q) ˄ (q → r) → (p → r) is a 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

3. Prove that for any proposition p, q, r the compound proposition


(p ˅ q) ˅ (p → r) ˄ (q → r) is tautology.
Solution:
The following truth table gives the required result.

p q r p→r q→r (p → r) ˄ (q → r) p˅q (p ˅ q) ˅ (p → r) ˄ (q → r)

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

4. Prove that for any proposition p, q, r the compound proposition


(p → q) ˅ (p → r) ↔ (p → (q ˅ r)) is tautology.
Solution:
The following truth table gives the required result.

p q r p→q p→r (p → q) ˅ (p → r) q˅r p → (q ˅ r) (p →q) ˅ (p → r)


↔ (p → (q ˅ r))

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

5. Prove that for any proposition p, q, r the compound proposition


[(p → q) ˄ (p → r)] → (p → r)) is tautology.

Solution:
The following truth table gives the required result.

p q r p→q q→r (p → q) ˄ (p → r) p→r (p →q) ˄ (p → 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

6. Prove that for any proposition p, q, r the compound proposition


[(p ˅ q) ˄ {(p → r) ˄ (q → r)}] → r is tautology.
Solution:
The following truth table proves the gives result.

p q r p→r q→r (p → r) ˄ p˅q (p ˅ q) ˄ {(p → r) [(p ˅ q) ˄ {(p → r)


(q → r) ˄ (q → r)} ˄ (q → r)}] → r

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

7. Verify the Compound Proposition (p ˅ q) → r ↔ (¬ r → ¬ (p ˅ q)) is tautology or not.

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

Hence the compound Proposition (p ˅ q) → r ↔ (¬ r → ¬ (p ˅ q)) is tautology


8. Prove that for any proposition p, q, r the compound proposition
{p → (q → r)} → {(p → q) → (p → r)} is tautology.
Solution:
The following truth table gives the required result.

p q r p→q p→r q → r p → (q → r) {(p → q) → {p → (q → r)} → {(p →


(p → r) q) → (p → r)}

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:

1. For any two propositions p, q Prove that (p → q)⇔( ¬ p) ˅ q


Solution: The following truth table gives the required result.

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.

2. For any two propositions p, q Prove that (p →¬ q)⇔ (q → ¬ p)


Solution: The following truth table gives the required result.

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

Sl. No Name of laws Laws of logic


1 Laws of double negation ¬ ¬ p⇔p
¬ (p ˅ q)⇔(¬ p ˄ ¬ q)
2 De Morgan’s laws
¬ (p ˄ q)⇔(¬ p ˅ ¬ q)
(p ˅ q)⇔(q ˅ p)
3 Commutative laws
(p ˄ q)⇔(q ˄ p)
p ˅ (q ˅ r) ⇔ (p ˅ q) ˅ r
4 Associative laws
p ˄ (q ˄ r) ⇔ (p ˄ q) ˄ r
p ˅ (q ˄ r)⇔(p ˅ q) ˄ (p ˅ r)
5 Distributive laws
p ˄ (q ˅ r)⇔(p ˄ q) ˅ (p ˄ r)
p ˅ p⇔p
6 Idempotent laws
p ˄ p⇔p
p ˅ Fo⇔p
7 Identity laws
p ˄ To⇔p
p ˅ ¬ p⇔To
8 Inverse laws
p ˄ ¬ p⇔Fo
p ˅ To⇔To
9 Domination laws
p ˄ Fo⇔Fo
p ˅ (p ˄ q)⇔p
10 Absorption laws
p ˄ (p ˅ q)⇔p
Problems:

1. Prove distributive law p ˅ (q ˄ r)⇔(p ˅ q) ˄ (p ˅ r)


Solution:
p q r q˄r p ˅ (q ˄ r) p˅q p˅r (p ˅ q) ˄ (p ˅ r)

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).

2. Prove De Morgan’s law ¬ (p ˅ q) ⇔ ¬ p ˄ ¬ q


Solution:
p q ¬p ¬q p˅q ¬ (p ˅ q) ¬p˄¬q

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

(ii) p ˅ q ˄ [ ¬ {(¬ p) ˅ q}]


= (p ˅ q) ˄ {p ˄ (¬ q)}
= {(p ˅ q) ˄ p)} ˄ (¬ q) Using Associative law
= {p ˄ (p ˅ q)} ˄ (¬ q) Using Commutative law
= p ˄ (¬ q) Using Absorption law
(iii) ¬ [ ¬ {(p ˅ q) ˄ r} ˅ (¬ q)]
= ¬ [ ¬ {((p ˅ q) ˄ r) ˄ q}] Using De Morgan’s law
= ((p ˅ q) ˄ r) ˄ q Law of Double negation
= (p ˅ q) ˄ (q ˄ r) Using Associative and Commutative law
= {(p ˅ q) ˄ q} ˄ r Using Associative law
=q˄r Using Associative law
2. Prove the following logically without using truth table.
(i). [p ˅ q ˅ (¬ p ˄ ¬ q ˄ r)]⇔ p ˅ q ˅ r (ii). [(¬ p ˅ ¬ q) → (p ˄ q ˄ r)]⇔ p ˄ q
(iii). p→ (q → r) ⇔ (p ˄ q) →r
Solution:

(ⅰ) [p ˅ q ˅ (¬ p ˄ ¬ q ˄ r)]⇔ p ˅ q ˅ r

We have, ¬ p ˄ ¬ q ˄ r ⇔ ¬ (p ˅ q) ˄ r By De Morgan’s law

Therefore, [pⅴq ⅴ (¬ p ˄ ¬ q ˄ r)] ⇔ (pⅴq) ⅴ (¬ (pⅴq) ˄ r)

⇔ [(pⅴq) ⅴ¬ (pⅴq)] ˄ (p ⅴ q ⅴ r) By Distributive law

⇔ To ˄ (p ⅴ q ⅴ r) By Inverse and Associative law

⇔(p ⅴ q ⅴ r) By Commutative law

(ii) [(¬ pⅴ¬ q) → (p ˄ q ˄ r)]⇔ p ˄ q

We have, [(¬ pⅴ¬ q) → (p ˄ q ˄ r)]⇔ ¬ (¬ pⅴ¬ q) ⅴ (p ˄ q ˄ r)

Because (u → v) ⇔ (¬ u ⅴ v)

⇔ (p ˄ q) ⅴ [(p ˄ q) ˄ r] By De Morgan’s law and Associative law

⇔p˄q By Absorption law

(ⅲ) we have, 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)

sd: (p ⅴ (¬ q)) ˄ (r ⅴ Fo)

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)

Solution: we recall that (u → v) ⇔ (¬ u ⅴ v)


Therefore, by the principle of duality we find that

(ⅰ) (p → q)d ⇔ (¬ p ⅴ q)d ⇔ ¬ p ˄ q

(ⅱ) [(p → q) → r]d ⇔ [ ¬ (¬ p ⅴ q) ⅴ r]d

⇔ [ (p ˄ ¬ q) ⅴ r]d

⇔ (p ⅴ ¬ q) ˄ r

(iii) [p→ (q → r)]d ⇔ [ ¬ p ⅴ (q →r)]d


⇔ [ ¬ p ⅴ (¬ q ⅴ r)]d

⇔ ¬ 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

Solution: we recall that (u → v) ⇔ (¬ u ⅴ v)


Therefore, by the principle of duality we find that

(ⅰ) (q → p)d ⇔ (¬ q ⅴ p)d ⇔ ¬ q ˄ p

(ⅱ) [(p ⅴ q) ˄ r]d ⇔ (p ˄ q) ⅴr

(iⅱ) [(p ˄ q) ⅴT0]d ⇔ (p ⅴ q) ˄ F0


(iv) [p → (q ˄ r)]d ⇔ [¬ p ⅴ (q ˄ r)]d ⇔ ¬ p ˄ (q ⅴ r)

(v) [p ↔ q]d ⇔ [(p → q) ˄ (q → p)]d ⇔ [(¬ pⅴq) ˄ (¬ qⅴp)]d

⇔ (¬ p ˄ q) ⅴ (¬ q ˄ p)

(vi) [p ⊻ q]d ⇔ [(p ˄ ¬ q) ⅴ (q ˄ ¬ p)]d ⇔ [( pⅴ¬ q) ˄ (qⅴ¬ p)]

NAND and NOR:


The compound proposition ¬ (p ˄ q) is read as “Not p and q” and also denoted by (p ↑ q). The
symbol ↑ is called NAND connective.

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

Note: 1. A conditional and its contrapositive are logically equivalent i.e., p → q ⇔ ¬ q →¬ p


2. A converse and the inverse of a conditional are logically equivalent
q → p ⇔ ¬ p → ¬q
Logical implication:
Logical implication is a type of relationship between two statements or sentences. The relation
translates verbally into "logically implies" or "if/then" and is symbolized by a double-lined
arrow pointing toward the right (⇒). If p and q represent statements, then p ⇒ q means "p
implies q" or "If p, then q." The word "implies" is used in the strongest possible sense.
Example:
Suppose the sentences p and q are assigned as follows:
p = The sky is overcast.
q = The sun is not visible.
In this instance, p ⇒ q is a true statement (assuming we are at the surface of the earth, below
the cloud layer.) However, the statement p ⇒ q is not necessarily true; it might be a clear night.
Logical implication does not work both ways. However, the sense of logical implication is
reversed if both statements are negated. i.e., ( p ⇒ q) ⇒ (¬ q ⇒ ¬ p)
Using the above sentences as examples, we can say that if the sun is visible, then the sky is not
overcast. This is always true. In fact, the two statements p ⇒ q and ¬ q ⇒ ¬ p are logically
equivalent.
Necessary and Sufficient Conditions:
Consider two propositions p and q whose truth values are interrelated. Suppose that p ⇒ q.
Then in order that q may be true it is sufficient that p is true. Also, if p is true then it is necessary
that q is true. In view of this interpretation, all of the following statements are taken to carry
the same meaning:
(i). p ⇒ q (ii). p is sufficient for q (iii). q is necessary for p

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.

Name of the rule and rule of inference

Sl.no Rules of inference Name of rule


p
p→q Rule of Detachment
1
(modus pones)
∴q
p→q
2 q→r Law of Syllogism
∴p→r
p→q
3 ¬q Modus Tollens
∴¬ p
p
4 q Rule of Conjunction
∴p˄q
pⅴq
5 ¬𝑝 Rule of Disjunctive Syllogism
∴𝑞
¬ p → Fo
6 Rule of Contradiction
∴p
p˄q
7 Rule of Conjunctive Simplification
∴p
p
8 Rule of Disjunctive Amplification
∴ pⅴq
Problems:
1. Test whether the following is valid argument.
If Sachin hits a century, then he gets a free car.
Sachin hits a century.
∴ Sachin gets a free car.
Solution: Let p: Sachin hits a century.
q: Sachin gets a free car.
The given statement reads
p→q
𝑝
∴𝑞
In view of Modus Pones Rule, this is a valid argument.
2. Test the validity of the following arguments.
If Ravi goes out with friends, he will not study.
If Ravi does not study, his father will become angry.
His father is not angry.
∴ Ravi has not gone out with friends.
Solution: Let p: Ravi goes out with friends.
q: Ravi does not study.
r: His father gets angry.
Then the given argument reads.
p→q
q→r
¬𝑟
∴¬𝑝
This argument is logically equivalent to (Using the rule of syllogism)
𝑝→𝑟
¬𝑟
∴¬𝑝
In view of Modus Tollens Rule, this is a valid argument.
3. Test whether the following is valid argument.
If Sachin hits a century, then he gets a free car.
Sachin does not get a free car.
∴ Sachin has not hit a century
Solution: Let p: Sachin hits a century.
q: Sachin gets a free car.
The given statement reads
p → q
¬q
∴¬𝑝
In view of Modus Tollens Rule, this is a valid argument.
4. Test the validity of the following argument
If I study, then I’ll not fail in the examination.
If I do not watch tv in the evenings, I will study.
I failed in the examination.
∴ I must have watched tv in the evenings.
Solution: Let p: I study
q: I fail in the examination
r: I watch tv in the evenings.
Then the given argument reads
𝑝 → ¬𝑞
¬𝑟 → 𝑝
𝑞
∴𝑟
This argument is logically equivalent to
𝑞 → ¬𝑝
¬𝑝 → 𝑟
𝑞
∴𝑟

(because (p →¬ q) ⇔ (¬ ¬ q → ¬ p))

(because (¬ r → p) ⇔ (¬ p → r))

This is equivalent to (Using rule of syllogism)


𝑞→𝑟
𝑞
∴𝑟
In view of Modus Pones Rule, this is a valid argument.
5. Test the validity of the following argument
I will become famous or I will not become a musician.
I will become a musician.
∴ I will become famous.
Solution: Let p: I will become famous
q: I will become a musician
Then the given argument reads
𝑝ⅴ¬ 𝑞
q
∴p
This argument is logically equivalent to
𝑞→𝑝
𝑞
∴𝑝
Because 𝑝ⅴ¬ 𝑞 ⇔ ¬ 𝑞ⅴ𝑝 ⇔ 𝑞 → 𝑝
In view of Modus Pones Rule, this is a valid argument.
6. Test the validity of the following argument
I will get grade A in this course or I will not graduate.
If I do not graduate, I will join army.
I got grade A.
∴ I will not join army.
Solution: Let p: I will get grad A in this course
q: I do not graduate.
r: I will join army.
Then the given argument reads
𝑝ⅴ 𝑞
q→𝑟
𝑝
∴ ¬𝑟
This argument is logically equivalent to
¬𝑞 → 𝑝
¬𝑟 →¬q
𝑝
∴ ¬𝑟
Because 𝑝ⅴ¬ 𝑞 ⇔ 𝑞ⅴ𝑝 ⇔ ¬ 𝑞 → 𝑝 and using Contrapositive.
This is equivalent to (Using rule of syllogism)
¬𝑟 → 𝑝
𝑝
∴ ¬𝑟
This is not a valid argument.
7. Test whether the following is valid argument.
If Sachin hits a century, then he gets a free car.
Sachin gets a free car.
∴ Sachin has hit a century.
Solution: Let p: Sachin hits a century.
q: Sachin gets a free car.
The given statement reads
p→q
𝑞
∴𝑝
We note that if p → q and q are true, there is no rule which asserts that p must be true.
Indeed, p can be false when p → q and q are true. See the table below.
p q p→q (p → q) ˄ q
0 1 1 1

Thus, [(p → q) ˄ q] → p is not a tautology. Hence, this is not a valid argument.


8. Test the Validity of the following argument:

(i). p˄q (ii). p (iii). p→r


p → (q → r) p→¬q q→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 By Commutative & De Morgan’s Law

⇔ (p ⅴ q) → r
This Logical equivalence shows that the given argument is valid.
9. Test whether the following arguments are valid:

(i). p→q (ii). p→q


r→s r→s

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.

Example: 1. For every integer x, x2 is a non-negative integer ∃ x ∈ s, P(x).


2. For the universe of all integers, let
p(x): x>0.
q(x): x is even.
r(x): x is a perfect square.
s(x): x is divisible by 3.
t(x): x is divisible by 7.
Problems:
Write down the following quantified statements in symbolic form:
i) At least one integer is even.
ii) There exists a positive integer that is even.
iii) Some integers are divisible by 3.
iv) every integer is either odd or even.
v) if x is even and a perfect square, then is not divisible by 3.
vi) if x is odd or is not divisible by 7, then x is divisible by 3.
Solution:
Using the definition of quantifiers, we find that the given statement read as follows in
symbolic form
i) ∃x, q(x)
ii) ∃x, [ p(x) ˄ q(x)]
iii) ∃x, [ q(x) ˄ s(x)]
ⅵ) Ɐx, [ q(x) ⊻ ¬ q(x)]
v) Ɐx [ {q(x) ˄ r(x)} → s(x)]

vi) Ɐx, [{¬ q(x) ⅴ ¬ t(x)} →s(x)]

Rules employed for determining truth value:


Rule1: The statement “Ɐ x ∈ s, p(x)” is true only when p(x) is true for each x ∈ s.
Rule2: The statement “∃ x ∈ s, p(x)” is false only when p(x) is false for every x ∈ s.
*Rules of inference:
Rule3: If an open statement p(x) is known to be true for all x in a universe s and if a ∈ s then
p(a) is true. (this is known as the rule of universal specification).
Rule4: if an open statement p(x) is proved to be true for any (arbitrary) x chosen from a set s
then the quantified statement Ɐ x ∈ s, p(x) is true. (this is known as the rule of universal
generalization)
*Logical equivalence:
Two quantified statements are said to be logically equivalent whenever they have the same
truth values in all possible situations.
The following results are easy to prove.
i) Ɐ x [p(x) ˄ q(x)] ⇔ (Ɐ x, p(x)) ˄ (Ɐ x, q(x))

ii) ∃ x [p(x) ⅴ q(x)] ⇔ (∃ x, p(x)) ⅴ (∃ x, q(x))

iii) ∃ x, [p(x) → q(x)] ⇔ ∃ x, (¬ p(x) ⅴ q(x))


*Rule for negation of a quantified statement:
Rule5: To construct the negation of a quantified statement, change the quantifier from
universal
to existential and vice versa.
i.e., ¬ [Ɐ x, p(x)] ≡ ∃ x, [ ¬ p(x)]
¬ [(∃ x, p(x)] ≡ Ɐ x [ ¬ p(x)]
Problems:
1. Consider the open statements with the set of real numbers as the universe.
p(x): |x|>3, q(x): x>3
Find the truth value of the statement Ɐ x, [p(x) → q(x)]. Also, write down the converse, inverse
and the contrapositive of this statement and find their truth values
Solution:
We readily note that
p(-4) ≡ |-4|>3 is true and q(-4) ≡ -4>3 is false
Thus, p(x) →q(x) is false for x= -4.
Accordingly, the given statement Ɐ x, [p(x) → q(x)] ......................... (ⅰ) is false.
The converse of the statement (ⅰ) is Ɐ x, [q(x) → p(x)] ....................... (ⅱ)
In words, this reads “For every real number x, x>3 then |x|>3”
Or Equivalently, “Every real number greater than 3 has its absolute value (magnitude) greater
than 3”
This is a true statement.
Next, the inverse of the statement (ⅰ) is Ɐ x, [¬ p(x) → ¬ q(x)] ............... (ⅲ)
In words this reads “For every real number x, if |x| ≤3 then x≤3”
Or equivalently, “If the magnitude of a real number is less than or equal to 3, then the number
is less than or equal to 3”
Since the converse and inverse of a conditional are logically equivalent the statements (ⅱ) and
(iii) have the same truth values. Thus ⅲ) is a true statement.
Then the contrapositive of statement (i) is Ɐ x, [¬ q(x) → ¬ p(x)]........................... (ⅳ)
“Every real number which is less than or equal to 3 has its magnitude less than or equal to 3”.
2. Let p(x): x2-7x+10, q(x): x2-2x-3, r(x): x<0.
Determine the truth or falsity of the following statements. When the universe U contains
only the integers 2 and 5. If a statement is false. Provide a counter example or explanation.

(ⅰ). Ɐ x, [p(x) →¬ r(x)] (ⅱ). Ɐ x, [q(x) → r(x)]


(ⅲ). ∃ x, [q(x) → r(x)] (ⅳ). ∃ x, [p(x) → r(x)]
Solution:
Here, the universe is U= {2, 5}.
We note that x2-7x+10 = (x-5) (x-2). Therefore, p(x) is true for x=5 and 2. That is p(x) is true
for all x ∈ U.
Further, x2-2x-3 = (x-3) (x+1). Therefore, q(x) is only true for x=3 and x=-1. Since x=3 and
x=-1 are not in the universe, q(x) is false for all x ∈ U
Obviously, r(x) is false for all x ∈ U.
Accordingly:
(i) Since p(x) is true for all x ∈ U and ¬ r(x) is true for all x ∈ U, the statement Ɐ x,
[p(x) → ¬ r(x)] is true.
(ii) Since q(x) is false for all x ∈ U and r(x) is false for all x ∈ U, the statement Ɐ x,
[q(x) → r(x)] is true.
(iii) Since q(x) and r(x) are false for x=2, the statement ∃ x, [q(x) → r(x)] is true.
(iv) Since p(x) is true for all x ∈ U but r(x) is false for all x ∈ U. the statement p(x) → r(x) is
false for all x ∈ U. consequently, ∃ x, [p(x) → r(x)] is false.
3. Negate and simplify each of the following.

(i). ∃ x, [p(x) ⅴ q(x)] (ⅱ). Ɐ x, [p(x) ˄ ¬ q(x)]


(ⅲ). Ɐ x, [p(x) → q(x)] (ⅳ). ∃ x, [p(x) ⅴ q(x)] → r(x)
Solution:
By using the rule of negation for quantified statements and the laws of logic, we find that

(i) ¬ [∃ x, {p(x) ⅴ q(x)}] ≡ Ɐ x, [ ¬ {p(x) ⅴ q(x )]


≡ Ɐ x, [ ¬ p(x) ˄ ¬ q(x)]
(ii) ¬ [Ɐ x, {p(x) ˄ ¬ q(x)}] ≡ ∃ x, [ ¬ {p(x) ˄ ¬ q(x)}]

≡ ∃ x, [ ¬ p(x) ⅴ q(x)]

(iii) ¬ [Ɐ x, {p(x) → q(x)}] ≡ ∃ x, [ ¬ {¬ p(x) ⅴ q(x)}]

≡ ∃ x, [p(x) ˄ ¬ q(x)}]

(iv) ¬ [∃ x, {p(x) ⅴ q(x)} →r(x)] ≡ Ɐ x, [ ¬ {¬ (p(x) ⅴ q(x)) ⅴ r(x)}]

≡ Ɐ x, [ {p(x) ⅴ q(x)} ˄ ¬ r(x)]


4. Write down the following proposition in symbolic form, and find its negation:
“If all triangles are right angled, then no triangle is equiangular”.
Solution:
Let T denote set of all triangles. Also, p(x): x is right angled, q(x): x is equiangular.
Then in symbolic form, the given proposition reads
{Ɐ x ∈ T, p(x)} → {Ɐ x ∈ T, ¬ q(x)}
The negation of this is
{Ɐ x ∈ T, p(x)} ˄ {∃ x ∈ T, q(x)}
In words, this reads “All triangles are right angled and some triangles are equiangular”.
Logical implication involving quantifiers
5. Prove that ∃ x, [p(x) ˄ q(x)] ⇒ ∃ x, p(x) ˄ ∃ x, q(x)
Is the converse true
Solution:
Let S denote the universe, we find that
∃ x, [p(x) ˄ q(x)] ⇒ p(a) ˄ q(a) for some a ∈ S
⇒ p(a), for a ∈ S and q(a) for some a ∈ S
⇒ ∃ x, p(x) ˄ ∃ x, q(x)
This proves the required implication.
Next, we observe that ∃ x, p(x) ⇒ p(a) for some a ∈ S and ∃ x, q(x) ⇒ q(b) for some b ← S.
Therefore, ∃ x, p(x) ˄ ∃ x, q(x) ⇒ p(a) ˄ q(b)
⇎ p(a) ˄ q(a) because b need not be a
Thus, ∃ x, [p(x) ˄ q(x)] need not be true when ∃ x, p(x) ˄ ∃ x, q(x) is true.
That is ∃ x, p(x) ˄ ∃ x, q(x) ⇎ [p(x) ˄ q(x)]
Accordingly, the converse of the given implication is not necessarily true.
6. Find whether the following arguments is valid:
No engineering student of first or second semester studies logic
Anil is a student who studies logic.
∴ Anil is not in second semester
Solution:
Let us take the universe to be the set of all engineering students
p(x): x is in first semester.
q(x): x is in second semester.
r(x): x studies logic.
Then the given argument reads
Ɐ x,[{p(x)ⅴq(x)} → ¬ r(x)]
r(a)
∴ ¬ q(a)
We note that

Ɐ x, [{p(x) ⅴ q(x)} →¬ r(x)] ⇒ {p(a) ⅴ q(a)} →¬ r(a)

By rule of universal specification.


Therefore,

[Ɐ x, {p(x) ⅴ q(x)} →¬ r(x)] ˄ r(a)

⇒ [{p(a) ⅴ q(a)} →¬ r(a)] ˄ r(a)

⇒ r(a) ˄ [r(a) → ¬ [p(a) ⅴ q(a)]], Using Commutative law and Contrapositive

⇒¬ [p(a) ⅴ q(a)], By the Modus Pones law

⇒ ¬ p(a) ˄ ¬ q(a), By De Morgan’s law


⇒ ¬ q(a), by the rule of conjunctive specification,
This proves that the given argument is valid.
7. Find whether the following argument is valid.
If a triangle has 2 equal sides then, it is isosceles.
If the triangle is isosceles, then it has 2 equal angles.
A certain triangle ABC does not have 2 equal angles.
∴ the triangle ABC does not have 2 equal sides.
Solution:
Let the universe be set of all triangles
And let p(x):x has equal sides.
q(x): x is isosceles.
r(x): x has 2 equal angles.
Also let C denote the triangle ABC.
Then, in symbols, the given argument reads as follows:
Ɐ x, [p(x) → q(x)]
Ɐ x, [q(x) → r(x)]
¬ r(c)
∴p(c)

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

{Ɐ x, [p(x) ⅴ q(x)]} ˄ [∃ x, ¬ p(x)]


⇒ [p(a) ⅴ q(a)] ˄ ¬ p(a) For some as in the universe
⇒ q(a) By Disjunctive Syllogism
Therefore, {Ɐ x, [p(x) ⅴ q(x)]} ˄ [∃ x, ¬ p(x)] ˄ {Ɐ x, [¬ q(x) ⅴ r(x)]}
⇒ q(a) ˄ [¬ q(a) ⅴ r(a)]
⇒ r(a) By Rule of Disjunctive Syllogism
Consequently,

{Ɐ x, [p(x) ⅴq(x)]} ˄ {∃ x, ¬ p(x)} ˄ {Ɐ x, [¬ q(x) ⅴ r(x)]} ˄ {Ɐ x, [s(x) → ¬ r(x)]}


⇒ r(a) ˄ {s(a) → ¬ r(a)}
⇒ ¬ s(a) By Modus Tollens rule
⇒ ∃ x, ¬ s(x).
This proves the given argument is valid.
Quantified statements with more than one variable
9. Determine the truth value of each of the following quantified statements. The universe
being the set of all non-zero integer.
i) ∃ x, ∃ y [xy=1]
ii) ∃ x Ɐ y [xy=1]
iii) Ɐ x ∃ y [xy=1]
iv) ∃ x, ∃ y, [(2x+y=5) ʌ (x-3y=-8)]
v) ∃ x, ∃ y, [(3x-y=17) ʌ (2x+4y=3)]
Solution: (ⅰ) true (take x=1, y=1)
(ii) False (for specified x, xy=1 for every y is not true)
(iii) false (for x=2, there is no integer y such that xy=1)
(iv) true (take x=1, y=3)
(v) false (equation 3x-y=17 and 2x+4y=3 do not have a common integer solution)
☻Methods of proof and methods of disproof:

Direct proof:

1. Hypothesis: first assume that p is true.


2. Analysis: starting with the hypothesis and employ the rules/ Laws of logic and other known
facts infer that q is true.
3. Conclusion: p → q is true.
Indirect proof:
A conditional p → q and its contrapositive ¬ q →¬ p is logically equivalent. In some
situations, given a condition p → q, a direct proof of the contrapositive ¬ q→¬ p is easier. On
the basis of this proof, we infer that the conditional p → q is true. This method of proving a
conditional is called an indirect method of proof.
Proof by contradiction:
1. Hypothesis: assume that p → q is false, that is assume that p is true and q is false.
2. Analysis: starting with the hypothesis that q is false and employing the rules of logics and
other known facts, this infer that p is false. This contradicts the assumption that p is true.
3. Conclusion: because of the contradiction arrived in the analysis, we infer that p → q is
true.
Proof by exhaustion:
Recall that a proposition of the form “Ɐ x ∈ S, p(x)” is true if p(x) is true for every x in
S. if S consists of only a limited number of elements, we can prove that the statement “Ɐ x ∈
S, p(x)” is true by considering p(a) for each a in S and verifying that p(a) is true (in each case).
Such a method of proof is called the method of exhaustion.
Disproof by counter example:
The way of disproving a proposition involving the universal quantifiers is to exhibit
just one case where the proposition is false. This method of disproof is called disproof by
counter example.
Problems:
1. Prove that, for all integers k and l, if k and l are both odd the k+l is even and kl is odd.
Solution:
Take any two integers k and l, and assume that both of these are odd (hypothesis)
Then k=2m+1, l=2n+! for some integers m and n. therefore,
k+1= (2m+1) +(2n+1) = 2(m+n+1)
kl= (2m+1)(2n+1) = 4mn+2(m+n)+1
We observe that k+l is divisible by 2 and kl is not divisible by 2. Therefore k+l is an even
integer and kl is an odd integer.
Since k and l are arbitrary integers, the proof of the given statement is complete.
2. For each of the following statements, provide an indirect proof by stating and proving the
contrapositive of the given statement.
(i) for all integers k and l, if kl is odd then both k and l are odd.
(ii) for all integers k and l if k+l is even, then k and l are both even or both odd.
Solution:
The contrapositive of the given statement is
“For all integers k and l, if k is even or l is even then kl is even.
We now prove this contrapositive.
For any integers k and l, assume that k is even.
Then k=2m for some integer m, and kl=(2m)l=2(ml) which is evidently even. Similarly if l is
even, then kl=k(2n)=2kn for some integer n so that kl is even. This proves the contrapositive.
This proof of contrapositive serves as an indirect proof of the given statement.
(ii). Here, the contrapositive of the given statement is
“for all integers k and l, if one of k and l and is odd and the other is even, then k+l is odd”
We now prove this contrapositive
For any odd integers k and l, assume that, one of k and l is odd and the other is even.
Suppose k is odd and l is even. Then k=2m+1 and l=2n for some integers m and n. consequently
k+l=(2m+1)+2n which is evidently odd.
Similarly, if k is even and l is odd, we find that k+l is odd. This proves the contrapositive.
This proof of contrapositive serves as an indirect proof of the given statement.
3. Give (ⅰ) direct proof (ⅱ) indirect proof (ⅲ) proof by contradiction for the
following statement: “if n is an odd integer, then n+9 is an even integer”.
Solution:
(i) Direct proof: assume that n is an odd integer. Then n=2k+1 for some integer k. This gives
n+9 = (2k+1)+9 = 2(k+5) from which it is evident that n+9 is even. This establishes the truth
of the given statement by a direct proof.
(ii) Indirect proof: assume that n+9 is not an even integer. Then n+9 = 2k+1 for some integer
k. This gives n = (2k+1)-9=2(k-4), which shows that n is even. Thus, if n+9 is not even, then n
is not odd. This proves the contrapositive of the given statement. This proof of the
contrapositive serves as an indirect proof of the given statement.
(iii) proof by contradiction: assume that the given statement is false. That is, assume that n is
odd and n+9 is odd, n+9=2k+1 for some integer k so that n=(2k+1)-9= 2(k-4) which shows that
n is even. This contradicts the assumption that n is odd. Hence the given statement must be
true.
4. Prove that every even integer n with 2≤n≤26 can be written as a sum of most three perfect
squares.
Solution:
Let S={2, 4, 6, …., 24, 26}. We have to prove that the statement: “Ɐ x ∈ S, p(x)” is true,
where p(x): x is a sum of at most three perfect squares.
We observe that
2=12+12 16=42
4=22 18=42+12+12
6=22+12+12 20=32+32+12+12
8=22+22 22=32+32+22
10=32+12 24=42+22+22
12=22+22+22 26=52+12
14=32+22+12
The above facts verify that each x in S is a sum of at most three-perfect square.
5. Prove or disprove that the sum of square of any four non-zero integers is an even integer.
Solution:
Here the proposition is
“For any four non-zero integers a, b, c, d and a2+b2+c2+d2 is an even integer”.
We check that for a=1, b=1, c=1, d=2 the proposition is false. Thus, the given proposition is
not a true proposition. This proposition is disproved through the counter example a=b=c=1 and
d=2.
6. Consider the following statement for the universe of integers if n is an integer then n2=n or
Ɐn {n2=n}.
Solution:
For n=0 it is true that n2=02=0=n and if n=1 is also true that n2=12=1=n. however we cannot
conclude that n2=n for every integer n.
The rule of universal generalisation does not apply here, for we cannot consider the choices of
0 (or 1) as an arbitrarily chosen integer. If n=2, n 2=4≠n=2, and this one counter example is
enough to tell us that the given statement is false.
However, either replacement namely n=0 or n=1 is not enough to establish the truth of the
statement. For some integer n, n2=n or ∃ n {n2=n}.
7. For all positive integers x and y if the product xy exceeds 25, then x>5 or y>5.
Solution:
Consider the negation of the conclusion that is suppose that 0 < x≤ 5 and 0 < y≤ 5. Under these
circumstances we find that 0< 𝑥 ∙ 𝑦 < 5 ∙ 5 = 25.
So, the product of xy does not exceed 25.

You might also like