Fall 2002 CMSC 203 - Discrete Structures 1
Let’s get started with...
Logic!
Fall 2002 CMSC 203 - Discrete Structures 2
Logic
• Crucial for mathematical reasoning
• Used for designing electronic circuitry
• Logic is a system based on propositions.
• A proposition is a statement that is either
true or false (not both).
• We say that the truth value of a proposition
is either true (T) or false (F).
• Corresponds to 1 and 0 in digital circuits
Fall 2002 CMSC 203 - Discrete Structures 3
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
Fall 2002 CMSC 203 - Discrete Structures 4
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
Fall 2002 CMSC 203 - Discrete Structures 5
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.
Fall 2002 CMSC 203 - Discrete Structures 6
The Statement/Proposition Game
“Today is January 1 and 99 < 5.”
Is this a statement? yes
Is this a proposition? yes
What is the truth value
of the proposition? false
Fall 2002 CMSC 203 - Discrete Structures 7
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.
Fall 2002 CMSC 203 - Discrete Structures 8
The Statement/Proposition Game
“If elephants were red,
they could hide in cherry trees.”
Is this a statement? yes
Is this a proposition? yes
What is the truth value
of the proposition? probably false
Fall 2002 CMSC 203 - Discrete Structures 9
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.
Fall 2002 CMSC 203 - Discrete Structures 10
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.
Fall 2002 CMSC 203 - Discrete Structures 11
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.
Fall 2002 CMSC 203 - Discrete Structures 12
Negation (NOT)
Unary Operator, Symbol: 
P P
true (T) false (F)
false (F) true (T)
Fall 2002 CMSC 203 - Discrete Structures 13
Conjunction (AND)
Binary Operator, Symbol: 
P Q PQ
T T T
T F F
F T F
F F F
Fall 2002 CMSC 203 - Discrete Structures 14
Disjunction (OR)
Binary Operator, Symbol: 
P Q PQ
T T T
T F T
F T T
F F F
Fall 2002 CMSC 203 - Discrete Structures 15
Exclusive Or (XOR)
Binary Operator, Symbol: 
P Q PQ
T T F
T F T
F T T
F F F
Fall 2002 CMSC 203 - Discrete Structures 16
Implication (if - then)
Binary Operator, Symbol: 
P Q PQ
T T T
T F F
F T T
F F T
Fall 2002 CMSC 203 - Discrete Structures 17
Biconditional (if and only if)
Binary Operator, Symbol: 
P Q PQ
T T T
T F F
F T F
F F T
Fall 2002 CMSC 203 - Discrete Structures 18
Statements and Operators
Statements and operators can be combined in any
way to form new statements.
P Q P Q (P)(Q)
T T F F F
T F F T T
F T T F T
F F T T T
Fall 2002 CMSC 203 - Discrete Structures 19
Statements and Operations
Statements and operators can be combined in any
way to form new statements.
P Q PQ  (PQ) (P)(Q)
T T T F F
T F F T T
F T F T T
F F F T T
Fall 2002 CMSC 203 - Discrete Structures 20
Equivalent Statements
P Q (PQ) (P)(Q) (PQ)(P)(Q)
T T F F T
T F T T T
F T T T T
F F T T T
The statements (PQ) and (P)  (Q) are logically
equivalent, since (PQ)  (P)  (Q) is always true.
Fall 2002 CMSC 203 - Discrete Structures 21
Tautologies and Contradictions
A tautology is a statement that is always true.
Examples:
• R(R)
• (PQ)(P)(Q)
If ST is a tautology, we write ST.
If ST is a tautology, we write ST.
Fall 2002 CMSC 203 - Discrete Structures 22
Tautologies and Contradictions
A contradiction is a statement that is always
false.
Examples:
• R(R)
• ((PQ)(P)(Q))
The negation of any tautology is a contra-
diction, and the negation of any contradiction is
a tautology.
Fall 2002 CMSC 203 - Discrete Structures 23
Exercises
We already know the following tautology:
(PQ)  (P)(Q)
Nice home exercise:
Show that (PQ)  (P)(Q).
These two tautologies are known as De
Morgan’s laws.
Table 5 in Section 1.2 shows many useful laws.
Exercises 1 and 7 in Section 1.2 may help you
get used to propositions and operators.
Fall 2002 CMSC 203 - Discrete Structures 24
Let’s Talk About Logic
• Logic is a system based on propositions.
• A proposition is a statement that is either
true or false (not both).
• We say that the truth value of a proposition
is either true (T) or false (F).
• Corresponds to 1 and 0 in digital circuits
Fall 2002 CMSC 203 - Discrete Structures 25
Logical Operators (Connectives)
• 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.
Fall 2002 CMSC 203 - Discrete Structures 26
Tautologies and Contradictions
A tautology is a statement that is always true.
Examples:
• R(R)
• (PQ)(P)(Q)
If ST is a tautology, we write ST.
If ST is a tautology, we write ST.
Fall 2002 CMSC 203 - Discrete Structures 27
Tautologies and Contradictions
A contradiction is a statement that is always
false.
Examples:
• R(R)
• ((PQ)(P)(Q))
The negation of any tautology is a contradiction,
and the negation of any contradiction is a
tautology.

