SlideShare uma empresa Scribd logo
1 de 26
Baixar para ler offline
LOGIC
PROPOSITIONAL LOGIC
l Proposition
l declarative statement that is either true or false,
but not both
l the following statements are propositions:
l The square root of 2 is irrational.
l In the year 2010, more Filipinos will go to Canada.
l -5 < 75
l the following statements are NOT propositions:
l What did you say?
l This sentence is false.
l x = 6
PROPOSITIONAL LOGIC
l Notation
l atomic propositions
l capital letters
l compound propositions
l atomic propositions with logical connectives
l defined via truth tables
l truth values of propositions
l 1 or T (true)
l 0 or F (false)
LOGICAL CONNECTIVES
Operator Symbol Usage
Negation ¬ not
Conjunction ∧ and
Disjunction ∨ or
Conditional → if, then
Biconditional ↔ iff
NEGATION
l turns a false proposition to true and turns
a true proposition to false
l truth table
P ¬ P
1 0
0 1
l example
l P: 10 is divisible by 2.
l ¬ P: 10 is not divisible by 2.
CONJUNCTION
l truth table
P Q P ∧ Q
1 1 1
1 0 0
0 1 0
0 0 0
CONJUNCTION
l examples
l 6 < 7 and 7 < 8
l 2*4 = 16 and a quart is larger than a liter.
l P: Barrack Obama is the American president.
Q: Benigno Aquino III is the Filipino president.
R: Corazon Aquino was an American president.
P ∧ Q P ∧ R R ∧ Q
DISJUNCTION
l truth table
P Q P ∨ Q
1 1 1
1 0 1
0 1 1
0 0 0
DISJUNCTION
l examples
l 6 < 7 or Venus is smaller than earth.
l 2*4 = 16 or a quart is larger than a liter.
l P: Slater Young is a millionaire.
Q: Lucio Tan is a billionaire
R: Steve Jobs was a billionaire.
P ∨ Q P ∨ R R ∨ Q
CONDITIONAL/IMPLICATION
l P is the hypothesis or premise
l Q is the conclusion
l truth table
P Q P → Q
1 1 1
1 0 0
0 1 1
0 0 1
CONDITIONAL/IMPLICATION
l other ways to express P → Q:
l If P then Q
l P only if Q
l P is sufficient for Q
l Q if P
l Q whenever P
l Q is necessary for P
CONDITIONAL/IMPLICATION
l examples:
l If triangle ABC is isosceles, then the base angles
A and B are equal.
l 1+2 = 3 implies that 1 < 0.
l If the sun shines tomorrow, I will play basketball.
l If you get 100 in the final exam, then you will
pass the course.
l If 0 = 1, then 3 = 9.
BICONDITIONAL
l logically equivalent to P → Q ∧ Q → P
l truth table
P Q P ↔ Q
1 1 1
1 0 0
0 1 0
0 0 1
BICONDITIONAL
l examples
l A rectangle is a square if and only if its diagonals
are perpendicular.
l 5 + 6 = 6 if and only if 7 + 1 = 10.
OTHER CONCEPTS
l contrapositive
l ¬ Q → ¬ P contrapositive of P → Q
l ¬ Q → ¬ P is equivalent to P → Q
l inverse
l ¬ P → ¬ Q is the inverse of P → Q
l P → Q is not equivalent to its inverse
l converse
l Q → P is the converse of P → Q
OTHER CONCEPTS
l types of propositional forms
l tautology – a proposition that is always true
under all possible combinations of truth values
for all component propositions
l contradiction – a proposition that is always false
under all possible combinations of truth values
for all component propositions
l contingency – a proposition that is neither a
tautology nor a contradiction
SAMPLE TRUTH TABLES
P Q P ∧ Q (P ∧ Q) → P
1 1 1 1
1 0 0 1
0 1 0 1
0 0 0 1
(P ∧ Q) → P
SAMPLE TRUTH TABLES
P ¬ P P ∧ ¬ P
1 0 0
0 1 0
P ∧ ¬ P
SAMPLE TRUTH TABLES
P Q P ∨ Q (P ∨ Q )→ P
1 1 1 1
1 0 1 1
0 1 1 0
0 0 0 1
(P ∨ Q) → P
SAMPLE TRUTH TABLES
P Q P ↔ Q P ∧ Q ¬ P ∧¬ Q (P ∧ Q) ∨
(¬ P ∧¬ Q)
1 1 1 1 0 1
1 0 0 0 0 0
0 1 0 0 0 0
0 0 1 0 1 1
Show that (P ↔ Q) ↔(( P ∧ Q) ∨ (¬ P ∧¬ Q))
Equivalent Propositions
(Logical Equivalence)
l When are two propositions equivalent?
Suppose P and Q are compound propostions, P
and Q are equivalent if the truth value of P is
always equal to the truth value of Q for all the
permutation of truth values to the component
propositions
Equivalent Propositions
(Logical Equivalence)
l Suppose P is equivalent to Q. P may be used to
replace Q or vice versa.
l The Rules of Replacement are equivalent
propositions(Logically equivalent propositions)
l The Rules of Replacement are used to simplify a
proposition (Deriving a proposition equivalent to
a given proposition)
Rules of Replacement
1. Idempotence
P ≡ ( P ∨ P ) , P ≡ ( P ∧ P )
2. Commutativity
( P ∨ Q ) ≡ ( Q ∨ P ), ( P ∧ Q ) ≡ ( Q ∧ P )
3. Associativity,
( P ∨ Q ) ∨ R ≡ P ∨ ( Q ∨ R ),
( P ∧ Q ) ∧ R ≡ P ∧ ( Q ∧ R )
4. De Morgan’s Laws
¬ ( P ∨ Q ) ≡ ¬P ∧ ¬Q,
¬ ( P ∧ Q ) ≡ ¬P ∨ ¬Q
Rules of Replacement
5. Distributivity of ∧ over ∨
P ∧ ( Q ∨ R ) ≡ ( P ∧ Q ) ∨ ( P ∧ R )
6. Distributivity of ∨ over ∧
P ∨ ( Q ∧ R ) ≡ ( P ∨ Q ) ∧ ( P ∨ R )
7. Double Negation
¬ (¬ P) ≡ P
8. Material Implication
( P ⇒ Q ) ≡ (¬ P ∨ Q )
9. Material Equivalence
( P ⇔ Q ) ≡ ( P ⇒ Q ) ∧ ( Q⇒P )
Rules of Replacement
10. Exportation
[ ( P ∧ Q ) ⇒ R ] ≡ [ P ⇒ ( Q ⇒ R ) ]
11. Absurdity
[ ( P ⇒ Q ) ∧ ( P ⇒ ¬ Q )] ≡ ¬ P
12. Contrapositive
( P ⇒ Q ) ≡ (¬ Q ⇒ ¬P )
Rules of Replacement
13. Identities
P ∨ 1 ≡ 1 P ∧ 1 ≡ P
P ∨ 0 ≡ P P ∧ 0 ≡ 0
P ∨ ¬P ≡ 1 P ∧ ¬P ≡ 0
¬0 ≡ 1 ¬1 ≡ 0

