Inference and Predicate
Inference and Predicate
𝒑𝟏 ∧ 𝒑𝟐 ∧ 𝒑𝟑 ∧ ⋯ ∧ 𝒑𝒏 ⟶ 𝒒 is a tautology,
then we say that 𝒒 logically follows from
𝒑𝟏 , 𝒑𝟐 , … , 𝒑𝒏 . The 𝒑𝒊 ’s are called the
hypotheses or premises and 𝒒 is called the
conclusion.
RULES OF INFERENCE
SIMPLIFICATION
q
ADDITION
CONJUNCTION
MODUS PONENS
MODUS TOLLENS
HYPOTHETICAL
SYLLOGISM
DISJUNCTIVE SYLLOGISM
1.Show that 𝑺 is a valid inference from the
premises 𝑷 →∼ 𝑸, 𝑸 ∨ 𝑹, ∼ 𝑺 → 𝑷 and ∼ 𝑹.
Solution:
1 Rule P
2 Rule P
4 Rule P
6 Rule P
Rule T 5,6 Modus Tollens and
7
double negation.
2.Show that 𝑹 ∧ (𝑷 ∨ 𝑸) is a valid conclusion
from the premises 𝑷 ∨ 𝑸, 𝑸 → 𝑹, 𝑷 → 𝑴, ¬𝑴.
Solution:
SOLUTION:
1 Rule P
2 Rule T, 1 Simplification
3 Rule T, 1 Simplification
4 Rule P
5 Rule T, 4 Simplification
6 Rule T, 4 Simplification
Step No Statement Reason
9 Rule P
Rule T 7,10
11
12 Rule P
premises alone.
NOTE :
1 Rule P
2 Rule P
4 Rule P
6 Rule P
8 S Rule CP.
6.Prove that 𝑨 → ¬𝑫 is a conclusion from the premises
𝑨 → (𝑩 ∨ 𝑪), 𝑩 → ¬𝑨 and 𝐃 → ¬C by using conditional
proof.
Solution:
Step No Statement Reason
Solution :
Step Statement Reason
1 Rule P
2 Rule T 1, Simplification
3 Rule T 1, Simplification
4 Rule P
6 Rule P
8 Rule T 7, Simplification
9 Rule T 7, Simplification
6 Rule P
9 Rule P
10 Rule P
4 Rule P
6 Rule P
8 Rule P
Solution:
1 Rule P
2 Rule P
4 Rule T 3,
5 Rule T 4,
6 Rule P
8 Rule T 7,
9 Rule T 8,
Solution:
Let P : It rains
Q : There is traffic dislocation
R : Sports day will be held
S : Cultural programme will go on
T : Trophy will be awarded.
The premises are (¬𝑷 ∨ ¬𝑸) → (𝑹 ∧ 𝑺), 𝑹 → 𝑻, ¬𝑻 ⇒ 𝑷
Step Statement Reason
1 Rule P
2 Rule P
4 Rule T 3, Addition
6 Rule P
9 Rule T 8,
10 Rule T 9, Simplification
Predicate Calculus
• Sometimes it was not possible to express
the fact that any two atomic statements have
some features in common.
• In order to investigate questions of this
nature, we introduce the concept of a predicate
in an atomic statement.
• The logic based upon the analysis of
predicate in any statement is called predicate
calculus.
Example 1:
1) John is a Bachelor.
2) Smith is a Bachelor.
Example 2:
1. Universal quantifier.
2. Existential quantifier.
Universal Quantifier
Note :
2) 𝐱 𝐏 𝐱 →𝐐 𝐱 .
Scope of the universal quantifier is 𝐏 𝒙 → 𝐐 𝒙
and all occurences of 𝒙 are bound.
3) (𝐱)(𝐏 𝐱 → ∃𝐲 𝐑 𝐱, 𝐲 )
Solution :
Let 𝑴 𝒙 : 𝒙 is a man.
𝑮 𝒙 ∶ 𝒙 is a giant.
∃𝐱 𝐌 𝐱 ∧ 𝐆 𝐱 .
2. Give the symbolic form of “All cats have
tails” and “No cats have tail” .
Solution :
Let 𝐂 𝐱 ∶ 𝐱 is a cat.
𝐓 𝐱 ∶ 𝐱 has a tail.
∀𝐱 𝐂 𝐱 →𝐓 𝐱 .
∀𝒙 𝑪 𝒙 → ¬𝑻 𝒙 .
3.Negate the statement : “ Every student in
this class is intelligent” in two different
ways.
Solution :
Form 1 :
Form 2 :
Solution :
𝒙 = 𝟎. 𝟓, 𝒙𝟐 = 𝟎. 𝟐𝟓 < 𝒙 = 𝟎. 𝟓
¬ ∀𝒙 𝒙𝟐 ≥ 𝒙 = ∃𝒙 ¬ 𝒙𝟐 ≥ 𝒙 = ∃𝒙 𝒙𝟐 < 𝒙 .
Inference Theory for Predicate
Calculus
1 Rule P
2 Rule US, 1
3 Rule P
4 Rule US, 3
5 Rule T 2, Contrapositive
7 Rule UG, 6
2. Use indirect method to prove that the
conclusion ∃𝐳 𝐐(𝐳) follows from the premises
∀𝒙 𝑷 𝒙 → 𝑸 𝒙 and ∃𝒚 𝑷(𝒚).
Solution :
By using indirect method, we take ¬ ∃𝐳 𝐐(𝐳) as
additional premise.
3 Rule US, 2
Step Statement Reason
4 Rule P
5 Rule US, 4
6 Rule P
7 Rule ES, 6
10 Contradiction
3. Use indirect method of proof to prove that
∀𝐱 𝑷 𝒙 ∨𝑸 𝒙 ⇒ ∀𝐱 𝐏 𝐱 ∨ ∃𝐱 𝐐(𝐱).
Solution :
By using indirect method, we take ¬ ∀𝐱 𝐏 𝐱 ∨ ∃𝐱 𝐐 𝐱 as
additional premise.
3 Rule T 2, Simplification
4 Rule T 2, Smplification
Step Statement Reason
5 Rule T 3,
6 Rule T 4,
7 Rule ES, 5
8 Rule US, 6
9 Rule P
10 Rule US, 9
14 F Contradiction
4. Prove that ∀𝒙 𝑷 𝒙 → 𝑸 𝒚 ∧𝑹 𝒙 ,
∃𝒙 𝑷 𝒙 ⇒ 𝑸 𝒚 ∧ ∃𝒙 𝑷 𝒙 ∧ 𝑹 𝒙 .
Solution :
Step Statement Reason
1 Rule P
2 Rule US, 1
3 Rule P
4 Rule ES, 3
5 Rule T 4,2 Modus Ponens
6 Rule T 5, Simplification
7 Rule T 5, Simplification
8 Rule T 4,7 Conjunction
9 Rule EG, 8
10 Rule T 6,9 Conjunction
1.Establish the validity of the following argument
All men are mortal. Socrates is a man. Therefore
Socrates is mortal.
Solution :
Let 𝑯 𝒙 ∶ 𝒙 is a man.
𝑴 𝒙 ∶ 𝒙 is a mortal.
The premises are
𝒙 𝑯 𝒙 →𝑴 𝒙 ,𝑯 𝒔 ⇒𝑴 𝒔 .
Step Statement Reason
1 Rule P
2 Rule US, 1
3 Rule P
4 Rule T 3,2 Modus Ponens
Solution :
∃𝐱 𝐂 𝐱 ∧ ¬𝐁 𝐱 , ∀𝐱 𝐂 𝐱 → 𝐏 𝐱 ⇒ ∃𝒙 𝑷 𝒙 ∧ ¬𝑩 𝒙 .
Step Statement Reason
1 Rule P
2 Rule ES, 1
3 Rule T 2, Simplification
4 Rule T 2, Simplification
5 Rule P
6 Rule US, 5
9 Rule EG, 8
3. Verify the validity of the following argument. Every living
thing is a plant or an animal. John’s gold fish is alive and
it is not a plant. All animals have hearts. Therefore,
John’s gold fish has a heart.
Solution :
Universe of discourse : Set of all living things.
𝑷 𝒙 ∶ 𝒙 is a plant.
𝑨 𝒙 ∶ 𝒙 is an animal.
𝑯 𝒙 ∶ 𝒙 has a heart.
1 Rule P
2 Rule US, 1
3 Rule P
5 Rule P
6 Rule US, 5
Solution :
Let 𝑮 𝒙 , 𝒚 : 𝒙𝟐 + 𝒚𝟐 ≥ 𝟏𝟎𝟎
𝒙 ∃ 𝒚 𝑮 𝒙,𝒚 .
2. Let 𝐐 𝒙, 𝒚, 𝒛 denote the statement "𝒙 + 𝒚 = 𝒛" defined
on the universe of discourse 𝒁 , the set of all
integers. What are the truth values of the
propositions 𝑸 𝟏, 𝟏, 𝟏 and 𝑸 𝟏, 𝟏, 𝟐 .
Solution :
𝑸 𝟏, 𝟏, 𝟏 ∶ 𝟏 + 𝟏 = 𝟏 which is False.
𝑸 𝟏, 𝟏, 𝟐 ∶ 𝟏 + 𝟏 = 𝟐 which is True.
3. Symbolize the following statement with and without
using the set of positive integers as the universe of
discourse “ Given any positive integer, there is a
greater positive integer”.
Solution :
(1) Universe of discourse : Set of positive integers.
Let 𝑮 𝒙, 𝒚 ∶ 𝒙 is greater than 𝒚.
The symbolic form is
𝒙 ∃𝒚 𝑮 𝒙 , 𝒚 .
(2) Universe of discourse : Set of integers.
Let 𝑷 𝒙 ∶ 𝒙 is a positive integer.
𝑮 𝒙, 𝒚 ∶ 𝒙 is greater than 𝒚.
The symbolic form is
𝒙 𝑷 𝒙 → ∃𝒚 𝑷 𝒚 ∧ 𝑮 𝒙 , 𝒚 .
3.Show that ¬ 𝑷 𝒂, 𝒃 follows logically from
𝒙 𝒚 𝑷 𝒙, 𝒚 → 𝑾 𝒙, 𝒚 and ¬ 𝑾 𝒂, 𝒃 .
Solution :
1 Rule P
2 Rule US, 1
3 Rule US, 2
4 Rule P
1. Direct Proof :
ie. 𝑯 → 𝑪 ≡ 𝑯 ∧ ¬𝑪 → 𝑭, where 𝑯 ≡ 𝑯𝟏 ∧ 𝑯𝟐 ∧ ⋯ ∧ 𝑯𝒏 .
Solution :
Solution :
Then 𝟐 is rational.
𝒂
So, 𝟐 = , where 𝒂 and 𝒃 have no common
𝒃
factors.
𝒂 𝒂𝟐
𝟐= ⇒ 𝟐=
𝒃 𝒃𝟐
Hence 𝒂𝟐 = 𝟐 𝒃𝟐 .
This means that 𝒂𝟐 is even, implying that 𝒂 is
even.
Furthermore, 𝒂 = 𝟐𝒄 for some integer 𝒄.
Therefore, 𝟐𝒄 𝟐 = 𝟐 𝒃𝟐
𝟒 𝒄𝟐 = 𝟐 𝒃𝟐
⇒ 𝒃𝟐 = 𝟐 𝒄𝟐
This means that 𝒃𝟐 is also even and hence 𝒃 is
even.
Therefore, 𝐛 = 𝟐𝒌 for some integer 𝒌.
Thus 𝒂 and 𝒃 are even.
Hence, 𝟐 is irrational.