More Related Content

PPTX
Let’s get started with with discrete math.pptx
PPT
Ch01-1.ppt
PPT
Ch01-1.ppt
PDF
PPT
Discrete Mathematics - All chapters
PPT
statment proposition game-1 statistic.ppt
PPT
Ch01 logic 7238248327433333722u393-1.ppt
PDF
dma_ppt.pdf
Let’s get started with with discrete math.pptx
Ch01-1.ppt
Ch01-1.ppt
Discrete Mathematics - All chapters
statment proposition game-1 statistic.ppt
Ch01 logic 7238248327433333722u393-1.ppt
dma_ppt.pdf

Similar to This is one of the subtopics of Introduction to set and logic theory in mathematics (20)

PPTX
1. Introduction to math logic.pptx
PDF
Discrete Structures lecture 2
PPT
Ch7 slides
PDF
Is unit 4_number_theory
PDF
ch7_slidesB.pdf
PPTX
DMS UNIT-1 ppt.pptx
PPT
C2.0 propositional logic
PPT
Introduction to Logic Spring 2007 Introduction to Discrete Structures.ppt
PPT
asdasdqwdsadasdsadsadasdqwrrweffscxv wsfrt
PDF
BoolExpr jzjshshssksksgshvsvshshshhshshnsb.pdf
PPT
Big oh Representation Used in Time complexities
PPT
Lecture 01.ppt
PPT
Ch02 algorithm 127836129812y12y823873893.ppt
PPTX
PDF
IRJET- Optimization of 1-Bit ALU using Ternary Logic
PPT
Discrete mathematics by sadat sumon
PDF
Passive network-redesign-ntua
PPT
2-Boolean-Algebra.ppt logic and computer design fundamental
PPTX
Winter 10 Undecidability.pptx
1. Introduction to math logic.pptx
Discrete Structures lecture 2
Ch7 slides
Is unit 4_number_theory
ch7_slidesB.pdf
DMS UNIT-1 ppt.pptx
C2.0 propositional logic
Introduction to Logic Spring 2007 Introduction to Discrete Structures.ppt
asdasdqwdsadasdsadsadasdqwrrweffscxv wsfrt
BoolExpr jzjshshssksksgshvsvshshshhshshnsb.pdf
Big oh Representation Used in Time complexities
Lecture 01.ppt
Ch02 algorithm 127836129812y12y823873893.ppt
IRJET- Optimization of 1-Bit ALU using Ternary Logic
Discrete mathematics by sadat sumon
Passive network-redesign-ntua
2-Boolean-Algebra.ppt logic and computer design fundamental
Winter 10 Undecidability.pptx
Ad

Recently uploaded (20)

PDF
advance database management system book.pdf
PDF
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
DOCX
Cambridge-Practice-Tests-for-IELTS-12.docx
PDF
Empowerment Technology for Senior High School Guide
PDF
AI-driven educational solutions for real-life interventions in the Philippine...
PDF
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
PDF
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
PDF
Journal of Dental Science - UDMY (2021).pdf
PPTX
What’s under the hood: Parsing standardized learning content for AI
PDF
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
PDF
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PPTX
Module on health assessment of CHN. pptx
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
advance database management system book.pdf
Vision Prelims GS PYQ Analysis 2011-2022 www.upscpdf.com.pdf
Unit 4 Computer Architecture Multicore Processor.pptx
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Cambridge-Practice-Tests-for-IELTS-12.docx
Empowerment Technology for Senior High School Guide
AI-driven educational solutions for real-life interventions in the Philippine...
LIFE & LIVING TRILOGY- PART (1) WHO ARE WE.pdf
LIFE & LIVING TRILOGY - PART (3) REALITY & MYSTERY.pdf
Uderstanding digital marketing and marketing stratergie for engaging the digi...
David L Page_DCI Research Study Journey_how Methodology can inform one's prac...
Journal of Dental Science - UDMY (2021).pdf
What’s under the hood: Parsing standardized learning content for AI
BP 505 T. PHARMACEUTICAL JURISPRUDENCE (UNIT 2).pdf
Skin Care and Cosmetic Ingredients Dictionary ( PDFDrive ).pdf
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
Module on health assessment of CHN. pptx
B.Sc. DS Unit 2 Software Engineering.pptx
medical_surgical_nursing_10th_edition_ignatavicius_TEST_BANK_pdf.pdf
Ad

