SlideShare a Scribd company logo
Discrete
Structures
Abdur Rehman Usmani
03419019922
Why is it
o“Discrete” (≠ “discreet”!) - Composed of distinct, separable parts.
o“Structures” - objects built up from simpler objects according to a definite pattern.
Why it is important
o Provides mathematical foundation for computer science courses such as
o data structures, algorithms, relational database theory, automata theory and
o formal languages, compiler design, and cryptography,
o mathematics courses such as linear and abstract algebra, probability, logic and set
theory, and number theory.
What it does
o Describes processes that consist of a sequence of individual steps.
o Helps students to develop the ability to think abstractly.
Books
Discrete Mathematics and Its
Applications
by Kenneth H. Rosen.
6th edition, McGraw Hill
Publisher.
Discrete Mathematics
with Applications
by Susanna S.Epp
4th edition, McGraw Hill
Publisher.
ESSENTIAL TOPICS TO BE COVERED:
o Functions, relations and sets
o Basic logic
o Proof techniques
o Basics of counting
o Graphs and trees
o Recursion
Logic
oCrucial for mathematical reasoning
oImportant for program design
oUsed for designing electronic circuitry
o(Propositional )Logic is a system based on propositions.
oA proposition is a (declarative) statement that is either true or false (not both).
oWe say that the truth value of a proposition is either true (T) or false (F).
oCorresponds to 1 and 0 in digital circuits
The Statement/Proposition Game
“Elephants are bigger than mice.”
Is this a statement? yes
Is this a proposition? yes
What is the truth value
of the proposition? true
The Statement/Proposition Game
“520 < 111”
Is this a statement? yes
Is this a proposition? yes
What is the truth value
of the proposition? false
The Statement/Proposition Game
“y > 5”
Is this a statement? yes
Is this a proposition? no
Its truth value depends on the value of y, but this
value is not specified.
We call this type of statement a propositional
function or open sentence.
The Statement/Proposition Game
“Today is January 27 and 99 < 5.”
Is this a statement? yes
Is this a proposition? yes
What is the truth value
of the proposition? false
The Statement/Proposition Game
“Please do not fall asleep.”
Is this a statement? no
Is this a proposition? no
Only statements can be propositions.
It’s a request.
The Statement/Proposition Game
“If the moon is made of cheese,
then I will be rich.”
Is this a statement? yes
Is this a proposition? yes
What is the truth value
of the proposition? probably true
The Statement/Proposition Game
“x < y if and only if y > x.”
Is this a statement? yes
Is this a proposition? yes
What is the truth value
of the proposition? true
… because its truth value does
not depend on specific values
of x and y.
Combining Propositions
As we have seen in the previous examples, one or more propositions can
be combined to form a single compound proposition.
We formalize this by denoting propositions with letters such as p, q, r, s,
and introducing several logical operators or logical connectives.
Logical Operators (Connectives)
We will examine the following logical operators:
• Negation (NOT, )
• Conjunction (AND, )
• Disjunction (OR, )
• Exclusive-or (XOR,  )
• Implication (if – then,  )
• Biconditional (if and only if,  )
Truth tables can be used to show how these operators can combine
propositions to compound propositions.
Negation (NOT)
Unary Operator, Symbol: 
P  P
true (T) false (F)
false (F) true (T)
Conjunction (AND)
Binary Operator, Symbol: 
P Q P Q
T T T
T F F
F T F
F F F
Disjunction (OR)
Binary Operator, Symbol: 
P Q P  Q
T T T
T F T
F T T
F F F
Connectives
Let p=“It rained last night”,
q=“The sprinklers came on last night,”
r=“The lawn was wet this morning.”
Translate each of the following into English:
¬p = “It didn’t rain last night.”
r ∧ ¬p =“The lawn was wet this morning,
and it didn’t rain last night.”
¬ r ∨ p ∨ q =“Either the lawn wasn’t wet this morning, or
it rained last night, or the sprinklers came on last night.”
Connectives
Let p= “It is hot”
q=““It is sunny”
1. It is not hot but it is sunny.
2. It is neither hot nor sunny.
Solution
1. ⌐p∧q
2. ⌐p∧ ⌐q
Exclusive Or (XOR)
Binary Operator, Symbol: 
P Q PQ
T T F
T F T
F T T
F F F
• p = “I will earn an A in this course,”
• q = “I will drop this course,”
• p ⊕ q = “I will either earn an A in this
course, or I will drop it (but not both!)”
• True when exactly one of p and q is
true and is false otherwise.
Intro to disceret structure

