SlideShare a Scribd company logo
1 of 46
LAWS OF LOGIC
Lecture # 03
Applying Laws of Logic
 Using laws of logic simplify the statement form.
p  [~(~p  q)]
 Solution:
 p  [~(~p)  (~q)] DeMorgan’s Law
 p  [p(~q)] Double Negative Law
 [p  p](~q) Associative Law for 
 p  (~q) Indempotent Law
This is the simplified statement form.
EXAMPLE
 Using Laws of Logic, verify the logical equivalence.
~ (~ p  q)  (p  q)  p
Solution:
 (~(~p)  ~q) (p  q) DeMorgan’s Law
 (p  ~q)  (p  q) Double Negative Law
 p  (~q  q) Distributive Law in
reverse
 p  c Negation Law
 p Identity Law
SIMPLIFYING A STATEMENT:
 “You will get an A if you are hardworking and the sun
shines, or you are hardworking and it rains.”
 Solution:
Let
p = “You are hardworking’
q = “The sun shines”
r = “It rains”
 The condition is then (p  q)  (p  r)
(p  q)  (p  r)
  p  (q  r) Distributive law in reverse
 Putting p  (q  r) back into English, we can
rephrase the given sentence as
 “You will get an A if you are hardworking and the
sun shines or it rains.”
EXERCISE:
 Use Logical Equivalence to rewrite each of the following
sentences more simply.
 1. It is not true that I am tired and you are smart.
{I am not tired or you are not smart.}
 2. It is not true that I am tired or you are smart.
{I am not tired and you are not smart.}
 3. I forgot my pen or my bag and I forgot my pen or
my glasses.
4. It is raining and I have forgotten my umbrella, or it
is raining and I have forgotten my hat.
EXERCISE:
 Use Logical Equivalence to rewrite each of the following
sentences more simply.
 1. It is not true that I am tired and you are smart.
{I am not tired or you are not smart.}
 2. It is not true that I am tired or you are smart.
{I am not tired and you are not smart.}
 3. I forgot my pen or my bag and I forgot my pen or
my glasses.
{I forgot my pen or I forgot my bag and glasses.
 4. It is raining and I have forgotten my umbrella, or it
is raining and I have forgotten my hat.
{It is raining and I have forgotten my umbrella or my
hat.}
CONDITIONAL STATEMENT or
IMPLICATION
 Introduction
Consider the statement:
"If you earn an A in Math, then I'll buy you a
computer."
 This statement is made up of two simpler statements:
p: "You earn an A in Math," and
q: "I will buy you a computer."
if p is true, then q is true, or, more simply, if p, then q.
We can also phrase this as p implies q, and we write p
 q.
The original statement is then saying:
if p is true, then q is true
Or
more simply, if p, then q.
We can also phrase this as p implies q, and we write p
 q.
TRUTH TABLE for p  q
p q p  q
T T T
T F F
F T T
F F T
CONDITIONAL STATEMENTS OR
IMPLICATIONS:
 Definition:
 If p and q are statement variables, the conditional of
q by p is “If p then q” or “p implies q” and is denoted
p  q.
 It is false when p is true and q is false; otherwise it is
true.
 The arrow " " is the conditional operator
 and in p  q the statement p is called the
hypothesis
 (or antecedent)
 q is called the conclusion (or consequent).
PRACTICE WITH CONDITIONAL
STATEMENTS:
 Determine the truth value of each of the following
conditional statements:
“If 1 = 1, then 3 = 3.”
“If 1 = 1, then 2 = 3.”
“If 1 = 0, then 3 = 3.”
“If 1 = 2, then 2 = 3.”
“If 1 = 1, then 1 = 2 and 2 = 3.”
“If 1 = 3 or 1 = 2 then 3 = 3.”
PRACTICE WITH CONDITIONAL
STATEMENTS:
 Determine the truth value of each of the following
conditional statements:
“If 1 = 1, then 3 = 3.” TRUE
“If 1 = 1, then 2 = 3.” FALSE
“If 1 = 0, then 3 = 3.” TRUE
“If 1 = 2, then 2 = 3.” TRUE
“If 1 = 1, then 1 = 2 and 2 = 3.” FALSE
“If 1 = 3 or 1 = 2 then 3 = 3.” TRUE
ALTERNATIVE WAYS OF EXPRESSING
IMPLICATIONS
 The implication p  q could be expressed in many
alternative ways as:
“if p then q” “not p unless q”
“p implies q” “q follows from p”
“if p, q” “q if p”
“p only if q” “q whenever p”
“p is sufficient for q” “q is necessary for p”
EXERCISE:
 Write the following statements in the form “if p, then
q” in English.
a) Your guarantee is good only if you bought
your CD less than 90 days ago.
If your guarantee is good, then you must have
bought your CD less than 90 days ago.
b) To get tenure as a professor, it is sufficient to
be world-famous.
If you are world-famous, then you will get tenure
as a professor.
c) That you get the job implies that you have the
best credentials.
If you get the job, then you have the best
credentials.
d) It is necessary to walk 8 miles to get to the top
of the Peak.
If you get to the top of the peak, then you must
have walked 8 miles.
TRANSLATING ENGLISH SENTENCES TO
SYMBOLS:
 Let p and q be propositions:
