Professional Documents
Culture Documents
• COMBINATORICS
• GRAPHS
• ALGEBRAIC STRUCTURES
❖Predicate Logic.
Propositional Logic
• The study of propositional logic consist
of syntax (grammar), sematics (meaning),
inference rules and derivation.
• Propositional logic can be considered as
a language of human reasoning.
• It consists of
▪ Propositional Variables denoted by
𝐩, 𝐪, 𝐫, 𝐬, … . (which are simple statements).
▪ Propositional constants denoted by T and
F (True or False)
▪ Connectives or basic logical operators
denoted by ∧, ∨, ∼, → , ↔ .
Propositions (Statements)
• A declarative sentence which is true
or false, but not both, is called a
proposition or statement.
• Sentences which are exclamatory,
interrogative or imperative in nature
are not propositions.
Examples:
1. New Delhi is the capital city of India.
3. 2 + 3 = 3.
5. 𝑥 + 𝑦 = 𝑧.
T F
F T
DISJUNCTION (∨)[OR]
If p and q are two propositions then
the disjunction of p and q is the compound
proposition p or q and is denoted by 𝒑 ∨ 𝒒.
➢ The compound statement 𝒑 ∨ 𝒒 is false if
both of p and q is false.
➢ 𝑝 ∨ 𝑞 is true if atleast one of p and q is true.
(i.e) Rule : F F implies F otherwise T.
TRUTH TABLE FOR DISJUNCTION
(∨) [OR]
T T T
T F T
F T T
F F F
T T T
T F F
F T F
F F F
(i.e) Rule : T T implies T otherwise F.
Conditional statement:(→)[If…then]
If p and q are propositions the compound
statement ‘if p, then q’ is called a conditional
statement or implication and is denoted by 𝒑 →
𝒒.
➢ In this implication p is called the Hypothesis
and q is called the conclusion.
➢ 𝒑 → 𝒒 is false if p is true and q is false.
➢ In other cases 𝒑 → 𝒒 is true.
(i.e) Rule : T F implies F otherwise T.
• NOTE:
➢The conditional statement 𝒑 → 𝒒
is read as
“ p implies q ” or
“ p only if q ” or
“ p is sufficient for q ” or
“ q if p ”
TRUTH TABLE FOR CONDITIONAL
STATEMENT (𝒑 → 𝒒) [𝑰𝒇 … 𝒕𝒉𝒆𝒏]
T T T
T F F
F T T
F F T
T T T
T F F
F T F
F F T
Solution: Let 𝑆 = 𝑷 ∨ 𝑸 → 𝑷 ∧ 𝑸
T T T T T
T F T F F
F T T F F
F F F F T
Construct truth table for 𝒑 → 𝒒 → 𝒒 → 𝒑 .
Solution : Let 𝑆 = 𝒑 → 𝒒 → 𝒒 → 𝒑 .
T T T T T
T F F T T
F T T F F
F F T T T
Construct the truth table for ¬(𝑷 ∨ 𝑸) ∧ (𝑷 ∨ 𝑹)
T T T T F T F
T T F T F T F
T F T T F T F
T F F T F T F
F T T T F T F
F T F T F F F
F F T F T T T
F F F F T F F
WELL FORMED FORMULAS
is called a Contradiction.
T T F F F F T
T F F T T F T
F T T F F F T
F F T T F T T
This is a Tautology.
Verify whether the following statement are Tautology
or Contradiction or contingency ¬(𝒒 → 𝒓) ∧ 𝒓 ∧ (𝒑 → 𝒒).
:
Solution Let t = ¬ 𝒒 → 𝒓 ∧ 𝒓 , 𝑆 = ¬(𝒒 → 𝒓) ∧ 𝒓 ∧ (𝒑 → 𝒒)
T T T T T F F F
T T F T F T F F
T F T F T F F F
T F F F T F F F
F T T T T F F F
F T F T F T F F
F F T T T F F F
F F F T T F F F
This is a contradiction.
Verify whether the following statement are Tautology
or Contradiction or contingency (𝑷 ∨ 𝑸) → 𝑷.
Solution: Let S = (P ∨ Q) → P
T T T T
T F T T
F T T F
F F F T
This is a Contingency.
Logical Equivalence
▪ Two propositions P and Q are said to be
values.
Logical Implication
• let P and Q be two compound propositions,
if 𝑃 → 𝑄 is a Tautology, then “P is said to be logically
imply Q” and it is denoted by 𝑷 ⇒ 𝑸 .
• It is read as “ P implies Q”
• We also say that “Q logically follows from P”.
Note:
• The symbols → and ⟹ are different.
• → is logical connective (Or) logical operator.
• ⟹ is not a logical connective (Or) logical operator.
Show that 𝑷 → 𝑸 and ¬𝑷 ∨ 𝑸 are logically
equivalent.
Method : I
W.K.T, Two propositions P and Q are said to be
logically equivalent if 𝑷 ↔ 𝑸 is a Tautology.
To show : (𝑃 → 𝑄) ↔ (¬𝑃 ∨ 𝑄) ≡ 𝑇
Let 𝑺 = (𝑷 → 𝑸) ↔ (¬𝑷 ∨ 𝑸)
T T F T T T
T F F F F T
F T T T T T
F F T T T T
T F F F F
F T T T T
F F T T T
T T T T T T T T T
T T F T F F F F T
T F T F T T T T T
T F F F F T T T T
F T T T T T T T T
F T F T T F T T T
F F T T T T T T T
F F F T T T T T T
1.Write the following statement in symbolic form :
Solution:
𝒒 ∶ He is not busy.
(𝒑 ∨ 𝒒) → 𝒓.
2. Negate the statement: “ John is playing
Solution :
Form 1 : John is not playing football.
Form 2 : It is not the case that John is
playing football.
3.State the truth value of “ If tigers have
wings then the earth travels round the
sun”
Solution:
statement.
Name of
Primal Form Dual Form
the Law
Distributive
Law
Absorption
Law
Demorgan’
s Law
Negation
Law
Equivalences Involving Conditionals
2 (Contrapositive)
6
Equivalences Involving Conditionals
4
1.Without using truth table , prove that
¬𝑷 ⟶ 𝑸 ⟶ 𝑹 ≡ 𝑸 ⟶ 𝑷 ∨ 𝑹
Solution:
¬𝑷 ⟶ 𝑸 ⟶ 𝑹 ≡ ¬𝑷 ⟶ ¬𝑸 ∨ 𝑹 (By 𝑷 → 𝑸 ≡ ¬𝑷 ∨ 𝑸)
≡ 𝑸 ⟶ (𝑷 ∨ 𝑹) (By ¬𝑷 ∨ 𝑸 ≡ 𝑷 ⟶ 𝑸)
2. Without using truth table, show that
∼ 𝑷 ∧ ∼ 𝑸 ∧ 𝑹 ∨ 𝑸 ∧ 𝑹 ∨ 𝑷 ∧ 𝑹 ⇔ 𝑹.
Solution:
∼𝑷∧ ∼𝑸∧𝑹 ∨ 𝑸∧𝑹 ∨ 𝑷∧𝑹
⇔ (∼ 𝑷 ∧ ∼ 𝑸 ∧ 𝑹 ) ∨ ( 𝑸 ∧ 𝑹 ∨ 𝑷 ∧ 𝑹 ) (By Asso Law)
⇔ (∼ 𝑷 ∧ ∼ 𝑸 ∧ 𝑹 ) ∨ ((𝑸 ∨ 𝑷) ∧ 𝑹) (By Dis Law)
⇔ ∼ 𝑷 ∧∼ 𝑸 ∧ 𝑹 ∨ 𝑷∨𝑸 ∧𝑹
(By Asso & Comm Law)
⇔ (∼ (𝑷 ∨ 𝑸) ∧ 𝑹) ∨ ((𝑷 ∨ 𝑸) ∧ 𝑹) (By Demorgan’s Law)
⇔ (∼ 𝑷 ∨ 𝑸 ∨ 𝑷 ∨ 𝑸 ) ∧ 𝑹 (By Dis law)
⇔𝑻∧𝑹 (By Complement law, 𝒑 ∨∼ 𝒑 ≡T)
⇔𝑹 (By Identity law, 𝑷 ∧ 𝑻 ≡ 𝑷)
3. Show that
(𝑃 ∨ 𝑄) ∧ ¬(¬𝑃 ∧ ¬𝑄 ∨ ¬𝑅 ) ∨ (¬𝑃 ∧ ¬𝑄) ∨ (¬𝑃 ∧ ¬𝑅)
is a tautology by using equivalences.
Solution :
(𝑷 ∨ 𝑸) ∧ ¬(¬𝑷 ∧ ¬𝑸 ∨ ¬𝑹 ) ∨ (¬𝑷 ∧ ¬𝑸) ∨ (¬𝑷 ∧ ¬𝑹)
⇔ ( 𝑷 ∨ 𝑸 ∧ ¬ ¬𝑷 ∧ ¬𝑸 ∨ ¬𝑹 ) ∨ ( ¬𝑷 ∧ ¬𝑸 ∨ ¬𝑷 ∧ ¬𝑹 )
(By Associative law)
⇔ ( 𝑷 ∨ 𝑸 ∧ 𝑷 ∨ ¬ ¬𝑸 ∨ ¬𝑹 ) ∨ (¬𝑷 ∧ ¬𝑸 ∨ ¬𝑹 )
(By Demorgan’ s & Distributive law)
⇔ ( 𝑷 ∨ 𝑸 ∧ 𝑷 ∨ 𝑸 ∧ 𝑹 ) ∨ (¬𝑷 ∧ ¬ 𝑸 ∧ 𝑹 )
(By Demorgan’s law)
⇔ (𝑷 ∨ (𝑸 ∧ 𝑸 ∧ 𝑹 ) ∨ ¬(𝑷 ∨ 𝑸 ∧ 𝑹 )
(By Distributive law & Demorgan’ law)
⇔ (𝐏 ∨ 𝐐 ∧ 𝐐 ∧ 𝐑 ) ∨ ¬(𝐏 ∨ 𝐐 ∧ 𝐑 )
(By Associative law)
⇔ (𝑷 ∨ 𝑸 ∧ 𝑹 ) ∨ ¬(𝑷 ∨ 𝑸 ∧ 𝑹 )
(By Idempotent law, 𝑷 ∧ 𝑷 ≡ 𝑷)
⇔𝑻
(By Complement law, 𝑷 ∨ ¬𝑷 ≡ 𝑻)
Hence the given proposition is a tautology.
4. Prove that (𝑷 → 𝑸) ∧ (𝑸 → 𝑹) ⟹ (𝑷 → 𝑹).
Solution:
≡ ( ¬𝑷 ∨ 𝑸 ∧ ¬𝑸 ∨ 𝑹 ) → (¬𝑷 ∨ 𝑹) (By 𝑷 → 𝑸 ≡ ¬𝑷 ∨ 𝑸)
≡ ¬( ¬𝑷 ∨ 𝑸 ∧ ¬𝑸 ∨ 𝑹 ) ∨ (¬𝑷 ∨ 𝑹) (By 𝑷 → 𝑸 ≡ ¬𝑷 ∨ 𝑸)
≡ 𝑷 ∧ ¬𝑸 ∨ ( 𝑸 ∨ ¬𝑷 ∨ 𝑹 ∧ (¬𝑹 ∨ ¬𝑷 ∨ 𝑹))
≡ 𝑷 ∧ ¬𝑸 ∨ ( ¬𝑷 ∨ 𝑸 ∨ 𝑹 ∧ ((¬𝑹 ∨ 𝑹) ∨ ¬𝑷))
≡ 𝑷 ∧ ¬𝑸 ∨ ( ¬𝑷 ∨ 𝑸 ∨ 𝑹 ∧ (𝑻 ∨ ¬𝑷))
≡ 𝑷 ∧ ¬𝑸 ∨ ( ¬𝑷 ∨ 𝑸 ∨ 𝑹 ∧ 𝑻)
≡ 𝑷 ∨ ¬𝑷 ∨ 𝑸 ∨ 𝑹 ∧ ¬𝑸 ∨ ¬𝑷 ∨ 𝑸 ∨ 𝑹
≡ ( 𝑷 ∨ ¬𝑷) ∨ (𝑸 ∨ 𝑹 ) ∧ ¬𝑷 ∨ (¬𝑸 ∨ 𝑸) ∨ 𝑹
≡ 𝑻 ∨ (𝑸 ∨ 𝑹 ) ∧ (¬𝑷 ∨ 𝑹) ∨ 𝑻
Hence, (𝑷 → 𝑸) ∧ (𝑸 → 𝑹) ⟹ (𝑷 → 𝑹).
Normal Forms
• Elementary Product :
A product of the variables and their
negations in a formula is called an
elementary product.
Examples:
𝑃, ¬𝑃 ∧ 𝑄, ¬𝑄 ∧ 𝑃 ∧ ¬𝑃, 𝑃 ∧ ¬𝑃 𝑎𝑛𝑑
𝑄 ∧ ¬𝑄 are some examples of elementary
products.
• Elementary Sum:
A sum of the variables and their
negations in a formula is called an
elementary sum.
Examples:
𝑃, ¬𝑃 ∨∧ 𝑄, ¬𝑄 ∨ 𝑃 ∨ ¬𝑃, 𝑃 ∨ ¬𝑃 𝑎𝑛𝑑
𝑄 ∨ ¬𝑄 are some examples of elementary
sum.
▪ Disjunctive Normal Form
Sum of elementary products is called disjunctive
normal form.
Example :
𝑷 ∨ 𝑷 ∧𝑸 ∨ (𝑷 ∧ ¬𝑸) .
Example :
𝑷 ∧ 𝑷 ∨𝑸 ∧ (𝑷 ∨ ¬𝑸) .
• Minterms :
Given a number of variables, the
products in which each variable or its
negation but not both, occurs only once are
called minterms.
• For two variables 𝑃 𝑎𝑛𝑑 𝑄, the minterms
are
𝑷 ∧ 𝑸, 𝑷 ∧ ¬𝑸, ¬𝑷 ∧ 𝑸 𝒂𝒏𝒅 ¬𝑷 ∧ ¬𝑸.
• For three variables 𝑃, 𝑄 𝑎𝑛𝑑 𝑅, the
minterms are
𝑷 ∧ 𝑸 ∧ 𝑹, ¬𝑷 ∧ 𝑸 ∧ 𝑹, 𝑷 ∧ ¬𝑸 ∧ 𝑹,
𝑷 ∧ 𝑸 ∧ ¬𝑹, ¬𝑷 ∧ ¬𝑸 ∧ 𝑹, ¬𝑷 ∧ 𝑸 ∧ ¬𝑹, 𝑷 ∧
¬𝑸 ∧ ¬𝑹 and ¬𝑷 ∧ ¬𝑸 ∧ ¬𝑹.
• Maxterms :
Given a number of variables,
the sums in which each variable or its
negation but not both, occurs only once
are called maxterms.
• For two variables 𝑃 𝑎𝑛𝑑 𝑄, the
maxterms are
𝑷 ∨ 𝑸, 𝑷 ∨ ¬𝑸, ¬𝑷 ∨ 𝑸 𝒂𝒏𝒅 ¬𝑷 ∨ ¬𝑸.
• For three variables 𝑃, 𝑄 𝑎𝑛𝑑 𝑅, the
maxterms are
𝑷 ∨ 𝑸 ∨ 𝑹, ¬𝑷 ∨ 𝑸 ∨ 𝑹, 𝑷 ∨ ¬𝑸 ∨ 𝑹,
𝑷 ∨ 𝑸 ∨ ¬𝑹, ¬𝑷 ∨ ¬𝑸 ∨ 𝑹, ¬𝑷 ∨ 𝑸 ∨ ¬𝑹,
𝑷 ∨ ¬𝑸 ∨ ¬𝑹 and ¬𝑷 ∨ ¬𝑸 ∨ ¬𝑹.
Principal Disjunctive Normal
Form (PDNF)
• A formula consisting of
disjunctions of minterms in the
variable only is known as its principal
disjunctive normal form.
• Example :
(𝑷 ∧ 𝑸) ∨ (¬𝑷 ∧ ¬𝑸).
Principal Conjunctive Normal
Form (PCNF)
• A formula consisting of
conjunctions of maxterms in the
variable only is known as its principal
conjunctive normal form.
• Example :
(𝑷 ∨ 𝑸) ∧ (¬𝑷 ∨ ¬𝑸).
Steps involved in finding PDNF:
▪ First obtain DNF of the formula.
• Solution:
Given 𝑷 ∧ 𝑸 ∨ ¬𝑷 ∧ 𝑹 ∨ 𝑸 ∧ 𝑹
≡ 𝑃∧𝑄 ∧𝑇 ∨ ¬𝑃 ∧ 𝑅 ∧ 𝑇 ∨ ( 𝑄 ∧ 𝑅 ∧ 𝑇)
(By 𝑷 ∧ 𝑻 ≡ 𝑷)
≡ 𝑃 ∧ 𝑄 ∧ 𝑅 ∨ ¬𝑅 ∨ ¬𝑃 ∧ 𝑅 ∧ 𝑄 ∨ ¬𝑄
∨ ( 𝑄 ∧ 𝑅 ∧ 𝑃 ∨ ¬𝑃 )
(By 𝑷 ∨ ¬𝑷 ≡ 𝑻)
≡ (𝑃 ∧ 𝑄 ∧ 𝑅) ∨ (𝑃 ∧ 𝑄 ∧ ¬𝑅) ∨ (¬𝑃 ∧ 𝑄 ∧ 𝑅)
∨ (¬𝑃 ∧ ¬𝑄 ∧ 𝑅) ∨ (𝑃 ∧ 𝑄 ∧ 𝑅) ∨ (¬𝑃 ∧ 𝑄 ∧ 𝑅)
∨ (¬𝑃 ∧ 𝑄 ∧ 𝑅) ∨ (¬𝑃 ∧ ¬𝑄 ∧ 𝑅)
(By 𝑷 ∨ 𝑷 ≡ 𝑷)
• Solution:
Given ¬𝑷 → 𝑹 ∧ 𝑸 ↔ 𝑷
≡ ¬(¬𝐏) ∨ 𝐑 ∧ ¬𝐐 ∨ 𝐏 ∧ ¬𝐏 ∨ 𝐐 )
(By 𝐏 → 𝐐 ≡ ¬𝐏 ∨ 𝐐 𝐚𝐧𝐝
≡ 𝐏 ∨ 𝐑 ∧ (𝐏 ∨ ¬𝐐) ∧ (¬𝐏 ∨ 𝐐)
≡ 𝑃∨𝑅 ∨𝐹 ∧ 𝑃 ∨ ¬𝑄 ∨ 𝐹 ∧ ( ¬𝑃 ∨ 𝑄 ∨ 𝐹)
(By 𝑷 ∨ 𝑭 ≡ 𝑷)
≡ 𝑃 ∨ 𝑅 ∨ (𝑄 ∧ ¬𝑄 ∧ 𝑃 ∨ ¬𝑄 ∨ (𝑅 ∧ ¬𝑅
∧ ( ¬𝑃 ∨ 𝑄 ∨ (𝑅 ∧ ¬𝑅))
(By 𝑷 ∧ ¬𝑷 ≡ 𝑭)
≡ (P ∨ 𝑄 ∨ 𝑅) ∧ (𝑃 ∨ ¬𝑄 ∨ 𝑅) ∧ (𝑃 ∨ ¬𝑄 ∨ 𝑅)
≡ P ∨ 𝑄 ∨ 𝑅 ∧ 𝑃 ∨ ¬𝑄 ∨ 𝑅 ∧ P ∨ ¬𝑄 ∨ ¬𝑅
(By 𝑷 ∧ 𝑷 ≡ 𝑷)
Solution :
T T T F T F T
T T F F T F T
T F T F F F F
T F F F F F F
F T T T F T T
F T F T F F F
F F T T F T T
F F F T F F F
𝐏𝐃𝐍𝐅 ≡ 𝐏 ∧ 𝐐 ∧ 𝐑 ∨ 𝐏 ∧ 𝐐 ∧ ¬𝐑
∨ ¬𝐏 ∧ 𝐐 ∧ 𝐑 ∨ (¬𝐏 ∧ ¬𝐐 ∧ 𝐑).
𝐏𝐂𝐍𝐅 ≡ ¬𝐏 ∨ 𝐐 ∨ ¬𝐑 ∧ ¬𝐏 ∨ 𝐐 ∨ 𝐑
∧ 𝐏 ∨ ¬𝐐 ∨ 𝐑 ∧ 𝐏 ∨ 𝐐 ∨ 𝐑 .
Inference Theory
𝒑𝟏 ∧ 𝒑𝟐 ∧ 𝒑𝟑 ∧ ⋯ ∧ 𝒑𝒏 ⟶ 𝒒 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.