0% found this document useful (0 votes)
12 views

Module 1

MATHEMATICAL LOGICS

Uploaded by

srusti P D
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Module 1

MATHEMATICAL LOGICS

Uploaded by

srusti P D
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 48

18CS36

Discrete Mathematical Structures


(Forthe 3rd SemesterComputer Science and
Engineering Students)

Module1
Mathematical Logic

Prepared by
Venkatesh P
Assistant Professor
Department of Science and Humanities
Sri Sairam College of Engineering
Anekal, Bengaluru
-562106
Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 1


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

p ¬p

0 1

1 0

2. Conjunction:
A compound proposition obtained by combining two given propositions by inserting the

The conjunctionof two propositions p and q is denoted pby˄ q (read ‘p and q’). The
conjunction p ˄ qis true only when p is true and q isintrue,
all other cases it is false. i.e., the
truth value of the conjunction
p ˄ qis 1 only when the truth value of p is 1 and truth value of
q is 1, in all other cases the truth value
p ˄ qof
is 0.
Example:

p: √2 is an irrational number.
q: 9 isa 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:

word ‘and’ in between them is called the conjunction of the given proposition.
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:

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 2


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

p: All triangles are equilateral.


q: 2+5=7. p ˅ q: All triangles are
equilateral or 2+5=7.

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.

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 3


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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.

Problems:

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 4


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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

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

(ⅴ) 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

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

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 5


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 6


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 7


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 8


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 9


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 10


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 11


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 12


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 13


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 14


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 15


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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.

Solution:
(ⅰ) p ˅ q ˄ [ ¬ {(¬ p) ˄ q}]
= p ˅ q ˄ {(¬ ¬ p) ˅ (¬ q)} By De Morgan’s law
= p ˅ q ˄ {p ˅ (¬ q)} By Law of double negation

˅ ˄
= p ˅ Fo By Inverse law = p {q
(¬ q)}
=p By Identity law

(ⅱ) p ˅ q ˄ [ ¬ {(¬ p) ˅ q}] By


= (p ˅ q) ˄ {p ˄ (¬ q)}

= {(p ˅ q) ˄ p)} ˄ (¬ q) Using Associative law


Distributive law

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 16


= {p ˄ (p ˅ q)} ˄ (¬ q) Using Commutative law
= p ˄ (¬ -q)
Regulation Using Absorption
2018 (CBCS Scheme) Discrete mathematical law-18CS36
structure

(ⅲ) ¬ [ ¬ {(p ˅ q) ˄ r} ˅ (¬ q)]


= ¬ [ ¬ {((p ˅ q) ˄ r) ˄ q}] Using De Morgan’s law
= ((p ˅ q) ˄ r) ˄ q UsingofADouble
Law ssociative law
negation
= (p ˅ q) ˄ (q ˄ r) Using Associative and Commutative law
(ii). [(¬ p ˅ ¬ q) → (p ˄ q ˄ r)]⇔
= {(p q) q} r Using Associative law
˅ ˄ ˄
=q˄r
2. Prove the following logically
without using truth table.
(i). [p ˅ q ˅ (¬ p ˄ ¬ q ˄ r)] p ˅ q ˅ r
p˄q (pⅴq) ⅴ (¬ (pⅴq) ˄ r)
(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)] ˄ (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:

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 17


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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)

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 18


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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 ]d [(p ˄ ¬ q) ⅴ (q ˄ ¬ p)]d [( pⅴ¬ q) ˄ (qⅴ¬ p)]

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 19


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 20


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

¬ [ ¬ p ˄ ¬ q]
¬p↑¬q
ⅱ. ¬ (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))]

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 21


⇔ ¬ (q ˄ r)]
⇔ ¬ pⅴ (q ˄ r)
Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36
(ii). (p ↑ q) ↑ r ⇔ ¬ [(p ↑ q) ˄ r]

