Notes UNIT IV Logic
Notes UNIT IV Logic
Introduction
Logic is the discipline that deals with the methods of reasoning. It provides rules
and techniques for determining whether a given argument is valid or not. Logical
reasoning is used in mathematics to prove theorems, in computer science to
verify the correctness of programs and to prove theorems in physical sciences to
draw conclusions from experiments.
Definition
Declarative Sentence or Non-Declarative Sentence
proposition
Declarative sentence makes a Statement that does not declares
statement that declares something or something or gives idea are called non-
gives reliable information or idea declarative sentence
Eg: Eg:
(i) Chennai is the capital of Tamilnadu (i) Imperative sentence:
(ii) 1+5 =6 Command/Request
(iii) the sun rises in the west (ii) Exclamatory sentence:
Express strong feeling
(iii)Interrogative sentence:
Question sentences
Proposition[statement]
A proposition is a declarative sentence or a statement that is either true
or false but not both simultaneously.
They are also denoted by the symbols 1 and 0. Lower case letters such as
p,q,r,…. are used to denote propositions.
The statements 1 and 5 have the truth value ‘true’, while the statements 2,3,4
have a truth value ‘false’. The truth value of statement 6 depends upon the day
in which the statement is made and hence is neither true nor false.
7. The sum of an odd and even integer is odd-T
8.The triple(3,4,5) is an integral solution of x2+y2=z2- T
9.For any real number x, x2<0 -F
Propositional Logic/Calculus:
The area of logic that deals with propositions is called proposition logic or
proposition calculus.
Logical Operators:
Logical operators are words or symbols used to combine two or more propositions
to form a new proposition.
Connectives:
Negation
If p is a statement, then its negation is ∼ p or p , read as “not p”.
p: It is raining
p: it is not raining
p p
T F
F T
Conjunction or AND ( )
Let p and q be two propositions. The proposition p q is called the
conjunction of p and q. The statement p q has a truth value T when both
p and q have the truth value T and is assigned truth value F otherwise.
Truth value for Conjunction
p q pq
T T T
T F F
F T F
F F F
Disjunction (or) OR ( )
If p and q are two statements, then the statement p q is read as “p or q”
and is called a disjunction. The statement p q has the truth value F only
when both p and q have the truth value F ; otherwise T .
Truth value for Disjunction
p q p q
T T T
T F T
F T T
F F F
Conditional statement (p q)[If ---then]
If p and q are any two statements, then the statement p q which is
read as “if p then q” is called a conditional statement. The statement p
q has a truth value F when p has a truth value T and q has a truth value
F ; otherwise it is T .
p q p q
T T T
T F F
F T T
F F T
Bi-conditional statement (p q)
If p and q are any two statements, then the statement p q which is read as “p iff
q” is called bi-conditional statement. The statement p q has the truth value T
when both p and q have identical truth values; otherwise it has a truth value F .
p q p q
T T T
T F F
F T F
F F T
Example : Find the truth value of:
truth value of the statement p is false, and the truth value of the statement q is true ,
hence p q is true.
P P P ∨P P ∧P
T F T F
F T T F
P ∨ P is a tautology, P ∧ P is a contradiction.
Worked Examples:
1.Construct the truth table for P ∨ Q
Sol:
P Q P P ∨ Q
T T F T
T F F F
F T T T
F F T T
Q∨ (P∧ P∧
P Q P Q P∧ Q Q) Q Q∨(P∧ Q) ∨( P∧ Q)
T T F F F T F T
T F F T T T F T
F T T F F T F T
F F T T F F T T
Hence the given statement is a tautology.
a) ((P → ( P )) → P )
b) (P → (P ∨ Q))
c) (( Q ∧ P ) ∧ Q)
Sol:
a)
P
P P P (P P) P
T F F T
F T T T
Hence it is a tautology.
b)
P Q PQ P (P Q)
T T T T
T F T T
F T T T
F F F T
Hence it is a tautology.
c)
P Q Q Q P ( Q P) Q
T T F F F
T F T T F
F T F F F
F F T F F
Hence it is a contradiction.
T T T T T T T T T
T T F T F F F F T
T F T T T T T T T
T F F T F F T F T
F T T T T T T T T
F T F T T T F F T
F F T F T F T F T
F F F F T F T F T
Since all the entries in the last column are T’s, the given statement is tautology.
Practice Problems
1.Using the statements: R: Mark is rich, H: Mark is happy.
Write the following statements in a symbolic form:
(a) Mark is poor but happy.
(b) Mark is rich or unhappy.
(c) Mark is neither rich nor happy.
(d) Mark is poor or he is both rich and unhappy.
2. Examine if the given proposition is a tautology or a contradiction.
(P → (Q → P ))
3. Construct a truth table for each of the following compound propositions:
(a) (p ∨ q) → p q
(b) (p → q) → (q → p)
(c) (q → p) ↔ (p ↔ q)
Equivalence Formulas:
Two compound propositions A(p1, p 2 ,... pn) and B(p1, p 2 ,... pn)are
equivalent if they have identical truth table values and is denoted as
A ⇔ B.
Note:
1.p ⇔ q (i.e., p is equivalent to q) iff p ↔ q is a tautology
2. ( p ∨ q) p q
Implication
Let p,q be Boolean expressions. Then, p q (i.e., p implies q) iff p q is a tautology.
Note:
⇒ is the implication symbol.
⇔ or is the equivalence symbol.
Problems:
1.Prove that p → q ⇔ q → p [lhs BICONDITIONAL rhs is a tautology]
Sol: It’s enough if we prove (p → q) ↔ ( q → p) is a tautology.
q →
p q p q (LHS)p → q (RHS) (p → q) ↔ ( q → p)
p
T T F F T T T
T F F T F F T
F T T F T T T
F F T T T T T
2.Prove that (p → q) ∧ p ⇒ q
Sol: Its enough if we prove (p → q) ∧ p → q is a tautology.
p q p→q (p → q) p (p → q) p → q
T T T T T
T F F F T
F T T F T
F F T F T
3.Prove that (p → q) ∧ q ⇒ p.
Sol:Its enough if we prove (p → q) ∧ q → p is a tautology.
p q p q p→q (p → q) q (p → q) q → p)
T T F F T F T
T F F T F F T
F T T F T F T
F F T T T T T
4.Prove (P ∨ P ) ⇔ (Q ∨ Q) [ equivalent]
Sol:Its enough if we prove (P ∨ P ) ↔ (Q ∨ YQ) is a tautology.
P Q P Q P∨ P Q∨ Q (P∨ P) ↔ ( Q∨ Q)
T T F F T T T
T F F T T T T
F T T F T T T
F F T T T T T
Practice Problems:
Show that the following statements are true:
1. (P Q) ⇔ P∨ Q
2. (P∨Q) ⇔ P Q
3. (P→Q) ⇔P ∧ Q
4. (P↔Q) ⇔(P∧ Q)∨( P ∧ Q)
[LHS (P↔Q) and RHS (P∧ Q)∨( P ∧ Q) ]
5. (p → (q→s)) ∧ ( r ∨ p) ∧q ⇒ r→s
p q r s
T T T T
T T T F
T T F T
T T F F
T F T T
T F T F
T F F T
T F F F
F T T T
F T T F
F T F T
F T F F
F F T T
F F T F
F F F T
F F F F
Algebra of Propositions:
Basic Logical Laws
S.No. Laws
1 p → q ≡ p ∨ q conditional
equivalence
2 p → q ≡ q→ p (contrapositive)
3 p ∨ q ≡ p → q
4 p ∧ q ≡ (p→ q)
5 (p → q) ≡ p ∧ q
6 (p → q)∧( p → r) ≡ p→(q ∧ r)
7 (p → r)∧( q → r) ≡ (p ∨ q)→ r
8 (p → q) ∨ ( p → r) ≡ p→(q ∨ r)
9 (p → r) ∨ ( q → r) ≡ (p ∧ q)→ r
10 p↔ q ≡ (p → q)∧( q→p)
11 p↔ q ≡ p ↔ q
12 p↔ q ≡ (p ∧ q) ∨ ( p ∧ q)
13 (p↔ q) ≡ p↔ q
p ∨ q ≡ p → q
p ∧ q ≡ (p→ q)
(p → q) ≡ p ∧ q
p↔ q ≡ p ↔ q
1) p ∨ q ≡ p → q
2) p ∧ q ≡ (p→ q)
3) (p → q) ≡ p ∧ q
4)p↔ q ≡ p ↔ q
Example. The contrapositive of a statement is “If I don’t catch the train, then I am not
early”. Write the original statement .
Given: q p ≡ p q
Problems:
1.Show that P→(Q→R) ⇔P→( Q ∨ R) ⇔(P ∧ Q) →R without using truth
table.
Sol:
LHS
⇔ (P ∧ Q) → R Conditional equivalence
2. Show that the following equivalences are true:
(i) P → (Q → P ) ⇔ P → (P → Q)
(ii) P → (Q ∨ R) ⇔ (P → Q) ∨ (P → R).
Sol:
(i) P → (Q → P ) ⇔ P → ( Q ∨ P )Conditional equivalence p → q
≡ p ∨q
⇔ P ∨ ( Q ∨ P ) Conditional equivalence
⇔ P ∨ (P ∨ Q) Commutative (p ∨q≡ q ∨p)
⇔ (P ∨P) ∨ Q Associative
⇔ T ∨ Q ⇔ T Dominant Law
Also
P → (P → Q) ⇔ P → ( P ∨ Q) Conditional equivalence
⇔ P ∨ ( P ∨ Q) Conditional equivalence
⇔ P ∨ ( P ∨ Q) Involution
⇔ (P ∨ P ) ∨ Q Associative
⇔ T ∨Q Dominant Law
⇔ T Dominant Law
Normal Forms
Disjunctive(OR) and conjunctive(AND) normal forms
A product of the variables and their negations is called an elementary product
(AND). A sum of the variables and their negations is called an elementary sum
(OR).
Problems:
1. Obtain the PDNF and PCNF of p ∧ (p → q)
Sol:
Minterm
p q p→q (p → q) p (for PDNF)
T T T T p q
T F F F
F T T F
F F T F
Hence the PDNF is S: p ∧ q.
To find PCNF
Sol:
p→ q∧ p → (p→(q ∧ r))∧ Max
(q∧r) r ( q∧ r) ( p→( q∧ Minterm
p terms
p q r q r q∧r r)) for
for
PDNF
PCNF
T T T F F F T T F T T p∧q ∧r
T T F F F T F F F T F p∨q∨
r
T F T F T F F F F T F p ∨ q ∨
r
F T T T F F T T F F F
T F F F T T F F T T F
F T F T F T F T F F F
F F T T T F F T F F F
F F F T T T F T T T T p ∧ q
∧ r
S.No. Laws
1 p → q ≡ p ∨ q conditional
equivalence
2 p → q ≡ q→ p (contrapositive)
3 p ∨ q ≡ p → q
4 p ∧ q ≡ (p→ q)
5 (p → q) ≡ p ∧ q
6 (p → q)∧( p → r) ≡ p→(q ∧ r)
7 (p → r)∧( q → r) ≡ (p ∨ q)→ r
8 (p → q) ∨ ( p → r) ≡ p→(q ∨ r)
9 (p → r) ∨ ( q → r) ≡ (p ∧ q)→ r
10 p↔ q ≡ (p → q)∧( q→p)
11 p↔ q ≡ p ↔ q
12 p↔ q ≡ (p ∧ q) ∨ ( p ∧ q)
13 (p↔ q) ≡ p↔ q
Procedure to Obtain the DNF (AND) or CNF (OR)
1. If the connectives → and ↔ are present in the given formula, they are
replaced by ∧, ∨ and [conditional equivalence formula]
2. If the negation is present before the given formula or a part of the
given formula, De Morgan’s Laws are applied so that the negation is brought before
the variables only.
* If necessary, the distributive and idempotent laws are applied.
5.Without constructing the truth tables, find the PDNF of the following
statements:
(a) ( p → q) ∧ (q ↔ p)
(b) (p ∧ q) ∨ ( p ∧ q) ∨ (q ∧ r)
≡ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ ( p ∧ q ∧ r) ∨ ( p ∧ q ∧ r)
∨ (q ∧ r ∧ p) ∨ (q ∧ r ∧ p)
All the brackets use distributive law[A ∧ (B ∨C)= (A ∧ B) ∨ (A ∧ C)
S ≡ (p ∧ q ∧ r) ∨ (p ∧ q ∧ r) ∨ ( p ∧ q ∧ r) ∨ ( p ∧ q ∧ r) is the PDNF.
To find PCNF from PDNF by using S ⇔ ( S)
S⇔(p ∧ q ∧ r) ∨( p ∧ q ∧ r)) ∨( p ∧ q ∧ r) ∨( p ∧ q ∧ r)
PCNF:
S ⇔ ( S)= [(p ∧ q ∧ r) ∨( p ∧ q ∧ r)) ∨( p ∧ q ∧ r) ∨( p ∧ q ∧ r)]
Demorgan's law- (p ∨ q)= p∧ p
= (p ∧ q ∧ r) ∧ (p ∧ q ∧ r) ∧ ( p ∧ q ∧ r) ∧ ( p ∧ q ∧ r)]
S ⇔ ( S) ⇔ [(p ∨ q ∨ r) ∧ ( p ∨ q ∨ r) ∧ ( p ∨ q ∨ r)]
De Morgans Law
[ (p ∨ q ∨ r) ∨ ( p ∨ q ∨ r) ∨ ( p ∨ q ∨ r)]
Practice Problems:
Theory of Inference
[To check validity of the argument ]
Introduction
Inference theory is concerned with the inferring of a conclusion from a set
of premises (hypothesis or basic assumptions) by applying certain
principles of reasoning called the rules of inferences.
The processs of getting the conclusion by the rules of inferences in a
sequence of steps is called the arguments.
The conclusion arrived is called the valid conclusion and the argument is
called the valid argument.
Two methods are available to arrive the valid conclusion.
1. Truth table technique
2. Rules of inference
Truth table Technique
1. H 1, H 2, H 3,.......Hn be the set of premises and C be the conclusion of
the premises.
1) H 1 : p, H 2 : p q, C : q . (Conclusion)
Truth table
p q p pq
T T F T
T F F T
F T T T
F F T F
C-conclusion H1 H2
H1 and H2 are true only in the third row, in which C is also true. Hence C
is a valid conclusion.
2) H 1 : p q, H 2 : q, C : p conclusuon
p q pq
T T T
T F F
F T T
F F T
C-conclusion H2 H1
H1 and H2 are true in the third row, but C is not true. Hence C is not a
valid conclusion.
Note. The truth table is tedious if the premises contain a large number of
variables.
Rules of inference
We give two rules of inference which are called rules P and T.
Rule P: A premises[statement] may be introduced at any point in the
derivation
Rule T: A formula can be introduced provided it is tautologically implied
by any one or more of the preceding formulas in the derivation.
S.No. Laws
1 p → q ≡ p ∨ q
2 p → q ≡ q→ p contrapositive
3 p ∨ q ≡ p → q
4 p ∧ q ≡ (p→ q)
5 (p → q) ≡ p ∧ q
6 (p → q)∧( p → r) ≡ p→(q ∧ r)
7 (p → r)∧( q → r) ≡ (p ∨ q)→ r
8 (p → q) ∨ ( p → r) ≡ p→(q ∨ r)
9 (p → r) ∨ ( q → r) ≡ (p ∧ q)→ r
10 p↔ q ≡ (p → q)∧( q→p)
11 p↔ q ≡ p ↔ q
12 p↔ q ≡ (p ∧ q) ∨ ( p ∧ q)
13 (p↔ q) ≡ p↔ q
3. q→s Rule p
4. p → s Chain rule (2), (3) ( p → q)∧(q → r)⇒(p → r)
5. p→r Rule p
6. s → p contrapositive (4) p→q ≡ q→ p
7. s → r Chain rule 6, 5 ( p → q)∧(q → r)⇒(p → r)
8. s∨r Conditional Equivalance on (7) p → q ≡ p ∨ q
premises : p q, r q , r
Conclusion : p
Step no. Statement Reason
1 pq Rule p
2 q p Contra positive p → q ≡ q→ p
3 r q Rule p
5 r Rule p
.Inconsistency of Premises
A set of premises p1,p2,...pn is said to be inconsistent if their conjunction
implies a contradiction.
Here also we can use both truth table techniques or rules of inference
based on the no. of premises given.
Example.
1. Show that p → q, p→ r, q → r and p are inconsistent.
Step Statement reason
no.
1 p→q Rule p
2 q→ r Rule P
4 P Rule P
6 p→r Rule p
7 r → p 6 equivalence in
contrapositive
9 p p - contradiction Inconsistent
1 p→q Rule p
2 q→s Rule P
4 r→ s Rule P
5 s→ r 4 equivalence contrapositive
p→q ≡ q→ p
6 p→ r 3,5 chain rule
8 ( p∧ r) De Morgan's law
9 p∧ r Rule P
9 (p∧ r) ∧ ( p∧ r) =F 8, 9 Inconsistent
5.Show that the premises E → S, S → H, A → H, E ∧A are inconsistent.
S.No. Proposition Explanation
1. E→S Rule P
2. S→H Rule P
3. E→H Chain Rule (1) (2)
4. E ∧A Rule P
5. E Conjunctive simplification (4)
6. A Conjunctive simplification (4)
7. A→ H Rule P
8. H modes ponens (6), (7)
9. H modes ponens (3), (5)
10. H ∧ H =F Contradiction.
Hence the given premises are inconsistent.
p∧q =q or p∧q =p
1 p∨q Rule p
6 s∨p Rule p
7 s→ p 6, conditional equivalence
8 p→ s 7, equivalence in contrapositive
1 P P(additional)
2 p→q Rule p
4 r → q Rule p
5 s→ q Rule p
7 (r∨s) Rule p
9 q∧ q 3,8 conjunction
13. p∧r
14. r Conjunctive simplification
Indirect proof
S.No. Proposition Explanation
1. r Negated conclusion
2. (p∧r) Rule P
3. p∨ r De Morgan’s Law
4. p→q Rule P
5. q→r Rule P
6. p→r (4), (5) Chain Rule
7. p∨r (6) Conditional equivalence
8. p∨r Rule P
9. ( p∨r)∧(p∨r) (7), (8)
10. ( p∧p)∨r Distributive Law
11. r Identity Law
12. r∧ r (1), ( 12) Contradiction
Therefore r is the valid conclusion.
4. Give direct and indirect proof of a → b, c → b, d →(a∨c), d ⇒ b.
S.No. Proposition Explanation
1. a→b Rule P
2. a∨b Equivalence (1)
3. c→b Rule P
4. c∨b Equivalence (3)
5. ( a∨b)∧( c∨b) By (2), (4)
6. ( a∨ c)∨b Distributive Law
7. (a∨c)∨b De Morgan’s Law
8. d →(a∨c) Rule P
9. d Rule P
10. (a∨c)→ b Conditional Equivalence (7)
11. d→b Chain Rule (8), (10)
12. d Rule P
13. b Conditional Equivalence (11),(12)
Indirect Proof:
S.No. Proposition Explanation
1. b Negated conclusion
2. a→b Rule P
3. b → a (2) Contrapositive
4. c→b Rule P
5. b → c (4) Contrapositive
6. a (1),(3) Detachment
7. c ( 1), (6) Detachment
8. a∧ c (6), (7)
9. (a∨c) De Morgan’s Law
10. d →(a∨c) Rule P
11. (a∨c)→ d (10) Contrapositive
12. d (9), (11) Detachment
13. d Rule P
14. d∧ d (12), (13) Contradiction
𝑝 → 𝑞, 𝑟 → 𝑝, q ⇒ r
1. r→p Rule P
2. p→q Rule P
4. q→r Contrapositive
5. q Rule P
6. r Detachment
Predicate Calculus
Definition : Predicates or simple statements which turn out to be
prepositions involving the variables whose values or not well specified. A
predicate tells something about one or more objects.
Notations: Capital letters are used to denote the predicates and the
objects by the variables denoted by small letters in parenthesis example.
Example: The statement “ x is smaller than 10 ”. Hear the predicate is
smaller than 10 and the subject of the statement is x . Therefore the
given statement is denoted by P(x)
Quantifiers
When all the variables in a propositional function are assigned values, the
resulting statement has a truth value.
There is an another important way called quantification to create a
statement from a statement function.
There are two types of quantification.
1) Universal quantification (∀x) [for all, for every,each]
2) Existential quantification. (∃x) [there exists, for some, for few,
specifically]
Universal quantifier :
“For all x, x is an integer” is denoted by (∀x)I(x) or (x)I(x).
Here “for all x” is called the universal quantifier and it is denoted by the
symbol “∀”
Existential quantifier:
“There exists an integer x which is prime” can be written as (∃x)P(x)
where the phrase “ there exists” is called an existential quantifier.
Meaning of quantifiers:
(∀x)Q(x) means the predicate Q(x) is true for all values in the universe of
x.
(∃x)Q(x) means that the predicate Q(x) is satisfied if there exists at least
one value in the universe of the variable x.
Universe of discourse:
It is defined as a set of all values taken by a variable. The universe of
discourse specifies the possible values of the variable x. Therefore it is
defined as the domain of the variable in a proportional function.
Example: Let us consider the universe of discourse by the following sets.
i) {−1, 7, 8, 11, 12}
ii) {−3, 8, 9, −2}
iii) {2, 3, 4}
iv){11, 13, 20}
3) Let Q(x,y) denote x+y=0 what are the truth values of the quantified
statements (∋ y)(∀x)Q(x, y)and (∀x)(∋ y)Q(x, y)?
Solution: (∋ y)(∀x)Q(x, y) is false and (∀x)(∋ y)Q(x, y) is true.
***************************************************************************************
4. ⅂[(∃𝑥)⅂𝑃(𝑥)] ⇔ (∀𝑥)[𝑃(𝑥)]
Law Name
𝑃(𝑦) ⇒ (∀𝑥)[𝑃(𝑥)]
𝑃(𝑦) ⇒ (∃𝑥)[𝑃(𝑥)]
Problems:
Soln.
Steps Premise Reason
1. (∀𝑥)[𝑃(𝑥) → 𝑄(𝑥)] Rule P
Soln.
Steps Premise Reason
1. (∀𝑥)[𝑃(𝑥) ∧ 𝑄(𝑥)] Rule P
2. 𝑃(𝑦) ∧ 𝑄(𝑦) Rule US (1)
3. 𝑃(𝑦) Rule T (2) conjunctive simplification
𝑃 ∧ 𝑄 𝑖𝑚𝑝𝑙𝑖𝑒𝑠 𝑃
4. (∀𝑥)[𝑃(𝑥)] Rule UG (3)
To prove
(∀𝑥)[𝐷(𝑥) → 𝐶(𝑥)] ∧ 𝐷(𝑚) ⇒ 𝐶(𝑚)
7. ⅂𝑃(𝑎) ES (5)
8. ⅂Q(a) US (6)
9. ⅂𝑃(𝑎) ∧ ⅂𝑄(𝑎) T, conjunction (7), (8) p,q ⇒ 𝑝 ∧ 𝑞
10. ⅂(𝑃(𝑎) ∨ 𝑄(𝑎)) T, De Morgan’s law (9) ⅂(𝑝 ∨ 𝑞) = ⅂𝑝 ∧ ⅂𝑞
11. ∀𝑥(𝑃(𝑥) ∨ 𝑄(𝑥)) Rule P
12. 𝑃(𝑎) ∨ 𝑄(𝑎) US (11)
13. (𝑃(𝑎) ∨ 𝑄(𝑎)) ∧ ⅂(𝑃(𝑎) ∧ 𝑄(𝑎)) T, conjunction (10), (12)
14. F T, (13)
This False (F) is because of our assumption of the negated conclusion ,
Therefore our conclusion must be [(∀𝑥𝑃(𝑥) ∨ (∃𝑥𝑄(𝑥))]
Soln.
Steps Premise Reason
7)Show that the conclusion ∀𝑥(𝑃(𝑥)) → ⅂𝑄(𝑥)) follows from the premises
∃𝑥 (𝑃(𝑥) ∧ 𝑄(𝑥)) → ∀𝑦(𝑅(𝑦) → 𝑆(𝑦)) and ∃𝑦 (𝑅(𝑦) ∧ ⅂𝑆(𝑦)) .
Soln.
Steps Premise Reason
1. ∃𝑦 (𝑅(𝑦) ∧ ⅂𝑆(𝑦)) P
2. 𝑅(𝑎) ∧ ⅂𝑆(𝑎)) ES (1)
3. ⅂(𝑅(𝑎) → 𝑆(𝑎)) T, (2) and equivalence
Soln.
Steps Premise Reason
1. ∀𝑥 (𝑃(𝑥) → 𝑄(𝑥)) P
3. ∀𝑥 (𝑅(𝑥) → ⅂𝑄(𝑥)) P
4. 𝑅(𝑎) → ⅂𝑄(𝑎) US, (2)
5. 𝑄(𝑎) → ⅂𝑅(𝑎) T, (4) and
Equivalence
6. 𝑃(𝑎) → ⅂𝑅(𝑎) T, (2), (5) ,
9) Use the indirect method to prove that the conclusion ∃𝑧 𝑄(𝑧) follows
from the premises ∀𝑥 (𝑃(𝑥) → 𝑄(𝑥)) and ∃𝑦𝑃(𝑦).
Soln.
Steps Premise Reason
1. ⅂(∃𝑧 𝑄(𝑧)) P (additional) - negated conclusion
2. ∀𝑧 (⅂𝑄(𝑧)) T, (1) and negative equivalence
3. ⅂ 𝑄(𝑎) US, (2)
4. ∃𝑦 𝑃(𝑦) Rule P
5. 𝑃(𝑎) ES , (4)
10) Show that ∀𝑥 (𝑃(𝑥) ∨ 𝑄(𝑥)) ⇒ ∀𝑥 𝑃(𝑥) ∨ ∃𝑥 𝑄(𝑥) using the indirect
method.
Soln.
Steps Premise Reason
1. ⅂ (⅂ (∀𝑥 𝑃(𝑥) ∨ ∃𝑥 𝑄(𝑥)) P (additional)
2. ⅂ (∀𝑥 𝑃(𝑥) ∧ ⅂(∃𝑥 𝑄(𝑥)) T, (1) and De Morgan’s law
7. ⅂ 𝑄(𝑎) US , (5)
8. ⅂ 𝑃(𝑎) ∧ ⅂ 𝑄(𝑎) T, (6), (7) and Conjunction
9. ⅂ (𝑃(𝑎) ∨ 𝑄(𝑎)) T, (8) and De Morgan’s law
10. ∀𝑥 (𝑃(𝑥) ∨ 𝑄(𝑥)) P
Lions are dangerous animals. There are lions. Therefore there are
dangerous animals.
Soln.
3. (∀𝑥)(𝐿(𝑥) → 𝐷(𝑥)) P
Solution:
Let P(x): x is an integer
R(x): x is a rational number
S(x): x is the power of 2
We need to show:
(∀𝑥 )(𝑃(𝑥) → 𝑅(𝑥)), (∃𝑥)(𝑃(𝑥) ∧ 𝑆(𝑥)) ⇒ (∃𝑥)(𝑅(𝑥) ∧ 𝑆(𝑥))
Soln.
Steps Premise Reason
1. (∀𝑥)(𝐻(𝑥) → 𝑀(𝑥)) Rule P
2. 𝐻(𝑆) → 𝑀(𝑆) US (1)
3. 𝐻(𝑆) Rule P
4. 𝑀(𝑆) Detachment (2), (3)
14) Prove that the premises, “A student in the class has not read the book
and everyone in the class passed the first exam” imply the conclusion
“someone who passed the first exam has not read the book.”
(Hint):
Assume Universe: Set of all students in the college
𝐶(𝑥): x is in the class
𝐵(𝑥): x has read the book
𝑃(𝑥): x passed the first exam
To prove (∃𝑥)[𝐶(𝑥) ∧ 𝐵(𝑥)] ∧ (∀𝑥)[𝐶(𝑥) → 𝑃(𝑥)] ⇒ (∃𝑥)[𝑃(𝑥) ∧ ⅂𝐵(𝑥)]