SlideShare a Scribd company logo
1 of 73
18MAB302T-Discrete Mathematics for
Engineers
UNIT 3
Dr. J. Uma
Dr. Gunasundari
Contents
• Proposition and logical operators
• Truth tables
• Tautology , Contradiction and Contingency
• Equivalences
• Implications
• Inference theory of propositions
2
Proposition or Statement
• A declarative sentence which is true or false
but not both is called a proposition
• Sentences which are exclamatory,
interrogative or imperative in nature are not
propositions
• Lower case letters are used to denote
propositions
3
Examples of propositions are
• Chennai is a city
• 2+2=3
Examples of not a proposition are
• What a beautiful day!
• Shut the door
• What time is it?
4
• If a proposition is true , we say that the truth
value of the proposition is true, denoted as T
• If a proposition is false , we say that the truth
value of the proposition is false, denoted as F
• Atomic/ Primary/Primitive statement is a
statement which does not contain any
connectives
5
• Compound or Molecular statement is a
statement which is constructed by combining
one or more statements using connectives
• There are 5 connectives or logical operators
• Conjunction, disjunction, negation,
conditional and biconditional
6
Conjunction Ʌ
• When p and q are any two propositions, the
proposition “p and q” is denoted by pɅq and
is called conjunction of p and q which is a
compound statement that is true when p and
q are true and is false otherwise. Truth Table is
7
p q pɅq
T T T
T F F
F T F
F F F
Disjunction ᴠ
• When p and q are any two propositions, the
proposition “p or q” is denoted by p ᴠ q and is
called disjunction of p and q which is a
compound statement that is false when p and
q is false and is true otherwise. Truth Table is
8
p q pᴠq
T T T
T F T
F T T
F F F
Negation ¬
• Given a proposition p, negation of this
proposition is ¬p. ¬ is read as “It is not the
case that” or “It is false that.
• Example: p Chennai is a city
¬p Chennai is not a city
• Truth table is
9
p ¬p
T F
F T
Conditional→
• If p and q are any two propositions, the
compound proposition “if p then q” is
denoted by p→q is called a conditional
proposition, which is false when p is true and
q is false and is true otherwise, p is hypothesis
and q is conclusion. Truth table is
10
p q p→q
T T T
T F F
F T T
F F T
Example of conditional
• If I get up at 5 AM, I will go for a walk
• If I get up at 5 AM, I will not go for a walk
• If I have not got up by 5 AM, I may or may not
not go for a walk
• ( the contract is not violated , so p→q is true)
11
biconditional↔
• If p and q are any two propositions, the compound
proposition “p if and only if q” is denoted by p↔qis
called a biconditionalproposition, which is true when
p and q have the same truth value and is false
otherwise, Eg. 𝑛 is even if and only if 𝑛2is even
12
p q p↔q
T T T
T F F
F T F
F F T
Tautology
13
p ¬p pᴠ¬p
T F T
F T T
2. Show that ((p →q) ˄ (q →r)) → (p →r) is a tautology.
14
3. Show that the following compound proposition is a tautology.
¬(p∨(q ∧r)) → ((p∨q)˄(p →r))
15
Contradiction
• A compound statement P=P(𝑝1,𝑝2,…,𝑝𝑛)
where 𝑝1,𝑝2,…,𝑝𝑛 are variables is called a
contradiction , if it is false for every truth value
assignment for 𝑝1,𝑝2,…,𝑝𝑛.
• Example
16
p ¬p pɅ¬p
T F F
F T F
2. Show that the following Compound Proposition is a
contradiction.
p ˄ (¬q ˄ (p → q))
17
Example 3
18
Equivalence of propositions A≡B
• Two component propositions A(𝑝1,𝑝2,…,𝑝𝑛)
and B(𝑝1,𝑝2,…,𝑝𝑛) are said to be logically
equivalent or equivalent , if they have the
identical truth tables.
• Eg.
19
p q pᴠq ¬(pᴠq) ¬p ¬q ¬pɅ¬q
T T T F F F F
T F T F F T F
F T T F T F F
F F F T T T T
• Note: Already p↔q is true whenever A and B
have same true vales. So p↔q is a tautology
when A and B are equivalent. Conversely A≡B
when p↔q is a tautology. Example is
20
p q p→q ¬p ¬pᴠq (p↔q) ↔(¬pᴠq)
T T T F T T
T F F F F T
F T T T T T
F F T T T T
21
Duality Law
• The dual of a compound proposition that contains
only the logical operators ᴠ, ᴧ and ¬is the proposition
obtained by replacing ᴠ by ᴧ, eachᴧ by ᴠ, each T by F
and each F by T, where T and F are special variables
representing tautology and contradiction respectively
Dual of proposition 𝐴 is denoted by 𝐴∗
• Duality theorem: If A(𝑝1,𝑝2,…,𝑝𝑛)= B(𝑝1,𝑝2,…,𝑝𝑛) ,
where A and B are compound propositions, then
𝐴∗ (𝑝1,𝑝2,…,𝑝𝑛) = 𝐵∗ (𝑝1,𝑝2,…,𝑝𝑛)
22
Examples
• 1. write the dual of p∨¬q
Ans: p∧¬q
• 2. write the dual ofp∧(q∨(r∧T))
Ans: p∨(q∧(r∨F))
• 3. write the dual of (p∧¬q)∨(q∧F)
Ans:(p∨¬q)∧(q∨T)
• 4. write the dual of p ∧ q)∨ (¬p ∨ q)∨ F
Ans: (p ∨ q)∧ (¬p ∧ q)∧T
23
Table1:Laws of Algebra of propositions
S.No Name of law Primal form Dual form
1. Idempotent law 𝑝 ᴠ 𝑝 ≡ 𝑝 𝑝 ᴧ 𝑝 ≡ 𝑝
2. Identity law 𝑝 ᴠ 𝐹 ≡ 𝑝 𝑝 ᴧ 𝑇 ≡ 𝑝
3 Dominant law 𝑝 ᴠ 𝑇 ≡ 𝑇 𝑝 ᴧ 𝐹 ≡ 𝐹
4. Complement law 𝑝 ᴠ ¬𝑝 ≡ 𝑇 𝑝 ᴧ ¬𝑝 ≡ 𝐹
5. Commutative law 𝑝 ᴠ 𝑞 ≡ 𝑞 ᴠ 𝑝 𝑝 ᴧ 𝑞 ≡ 𝑞 ᴧ 𝑝
6 Associative law 𝑝 ᴠ 𝑞 ᴠ 𝑟 ≡ 𝑝 ᴠ (𝑞 ᴠ 𝑟) 𝑝 ᴧ 𝑞 ᴧ 𝑟 ≡ 𝑝 ᴧ (𝑞 ᴧ 𝑟)
7. Distributive law 𝑝 ᴠ (𝑞 ᴧ 𝑟)
≡ (𝑝 ᴠ 𝑞) ᴧ (𝑝 ᴠ 𝑟)
𝑝 ᴧ (𝑞 ᴠ 𝑟)
≡ (𝑝 ᴧ 𝑞) ᴠ (𝑝 ᴧ 𝑟)
8. Absorption law 𝑝 ᴠ (𝑝 ᴧ 𝑞) ≡ p 𝑝 ᴧ (p ᴠ q) ≡ p
9. De Morgan’s law ¬ 𝑝 ᴠ 𝑞 ≡ ¬𝑝 ᴧ ¬𝑞 ¬(p ᴧ q) ≡ ¬p ᴧ ¬q
24
Table 2: Equivalences involving
Conditionals
25
S.No. Equivalence
1.. p → q ≡ ¬p ᴠ q
2. p → q ≡ ¬q → ¬p
3. 𝑝 ᴠ 𝑞 ≡ ¬𝑝 → 𝑞
4. 𝑝 ᴧ 𝑞 ≡ ¬(𝑝 → ¬q)
5. ¬(p → q) ≡ pᴧ ¬q
6. 𝑝 → 𝑞 ᴧ 𝑝 → 𝑟 ≡ 𝑝 → (𝑞 ᴧ r)
7. 𝑝 → 𝑟 ᴧ 𝑞 ᴧ 𝑟 ≡ 𝑝 ᴠ 𝑞 → 𝑟
8. 𝑝 → 𝑞 ᴠ 𝑝 → 𝑟 ≡ 𝑝 → (𝑞 ᴠ 𝑟)
9. (p → r) ᴠ (q → r) ≡ (p ᴧ q) → r
Table 3: Equivalences involving
biconditionals
26
S.No. Equivalence
1. 𝑝 ↔ 𝑞 ≡ 𝑝 → 𝑞 ᴧ (𝑞 → 𝑝)
2. 𝑝 ↔ 𝑞 ≡ ¬𝑝 ↔ ¬q
3. 𝑝 ↔ 𝑞 ≡ 𝑝 ᴧ 𝑞 ᴠ (¬𝑝 ᴧ ¬𝑞)
4. ¬(p ↔ q) ≡ p ↔ ¬q
Tautological Implication
• A compound proposition A(𝑝1,𝑝2,…,𝑝𝑛)is said
to tautologically imply or imply the compound
proposition B(𝑝1,𝑝2,…,𝑝𝑛), if B is true
whenever A is true or equivalently if and only
if A→B is a tautology. This is denoted by 𝐴 ⇒
𝐵,read as “A implies B”.
• Note: ⇒ is not a connective and A ⇒ B is not a
proposition.
27
Example problems of implication
Show that (i) p ⇒ (p ᴠ q) (ii) (p→q) ⇒ (¬q→¬p)
(i)
(ii)
28
Table 4: Implications
S.No. Implication
1 p ᴧ q ⇒ p
2 p ᴧ q ⇒ q
3 p ⇒ p ᴠ q
4 ¬p ⇒ p → q
5 q ⇒ p → q
6 ¬(p → q) ⇒ p
7 ¬(p → q) ⇒ ¬q
8 p ᴧ (p → q) ⇒ q
9 ¬q ᴧ (p → q) ⇒ ¬p
10 ¬p ᴧ (p ᴠ q) ⇒ q
11 (p → q) ᴧ (q → r) ⇒ p → r
12 (p ᴠ q) ᴧ (p → r) ᴧ (q → r) ⇒ r
29
Problem 1
Without using truth tables, prove that
p → (q → p) ≡ ¬p → (p → q)
Solution:
p → (q → p) ≡ ¬p ᴠ (q → p)
≡ ¬p ᴠ (¬q ᴠ p )
≡¬q ᴠ (p ᴠ ¬p), by commutative and
associative laws
≡ ¬p ᴠ T, by complement law
≡ T ,by dominant law (1)
30
¬p → (p → q) ≡ p ᴠ (p → q),by (1) of Table 1.10
≡ p ᴠ (¬p ᴠ q), by (1) of Table 1.10
≡ (p ᴠ ¬p) ᴠ q, by associative law
≡ T ᴠ q, by complement law
≡ T, by dominant law, (2)
From (1) and (2), the result follows.
31
Problem 2
Prove the following implications without using
truth tables:
((p ᴠ ¬p) → q) → ((p ᴠ ¬p) → r) ⇒ q → r
Solution:
[((p ᴠ ¬p) →q) → ((p ᴠ ¬p) →r)] → (q →r)
≡ [(T → q) → (T → r)] → (q → r)
≡ [(F ᴠ q) → (F ᴠ r)] → (q → r)
≡ (q → r) →(q → r)
≡ T
32
Unit – 3
Theory of Inference
OUTLINE
•Introduction
•Truth table Technique
•Examples
•Rules of Inference
•Direct Method
•Indirect Method
•Inconsistency
•Conditional Proof
Introduction
• Inference Theory is concerned with the inferring of
a conclusion from certain assumptions called
premises by applying certain principles of
reasoning called Rules of Inference.
• When a conclusion derived from a set of premises
by using rules of inference, the process of such
derivation is called Formal Proof.
Truth table Technique
• A Conclusion C is said to follow from a set of
premises H1, H2, …..Hn if H1  H2  ……  Hn C
• Problem 1 Consider H1 :  P , H2 : P Q  C : Q
P Q H1 :  P H2 : P Q C : Q
T T F T T
T F F T F
F T T T T
F F T F F
H1 and H2 are true only in the 3rd row of the above table, in which case
Conclusion C is also true .Hence the conclusion is valid
Problem 2 If two sides of a triangle are equal, then
two opposite angles are equal. Two sides of
a triangle are not equal. Therefore the opposite angles
are not equal.
P Q H1 : PQ H2 :  P C :  Q
T T T F F
T F F F T
F T T T F
F F T T T
P : Two sides of a triangle are equal.
Q: The two opposite angles are equal
H1 : PQ, H2 :  P  C :  Q
Conclusion:
H1 and H2 are true in the 3rd and 4th row of the above table,
but Conclusion C is different for the 3rd and 4th row . Hence
the conclusion is not a valid conclusion.
Note:
The truth table technique becomes tedious if the premises
contain a large number of variables
Rules of Inference
• Rule P : A premise may be introduced at any step
in the derivation.
• Rule T: A formula S may be introduced in the
derivation, if S is tautologically implied by one or
more preceding formula in the derivation.
contd…….
Rules of Inference
S. No. Rule in tautological form Name of the rule
1. (PQ)P
(PQ)Q
simplification
2. P(PQ)
Q(PQ)
Addition
3. P,Q(PQ) Conjunction
4. (P, (PQ))Q Modus Ponens
5. (Q (PQ))  P Modus Tollens
6. ((PQ),(QR))(PR) Hypothetical Syllagism
7. ((PQ), P) Q Disjunctive Syllagism
8. ((PQ), (PR),(QR)) R Dilemma
Direct Method
• From the given statement, identify the premises
and conclusion. Conclusion is obtained with the
help of premises by using the rules of inference .
Problem 1 If it rains heavily, then travelling will be difficult. If
students arrive on time, then travelling was not difficult. They
arrived on time. Therefore, it did not rain heavily.
Solution :
P : It rains heavily
Q: Travelling is difficult
R: Students arrived on time.
Premises: P Q, RQ and R  Conclusion C:  P
Stage Premises Rules
(1) PQ Rule P
(2)  Q  P Rule T, (1), Contra positive
(3) R   Q Rule P
(4) R   P Rule T, (3),(2), Hypothetical
Syllagism
(5) R Rule P
(6) P Rule T, (4),(5) and Modus
Ponens
Problem 2 Construct an argument using rules of
inference to show that the hypothesis:
Radha Works hard. If Radha works hard, then she is a
dull girl and if Radha is a dull girl, then she will not
get the job imply the conclusion Radha will not get
the job.
Solution /* Step1: Name the Sentences in the
question by using capital letters */
R: Radha works hard
D: Radha is a dull girl
J: She will not get the job
Step 2 / * construct the premises . Identify the conclusion */
Sentence Premise
Radha Works hard H1 : R
If Radha works hard, then she is a dull girl H2 : R D
If Radha is a dull girl, then she will not get the
job
H3 : D J
Imply the conclusion, Radha will not get the
job
C : J
Stage Premises Rules
(1) R Rule P
(2) R D Rule P
(3) D Rule T, (1),(2) and Modus
Ponens
(4) D  J Rule P
(5) J Rule T, (3),(4) and Modus
Ponens
Thus we have derived the conclusion C using the
given premises H1 , H2 ,H3
Problem 3 It is not sunny this afternoon and it is colder than
yesterday. We will go to the playground only if it is sunny. If
we do not go to the ground then we will go to a movie. If we
go to a movie then we will return by sunset lead to the
conclusion: we will return home by sunset.
Solution
P: It is sunny this afternoon.
Q: It is colder than yesterday.
R: We will go to the playground.
S: We will go to a movie.
T: We return home by sunset.
The premises are  P∧Q, RP,  R  S, S  T
Conclusion C: T
Stage Premises Rules
1  R S Rule P
2 S T Rule P
3  RT Rule T , (1), (2) Hypothetical syllogism
4 P ∧ Q Rule P
5 ¬ P Rule T , (4), simplification
6 R  P Rule P
7 S R Rule T ,(1), Contra positive
8  SP Rule T , (6), (7), Hypothetical syllagism
9  P S Rule T ,(8) ,Contrapositive
10 S Rule T (5), (9), Modus Ponens
11 T Rule T (2), (10), Modus Ponens.
Problem 4: Prove the following using direct method:
P  Q, P  R, Q  S ⇒ S  R
Stage Premises Rules
1 P  Q Rule P
2 ∼P Q Rule T, (1), Equivalence
3 Q  S Rule P
4 ∼PS Rule T, (2), (3) Hypothetical syllogism
5 P  R Rule P
6 ∼S P Rule T, (4), Contra positive
7 ∼SR Rule T ,(5), (6), Hypothetical syllogism
8 S  R Rule T , (7), Equivalence
Indirect Method
• To prove a conclusion C
• Assume the conclusion is false
• Include C( negation of the conclusion) as an
additional premise .
• Additional and along with the given premises
arrive at a contradiction .
Problem 1 Using indirect method of proof to derive P  S
from P (Q ∨ R) , Q   P, S   R, P.
Stage Premises Rule
1 P (Q ∨ R) Rule P
2 P Rule P
3 (Q ∨ R) Rule T ,(1), (2) Modus Ponens
4 S   R Rule P
5. (P  S) Additional Premise
6. ( P ∨  S) Rule T, (5), Equivalence
7 PS Rule T, (6), Equivalence
8 S Rule T ,(7), Simplification
Contd…
Stage Premises Rules
9  R Rule T, (4) ,(8) , Modus Ponens
10  Q R Rule T ,(3), a b ≡ ∼a  b
11  R  Q Rule T ,(10),Contra positive
12 Q Rule T ,(9),(11) Modus Ponens
13 Q   P Rule P
14 P Rule T ,(12), (13) Modus Ponens
15 P  P ≡ F
A contradiction
Rule T, (2),(12) Negation law
Problem 2: Prove by Indirect method Q, PQ, (PR)R
Stage Premises Rules
1 P  Q Rule P
2  Q Rule P
3 P Rule T, (1),(2),Modus Tollens
4 (PR) Rule P
5. R Additional Premise
6.  P   R Rule T, (3),(5),Addition
7 (PR) Rule T, (6), Demorgan’s Law
8 (PR)  (PR)  F
A contradiction
Rule T, (4),(7), Negation law
Inconsistency
• A set of premises H1, H2, …..Hn is said to be
inconsistent if their conjunction implies a
contradiction (i.e.,) (H1  H2  ……  Hn)  F
Problem 1 Show that the following premises are
inconsistent P Q, Q  R, S   R and P ∧ S
Stage Premises Rules
(1) P Q Rule P
(2) Q  R Rule P
(3) P R Rule T, (1),(2),Hypothetical Syllagism
(4) S   R Rule P
(5) R  S Rule T, (4),Contra positive
(6) P  S Rule T, (3),(5), Hypothetical Syllagism
(7)  P   S Rule T, (6), a b ≡ ∼a  b
(8) (P ∧ S) Rule T, (6), Demorgan’s Law
(9) (P ∧ S) Rule P
(10) (P ∧ S)(P ∧ S) )  F
A contradiction
Rule T, (8),(9), Negation law
Problem 2 Show that the following premises are
inconsistent
• If Raja misses many classes, then he fails in
the final examination.
• If Raja fails in the final examination, then he is
uneducated.
• If Raja reads a lots of books, then he is
uneducated .
• If Raja misses many classes and reads a lot of
books.
Solution
• M: Raja misses many classes.
• F: He fails in the final examination.
• E: He is educated.
• B: Raja reads a lots of books
M F, F   E, B E, M  B
We have to prove M F, F   E, B E,( M  B)F
Stage Premises Rules
(1) M F Rule P
(2) F   E Rule P
(3) M  E Rule T , (1), (2) Hypothetical syllagism
(4) B E Rule P
(5)  E  B Rule T, (4), Contra positive
(6) MB Rule T , (3), (5) Hypothetical syllagism
(7) M  B Rule P
(8) M Rule T, (7),Simplification
(9)  B Rule T, (6),(9), Modus Tollens
(10) B Rule T, (7),Simplification
(11) B  B  F
A contradiction
Rule T, (8),(9), Negation law
Conditional Proof
Given a set of premises (H1, H2, …..Hn)
whose conclusion is of the form (PQ).
The rule CP as follows:
Along with the given set of premises (H1, H2, …..Hn) , we take the
antecedent part P of the conclusion (PQ) as an additional
premise and we prove only the consequent part Q of (PQ ) as
the conclusion .
Problem 1 If A works hard, then B or C will enjoy themselves . If B enjoys
himself, then A will not work hard. If D enjoys himself, then C will not.
Therefore, if A works hard, D will not enjoy himself.
Translate the above into statements and prove the conclusion by
using the CP -Rule
Solution
P: A works hard
Q: B will enjoy themself
R: C will enjoy themself
S: D enjoys himself
P  (QR),Q  P,S  R P   S
Contd…
Stage Premises Rules
(1) P  (QR) Rule P
(2) P Additional Premise
(3) (QR) Rule T,(1),(2), Modus Ponens
(4) Q  P Rule P
(5) Q Rule T,(1),(2), Modus Tollens
(6) R Rule T , (3), (5), Disjunctive syllagism
(7) S  R Rule P
(8)  S Rule T,(6),(7), Modus Tollens and
P   S by CP- Rule
Problem 2 Prove the following using CP Rule
P  (Q  S), R P , Q R  S
Stage Premises Rules
(1)
R P Rule P
(2)
R Additional Premise
(3)
P Rule T,(1),(2), Disjunctive Syllagism
(4)
P  (Q  S) Rule P
(5)
(Q  S) Rule T,(1),(2), Modus Ponens
(6)
Q Rule P
(7)
S Rule T,(5),(6), Modus Ponens and
(R  S) by CP -Rule
Principle of Mathematical Induction
• Let P(n) be the statement involving a natural
number. If P(1) is true and P(k+1) is true, then all
the assumptions of P(k) is true.
• We conclude that a statement P(n) is true for all
natural numbers.
Procedure
• To prove P(n) is true for all natural numbers n.
• First Step: We must prove that P(1) is true.
• Second Step: Assume P(k) is true, P(k+1)is true
• The first step is called the Basis Step of the proof.
• The second step is called the Induction step of the
proof.
Problems
1) Prove by induction,
 P(n+1) is true.
