SlideShare a Scribd company logo
Propositional Logic
By
Mamata Pandey
Proposition
 A proposition (or statement) is a
declarative statement which is true or
false, but not both.
 Following statements are propositions
◦ Ice floats in water.
◦ 2 + 2 = 4
◦ China is in Europe
 Following statements are not
propositions
◦ Where are you going?
Compound and Primitive
Propositions
 Compound propositions are
composed of two or more sub-
propositions and various connectives
or logical operators (eg. And, or,
not…)
◦ Ex: Roses are red and violets are blue
 If a proposition cannot be broken into
simpler propositions, it is called
primitive preposition.
◦ Ex: it will rain
Truth Table
 A compound proposition can be denoted as P(p, q, . . .)
denote an expression constructed from logical variables
p, q, . . ., which take on the value TRUE (T) or FALSE (F),
and the logical connectives ∧, ∨, and ¬ (and others
discussed subsequently).
 The main property of a proposition P(p, q, . . .) is that its
truth value depends exclusively upon the truth values of
its variables, that is, the truth value of a proposition is
known once the truth value of each of its variables is
known.
 A simple concise way to show this relationship is
through a truth table.
 With n variables there are 2n rows, each with unique
combination of T and F values of variables and
corresponding truth value for proposition P.
Basic Logical Operations
(Logical Connectives)
 Conjunction, p ∧ q
 Disjunction, p ∨ q
 Negation, ¬p
 Implication, p → q
 Equivalence, p ↔ q
Conjunction, p ∧ q
 Any two propositions p, q can be
combined by the word “and” to form a
compound proposition called the
conjunction of the original
propositions.
 Symbolically, p ∧ q
 p ∧ q is true if both
p and q are true,
otherwise it is false.
Disjunction, p ∨ q
 Any two propositions can be combined
by the word “or” to form a compound
proposition called the disjunction of
the original propositions.
 Symbolically, p ∨ q
 p ∨ q is false if
both p and q are false,
otherwise it is true.
Negation, ¬p
 Given any proposition p, another
proposition, called the negation of p,
can be formed by inserting the word
“not” before p .
 Symbolically, the negation of p, read
“not p,” is denoted by ¬p or ~p
 ¬p is true if p is false and
¬p is false if p is true
Implication, p → q
 p → q is false only when the first part
p is true and the second part q is
false.
 Accordingly, when p is false, the
conditional p → q is true regardless of
the truth value of q
 i.e. If p then q.
 p → q is also called
conditional statement
Equivalence, p ↔ q
 p ↔ q is true whenever p and q have
the same truth values and false
otherwise.
 i.e. p if and only if q
 p ↔ q is also called biconditional
statement
Tautologies And
Contradictions
 A proposition P(p, q, . . .) contain only T in the last
column of its truth tables i.e. it is true for any truth
values of their variables. Such propositions are
called tautologies.
 A proposition P(p, q, . . .) is called a contradiction if
it contains only F in the last column of its truth table
i.e. if it is false for any truth values of its variables.
Tautology Contradiction
Algebraic Properties of
Propositions
Properties of implications
Propositional Function P(x)
 Let A be a given set. A propositional function
is an open sentence or condition defined on
expressed as P(x) which has the property
that p(a) is true or false for each a ∈ A.
 P(x) becomes a statement with a truth value
whenever any element a ∈ A is substituted for
the variable x.
 The set A is called the domain of P(x), and
 the set Tp of all elements of A for which P(a)
is true is called the truth set of P(x).
Tp = {x | x ∈ A, P(x) is true} , or
Tp = {x | P(x)}
Propositional Function
P(x):Example
 propositional function P(x) defined on
the set N of positive integers such
that
 P(x) be “x + 2 > 7” , then
 Tp={x| x ꞓ N and x + 2 > 7}
 i.e. truth set Tp= {6, 7, 8, . . .}
consisting of all integers greater than
5.
Universal Quantifiers
 The symbol ∀ which reads “for all” or “for
every” is called the universal quantifier.
 We can define a proposition function as
(∀x ∈ A)p(x) or ∀x p(x)
 If {x| x ∈ A, p(x)} = Athen ∀x p(x) is true;
otherwise, ∀x p(x) is false
 Example:
◦ The proposition (∀n∈ N)(n + 4 > 3) is true
since {n | n + 4 > 3} = {1, 2, 3, . . .} = N.
◦ The proposition (∀n∈ N)(n + 2 > 8) is false
since {n | n + 2 > 8} = {7, 8, . . .} = N
Existential Quantifier
 The symbol ∃ which reads “there exists”
