SlideShare una empresa de Scribd logo
1 de 26
Descargar para leer sin conexión
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

Más contenido relacionado

La actualidad más candente

Conditional and biconditional statements
Conditional and biconditional statementsConditional and biconditional statements
Conditional and biconditional statementsDannah Paquibot
 
Chapter 2: Rational Function
Chapter 2: Rational FunctionChapter 2: Rational Function
Chapter 2: Rational FunctionJovic Rullepa
 
Solving rational inequalities
Solving rational inequalitiesSolving rational inequalities
Solving rational inequalitiesrey castro
 
Solving rational equations
Solving rational equationsSolving rational equations
Solving rational equationschrystal_brinson
 
Solving logarithmic equations and inequalities
Solving logarithmic equations and inequalitiesSolving logarithmic equations and inequalities
Solving logarithmic equations and inequalitiesJomaizildjian
 
Factoring Non-Perfect Square Trinomial Lesson Plan
Factoring Non-Perfect Square Trinomial Lesson PlanFactoring Non-Perfect Square Trinomial Lesson Plan
Factoring Non-Perfect Square Trinomial Lesson PlanLorie Jane Letada
 
Quadratic inequalities
Quadratic inequalitiesQuadratic inequalities
Quadratic inequalitiesmstf mstf
 
Module on Relations in a function
Module on Relations in a functionModule on Relations in a function
Module on Relations in a functionjune eslao
 
Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Mohd. Noor Abdul Hamid
 
Representing Real-Life Situations Using Rational Function
Representing Real-Life Situations Using Rational FunctionRepresenting Real-Life Situations Using Rational Function
Representing Real-Life Situations Using Rational FunctionReimuel Bisnar
 
Solving quadratic equations
Solving quadratic equationsSolving quadratic equations
Solving quadratic equationssrobbins4
 
Rational Functions, Equations, and Inequalities.pptx
Rational Functions, Equations, and Inequalities.pptxRational Functions, Equations, and Inequalities.pptx
Rational Functions, Equations, and Inequalities.pptxJohnlery Guzman
 
The Fundamental Counting Principle
The Fundamental Counting PrincipleThe Fundamental Counting Principle
The Fundamental Counting PrincipleRon Eick
 
MIDTERM EXAM IN GENERAL MATHEMATICS.pptx
MIDTERM EXAM IN GENERAL MATHEMATICS.pptxMIDTERM EXAM IN GENERAL MATHEMATICS.pptx
MIDTERM EXAM IN GENERAL MATHEMATICS.pptxAlfredIntong2
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1blaircomp2003
 

La actualidad más candente (20)

Conditional and biconditional statements
Conditional and biconditional statementsConditional and biconditional statements
Conditional and biconditional statements
 
PRE- CALCULUS
PRE- CALCULUSPRE- CALCULUS
PRE- CALCULUS
 
Chapter 2: Rational Function
Chapter 2: Rational FunctionChapter 2: Rational Function
Chapter 2: Rational Function
 
Solving rational inequalities
Solving rational inequalitiesSolving rational inequalities
Solving rational inequalities
 
Solving rational equations
Solving rational equationsSolving rational equations
Solving rational equations
 
Solving logarithmic equations and inequalities
Solving logarithmic equations and inequalitiesSolving logarithmic equations and inequalities
Solving logarithmic equations and inequalities
 
Inequalities
InequalitiesInequalities
Inequalities
 
Remainder theorem
Remainder theoremRemainder theorem
Remainder theorem
 
Factoring Non-Perfect Square Trinomial Lesson Plan
Factoring Non-Perfect Square Trinomial Lesson PlanFactoring Non-Perfect Square Trinomial Lesson Plan
Factoring Non-Perfect Square Trinomial Lesson Plan
 
Quadratic inequalities
Quadratic inequalitiesQuadratic inequalities
Quadratic inequalities
 
Module on Relations in a function
Module on Relations in a functionModule on Relations in a function
Module on Relations in a function
 
Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor Introduction to Function, Domain and Range - Mohd Noor
Introduction to Function, Domain and Range - Mohd Noor
 
Representing Real-Life Situations Using Rational Function
Representing Real-Life Situations Using Rational FunctionRepresenting Real-Life Situations Using Rational Function
Representing Real-Life Situations Using Rational Function
 
Solving quadratic equations
Solving quadratic equationsSolving quadratic equations
Solving quadratic equations
 
Logic - Logical Propositions
Logic - Logical Propositions Logic - Logical Propositions
Logic - Logical Propositions
 
Rational Functions, Equations, and Inequalities.pptx
Rational Functions, Equations, and Inequalities.pptxRational Functions, Equations, and Inequalities.pptx
Rational Functions, Equations, and Inequalities.pptx
 
Parabola
ParabolaParabola
Parabola
 
The Fundamental Counting Principle
The Fundamental Counting PrincipleThe Fundamental Counting Principle
The Fundamental Counting Principle
 
MIDTERM EXAM IN GENERAL MATHEMATICS.pptx
MIDTERM EXAM IN GENERAL MATHEMATICS.pptxMIDTERM EXAM IN GENERAL MATHEMATICS.pptx
MIDTERM EXAM IN GENERAL MATHEMATICS.pptx
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 

Destacado

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
 

Destacado (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
 

Similar 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
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptsamalaramesh4
 

Similar 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
 
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
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.ppt
 

Último

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
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
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationRosabel UA
 
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
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
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
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
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
 
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
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsManeerUddin
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxleah joy valeriano
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 

Último (20)

ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.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
 
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
 
Activity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translationActivity 2-unit 2-update 2024. English translation
Activity 2-unit 2-update 2024. English translation
 
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...
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
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
 
ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
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
 
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
 
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
 
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
 
Food processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture honsFood processing presentation for bsc agriculture hons
Food processing presentation for bsc agriculture hons
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptxMusic 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
Music 9 - 4th quarter - Vocal Music of the Romantic Period.pptx
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 

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