You are on page 1of 96

Nested Quantifiers

1. Nested quantifiers are used to make a proposition when we have


more than one variable in a predicate.

105 / 225
Nested Quantifiers

1. Nested quantifiers are used to make a proposition when we have


more than one variable in a predicate.
2. When nested quantifiers are used the order in which they are
used is important.

106 / 225
Symbolize the Following Statements
1. Somebody loves everybody.
2. Everybody loves Dr A P J Abdul Kalam.
3. Everybody loves somebody.
4. There is somebody whom everybody loves.
5. There is somebody who SK doesn’t love.
6. There is somebody whom no one loves.
7. A girl loves SK.
8. No one is happy.
9. Everyone is happy.
10. Every student is happy.
11. Some students are happy.
12. No student complained.
13. Not every student complained.
14. Every student of section C has visited Hyderabad or Delhi.
15. Every CSE student must study Discrete Mathematics.
107 / 225
Symbolize the Following Statements
1. Somebody loves everybody.

108 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )

109 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam.

110 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)

111 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody.

112 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )

113 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves.

114 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)

115 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love.

116 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)

117 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves.

118 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)

119 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK.

120 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )

121 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy.

122 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)

123 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)
9. Everyone is happy.

124 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)
9. Everyone is happy. ∀x(P(x) → H(x)) or ∀xH(x)

125 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)
9. Everyone is happy. ∀x(P(x) → H(x)) or ∀xH(x)
10. Every student is happy.

126 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)
9. Everyone is happy. ∀x(P(x) → H(x)) or ∀xH(x)
10. Every student is happy. ∀x(S(x) → H(x)) or ∀xH(x)

127 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)
9. Everyone is happy. ∀x(P(x) → H(x)) or ∀xH(x)
10. Every student is happy. ∀x(S(x) → H(x)) or ∀xH(x)
11. Some students are happy.

128 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)
9. Everyone is happy. ∀x(P(x) → H(x)) or ∀xH(x)
10. Every student is happy. ∀x(S(x) → H(x)) or ∀xH(x)
11. Some students are happy. ∃x(S(x) ∧ H(x)) or ∃xH(x)

129 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)
9. Everyone is happy. ∀x(P(x) → H(x)) or ∀xH(x)
10. Every student is happy. ∀x(S(x) → H(x)) or ∀xH(x)
11. Some students are happy. ∃x(S(x) ∧ H(x)) or ∃xH(x)
12. No student complained.

130 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)
9. Everyone is happy. ∀x(P(x) → H(x)) or ∀xH(x)
10. Every student is happy. ∀x(S(x) → H(x)) or ∀xH(x)
11. Some students are happy. ∃x(S(x) ∧ H(x)) or ∃xH(x)
12. No student complained. ∀x(S(x) → ¬C (x)) or ∀x¬C (x)

131 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)
9. Everyone is happy. ∀x(P(x) → H(x)) or ∀xH(x)
10. Every student is happy. ∀x(S(x) → H(x)) or ∀xH(x)
11. Some students are happy. ∃x(S(x) ∧ H(x)) or ∃xH(x)
12. No student complained. ∀x(S(x) → ¬C (x)) or ∀x¬C (x)
13. Not every student complained.

132 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)
9. Everyone is happy. ∀x(P(x) → H(x)) or ∀xH(x)
10. Every student is happy. ∀x(S(x) → H(x)) or ∀xH(x)
11. Some students are happy. ∃x(S(x) ∧ H(x)) or ∃xH(x)
12. No student complained. ∀x(S(x) → ¬C (x)) or ∀x¬C (x)
13. Not every student complained. ¬∀x(S(x) → C (x))

133 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)
9. Everyone is happy. ∀x(P(x) → H(x)) or ∀xH(x)
10. Every student is happy. ∀x(S(x) → H(x)) or ∀xH(x)
11. Some students are happy. ∃x(S(x) ∧ H(x)) or ∃xH(x)
12. No student complained. ∀x(S(x) → ¬C (x)) or ∀x¬C (x)
13. Not every student complained. ¬∀x(S(x) → C (x))
14. Every student of section I BTech CSE has visited Hyderabad or Delhi.

