SlideShare a Scribd company logo
Name ________________________
Worksheet 1.2
Logic and Truth Tables
We can represent the truth of expressions in a tabular form called “truth tables.” These tables
consider all cases and can add great insight into otherwise complicated expressions. Here are
examples of some of most basic truth tables.
The truth table for negation (“not”)
p ¬ p
T F
F T
The truth table for disjunction (“or”)
p q p  q
T T T
T F T
F T T
F F F
1. Complete the following truth tables
(a) Truth table for conjunction (“and”)
p q p  q
T T
T F
F T
F F
(b) Truth table for biconditional (“if and only if”)
p q p ↔ q
T T
T F
F T
F F
Why do we say that the biconditional defines “logical equivalence”?
2. The truth table for conditional (“if...then...”) can be quite confusing. Here it is.
p q p → q
T T T
T F F
F T T
F F T
Consider the example “For every integer n, if n > 2 then n2 > 4.” In this case p represents
“n > 2” and q represents “n2 > 4.” Thus if n = 3 then p is true and q is true.
(a) Find another value of n that makes p true and q true.
(b) Find a value for n that makes p false and q false.
(c) Find a value for n that makes p false and q true.
(d) Find a value for n that make p true and q false. Explain any problems you have. Why
are you having these problems?
The third row, corresponding to part (c), frustrates many people—you are not alone. The
truth has a special name. It is called “vacuously true.”
3. Complete the following truth tables
(a)
p q (¬ p) ↔ q
T T
T F
F T
F F
(b)
p q (¬ p)  q
T T
T F
F T
F F
(c)
p q r q → r p → (q → r)
T T T
T T F
T F T
T F F
F T T
F T F
F F T
F F F
4. Draw up and complete the truth tables for the following expressions. Please follow all of the
conventions that you have observed above (such as listing p before q, etc.)
(a) p  (¬ p)
(b) (¬ p)  (¬ q)
5. An expression is a tautology if it is always true, regardless the truth of its component
statements. Thus, the last column in its truth table will be all T’s. A statement is a contradiction
if the last column is always F—it is never true.
(a) Show that (p  q) → p is a tautology by completing this truth table.
p q p  q (p  q) → p
T T
T T
T F
T F
F T
F T
F F
F F
(b) Show that p  (¬ p) is a contradiction.
p p  (¬ p)
T
F
6. Logically equivalent expressions have the same truth tables. Show that the following pairs of
statements are logically equivalent.
(a) (¬ p)  q and (p  q) (You saw this on the previous worksheet. Where?)
(b) p → q and (¬ q) → (¬ p) (The second statement is called the Contrapositive)
(c) (p  q)  r and (p  r)  (q  r) (Distribution of sorts)
(d) ¬ (p  q) and (¬ p)  (¬ q) (This, and part (e) is called De Morgan’s Law)
(e) ¬ (p  q) and (¬ p)  (¬ q)

More Related Content

What's hot

SIMPLE AND GENERAL ANNUITY PPT.pptx
SIMPLE AND GENERAL ANNUITY PPT.pptxSIMPLE AND GENERAL ANNUITY PPT.pptx
SIMPLE AND GENERAL ANNUITY PPT.pptx
MaxineAlipio1
 
7.simple annuities
7.simple annuities7.simple annuities
7.simple annuities
zaragozai
 
Probability distribution of a random variable module
Probability distribution of a random variable moduleProbability distribution of a random variable module
Probability distribution of a random variable module
Melody01082019
 
Converse, contrapositive, inverse
Converse, contrapositive, inverseConverse, contrapositive, inverse
Converse, contrapositive, inverse
Abdur Rehman
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
ForwardBlog Enewzletter
 
Truth table
Truth tableTruth table
Statistics and probability lesson 1
Statistics and probability lesson 1Statistics and probability lesson 1
Statistics and probability lesson 1
MARIA CHRISTITA POLINAG
 
1 illustrating limit of a function
1 illustrating limit of a function1 illustrating limit of a function
1 illustrating limit of a function
JRCatador
 
Rational Function
Rational FunctionRational Function
Rational Function
Jerlyn Fernandez
 