⇔ ¬
⇔ ¬ [¬ (p ˄ q)] ⅴ ¬ r [¬ (p
˄ q)
⇔ (p ˄ q) ⅴ¬ r
˄ 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

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 22


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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.

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 23


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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
ⅰ) If the triangle is not isosceles, then it is not equilateral
ⅱ) If the real number x 2 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:
(ⅰ) 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.

(ⅱ) 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.
ⅰ) If the triangle is not isosceles, then it is not equilateral

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 24


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

ⅱ) 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 x 2 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.

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 25


quadrilateral is a parallelogram
.

Regulation-2018 (CBCS Scheme) Discrete mathematical structure


-18CS36

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 26


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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
p→q given
𝑝
∴𝑞
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)
𝑝→𝑟
¬𝑟
∴¬𝑝
statement reads

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 27


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 28


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

q: Sachin gets a free car.

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 29


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

The given statement reads

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

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 30


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Then the given argument reads

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 grad e 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.

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 31


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

∴ 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

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 32


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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)
By Commutative law
⇔ (p → q) ˄ (¬ p → r) ˄ (r → s)
Using Rule of Syllogism
⇔ (p → q) ˄ (¬ p → s)
Using Contrapositive
⇔ (¬ q → ¬ p) ˄ (¬ p → s)
UsingRule of Syllogism
⇔ (¬ q → s)
⇔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.

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 33


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 34


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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:

ⅰ) At least one integer is even.


ⅱ) There exists a positive integer that is even.
ⅲ) Some integers are divisible by 3.

ⅳ) every integer is either odd or even.

ⅴ) if x is even and a perfect square, then is not divisible by 3.

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

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 35


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

ⅰ) ∃x, q(x)
ⅱ) ∃x, [ p(x) ˄ q(x)]
ⅲ) ∃x, [ q(x) ˄ s(x)]

ⅵ) Ɐx, [ q(x) ⊻ ¬ q(x)]

ⅴ) Ɐx [ {q(x) ˄ r(x)} → s(x)]

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

ⅰ) Ɐ x [p(x) ˄ q(x)] ⇔ (Ɐ x, p(x)) ˄ (Ɐ x, q(x))

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

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

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 36


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 37


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Accordingly:

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

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

(ⅲ) Since q(x) and r(x) are false for x=2, the statement ∃ x, [q(x) → r(x)] is true.
(ⅳ) 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.

(ⅰ). ∃ 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

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


≡ Ɐ x, [ ¬ p(x) ˄ ¬ q(x)]

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


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

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


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

(ⅳ) ¬ [∃ 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

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 38


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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

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)

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 39


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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

⇒¬ [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:
Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 40
Ɐ x, [p(x) → q(x)]
Ɐ x, [q(x) → r(x)]
Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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. ⅰ) ∃ x, ∃ y [xy=1]
ⅱ) ∃ x Ɐ y [xy=1]
ⅲ) Ɐ x ∃ y [xy=1]
ⅳ) ∃ x, ∃ y, [(2x+y=5) ʌ (x-3y=-8)]
ⅴ) ∃ x, ∃ y, [(3x-y=17) ʌ (2x+4y=3)]

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 41


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Solution: (ⅰ) true (take x=1, y=1)

(ⅱ) False (for specified x, xy=1 for every y is not true)

(ⅲ) false (for x=2, there is no integer y such that xy=1)

(ⅳ) true (take x=1, y=3)


(ⅴ) 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:

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 42


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

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.
(ⅰ) for all integers k and l, if kl is odd then both k and l are odd.
(ⅱ) 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.
(ⅱ). 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:
(ⅰ) 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.

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 43


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

(ⅱ) 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.
(ⅲ) 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+1 2

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 n 2=n
or Ɐn {n2=n}.
Solution:

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 44


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

For n=0 it is true that n 2=02=0=n and if n=1 is also true that n 2=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.

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 45


Regulation-2018 (CBCS Scheme) Discrete mathematical structure
-18CS36

Prepared by: Venkatesh.P Sri Sairam college of engineering Page | 46

You might also like