Mais conteúdo relacionado

Mais procurados

INTERPRETING MEASURE OF POSITION.pptx
INTERPRETING MEASURE OF POSITION.pptxINTERPRETING MEASURE OF POSITION.pptx
INTERPRETING MEASURE OF POSITION.pptxHannahSheena
 
11.5 Probability with Fundamental Counting Principles, Permutation and Combin...
11.5 Probability with Fundamental Counting Principles, Permutation and Combin...11.5 Probability with Fundamental Counting Principles, Permutation and Combin...
11.5 Probability with Fundamental Counting Principles, Permutation and Combin...Ryan Pineda
 
Union and intersection of events (math 10)
Union and intersection of events (math 10)Union and intersection of events (math 10)
Union and intersection of events (math 10)Damone Odrale
 
Permutation combination
Permutation combinationPermutation combination
Permutation combinationlovemucheca
 
Relations and Functions
Relations and FunctionsRelations and Functions
Relations and Functionstoni dimella
 
Probability of Simple and Compound Events
Probability of Simple and Compound EventsProbability of Simple and Compound Events
Probability of Simple and Compound EventsJoey Valdriz
 
PERCENTILE : MEASURES OF POSITION FOR GROUPED DATA
PERCENTILE : MEASURES OF POSITION FOR GROUPED DATA PERCENTILE : MEASURES OF POSITION FOR GROUPED DATA
PERCENTILE : MEASURES OF POSITION FOR GROUPED DATA Chuckry Maunes
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical LogicJoey Valdriz
 