134 / 225
Symbolize the Following Statements
1. Somebody loves everybody. ∃x∀yL(x, y )
2. Everybody loves Kalam. ∀xL(x, Kalam)
3. Everybody loves somebody. ∀x∃yL(x, y )
4. There is somebody whom everybody loves. ∃x∀yL(y , x)
5. There is somebody whom SK doesn’t love. ∃x¬L(SK , x)
6. There is somebody whom no one loves. ∃x∀y ¬L(y , x)
7. A girl loves SK. ∃xL(x, SK )
8. No one is happy. ∀x(P(x) → ¬H(x)) or ∀x¬H(x)
9. Everyone is happy. ∀x(P(x) → H(x)) or ∀xH(x)
10. Every student is happy. ∀x(S(x) → H(x)) or ∀xH(x)
11. Some students are happy. ∃x(S(x) ∧ H(x)) or ∃xH(x)
12. No student complained. ∀x(S(x) → ¬C (x)) or ∀x¬C (x)
13. Not every student complained. ¬∀x(S(x) → C (x))
14. Every student of section I BTech CSE has visited Hyderabad or Delhi.

15. Every BTech CSE student must study Discrete Mathematics.


135 / 225
Mixing Quantifiers - Examples

1. There are infinite number of integers.

2. There is a number x such that when it is added to any number,


the result is that number, and if it is multiplied by any number,
the result is x.

136 / 225
Mixing Quantifiers - Examples - Solutions

1. There are infinite number of integers.

137 / 225
Mixing Quantifiers - Examples - Solutions

1. There are infinite number of integers.

Solution: Let P(x, y ) be the statement that x < y .


Also let the universe of discourse be the set of integers.

138 / 225
Mixing Quantifiers - Examples - Solutions

1. There are infinite number of integers.

Solution: Let P(x, y ) be the statement that x < y .


Also let the universe of discourse be the set of integers.
Then the statement can be expressed as ∀x∃yP(x, y ).

139 / 225
Mixing Quantifiers - Examples - Solutions

1. There are infinite number of integers.

Solution: Let P(x, y ) be the statement that x < y .


Also let the universe of discourse be the set of integers.
Then the statement can be expressed as ∀x∃yP(x, y ).

2. There is a number x such that when it is added to any number,


the result is that number, and if it is multiplied by any number,
the result is x.

140 / 225
Mixing Quantifiers - Examples - Solutions

1. There are infinite number of integers.

Solution: Let P(x, y ) be the statement that x < y .


Also let the universe of discourse be the set of integers.
Then the statement can be expressed as ∀x∃yP(x, y ).

2. There is a number x such that when it is added to any number,


the result is that number, and if it is multiplied by any number,
the result is x.

Solution: Let P(x, y ) be the expression x + y = y .


Also let Q(x, y ) be the expression xy = x.

141 / 225
Mixing Quantifiers - Examples - Solutions

1. There are infinite number of integers.

Solution: Let P(x, y ) be the statement that x < y .


Also let the universe of discourse be the set of integers.
Then the statement can be expressed as ∀x∃yP(x, y ).

2. There is a number x such that when it is added to any number,


the result is that number, and if it is multiplied by any number,
the result is x.

Solution: Let P(x, y ) be the expression x + y = y .


Also let Q(x, y ) be the expression xy = x.
Then the expression is ∃x∀y (P(x, y ) ∧ Q(x, y )).

142 / 225
Truth Values of Quantifiers

1. ∀xP(x) is true when

143 / 225
Truth Values of Quantifiers

1. ∀xP(x) is true when P(x) is true for all values of x.

144 / 225
Truth Values of Quantifiers

1. ∀xP(x) is true when P(x) is true for all values of x.

2. ∀xP(x) is false when − − − − − − − − − − −−

3. ∃xP(x) is true when − − − − − − − − − − −−

4. ∃xP(x) is false when − − − − − − − − − − −−

5. ¬∀xP(x) is true when − − − − − − − − − − −−

6. ¬∀xP(x) is false when − − − − − − − − − − −−

7. ¬∃xP(x) is true when − − − − − − − − − − −−

8. ¬∃xP(x) is false when − − − − − − − − − − −−

145 / 225
Truth Values of Mixed Quantifiers

1. ∀x∀yP(x, y ) is true when P(x, y ) is true for all possible values


of x and y .

2. ∀x∀yP(x, y ) is false when − − − − − − − − − − −−

3. ∀x∃yP(x, y ) is true when − − − − − − − − − − −−

4. ∀x∃yP(x, y ) is false when − − − − − − − − − − −−

5. ∃x∀yP(x, y ) is true when − − − − − − − − − − −−

