SlideShare a Scribd company logo
1 of 48
MA.WENNILOU
Z.PORAZO
DISCRETE MATHEMATICS LECTURE 1
PROPOSITIONAL
LOGIC
MLG COLLEGE OF LEARNING INC.
LOGIC
Definition
the basis of all mathematical reasoning and all of
automated reasoning.
Rules of logic are used to distinguish between
valid and invalid mathematical arguments.
discrete mathematics
propositions
Definition
basic building blocks of logic.
a declarative sentence that is either true or false
but not both.
discrete mathematics
WHICH OF THESE
ARE
PREPOSITIONS?
Tokyo is the
capital of Japan
1 + 1 = 2
2 + 5 = 11
discrete mathematics
What time is it?
Read this carefully.
x + y = 12
• WE USE LETTERS TO DENOTE PROPOSITIONAL
VARIABLES (OR STATEMENT VARIABLES), THAT
IS, VARIABLES THAT REPRESENT
PROPOSITIONS, JUST AS LETTER ARE USED TO
DENOTE NUMERICAL VARIABLES.
• It uses the conventional letters such as p,q,r,s,...
• Truth values is denoted by T, if it's a true proposition, and
how do we represent
prepositions?
discrete mathematics
propositional
logic
• Area of logic that deals with prepositions
• First developed systematically by Greek
philosopher Aristotle more than 2300 years ago.
mlg college of learning
DECEMBER 2020
compound
propositions
• New propositions formed from existing propositions
using logical operators.
mlg college of learning INC
DECEMBER 2020
discrete mathematics
Let p be a proposition. The
negation of p, denoted by ¬p, is the
statement
"It is not the case that p"
The truth value of the negation of p,
¬p, is the opposite of the truth value
of p.
NEGATION
Definition 1
EXAMPLE 1
FIND THE NEGATION OF THE PROPOSITION
Michelle's PC
runs Linux.
SOLUTION
DECEMBER 2020
It's not the case that
Michelle's Pc runs Linux.
Michelle's PC doesn't run
Linux.
PROBLEM
EXAMPLE 2
FIND THE NEGATION OF THE PROPOSITION
Vanessa's smartphone has at
least 32GB of memory.
SOLUTION
DECEMBER 2020
It's not the case that Vanessa's
smartphone has at least 33GB of
memory.
PROBLEM
Vanessa's smartphone doesn't have
at least 32GB of memory.
DECEMBER 2020
mlg college of learning INC.
Truth table for the negation of
proposition of p
Somethingtothinkabout
Let p and q be propositions. The
conjunction of p and q, denoted by
p ∧ q ,is the proposition.
"p and q"
The conjunction of p and q is true
when both p and q are true and
false if otherwise.
conjunction
DECEMBER 2020
Definition 2
SAMPLE PROBLEM
FIND THE CONJUNCTION OF THE PROPOSITIONS P AND Q
WHERE P IS THE PROPOSITION:
Rachelle's PC has more than 50GB free hard disk space.
DECEMBER 2020
AND Q IS THE PROPOSITION:
The processor in Rachelle's PC runs faster than 2 GHz.
SOLUTION
THE CONJUNCTION OF THESE PREPOSITIONS, P ∧ Q IS
THE PREPOSITION:
Rachelle's PC has more than 50GB free hard disk space AND the processor
in Rachelle's PC runs faster than 2 GHz.
DECEMBER 2020
Truth table for the conjunction of two
propositions.
DECEMBER 2020
mlg college of learning INC.
Somethingtothinkabout
Let p and q be propositions. The
disjunction of p and q, denoted by
p ∨ q ,is the proposition.
"p or q"
The disjunction of p ∨ q is
false when both p and q are false
and is true if otherwise.
disjunction
DEMCEMBER 2020
Definition 3
SAMPLE PROBLEM
FIND THE DISJUNCTION OF THE PROPOSITIONS P AND Q
WHERE P IS THE PROPOSITION:
Rachelle's PC has more than 50GB free hard disk space.
DECEMBER 2020
AND Q IS THE PROPOSITION:
The processor in Rachelle's PC runs faster than 2 GHz.
SOLUTION
THE DISJUNCTION OF THESE PREPOSITIONS, P ∨ Q IS
THE PREPOSITION:
Rachelle's PC has more than 50GB free hard disk space OR the processor
in Rachelle's PC runs faster than 2 GHz.
DECEMBER 2020
Truth table for the disjunction of two
propositions.
DECEMBER 2020
mlg college of learning INC.
Somethingtothinkabout
Let p and q be propositions. The
exclusive or of p and q, denoted by
p ⊕ q ,is the proposition that is true
when exactly one of p and q is
true and is false otherwise.
exclusive
or
DECEMBER 2020
Definition 4
SAMPLE PROBLEM
FIND THE EXCLUSIVE OR OF THE PROPOSITIONS P AND Q
WHERE P IS THE PROPOSITION:
AND Q IS THE PROPOSITION:
Rachelle's PC has more than 50GB free hard disk space.
DECEMBER 2020
The processor in Rachelle's PC runs faster than 2 GHz.
SOLUTION
THE EXCLUSIVE OR OR P AND Q,(P ⊕ Q) IS THE
PROPOSITION:
Rachelle's PC has at least 50GB free hard disk space , OR the processor
in Rachelle's PC runs faster than 2 GHz, but not both.
DECEMBER 2020
Truth table for the Exclusive OR of
two propositions.
DECEMBER 2020
mlg college of learning INC.
Somethingtothinkabout
Let p and q be propositions. The
conditional statement p --> q is the
proposition, "if p, then q".
The conditional statement p --> q is
false when p is true and q is false,
and true otherwise.
CONDITIONAL
STATEMENT
DECEMBER 2020
Definition 5
In the conditional statement p --> q, p is called the
hypothesis (or the antecedent or premise) and q is
called the conclusion (or the consequence)
"if p, then q"
p → q
august 2020 discrete mathematics
"if p, q"
"q if p"
"q when p"
"q follows from p"
"a necessary condition for p is q"
"a sufficient condition for q is p"
"p implies q"
"p only if q"
"q whenever p"
"q is necessary for p"
SAMPLE PROBLEM 1
LET P BE THE STATEMENT:
AND Q THE STATEMENT:
"Joy learns Discrete Mathematics."
DECEMBER 2020
"Joy will find a good job."
EXPRESS THE STATEMENT P → Q INTO ENGLISH
SOLUTION
P → Q
"If Joy learns Discrete Mathematics, then she
will find a good job."
DECEMBER 2020
SAMPLE PROBLEM 2
LET P BE THE STATEMENT:
AND Q THE STATEMENT:
"I am elected as the town Mayor."
DECEMBER 2020
"I will lower the taxes and tuition fees."
EXPRESS THE STATEMENT P → Q INTO ENGLISH
SOLUTION 2
P → Q
"If I am elected as the town Mayor, then I will
lower the taxes and tuition fees."
DECEMBER 2020
ANOTHER EXAMPLE
P → Q
"If you get 100 on the exam, then I will give you
1.0 grade."
DECEMBER 2020
Truth table for the Conditional
Statement p → q.
DECEMBER 2020
mlg college of learning INC.
Somethingtothinkabout
CONVERSE,
CONTRAPOSITIVE,
INVERSE
discrete mathematics
If you pass the exam, then you
will graduate on time.
converse
If you graduate on time, then you passed
the exam.
contrapositive
inverse
mlg college of learning INC.
Proposition:
p → q
If you do not graduate on time, then you
did not pass the exam.
If you don't pass the exam, then you don't
graduate on time.
EXPLAINATION
The contrapositive, ¬ q → ¬ p of an implication p → q has the same truth value as p →
q. To see this, note that the contrapositive is false only when ¬ p is false and ¬ q is
true, that is, only when p is true and q is false. On the other hand, neither the
converse, q → p nor the inverse, ¬ p → ¬q has the same truth value as p → q for all
possible truth values of p and q. To see this, note that when p is true and q is false
,the original implication is false, but the converse and inverse are both true. When
two compound propositions always have the same truth value we call them
equivalent, so that an implication and its contrapositive are equivalent. The converse
and inverse of an implication are also equivalent, as the reader can verify.
mlg college of learning INC.
EXAMPLE: What are the contrapositive, the converse,
and the inverse of the implication?
mlg college of learning INC.
“The home team wins whenever it is
raining.”?
Solution: Because q whenever p is one of the ways
to express the implication , the original statement
can be written as
mlg college of learning INC .
Consequently, the contrapositive of this implication
is:
“If it is raining, then the home team wins.”
“If the home team does not win, then it is not
raining.”
The converse is:
mlg college of learning INC.
The inverse is:
“If the home team wins, then it is raining.”
“If it is not raining, then the home team does not
win.”
Note:
mlg college of learning INC.
Only the contrapositive is equivalent
to the original statement.
bic nditionals
DECEMBER 2020
discrete mathematics
mlg college of learning INC.
• Let p and q be propositions. The biconditional statement
p ↔ q, is the proposition "p if and only if q."
• The biconditional statement p ↔ q is true when p and q
has the same truth vales, and false otherwise.
Definition 6
DISCRETE MATHEMATICS
• Biconditional statements are also called bi-implications.
BICONDITIONALS
WHAT ARE THE
WAYS TO EXPRESS
P ↔ Q?
"P is necessary and
sufficient for Q"
"If p and q, and
conversely"
"p iff q
SAMPLE PROBLEM 1
LET P BE THE STATEMENT:
AND Q THE STATEMENT:
"You can take the flight."
DECEMBER 2020
"You buy a ticket."
EXPRESS THE STATEMENT P ↔ Q USING IFF
SOLUTION
THEN THE P ↔ Q STATEMENT:
"You can take the flight, if and only if you buy a
ticket."
DECEMBER 2020
Truth table for the Biconditional
Statement p ↔ q.
DECEMBER 2020
mlg college of learning INC.
Somethingtothinkabout
Note :
p ↔ q has exactly the same
truth value as...
(p → q) ∧ (q → p)
PRECEDENCE OF LOGICAL OPERATORS
discrete mathematics
1
2
3
4
5
∧
∨
→
↔
SAMPLE EXERCISE
CONSTRUCT THE TRUTH TABLE OF THE COMPOUND
PROPOSITION
exercise 1
mlg college of learning
discrete mathematics
(p ∨ ¬q ) → (p ∧ q)
solution
exercise 1
mlg college of learning
discrete mathematics
(p ∨ ¬q ) → (p ∧ q)