The spanish colonial and pre colonial text
The spanish colonial and pre colonial textThe spanish colonial and pre colonial text
The spanish colonial and pre colonial textCaren Cabague
 
Provingtrianglescongruentssssasasa
ProvingtrianglescongruentssssasasaProvingtrianglescongruentssssasasa
ProvingtrianglescongruentssssasasaJessica Garcia
 
Technology as a Way of Revealing
Technology as a Way of RevealingTechnology as a Way of Revealing
Technology as a Way of RevealingJustin Matthew Gozo
 
566-teaching-social-studies-in-elementary-grades-phil-history-and-government.pdf
566-teaching-social-studies-in-elementary-grades-phil-history-and-government.pdf566-teaching-social-studies-in-elementary-grades-phil-history-and-government.pdf
566-teaching-social-studies-in-elementary-grades-phil-history-and-government.pdfJayarPasiliao
 
Translating Verbal Phrases to Algebraic Expression
Translating Verbal Phrases to Algebraic ExpressionTranslating Verbal Phrases to Algebraic Expression
Translating Verbal Phrases to Algebraic ExpressionCarlo Luna
 
Chapter 2 Mathematical Language and Symbols.pdf
Chapter 2 Mathematical Language and Symbols.pdfChapter 2 Mathematical Language and Symbols.pdf
Chapter 2 Mathematical Language and Symbols.pdfRaRaRamirez
 
Week 2: Arithmetic sequence
Week 2:  Arithmetic sequenceWeek 2:  Arithmetic sequence
Week 2: Arithmetic sequenceRozzel Palacio
 

Mais procurados (20)

INTERPRETING MEASURE OF POSITION.pptx
INTERPRETING MEASURE OF POSITION.pptxINTERPRETING MEASURE OF POSITION.pptx
INTERPRETING MEASURE OF POSITION.pptx
 
Permutation
PermutationPermutation
Permutation
 
11.5 Probability with Fundamental Counting Principles, Permutation and Combin...
11.5 Probability with Fundamental Counting Principles, Permutation and Combin...11.5 Probability with Fundamental Counting Principles, Permutation and Combin...
11.5 Probability with Fundamental Counting Principles, Permutation and Combin...
 
Union and intersection of events (math 10)
Union and intersection of events (math 10)Union and intersection of events (math 10)
Union and intersection of events (math 10)
 
Permutation combination
Permutation combinationPermutation combination
Permutation combination
 
Relations and Functions
Relations and FunctionsRelations and Functions
Relations and Functions
 
Probability of Simple and Compound Events
Probability of Simple and Compound EventsProbability of Simple and Compound Events
Probability of Simple and Compound Events
 
PERCENTILE : MEASURES OF POSITION FOR GROUPED DATA
PERCENTILE : MEASURES OF POSITION FOR GROUPED DATA PERCENTILE : MEASURES OF POSITION FOR GROUPED DATA
PERCENTILE : MEASURES OF POSITION FOR GROUPED DATA
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
GOV'T POLICIES.pptx
GOV'T POLICIES.pptxGOV'T POLICIES.pptx
GOV'T POLICIES.pptx
 
The spanish colonial and pre colonial text
The spanish colonial and pre colonial textThe spanish colonial and pre colonial text
The spanish colonial and pre colonial text
 
Proposition (Logic)
Proposition (Logic)Proposition (Logic)
Proposition (Logic)
 
cheyene ppt.pptx
cheyene ppt.pptxcheyene ppt.pptx
cheyene ppt.pptx
 
Provingtrianglescongruentssssasasa
ProvingtrianglescongruentssssasasaProvingtrianglescongruentssssasasa
Provingtrianglescongruentssssasasa
 
Technology as a Way of Revealing
Technology as a Way of RevealingTechnology as a Way of Revealing
Technology as a Way of Revealing
 
Probability and Statistics - Week 1
Probability and Statistics - Week 1Probability and Statistics - Week 1
Probability and Statistics - Week 1
 