If P(n) is true, then P(n+1) is also true.
By the principle of Mathematical Induction,
UNIT-III-PPT.pptx
UNIT-III-PPT.pptx
UNIT-III-PPT.pptx
UNIT-III-PPT.pptx
UNIT-III-PPT.pptx
UNIT-III-PPT.pptx
UNIT-III-PPT.pptx

More Related Content

What's hot

Finite state machine without output
Finite state machine without outputFinite state machine without output
Finite state machine without outputTayyab Rajput
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer scienceBindhuBhargaviTalasi
 
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDAPush Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDAAshish Duggal
 
Turing Machine
Turing MachineTuring Machine
Turing MachineRajendran
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDr. Khaled Bakro
 
Syntactic analysis in NLP
Syntactic analysis in NLPSyntactic analysis in NLP
Syntactic analysis in NLPkartikaVashisht
 
Fail2ban - the system security for green hand -on linux os
Fail2ban  - the system security  for green hand -on linux osFail2ban  - the system security  for green hand -on linux os
Fail2ban - the system security for green hand -on linux osSamina Fu (Shan Jung Fu)
 
Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Rachana Pathak
 
1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets1.10. pumping lemma for regular sets
1.10. pumping lemma for regular setsSampath Kumar S
 
Intelligence control using fuzzy logic
Intelligence control using fuzzy logicIntelligence control using fuzzy logic
Intelligence control using fuzzy logicelakiyakishok
 

