Discrete Mathematical Structures 15CS36: Course Objectives: This Course Will Enable Students To
Discrete Mathematical Structures 15CS36: Course Objectives: This Course Will Enable Students To
CREDITS – 04
Module -1 10 Hours
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, Textbook 1: Ch 2
Module -2 10Hours
Module – 3 10 Hours
Relations and Functions: Cartesian Products and Relations, Functions – Plain and One-to-
One, Onto Functions. The Pigeon-hole Principle, Function Composition and Inverse
Functions. Properties of Relations, Computer Recognition – Zero-One Matrices and
Directed Graphs, Partial Orders – Hasse Diagrams, Equivalence Relations and Partitions.
Textbook 1: Ch 5:5.1 to 5.3, 5.5, 5.6, Ch 7:7.1 to 7.4
Module-4 10 Hours
The Principle of Inclusion and Exclusion: The Principle of Inclusion and Exclusion,
Generalizations of the Principle, Derangements – Nothing is in its Right Place, Rook
Polynomials. Recurrence Relations: First Order Linear Recurrence Relation, The Second
Order Linear Homogeneous Recurrence Relation with Constant Coefficients.
Textbook 1: Ch 8: 8.1 to 8.4, Ch 10:10.1 to 10.2
Module-5 10 Hours
Mathematical logic
Syllabus: 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.
1.1 Basic connectives and truth tables
Introduction:
❖ Declarative statement which is either true or false but not both is called proposition or
statement.
❖ The simplest statement which cannot be broken down further is called primitive statement.
❖ The truth or falsity of a statement is called truth value.
Truth value Notation
True 1
False 0
❖ Connective words which are used to combine two or more propositions are called logical
connectives.
logical connectives Notations
and
Or
exclusive or
If then →
If and only if
❖ A proposition containing one or more connectives is called compound proposition.
0 0 0 0 0 1 1
0 1 0 1 1 1 0
1 0 0 1 1 0 0
1 1 1 1 0 1 1
❖ Compound proposition which is always true for all possible combinations of truth values is
called Tautology.
❖ Compound proposition which is always false for all possible combinations of truth values is
called contradiction.
❖ Compound proposition which is neither tautology nor contradiction is called contingency.
Problems:
Answer:
(a) F F F
(b) (T F ) (T F ) T T T
(c) (T T ) F
(d) (T → F ) (T T ) F F F
(e) (T F ) → (T F ) F → T T
(f) (T → T ) ( F → F ) (T T ) T
4. Find the possible truth values of p,q and r in the following cases:
(a) p → (q r ) is false (b) p (q → r ) is true. [ July ’09 ]
Answer:
(a)
𝑝 → (𝑞 ∨ 𝑟) 𝑝 𝑞∨𝑟 𝑞 𝑟
0 1 0 0 0
5. Let p, q and r be propositions having truth values 0, 0, 1 respectively. Find the truth values of
the following compound propositions: (a) p → (q r ) (b) p (r → q) (c) ( p q) → r
(d) p → (q → r ) [ Jan ’17 ]
Answer:
(a)
𝑝 𝑞 𝑟 𝑞∧𝑟 𝑝 → (𝑞 ∧ 𝑟)
0 0 1 0 1
(b)
𝑝 𝑞 𝑟 𝑟→𝑞 𝑝 ∧ (𝑟 → 𝑞)
0 0 1 0 0
6. Let p and q primitive statements for which the conditional p → q is false. Determine the truth values
of the following compound propositions: (a) p q (b) p q (c) q → p (c) q → p [ Jan’14
Answer:
(a)
p q pq p ( p q) p
0 0 0 1 0
0 1 1 1 1
1 0 1 0 0
1 1 1 0 0
(b) p q q p q ( p q)
0 0 1 1 0
0 1 0 0 1
1 0 1 1 0
1 1 0 1 0
p q r q→r p → (q → r )
(c)
0 0 0 1 1
0 0 1 1 1
0 1 0 0 1
0 1 1 1 1
1 0 0 1 1
1 0 1 1 1
1 1 0 0 0
1 1 1 1 1
(e) p q r pq r ( p q) r [( p q) r ] p
0 0 0 0 1 1 0
0 0 1 0 0 0 1
0 1 0 0 1 1 0
0 1 1 0 0 0 1
1 0 0 0 1 1 1
1 0 1 0 0 0 0
1 1 0 1 1 1 1
1 1 1 1 0 1 1
8. Show that for any propositions p and q the following are tautologies by constructing truth
table:
The given compound proposition is true for all possible combinations of truth values.
Therefore it is a Tautology.
The given compound proposition is true for all possible combinations of truth values.
Therefore, it is a Tautology.
0 0 0 1 1 1 0 1
0
0 0 1 0 1 1 1 0 1
0 1 0 1 1 0 0 0 1
0 1 1 1 1 1 1 1 1
1 0 0 1 0 0 0 0 1
1 0 1 1 1 1 1 1 1
1 1 0 1 0 0 0 0 1
1 1 1 1 1 1 1 1 1
The given compound proposition is true for all possible combinations of truth values.
Therefore it is a Tautology.
The given compound proposition is true for all possible combinations of truth values.
Therefore it is a Tautology.
0 0 0 1 1 1 0 1 1
0 0 1 1 1 1 0 1 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 0 1 0 1 1 1
1 1 0 1 0 0 1 0 1
1 1 1 1 1 1 1 1 1
The given compound proposition is true for all possible combinations of truth values.
Therefore it is a Tautology.
(f) [( p q) (p q)] p
p q p pq ( p q) p q ( p q) (p q) (1) p
(1)
0 0 1 0 1 0 1 1
0 1 1 1 0 1 1 1
1 0 0 1 0 0 0 1
1 1 0 1 0 0 0 1
The given compound proposition is true for all possible combinations of truth values.
Therefore it is a Tautology.
0 0 0 1 1 1 0 1 1
0 0 1 1 1 1 0 1 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 0 1 0 1 1 1
1 1 0 1 0 0 1 0 1
1 1 1 1 1 1 1 1 1
The given compound proposition is true for all possible combinations of truth values.
Therefore it is a Tautology.
Answer:
(a) p q pq p q ( p q) ( p q)
0 0 0 1 1
0 1 1 0 1
1 0 1 0 1
1 1 0 1 1
The given compound proposition is true for all possible combinations of truth values.
Therefore it is a Tautology.
(b) p q pq p q ( p q) ( p q)
0 0 0 1 0
0 1 1 0 0
1 0 1 0 0
1 1 0 1 0
0 0 0 1 0
0 1 1 1 1
1 0 1 0 0
1 1 0 1 0
Exercise:
1. Determine whether each of the following sentences is a statement:
(a) In 2003,George W. Bush was the American President.
(b) 𝑥 + 3 is a positive integer.
(c) 15 is an even number.
(d) What time is it?
3. If the statement q has the truth value 1, determine all the truth value assignments for the
primitive statements:
Two propositions u and v are said to be logically equivalent if u and v have the same
truth values for all possible combinations of truth values. It is denoted by 𝑢 ⇔ 𝑣 or 𝑢 ≡ 𝑣.
pq q p p T0 T0
pq q p p F0 F0
Distributive law Absorbtion law
p ( q r ) ( p q) ( p r ) p ( p q) p
p ( q r ) ( p q) ( p r ) p ( p q) p
Problems:
Since, and v have the same truth values for all possible combinations, 𝑢 ⇔ 𝑣.
Therefore, [( p q) → r ] [r → ( p q)] ]
p q r [( p q) (q r ) ( r p) [( p q) (q r ) (r p)]
(u)
0 0 0 1 1 1 1
0 0 1 1 0 0 0
0 1 0 0 0 1 0
0 1 1 0 1 0 0
1 0 0 0 1 1 0
1 0 1 0 0 0 0
1 1 0 1 0 0 0
1 1 1 1 1 1 1
Since,u and v have the same truth values for all possible combinations, u v .
(c) [( p q) → r ] [( p → r ) (q → r )]
p q r pq ( p q) → r
(u)
0 0 0 0 1
0 0 1 0 1
0 1 0 1 0
0 1 1 1 1
1 0 0 1 0
1 0 1 1 1
1 1 0 1 0
1 1 1 1 1
p q r p→r q→r ( p → r) ( q → r )
(v)
0 0 0 1 1 1
0 0 1 1 1 1
0 1 0 1 0 0
0 1 1 1 1 1
1 0 0 0 1 0
1 0 1 1 1 1
1 1 0 0 0 0
1 1 1 1 1 1
Since,u and v have the same truth values for all possible combinations, 𝑢 ⇔ 𝑣.
Therefore, [( p q) → r ] [( p → r ) (q → r )]
p q r (q → r ) p → (q → r )
(u)
0 0 0 1 1
0 0 1 1 1
0 1 0 0 1
0 1 1 1 1
1 0 0 1 1
1 0 1 1 1
1 1 0 0 0
1 1 1 1 1
p q r pq ( p q) → r
(v)
0 0 0 0 1
0 0 1 0 1
0 1 0 0 1
0 1 1 0 1
1 0 0 0 1
1 0 1 0 1
1 1 0 1 0
1 1 1 1 1
Since,u and v have the same truth values for all possible combinations, 𝑢 ⇔ 𝑣.
Therefore, p → (q → r ) ( p q) → r
(e) p → (q r ) ( p q) → r
p q r qr p → (q r )
(u)
0 0 0 0 1
0 0 1 1 1
0 1 0 1 1
0 1 1 1 1
1 0 0 0 0
1 0 1 1 1
1 1 0 1 1
1 1 1 1 1
Since,u and v have the same truth values for all possible combinations, 𝑢 ⇔ 𝑣.
Therefore, p → (q r ) ( p q) → r
Proof:
(b) p → [q → ( p q)]
p → [q ( p q)] [ By the definition of conditional
T0 [ By inverse law
(c) p → (q → r )
p → (q r ) [ By the definition of conditional
r [ By Identity law
⇔ 𝑇𝑜 [ By inverse law
(f) [(𝑝 ∨ 𝑞 ) ∧ (𝑝 ∨ ¬𝑞 )] ∨ 𝑞
⇔ [𝑝 ∨ 𝐹0 ] ∨ 𝑞 [ By inverse law
⇔ ¬𝑝 ∨ 𝑞 [ By commutative law
6. Show that the compound propositions p (q r ) and p (q r ) are not logically
equivalent. [ Jan ‘14]
Answer:
p q r q q r p (q r )
(u)
0 0 0 1 1 0
0 0 1 1 1 0
0 1 0 0 0 0
0 1 1 0 1 0
1 0 0 1 1 1
1 0 1 1 1 1
1 1 0 0 0 0
1 1 1 0 1 1
u and v do not have the same truth values in all possible situations.
1.3 Duality, NAND and NOR, Converse, inverse and contra positive
Introduction:
❖ NAND is the combination of NOT and AND . NOR is the combination of NOT and OR.
𝑝 𝑞 𝑝→𝑞 𝑞→𝑝 ¬𝑝 → ¬𝑞 ¬𝑞 → ¬𝑝
0 0 1 1 1 1
0 1 1 0 0 1
1 0 0 1 1 0
1 1 1 1 1 1
Answer:
(a) 𝑢 ≡ 𝑝 → 𝑞 ≡ ¬𝑝 ∨ 𝑞
𝑢𝑑 ≡ ¬𝑝 ∧ 𝑞
(b) 𝑢 ≡ p ∨q ≡ (¬𝑝 ∧ 𝑞 ) ∨ (𝑝 ∧ ¬𝑞 )
𝑢𝑑 ≡ (¬𝑝 ∨ 𝑞 ) ∧ (𝑝 ∨ ¬𝑞 )
(d) 𝑢 ≡ (𝑝 ∨ 𝑇0 ) ∧ (𝑞 ∨ 𝐹0 ) ∨ [(𝑟 ∧ 𝑠) ∨ 𝐹0 ]
𝑢𝑑 ≡ (𝑝 ∧ 𝐹0 ) ∨ (𝑞 ∧ 𝑇0 ) ∧ [(𝑟 ∨ 𝑠) ∧ 𝑇0 ]
(g) 𝑢 ≡ 𝑝 → (𝑞 → 𝑟) ≡ ¬𝑝 ∨ (𝑞 → 𝑟) ≡ ¬𝑝 ∨ (¬𝑞 ∨ 𝑟)
𝑢𝑑 ≡ ¬𝑝 ∧ (¬𝑞 ∧ 𝑟)
Proof:
(a) 𝑝 ↑ 𝑞 ⇔ ¬(𝑝 ∧ 𝑞) [ By the definition of NAND
⇔ ¬(𝑞 ∧ 𝑝) [ By commutative law
⇔𝑞↑𝑝 [ By the definition of NAND
Answer:
(a) p q ( p q)
(p q)
( p q)
( p q) ( p q)
( p q) ( p q)
p q ( p q)
(p q)
(p) (q)
(p) (q)
( p p) ( q q)
(b) p q ( p q)
(p q)
(p) (q)
(p) (q)
( p p) ( q q)
p q ( p q)
(p q)
( p q)
( p q) ( p q)
( p q) ( p q)
(c) p → q p q
p q
p (q)
p (q q)
p (q q)
p→q p q
(p q)
( p q)
(p q)
(p q) (p q)
(p q) (p q)
(( p p) q) (( p p) q)
4. Write the converse, inverse and contra positive of the following conditionals:
Answer:
Contra positive: (¬𝑞 → ¬𝑝) If the diagonals of the quadrilateral do not bisect
each other, then it is not a parallelogram.
(b) Let 𝑝: A real number 𝑥 2 is greater than zero and 𝑞: 𝑥 is not equal to zero
The given conditional is 𝑝 → 𝑞.
Inverse: (¬𝑝 → ¬𝑞) If a real number 𝑥 2 is not greater than zero, then 𝑥 is
equal to zero.
Contra positive: (¬𝑞 → ¬𝑝) If a real number𝑥 is equal to zero, then 𝑥 2 is not
greater than zero.
(d) Let p : Ram can solve the puzzle. q : Ram can solve the problem.
The given conditional is 𝑝 → 𝑞.
Converse: (𝑞 → 𝑝) If Ram can solve the problem, then he can solve the
puzzle.
Inverse: (¬𝑝 → ¬𝑞) If Ram cannot solve the puzzle, then he cannot solve the
problem.
Contra positive: (¬𝑞 → ¬𝑝) If Ram cannot solve the problem, then he cannot
solve the puzzle.
Introduction:
There exist rules of logic which can be employed for establishing validity of arguments.
These rules are called rules of inference.
𝑝 ∨ 𝑞 ≡ ¬𝑝 → 𝑞
(a) If there is a strike by students then exam will be postponed. Exam was not postponed.
Therefore there were no strike by students. [ Jan ‘09]
Answer:
Let 𝑝: There is a strike by students and𝑞:exam is postponed
Given premises are 𝑝 → 𝑞, ¬𝑞
2 --- q Premise 2
3 1, 2 p Modus Tollens
Therefore, there were no strike by students. Therefore, the given argument is valid.
(b) If Sachin hits a century then he gets a free car. Sachin gets a free car. Therefore Sachin
has hit a century.
Answer:
Prof. Narasimhan G, Dept. of mathematics, RNSIT Page 26
Let 𝑝: Sachin hits a century and 𝑞: Sachin gets a free car
Given premises are 𝑝 → 𝑞, 𝑞
2 --- q Premise 2
Therefore Sachin may not hit a century.Therefore, the given argument is invalid.
(c) If I drive to work, then I will arrive tired. I am not tired. Therefore I do not drive to
work.
Answer:
2 --- q Premise 2
3 1, 2 p Modus Tollens
(d) If interest rate falls then stock market will rise. The stock market will not rise. Therefore
the interest rates will not fall. [ Jan ’06 ]
Answer:
Let 𝑝: interest rate falls and 𝑞: stock market will rise. Given premises are 𝑝 → 𝑞, ¬𝑞.
2 --- q Premise 2
3 1, 2 p Modus Tollens
Let 𝑝: Ravi studies, 𝑞:He will pass in DMS and 𝑟:Ravi plays cricket
Given premises are 𝑝 → 𝑞, ¬𝑟 → 𝑝, ¬𝑞.
2 --- q Premise 3
3 1, 2 p Modus Tollens
4 --- r → p Premise 2
5 3, 4 r Modus Tollens
(f) If I study then I will not fail in exam. If I do not watch TV in the evening then I will
study. I failed in exam. Therefore I must have watched TV in the evening.
[ Jan ’10, Dec ’10, Jan’ 17 ]
Answer:
1 --- p → q Premise 1
2 --- q Premise 2
3 1, 2 p Modus Tollens
4 --- r → p Premise 3
5 3, 4 r Modus Tollens
Answer:
1 --- r →s Premise 2
2 --- s Premise 3
3 1, 2 r Modus Tollens
4 --- ( p q) → r Premise 1
5 3, 4 ( p q) Modus Tollens
6 5 p q Demorgen’s law
Therefore either Rochelle did not get the supervisor’s position or she did not work hard.
Therefore, the given argument is valid.
(h) Let 𝑝, 𝑞 𝑎𝑛𝑑 𝑟 be the primitive statements.𝑝: Ram studies q: Ram plays tennis, 𝑟:
Ram passes in DMS. Let 𝐻1 , 𝐻2 , 𝐻3 be the premises. 𝐻1 : If Ram studies then he
will pass in DMS. 𝐻2 : If Ram does not play Tennis then he will study. 𝐻3 : Ram did
not pass in DMS. Show that q follows from 𝐻1 , 𝐻2 , 𝐻3 .
Answer:
2 --- r Premise H 3
3 1, 2 p
Modus Tollens
5 4,3 q
Modus Tollens
Answer:
3 1 q→r Premise 2
4 1, 2 p → r Rule of syllogism
5 --- p Premise 3
Answer:
1 --- p q Premise 1
3 1, 2 p Disjunctive syllogism
(a) 𝑝 → 𝑞, ¬𝑟 ∨ 𝑠, 𝑝∨𝑟 ∴ ¬𝑞 → 𝑠
Answer:
Given premises are 𝑝 → 𝑞, ¬𝑟 ∨ 𝑠, 𝑝 ∨ 𝑟
3 --- r s Premise 3
4 1 q → p Contra positive
5 2 p → r Conditional law
6 3 r →s Conditional law
Answer:
1 --- p r Premise 2
2 --- r Premise 3
3 1, 2 p Disjunctive syllogism
5 3, 4 q Disjunctive syllogism
Answer:
S No. Steps used Step Rule
1 --- p q Premise 1
2 --- p → (q → r ) Premise 2
3 1 p Conjunctive simplification
5 1 q Conjunctive simplification
6 4, 5 r or r ---
Answer:
1 --- p Premise p1
2 --- p→q
Premise p2
3 1, 2 q
Contra positive
4 --- r → q
Premise p3
7 5, 6 s
(e) 𝑝 ∧ 𝑞, 𝑝 → (𝑞 → 𝑟) ∴𝑟
Answer:
2 1 p
Conjunctive simplification
3 --- p → (q → r ) Premise p2
4 2, 3 q→r
Modus pones
5 1 q
Conjunctive simplification
6 4, 5 r Modus pones
(f) 𝑝 → 𝑟, 𝑞 → 𝑟 ∴ (𝑝 ∨ 𝑞) → 𝑟
Answer:
2 1 p r
Conditional law
3 --- q→r
Premise p2
4 3 q r
Conditional law
5 2, 4 (p q) r
Distributive law
7 6 ( p q) → r Conditional law
Answer:
1 --- p Premise p1
2 --- p→r
Premise p2
3 --- p → (q r )
Premise p3
4 1, 2 r
Modus pones
5 1, 3 q r
Modus pones
6 4, 5 q
Disjunctive syllogism
7 --- q s
Conditional law
8 6, 7 s
Disjunctive syllogism
Answer:
1 --- r s Premise p3
2 1 r → s Conditional law
4 --- q→r
Premise p2
5 2, 3, 4 r → r
Rule of syllogism
6 5 rr
Conditional law
7 5 r
Disjunctive simplification
8 1, 7 s need not be true
Contra positive
Answer:
1 --- (C D) → H Premise p2
❖ Logical equivalence:
∀𝑥, [𝑝(𝑥) ∧ 𝑞(𝑥)] ⟺ ∀𝑥 𝑝(𝑥) ∧ ∀𝑥 𝑞(𝑥) ∀𝑥, [𝑝(𝑥) ∨ 𝑞(𝑥)] ⟺ ∀𝑥 𝑝(𝑥) ∨ ∀𝑥 𝑞(𝑥)
∃𝑥, [𝑝(𝑥) ∧ 𝑞(𝑥)] ⟺ ∃𝑥 𝑝(𝑥) ∧ ∃𝑥 𝑞(𝑥) ∃𝑥, [𝑝(𝑥) ∨ 𝑞(𝑥)] ⟺ ∃𝑥 𝑝(𝑥) ∨ ∃𝑥 𝑞(𝑥)
Problems:
1. For the universe of all integers let 𝑝(𝑥): 𝑥 > 0, 𝑞(𝑥 ) ∶ x is even, 𝑟(𝑥): x is a perfect
square, 𝑠 (𝑥): x is divisible by 3, 𝑡(𝑥 ): x is divisible by 7.Write the following statements
in symbolic form:
(a) At least one integer is even, (b) There exists a positive integer that is even.
(c) Some even integers are divisible by 3. (d) Every integer is either even or odd.
(e) If x is even and a perfect square then x is not divisible by 3.
(f) If x is odd or is not divisible by 7 then x is divisible by 3.
[Jan ’10 ]
Answer:
(a) ∃𝑥, 𝑞(𝑥) (b) ∀𝑥, [𝑝(𝑥 ) ∧ 𝑞 (𝑥)] (c) ∃𝑥, [𝑞(𝑥 ) ∧ 𝑠 (𝑥)]
(d) ∀𝑥, 𝑞 𝑥 ∨ ¬𝑞 𝑥)] (e) ∀𝑥, [𝑞(𝑥 ) ∧ 𝑟(𝑥 )] → ¬𝑠(𝑥)
[ ( ) (
(f) ∀𝑥, [𝑞(𝑥 ) ∧ 𝑡(𝑥 )] → 𝑠(𝑥)
Answer:
3. Consider the following statements with a set of all real numbers as the universe.
𝑝(𝑥 ): 𝑥 ≥ 0, 𝑞 (𝑥 ): 𝑥 2 ≥ 0, 𝑟(𝑥 ): 𝑥 2 − 3𝑥 − 4 = 0, 𝑠(𝑥 ): 𝑥 2 − 3 > 0. Determine the truth
values of the following: (a) ∃𝑥, 𝑝(𝑥 ) ∧ 𝑞(𝑥) (b) ∀𝑥, 𝑝(𝑥 ) → 𝑞(𝑥) (c) ∀𝑥, 𝑞(𝑥 ) → 𝑠(𝑥)
(d) ∀𝑥, 𝑟(𝑥 ) ∨ 𝑠(𝑥 )(𝑒) ∃𝑥, 𝑝(𝑥 ) ∧ 𝑟(𝑥). [ July ’09, Dec’10, Dec’12, Jan ‘17]
Answer:
5. Write down the following propositions in symbolic form and find their negation:
(a)For all integers, if n is not divisible by 2, then n is odd. [ Jan ’10, Jan ’06 ]
(b)If 𝑙, 𝑚, 𝑛 are any integers where 𝑙 − 𝑚 and 𝑚 − 𝑛 are odd then 𝑙 − 𝑛 is even
[ Jan ‘10]
2
(c) If x is a real number where 𝑥 is greater than 16 then 𝑥 is less than -4 or x is more
than 4.
(d) All rational numbers are real and some real numbers are not rational.
(e) No real number is greater than its square.
(f) All integers are rational numbers and some rational numbers are not integers
[Dec ’10, July ‘13]
(g) Some straight lines are parallel or all straight lines intersect. [ July ’16 ]
Answer:
(c) Let 𝑝(𝑥): 𝑥 2 > 16, 𝑞(𝑥 ): 𝑥 < −4, 𝑟(𝑥 ): 𝑥 > 4
𝑢 ≡If x is a real number where 𝑥 2 > 16 then 𝑥 < -4 or x > 4.
≡ ∀𝑥 ∈ 𝑅, 𝑝(𝑥) → [𝑞(𝑥 ) ∨ 𝑟(𝑥 )]
≡ ∀𝑥 ∈ 𝑅, ¬𝑝(𝑥 ) ∨ [𝑞(𝑥 ) ∨ 𝑟(𝑥 )]
¬𝑢 ≡ ∃𝑥 ∈ 𝑅, 𝑝(𝑥 ) ∧ ¬[𝑞(𝑥 ) ∨ 𝑟(𝑥 )]
≡For some real number x, 𝑥 2 > 16, 𝑥 ≥ −4 𝑎𝑛𝑑 𝑥 ≤ 4.
Answer:
6 --- Premise 3
r (c)
7 5, 6 Modus Tollens
p(c)
3 --- r (c ) Premise 2
5 4 Demorgen’s law
q(c)
Answer:
3 --- p (c ) Premise 2
4 2, 3 q (c ) Modus pones
Answer:
6 --- Premise 3
r (c)
7 5, 6 Modus Tollens
p(c)
Answer:
x,[ p( x) → r ( x)]
Answer:
5 4 p (c ) Conjunctive simplification
6 3, 5
q(c) r (c)
7 6 Modus pones
r (c )
8 4 Conjunctive simplification
s (c )
9 7, 8 Conjunctive simplification
r (c) s(c)
----
10 9
x,[r ( x) s( x)] Universal generalisation
Answer:
Answer:
5 2, 4 q (c ) Rule of syllogism
6 --- Premise 3
x,[q( x) r ( x)]
7 6 Universal specification
q(c) r (c)
8 5, 7 Disjuctive syllogism
r (c )
9 --- Premise 3
x,[s( x) → r ( x)]
10 9 Universal specification
s(c) → r (c)
11 8, 10 Rule of syllogism
s(c)
12 11 Universal generalisation
x, s( x)
Assume 𝑝 is true.
Prove 𝑞 is true using the laws of logic.
Conclusion: 𝑝 → 𝑞 is true.
Assume ¬𝑞 is true.
Prove ¬𝑝 is true using the laws of logic.
Therefore,¬𝑞 → ¬𝑝 is true. 𝒑 → 𝒒 ≡ ¬𝒒 → ¬𝒑
Conclusion: 𝑝 → 𝑞 is true.
Problems:
Answer:
Assume 𝑝 is true.
⇒ 𝑥 is a sum of two odd integers ⇒ 𝑥 = (2𝑚 + 1) + (2𝑛 +
1), 𝑤ℎ𝑒𝑟𝑒 𝑚, 𝑛 ∈ 𝐼
Prof. Narasimhan G, Dept. of mathematics, RNSIT Page 47
⇒ 𝑥 = 2𝑚 + 1 + 2𝑛 + 1
⇒ 𝑥 = 2𝑚 + 2𝑛 + 2
⇒ 𝑥 = 2(𝑚 + 𝑛 + 1)
⇒ 𝑥 is an even integer
⇒ 𝑞 is true.
∴ 𝑝 → 𝑞 is true.
∴ The given statement is true by direct proof.
Assume 𝑝 is true.
⇒ 𝑎 − 2 is divisible by 3
⇒ 𝑎 − 2 = 3𝑛, 𝑛 ∈ 𝐼
⇒ 𝑎 = 3𝑛 + 2
⇒ 𝑎2 − 1 = (3𝑛 + 2)2 − 1
= (9𝑛2 + 12𝑛 + 4) − 1
= 9𝑛2 + 12𝑛 + 3
= 3(3𝑛2 + 4𝑛 + 1)
⇒ 𝑎2 − 1 is divisible by 3.
⇒ 𝑞 is true.
∴ 𝑝 → 𝑞 is true.
∴ The given statement is true by direct proof.
Assume 𝑝 is true.
⇒ 𝑚 and 𝑛 are perfect squares
⇒ 𝑚 = 𝑎2 , 𝑛 = 𝑏2 , 𝑤ℎ𝑒𝑟𝑒 𝑎, 𝑏 ∈ 𝐼
⇒ 𝑚𝑛 = 𝑎2 𝑏2 , 𝑤ℎ𝑒𝑟𝑒 𝑎, 𝑏 ∈ 𝐼
⇒ 𝑚 = (𝑎𝑏)2 , 𝑤ℎ𝑒𝑟𝑒 𝑎𝑏 ∈ 𝐼
⇒ 𝑚𝑛 is a perfect square.
⇒ 𝑞 is true.
Prof. Narasimhan G, Dept. of mathematics, RNSIT Page 48
∴ 𝑝 → 𝑞 is true.
∴ The given statement is true by direct proof.
(e) For all integers 𝑘 and 𝑙, if 𝑘and 𝑙 are both even, then 𝑘 + 𝑙 is even.
Assume 𝑝 is true.
⇒ 𝑘 and 𝑙 are both even
⇒ 𝑘 = 2𝑚, 𝑙 = 2𝑛, 𝑤ℎ𝑒𝑟𝑒 𝑚, 𝑛 ∈ 𝐼
⇒ 𝑘 = 2𝑚 + 2𝑛
⇒ 𝑘 = 2(𝑚 + 𝑛)
⇒ 𝑘 + 𝑙 is even
⇒ 𝑞 is true.
∴ 𝑝 → 𝑞 is true.
∴ The given statement is true by direct proof.
Answer:
Assume ¬𝑞 is true.
⇒ 𝑚 + 7 is an even integer.
⇒ 𝑚 + 7 = 2𝑘, 𝑘 ∈ 𝐼 .
⇒ 𝑚 = 2𝑘 − 7, 𝑘 ∈ 𝐼
= 2𝑘 − 8 + 1, 𝑘 ∈ 𝐼
= 2(𝑘 − 4) + 1, 𝑘 ∈ 𝐼
⇒ 𝑚 is an odd integer
(c) Let if 𝑥 and 𝑦 are integers𝑝: 𝑥𝑦 is odd and 𝑞: 𝑥 and 𝑦 are both odd.
Assume ¬𝑞 is true.
⇒ 𝑥 is even or 𝑦 is even
⇒ 𝑥 = 2m or𝑦 = 2𝑛, 𝑚, 𝑛 ∈ 𝐼
⇒ 𝑥𝑦 = 2𝑚𝑦 or 𝑥𝑦 = 𝑥2𝑛 .
⇒ 𝑥𝑦 = 2(𝑚𝑦) or 2(𝑥𝑛)
⇒ 𝑥𝑦 is even
⇒ ¬𝑝 is true.
Assume ¬𝑞 is true.
⇒ 𝑛 is an even integer
⇒ 𝑛 = 2k , 𝑘 ∈ 𝐼
⇒ 𝑛2 = (2𝑘)2 = 4𝑘 2
⇒ 𝑛2 is even integer
⇒ ¬𝑝 is true.
Assume ¬𝑞 is true.
⇒ 𝑎 > √𝑛 and 𝑏 > √𝑛.
⇒ 𝑎𝑏 > 𝑛
⇒ 𝑛 is not a product of a and b.
⇒ ¬𝑝 is true.
Answer:
4. Give (i) a direct proof, (ii) an indirect proof (iii) proof by contradiction for the following
statement: If 𝑛 is an odd integer, then 𝑛 + 9 is an even integer.
[Dec ’10, July ’13, Jan ’17 ]
Answer:
Direct proof:
Assume p is true
⇒n is an odd integer.
n = 2k + 1, k I
n + 9 = 2k + 1 + 9 = 2k + 10 = 2(k + 5)
n + 9 is an even integer.
q is true. p → q is true.
Therefore, the given statement is true by a direct proof.
Indirect proof:
Assume ¬𝑞 is true
n + 9 is an odd integer.
⇒ 𝑛 + 9 = 2𝑘 + 1, 𝑓𝑜𝑟 𝑠𝑜𝑚𝑒 𝑘 ∈ 𝐼
⇒ 𝑛 = 2𝑘 + 1 − 9 = 2𝑘 − 8 = 2(𝑘 − 4), 𝑓𝑜𝑟 𝑠𝑜𝑚𝑒 𝑘 ∈ 𝐼
n is an even integer.
p is true. q → p is true.
Therefore, the given statement is true by an indirect proof.
Method of contradiction:
Prof. Narasimhan G, Dept. of mathematics, RNSIT Page 52
Assume 𝑝 → 𝑞 is false. That is, 𝑝 is true and 𝑞 is false.
⇒ 𝑛 + 9 is an odd integer.
⇒ 𝑛 + 9 = 2𝑘 + 1, 𝑓𝑜𝑟 𝑠𝑜𝑚𝑒 𝑘 ∈ 𝐼
⇒ 𝑛 = 2𝑘 − 8 = 2(𝑘 − 4)
⇒ 𝑛 is an even integer.
⇒ 𝑝 is false.