6. ∃x∀yP(x, y ) is false when − − − − − − − − − − −−

7. ∃x∃yP(x, y ) is true when − − − − − − − − − − −−

8. ∃x∃yP(x, y ) is false when − − − − − − − − − − −−

146 / 225
Free and Bound Variables
1. Scope of a quantifier is the formula immediately following the
quantifier.

2. If the scope is an atomic formula then no parentheses are are


used to enclose the formula; otherwise, parentheses are needed.

3. A variable is a free variable in a formula if it occurs outside the


scope of the quantifier.
4. A variable is said to be a bound variable in a formula if it occurs
within the scope of the quantifier.
Note: In the bound occurrence of a variable, the letter which is used
to represent the variable is not important.
5. The bound occurrence of a variable cannot be substituted by a
constant; only a free occurrence of a variable can be.
147 / 225
Symbolize the Following

1. Only one student failed history.


2. No person likes a professor unless the professor is smart.

148 / 225
Symbolize the Following - Solutions

1. Only one student failed history.


Solution:

149 / 225
Symbolize the Following - Solutions

1. Only one student failed history.


Solution:
∃x∀y ((Student(x) ∧ Fails(x, History) ∧ Student(y ) ∧ Fails(y ,
History)) → (x = y))
2. No person likes a professor unless the professor is smart.

Solution:

150 / 225
Symbolize the Following - Solutions

1. Only one student failed history.


Solution:
∃x∀y ((Student(x) ∧ Fails(x, History) ∧ Student(y ) ∧ Fails(y ,
History)) → (x = y))
2. No person likes a professor unless the professor is smart.

Solution: ∀x((Professor (x) ∧ ¬Smart(x)) → ∀y ¬Likes(y , x)),


where Likes(x, y ) is x likes y .

151 / 225
Example

Q) What does the following predicate formula represent?

∀x((Student(x) ∧ Takes(x, Biology )) → ∃y (Student(y ) ∧


Takes(y , History )∧Greater (Score(History , y ), Score(Biology , x)))).

152 / 225
Example

Q) What does the following predicate formula represent?

∀x((Student(x) ∧ Takes(x, Biology )) → ∃y (Student(y ) ∧


Takes(y , History )∧Greater (Score(History , y ), Score(Biology , x)))).

Answer:
The best score in History is better than the best score in Biology.

153 / 225
Logical Equivalences Involving Quantifiers

154 / 225
Logical Equivalences Involving Quantifiers

Statements involving predicates and quantifiers are logically equiv-


alent if and only if they have the same truth value no matter which
predicates are substituted into these statements and which domain
of discourse is used for the variables in these propositional functions.

Examples:

155 / 225
Logical Equivalences Involving Quantifiers

Statements involving predicates and quantifiers are logically equiv-


alent if and only if they have the same truth value no matter which
predicates are substituted into these statements and which domain
of discourse is used for the variables in these propositional functions.

Examples:
1. ∀x (P(x) ∧ Q(x)) is logically equivalent to ∀x P(x) ∧ ∀x Q(x).

156 / 225
Logical Equivalences Involving Quantifiers

Statements involving predicates and quantifiers are logically equiv-


alent if and only if they have the same truth value no matter which
predicates are substituted into these statements and which domain
of discourse is used for the variables in these propositional functions.

Examples:
1. ∀x (P(x) ∧ Q(x)) is logically equivalent to ∀x P(x) ∧ ∀x Q(x).

2. ¬∃x P(x) is logically equivalent to ∀x ¬P(x).

157 / 225
Rules of Inference for Quantified Statements

Rule of Inference Name


∀xP(x) Universal Specification (US)
− − −−
∴ P(c) for all c

158 / 225
Rules of Inference for Quantified Statements

Rule of Inference Name


∀xP(x) Universal Specification (US)
− − −−
∴ P(c) for all c

∃xP(x) Existential Specification (ES) (or)


Existential Instantiation (EI)
− − −−
∴ P(c) for some constant c

159 / 225
Rules of Inference for Quantified Statements (Contd.)

Rule of Inference Name


P(c) for all c Universal Generalization (UG)
− − −−
∴ ∀xP(x)

160 / 225
Rules of Inference for Quantified Statements (Contd.)

Rule of Inference Name


P(c) for all c Universal Generalization (UG)
− − −−
∴ ∀xP(x)

P(c) for some c


− − −−
∴ ∃xP(x) Existential Generalization (EG)