What's hot (20)

Turing machines
Turing machinesTuring machines
Turing machines
 
Finite state machine without output
Finite state machine without outputFinite state machine without output
Finite state machine without output
 
Multi Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing MachineMulti Head, Multi Tape Turing Machine
Multi Head, Multi Tape Turing Machine
 
Undecidabality
UndecidabalityUndecidabality
Undecidabality
 
Context free grammar
Context free grammarContext free grammar
Context free grammar
 
Semaphores
SemaphoresSemaphores
Semaphores
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
 
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDAPush Down Automata (PDA) | TOC  (Theory of Computation) | NPDA | DPDA
Push Down Automata (PDA) | TOC (Theory of Computation) | NPDA | DPDA
 
Planar graph
Planar graphPlanar graph
Planar graph
 
Normal forms
Normal formsNormal forms
Normal forms
 
Turing Machine
Turing MachineTuring Machine
Turing Machine
 
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكروDiscrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
Discrete mathematics Ch2 Propositional Logic_Dr.khaled.Bakro د. خالد بكرو
 
push down automata
push down automatapush down automata
push down automata
 
Basic logic gates
Basic logic gatesBasic logic gates
Basic logic gates
 
Syntactic analysis in NLP
Syntactic analysis in NLPSyntactic analysis in NLP
Syntactic analysis in NLP
 