p = “you get an A on the final exam”
q = “you do every exercise in this book”
r = “you get an A in this class”
 Write the following propositions using p, q, and r and
logical connectives.
 To get an A in this class it is necessary for you to get
an A on the final.
SOLUTION r  p
 You do every exercise in this book; You get an A on
the final, implies, you get an A in the class.
SOLUTION ?
 Getting an A on the final and doing every exercise in
this book is sufficient for getting an A in this class.
SOLUTION ?
 To get an A in this class it is necessary for you to get
an A on the final.
SOLUTION r  p
 You do every exercise in this book; You get an A on
the final, implies, you get an A in the class.
SOLUTION q  p  r
 Getting an A on the final and doing every exercise in
this book is sufficient for getting an A in this class.
SOLUTION p  q  r
TRANSLATING SYMBOLIC
PROPOSITIONS TO ENGLISH
 Let p, q, and r be the propositions:
p = “you have the flu”
q = “you miss the final exam”
r = “you pass the course”
 Express the following propositions as an English
sentence.
 p  q
 ~q  r
 ~p  ~q r
 p  q
If you have flu, then you will miss the final exam.
 ~q  r
If you don’t miss the final exam, you will pass the
course.
 ~p  ~q r
If you neither have flu nor miss the final exam, then
you will pass the course.
HIERARCHY OF OPERATIONS
FOR LOGICAL CONNECTIVES
~ (negation)
 (conjunction)
 (disjunction)
 (conditional)
Construct a truth table for the statement
form (p  ~ q)  ~ p
Construct a truth table for the statement
form (p  ~ q)  ~ p
p q ~q ~p p  ~q (p  ~ q)  ~ p
T T F F T F
T F T F T F
F T F T F T
F F T T T T
Construct a truth table for the statement
form (p q)(~ p  r)
Construct a truth table for the statement
form (p q)(~ p  r)
p q r pq ~p ~pr (p  q)  (~ p r)
T T T T F T T
T T F T F T T
T F T F F T F
T F F F F T F
F T T T T T T
F T F T T F F
F F T T T T T
F F F T T F F
LOGICAL EQUIVALENCE INVOLVING
IMPLICATION
 Use truth table to show p  q  ~q  ~p
LOGICAL EQUIVALENCE INVOLVING
IMPLICATION
 Use truth table to show p  q  ~q  ~p
p q ~q ~p p  q ~q  ~p
T T F F T T
T F T F F F
F T F T T T
F F T T T T
same truth values
IMPLICATION LAW
 p  q  ~p  q
IMPLICATION LAW
 p  q  ~p  q
p q pq ~p ~p  q
T T T F T
T F F F F
F T T T T
F F T T T
NEGATION OF A CONDITIONAL
STATEMENT
 Since p  q  ~p  q therefore
 ~ (p  q)  ~ (~ p  q)
 ~ (~ p)  (~ q) by De Morgan’s law
 p  ~ q by the Double Negative law
 Thus the negation of “if p then q” is logically
