SlideShare a Scribd company logo
1 of 44
WENNILOUPORAZO
DISCRETE MATHEMATICS LECTURE 1
PROPOSITIONAL
LOGIC
MLG COLLEGE OF LEARNING
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
august 2020
compound
propositions
• New propositions formed from existing propositions
using logical operators.
mlg college of learning
august 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
august 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
august 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.
august 2020
mlg college of learning
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
august 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.
august 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.
august 2020
Truth table for the conjunction of two
propositions.
august 2020
mlg college of learning
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
august 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.
august 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.
august 2020
Truth table for the disjunction of two
propositions.
august 2020
mlg college of learning
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
august 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.
august 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.
august 2020
Truth table for the Exclusive OR of
two propositions.
august 2020
mlg college of learning
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
august 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."
august 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."
august 2020
SAMPLE PROBLEM 2
LET P BE THE STATEMENT:
AND Q THE STATEMENT:
"I am elected as the town Mayor."
august 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."
august 2020
ANOTHER EXAMPLE
P → Q
"If you get 100 on the exam, then I will give you
1.0 grade."
august 2020
Truth table for the Conditional
Statement p → q.
august 2020
mlg college of learning
Somethingtothinkabout
CONVERSE,
CONTRAPOSITIVE,
INVERSE
discrete mathematics
Proposition:
Given p → q
converse
q → p
contrapositive
¬ q → ¬ p
inverse
¬ p → ¬q
mlg college of learning
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
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.
bic nditionals
august 2020
discrete mathematics
mlg college of learning
• 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."
august 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."
august 2020
Truth table for the Biconditional
Statement p ↔ q.
august 2020
mlg college of learning
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 Propositional logic

Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdfsmarwaneid
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptxRavind8
 
CSE-203 Lec_1.pptx
CSE-203 Lec_1.pptxCSE-203 Lec_1.pptx
CSE-203 Lec_1.pptxMahdiHasan86
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptNandiniSR2
 
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
 
Discrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsDiscrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsAbdulRehman378540
 
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
 
Propositional logic in Discretes tructures.pptx
Propositional logic in Discretes tructures.pptxPropositional logic in Discretes tructures.pptx
Propositional logic in Discretes tructures.pptxShaukatAliChaudhry1
 
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
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptsamalaramesh4
 
Dm 10.12.2020
Dm 10.12.2020Dm 10.12.2020
Dm 10.12.2020snmeens
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxPriyalMayurManvar
 

Similar to Lecture 1 Propositional logic (20)

Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptx
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
CSE-203 Lec_1.pptx
CSE-203 Lec_1.pptxCSE-203 Lec_1.pptx
CSE-203 Lec_1.pptx
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.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 د. خالد بكرو
 
Discrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete MathematicsDiscrete Structure vs Discrete Mathematics
Discrete Structure vs Discrete Mathematics
 
Chapter1p1 2.pptx
Chapter1p1 2.pptxChapter1p1 2.pptx
Chapter1p1 2.pptx
 
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
 
Propositional logic in Discretes tructures.pptx
Propositional logic in Discretes tructures.pptxPropositional logic in Discretes tructures.pptx
Propositional logic in Discretes tructures.pptx
 
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
 
DISMATH_Part1
DISMATH_Part1DISMATH_Part1
DISMATH_Part1
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.ppt
 
Dm 10.12.2020
Dm 10.12.2020Dm 10.12.2020
Dm 10.12.2020
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Dscrete structure
Dscrete  structureDscrete  structure
Dscrete structure
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptx
 

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

ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayMakMakNepo
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Celine George
 
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
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
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
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
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
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........LeaCamillePacle
 
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
 
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
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 

Recently uploaded (20)

ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Quarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up FridayQuarter 4 Peace-education.pptx Catch Up Friday
Quarter 4 Peace-education.pptx Catch Up Friday
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17Computed Fields and api Depends in the Odoo 17
Computed Fields and api Depends in the Odoo 17
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
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
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
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
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Bikash Puri  Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Bikash Puri Delhi reach out to us at 🔝9953056974🔝
 
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...
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........Atmosphere science 7 quarter 4 .........
Atmosphere science 7 quarter 4 .........
 
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
 
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
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 

Lecture 1 Propositional logic

  • 1. WENNILOUPORAZO DISCRETE MATHEMATICS LECTURE 1 PROPOSITIONAL LOGIC MLG COLLEGE OF LEARNING
  • 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 august 2020
  • 7. compound propositions • New propositions formed from existing propositions using logical operators. mlg college of learning august 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 august 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 august 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. august 2020 mlg college of learning 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 august 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. august 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. august 2020
  • 15. Truth table for the conjunction of two propositions. august 2020 mlg college of learning 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 august 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. august 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. august 2020
  • 19. Truth table for the disjunction of two propositions. august 2020 mlg college of learning 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 august 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. august 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. august 2020
  • 23. Truth table for the Exclusive OR of two propositions. august 2020 mlg college of learning 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 august 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." august 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." august 2020
  • 28. SAMPLE PROBLEM 2 LET P BE THE STATEMENT: AND Q THE STATEMENT: "I am elected as the town Mayor." august 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." august 2020
  • 30. ANOTHER EXAMPLE P → Q "If you get 100 on the exam, then I will give you 1.0 grade." august 2020
  • 31. Truth table for the Conditional Statement p → q. august 2020 mlg college of learning Somethingtothinkabout
  • 33. Proposition: Given p → q converse q → p contrapositive ¬ q → ¬ p inverse ¬ p → ¬q mlg college of learning
  • 34. 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 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.
  • 35. bic nditionals august 2020 discrete mathematics mlg college of learning
  • 36. • 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
  • 37. WHAT ARE THE WAYS TO EXPRESS P ↔ Q? "P is necessary and sufficient for Q" "If p and q, and conversely" "p iff q
  • 38. SAMPLE PROBLEM 1 LET P BE THE STATEMENT: AND Q THE STATEMENT: "You can take the flight." august 2020 "You buy a ticket." EXPRESS THE STATEMENT P ↔ Q USING IFF
  • 39. SOLUTION THEN THE P ↔ Q STATEMENT: "You can take the flight, if and only if you buy a ticket." august 2020
  • 40. Truth table for the Biconditional Statement p ↔ q. august 2020 mlg college of learning Somethingtothinkabout Note : p ↔ q has exactly the same truth value as... (p → q) ∧ (q → p)
  • 41. PRECEDENCE OF LOGICAL OPERATORS discrete mathematics 1 2 3 4 5 ∧ ∨ → ↔
  • 43. CONSTRUCT THE TRUTH TABLE OF THE COMPOUND PROPOSITION exercise 1 mlg college of learning discrete mathematics (p ∨ ¬q ) → (p ∧ q)
  • 44. solution exercise 1 mlg college of learning discrete mathematics (p ∨ ¬q ) → (p ∧ q)