Fail2ban - the system security for green hand -on linux os
Fail2ban  - the system security  for green hand -on linux osFail2ban  - the system security  for green hand -on linux os
Fail2ban - the system security for green hand -on linux os
 
Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)Poset in Relations(Discrete Mathematics)
Poset in Relations(Discrete Mathematics)
 
Finite automata
Finite automataFinite automata
Finite automata
 
1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets1.10. pumping lemma for regular sets
1.10. pumping lemma for regular sets
 
Intelligence control using fuzzy logic
Intelligence control using fuzzy logicIntelligence control using fuzzy logic
Intelligence control using fuzzy logic
 

Similar to UNIT-III-PPT.pptx

Similar to UNIT-III-PPT.pptx (20)

Logic and proof
Logic and proofLogic and proof
Logic and proof
 
Course notes1
Course notes1Course notes1
Course notes1
 
logic_lec4.ppt
logic_lec4.pptlogic_lec4.ppt
logic_lec4.ppt
 
DMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptxDMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptx
 
Logic parti
Logic partiLogic parti
Logic parti
 
DS Lecture 2.ppt
DS Lecture 2.pptDS Lecture 2.ppt
DS Lecture 2.ppt
 
UGC NET Computer Science & Application book.pdf [Sample]
UGC NET Computer Science & Application book.pdf  [Sample]UGC NET Computer Science & Application book.pdf  [Sample]
UGC NET Computer Science & Application book.pdf [Sample]
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
 
