SlideShare a Scribd company logo
LECTURE 3
Chapter 1.2
Propositional Equivalences
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Conditional Statement
Let p and q be propositions. The conditional statement p → 𝑞 is
the proposition "if p then q ."
The conditional statement 𝐩 → 𝒒 is false when p is true and q
is false, and true otherwise.
In the conditional statement p → 𝑞, p is called the hypothesis
(or antecedent or premise) and q is called the conclusion (or
consequence).
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Truth Table for the Conditional Statement
P Q P → 𝑄
T T T
T F F
F T T
F F T
CONVERSE, CONTRAPOSITIVE,AND INVERSE
There are three related conditional statements 𝒑 → 𝒒 that
occur so often that they have special names.
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Name Symbol Definition
CONVERSE 𝐪 → 𝒑 The proposition 𝐪 → 𝒑 is called the
converse of 𝐩 → 𝒒.
CONTRAPOSITIVE 𝒒 → 𝒑 The proposition 𝒒 → 𝒑 is
called the contrapositive of 𝐩 → 𝒒.
INVERSE 𝒑 → 𝑞 The proposition 𝒑 → 𝑞 is called
the inverse of 𝐩 → 𝒒
CONVERSE
Let p and q be propositions. The proposition 𝐪 → 𝒑 is called
the converse of 𝐩 → 𝒒.
The conditional statement q→ 𝒑 is false when q is true and p
is false, and true otherwise.
𝒒 → 𝒑 𝒎𝒆𝒂𝒏s "if q then p"
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Truth Table for the Conditional Statement (Converse)
Q P 𝐐 → 𝑷
T T T
T F F
F T T
F F T
CONTRAPOSITIVE
Let p and q be propositions. The proposition 𝒒 → 𝒑 is
called the contrapositive of 𝐩 → 𝒒.
𝒒 → 𝒑 𝒎𝒆𝒂𝒏s "if 𝒒 then 𝒑"
The conditional statement 𝒒 → 𝒑 is false when 𝒒 is true
and 𝒑 is false, and true otherwise.
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Truth Table for the Conditional Statement (Contrapositive)
Q P 𝐐 𝐏 𝐐 → 𝐏
T T F F T
T F F T T
F T T F F
F F T T T
INVERSE
Let p and q be propositions. The proposition 𝒑 → 𝑞 is
called the inverse of 𝐩 → 𝒒
𝒑→ 𝑞 𝒎𝒆𝒂𝒏s "if 𝒑 then q"
The conditional statement 𝒑 → 𝑞 is false when 𝒑 is true
and 𝑞 is false, and true otherwise.
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Truth Table for the Conditional Statement (Inverse)
P Q 𝐏 𝐐 𝑷 → 𝐐
T T F F T
T F F T T
F T T F F
F F T T T
Example 1: What are the contrapositive, the converse, and the inverse of the
conditional statement
"The home team wins whenever it is raining."
Solution: Because "q whenever p" is one of the ways to express the
conditional statement p → 𝑞 , the original statement can be rewritten as
"If it is raining, then the home team wins.“
p q
p= It is raining
q= The home team wins
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Name Symbol Convert Proposition into English Sentence
CONVERSE 𝐪 → 𝒑 If the home team wins, then it is raining.
𝐪 p
CONTRAPOSITIVE 𝒒 → 𝒑 If the home team does not win, then it is not raining.
𝒒 𝒑
INVERSE 𝒑 → 𝑞 If it is not raining, then the home team does not win.
𝒑 𝑞
p= It is raining
q= The home team wins
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
English Sentence Bangla Meaning
The home team wins whenever it is
raining.
যখনই বৃষ্টি হয় হহোম ষ্টিম জয়়ী হয়।
If it is raining, then the home team wins. যদি বৃষ্টি হয়, তোহলে হহোম ষ্টিম জজতলব।
If the home team wins, then it is raining.
CONVERSE
𝐪 → 𝒑
হহোম ষ্টিম জজতলে বৃষ্টি হয়।
If the home team does not win, then it is
not raining.
CONTRAPOSITIVE
𝒒 → 𝒑
হহোম ষ্টিম নো জজতলে বৃষ্টি হয় নো।
If it is not raining, then the home team
does not win.
INVERSE
𝒑 → 𝑞
বৃষ্টি নো হলে হহোম ষ্টিম জজতলব নো।
Tautology, Contradiction and Contingency
 A compound proposition that is always true, no matter what the
true values of the proposition that occur in it , is called tautology.
 A compound proposition that is always false is called