More Related Content

Similar to LECTURE 1: LOGIC

Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptxRavind8
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdfsmarwaneid
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptNandiniSR2
 
CSE-203 Lec_1.pptx
CSE-203 Lec_1.pptxCSE-203 Lec_1.pptx
CSE-203 Lec_1.pptxMahdiHasan86
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptsamalaramesh4
 
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
 
Dm 10.12.2020
Dm 10.12.2020Dm 10.12.2020
Dm 10.12.2020snmeens
 
BARSA-PRESENTATION.pptx
BARSA-PRESENTATION.pptxBARSA-PRESENTATION.pptx
BARSA-PRESENTATION.pptxPran K Mohanty
 
Discrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsDiscrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsAbdulRehman378540
 
1.3.1 Conditional Statements
1.3.1 Conditional Statements1.3.1 Conditional Statements
1.3.1 Conditional Statementssmiller5
 
Propositional Logic.pdf
Propositional Logic.pdfPropositional Logic.pdf
Propositional Logic.pdfZLEMORHAN3
 
6-Math-Logic.pptx Math logic general mathematics
6-Math-Logic.pptx Math logic general mathematics6-Math-Logic.pptx Math logic general mathematics
6-Math-Logic.pptx Math logic general mathematicsMJ Barroga
 
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsChapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsProfSHananeel
 