161 / 225
Inferences - Example 1

Test the Validity of the Following Argument


1. All students are good.
2. No teacher is an Indian.
3. Good people are Indians.
4. Therefore students are not teachers.

162 / 225
Example 1 - Solution

Let S(x) : x is a student; G (x) : x is good; T (x) : x is a teacher;


and I (x) : x is an Indian.

163 / 225
Example 1 - Solution

Let S(x) : x is a student; G (x) : x is good; T (x) : x is a teacher;


and I (x) : x is an Indian.

1. All students are good. ∀x (S(x) → G (x))


2. No teacher is an Indian. ∀x (T (x) → ¬I (x))
3. Good people are Indians. ∀x (G (x) → I (x))
4. Therefore students are not teachers. ∴ ∀x (S(x) → ¬T (x))

164 / 225
Example 1 - Solution (Cont.)

1. ∀x (S(x) → G (x))
2. ∀x (T (x) → ¬I (x))
3. ∀x (G (x) → I (x))
4. ∴ ∀x (S(x) → ¬T (x))
Assertion Reasons
1.∀x (S(x) → G (x)) Premise 1

165 / 225
Example 1 - Solution (Cont.)

1. ∀x (S(x) → G (x))
2. ∀x (T (x) → ¬I (x))
3. ∀x (G (x) → I (x))
4. ∴ ∀x (S(x) → ¬T (x))
Assertion Reasons
1.∀x (S(x) → G (x)) Premise 1
2. S(a) → G (a) Step 1 and US Rule

166 / 225
Example 1 - Solution (Cont.)

1. ∀x (S(x) → G (x))
2. ∀x (T (x) → ¬I (x))
3. ∀x (G (x) → I (x))
4. ∴ ∀x (S(x) → ¬T (x))
Assertion Reasons
1.∀x (S(x) → G (x)) Premise 1
2. S(a) → G (a) Step 1 and US Rule
3.∀x (G (x) → I (x)) Premise 3

167 / 225
Example 1 - Solution (Cont.)

1. ∀x (S(x) → G (x))
2. ∀x (T (x) → ¬I (x))
3. ∀x (G (x) → I (x))
4. ∴ ∀x (S(x) → ¬T (x))
Assertion Reasons
1.∀x (S(x) → G (x)) Premise 1
2. S(a) → G (a) Step 1 and US Rule
3.∀x (G (x) → I (x)) Premise 3
4. G (a) → I (a) Step 3 and US Rule

168 / 225
Example 1 - Solution (Cont.)

1. ∀x (S(x) → G (x))
2. ∀x (T (x) → ¬I (x))
3. ∀x (G (x) → I (x))
4. ∴ ∀x (S(x) → ¬T (x))
Assertion Reasons
1.∀x (S(x) → G (x)) Premise 1
2. S(a) → G (a) Step 1 and US Rule
3.∀x (G (x) → I (x)) Premise 3
4. G (a) → I (a) Step 3 and US Rule
5. S(a) → I (a) Steps 2 & 4 and Transitive Rule

169 / 225
Example 1 - Solution (Cont.)

1. ∀x (S(x) → G (x))
2. ∀x (T (x) → ¬I (x))
3. ∀x (G (x) → I (x))
4. ∴ ∀x (S(x) → ¬T (x))
Assertion Reasons
1.∀x (S(x) → G (x)) Premise 1
2. S(a) → G (a) Step 1 and US Rule
3.∀x (G (x) → I (x)) Premise 3
4. G (a) → I (a) Step 3 and US Rule
5. S(a) → I (a) Steps 2 & 4 and Transitive Rule
6.∀x (T (x) → ¬I (x)) Premise 2

170 / 225
Example 1 - Solution (Cont.)

1. ∀x (S(x) → G (x))
2. ∀x (T (x) → ¬I (x))
3. ∀x (G (x) → I (x))
4. ∴ ∀x (S(x) → ¬T (x))
Assertion Reasons
1.∀x (S(x) → G (x)) Premise 1
2. S(a) → G (a) Step 1 and US Rule
3.∀x (G (x) → I (x)) Premise 3
4. G (a) → I (a) Step 3 and US Rule
5. S(a) → I (a) Steps 2 & 4 and Transitive Rule
6.∀x (T (x) → ¬I (x)) Premise 2
7. T (a) → ¬I (a) Step 6 and US Rule

171 / 225
Example 1 - Solution (Cont.)