CS202Ch1.ppt
CS202Ch1.pptCS202Ch1.ppt
CS202Ch1.ppt
 
MFCS PPT.pdf
MFCS PPT.pdfMFCS PPT.pdf
MFCS PPT.pdf
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
 
Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statements
 
LOGIC
LOGICLOGIC
LOGIC
 
Per3 logika&pembuktian
Per3 logika&pembuktianPer3 logika&pembuktian
Per3 logika&pembuktian
 
Logic - Logical Propositions
Logic - Logical Propositions Logic - Logical Propositions
Logic - Logical Propositions
 
Lecture-3-and-4.pdf
Lecture-3-and-4.pdfLecture-3-and-4.pdf
Lecture-3-and-4.pdf
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
Discrete Structures
Discrete Structures Discrete Structures
Discrete Structures
 
Logic
LogicLogic
Logic
 

Recently uploaded

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking MenDelhi Call girls
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationMichael W. Hawkins
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerThousandEyes
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptxLBM Solutions
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Paola De la Torre
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsMaria Levchenko
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 

Recently uploaded (20)

My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Key Features Of Token Development (1).pptx
Key  Features Of Token  Development (1).pptxKey  Features Of Token  Development (1).pptx
Key Features Of Token Development (1).pptx
 
Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101Salesforce Community Group Quito, Salesforce 101
Salesforce Community Group Quito, Salesforce 101
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 