contradiction.
 A compound proposition that is neither a tautology nor a
contradiction is called a contingency.
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Logical Equivalence
Compound proposition that have the same true values in all
possible cases are called logically equivalent. The compound
propositions p and q are called logically equivalent if p  q is a
tautology. The notation p ≡ q denotes that p and q are logically
equivalent.
Question: Show that ¬(𝑃˅𝑄)≡¬𝑃⋀¬Q
From the truth table we can say that, ¬(𝑃˅𝑄)≡ ¬𝑃⋀¬ Q
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Question: Show that ¬𝑷˅𝑸 ≡ 𝑷 → 𝑸
P Q ¬𝐏 ¬𝐏˅𝐐 𝐏 → 𝐐
T T F T T
T F F F F
F T T T T
F F T T T
From the truth table we can say that,
¬𝑷˅𝑸 ≡ 𝑷 → 𝑸
Question: Show that (P⋀𝑸) → (𝑷˅𝑸)is a tautology
P Q (P⋀𝐐) (𝐏˅𝐐) (P⋀𝐐) → (𝐏˅𝐐)
T T T T T
T F F T T
F T F T T
F F F F T
From the truth table we can say that, the true value of (P⋀𝑸) →
(𝑷˅𝑸) is all true so it is tautology.
Question: Check whether (P→ 𝑸)⋀(Q→ 𝑹) → (P → 𝑹)is tautologyor
not.
P Q R (P→ 𝑄) (P→ 𝑅) (𝑸 → 𝑅) (P→ 𝑄)⋀(Q→ 𝑅) (P→ 𝑄)⋀(Q→ 𝑅) → (P → 𝑅)
T T T T T T T T
T T F T F F F T
T F T F T T F T
T F F F F T F T
F T T T T T T T
F T F T T F F T
F F T T T T T T
F F F T T T T T
From the truth table we can say that, the true value of (P⋀𝑄) →
(𝑃˅𝑄) is all true so it is tautology.
Precedence of Logical Operators
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Precedence of Logical Operators. PQ
Operator Operation Precedence
 Negation 1
 Conjunction 2
 Disjunction 3
→ Conditional 4
 Biconditional/ Bi-
implications
5
Question: How many rows appear in a truth table for
each of these compound propositions?
****Formula: Input=n, No. of rows=𝟐𝒏****
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
Question
Solutions
Input No. of
Input
(n)
No. of
rows
(𝟐𝒏
)
No. of columns
1. P→ P P 1 𝟐𝟏
=2 3
Columns Heading: P, P, P→ P
2. (P ¬𝑄)→(𝑃 𝑄) P,Q 2 𝟐𝟐
=4 6
Columns Heading: P, Q, ¬𝑄, (P ¬𝑄), (𝑃 𝑄), (P ¬𝑄)→(𝑃 𝑄)
3. (P  R)T  (Q  T) P,Q,R,T 4 𝟐𝟒=16 8
Columns Heading: P,Q,R,T, (P  R) ,(P  R)T ), (Q  T), (P  R)T  (Q  T)
4. (P  R)  (Q 𝐒) P,Q,R,S 4 𝟐𝟒=16 9
Columns Heading: P,Q,R,S, R , 𝐒, (P  R) , (Q 𝐒) , (P  R)  (Q 𝐒)
Construct Truth Table For (𝑷¬𝑸) → (𝑷⋀𝑸)
Input Output
P Q ¬𝑸 (𝑷¬𝑸) (𝑷⋀𝑸) (𝑷¬𝑸) → (𝑷⋀𝑸)
T T F T T T
T F T T F F
F T F F F T
F F T T F F
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University
No. of Input=2, No. of rows=𝟐𝟐 = 𝟒
No. of Columns=6
Assignment 2
1.
2.
3.
4.
5.
6.
Prepared by Khairun Nahar,Assistant Professor,
Department of CSE, Comilla University

More Related Content

Similar to Lecture_3_Chapter_1_Lesson_1.2.pptx

Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptx
Ravind8
 
Discrete Structures
Discrete Structures Discrete Structures
Discrete Structures
AQCreations
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
IqraAli875037
 
Maths teachers guide For freshman course.pdf
Maths teachers guide For freshman course.pdfMaths teachers guide For freshman course.pdf
Maths teachers guide For freshman course.pdf
habtamu292245
 
Mathematics for Computer Engineering
Mathematics for Computer EngineeringMathematics for Computer Engineering
Mathematics for Computer Engineering
Adhiyaman Manickam
 