equivalent to “p and not q”.
 Note:
Accordingly, the negation of an if-then statement
does not start with the word if.
EXAMPLES
 Write negations of each of the following
statements:
 If Ali lives in Pakistan then he lives in Lahore.
Ali lives in Pakistan and he does not live in Lahore.
 If my car is in the repair shop, then I cannot get to
class.
EXAMPLES
 If Ali lives in Pakistan then he lives in Lahore.
Ali lives in Pakistan and he does not live in Lahore.
 If my car is in the repair shop, then I cannot get to
class.
My car is in the repair shop and I can get to class.
Write negations of each of the following
statements:
 If x is prime then x is odd or x is 2.
 If n is divisible by 6, then n is divisible by 2 and n is
divisible by 3.
 If x is prime then x is odd or x is 2.
x is prime but x is not odd and x is not 2.
 If n is divisible by 6, then n is divisible by 2 and n is
divisible by 3.
n is divisible by 6 but n is not divisible by 2 or by 3.
INVERSE OF A CONDITIONAL
STATEMENT
 The inverse of the conditional statement p  q is
~p  ~q
 A conditional and its inverse are not equivalent as
could be seen from the truth table.
INVERSE OF A CONDITIONAL
STATEMENT
 The inverse of the conditional statement p  q is
~p  ~q
 A conditional and its inverse are not equivalent as
could be seen from the truth table.
p q p  q ~p ~q ~p ~q
T T T F F T
T F F F T T
F T T T F F
F F T T T T
different truth values in rows 2 and 3
WRITING INVERSE
 If today is Friday, then 2 + 3 = 5.
If today is not Friday, then 2 + 3  5.
 If it snows today, I will ski tomorrow.
 If P is a square, then P is a rectangle.
 If my car is in the repair shop, then I cannot get
to class.
WRITING INVERSE
 If today is Friday, then 2 + 3 = 5.
If today is not Friday, then 2 + 3  5.
 If it snows today, I will ski tomorrow.
If it does not snow today I will not ski tomorrow.
 If P is a square, then P is a rectangle.
If P is not a square then P is not a rectangle.
 If my car is in the repair shop, then I cannot get
to class.
If my car is not in the repair shop, then I shall
get to the class.
CONVERSE OF A CONDITIONAL
STATEMENT
 The converse of the conditional statement p  q is
q p
 A conditional and its converse are not equivalent.
 i.e.,  is not a commutative operator.
p q p  q q  p
T T T T
T F F T
F T T F
F F T T
not the same
WRITING CONVERSE
 If today is Friday, then 2 + 3 = 5.
If 2 + 3 = 5, then today is Friday.
 If it snows today, I will ski tomorrow.
 If P is a square, then P is a rectangle.
 If my car is in the repair shop, then I cannot get
to class.
WRITING CONVERSE
 If today is Friday, then 2 + 3 = 5.
If 2 + 3 = 5, then today is Friday.
 If it snows today, I will ski tomorrow.
I will ski tomorrow only if it snows today.
 If P is a square, then P is a rectangle.
If P is a rectangle then P is a square.
 If my car is in the repair shop, then I cannot get
to class.
If I cannot get to the class, then my car is in the
repair shop.
CONTRAPOSITIVE OF A CONDITIONAL
STATEMENT
 The contrapositive of the conditional statement p 
q is ~ q  ~ p
 A conditional and its contrapositive are equivalent.
Symbolically p  q  ~q  ~p
 If today is Friday, then 2 + 3 = 5.
If 2 + 3  5, then today is not Friday.
 If it snows today, I will ski tomorrow.
 If P is a square, then P is a rectangle.
 If my car is in the repair shop, then I cannot get
to class.
WRITING CONVERSE
 If today is Friday, then 2 + 3 = 5.
If 2 + 3  5, then today is not Friday.
 If it snows today, I will ski tomorrow.