More Related Content

Similar to Intro to disceret structure

Dscrete structure
Dscrete  structureDscrete  structure
Dscrete structure
Abdur Rehman
 
1. Introduction to math logic.pptx
1. Introduction to math logic.pptx1. Introduction to math logic.pptx
1. Introduction to math logic.pptx
ssuserabc12e
 
CSE680-17NP-Complete.pptx
CSE680-17NP-Complete.pptxCSE680-17NP-Complete.pptx
CSE680-17NP-Complete.pptx
AjayPratap828815
 
Propositional logic in Discretes tructures.pptx
Propositional logic in Discretes tructures.pptxPropositional logic in Discretes tructures.pptx
Propositional logic in Discretes tructures.pptx
ShaukatAliChaudhry1
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptx
PriyalMayurManvar
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
Joey Valdriz
 
DIGITAL TEXT BOOK
DIGITAL TEXT BOOKDIGITAL TEXT BOOK
DIGITAL TEXT BOOK
bintu55
 
discrete structures and their introduction
discrete structures and their introductiondiscrete structures and their introduction
discrete structures and their introduction
ZenLooper
 
logic, preposition etc
logic, preposition etclogic, preposition etc
logic, preposition etc
Abdur Rehman
 
4535092.ppt
4535092.ppt4535092.ppt
4535092.ppt
ntabdelnaiem
 
Godels First Incompleteness Theorem
Godels First Incompleteness TheoremGodels First Incompleteness Theorem
Godels First Incompleteness Theorem
mmanning02474
 
Logic.pptx
Logic.pptxLogic.pptx
Logic.pptx
NathanielRapanut2
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptx
Ravind8
 
Lecture 2-cs648
Lecture 2-cs648Lecture 2-cs648
Lecture 2-cs648
Rajiv Omar
 
lect14-semantics.ppt
lect14-semantics.pptlect14-semantics.ppt
lect14-semantics.ppt
RichardBobisSanAnton
 
Why machines can't think (logically)
Why machines can't think (logically)Why machines can't think (logically)
Why machines can't think (logically)
Andre Vellino
 
Dm1
Dm1Dm1
DISMATH_Part1
DISMATH_Part1DISMATH_Part1
DISMATH_Part1
Melvin Cabatuan
 
The tractability of some combinatorial decision/optimisation problems in the ...
The tractability of some combinatorial decision/optimisation problems in the ...The tractability of some combinatorial decision/optimisation problems in the ...
The tractability of some combinatorial decision/optimisation problems in the ...
Mickey Boz
 
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
 

Similar to Intro to disceret structure (20)

Dscrete structure
Dscrete  structureDscrete  structure
Dscrete structure
 
1. Introduction to math logic.pptx
1. Introduction to math logic.pptx1. Introduction to math logic.pptx
1. Introduction to math logic.pptx
 
CSE680-17NP-Complete.pptx
CSE680-17NP-Complete.pptxCSE680-17NP-Complete.pptx
CSE680-17NP-Complete.pptx
 
Propositional logic in Discretes tructures.pptx
Propositional logic in Discretes tructures.pptxPropositional logic in Discretes tructures.pptx
Propositional logic in Discretes tructures.pptx
 
Logic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptxLogic in Computer Science Unit 2 (1).pptx
Logic in Computer Science Unit 2 (1).pptx
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
DIGITAL TEXT BOOK
DIGITAL TEXT BOOKDIGITAL TEXT BOOK
DIGITAL TEXT BOOK
 
discrete structures and their introduction
discrete structures and their introductiondiscrete structures and their introduction
discrete structures and their introduction
 
logic, preposition etc
logic, preposition etclogic, preposition etc
logic, preposition etc
 
