Professional Documents
Culture Documents
Ch-2 Propositional Logic
Ch-2 Propositional Logic
Applications of PL:
i) Logical arguments
Fundamentals:
p: It is cold
q: London is in Denmark
p or q: Take it or Leave it
Λ Or . – AND
V Or + – OR
~ Or ' – NOT
→ Or – if….then
3. Truth Table: The truth value of a statement is its truth or falsity. A truth table is a list
giving all possible truth values of a proposition.
p q pΛ q
0 0 0
0 1 0
1 0 0
1 1 1
b) Disjunction or OR (V or +):
p q pVq
0 0 0
0 1 1
1 0 1
1 1 1
CITY MONTESSORI SCHOOL
SECTOR-D LDA KANPUR ROAD, LUCKNOW
PHONE: 0522 2435690 FAX: 0522 2435690
p p’
0 1
1 0
p q p→q
0 0 1
0 1 1
1 0 0
1 1 1
p q p q
0 0 1
0 1 0
1 0 0
1 1 1
CITY MONTESSORI SCHOOL
SECTOR-D LDA KANPUR ROAD, LUCKNOW
PHONE: 0522 2435690 FAX: 0522 2435690
Additional Implications:
ii) has a well-defined meaning given the value of its propositional variables.
The truth vaue of a wff can be found using a truth table. The connectives are evaluated
in the order of:
i) Parenthesis ( ) and / or [ ]
ii) NOT
iii) IF...THEN/IFF
iii) AND
iv) OR
Solution:
i) A.(B’.A + C) = 1 . (1.1 + 0) = 1.1 = 1
ii) (A + B’).(B + C) = (1+1).(0+0) = 1.0 = 0
CITY MONTESSORI SCHOOL
SECTOR-D LDA KANPUR ROAD, LUCKNOW
PHONE: 0522 2435690 FAX: 0522 2435690
p q r pVq (p V q) Λ r
0 0 0 0 0
0 0 1 0 0
0 1 0 1 0
0 1 1 1 1
1 0 0 1 0
1 0 1 1 1
1 1 0 1 0
1 1 1 1 1
Types of Wff:
p p’ p V p’ p p’ pVp
0 1 1 0 0
1 0 1 0 1
E.g.3: With the help of the truth table, state whether the proposition X V ~(Y Λ X) is a
tautology or contradiction. [ISC 2K16]
Solution:
X Y Y X ~(Y X) X V ~(Y X)
0 0 0 1 1
0 1 0 1 1
1 0 0 1 1
1 1 1 0 1
Logical Equivalence (Ξ): Two propositions or wff’s P and Q are said to be logically
equivalent or simply equivalent (i.e. P Ξ Q), if they have identical truth values for all
interpretations in the truth table.
E.g.1: Verify using a truth table P → Q Ξ ~P V Q
Solution:
P Q ~P P Q ~P V Q
0 0 1 1 1
0 1 1 1 1
1 0 0 0 0
1 1 0 1 1
E.g.2: Verify if p.(~p + q’) Ξ (p → q)’ using a truth table. [ISC 2K10]
Solution:
CITY MONTESSORI SCHOOL
SECTOR-D LDA KANPUR ROAD, LUCKNOW
PHONE: 0522 2435690 FAX: 0522 2435690
0 0 1 1 1 0 1 0
0 1 1 0 1 0 1 0
1 0 0 1 1 1 0 1
1 1 0 0 0 0 1 0
E.g.3: Using a truth table, state whether the following proposition is valid, satisfiable or
unsatisfiable. ~ (A Λ B) V (~A B) [ISC 2K18]
Solution:
0 0 1 0 1 0 1
0 1 1 0 1 1 1
1 0 0 0 1 1 1
1 1 0 1 0 1 1
INPUTS
P Denotes the President’s vote (1 indicates yes and 0 indicates no)
S Denotes the Secretary’s vote (1 indicates yes and 0 indicates no)
P S T X
0 0 0 0 -
0 0 1 0 -
0 1 0 0 -
0 1 1 0 -
1 0 0 0 -
1 0 1 1 P.S’.T
1 1 0 1 P.S.T’
1 1 1 1 P.S.T
CITY MONTESSORI SCHOOL
SECTOR-D LDA KANPUR ROAD, LUCKNOW
PHONE: 0522 2435690 FAX: 0522 2435690
INPUTS ARE
E The person is an ex-student of the department
P The person passed out in 1995
E P S I
0 0 0 0 -
0 0 1 0 -
0 1 0 0 -
0 1 1 1 E’.P.S
1 0 0 0 -
1 0 1 0 -
1 1 0 1 E.P.S’
1 1 1 1 E.P.S
Syllogism:
The logical process of drawing inferences from given premises is called Syllogism.
p1
p2
.
. Premises (1……n)
.
.
pn
__
q → conclusion
CITY MONTESSORI SCHOOL
SECTOR-D LDA KANPUR ROAD, LUCKNOW
PHONE: 0522 2435690 FAX: 0522 2435690
a) The set of given propositions used to draw a conclusion are called premises.
b) A conclusion is said to be valid, if and only if the implication (p1 Λ p2 Λ ……Λ pn)
→ q is a tautology.
c) An invalid conclusion is called a fallacy.
q
2. Modus Tullens rule:
~q
p→q
––––––
~p
3. Hypothetical Syllogism (Transitivity) or Chain rule:
p→q
q→r
––––––
p→r
4. Disjunctive Syllogism rule:
pVq
~p
––––––
q
CITY MONTESSORI SCHOOL
SECTOR-D LDA KANPUR ROAD, LUCKNOW
PHONE: 0522 2435690 FAX: 0522 2435690
5. Composition rule:
p→q
pΛr
–––––––––
p → (q Λ r)
The validity of an inference can be proved using
a) Truth table
b) Propositional laws
E.g.1: Prove the validity of the following argument by using a truth table
p
p→q
––––––
q
Solution: To prove [ p Λ (p → q) ] → q is a tautology.
p q p→ q p Λ (p→q) [p Λ (p→q)]→q
0 0 1 0 1
0 1 1 0 1
1 0 0 0 1
1 1 1 1 1