1. ∀x (S(x) → G (x))
2. ∀x (T (x) → ¬I (x))
3. ∀x (G (x) → I (x))
4. ∴ ∀x (S(x) → ¬T (x))
Assertion Reasons
1.∀x (S(x) → G (x)) Premise 1
2. S(a) → G (a) Step 1 and US Rule
3.∀x (G (x) → I (x)) Premise 3
4. G (a) → I (a) Step 3 and US Rule
5. S(a) → I (a) Steps 2 & 4 and Transitive Rule
6.∀x (T (x) → ¬I (x)) Premise 2
7. T (a) → ¬I (a) Step 6 and US Rule
8. I (a) → ¬T (a) Step 7 : Equivalent Formula

172 / 225
Example 1 - Solution (Cont.)

1. ∀x (S(x) → G (x))
2. ∀x (T (x) → ¬I (x))
3. ∀x (G (x) → I (x))
4. ∴ ∀x (S(x) → ¬T (x))
Assertion Reasons
1.∀x (S(x) → G (x)) Premise 1
2. S(a) → G (a) Step 1 and US Rule
3.∀x (G (x) → I (x)) Premise 3
4. G (a) → I (a) Step 3 and US Rule
5. S(a) → I (a) Steps 2 & 4 and Transitive Rule
6.∀x (T (x) → ¬I (x)) Premise 2
7. T (a) → ¬I (a) Step 6 and US Rule
8. I (a) → ¬T (a) Step 7 : Equivalent Formula
9. S(a) → ¬T (a) Steps 5 & 8 and Transitive Rule

173 / 225
Example 1 - Solution (Cont.)

1. ∀x (S(x) → G (x))
2. ∀x (T (x) → ¬I (x))
3. ∀x (G (x) → I (x))
4. ∴ ∀x (S(x) → ¬T (x))
Assertion Reasons
1.∀x (S(x) → G (x)) Premise 1
2. S(a) → G (a) Step 1 and US Rule
3.∀x (G (x) → I (x)) Premise 3
4. G (a) → I (a) Step 3 and US Rule
5. S(a) → I (a) Steps 2 & 4 and Transitive Rule
6.∀x (T (x) → ¬I (x)) Premise 2
7. T (a) → ¬I (a) Step 6 and US Rule
8. I (a) → ¬T (a) Step 7 : Equivalent Formula
9. S(a) → ¬T (a) Steps 5 & 8 and Transitive Rule
10. ∀x (S(x) → ¬T (x)) Step 9 and UG Rule
174 / 225
Inferences - Example 2

Test the validity of the following argument.


(Taken from Joe L.Mott’s textbook)

1. Babies are illogical.


2. Nobody who can tame a crocodile is despised.
3. Illogical persons are despised.
4. Therefore babies can‘t tame crocodiles.

175 / 225
Example 2 - Solution

Let T (x) = x can tame a crocodile; B(x) = x is a baby; D(x) =


x is despised and L(x) = x is logical”.

1. Babies are illogical. ∀x (B(x) → ¬L(x))


2. Nobody who can tame a crocodile is despised.
∀x (T (x) → ¬D(x))
3. Illogical persons are despised. ∀x (¬L(x) → D(x))
4. Therefore babies can‘t tame crocodiles. ∴ ∀x (B(x) → ¬T (x))

176 / 225
Example 2- Solution (Cont.)

1. ∀x (B(x) → ¬L(x))
2. ∀x (T (x) → ¬D(x))
3. ∀x (¬L(x) → D(x))
4. ∴ ∀x (B(x) → ¬T (x))
Assertion Reasons
1.∀x (B(x) → ¬L(x)) Premise 1

177 / 225
Example 2- Solution (Cont.)

1. ∀x (B(x) → ¬L(x))
2. ∀x (T (x) → ¬D(x))
3. ∀x (¬L(x) → D(x))
4. ∴ ∀x (B(x) → ¬T (x))
Assertion Reasons
1.∀x (B(x) → ¬L(x)) Premise 1
2. B(a) → ¬L(a) Step 1 and US Rule

178 / 225
Example 2- Solution (Cont.)

1. ∀x (B(x) → ¬L(x))
2. ∀x (T (x) → ¬D(x))
3. ∀x (¬L(x) → D(x))
4. ∴ ∀x (B(x) → ¬T (x))
Assertion Reasons
1.∀x (B(x) → ¬L(x)) Premise 1
2. B(a) → ¬L(a) Step 1 and US Rule
3.∀x (¬L(x) → D(x)) Premise 3