I will not ski tomorrow only if it not snows today.
 If P is a square, then P is a rectangle.
If P is not a rectangle then P is not a square.
 If my car is in the repair shop, then I cannot get
to class.
If I can get to the class, then my car is not in the
repair shop.

More Related Content

Similar to Laws of Logic in Discrete Structures and their applications

Logic and proof
Logic and proofLogic and proof
Logic and proofSuresh Ram
 
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]DIwakar Rajput
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical LogicJoey Valdriz
 
Nature of Logic.pptx
Nature of Logic.pptxNature of Logic.pptx
Nature of Logic.pptxMath101BSCA1C
 
Arguments and methods of proof
Arguments and methods of proofArguments and methods of proof
Arguments and methods of proofRobert Geofroy
 
CSE-203 Lec_1.pptx
CSE-203 Lec_1.pptxCSE-203 Lec_1.pptx
CSE-203 Lec_1.pptxMahdiHasan86
 
Konjungsi materi kelompok dua
Konjungsi  materi kelompok duaKonjungsi  materi kelompok dua
Konjungsi materi kelompok duaLois Tulangow
 
Determining the Inverse, Converse, and Contrapositive of an If-then Statement...
Determining the Inverse, Converse, and Contrapositive of an If-then Statement...Determining the Inverse, Converse, and Contrapositive of an If-then Statement...
Determining the Inverse, Converse, and Contrapositive of an If-then Statement...Ma. Loiel Salome Nabelon
 
determiningtheinverseconverseandcontrapositiveofanif-thenstatementautosaved-2...
determiningtheinverseconverseandcontrapositiveofanif-thenstatementautosaved-2...determiningtheinverseconverseandcontrapositiveofanif-thenstatementautosaved-2...
determiningtheinverseconverseandcontrapositiveofanif-thenstatementautosaved-2...mysthicrious
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptxDakshBaveja
 
M5.A1 Truth Table ExercisesB.docx
M5.A1 Truth Table ExercisesB.docxM5.A1 Truth Table ExercisesB.docx
M5.A1 Truth Table ExercisesB.docxBetseyCalderon89
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptsamalaramesh4
 

Similar to Laws of Logic in Discrete Structures and their applications (20)

1. Logic.pptx
1. Logic.pptx1. Logic.pptx
1. Logic.pptx
 
Chapter1p1 2.pptx
Chapter1p1 2.pptxChapter1p1 2.pptx
Chapter1p1 2.pptx
 
Bab 1 proposisi
Bab 1 proposisiBab 1 proposisi
Bab 1 proposisi
 
Formal Logic - Lesson 2 - Logical Connectives
Formal Logic - Lesson 2 - Logical ConnectivesFormal Logic - Lesson 2 - Logical Connectives
Formal Logic - Lesson 2 - Logical Connectives
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
 
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]
 
DS Lecture 2.ppt
DS Lecture 2.pptDS Lecture 2.ppt
DS Lecture 2.ppt
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
Dscrete structure
Dscrete  structureDscrete  structure
Dscrete structure
 
CS202Ch1.ppt
CS202Ch1.pptCS202Ch1.ppt
CS202Ch1.ppt
 
Nature of Logic.pptx
Nature of Logic.pptxNature of Logic.pptx
Nature of Logic.pptx
 
Arguments and methods of proof
Arguments and methods of proofArguments and methods of proof
Arguments and methods of proof
 
CSE-203 Lec_1.pptx
CSE-203 Lec_1.pptxCSE-203 Lec_1.pptx
CSE-203 Lec_1.pptx
 
Konjungsi materi kelompok dua
Konjungsi  materi kelompok duaKonjungsi  materi kelompok dua
Konjungsi materi kelompok dua
 
Determining the Inverse, Converse, and Contrapositive of an If-then Statement...
Determining the Inverse, Converse, and Contrapositive of an If-then Statement...Determining the Inverse, Converse, and Contrapositive of an If-then Statement...
Determining the Inverse, Converse, and Contrapositive of an If-then Statement...
 