4535092.ppt
4535092.ppt4535092.ppt
4535092.ppt
 
Godels First Incompleteness Theorem
Godels First Incompleteness TheoremGodels First Incompleteness Theorem
Godels First Incompleteness Theorem
 
Logic.pptx
Logic.pptxLogic.pptx
Logic.pptx
 
Drinkfromme.pptx
Drinkfromme.pptxDrinkfromme.pptx
Drinkfromme.pptx
 
Lecture 2-cs648
Lecture 2-cs648Lecture 2-cs648
Lecture 2-cs648
 
lect14-semantics.ppt
lect14-semantics.pptlect14-semantics.ppt
lect14-semantics.ppt
 
Why machines can't think (logically)
Why machines can't think (logically)Why machines can't think (logically)
Why machines can't think (logically)
 
Dm1
Dm1Dm1
Dm1
 
DISMATH_Part1
DISMATH_Part1DISMATH_Part1
DISMATH_Part1
 
The tractability of some combinatorial decision/optimisation problems in the ...
The tractability of some combinatorial decision/optimisation problems in the ...The tractability of some combinatorial decision/optimisation problems in the ...
The tractability of some combinatorial decision/optimisation problems in the ...
 
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
 

More from Abdur Rehman

Financial accounting
Financial accountingFinancial accounting
Financial accounting
Abdur Rehman
 
Valid &amp; invalid arguments
Valid &amp; invalid argumentsValid &amp; invalid arguments
Valid &amp; invalid arguments
Abdur Rehman
 
Sets
SetsSets
Sequences
SequencesSequences
Sequences
Abdur Rehman
 
Recursion
RecursionRecursion
Recursion
Abdur Rehman
 
Queue
QueueQueue
Quantification
QuantificationQuantification
Quantification
Abdur Rehman
 
Proving existential statements
Proving existential statementsProving existential statements
Proving existential statements
Abdur Rehman
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proof
Abdur Rehman
 
Proofs by contraposition
Proofs by contrapositionProofs by contraposition
Proofs by contraposition
Abdur Rehman
 
Laws in disceret
Laws in disceretLaws in disceret
Laws in disceret
Abdur Rehman
 
Constructing circuits for boolean expressions(gate)
Constructing circuits for boolean expressions(gate)Constructing circuits for boolean expressions(gate)
Constructing circuits for boolean expressions(gate)
Abdur Rehman
 
Application of bases
Application of basesApplication of bases
Application of bases
Abdur Rehman
 
Truth table
Truth tableTruth table
Truth table
Abdur Rehman
 
Dst lec3
Dst lec3Dst lec3
Dst lec3
Abdur Rehman
 

More from Abdur Rehman (15)

Financial accounting
Financial accountingFinancial accounting
Financial accounting
 
Valid &amp; invalid arguments
Valid &amp; invalid argumentsValid &amp; invalid arguments
Valid &amp; invalid arguments
 
Sets
SetsSets
Sets
 
Sequences
SequencesSequences
Sequences
 
Recursion
RecursionRecursion
Recursion
 
Queue
QueueQueue
Queue
 
Quantification
QuantificationQuantification
Quantification
 
Proving existential statements
Proving existential statementsProving existential statements
Proving existential statements
 
Method of direct proof
Method of direct proofMethod of direct proof
Method of direct proof
 
Proofs by contraposition
Proofs by contrapositionProofs by contraposition
Proofs by contraposition
 
Laws in disceret
Laws in disceretLaws in disceret
Laws in disceret
 
Constructing circuits for boolean expressions(gate)
Constructing circuits for boolean expressions(gate)Constructing circuits for boolean expressions(gate)
Constructing circuits for boolean expressions(gate)
 
Application of bases
Application of basesApplication of bases
Application of bases
 
Truth table
Truth tableTruth table
Truth table
 
Dst lec3
Dst lec3Dst lec3
Dst lec3
 

Recently uploaded

Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
RAHUL
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
Celine George
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 

Recently uploaded (20)

Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UPLAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
LAND USE LAND COVER AND NDVI OF MIRZAPUR DISTRICT, UP
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
How to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 InventoryHow to Setup Warehouse & Location in Odoo 17 Inventory
How to Setup Warehouse & Location in Odoo 17 Inventory
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 