Solving rational inequalities
Solving rational inequalitiesSolving rational inequalities
Solving rational inequalities
rey castro
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
endahnurfebriyanti
 
Pre-Calculus 11 - Introduction
Pre-Calculus 11 - IntroductionPre-Calculus 11 - Introduction
Pre-Calculus 11 - Introduction
Juan Miguel Palero
 
Lesson 5 compounding more than once a year
Lesson 5   compounding more than once a yearLesson 5   compounding more than once a year
Lesson 5 compounding more than once a year
MLG College of Learning, Inc
 
Rational functions
Rational functionsRational functions
Rational functions
zozima
 
Lesson 3: Limit Laws
Lesson 3: Limit LawsLesson 3: Limit Laws
Lesson 3: Limit Laws
Matthew Leingang
 
Limit of complex number
Limit of complex numberLimit of complex number
Limit of complex number
Bilal Amjad
 
LESSON 8 SIMPLE AND COMPOUND INTEREST.pptx
LESSON 8 SIMPLE AND COMPOUND INTEREST.pptxLESSON 8 SIMPLE AND COMPOUND INTEREST.pptx
LESSON 8 SIMPLE AND COMPOUND INTEREST.pptx
GeraldineElisan
 
Random variable
Random variableRandom variable
Random variable
Leamel Sarita
 
general mathematics.pdf
general mathematics.pdfgeneral mathematics.pdf
general mathematics.pdf
JesterPescadero1
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
Lakshmi R
 

What's hot (20)

SIMPLE AND GENERAL ANNUITY PPT.pptx
SIMPLE AND GENERAL ANNUITY PPT.pptxSIMPLE AND GENERAL ANNUITY PPT.pptx
SIMPLE AND GENERAL ANNUITY PPT.pptx
 
7.simple annuities
7.simple annuities7.simple annuities
7.simple annuities
 
Probability distribution of a random variable module
Probability distribution of a random variable moduleProbability distribution of a random variable module
Probability distribution of a random variable module
 
Converse, contrapositive, inverse
Converse, contrapositive, inverseConverse, contrapositive, inverse
Converse, contrapositive, inverse
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Truth table
Truth tableTruth table
Truth table
 
Statistics and probability lesson 1
Statistics and probability lesson 1Statistics and probability lesson 1
Statistics and probability lesson 1
 
1 illustrating limit of a function
1 illustrating limit of a function1 illustrating limit of a function
1 illustrating limit of a function
 
Rational Function
Rational FunctionRational Function
Rational Function
 
Solving rational inequalities
Solving rational inequalitiesSolving rational inequalities
Solving rational inequalities
 
Mathematical Logic
Mathematical LogicMathematical Logic
Mathematical Logic
 
Pre-Calculus 11 - Introduction
Pre-Calculus 11 - IntroductionPre-Calculus 11 - Introduction
Pre-Calculus 11 - Introduction
 
Lesson 5 compounding more than once a year
Lesson 5   compounding more than once a yearLesson 5   compounding more than once a year
Lesson 5 compounding more than once a year
 
Rational functions
Rational functionsRational functions
Rational functions
 
Lesson 3: Limit Laws
Lesson 3: Limit LawsLesson 3: Limit Laws
Lesson 3: Limit Laws
 
Limit of complex number
Limit of complex numberLimit of complex number
Limit of complex number
 
LESSON 8 SIMPLE AND COMPOUND INTEREST.pptx
LESSON 8 SIMPLE AND COMPOUND INTEREST.pptxLESSON 8 SIMPLE AND COMPOUND INTEREST.pptx
LESSON 8 SIMPLE AND COMPOUND INTEREST.pptx
 
Random variable
Random variableRandom variable
Random variable
 
general mathematics.pdf
general mathematics.pdfgeneral mathematics.pdf
general mathematics.pdf
 
Rules of inference
Rules of inferenceRules of inference
Rules of inference
 

Similar to Logic worksheet

Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statements
guestd166eb5
 
The logic
The logicThe logic
The logic
Nittaya Noinan
 
Logic - Logical Propositions
Logic - Logical Propositions Logic - Logical Propositions
Logic - Logical Propositions
JosefMikaeldelCorro
 