Laws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applicationsLaws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applicationsZenLooper
 

Similar to LECTURE 1: LOGIC (20)

Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptx
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.ppt
 
CSE-203 Lec_1.pptx
CSE-203 Lec_1.pptxCSE-203 Lec_1.pptx
CSE-203 Lec_1.pptx
 
LECTURE 2: PROPOSITIONAL EQUIVALENCES
LECTURE 2: PROPOSITIONAL EQUIVALENCESLECTURE 2: PROPOSITIONAL EQUIVALENCES
LECTURE 2: PROPOSITIONAL EQUIVALENCES
 
Chapter1p1 2.pptx
Chapter1p1 2.pptxChapter1p1 2.pptx
Chapter1p1 2.pptx
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.ppt
 
DMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptxDMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptx
 
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 د. خالد بكرو
 
Dm 10.12.2020
Dm 10.12.2020Dm 10.12.2020
Dm 10.12.2020
 
BARSA-PRESENTATION.pptx
BARSA-PRESENTATION.pptxBARSA-PRESENTATION.pptx
BARSA-PRESENTATION.pptx
 
DISMATH_Part1
DISMATH_Part1DISMATH_Part1
DISMATH_Part1
 
Discrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsDiscrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete Mathematics
 
1.3.1 Conditional Statements
1.3.1 Conditional Statements1.3.1 Conditional Statements
1.3.1 Conditional Statements
 