determiningtheinverseconverseandcontrapositiveofanif-thenstatementautosaved-2...
determiningtheinverseconverseandcontrapositiveofanif-thenstatementautosaved-2...determiningtheinverseconverseandcontrapositiveofanif-thenstatementautosaved-2...
determiningtheinverseconverseandcontrapositiveofanif-thenstatementautosaved-2...
 
logic_lec4.ppt
logic_lec4.pptlogic_lec4.ppt
logic_lec4.ppt
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptx
 
M5.A1 Truth Table ExercisesB.docx
M5.A1 Truth Table ExercisesB.docxM5.A1 Truth Table ExercisesB.docx
M5.A1 Truth Table ExercisesB.docx
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.ppt
 

More from ZenLooper

Managing External Environment and Organizational Culture.pdf
Managing External Environment and Organizational Culture.pdfManaging External Environment and Organizational Culture.pdf
Managing External Environment and Organizational Culture.pdfZenLooper
 
Planning Work Activities and their benefits.pdf
Planning Work Activities and their benefits.pdfPlanning Work Activities and their benefits.pdf
Planning Work Activities and their benefits.pdfZenLooper
 
Managers as Decision Makersstoiiiiii.pdf
Managers as Decision Makersstoiiiiii.pdfManagers as Decision Makersstoiiiiii.pdf
Managers as Decision Makersstoiiiiii.pdfZenLooper
 
rules of inference in discrete structures
rules of inference in discrete structuresrules of inference in discrete structures
rules of inference in discrete structuresZenLooper
 
Arguments in discreate structures and stuff
Arguments in discreate structures and stuffArguments in discreate structures and stuff
Arguments in discreate structures and stuffZenLooper
 
Discreate Truth tables and laws of logic
Discreate Truth tables and laws of logicDiscreate Truth tables and laws of logic
Discreate Truth tables and laws of logicZenLooper
 
discrete structures and their introduction
discrete structures and their introductiondiscrete structures and their introduction
discrete structures and their introductionZenLooper
 

More from ZenLooper (7)

Managing External Environment and Organizational Culture.pdf
Managing External Environment and Organizational Culture.pdfManaging External Environment and Organizational Culture.pdf
Managing External Environment and Organizational Culture.pdf
 
Planning Work Activities and their benefits.pdf
Planning Work Activities and their benefits.pdfPlanning Work Activities and their benefits.pdf
Planning Work Activities and their benefits.pdf
 
Managers as Decision Makersstoiiiiii.pdf
Managers as Decision Makersstoiiiiii.pdfManagers as Decision Makersstoiiiiii.pdf
Managers as Decision Makersstoiiiiii.pdf
 
rules of inference in discrete structures
rules of inference in discrete structuresrules of inference in discrete structures
rules of inference in discrete structures
 
Arguments in discreate structures and stuff
Arguments in discreate structures and stuffArguments in discreate structures and stuff
Arguments in discreate structures and stuff
 
Discreate Truth tables and laws of logic
Discreate Truth tables and laws of logicDiscreate Truth tables and laws of logic
Discreate Truth tables and laws of logic
 
discrete structures and their introduction
discrete structures and their introductiondiscrete structures and their introduction
discrete structures and their introduction
 

Recently uploaded

ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementmkooblal
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxsqpmdrvczh
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationAadityaSharma884161
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxLigayaBacuel1
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxEyham Joco
 

Recently uploaded (20)

ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
Hierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of managementHierarchy of management that covers different levels of management
Hierarchy of management that covers different levels of management
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
Romantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptxRomantic Opera MUSIC FOR GRADE NINE pptx
Romantic Opera MUSIC FOR GRADE NINE pptx
 
ROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint PresentationROOT CAUSE ANALYSIS PowerPoint Presentation
ROOT CAUSE ANALYSIS PowerPoint Presentation
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Planning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptxPlanning a health career 4th Quarter.pptx
Planning a health career 4th Quarter.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Types of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptxTypes of Journalistic Writing Grade 8.pptx
Types of Journalistic Writing Grade 8.pptx
 