Intro to disceret structure

  • 2. Why is it o“Discrete” (≠ “discreet”!) - Composed of distinct, separable parts. o“Structures” - objects built up from simpler objects according to a definite pattern.
  • 3. Why it is important o Provides mathematical foundation for computer science courses such as o data structures, algorithms, relational database theory, automata theory and o formal languages, compiler design, and cryptography, o mathematics courses such as linear and abstract algebra, probability, logic and set theory, and number theory.
  • 4. What it does o Describes processes that consist of a sequence of individual steps. o Helps students to develop the ability to think abstractly.
  • 5. Books Discrete Mathematics and Its Applications by Kenneth H. Rosen. 6th edition, McGraw Hill Publisher. Discrete Mathematics with Applications by Susanna S.Epp 4th edition, McGraw Hill Publisher.
  • 6. ESSENTIAL TOPICS TO BE COVERED: o Functions, relations and sets o Basic logic o Proof techniques o Basics of counting o Graphs and trees o Recursion
  • 7. Logic oCrucial for mathematical reasoning oImportant for program design oUsed for designing electronic circuitry o(Propositional )Logic is a system based on propositions. oA proposition is a (declarative) statement that is either true or false (not both). oWe say that the truth value of a proposition is either true (T) or false (F). oCorresponds to 1 and 0 in digital circuits
  • 8. The Statement/Proposition Game “Elephants are bigger than mice.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? true
  • 9. The Statement/Proposition Game “520 < 111” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? false
  • 10. The Statement/Proposition Game “y > 5” Is this a statement? yes Is this a proposition? no Its truth value depends on the value of y, but this value is not specified. We call this type of statement a propositional function or open sentence.
  • 11. The Statement/Proposition Game “Today is January 27 and 99 < 5.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? false
  • 12. The Statement/Proposition Game “Please do not fall asleep.” Is this a statement? no Is this a proposition? no Only statements can be propositions. It’s a request.
  • 13. The Statement/Proposition Game “If the moon is made of cheese, then I will be rich.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? probably true
  • 14. The Statement/Proposition Game “x < y if and only if y > x.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? true … because its truth value does not depend on specific values of x and y.
  • 15. Combining Propositions As we have seen in the previous examples, one or more propositions can be combined to form a single compound proposition. We formalize this by denoting propositions with letters such as p, q, r, s, and introducing several logical operators or logical connectives.
  • 16. Logical Operators (Connectives) We will examine the following logical operators: • Negation (NOT, ) • Conjunction (AND, ) • Disjunction (OR, ) • Exclusive-or (XOR,  ) • Implication (if – then,  ) • Biconditional (if and only if,  ) Truth tables can be used to show how these operators can combine propositions to compound propositions.
  • 17. Negation (NOT) Unary Operator, Symbol:  P  P true (T) false (F) false (F) true (T)
  • 18. Conjunction (AND) Binary Operator, Symbol:  P Q P Q T T T T F F F T F F F F
  • 19. Disjunction (OR) Binary Operator, Symbol:  P Q P  Q T T T T F T F T T F F F
  • 20. Connectives Let p=“It rained last night”, q=“The sprinklers came on last night,” r=“The lawn was wet this morning.” Translate each of the following into English: ¬p = “It didn’t rain last night.” r ∧ ¬p =“The lawn was wet this morning, and it didn’t rain last night.” ¬ r ∨ p ∨ q =“Either the lawn wasn’t wet this morning, or it rained last night, or the sprinklers came on last night.”
  • 21. Connectives Let p= “It is hot” q=““It is sunny” 1. It is not hot but it is sunny. 2. It is neither hot nor sunny. Solution 1. ⌐p∧q 2. ⌐p∧ ⌐q
  • 22. Exclusive Or (XOR) Binary Operator, Symbol:  P Q PQ T T F T F T F T T F F F • p = “I will earn an A in this course,” • q = “I will drop this course,” • p ⊕ q = “I will either earn an A in this course, or I will drop it (but not both!)” • True when exactly one of p and q is true and is false otherwise.