SlideShare une entreprise Scribd logo
1  sur  26
Télécharger pour lire hors ligne
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

Contenu connexe

Tendances

2.5.5 Perpendicular and Angle Bisectors
2.5.5 Perpendicular and Angle Bisectors2.5.5 Perpendicular and Angle Bisectors
2.5.5 Perpendicular and Angle Bisectorssmiller5
 
Strategic Intervention Material in Mathematics Grade 7
Strategic Intervention Material in Mathematics Grade 7Strategic Intervention Material in Mathematics Grade 7
Strategic Intervention Material in Mathematics Grade 7Arlene Callang
 
Illustrating Set Notation Using Venn Diagram
Illustrating Set Notation Using Venn DiagramIllustrating Set Notation Using Venn Diagram
Illustrating Set Notation Using Venn DiagramFree Math Powerpoints
 
Triangle Congruence (Introduction)
Triangle Congruence (Introduction)Triangle Congruence (Introduction)
Triangle Congruence (Introduction)Eduardo Gonzaga Jr.
 
Powerpoint on K-12 Mathematics Grade 7 Q1 (Fundamental Operations of Integer...
Powerpoint  on K-12 Mathematics Grade 7 Q1 (Fundamental Operations of Integer...Powerpoint  on K-12 Mathematics Grade 7 Q1 (Fundamental Operations of Integer...
Powerpoint on K-12 Mathematics Grade 7 Q1 (Fundamental Operations of Integer...Franz Jeremiah Ü Ibay
 
Fundamental counting principle powerpoint
Fundamental counting principle powerpointFundamental counting principle powerpoint
Fundamental counting principle powerpointmesmith1
 
Lesson plan on factoring polynomial with common monomial factor
Lesson plan on factoring polynomial with common monomial factorLesson plan on factoring polynomial with common monomial factor
Lesson plan on factoring polynomial with common monomial factorLorie Jane Letada
 
11.5 Independent and Dependent Events
11.5 Independent and Dependent Events11.5 Independent and Dependent Events
11.5 Independent and Dependent Eventssmiller5
 
Formal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Formal Logic - Lesson 4 - Tautology, Contradiction and ContingencyFormal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Formal Logic - Lesson 4 - Tautology, Contradiction and ContingencyLaguna State Polytechnic University
 
Congruence of Triangle
Congruence of TriangleCongruence of Triangle
Congruence of Triangleitutor
 
Math 10 Curriculum Guide
Math 10 Curriculum GuideMath 10 Curriculum Guide
Math 10 Curriculum Guideleybrigs
 
4 pics 1 word math version
4 pics 1 word   math version4 pics 1 word   math version
4 pics 1 word math versionGem Lamsen
 

Tendances (20)

2.5.5 Perpendicular and Angle Bisectors
2.5.5 Perpendicular and Angle Bisectors2.5.5 Perpendicular and Angle Bisectors
2.5.5 Perpendicular and Angle Bisectors
 
Cartesian plane
Cartesian planeCartesian plane
Cartesian plane
 
Strategic Intervention Material in Mathematics Grade 7
Strategic Intervention Material in Mathematics Grade 7Strategic Intervention Material in Mathematics Grade 7
Strategic Intervention Material in Mathematics Grade 7
 
Illustrating Set Notation Using Venn Diagram
Illustrating Set Notation Using Venn DiagramIllustrating Set Notation Using Venn Diagram
Illustrating Set Notation Using Venn Diagram
 
Sim grade 7
Sim grade 7Sim grade 7
Sim grade 7
 
Triangle Congruence (Introduction)
Triangle Congruence (Introduction)Triangle Congruence (Introduction)
Triangle Congruence (Introduction)
 
Special angles
Special anglesSpecial angles
Special angles
 
Kite.pptx
Kite.pptxKite.pptx
Kite.pptx
 
Powerpoint on K-12 Mathematics Grade 7 Q1 (Fundamental Operations of Integer...
Powerpoint  on K-12 Mathematics Grade 7 Q1 (Fundamental Operations of Integer...Powerpoint  on K-12 Mathematics Grade 7 Q1 (Fundamental Operations of Integer...
Powerpoint on K-12 Mathematics Grade 7 Q1 (Fundamental Operations of Integer...
 
Fundamental counting principle powerpoint
Fundamental counting principle powerpointFundamental counting principle powerpoint
Fundamental counting principle powerpoint
 
proving-triangles-are-congruent.ppt
proving-triangles-are-congruent.pptproving-triangles-are-congruent.ppt
proving-triangles-are-congruent.ppt
 
Solving Problems Using Venn Diagram
Solving Problems Using Venn DiagramSolving Problems Using Venn Diagram
Solving Problems Using Venn Diagram
 
Lesson plan on factoring polynomial with common monomial factor
Lesson plan on factoring polynomial with common monomial factorLesson plan on factoring polynomial with common monomial factor
Lesson plan on factoring polynomial with common monomial factor
 
11.5 Independent and Dependent Events
11.5 Independent and Dependent Events11.5 Independent and Dependent Events
11.5 Independent and Dependent Events
 
Formal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Formal Logic - Lesson 4 - Tautology, Contradiction and ContingencyFormal Logic - Lesson 4 - Tautology, Contradiction and Contingency
Formal Logic - Lesson 4 - Tautology, Contradiction and Contingency
 
Lesson plan
Lesson planLesson plan
Lesson plan
 
Congruence of Triangle
Congruence of TriangleCongruence of Triangle
Congruence of Triangle
 
Math 10 Curriculum Guide
Math 10 Curriculum GuideMath 10 Curriculum Guide
Math 10 Curriculum Guide
 
Area of a triangle
Area of a triangleArea of a triangle
Area of a triangle
 
4 pics 1 word math version
4 pics 1 word   math version4 pics 1 word   math version
4 pics 1 word math version
 

En vedette

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
 

En vedette (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
 

Similaire à 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
 

Similaire à 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
 

Dernier

ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4MiaBumagat1
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
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
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designMIPLM
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
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
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17Celine George
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYKayeClaireEstoconing
 
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
 

Dernier (20)

ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4ANG SEKTOR NG agrikultura.pptx QUARTER 4
ANG SEKTOR NG agrikultura.pptx QUARTER 4
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.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
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Keynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-designKeynote by Prof. Wurzer at Nordex about IP-design
Keynote by Prof. Wurzer at Nordex about IP-design
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
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
 
How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17How to Add Barcode on PDF Report in Odoo 17
How to Add Barcode on PDF Report in Odoo 17
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptxFINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
FINALS_OF_LEFT_ON_C'N_EL_DORADO_2024.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITYISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
ISYU TUNGKOL SA SEKSWLADIDA (ISSUE ABOUT SEXUALITY
 
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
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 

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