Nature of Logic.pptx
Nature of Logic.pptxNature of Logic.pptx
Nature of Logic.pptx
Math101BSCA1C
 
MFCS PPT.pdf
MFCS PPT.pdfMFCS PPT.pdf
MFCS PPT.pdf
jayarao21
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
PradeeshSAI
 
Discrete_Mathmatics Projects report.docx
Discrete_Mathmatics Projects report.docxDiscrete_Mathmatics Projects report.docx
Discrete_Mathmatics Projects report.docx
SwapnajitSahoo1
 
logic, preposition etc
logic, preposition etclogic, preposition etc
logic, preposition etc
Abdur Rehman
 
Logic
LogicLogic
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
Angel Martinez
 
Per3 logika&pembuktian
Per3 logika&pembuktianPer3 logika&pembuktian
Per3 logika&pembuktian
Evert Sandye Taasiringan
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
smarwaneid
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
blaircomp2003
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
endahnurfebriyanti
 
1. Logic.pptx
1. Logic.pptx1. Logic.pptx
1. Logic.pptx
DaniloOppusJacobe
 
Inductive reasoning & logic
Inductive reasoning & logicInductive reasoning & logic
Inductive reasoning & logic
tommy34g
 
Arguments and methods of proof
Arguments and methods of proofArguments and methods of proof
Arguments and methods of proof
Robert Geofroy
 
Inductive and Deductive Reasoning
Inductive and Deductive ReasoningInductive and Deductive Reasoning
Inductive and Deductive Reasoning
Sonarin Cruz
 

Similar to Lecture_3_Chapter_1_Lesson_1.2.pptx (20)

Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptx
 
Discrete Structures
Discrete Structures Discrete Structures
Discrete Structures
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
Maths teachers guide For freshman course.pdf
Maths teachers guide For freshman course.pdfMaths teachers guide For freshman course.pdf
Maths teachers guide For freshman course.pdf
 
Mathematics for Computer Engineering
Mathematics for Computer EngineeringMathematics for Computer Engineering
Mathematics for Computer Engineering
 
Nature of Logic.pptx
Nature of Logic.pptxNature of Logic.pptx
Nature of Logic.pptx
 
MFCS PPT.pdf
MFCS PPT.pdfMFCS PPT.pdf
MFCS PPT.pdf
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
 
Discrete_Mathmatics Projects report.docx
Discrete_Mathmatics Projects report.docxDiscrete_Mathmatics Projects report.docx
Discrete_Mathmatics Projects report.docx
 
logic, preposition etc
logic, preposition etclogic, preposition etc
logic, preposition etc
 
Logic
LogicLogic
Logic
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Per3 logika&pembuktian
Per3 logika&pembuktianPer3 logika&pembuktian
Per3 logika&pembuktian
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
1. Logic.pptx
1. Logic.pptx1. Logic.pptx
1. Logic.pptx
 
Inductive reasoning & logic
Inductive reasoning & logicInductive reasoning & logic
Inductive reasoning & logic
 
Arguments and methods of proof
Arguments and methods of proofArguments and methods of proof
Arguments and methods of proof
 
Inductive and Deductive Reasoning
Inductive and Deductive ReasoningInductive and Deductive Reasoning
Inductive and Deductive Reasoning
 

Recently uploaded

KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
mahammadsalmanmech
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
Madan Karki
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
IJNSA Journal
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
kandramariana6
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
Ratnakar Mikkili
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
MDSABBIROJJAMANPAYEL
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
IJECEIAES
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
Dr Ramhari Poudyal
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
Mukeshwaran Balu
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt
PuktoonEngr
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
Hitesh Mohapatra
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
heavyhaig
 

Recently uploaded (20)

KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
Question paper of renewable energy sources
Question paper of renewable energy sourcesQuestion paper of renewable energy sources
Question paper of renewable energy sources
 
Manufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptxManufacturing Process of molasses based distillery ppt.pptx
Manufacturing Process of molasses based distillery ppt.pptx
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMSA SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
A SYSTEMATIC RISK ASSESSMENT APPROACH FOR SECURING THE SMART IRRIGATION SYSTEMS
 
132/33KV substation case study Presentation
132/33KV substation case study Presentation132/33KV substation case study Presentation
132/33KV substation case study Presentation
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Exception Handling notes in java exception
Exception Handling notes in java exceptionException Handling notes in java exception
Exception Handling notes in java exception
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
Properties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptxProperties Railway Sleepers and Test.pptx
Properties Railway Sleepers and Test.pptx
 
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
Electric vehicle and photovoltaic advanced roles in enhancing the financial p...
 