179 / 225
Example 2- Solution (Cont.)

1. ∀x (B(x) → ¬L(x))
2. ∀x (T (x) → ¬D(x))
3. ∀x (¬L(x) → D(x))
4. ∴ ∀x (B(x) → ¬T (x))
Assertion Reasons
1.∀x (B(x) → ¬L(x)) Premise 1
2. B(a) → ¬L(a) Step 1 and US Rule
3.∀x (¬L(x) → D(x)) Premise 3
4. ¬L(a) → D(a) Step 3 and US Rule

180 / 225
Example 2- Solution (Cont.)

1. ∀x (B(x) → ¬L(x))
2. ∀x (T (x) → ¬D(x))
3. ∀x (¬L(x) → D(x))
4. ∴ ∀x (B(x) → ¬T (x))
Assertion Reasons
1.∀x (B(x) → ¬L(x)) Premise 1
2. B(a) → ¬L(a) Step 1 and US Rule
3.∀x (¬L(x) → D(x)) Premise 3
4. ¬L(a) → D(a) Step 3 and US Rule
5. B(a) → D(a) Steps 2 & 4 and Transitive Rule

181 / 225
Example 2- Solution (Cont.)

1. ∀x (B(x) → ¬L(x))
2. ∀x (T (x) → ¬D(x))
3. ∀x (¬L(x) → D(x))
4. ∴ ∀x (B(x) → ¬T (x))
Assertion Reasons
1.∀x (B(x) → ¬L(x)) Premise 1
2. B(a) → ¬L(a) Step 1 and US Rule
3.∀x (¬L(x) → D(x)) Premise 3
4. ¬L(a) → D(a) Step 3 and US Rule
5. B(a) → D(a) Steps 2 & 4 and Transitive Rule
6.∀x (T (x) → ¬D(x)) Premise 2

182 / 225
Example 2- Solution (Cont.)

1. ∀x (B(x) → ¬L(x))
2. ∀x (T (x) → ¬D(x))
3. ∀x (¬L(x) → D(x))
4. ∴ ∀x (B(x) → ¬T (x))
Assertion Reasons
1.∀x (B(x) → ¬L(x)) Premise 1
2. B(a) → ¬L(a) Step 1 and US Rule
3.∀x (¬L(x) → D(x)) Premise 3
4. ¬L(a) → D(a) Step 3 and US Rule
5. B(a) → D(a) Steps 2 & 4 and Transitive Rule
6.∀x (T (x) → ¬D(x)) Premise 2
7. T (a) → ¬D(a) Step 6 and US Rule

183 / 225
Example 2- Solution (Cont.)

1. ∀x (B(x) → ¬L(x))
2. ∀x (T (x) → ¬D(x))
3. ∀x (¬L(x) → D(x))
4. ∴ ∀x (B(x) → ¬T (x))
Assertion Reasons
1.∀x (B(x) → ¬L(x)) Premise 1
2. B(a) → ¬L(a) Step 1 and US Rule
3.∀x (¬L(x) → D(x)) Premise 3
4. ¬L(a) → D(a) Step 3 and US Rule
5. B(a) → D(a) Steps 2 & 4 and Transitive Rule
6.∀x (T (x) → ¬D(x)) Premise 2
7. T (a) → ¬D(a) Step 6 and US Rule
8. D(a) → ¬T (a) Step 7 : Equivalent Formula

184 / 225
Example 2- Solution (Cont.)

1. ∀x (B(x) → ¬L(x))
2. ∀x (T (x) → ¬D(x))
3. ∀x (¬L(x) → D(x))
4. ∴ ∀x (B(x) → ¬T (x))
Assertion Reasons
1.∀x (B(x) → ¬L(x)) Premise 1
2. B(a) → ¬L(a) Step 1 and US Rule
3.∀x (¬L(x) → D(x)) Premise 3
4. ¬L(a) → D(a) Step 3 and US Rule
5. B(a) → D(a) Steps 2 & 4 and Transitive Rule
6.∀x (T (x) → ¬D(x)) Premise 2
7. T (a) → ¬D(a) Step 6 and US Rule
8. D(a) → ¬T (a) Step 7 : Equivalent Formula
9. B(a) → ¬T (a) Steps 5 & 8 and Transitive Rule

185 / 225
Example 2- Solution (Cont.)