or “for some” or “for at least one” is
called the existential quantifier
 We can define a propositional function
as (∃x ∈ A)p(x) or ∃x, p(x)
 If {x | p(x)} ≠ ф then ∃x p(x) is true;
otherwise, ∃x p(x) is false.
 Example:
◦ The proposition (∃n ∈ N)(n + 4 < 7) is true
since {n | n + 4 < 7} = {1, 2} = .
◦ The proposition (∃n ∈ N)(n + 6 < 4) is false
since {n | n + 6 < 4} = . x) or ∃x, p(x) (4.3)
Properties of Quantifiers
Well Formed Formula(WFF)
 WFF has following properties
◦ Every primitive proposition or atomic
statement is a WFF
◦ If proposition p is WFF then ¬p is also
WFF
◦ if p and q are WFF then p ∧ q, p ∨ q and
p → q are WFF
Example 1:
 Prove that : p → q ≡ ¬p ∨ q
 From above truth tables LHS= RHS
proved.
LHS: p → q RHS: ¬p ∨ q
Example 2:
 Prove that: (p → q)↔(¬q → ¬ p)
 From above truth table
(p → q)↔(¬q → ¬ p) is tautology ,
hence proved.
Arguments
 An argument is an assertion that a given set
of propositions P1, P2, . . . , Pn, called
premises or hypotheses, yields (has a
consequence) another proposition Q, called
the conclusion.
 Argument is denoted by P1, P2, . . . , Pn ͱ Q
 An argument P1, P2, . . . , Pn ͱ Q is said to
be valid if Q is true whenever all the premises
P1, P2, . . . , Pn are true.
 An argument which is not valid is called
fallacy.
 The argument P1, P2, . . . , Pn ͱ Q is valid if
and only if the proposition (P1∧P2 . . .∧Pn) →
Q is a tautology.
 Argument p1, p2, . . . , pn ͱ q can also be
written as
 Validity depends on only form of
statement not on the truth values of
statements
 Validity sates “if all pi’s are true then q is
true” not that “q is true”
Rules of Inference
 Each of following is Tautology
Arguments based on
tautologies
 Rules of inference are used to validate
arguments
 For example following tautology,
“if p implies q and q implies r then p implies r”
i.e.
((p → q) ∧(q →r)) →(p →r), or
Can be used to prove that an argument is
valid
Example 3
 Prove following argument is valid
 Let p = “He is a bachelor,” q = “He is
unhappy” and r = “He dies young;
 S1: p →q
 S2:q →r
 S: p →r
 Hence from rule of inference this is valid
argument
Example 4
 Prove if following argument is valid
Example 5
 Let n be an integer. Prove that n2 is
odd if n is odd.
 It solved by proof by contradiction
using tautology
(p → q)↔(¬q → ¬ p)

More Related Content

What's hot

Translating English to Propositional Logic
Translating English to Propositional LogicTranslating English to Propositional Logic
Translating English to Propositional LogicJanet Stemwedel
 
mathematical induction
mathematical inductionmathematical induction
mathematical inductionankush_kumar
 
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
Laguna State Polytechnic University
 
Discrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional LogicDiscrete Mathematics - Propositional Logic
Discrete Mathematics - Propositional Logic
University 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
 
Counting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probabilityCounting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probability
SURBHI SAROHA
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
University of Potsdam
 
CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional EquivalencesCMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional Equivalences
allyn joy calcaben
 
Predicates and quantifiers
Predicates and quantifiersPredicates and quantifiers
Predicates and quantifiers
Istiak Ahmed
 
Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inference
raksharao
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategy
allyn joy calcaben
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
blaircomp2003
 
5.2 Strong Induction
5.2 Strong Induction5.2 Strong Induction
5.2 Strong Inductionshowslidedump
 
Formal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical EquivalenceFormal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical Equivalence
Laguna State Polytechnic University
 
Unit I discrete mathematics lecture notes
Unit I  discrete mathematics lecture notesUnit I  discrete mathematics lecture notes
Unit I discrete mathematics lecture notes
GIRIM8
 
Propositional logic
Propositional logicPropositional logic
Propositional logicRushdi Shams
 
Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)
Abdullah Al Amin
 
CMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & QuantifiersCMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & Quantifiers
allyn joy calcaben
 