Propositional Logic.pdf
Propositional Logic.pdfPropositional Logic.pdf
Propositional Logic.pdf
 
6-Math-Logic.pptx Math logic general mathematics
6-Math-Logic.pptx Math logic general mathematics6-Math-Logic.pptx Math logic general mathematics
6-Math-Logic.pptx Math logic general mathematics
 
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsChapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
 
Laws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applicationsLaws of Logic in Discrete Structures and their applications
Laws of Logic in Discrete Structures and their applications
 

More from MLG College of Learning, Inc (20)

PC111.Lesson2
PC111.Lesson2PC111.Lesson2
PC111.Lesson2
 
PC111.Lesson1
PC111.Lesson1PC111.Lesson1
PC111.Lesson1
 
PC111-lesson1.pptx
PC111-lesson1.pptxPC111-lesson1.pptx
PC111-lesson1.pptx
 
PC LEESOON 6.pptx
PC LEESOON 6.pptxPC LEESOON 6.pptx
PC LEESOON 6.pptx
 
PC 106 PPT-09.pptx
PC 106 PPT-09.pptxPC 106 PPT-09.pptx
PC 106 PPT-09.pptx
 
PC 106 PPT-07
PC 106 PPT-07PC 106 PPT-07
PC 106 PPT-07
 
PC 106 PPT-01
PC 106 PPT-01PC 106 PPT-01
PC 106 PPT-01
 
PC 106 PPT-06
PC 106 PPT-06PC 106 PPT-06
PC 106 PPT-06
 
PC 106 PPT-05
PC 106 PPT-05PC 106 PPT-05
PC 106 PPT-05
 
PC 106 Slide 04
PC 106 Slide 04PC 106 Slide 04
PC 106 Slide 04
 
PC 106 Slide no.02
PC 106 Slide no.02PC 106 Slide no.02
PC 106 Slide no.02
 
pc-106-slide-3
pc-106-slide-3pc-106-slide-3
pc-106-slide-3
 
PC 106 Slide 2
PC 106 Slide 2PC 106 Slide 2
PC 106 Slide 2
 
PC 106 Slide 1.pptx
PC 106 Slide 1.pptxPC 106 Slide 1.pptx
PC 106 Slide 1.pptx
 
Db2 characteristics of db ms
Db2 characteristics of db msDb2 characteristics of db ms
Db2 characteristics of db ms
 
Db1 introduction
Db1 introductionDb1 introduction
Db1 introduction
 
Lesson 3.2
Lesson 3.2Lesson 3.2
Lesson 3.2
 
Lesson 3.1
Lesson 3.1Lesson 3.1
Lesson 3.1
 
Lesson 1.6
Lesson 1.6Lesson 1.6
Lesson 1.6
 
Lesson 3.2
Lesson 3.2Lesson 3.2
Lesson 3.2
 

Recently uploaded

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.MaryamAhmad92
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptxMaritesTamaniVerdade
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIShubhangi Sonawane
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 

Recently uploaded (20)

Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 