Literature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptxLiterature Review Basics and Understanding Reference Management.pptx
Literature Review Basics and Understanding Reference Management.pptx
 
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
ACRP 4-09 Risk Assessment Method to Support Modification of Airfield Separat...
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt2. Operations Strategy in a Global Environment.ppt
2. Operations Strategy in a Global Environment.ppt
 
Generative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of contentGenerative AI leverages algorithms to create various forms of content
Generative AI leverages algorithms to create various forms of content
 
Technical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prismsTechnical Drawings introduction to drawing of prisms
Technical Drawings introduction to drawing of prisms
 

Lecture_3_Chapter_1_Lesson_1.2.pptx

  • 1. LECTURE 3 Chapter 1.2 Propositional Equivalences Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University
  • 2. Conditional Statement Let p and q be propositions. The conditional statement p → 𝑞 is the proposition "if p then q ." The conditional statement 𝐩 → 𝒒 is false when p is true and q is false, and true otherwise. In the conditional statement p → 𝑞, p is called the hypothesis (or antecedent or premise) and q is called the conclusion (or consequence). Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University Truth Table for the Conditional Statement P Q P → 𝑄 T T T T F F F T T F F T
  • 3. CONVERSE, CONTRAPOSITIVE,AND INVERSE There are three related conditional statements 𝒑 → 𝒒 that occur so often that they have special names. Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University Name Symbol Definition CONVERSE 𝐪 → 𝒑 The proposition 𝐪 → 𝒑 is called the converse of 𝐩 → 𝒒. CONTRAPOSITIVE 𝒒 → 𝒑 The proposition 𝒒 → 𝒑 is called the contrapositive of 𝐩 → 𝒒. INVERSE 𝒑 → 𝑞 The proposition 𝒑 → 𝑞 is called the inverse of 𝐩 → 𝒒
  • 4. CONVERSE Let p and q be propositions. The proposition 𝐪 → 𝒑 is called the converse of 𝐩 → 𝒒. The conditional statement q→ 𝒑 is false when q is true and p is false, and true otherwise. 𝒒 → 𝒑 𝒎𝒆𝒂𝒏s "if q then p" Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University Truth Table for the Conditional Statement (Converse) Q P 𝐐 → 𝑷 T T T T F F F T T F F T
  • 5. CONTRAPOSITIVE Let p and q be propositions. The proposition 𝒒 → 𝒑 is called the contrapositive of 𝐩 → 𝒒. 𝒒 → 𝒑 𝒎𝒆𝒂𝒏s "if 𝒒 then 𝒑" The conditional statement 𝒒 → 𝒑 is false when 𝒒 is true and 𝒑 is false, and true otherwise. Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University Truth Table for the Conditional Statement (Contrapositive) Q P 𝐐 𝐏 𝐐 → 𝐏 T T F F T T F F T T F T T F F F F T T T
  • 6. INVERSE Let p and q be propositions. The proposition 𝒑 → 𝑞 is called the inverse of 𝐩 → 𝒒 𝒑→ 𝑞 𝒎𝒆𝒂𝒏s "if 𝒑 then q" The conditional statement 𝒑 → 𝑞 is false when 𝒑 is true and 𝑞 is false, and true otherwise. Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University Truth Table for the Conditional Statement (Inverse) P Q 𝐏 𝐐 𝑷 → 𝐐 T T F F T T F F T T F T T F F F F T T T
  • 7. Example 1: What are the contrapositive, the converse, and the inverse of the conditional statement "The home team wins whenever it is raining." Solution: Because "q whenever p" is one of the ways to express the conditional statement p → 𝑞 , the original statement can be rewritten as "If it is raining, then the home team wins.“ p q p= It is raining q= The home team wins Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University Name Symbol Convert Proposition into English Sentence CONVERSE 𝐪 → 𝒑 If the home team wins, then it is raining. 𝐪 p CONTRAPOSITIVE 𝒒 → 𝒑 If the home team does not win, then it is not raining. 𝒒 𝒑 INVERSE 𝒑 → 𝑞 If it is not raining, then the home team does not win. 𝒑 𝑞
  • 8. p= It is raining q= The home team wins Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University English Sentence Bangla Meaning The home team wins whenever it is raining. যখনই বৃষ্টি হয় হহোম ষ্টিম জয়়ী হয়। If it is raining, then the home team wins. যদি বৃষ্টি হয়, তোহলে হহোম ষ্টিম জজতলব। If the home team wins, then it is raining. CONVERSE 𝐪 → 𝒑 হহোম ষ্টিম জজতলে বৃষ্টি হয়। If the home team does not win, then it is not raining. CONTRAPOSITIVE 𝒒 → 𝒑 হহোম ষ্টিম নো জজতলে বৃষ্টি হয় নো। If it is not raining, then the home team does not win. INVERSE 𝒑 → 𝑞 বৃষ্টি নো হলে হহোম ষ্টিম জজতলব নো।
  • 9. Tautology, Contradiction and Contingency  A compound proposition that is always true, no matter what the true values of the proposition that occur in it , is called tautology.  A compound proposition that is always false is called contradiction.  A compound proposition that is neither a tautology nor a contradiction is called a contingency. Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University
  • 10. Logical Equivalence Compound proposition that have the same true values in all possible cases are called logically equivalent. The compound propositions p and q are called logically equivalent if p  q is a tautology. The notation p ≡ q denotes that p and q are logically equivalent. Question: Show that ¬(𝑃˅𝑄)≡¬𝑃⋀¬Q From the truth table we can say that, ¬(𝑃˅𝑄)≡ ¬𝑃⋀¬ Q Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University
  • 11. Question: Show that ¬𝑷˅𝑸 ≡ 𝑷 → 𝑸 P Q ¬𝐏 ¬𝐏˅𝐐 𝐏 → 𝐐 T T F T T T F F F F F T T T T F F T T T From the truth table we can say that, ¬𝑷˅𝑸 ≡ 𝑷 → 𝑸
  • 12. Question: Show that (P⋀𝑸) → (𝑷˅𝑸)is a tautology P Q (P⋀𝐐) (𝐏˅𝐐) (P⋀𝐐) → (𝐏˅𝐐) T T T T T T F F T T F T F T T F F F F T From the truth table we can say that, the true value of (P⋀𝑸) → (𝑷˅𝑸) is all true so it is tautology.
  • 13. Question: Check whether (P→ 𝑸)⋀(Q→ 𝑹) → (P → 𝑹)is tautologyor not. P Q R (P→ 𝑄) (P→ 𝑅) (𝑸 → 𝑅) (P→ 𝑄)⋀(Q→ 𝑅) (P→ 𝑄)⋀(Q→ 𝑅) → (P → 𝑅) T T T T T T T T T T F T F F F T T F T F T T F T T F F F F T F T F T T T T T T T F T F T T F F T F F T T T T T T F F F T T T T T From the truth table we can say that, the true value of (P⋀𝑄) → (𝑃˅𝑄) is all true so it is tautology.
  • 14. Precedence of Logical Operators Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University Precedence of Logical Operators. PQ Operator Operation Precedence  Negation 1  Conjunction 2  Disjunction 3 → Conditional 4  Biconditional/ Bi- implications 5
  • 15. Question: How many rows appear in a truth table for each of these compound propositions? ****Formula: Input=n, No. of rows=𝟐𝒏**** Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University Question Solutions Input No. of Input (n) No. of rows (𝟐𝒏 ) No. of columns 1. P→ P P 1 𝟐𝟏 =2 3 Columns Heading: P, P, P→ P 2. (P ¬𝑄)→(𝑃 𝑄) P,Q 2 𝟐𝟐 =4 6 Columns Heading: P, Q, ¬𝑄, (P ¬𝑄), (𝑃 𝑄), (P ¬𝑄)→(𝑃 𝑄) 3. (P  R)T  (Q  T) P,Q,R,T 4 𝟐𝟒=16 8 Columns Heading: P,Q,R,T, (P  R) ,(P  R)T ), (Q  T), (P  R)T  (Q  T) 4. (P  R)  (Q 𝐒) P,Q,R,S 4 𝟐𝟒=16 9 Columns Heading: P,Q,R,S, R , 𝐒, (P  R) , (Q 𝐒) , (P  R)  (Q 𝐒)
  • 16. Construct Truth Table For (𝑷¬𝑸) → (𝑷⋀𝑸) Input Output P Q ¬𝑸 (𝑷¬𝑸) (𝑷⋀𝑸) (𝑷¬𝑸) → (𝑷⋀𝑸) T T F T T T T F T T F F F T F F F T F F T T F F Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University No. of Input=2, No. of rows=𝟐𝟐 = 𝟒 No. of Columns=6
  • 17. Assignment 2 1. 2. 3. 4. 5. 6. Prepared by Khairun Nahar,Assistant Professor, Department of CSE, Comilla University