Truth tables
Truth tablesTruth tables
Truth tableswalkerlj
 

What's hot (20)

Translating English to Propositional Logic
Translating English to Propositional LogicTranslating English to Propositional Logic
Translating English to Propositional Logic
 
mathematical induction
mathematical inductionmathematical induction
mathematical induction
 
Recursion DM
Recursion DMRecursion DM
Recursion DM
 
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
 
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 د. خالد بكرو
 
Counting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probabilityCounting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probability
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional EquivalencesCMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional Equivalences
 
Predicates and quantifiers
Predicates and quantifiersPredicates and quantifiers
Predicates and quantifiers
 
Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inference
 
CMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and StrategyCMSC 56 | Lecture 5: Proofs Methods and Strategy
CMSC 56 | Lecture 5: Proofs Methods and Strategy
 
Mathematical Logic - Part 1
Mathematical Logic - Part 1Mathematical Logic - Part 1
Mathematical Logic - Part 1
 
5.2 Strong Induction
5.2 Strong Induction5.2 Strong Induction
5.2 Strong Induction
 
Formal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical EquivalenceFormal Logic - Lesson 5 - Logical Equivalence
Formal Logic - Lesson 5 - Logical Equivalence
 
Unit I discrete mathematics lecture notes
Unit I  discrete mathematics lecture notesUnit I  discrete mathematics lecture notes
Unit I discrete mathematics lecture notes
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)Propositional Logic (Descreate Mathematics)
Propositional Logic (Descreate Mathematics)
 
CMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & QuantifiersCMSC 56 | Lecture 3: Predicates & Quantifiers
CMSC 56 | Lecture 3: Predicates & Quantifiers
 
Truth tables
Truth tablesTruth tables
Truth tables
 

Similar to Propositional logic

logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
PradeeshSAI
 
Per3 logika&amp;pembuktian
Per3 logika&amp;pembuktianPer3 logika&amp;pembuktian
Per3 logika&amp;pembuktian
Evert Sandye Taasiringan
 
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
ssuser92109d
 
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
 
Logic&proof
Logic&proofLogic&proof
Logic&proof
Fathan Hakim
 
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
 
dm-logic.pdf
dm-logic.pdfdm-logic.pdf
dm-logic.pdf
TsegayeAndualem
 
Discrete math Truth Table
Discrete math Truth TableDiscrete math Truth Table
Discrete math Truth Table
University of Potsdam
 
Computer Organization and Assembly Language
Computer Organization and Assembly LanguageComputer Organization and Assembly Language
Computer Organization and Assembly Language
Raquel Mulles
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
endahnurfebriyanti
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
Suresh Ram
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.ppt
samalaramesh4
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
BindhuBhargaviTalasi
 
Lecture-3-and-4.pdf
Lecture-3-and-4.pdfLecture-3-and-4.pdf
Lecture-3-and-4.pdf
ssuserc478ac
 
lectures in prolog in order to advance in artificial intelligence
lectures in prolog in order to advance in artificial intelligencelectures in prolog in order to advance in artificial intelligence
lectures in prolog in order to advance in artificial intelligence
AlaaCHOUMANE
 
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsChapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
ProfSHananeel
 

Similar to Propositional logic (20)

logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
Per3 logika&amp;pembuktian
Per3 logika&amp;pembuktianPer3 logika&amp;pembuktian
Per3 logika&amp;pembuktian
 
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
20220818151924_PPT01 - The Logic of Compound and Quantitative Statement.pptx
 
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&proof
Logic&proofLogic&proof
Logic&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]
 
Logic
LogicLogic
Logic
 
dm-logic.pdf
dm-logic.pdfdm-logic.pdf
dm-logic.pdf
 
Discrete math Truth Table
Discrete math Truth TableDiscrete math Truth Table
Discrete math Truth Table
 
Dicrete structure
Dicrete structureDicrete structure
Dicrete structure
 
Slide subtopic 4
Slide subtopic 4Slide subtopic 4
Slide subtopic 4
 
Computer Organization and Assembly Language
Computer Organization and Assembly LanguageComputer Organization and Assembly Language
Computer Organization and Assembly Language
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
 
Basic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.pptBasic Connectives and Truth Tables.ppt
Basic Connectives and Truth Tables.ppt
 
Mathematical foundations of computer science
Mathematical foundations of computer scienceMathematical foundations of computer science
Mathematical foundations of computer science
 