LECTURE 1: LOGIC

  • 1. MA.WENNILOU Z.PORAZO DISCRETE MATHEMATICS LECTURE 1 PROPOSITIONAL LOGIC MLG COLLEGE OF LEARNING INC.
  • 2. LOGIC Definition the basis of all mathematical reasoning and all of automated reasoning. Rules of logic are used to distinguish between valid and invalid mathematical arguments. discrete mathematics
  • 3. propositions Definition basic building blocks of logic. a declarative sentence that is either true or false but not both. discrete mathematics
  • 4. WHICH OF THESE ARE PREPOSITIONS? Tokyo is the capital of Japan 1 + 1 = 2 2 + 5 = 11 discrete mathematics What time is it? Read this carefully. x + y = 12
  • 5. • WE USE LETTERS TO DENOTE PROPOSITIONAL VARIABLES (OR STATEMENT VARIABLES), THAT IS, VARIABLES THAT REPRESENT PROPOSITIONS, JUST AS LETTER ARE USED TO DENOTE NUMERICAL VARIABLES. • It uses the conventional letters such as p,q,r,s,... • Truth values is denoted by T, if it's a true proposition, and how do we represent prepositions? discrete mathematics
  • 6. propositional logic • Area of logic that deals with prepositions • First developed systematically by Greek philosopher Aristotle more than 2300 years ago. mlg college of learning DECEMBER 2020
  • 7. compound propositions • New propositions formed from existing propositions using logical operators. mlg college of learning INC DECEMBER 2020
  • 8. discrete mathematics Let p be a proposition. The negation of p, denoted by ¬p, is the statement "It is not the case that p" The truth value of the negation of p, ¬p, is the opposite of the truth value of p. NEGATION Definition 1
  • 9. EXAMPLE 1 FIND THE NEGATION OF THE PROPOSITION Michelle's PC runs Linux. SOLUTION DECEMBER 2020 It's not the case that Michelle's Pc runs Linux. Michelle's PC doesn't run Linux. PROBLEM
  • 10. EXAMPLE 2 FIND THE NEGATION OF THE PROPOSITION Vanessa's smartphone has at least 32GB of memory. SOLUTION DECEMBER 2020 It's not the case that Vanessa's smartphone has at least 33GB of memory. PROBLEM Vanessa's smartphone doesn't have at least 32GB of memory.
  • 11. DECEMBER 2020 mlg college of learning INC. Truth table for the negation of proposition of p Somethingtothinkabout
  • 12. Let p and q be propositions. The conjunction of p and q, denoted by p ∧ q ,is the proposition. "p and q" The conjunction of p and q is true when both p and q are true and false if otherwise. conjunction DECEMBER 2020 Definition 2
  • 13. SAMPLE PROBLEM FIND THE CONJUNCTION OF THE PROPOSITIONS P AND Q WHERE P IS THE PROPOSITION: Rachelle's PC has more than 50GB free hard disk space. DECEMBER 2020 AND Q IS THE PROPOSITION: The processor in Rachelle's PC runs faster than 2 GHz.
  • 14. SOLUTION THE CONJUNCTION OF THESE PREPOSITIONS, P ∧ Q IS THE PREPOSITION: Rachelle's PC has more than 50GB free hard disk space AND the processor in Rachelle's PC runs faster than 2 GHz. DECEMBER 2020
  • 15. Truth table for the conjunction of two propositions. DECEMBER 2020 mlg college of learning INC. Somethingtothinkabout
  • 16. Let p and q be propositions. The disjunction of p and q, denoted by p ∨ q ,is the proposition. "p or q" The disjunction of p ∨ q is false when both p and q are false and is true if otherwise. disjunction DEMCEMBER 2020 Definition 3
  • 17. SAMPLE PROBLEM FIND THE DISJUNCTION OF THE PROPOSITIONS P AND Q WHERE P IS THE PROPOSITION: Rachelle's PC has more than 50GB free hard disk space. DECEMBER 2020 AND Q IS THE PROPOSITION: The processor in Rachelle's PC runs faster than 2 GHz.
  • 18. SOLUTION THE DISJUNCTION OF THESE PREPOSITIONS, P ∨ Q IS THE PREPOSITION: Rachelle's PC has more than 50GB free hard disk space OR the processor in Rachelle's PC runs faster than 2 GHz. DECEMBER 2020
  • 19. Truth table for the disjunction of two propositions. DECEMBER 2020 mlg college of learning INC. Somethingtothinkabout
  • 20. Let p and q be propositions. The exclusive or of p and q, denoted by p ⊕ q ,is the proposition that is true when exactly one of p and q is true and is false otherwise. exclusive or DECEMBER 2020 Definition 4
  • 21. SAMPLE PROBLEM FIND THE EXCLUSIVE OR OF THE PROPOSITIONS P AND Q WHERE P IS THE PROPOSITION: AND Q IS THE PROPOSITION: Rachelle's PC has more than 50GB free hard disk space. DECEMBER 2020 The processor in Rachelle's PC runs faster than 2 GHz.
  • 22. SOLUTION THE EXCLUSIVE OR OR P AND Q,(P ⊕ Q) IS THE PROPOSITION: Rachelle's PC has at least 50GB free hard disk space , OR the processor in Rachelle's PC runs faster than 2 GHz, but not both. DECEMBER 2020
  • 23. Truth table for the Exclusive OR of two propositions. DECEMBER 2020 mlg college of learning INC. Somethingtothinkabout
  • 24. Let p and q be propositions. The conditional statement p --> q is the proposition, "if p, then q". The conditional statement p --> q is false when p is true and q is false, and true otherwise. CONDITIONAL STATEMENT DECEMBER 2020 Definition 5 In the conditional statement p --> q, p is called the hypothesis (or the antecedent or premise) and q is called the conclusion (or the consequence)
  • 25. "if p, then q" p → q august 2020 discrete mathematics "if p, q" "q if p" "q when p" "q follows from p" "a necessary condition for p is q" "a sufficient condition for q is p" "p implies q" "p only if q" "q whenever p" "q is necessary for p"
  • 26. SAMPLE PROBLEM 1 LET P BE THE STATEMENT: AND Q THE STATEMENT: "Joy learns Discrete Mathematics." DECEMBER 2020 "Joy will find a good job." EXPRESS THE STATEMENT P → Q INTO ENGLISH
  • 27. SOLUTION P → Q "If Joy learns Discrete Mathematics, then she will find a good job." DECEMBER 2020
  • 28. SAMPLE PROBLEM 2 LET P BE THE STATEMENT: AND Q THE STATEMENT: "I am elected as the town Mayor." DECEMBER 2020 "I will lower the taxes and tuition fees." EXPRESS THE STATEMENT P → Q INTO ENGLISH
  • 29. SOLUTION 2 P → Q "If I am elected as the town Mayor, then I will lower the taxes and tuition fees." DECEMBER 2020
  • 30. ANOTHER EXAMPLE P → Q "If you get 100 on the exam, then I will give you 1.0 grade." DECEMBER 2020
  • 31. Truth table for the Conditional Statement p → q. DECEMBER 2020 mlg college of learning INC. Somethingtothinkabout
  • 33. If you pass the exam, then you will graduate on time. converse If you graduate on time, then you passed the exam. contrapositive inverse mlg college of learning INC. Proposition: p → q If you do not graduate on time, then you did not pass the exam. If you don't pass the exam, then you don't graduate on time.
  • 34. EXPLAINATION The contrapositive, ¬ q → ¬ p of an implication p → q has the same truth value as p → q. To see this, note that the contrapositive is false only when ¬ p is false and ¬ q is true, that is, only when p is true and q is false. On the other hand, neither the converse, q → p nor the inverse, ¬ p → ¬q has the same truth value as p → q for all possible truth values of p and q. To see this, note that when p is true and q is false ,the original implication is false, but the converse and inverse are both true. When two compound propositions always have the same truth value we call them equivalent, so that an implication and its contrapositive are equivalent. The converse and inverse of an implication are also equivalent, as the reader can verify. mlg college of learning INC.
  • 35. EXAMPLE: What are the contrapositive, the converse, and the inverse of the implication? mlg college of learning INC. “The home team wins whenever it is raining.”?
  • 36. Solution: Because q whenever p is one of the ways to express the implication , the original statement can be written as mlg college of learning INC . Consequently, the contrapositive of this implication is: “If it is raining, then the home team wins.” “If the home team does not win, then it is not raining.”
  • 37. The converse is: mlg college of learning INC. The inverse is: “If the home team wins, then it is raining.” “If it is not raining, then the home team does not win.”
  • 38. Note: mlg college of learning INC. Only the contrapositive is equivalent to the original statement.
  • 39. bic nditionals DECEMBER 2020 discrete mathematics mlg college of learning INC.
  • 40. • Let p and q be propositions. The biconditional statement p ↔ q, is the proposition "p if and only if q." • The biconditional statement p ↔ q is true when p and q has the same truth vales, and false otherwise. Definition 6 DISCRETE MATHEMATICS • Biconditional statements are also called bi-implications. BICONDITIONALS
  • 41. WHAT ARE THE WAYS TO EXPRESS P ↔ Q? "P is necessary and sufficient for Q" "If p and q, and conversely" "p iff q
  • 42. SAMPLE PROBLEM 1 LET P BE THE STATEMENT: AND Q THE STATEMENT: "You can take the flight." DECEMBER 2020 "You buy a ticket." EXPRESS THE STATEMENT P ↔ Q USING IFF
  • 43. SOLUTION THEN THE P ↔ Q STATEMENT: "You can take the flight, if and only if you buy a ticket." DECEMBER 2020
  • 44. Truth table for the Biconditional Statement p ↔ q. DECEMBER 2020 mlg college of learning INC. Somethingtothinkabout Note : p ↔ q has exactly the same truth value as... (p → q) ∧ (q → p)
  • 45. PRECEDENCE OF LOGICAL OPERATORS discrete mathematics 1 2 3 4 5 ∧ ∨ → ↔
  • 47. CONSTRUCT THE TRUTH TABLE OF THE COMPOUND PROPOSITION exercise 1 mlg college of learning discrete mathematics (p ∨ ¬q ) → (p ∧ q)
  • 48. solution exercise 1 mlg college of learning discrete mathematics (p ∨ ¬q ) → (p ∧ q)