Laws of Logic in Discrete Structures and their applications

  • 2. Applying Laws of Logic  Using laws of logic simplify the statement form. p  [~(~p  q)]  Solution:  p  [~(~p)  (~q)] DeMorgan’s Law  p  [p(~q)] Double Negative Law  [p  p](~q) Associative Law for   p  (~q) Indempotent Law This is the simplified statement form.
  • 3. EXAMPLE  Using Laws of Logic, verify the logical equivalence. ~ (~ p  q)  (p  q)  p Solution:  (~(~p)  ~q) (p  q) DeMorgan’s Law  (p  ~q)  (p  q) Double Negative Law  p  (~q  q) Distributive Law in reverse  p  c Negation Law  p Identity Law
  • 4. SIMPLIFYING A STATEMENT:  “You will get an A if you are hardworking and the sun shines, or you are hardworking and it rains.”  Solution: Let p = “You are hardworking’ q = “The sun shines” r = “It rains”  The condition is then (p  q)  (p  r)
  • 5. (p  q)  (p  r)   p  (q  r) Distributive law in reverse  Putting p  (q  r) back into English, we can rephrase the given sentence as  “You will get an A if you are hardworking and the sun shines or it rains.”
  • 6. EXERCISE:  Use Logical Equivalence to rewrite each of the following sentences more simply.  1. It is not true that I am tired and you are smart. {I am not tired or you are not smart.}  2. It is not true that I am tired or you are smart. {I am not tired and you are not smart.}  3. I forgot my pen or my bag and I forgot my pen or my glasses. 4. It is raining and I have forgotten my umbrella, or it is raining and I have forgotten my hat.
  • 7. EXERCISE:  Use Logical Equivalence to rewrite each of the following sentences more simply.  1. It is not true that I am tired and you are smart. {I am not tired or you are not smart.}  2. It is not true that I am tired or you are smart. {I am not tired and you are not smart.}  3. I forgot my pen or my bag and I forgot my pen or my glasses. {I forgot my pen or I forgot my bag and glasses.  4. It is raining and I have forgotten my umbrella, or it is raining and I have forgotten my hat. {It is raining and I have forgotten my umbrella or my hat.}
  • 8. CONDITIONAL STATEMENT or IMPLICATION  Introduction Consider the statement: "If you earn an A in Math, then I'll buy you a computer."  This statement is made up of two simpler statements: p: "You earn an A in Math," and q: "I will buy you a computer." if p is true, then q is true, or, more simply, if p, then q. We can also phrase this as p implies q, and we write p  q.
  • 9. The original statement is then saying: if p is true, then q is true Or more simply, if p, then q. We can also phrase this as p implies q, and we write p  q.
  • 10. TRUTH TABLE for p  q p q p  q T T T T F F F T T F F T
  • 11. CONDITIONAL STATEMENTS OR IMPLICATIONS:  Definition:  If p and q are statement variables, the conditional of q by p is “If p then q” or “p implies q” and is denoted p  q.  It is false when p is true and q is false; otherwise it is true.  The arrow " " is the conditional operator  and in p  q the statement p is called the hypothesis  (or antecedent)  q is called the conclusion (or consequent).
  • 12. PRACTICE WITH CONDITIONAL STATEMENTS:  Determine the truth value of each of the following conditional statements: “If 1 = 1, then 3 = 3.” “If 1 = 1, then 2 = 3.” “If 1 = 0, then 3 = 3.” “If 1 = 2, then 2 = 3.” “If 1 = 1, then 1 = 2 and 2 = 3.” “If 1 = 3 or 1 = 2 then 3 = 3.”
  • 13. PRACTICE WITH CONDITIONAL STATEMENTS:  Determine the truth value of each of the following conditional statements: “If 1 = 1, then 3 = 3.” TRUE “If 1 = 1, then 2 = 3.” FALSE “If 1 = 0, then 3 = 3.” TRUE “If 1 = 2, then 2 = 3.” TRUE “If 1 = 1, then 1 = 2 and 2 = 3.” FALSE “If 1 = 3 or 1 = 2 then 3 = 3.” TRUE
  • 14. ALTERNATIVE WAYS OF EXPRESSING IMPLICATIONS  The implication p  q could be expressed in many alternative ways as: “if p then q” “not p unless q” “p implies q” “q follows from p” “if p, q” “q if p” “p only if q” “q whenever p” “p is sufficient for q” “q is necessary for p”
  • 15. EXERCISE:  Write the following statements in the form “if p, then q” in English. a) Your guarantee is good only if you bought your CD less than 90 days ago. If your guarantee is good, then you must have bought your CD less than 90 days ago. b) To get tenure as a professor, it is sufficient to be world-famous. If you are world-famous, then you will get tenure as a professor.
  • 16. c) That you get the job implies that you have the best credentials. If you get the job, then you have the best credentials. d) It is necessary to walk 8 miles to get to the top of the Peak. If you get to the top of the peak, then you must have walked 8 miles.
  • 17. TRANSLATING ENGLISH SENTENCES TO SYMBOLS:  Let p and q be propositions: p = “you get an A on the final exam” q = “you do every exercise in this book” r = “you get an A in this class”  Write the following propositions using p, q, and r and logical connectives.
  • 18.  To get an A in this class it is necessary for you to get an A on the final. SOLUTION r  p  You do every exercise in this book; You get an A on the final, implies, you get an A in the class. SOLUTION ?  Getting an A on the final and doing every exercise in this book is sufficient for getting an A in this class. SOLUTION ?
  • 19.  To get an A in this class it is necessary for you to get an A on the final. SOLUTION r  p  You do every exercise in this book; You get an A on the final, implies, you get an A in the class. SOLUTION q  p  r  Getting an A on the final and doing every exercise in this book is sufficient for getting an A in this class. SOLUTION p  q  r
  • 20. TRANSLATING SYMBOLIC PROPOSITIONS TO ENGLISH  Let p, q, and r be the propositions: p = “you have the flu” q = “you miss the final exam” r = “you pass the course”  Express the following propositions as an English sentence.
  • 21.  p  q  ~q  r  ~p  ~q r
  • 22.  p  q If you have flu, then you will miss the final exam.  ~q  r If you don’t miss the final exam, you will pass the course.  ~p  ~q r If you neither have flu nor miss the final exam, then you will pass the course.
  • 23. HIERARCHY OF OPERATIONS FOR LOGICAL CONNECTIVES ~ (negation)  (conjunction)  (disjunction)  (conditional)
  • 24. Construct a truth table for the statement form (p  ~ q)  ~ p
  • 25. Construct a truth table for the statement form (p  ~ q)  ~ p p q ~q ~p p  ~q (p  ~ q)  ~ p T T F F T F T F T F T F F T F T F T F F T T T T
  • 26. Construct a truth table for the statement form (p q)(~ p  r)
  • 27. Construct a truth table for the statement form (p q)(~ p  r) p q r pq ~p ~pr (p  q)  (~ p r) T T T T F T T T T F T F T T T F T F F T F T F F F F T F F T T T T T T F T F T T F F F F T T T T T F F F T T F F
  • 28. LOGICAL EQUIVALENCE INVOLVING IMPLICATION  Use truth table to show p  q  ~q  ~p
  • 29. LOGICAL EQUIVALENCE INVOLVING IMPLICATION  Use truth table to show p  q  ~q  ~p p q ~q ~p p  q ~q  ~p T T F F T T T F T F F F F T F T T T F F T T T T same truth values
  • 30. IMPLICATION LAW  p  q  ~p  q
  • 31. IMPLICATION LAW  p  q  ~p  q p q pq ~p ~p  q T T T F T T F F F F F T T T T F F T T T
  • 32. NEGATION OF A CONDITIONAL STATEMENT  Since p  q  ~p  q therefore  ~ (p  q)  ~ (~ p  q)  ~ (~ p)  (~ q) by De Morgan’s law  p  ~ q by the Double Negative law  Thus the negation of “if p then q” is logically equivalent to “p and not q”.  Note: Accordingly, the negation of an if-then statement does not start with the word if.
  • 33. EXAMPLES  Write negations of each of the following statements:  If Ali lives in Pakistan then he lives in Lahore. Ali lives in Pakistan and he does not live in Lahore.  If my car is in the repair shop, then I cannot get to class.
  • 34. EXAMPLES  If Ali lives in Pakistan then he lives in Lahore. Ali lives in Pakistan and he does not live in Lahore.  If my car is in the repair shop, then I cannot get to class. My car is in the repair shop and I can get to class.
  • 35. Write negations of each of the following statements:  If x is prime then x is odd or x is 2.  If n is divisible by 6, then n is divisible by 2 and n is divisible by 3.
  • 36.  If x is prime then x is odd or x is 2. x is prime but x is not odd and x is not 2.  If n is divisible by 6, then n is divisible by 2 and n is divisible by 3. n is divisible by 6 but n is not divisible by 2 or by 3.
  • 37. INVERSE OF A CONDITIONAL STATEMENT  The inverse of the conditional statement p  q is ~p  ~q  A conditional and its inverse are not equivalent as could be seen from the truth table.
  • 38. INVERSE OF A CONDITIONAL STATEMENT  The inverse of the conditional statement p  q is ~p  ~q  A conditional and its inverse are not equivalent as could be seen from the truth table. p q p  q ~p ~q ~p ~q T T T F F T T F F F T T F T T T F F F F T T T T different truth values in rows 2 and 3
  • 39. WRITING INVERSE  If today is Friday, then 2 + 3 = 5. If today is not Friday, then 2 + 3  5.  If it snows today, I will ski tomorrow.  If P is a square, then P is a rectangle.  If my car is in the repair shop, then I cannot get to class.
  • 40. WRITING INVERSE  If today is Friday, then 2 + 3 = 5. If today is not Friday, then 2 + 3  5.  If it snows today, I will ski tomorrow. If it does not snow today I will not ski tomorrow.  If P is a square, then P is a rectangle. If P is not a square then P is not a rectangle.  If my car is in the repair shop, then I cannot get to class. If my car is not in the repair shop, then I shall get to the class.
  • 41. CONVERSE OF A CONDITIONAL STATEMENT  The converse of the conditional statement p  q is q p  A conditional and its converse are not equivalent.  i.e.,  is not a commutative operator. p q p  q q  p T T T T T F F T F T T F F F T T not the same
  • 42. WRITING CONVERSE  If today is Friday, then 2 + 3 = 5. If 2 + 3 = 5, then today is Friday.  If it snows today, I will ski tomorrow.  If P is a square, then P is a rectangle.  If my car is in the repair shop, then I cannot get to class.
  • 43. WRITING CONVERSE  If today is Friday, then 2 + 3 = 5. If 2 + 3 = 5, then today is Friday.  If it snows today, I will ski tomorrow. I will ski tomorrow only if it snows today.  If P is a square, then P is a rectangle. If P is a rectangle then P is a square.  If my car is in the repair shop, then I cannot get to class. If I cannot get to the class, then my car is in the repair shop.
  • 44. CONTRAPOSITIVE OF A CONDITIONAL STATEMENT  The contrapositive of the conditional statement p  q is ~ q  ~ p  A conditional and its contrapositive are equivalent. Symbolically p  q  ~q  ~p
  • 45.  If today is Friday, then 2 + 3 = 5. If 2 + 3  5, then today is not Friday.  If it snows today, I will ski tomorrow.  If P is a square, then P is a rectangle.  If my car is in the repair shop, then I cannot get to class.
  • 46. WRITING CONVERSE  If today is Friday, then 2 + 3 = 5. If 2 + 3  5, then today is not Friday.  If it snows today, I will ski tomorrow. I will not ski tomorrow only if it not snows today.  If P is a square, then P is a rectangle. If P is not a rectangle then P is not a square.  If my car is in the repair shop, then I cannot get to class. If I can get to the class, then my car is not in the repair shop.