Lecture-3-and-4.pdf
Lecture-3-and-4.pdfLecture-3-and-4.pdf
Lecture-3-and-4.pdf
 
lectures in prolog in order to advance in artificial intelligence
lectures in prolog in order to advance in artificial intelligencelectures in prolog in order to advance in artificial intelligence
lectures in prolog in order to advance in artificial intelligence
 
Chapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and ProofsChapter 1: The Foundations: Logic and Proofs
Chapter 1: The Foundations: Logic and Proofs
 

Recently uploaded

English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
Jayaprasanna4
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
gerogepatton
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
Kerry Sado
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
SupreethSP4
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
Massimo Talia
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Teleport Manpower Consultant
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
AafreenAbuthahir2
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
fxintegritypublishin
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
AJAYKUMARPUND1
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 

Recently uploaded (20)

English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
ethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.pptethical hacking-mobile hacking methods.ppt
ethical hacking-mobile hacking methods.ppt
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
Immunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary AttacksImmunizing Image Classifiers Against Localized Adversary Attacks
Immunizing Image Classifiers Against Localized Adversary Attacks
 
Hierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power SystemHierarchical Digital Twin of a Naval Power System
Hierarchical Digital Twin of a Naval Power System
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Runway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptxRunway Orientation Based on the Wind Rose Diagram.pptx
Runway Orientation Based on the Wind Rose Diagram.pptx
 
Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024Nuclear Power Economics and Structuring 2024
Nuclear Power Economics and Structuring 2024
 
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdfTop 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
Top 10 Oil and Gas Projects in Saudi Arabia 2024.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdfHybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
Hybrid optimization of pumped hydro system and solar- Engr. Abdul-Azeez.pdf
 
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
Pile Foundation by Venkatesh Taduvai (Sub Geotechnical Engineering II)-conver...
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 