1. ∀x (B(x) → ¬L(x))
2. ∀x (T (x) → ¬D(x))
3. ∀x (¬L(x) → D(x))
4. ∴ ∀x (B(x) → ¬T (x))
Assertion Reasons
1.∀x (B(x) → ¬L(x)) Premise 1
2. B(a) → ¬L(a) Step 1 and US Rule
3.∀x (¬L(x) → D(x)) Premise 3
4. ¬L(a) → D(a) Step 3 and US Rule
5. B(a) → D(a) Steps 2 & 4 and Transitive Rule
6.∀x (T (x) → ¬D(x)) Premise 2
7. T (a) → ¬D(a) Step 6 and US Rule
8. D(a) → ¬T (a) Step 7 : Equivalent Formula
9. B(a) → ¬T (a) Steps 5 & 8 and Transitive Rule
10. ∀x (B(x) → ¬T (x)) Step 9 and UG Rule
186 / 225
Inferences - Example 3

Is the following statement true?

If politicians are not money-minded and some money-minded


persons are not honest then there are some persons who are
neither politicians nor honest.

187 / 225
Inferences - Example 3

Is the following statement true?

If politicians are not money-minded and some money-minded


persons are not honest then there are some persons who are
neither politicians nor honest.
Let P(x)=x is a politician;M(x) = x is not money-minded and
H(x) = x is not honest.

188 / 225
Inferences - Example 3

Is the following statement true?

If politicians are not money-minded and some money-minded


persons are not honest then there are some persons who are
neither politicians nor honest.
Let P(x)=x is a politician;M(x) = x is not money-minded and
H(x) = x is not honest.
Then the given statement is
((∀x(P(x) → M(x))) ∧ ∃x(¬M(x) ∧ H(x))) → ∃x(¬P(x) ∧ H(x))
i.e.,
1. ∀x(P(x) → M(x))
2. ∃x(¬M(x) ∧ H(x))
3. ∴ ∃x(¬P(x) ∧ H(x))

189 / 225
Example 3 - Solution

1. ∀x(P(x) → M(x))
2. ∃x(¬M(x) ∧ H(x))
3. ∴ ∃x(¬P(x) ∧ H(x))
Assertion Reasons
1.∀x (P(x) → M(x)) Premise 1

190 / 225
Example 3 - Solution

1. ∀x(P(x) → M(x))
2. ∃x(¬M(x) ∧ H(x))
3. ∴ ∃x(¬P(x) ∧ H(x))
Assertion Reasons
1.∀x (P(x) → M(x)) Premise 1
2. P(a) → M(a) Step 1 and US Rule

191 / 225
Example 3 - Solution

1. ∀x(P(x) → M(x))
2. ∃x(¬M(x) ∧ H(x))
3. ∴ ∃x(¬P(x) ∧ H(x))
Assertion Reasons
1.∀x (P(x) → M(x)) Premise 1
2. P(a) → M(a) Step 1 and US Rule
3. ¬M(a) → ¬P(a) Step 2 : Equivalent Formula

192 / 225
Example 3 - Solution

1. ∀x(P(x) → M(x))
2. ∃x(¬M(x) ∧ H(x))
3. ∴ ∃x(¬P(x) ∧ H(x))
Assertion Reasons
1.∀x (P(x) → M(x)) Premise 1
2. P(a) → M(a) Step 1 and US Rule
3. ¬M(a) → ¬P(a) Step 2 : Equivalent Formula
4. ∃x(¬M(x) ∧ H(x)) Premise 2

193 / 225
Example 3 - Solution

1. ∀x(P(x) → M(x))
2. ∃x(¬M(x) ∧ H(x))
3. ∴ ∃x(¬P(x) ∧ H(x))
Assertion Reasons
1.∀x (P(x) → M(x)) Premise 1
2. P(a) → M(a) Step 1 and US Rule
3. ¬M(a) → ¬P(a) Step 2 : Equivalent Formula
4. ∃x(¬M(x) ∧ H(x)) Premise 2
5. ¬M(a) ∧ H(a) Step 4 and ES Rule

194 / 225
Example 3 - Solution

1. ∀x(P(x) → M(x))
2. ∃x(¬M(x) ∧ H(x))
3. ∴ ∃x(¬P(x) ∧ H(x))
Assertion Reasons
1.∀x (P(x) → M(x)) Premise 1
2. P(a) → M(a) Step 1 and US Rule
3. ¬M(a) → ¬P(a) Step 2 : Equivalent Formula
4. ∃x(¬M(x) ∧ H(x)) Premise 2
5. ¬M(a) ∧ H(a) Step 4 and ES Rule
6. ¬M(a) Step 5 and Simplification Rule