UNIT-III-PPT.pptx

  • 2. Contents • Proposition and logical operators • Truth tables • Tautology , Contradiction and Contingency • Equivalences • Implications • Inference theory of propositions 2
  • 3. Proposition or Statement • A declarative sentence which is true or false but not both is called a proposition • Sentences which are exclamatory, interrogative or imperative in nature are not propositions • Lower case letters are used to denote propositions 3
  • 4. Examples of propositions are • Chennai is a city • 2+2=3 Examples of not a proposition are • What a beautiful day! • Shut the door • What time is it? 4
  • 5. • If a proposition is true , we say that the truth value of the proposition is true, denoted as T • If a proposition is false , we say that the truth value of the proposition is false, denoted as F • Atomic/ Primary/Primitive statement is a statement which does not contain any connectives 5
  • 6. • Compound or Molecular statement is a statement which is constructed by combining one or more statements using connectives • There are 5 connectives or logical operators • Conjunction, disjunction, negation, conditional and biconditional 6
  • 7. Conjunction Ʌ • When p and q are any two propositions, the proposition “p and q” is denoted by pɅq and is called conjunction of p and q which is a compound statement that is true when p and q are true and is false otherwise. Truth Table is 7 p q pɅq T T T T F F F T F F F F
  • 8. Disjunction ᴠ • When p and q are any two propositions, the proposition “p or q” is denoted by p ᴠ q and is called disjunction of p and q which is a compound statement that is false when p and q is false and is true otherwise. Truth Table is 8 p q pᴠq T T T T F T F T T F F F
  • 9. Negation ¬ • Given a proposition p, negation of this proposition is ¬p. ¬ is read as “It is not the case that” or “It is false that. • Example: p Chennai is a city ¬p Chennai is not a city • Truth table is 9 p ¬p T F F T
  • 10. Conditional→ • If p and q are any two propositions, the compound proposition “if p then q” is denoted by p→q is called a conditional proposition, which is false when p is true and q is false and is true otherwise, p is hypothesis and q is conclusion. Truth table is 10 p q p→q T T T T F F F T T F F T
  • 11. Example of conditional • If I get up at 5 AM, I will go for a walk • If I get up at 5 AM, I will not go for a walk • If I have not got up by 5 AM, I may or may not not go for a walk • ( the contract is not violated , so p→q is true) 11
  • 12. biconditional↔ • If p and q are any two propositions, the compound proposition “p if and only if q” is denoted by p↔qis called a biconditionalproposition, which is true when p and q have the same truth value and is false otherwise, Eg. 𝑛 is even if and only if 𝑛2is even 12 p q p↔q T T T T F F F T F F F T
  • 14. 2. Show that ((p →q) ˄ (q →r)) → (p →r) is a tautology. 14
  • 15. 3. Show that the following compound proposition is a tautology. ¬(p∨(q ∧r)) → ((p∨q)˄(p →r)) 15
  • 16. Contradiction • A compound statement P=P(𝑝1,𝑝2,…,𝑝𝑛) where 𝑝1,𝑝2,…,𝑝𝑛 are variables is called a contradiction , if it is false for every truth value assignment for 𝑝1,𝑝2,…,𝑝𝑛. • Example 16 p ¬p pɅ¬p T F F F T F
  • 17. 2. Show that the following Compound Proposition is a contradiction. p ˄ (¬q ˄ (p → q)) 17
  • 19. Equivalence of propositions A≡B • Two component propositions A(𝑝1,𝑝2,…,𝑝𝑛) and B(𝑝1,𝑝2,…,𝑝𝑛) are said to be logically equivalent or equivalent , if they have the identical truth tables. • Eg. 19 p q pᴠq ¬(pᴠq) ¬p ¬q ¬pɅ¬q T T T F F F F T F T F F T F F T T F T F F F F F T T T T
  • 20. • Note: Already p↔q is true whenever A and B have same true vales. So p↔q is a tautology when A and B are equivalent. Conversely A≡B when p↔q is a tautology. Example is 20 p q p→q ¬p ¬pᴠq (p↔q) ↔(¬pᴠq) T T T F T T T F F F F T F T T T T T F F T T T T
  • 21. 21
  • 22. Duality Law • The dual of a compound proposition that contains only the logical operators ᴠ, ᴧ and ¬is the proposition obtained by replacing ᴠ by ᴧ, eachᴧ by ᴠ, each T by F and each F by T, where T and F are special variables representing tautology and contradiction respectively Dual of proposition 𝐴 is denoted by 𝐴∗ • Duality theorem: If A(𝑝1,𝑝2,…,𝑝𝑛)= B(𝑝1,𝑝2,…,𝑝𝑛) , where A and B are compound propositions, then 𝐴∗ (𝑝1,𝑝2,…,𝑝𝑛) = 𝐵∗ (𝑝1,𝑝2,…,𝑝𝑛) 22
  • 23. Examples • 1. write the dual of p∨¬q Ans: p∧¬q • 2. write the dual ofp∧(q∨(r∧T)) Ans: p∨(q∧(r∨F)) • 3. write the dual of (p∧¬q)∨(q∧F) Ans:(p∨¬q)∧(q∨T) • 4. write the dual of p ∧ q)∨ (¬p ∨ q)∨ F Ans: (p ∨ q)∧ (¬p ∧ q)∧T 23
  • 24. Table1:Laws of Algebra of propositions S.No Name of law Primal form Dual form 1. Idempotent law 𝑝 ᴠ 𝑝 ≡ 𝑝 𝑝 ᴧ 𝑝 ≡ 𝑝 2. Identity law 𝑝 ᴠ 𝐹 ≡ 𝑝 𝑝 ᴧ 𝑇 ≡ 𝑝 3 Dominant law 𝑝 ᴠ 𝑇 ≡ 𝑇 𝑝 ᴧ 𝐹 ≡ 𝐹 4. Complement law 𝑝 ᴠ ¬𝑝 ≡ 𝑇 𝑝 ᴧ ¬𝑝 ≡ 𝐹 5. Commutative law 𝑝 ᴠ 𝑞 ≡ 𝑞 ᴠ 𝑝 𝑝 ᴧ 𝑞 ≡ 𝑞 ᴧ 𝑝 6 Associative law 𝑝 ᴠ 𝑞 ᴠ 𝑟 ≡ 𝑝 ᴠ (𝑞 ᴠ 𝑟) 𝑝 ᴧ 𝑞 ᴧ 𝑟 ≡ 𝑝 ᴧ (𝑞 ᴧ 𝑟) 7. Distributive law 𝑝 ᴠ (𝑞 ᴧ 𝑟) ≡ (𝑝 ᴠ 𝑞) ᴧ (𝑝 ᴠ 𝑟) 𝑝 ᴧ (𝑞 ᴠ 𝑟) ≡ (𝑝 ᴧ 𝑞) ᴠ (𝑝 ᴧ 𝑟) 8. Absorption law 𝑝 ᴠ (𝑝 ᴧ 𝑞) ≡ p 𝑝 ᴧ (p ᴠ q) ≡ p 9. De Morgan’s law ¬ 𝑝 ᴠ 𝑞 ≡ ¬𝑝 ᴧ ¬𝑞 ¬(p ᴧ q) ≡ ¬p ᴧ ¬q 24
  • 25. Table 2: Equivalences involving Conditionals 25 S.No. Equivalence 1.. p → q ≡ ¬p ᴠ q 2. p → q ≡ ¬q → ¬p 3. 𝑝 ᴠ 𝑞 ≡ ¬𝑝 → 𝑞 4. 𝑝 ᴧ 𝑞 ≡ ¬(𝑝 → ¬q) 5. ¬(p → q) ≡ pᴧ ¬q 6. 𝑝 → 𝑞 ᴧ 𝑝 → 𝑟 ≡ 𝑝 → (𝑞 ᴧ r) 7. 𝑝 → 𝑟 ᴧ 𝑞 ᴧ 𝑟 ≡ 𝑝 ᴠ 𝑞 → 𝑟 8. 𝑝 → 𝑞 ᴠ 𝑝 → 𝑟 ≡ 𝑝 → (𝑞 ᴠ 𝑟) 9. (p → r) ᴠ (q → r) ≡ (p ᴧ q) → r
  • 26. Table 3: Equivalences involving biconditionals 26 S.No. Equivalence 1. 𝑝 ↔ 𝑞 ≡ 𝑝 → 𝑞 ᴧ (𝑞 → 𝑝) 2. 𝑝 ↔ 𝑞 ≡ ¬𝑝 ↔ ¬q 3. 𝑝 ↔ 𝑞 ≡ 𝑝 ᴧ 𝑞 ᴠ (¬𝑝 ᴧ ¬𝑞) 4. ¬(p ↔ q) ≡ p ↔ ¬q
  • 27. Tautological Implication • A compound proposition A(𝑝1,𝑝2,…,𝑝𝑛)is said to tautologically imply or imply the compound proposition B(𝑝1,𝑝2,…,𝑝𝑛), if B is true whenever A is true or equivalently if and only if A→B is a tautology. This is denoted by 𝐴 ⇒ 𝐵,read as “A implies B”. • Note: ⇒ is not a connective and A ⇒ B is not a proposition. 27
  • 28. Example problems of implication Show that (i) p ⇒ (p ᴠ q) (ii) (p→q) ⇒ (¬q→¬p) (i) (ii) 28
  • 29. Table 4: Implications S.No. Implication 1 p ᴧ q ⇒ p 2 p ᴧ q ⇒ q 3 p ⇒ p ᴠ q 4 ¬p ⇒ p → q 5 q ⇒ p → q 6 ¬(p → q) ⇒ p 7 ¬(p → q) ⇒ ¬q 8 p ᴧ (p → q) ⇒ q 9 ¬q ᴧ (p → q) ⇒ ¬p 10 ¬p ᴧ (p ᴠ q) ⇒ q 11 (p → q) ᴧ (q → r) ⇒ p → r 12 (p ᴠ q) ᴧ (p → r) ᴧ (q → r) ⇒ r 29
  • 30. Problem 1 Without using truth tables, prove that p → (q → p) ≡ ¬p → (p → q) Solution: p → (q → p) ≡ ¬p ᴠ (q → p) ≡ ¬p ᴠ (¬q ᴠ p ) ≡¬q ᴠ (p ᴠ ¬p), by commutative and associative laws ≡ ¬p ᴠ T, by complement law ≡ T ,by dominant law (1) 30
  • 31. ¬p → (p → q) ≡ p ᴠ (p → q),by (1) of Table 1.10 ≡ p ᴠ (¬p ᴠ q), by (1) of Table 1.10 ≡ (p ᴠ ¬p) ᴠ q, by associative law ≡ T ᴠ q, by complement law ≡ T, by dominant law, (2) From (1) and (2), the result follows. 31
  • 32. Problem 2 Prove the following implications without using truth tables: ((p ᴠ ¬p) → q) → ((p ᴠ ¬p) → r) ⇒ q → r Solution: [((p ᴠ ¬p) →q) → ((p ᴠ ¬p) →r)] → (q →r) ≡ [(T → q) → (T → r)] → (q → r) ≡ [(F ᴠ q) → (F ᴠ r)] → (q → r) ≡ (q → r) →(q → r) ≡ T 32
  • 33. Unit – 3 Theory of Inference OUTLINE •Introduction •Truth table Technique •Examples •Rules of Inference •Direct Method •Indirect Method •Inconsistency •Conditional Proof
  • 34. Introduction • Inference Theory is concerned with the inferring of a conclusion from certain assumptions called premises by applying certain principles of reasoning called Rules of Inference. • When a conclusion derived from a set of premises by using rules of inference, the process of such derivation is called Formal Proof.
  • 35. Truth table Technique • A Conclusion C is said to follow from a set of premises H1, H2, …..Hn if H1  H2  ……  Hn C • Problem 1 Consider H1 :  P , H2 : P Q  C : Q P Q H1 :  P H2 : P Q C : Q T T F T T T F F T F F T T T T F F T F F H1 and H2 are true only in the 3rd row of the above table, in which case Conclusion C is also true .Hence the conclusion is valid
  • 36. Problem 2 If two sides of a triangle are equal, then two opposite angles are equal. Two sides of a triangle are not equal. Therefore the opposite angles are not equal. P Q H1 : PQ H2 :  P C :  Q T T T F F T F F F T F T T T F F F T T T P : Two sides of a triangle are equal. Q: The two opposite angles are equal H1 : PQ, H2 :  P  C :  Q
  • 37. Conclusion: H1 and H2 are true in the 3rd and 4th row of the above table, but Conclusion C is different for the 3rd and 4th row . Hence the conclusion is not a valid conclusion. Note: The truth table technique becomes tedious if the premises contain a large number of variables
  • 38. Rules of Inference • Rule P : A premise may be introduced at any step in the derivation. • Rule T: A formula S may be introduced in the derivation, if S is tautologically implied by one or more preceding formula in the derivation. contd…….
  • 39. Rules of Inference S. No. Rule in tautological form Name of the rule 1. (PQ)P (PQ)Q simplification 2. P(PQ) Q(PQ) Addition 3. P,Q(PQ) Conjunction 4. (P, (PQ))Q Modus Ponens 5. (Q (PQ))  P Modus Tollens 6. ((PQ),(QR))(PR) Hypothetical Syllagism 7. ((PQ), P) Q Disjunctive Syllagism 8. ((PQ), (PR),(QR)) R Dilemma
  • 40. Direct Method • From the given statement, identify the premises and conclusion. Conclusion is obtained with the help of premises by using the rules of inference .
  • 41. Problem 1 If it rains heavily, then travelling will be difficult. If students arrive on time, then travelling was not difficult. They arrived on time. Therefore, it did not rain heavily. Solution : P : It rains heavily Q: Travelling is difficult R: Students arrived on time. Premises: P Q, RQ and R  Conclusion C:  P
  • 42. Stage Premises Rules (1) PQ Rule P (2)  Q  P Rule T, (1), Contra positive (3) R   Q Rule P (4) R   P Rule T, (3),(2), Hypothetical Syllagism (5) R Rule P (6) P Rule T, (4),(5) and Modus Ponens
  • 43. Problem 2 Construct an argument using rules of inference to show that the hypothesis: Radha Works hard. If Radha works hard, then she is a dull girl and if Radha is a dull girl, then she will not get the job imply the conclusion Radha will not get the job. Solution /* Step1: Name the Sentences in the question by using capital letters */ R: Radha works hard D: Radha is a dull girl J: She will not get the job
  • 44. Step 2 / * construct the premises . Identify the conclusion */ Sentence Premise Radha Works hard H1 : R If Radha works hard, then she is a dull girl H2 : R D If Radha is a dull girl, then she will not get the job H3 : D J Imply the conclusion, Radha will not get the job C : J
  • 45. Stage Premises Rules (1) R Rule P (2) R D Rule P (3) D Rule T, (1),(2) and Modus Ponens (4) D  J Rule P (5) J Rule T, (3),(4) and Modus Ponens Thus we have derived the conclusion C using the given premises H1 , H2 ,H3
  • 46. Problem 3 It is not sunny this afternoon and it is colder than yesterday. We will go to the playground only if it is sunny. If we do not go to the ground then we will go to a movie. If we go to a movie then we will return by sunset lead to the conclusion: we will return home by sunset. Solution P: It is sunny this afternoon. Q: It is colder than yesterday. R: We will go to the playground. S: We will go to a movie. T: We return home by sunset. The premises are  P∧Q, RP,  R  S, S  T Conclusion C: T
  • 47. Stage Premises Rules 1  R S Rule P 2 S T Rule P 3  RT Rule T , (1), (2) Hypothetical syllogism 4 P ∧ Q Rule P 5 ¬ P Rule T , (4), simplification 6 R  P Rule P 7 S R Rule T ,(1), Contra positive 8  SP Rule T , (6), (7), Hypothetical syllagism 9  P S Rule T ,(8) ,Contrapositive 10 S Rule T (5), (9), Modus Ponens 11 T Rule T (2), (10), Modus Ponens.
  • 48. Problem 4: Prove the following using direct method: P  Q, P  R, Q  S ⇒ S  R Stage Premises Rules 1 P  Q Rule P 2 ∼P Q Rule T, (1), Equivalence 3 Q  S Rule P 4 ∼PS Rule T, (2), (3) Hypothetical syllogism 5 P  R Rule P 6 ∼S P Rule T, (4), Contra positive 7 ∼SR Rule T ,(5), (6), Hypothetical syllogism 8 S  R Rule T , (7), Equivalence
  • 49. Indirect Method • To prove a conclusion C • Assume the conclusion is false • Include C( negation of the conclusion) as an additional premise . • Additional and along with the given premises arrive at a contradiction .
  • 50. Problem 1 Using indirect method of proof to derive P  S from P (Q ∨ R) , Q   P, S   R, P. Stage Premises Rule 1 P (Q ∨ R) Rule P 2 P Rule P 3 (Q ∨ R) Rule T ,(1), (2) Modus Ponens 4 S   R Rule P 5. (P  S) Additional Premise 6. ( P ∨  S) Rule T, (5), Equivalence 7 PS Rule T, (6), Equivalence 8 S Rule T ,(7), Simplification
  • 51. Contd… Stage Premises Rules 9  R Rule T, (4) ,(8) , Modus Ponens 10  Q R Rule T ,(3), a b ≡ ∼a  b 11  R  Q Rule T ,(10),Contra positive 12 Q Rule T ,(9),(11) Modus Ponens 13 Q   P Rule P 14 P Rule T ,(12), (13) Modus Ponens 15 P  P ≡ F A contradiction Rule T, (2),(12) Negation law
  • 52. Problem 2: Prove by Indirect method Q, PQ, (PR)R Stage Premises Rules 1 P  Q Rule P 2  Q Rule P 3 P Rule T, (1),(2),Modus Tollens 4 (PR) Rule P 5. R Additional Premise 6.  P   R Rule T, (3),(5),Addition 7 (PR) Rule T, (6), Demorgan’s Law 8 (PR)  (PR)  F A contradiction Rule T, (4),(7), Negation law
  • 53. Inconsistency • A set of premises H1, H2, …..Hn is said to be inconsistent if their conjunction implies a contradiction (i.e.,) (H1  H2  ……  Hn)  F
  • 54. Problem 1 Show that the following premises are inconsistent P Q, Q  R, S   R and P ∧ S Stage Premises Rules (1) P Q Rule P (2) Q  R Rule P (3) P R Rule T, (1),(2),Hypothetical Syllagism (4) S   R Rule P (5) R  S Rule T, (4),Contra positive (6) P  S Rule T, (3),(5), Hypothetical Syllagism (7)  P   S Rule T, (6), a b ≡ ∼a  b (8) (P ∧ S) Rule T, (6), Demorgan’s Law (9) (P ∧ S) Rule P (10) (P ∧ S)(P ∧ S) )  F A contradiction Rule T, (8),(9), Negation law
  • 55. Problem 2 Show that the following premises are inconsistent • If Raja misses many classes, then he fails in the final examination. • If Raja fails in the final examination, then he is uneducated. • If Raja reads a lots of books, then he is uneducated . • If Raja misses many classes and reads a lot of books.
  • 56. Solution • M: Raja misses many classes. • F: He fails in the final examination. • E: He is educated. • B: Raja reads a lots of books M F, F   E, B E, M  B
  • 57. We have to prove M F, F   E, B E,( M  B)F Stage Premises Rules (1) M F Rule P (2) F   E Rule P (3) M  E Rule T , (1), (2) Hypothetical syllagism (4) B E Rule P (5)  E  B Rule T, (4), Contra positive (6) MB Rule T , (3), (5) Hypothetical syllagism (7) M  B Rule P (8) M Rule T, (7),Simplification (9)  B Rule T, (6),(9), Modus Tollens (10) B Rule T, (7),Simplification (11) B  B  F A contradiction Rule T, (8),(9), Negation law
  • 58. Conditional Proof Given a set of premises (H1, H2, …..Hn) whose conclusion is of the form (PQ). The rule CP as follows: Along with the given set of premises (H1, H2, …..Hn) , we take the antecedent part P of the conclusion (PQ) as an additional premise and we prove only the consequent part Q of (PQ ) as the conclusion .
  • 59. Problem 1 If A works hard, then B or C will enjoy themselves . If B enjoys himself, then A will not work hard. If D enjoys himself, then C will not. Therefore, if A works hard, D will not enjoy himself. Translate the above into statements and prove the conclusion by using the CP -Rule Solution P: A works hard Q: B will enjoy themself R: C will enjoy themself S: D enjoys himself P  (QR),Q  P,S  R P   S
  • 60. Contd… Stage Premises Rules (1) P  (QR) Rule P (2) P Additional Premise (3) (QR) Rule T,(1),(2), Modus Ponens (4) Q  P Rule P (5) Q Rule T,(1),(2), Modus Tollens (6) R Rule T , (3), (5), Disjunctive syllagism (7) S  R Rule P (8)  S Rule T,(6),(7), Modus Tollens and P   S by CP- Rule
  • 61. Problem 2 Prove the following using CP Rule P  (Q  S), R P , Q R  S Stage Premises Rules (1) R P Rule P (2) R Additional Premise (3) P Rule T,(1),(2), Disjunctive Syllagism (4) P  (Q  S) Rule P (5) (Q  S) Rule T,(1),(2), Modus Ponens (6) Q Rule P (7) S Rule T,(5),(6), Modus Ponens and (R  S) by CP -Rule
  • 62. Principle of Mathematical Induction • Let P(n) be the statement involving a natural number. If P(1) is true and P(k+1) is true, then all the assumptions of P(k) is true. • We conclude that a statement P(n) is true for all natural numbers.
  • 63. Procedure • To prove P(n) is true for all natural numbers n. • First Step: We must prove that P(1) is true. • Second Step: Assume P(k) is true, P(k+1)is true • The first step is called the Basis Step of the proof. • The second step is called the Induction step of the proof.
  • 64. Problems 1) Prove by induction,
  • 65.
  • 66.  P(n+1) is true. If P(n) is true, then P(n+1) is also true. By the principle of Mathematical Induction,