566-teaching-social-studies-in-elementary-grades-phil-history-and-government.pdf
566-teaching-social-studies-in-elementary-grades-phil-history-and-government.pdf566-teaching-social-studies-in-elementary-grades-phil-history-and-government.pdf
566-teaching-social-studies-in-elementary-grades-phil-history-and-government.pdf
 
Translating Verbal Phrases to Algebraic Expression
Translating Verbal Phrases to Algebraic ExpressionTranslating Verbal Phrases to Algebraic Expression
Translating Verbal Phrases to Algebraic Expression
 
Chapter 2 Mathematical Language and Symbols.pdf
Chapter 2 Mathematical Language and Symbols.pdfChapter 2 Mathematical Language and Symbols.pdf
Chapter 2 Mathematical Language and Symbols.pdf
 
Week 2: Arithmetic sequence
Week 2:  Arithmetic sequenceWeek 2:  Arithmetic sequence
Week 2: Arithmetic sequence
 

Destaque

Propositional logic sneha-mam
Propositional logic sneha-mam Propositional logic sneha-mam
Propositional logic sneha-mam nitesh9353
 
Logic Notes
Logic NotesLogic Notes
Logic Notesacavis
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inferenceSlideshare
 
Discrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicDiscrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicUniversity of Potsdam
 
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
 
Translating English to Propositional Logic
Translating English to Propositional LogicTranslating English to Propositional Logic
Translating English to Propositional LogicJanet Stemwedel
 
Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Omnia A. Abdullah
 

Destaque (13)

PowerPoint Presentation
PowerPoint PresentationPowerPoint Presentation
PowerPoint Presentation
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Truth table
Truth tableTruth table
Truth table
 
Propositional logic sneha-mam
Propositional logic sneha-mam Propositional logic sneha-mam
Propositional logic sneha-mam
 
Logic part1
Logic part1Logic part1
Logic part1
 
Logic Notes
Logic NotesLogic Notes
Logic Notes
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Propositional logic & inference
Propositional logic & inferencePropositional logic & inference
Propositional logic & inference
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Discrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicDiscrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional Logic
 
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 د. خالد بكرو
 
Translating English to Propositional Logic
Translating English to Propositional LogicTranslating English to Propositional Logic
Translating English to Propositional Logic
 
Discrete Mathematics - All chapters
Discrete Mathematics - All chapters Discrete Mathematics - All chapters
Discrete Mathematics - All chapters
 

Semelhante a Logic parti

UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptxDakshBaveja
 
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
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdfrAjyarAjanItjJa
 
Discrete-Chapter 04 Logic Part II
Discrete-Chapter 04 Logic Part IIDiscrete-Chapter 04 Logic Part II
Discrete-Chapter 04 Logic Part IIWongyos Keardsri
 
Fundamentals of logic 1
Fundamentals of logic   1Fundamentals of logic   1
Fundamentals of logic 1Lakshmi R
 
BARSA-PRESENTATION.pptx
BARSA-PRESENTATION.pptxBARSA-PRESENTATION.pptx
BARSA-PRESENTATION.pptxPran K Mohanty
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdfsmarwaneid
 
Logical arguments and its computer applications.
Logical arguments and its computer applications.Logical arguments and its computer applications.
Logical arguments and its computer applications.Saumay Paul
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1taimoor iftikhar
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer scienceBindhuBhargaviTalasi
 

Semelhante a Logic parti (20)

Course notes1
Course notes1Course notes1
Course notes1
 
UNIT-III-PPT.pptx
UNIT-III-PPT.pptxUNIT-III-PPT.pptx
UNIT-III-PPT.pptx
 
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]
 
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
[gaNita] 2. Propositional Equivalences [math.fsu.edu].pdf
 
Discrete-Chapter 04 Logic Part II
Discrete-Chapter 04 Logic Part IIDiscrete-Chapter 04 Logic Part II
Discrete-Chapter 04 Logic Part II
 
12_Truth_Tables.pptx
12_Truth_Tables.pptx12_Truth_Tables.pptx
12_Truth_Tables.pptx
 
Fundamentals of logic 1
Fundamentals of logic   1Fundamentals of logic   1
Fundamentals of logic 1
 
DMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptxDMS UNIT-1 ppt.pptx
DMS UNIT-1 ppt.pptx
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
BARSA-PRESENTATION.pptx
BARSA-PRESENTATION.pptxBARSA-PRESENTATION.pptx
BARSA-PRESENTATION.pptx
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
DS Lecture 2.ppt
DS Lecture 2.pptDS Lecture 2.ppt
DS Lecture 2.ppt
 
Logical arguments and its computer applications.
Logical arguments and its computer applications.Logical arguments and its computer applications.
Logical arguments and its computer applications.
 
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
Disrete mathematics and_its application_by_rosen _7th edition_lecture_1
 
Logic - Logical Propositions
Logic - Logical Propositions Logic - Logical Propositions
Logic - Logical Propositions
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
Chapter1p1
Chapter1p1Chapter1p1
Chapter1p1
 
Tablas de Verdad
Tablas de VerdadTablas de Verdad
Tablas de Verdad
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
 

Último

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxiammrhaywood
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024Janet Corral
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...fonyou31
 
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
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...PsychoTech Services
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 

Último (20)

SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
General AI for Medical Educators April 2024
General AI for Medical Educators April 2024General AI for Medical Educators April 2024
General AI for Medical Educators April 2024
 
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
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
Ecosystem Interactions Class Discussion Presentation in Blue Green Lined Styl...
 
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
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 