195 / 225
Example 3 - Solution

1. ∀x(P(x) → M(x))
2. ∃x(¬M(x) ∧ H(x))
3. ∴ ∃x(¬P(x) ∧ H(x))
Assertion Reasons
1.∀x (P(x) → M(x)) Premise 1
2. P(a) → M(a) Step 1 and US Rule
3. ¬M(a) → ¬P(a) Step 2 : Equivalent Formula
4. ∃x(¬M(x) ∧ H(x)) Premise 2
5. ¬M(a) ∧ H(a) Step 4 and ES Rule
6. ¬M(a) Step 5 and Simplification Rule
7. ¬P(a) Steps 3 & 6 and Modus Ponens Rule

196 / 225
Example 3 - Solution

1. ∀x(P(x) → M(x))
2. ∃x(¬M(x) ∧ H(x))
3. ∴ ∃x(¬P(x) ∧ H(x))
Assertion Reasons
1.∀x (P(x) → M(x)) Premise 1
2. P(a) → M(a) Step 1 and US Rule
3. ¬M(a) → ¬P(a) Step 2 : Equivalent Formula
4. ∃x(¬M(x) ∧ H(x)) Premise 2
5. ¬M(a) ∧ H(a) Step 4 and ES Rule
6. ¬M(a) Step 5 and Simplification Rule
7. ¬P(a) Steps 3 & 6 and Modus Ponens Rule
8. H(a) Step 5 and Simplification Rule

197 / 225
Example 3 - Solution

1. ∀x(P(x) → M(x))
2. ∃x(¬M(x) ∧ H(x))
3. ∴ ∃x(¬P(x) ∧ H(x))
Assertion Reasons
1.∀x (P(x) → M(x)) Premise 1
2. P(a) → M(a) Step 1 and US Rule
3. ¬M(a) → ¬P(a) Step 2 : Equivalent Formula
4. ∃x(¬M(x) ∧ H(x)) Premise 2
5. ¬M(a) ∧ H(a) Step 4 and ES Rule
6. ¬M(a) Step 5 and Simplification Rule
7. ¬P(a) Steps 3 & 6 and Modus Ponens Rule
8. H(a) Step 5 and Simplification Rule
9. ¬P(a) ∧ H(a) Steps 7 & 8 and Conjunction Rule

198 / 225
Example 3 - Solution

1. ∀x(P(x) → M(x))
2. ∃x(¬M(x) ∧ H(x))
3. ∴ ∃x(¬P(x) ∧ H(x))
Assertion Reasons
1.∀x (P(x) → M(x)) Premise 1
2. P(a) → M(a) Step 1 and US Rule
3. ¬M(a) → ¬P(a) Step 2 : Equivalent Formula
4. ∃x(¬M(x) ∧ H(x)) Premise 2
5. ¬M(a) ∧ H(a) Step 4 and ES Rule
6. ¬M(a) Step 5 and Simplification Rule
7. ¬P(a) Steps 3 & 6 and Modus Ponens Rule
8. H(a) Step 5 and Simplification Rule
9. ¬P(a) ∧ H(a) Steps 7 & 8 and Conjunction Rule
10. ∃x(¬P(x) ∧ H(x)) Step 9 and EG Rule

199 / 225
Example 3 - Solution

1. ∀x(P(x) → M(x))
2. ∃x(¬M(x) ∧ H(x))
3. ∴ ∃x(¬P(x) ∧ H(x))
Assertion Reasons
1.∀x (P(x) → M(x)) Premise 1
2. P(a) → M(a) Step 1 and US Rule
3. ¬M(a) → ¬P(a) Step 2 : Equivalent Formula
4. ∃x(¬M(x) ∧ H(x)) Premise 2
5. ¬M(a) ∧ H(a) Step 4 and ES Rule
6. ¬M(a) Step 5 and Simplification Rule
7. ¬P(a) Steps 3 & 6 and Modus Ponens Rule
8. H(a) Step 5 and Simplification Rule
9. ¬P(a) ∧ H(a) Steps 7 & 8 and Conjunction Rule
10. ∃x(¬P(x) ∧ H(x)) Step 9 and EG Rule
Hence the statement is true.
200 / 225

You might also like