L4-IntroducClick to edit Master title styletion to logic.pptx
L4-IntroducClick to edit Master title styletion to logic.pptxL4-IntroducClick to edit Master title styletion to logic.pptx
L4-IntroducClick to edit Master title styletion to logic.pptx
FahmiOlayah
 
[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
rAjyarAjanItjJa
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
Suresh Ram
 
CS202Ch1.ppt
CS202Ch1.pptCS202Ch1.ppt
CS202Ch1.ppt
RuchiTuliWadhwa
 
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
taimoor iftikhar
 
Discreate Truth tables and laws of logic
Discreate Truth tables and laws of logicDiscreate Truth tables and laws of logic
Discreate Truth tables and laws of logic
ZenLooper
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
IqraAli875037
 
LOGIC
LOGICLOGIC
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
University of Potsdam
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
smarwaneid
 
Truth table a.r
Truth table a.rTruth table a.r
Truth table a.r
Syed Umair
 
Computer Organization and Assembly Language
Computer Organization and Assembly LanguageComputer Organization and Assembly Language
Computer Organization and Assembly Language
Raquel Mulles
 
Dicrete structure
Dicrete structureDicrete structure
Dicrete structure
Honey Joy Macabasco
 
4 ch 2 logical reasoning
4 ch 2 logical reasoning4 ch 2 logical reasoning
4 ch 2 logical reasoning
SummermhaeJamora
 
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
 
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary ArithmeticPropositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
vcuesta
 
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary ArithmeticPropositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
guest9fa195
 

Similar to Logic worksheet (20)

Chapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound StatementsChapter 1 Logic of Compound Statements
Chapter 1 Logic of Compound Statements
 
The logic
The logicThe logic
The logic
 
Logic - Logical Propositions
Logic - Logical Propositions Logic - Logical Propositions
Logic - Logical Propositions
 
L4-IntroducClick to edit Master title styletion to logic.pptx
L4-IntroducClick to edit Master title styletion to logic.pptxL4-IntroducClick to edit Master title styletion to logic.pptx
L4-IntroducClick to edit Master title styletion to logic.pptx
 
[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
 
Logic and proof
Logic and proofLogic and proof
Logic and proof
 
CS202Ch1.ppt
CS202Ch1.pptCS202Ch1.ppt
CS202Ch1.ppt
 
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
 
Discreate Truth tables and laws of logic
Discreate Truth tables and laws of logicDiscreate Truth tables and laws of logic
Discreate Truth tables and laws of logic
 
Chapter1p1.pdf
Chapter1p1.pdfChapter1p1.pdf
Chapter1p1.pdf
 
LOGIC
LOGICLOGIC
LOGIC
 
Discrete mathematics
Discrete mathematicsDiscrete mathematics
Discrete mathematics
 
Chapter 01 - p1.pdf
Chapter 01 - p1.pdfChapter 01 - p1.pdf
Chapter 01 - p1.pdf
 
Truth table a.r
Truth table a.rTruth table a.r
Truth table a.r
 
Computer Organization and Assembly Language
Computer Organization and Assembly LanguageComputer Organization and Assembly Language
Computer Organization and Assembly Language
 
Dicrete structure
Dicrete structureDicrete structure
Dicrete structure
 
4 ch 2 logical reasoning
4 ch 2 logical reasoning4 ch 2 logical reasoning
4 ch 2 logical reasoning
 
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 د. خالد بكرو
 
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary ArithmeticPropositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
 
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary ArithmeticPropositional Logic, Boolean Arithmetic And Binary Arithmetic
Propositional Logic, Boolean Arithmetic And Binary Arithmetic
 

Recently uploaded

BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
LAXMAREDDY22
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Sinan KOZAK
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
171ticu
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
ecqow
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
abbyasa1014
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
Madan Karki
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
Nada Hikmah
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Christina Lin
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
Yasser Mahgoub
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
NazakatAliKhoso2
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
sachin chaurasia
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
mamamaam477
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
KrishnaveniKrishnara1
 
Hematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood CountHematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood Count
shahdabdulbaset
 

Recently uploaded (20)

BRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdfBRAIN TUMOR DETECTION for seminar ppt.pdf
BRAIN TUMOR DETECTION for seminar ppt.pdf
 
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
Optimizing Gradle Builds - Gradle DPE Tour Berlin 2024
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样官方认证美国密歇根州立大学毕业证学位证书原版一模一样
官方认证美国密歇根州立大学毕业证学位证书原版一模一样
 
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
一比一原版(CalArts毕业证)加利福尼亚艺术学院毕业证如何办理
 
Engineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdfEngineering Drawings Lecture Detail Drawings 2014.pdf
Engineering Drawings Lecture Detail Drawings 2014.pdf
 
spirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptxspirit beverages ppt without graphics.pptx
spirit beverages ppt without graphics.pptx
 
Curve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods RegressionCurve Fitting in Numerical Methods Regression
Curve Fitting in Numerical Methods Regression
 
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming PipelinesHarnessing WebAssembly for Real-time Stateless Streaming Pipelines
Harnessing WebAssembly for Real-time Stateless Streaming Pipelines
 
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
2008 BUILDING CONSTRUCTION Illustrated - Ching Chapter 02 The Building.pdf
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
Engine Lubrication performance System.pdf
Engine Lubrication performance System.pdfEngine Lubrication performance System.pdf
Engine Lubrication performance System.pdf
 
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.pptUnit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
Unit-III-ELECTROCHEMICAL STORAGE DEVICES.ppt
 
Hematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood CountHematology Analyzer Machine - Complete Blood Count
Hematology Analyzer Machine - Complete Blood Count
 

Logic worksheet

  • 1. Name ________________________ Worksheet 1.2 Logic and Truth Tables We can represent the truth of expressions in a tabular form called “truth tables.” These tables consider all cases and can add great insight into otherwise complicated expressions. Here are examples of some of most basic truth tables. The truth table for negation (“not”) p ¬ p T F F T The truth table for disjunction (“or”) p q p  q T T T T F T F T T F F F 1. Complete the following truth tables (a) Truth table for conjunction (“and”) p q p  q T T T F F T F F (b) Truth table for biconditional (“if and only if”) p q p ↔ q T T T F F T F F Why do we say that the biconditional defines “logical equivalence”?
  • 2. 2. The truth table for conditional (“if...then...”) can be quite confusing. Here it is. p q p → q T T T T F F F T T F F T Consider the example “For every integer n, if n > 2 then n2 > 4.” In this case p represents “n > 2” and q represents “n2 > 4.” Thus if n = 3 then p is true and q is true. (a) Find another value of n that makes p true and q true. (b) Find a value for n that makes p false and q false. (c) Find a value for n that makes p false and q true. (d) Find a value for n that make p true and q false. Explain any problems you have. Why are you having these problems? The third row, corresponding to part (c), frustrates many people—you are not alone. The truth has a special name. It is called “vacuously true.” 3. Complete the following truth tables (a) p q (¬ p) ↔ q T T T F F T F F (b) p q (¬ p)  q T T T F F T F F (c) p q r q → r p → (q → r) T T T T T F T F T T F F F T T F T F F F T F F F
  • 3. 4. Draw up and complete the truth tables for the following expressions. Please follow all of the conventions that you have observed above (such as listing p before q, etc.) (a) p  (¬ p) (b) (¬ p)  (¬ q) 5. An expression is a tautology if it is always true, regardless the truth of its component statements. Thus, the last column in its truth table will be all T’s. A statement is a contradiction if the last column is always F—it is never true. (a) Show that (p  q) → p is a tautology by completing this truth table. p q p  q (p  q) → p T T T T T F T F F T F T F F F F (b) Show that p  (¬ p) is a contradiction. p p  (¬ p) T F
  • 4. 6. Logically equivalent expressions have the same truth tables. Show that the following pairs of statements are logically equivalent. (a) (¬ p)  q and (p  q) (You saw this on the previous worksheet. Where?) (b) p → q and (¬ q) → (¬ p) (The second statement is called the Contrapositive) (c) (p  q)  r and (p  r)  (q  r) (Distribution of sorts) (d) ¬ (p  q) and (¬ p)  (¬ q) (This, and part (e) is called De Morgan’s Law) (e) ¬ (p  q) and (¬ p)  (¬ q)