This is one of the subtopics of Introduction to set and logic theory in mathematics

  • 1. Fall 2002 CMSC 203 - Discrete Structures 1 Let’s get started with... Logic!
  • 2. Fall 2002 CMSC 203 - Discrete Structures 2 Logic • Crucial for mathematical reasoning • Used for designing electronic circuitry • Logic is a system based on propositions. • A proposition is a statement that is either true or false (not both). • We say that the truth value of a proposition is either true (T) or false (F). • Corresponds to 1 and 0 in digital circuits
  • 3. Fall 2002 CMSC 203 - Discrete Structures 3 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
  • 4. Fall 2002 CMSC 203 - Discrete Structures 4 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
  • 5. Fall 2002 CMSC 203 - Discrete Structures 5 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.
  • 6. Fall 2002 CMSC 203 - Discrete Structures 6 The Statement/Proposition Game “Today is January 1 and 99 < 5.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? false
  • 7. Fall 2002 CMSC 203 - Discrete Structures 7 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.
  • 8. Fall 2002 CMSC 203 - Discrete Structures 8 The Statement/Proposition Game “If elephants were red, they could hide in cherry trees.” Is this a statement? yes Is this a proposition? yes What is the truth value of the proposition? probably false
  • 9. Fall 2002 CMSC 203 - Discrete Structures 9 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.
  • 10. Fall 2002 CMSC 203 - Discrete Structures 10 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.
  • 11. Fall 2002 CMSC 203 - Discrete Structures 11 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.
  • 12. Fall 2002 CMSC 203 - Discrete Structures 12 Negation (NOT) Unary Operator, Symbol:  P P true (T) false (F) false (F) true (T)
  • 13. Fall 2002 CMSC 203 - Discrete Structures 13 Conjunction (AND) Binary Operator, Symbol:  P Q PQ T T T T F F F T F F F F
  • 14. Fall 2002 CMSC 203 - Discrete Structures 14 Disjunction (OR) Binary Operator, Symbol:  P Q PQ T T T T F T F T T F F F
  • 15. Fall 2002 CMSC 203 - Discrete Structures 15 Exclusive Or (XOR) Binary Operator, Symbol:  P Q PQ T T F T F T F T T F F F
  • 16. Fall 2002 CMSC 203 - Discrete Structures 16 Implication (if - then) Binary Operator, Symbol:  P Q PQ T T T T F F F T T F F T
  • 17. Fall 2002 CMSC 203 - Discrete Structures 17 Biconditional (if and only if) Binary Operator, Symbol:  P Q PQ T T T T F F F T F F F T
  • 18. Fall 2002 CMSC 203 - Discrete Structures 18 Statements and Operators Statements and operators can be combined in any way to form new statements. P Q P Q (P)(Q) T T F F F T F F T T F T T F T F F T T T
  • 19. Fall 2002 CMSC 203 - Discrete Structures 19 Statements and Operations Statements and operators can be combined in any way to form new statements. P Q PQ  (PQ) (P)(Q) T T T F F T F F T T F T F T T F F F T T
  • 20. Fall 2002 CMSC 203 - Discrete Structures 20 Equivalent Statements P Q (PQ) (P)(Q) (PQ)(P)(Q) T T F F T T F T T T F T T T T F F T T T The statements (PQ) and (P)  (Q) are logically equivalent, since (PQ)  (P)  (Q) is always true.
  • 21. Fall 2002 CMSC 203 - Discrete Structures 21 Tautologies and Contradictions A tautology is a statement that is always true. Examples: • R(R) • (PQ)(P)(Q) If ST is a tautology, we write ST. If ST is a tautology, we write ST.
  • 22. Fall 2002 CMSC 203 - Discrete Structures 22 Tautologies and Contradictions A contradiction is a statement that is always false. Examples: • R(R) • ((PQ)(P)(Q)) The negation of any tautology is a contra- diction, and the negation of any contradiction is a tautology.
  • 23. Fall 2002 CMSC 203 - Discrete Structures 23 Exercises We already know the following tautology: (PQ)  (P)(Q) Nice home exercise: Show that (PQ)  (P)(Q). These two tautologies are known as De Morgan’s laws. Table 5 in Section 1.2 shows many useful laws. Exercises 1 and 7 in Section 1.2 may help you get used to propositions and operators.
  • 24. Fall 2002 CMSC 203 - Discrete Structures 24 Let’s Talk About Logic • Logic is a system based on propositions. • A proposition is a statement that is either true or false (not both). • We say that the truth value of a proposition is either true (T) or false (F). • Corresponds to 1 and 0 in digital circuits
  • 25. Fall 2002 CMSC 203 - Discrete Structures 25 Logical Operators (Connectives) • 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.
  • 26. Fall 2002 CMSC 203 - Discrete Structures 26 Tautologies and Contradictions A tautology is a statement that is always true. Examples: • R(R) • (PQ)(P)(Q) If ST is a tautology, we write ST. If ST is a tautology, we write ST.
  • 27. Fall 2002 CMSC 203 - Discrete Structures 27 Tautologies and Contradictions A contradiction is a statement that is always false. Examples: • R(R) • ((PQ)(P)(Q)) The negation of any tautology is a contradiction, and the negation of any contradiction is a tautology.