Propositional logic

  • 2. Proposition  A proposition (or statement) is a declarative statement which is true or false, but not both.  Following statements are propositions ◦ Ice floats in water. ◦ 2 + 2 = 4 ◦ China is in Europe  Following statements are not propositions ◦ Where are you going?
  • 3. Compound and Primitive Propositions  Compound propositions are composed of two or more sub- propositions and various connectives or logical operators (eg. And, or, not…) ◦ Ex: Roses are red and violets are blue  If a proposition cannot be broken into simpler propositions, it is called primitive preposition. ◦ Ex: it will rain
  • 4. Truth Table  A compound proposition can be denoted as P(p, q, . . .) denote an expression constructed from logical variables p, q, . . ., which take on the value TRUE (T) or FALSE (F), and the logical connectives ∧, ∨, and ¬ (and others discussed subsequently).  The main property of a proposition P(p, q, . . .) is that its truth value depends exclusively upon the truth values of its variables, that is, the truth value of a proposition is known once the truth value of each of its variables is known.  A simple concise way to show this relationship is through a truth table.  With n variables there are 2n rows, each with unique combination of T and F values of variables and corresponding truth value for proposition P.
  • 5. Basic Logical Operations (Logical Connectives)  Conjunction, p ∧ q  Disjunction, p ∨ q  Negation, ¬p  Implication, p → q  Equivalence, p ↔ q
  • 6. Conjunction, p ∧ q  Any two propositions p, q can be combined by the word “and” to form a compound proposition called the conjunction of the original propositions.  Symbolically, p ∧ q  p ∧ q is true if both p and q are true, otherwise it is false.
  • 7. Disjunction, p ∨ q  Any two propositions can be combined by the word “or” to form a compound proposition called the disjunction of the original propositions.  Symbolically, p ∨ q  p ∨ q is false if both p and q are false, otherwise it is true.
  • 8. Negation, ¬p  Given any proposition p, another proposition, called the negation of p, can be formed by inserting the word “not” before p .  Symbolically, the negation of p, read “not p,” is denoted by ¬p or ~p  ¬p is true if p is false and ¬p is false if p is true
  • 9. Implication, p → q  p → q is false only when the first part p is true and the second part q is false.  Accordingly, when p is false, the conditional p → q is true regardless of the truth value of q  i.e. If p then q.  p → q is also called conditional statement
  • 10. Equivalence, p ↔ q  p ↔ q is true whenever p and q have the same truth values and false otherwise.  i.e. p if and only if q  p ↔ q is also called biconditional statement
  • 11. Tautologies And Contradictions  A proposition P(p, q, . . .) contain only T in the last column of its truth tables i.e. it is true for any truth values of their variables. Such propositions are called tautologies.  A proposition P(p, q, . . .) is called a contradiction if it contains only F in the last column of its truth table i.e. if it is false for any truth values of its variables. Tautology Contradiction
  • 14. Propositional Function P(x)  Let A be a given set. A propositional function is an open sentence or condition defined on expressed as P(x) which has the property that p(a) is true or false for each a ∈ A.  P(x) becomes a statement with a truth value whenever any element a ∈ A is substituted for the variable x.  The set A is called the domain of P(x), and  the set Tp of all elements of A for which P(a) is true is called the truth set of P(x). Tp = {x | x ∈ A, P(x) is true} , or Tp = {x | P(x)}
  • 15. Propositional Function P(x):Example  propositional function P(x) defined on the set N of positive integers such that  P(x) be “x + 2 > 7” , then  Tp={x| x ꞓ N and x + 2 > 7}  i.e. truth set Tp= {6, 7, 8, . . .} consisting of all integers greater than 5.
  • 16. Universal Quantifiers  The symbol ∀ which reads “for all” or “for every” is called the universal quantifier.  We can define a proposition function as (∀x ∈ A)p(x) or ∀x p(x)  If {x| x ∈ A, p(x)} = Athen ∀x p(x) is true; otherwise, ∀x p(x) is false  Example: ◦ The proposition (∀n∈ N)(n + 4 > 3) is true since {n | n + 4 > 3} = {1, 2, 3, . . .} = N. ◦ The proposition (∀n∈ N)(n + 2 > 8) is false since {n | n + 2 > 8} = {7, 8, . . .} = N
  • 17. Existential Quantifier  The symbol ∃ which reads “there exists” or “for some” or “for at least one” is called the existential quantifier  We can define a propositional function as (∃x ∈ A)p(x) or ∃x, p(x)  If {x | p(x)} ≠ ф then ∃x p(x) is true; otherwise, ∃x p(x) is false.  Example: ◦ The proposition (∃n ∈ N)(n + 4 < 7) is true since {n | n + 4 < 7} = {1, 2} = . ◦ The proposition (∃n ∈ N)(n + 6 < 4) is false since {n | n + 6 < 4} = . x) or ∃x, p(x) (4.3)
  • 19. Well Formed Formula(WFF)  WFF has following properties ◦ Every primitive proposition or atomic statement is a WFF ◦ If proposition p is WFF then ¬p is also WFF ◦ if p and q are WFF then p ∧ q, p ∨ q and p → q are WFF
  • 20. Example 1:  Prove that : p → q ≡ ¬p ∨ q  From above truth tables LHS= RHS proved. LHS: p → q RHS: ¬p ∨ q
  • 21. Example 2:  Prove that: (p → q)↔(¬q → ¬ p)  From above truth table (p → q)↔(¬q → ¬ p) is tautology , hence proved.
  • 22. Arguments  An argument is an assertion that a given set of propositions P1, P2, . . . , Pn, called premises or hypotheses, yields (has a consequence) another proposition Q, called the conclusion.  Argument is denoted by P1, P2, . . . , Pn ͱ Q  An argument P1, P2, . . . , Pn ͱ Q is said to be valid if Q is true whenever all the premises P1, P2, . . . , Pn are true.  An argument which is not valid is called fallacy.  The argument P1, P2, . . . , Pn ͱ Q is valid if and only if the proposition (P1∧P2 . . .∧Pn) → Q is a tautology.
  • 23.  Argument p1, p2, . . . , pn ͱ q can also be written as  Validity depends on only form of statement not on the truth values of statements  Validity sates “if all pi’s are true then q is true” not that “q is true”
  • 24. Rules of Inference  Each of following is Tautology
  • 25. Arguments based on tautologies  Rules of inference are used to validate arguments  For example following tautology, “if p implies q and q implies r then p implies r” i.e. ((p → q) ∧(q →r)) →(p →r), or Can be used to prove that an argument is valid
  • 26. Example 3  Prove following argument is valid  Let p = “He is a bachelor,” q = “He is unhappy” and r = “He dies young;  S1: p →q  S2:q →r  S: p →r  Hence from rule of inference this is valid argument
  • 27. Example 4  Prove if following argument is valid
  • 28. Example 5  Let n be an integer. Prove that n2 is odd if n is odd.  It solved by proof by contradiction using tautology (p → q)↔(¬q → ¬ p)