Logic parti

  • 2. PROPOSITIONAL LOGIC l Proposition l declarative statement that is either true or false, but not both l the following statements are propositions: l The square root of 2 is irrational. l In the year 2010, more Filipinos will go to Canada. l -5 < 75 l the following statements are NOT propositions: l What did you say? l This sentence is false. l x = 6
  • 3. PROPOSITIONAL LOGIC l Notation l atomic propositions l capital letters l compound propositions l atomic propositions with logical connectives l defined via truth tables l truth values of propositions l 1 or T (true) l 0 or F (false)
  • 4. LOGICAL CONNECTIVES Operator Symbol Usage Negation ¬ not Conjunction ∧ and Disjunction ∨ or Conditional → if, then Biconditional ↔ iff
  • 5. NEGATION l turns a false proposition to true and turns a true proposition to false l truth table P ¬ P 1 0 0 1 l example l P: 10 is divisible by 2. l ¬ P: 10 is not divisible by 2.
  • 6. CONJUNCTION l truth table P Q P ∧ Q 1 1 1 1 0 0 0 1 0 0 0 0
  • 7. CONJUNCTION l examples l 6 < 7 and 7 < 8 l 2*4 = 16 and a quart is larger than a liter. l P: Barrack Obama is the American president. Q: Benigno Aquino III is the Filipino president. R: Corazon Aquino was an American president. P ∧ Q P ∧ R R ∧ Q
  • 8. DISJUNCTION l truth table P Q P ∨ Q 1 1 1 1 0 1 0 1 1 0 0 0
  • 9. DISJUNCTION l examples l 6 < 7 or Venus is smaller than earth. l 2*4 = 16 or a quart is larger than a liter. l P: Slater Young is a millionaire. Q: Lucio Tan is a billionaire R: Steve Jobs was a billionaire. P ∨ Q P ∨ R R ∨ Q
  • 10. CONDITIONAL/IMPLICATION l P is the hypothesis or premise l Q is the conclusion l truth table P Q P → Q 1 1 1 1 0 0 0 1 1 0 0 1
  • 11. CONDITIONAL/IMPLICATION l other ways to express P → Q: l If P then Q l P only if Q l P is sufficient for Q l Q if P l Q whenever P l Q is necessary for P
  • 12. CONDITIONAL/IMPLICATION l examples: l If triangle ABC is isosceles, then the base angles A and B are equal. l 1+2 = 3 implies that 1 < 0. l If the sun shines tomorrow, I will play basketball. l If you get 100 in the final exam, then you will pass the course. l If 0 = 1, then 3 = 9.
  • 13. BICONDITIONAL l logically equivalent to P → Q ∧ Q → P l truth table P Q P ↔ Q 1 1 1 1 0 0 0 1 0 0 0 1
  • 14. BICONDITIONAL l examples l A rectangle is a square if and only if its diagonals are perpendicular. l 5 + 6 = 6 if and only if 7 + 1 = 10.
  • 15. OTHER CONCEPTS l contrapositive l ¬ Q → ¬ P contrapositive of P → Q l ¬ Q → ¬ P is equivalent to P → Q l inverse l ¬ P → ¬ Q is the inverse of P → Q l P → Q is not equivalent to its inverse l converse l Q → P is the converse of P → Q
  • 16. OTHER CONCEPTS l types of propositional forms l tautology – a proposition that is always true under all possible combinations of truth values for all component propositions l contradiction – a proposition that is always false under all possible combinations of truth values for all component propositions l contingency – a proposition that is neither a tautology nor a contradiction
  • 17. SAMPLE TRUTH TABLES P Q P ∧ Q (P ∧ Q) → P 1 1 1 1 1 0 0 1 0 1 0 1 0 0 0 1 (P ∧ Q) → P
  • 18. SAMPLE TRUTH TABLES P ¬ P P ∧ ¬ P 1 0 0 0 1 0 P ∧ ¬ P
  • 19. SAMPLE TRUTH TABLES P Q P ∨ Q (P ∨ Q )→ P 1 1 1 1 1 0 1 1 0 1 1 0 0 0 0 1 (P ∨ Q) → P
  • 20. SAMPLE TRUTH TABLES P Q P ↔ Q P ∧ Q ¬ P ∧¬ Q (P ∧ Q) ∨ (¬ P ∧¬ Q) 1 1 1 1 0 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 1 1 Show that (P ↔ Q) ↔(( P ∧ Q) ∨ (¬ P ∧¬ Q))
  • 21. Equivalent Propositions (Logical Equivalence) l When are two propositions equivalent? Suppose P and Q are compound propostions, P and Q are equivalent if the truth value of P is always equal to the truth value of Q for all the permutation of truth values to the component propositions
  • 22. Equivalent Propositions (Logical Equivalence) l Suppose P is equivalent to Q. P may be used to replace Q or vice versa. l The Rules of Replacement are equivalent propositions(Logically equivalent propositions) l The Rules of Replacement are used to simplify a proposition (Deriving a proposition equivalent to a given proposition)
  • 23. Rules of Replacement 1. Idempotence P ≡ ( P ∨ P ) , P ≡ ( P ∧ P ) 2. Commutativity ( P ∨ Q ) ≡ ( Q ∨ P ), ( P ∧ Q ) ≡ ( Q ∧ P ) 3. Associativity, ( P ∨ Q ) ∨ R ≡ P ∨ ( Q ∨ R ), ( P ∧ Q ) ∧ R ≡ P ∧ ( Q ∧ R ) 4. De Morgan’s Laws ¬ ( P ∨ Q ) ≡ ¬P ∧ ¬Q, ¬ ( P ∧ Q ) ≡ ¬P ∨ ¬Q
  • 24. Rules of Replacement 5. Distributivity of ∧ over ∨ P ∧ ( Q ∨ R ) ≡ ( P ∧ Q ) ∨ ( P ∧ R ) 6. Distributivity of ∨ over ∧ P ∨ ( Q ∧ R ) ≡ ( P ∨ Q ) ∧ ( P ∨ R ) 7. Double Negation ¬ (¬ P) ≡ P 8. Material Implication ( P ⇒ Q ) ≡ (¬ P ∨ Q ) 9. Material Equivalence ( P ⇔ Q ) ≡ ( P ⇒ Q ) ∧ ( Q⇒P )
  • 25. Rules of Replacement 10. Exportation [ ( P ∧ Q ) ⇒ R ] ≡ [ P ⇒ ( Q ⇒ R ) ] 11. Absurdity [ ( P ⇒ Q ) ∧ ( P ⇒ ¬ Q )] ≡ ¬ P 12. Contrapositive ( P ⇒ Q ) ≡ (¬ Q ⇒ ¬P )
  • 26. Rules of Replacement 13. Identities P ∨ 1 ≡ 1 P ∧ 1 ≡ P P ∨ 0 ≡ P P ∧ 0 ≡ 0 P ∨ ¬P ≡ 1 P ∧ ¬P ≡ 0 ¬0 ≡ 1 ¬1 ≡ 0