SlideShare une entreprise Scribd logo
1  sur  18
Truth Table
By Prof. Liwayway Memije-Cruz
What is a truth table?
• a handy little logical device
• a mathematical table used in logic—specifically
in connection with Boolean algebra, boolean
functions, and propositional calculus
• sets out the functional values of logical
expressions on each of their functional
arguments, that is, for each combination of
values taken by their logical variables.
Importance of truth tables
• help us determine all the truth value possibilities
of various statements.
• help us better understand logic.
• used to define logical connectives.
• help us identify various distinctions (such as
tautologies, self-contradictions, consistent
statements, equivalent statements, and valid
arguments).
Logical connectives
The five connectives used in propositional logic
are the following:
1. “and” (∧),
2. “not” (¬),
3. “or” (∨),
4. “implies” (→),
5. “if and only if” (↔). :
How to read the truth table:
• There is a column (vertical area) under each statement,
which contains every possible truth value. The column
under “p” has “T, T, F, F” (true, true, false, false). The
column under “q” is “T, F, T, F” (true, false, true, false). The
column under “p ∧ q” contains “T, F, F, F” (true, false, false,
false).
• Every row (horizontal area) beneath the statements
contains every combination of truth values. The first row of
truth values states that “p,” “q,” and “p ∧ q” are all true. The
second row states that “p” is true, “q” is false, and “p ∧ q” is
false. The third states that “p” is false, “q” is true, and “p ∧
q” is false. The fourth states that “p,” “q” and “p ∧ q” are all
false.
Example:
Life used to exist on
Mars.
Life will exist on
Mars in the future.
Life used to exist on
Mars and life will
exist on Mars in the
future.
T T T
T F F
F T F
F F F
Possibilities
Row 1: It’s true that “life used to exist on Mars.” It’s true that “life will
exist on Mars in the future.” In that case it’s also true that “Life used to
exist on Mars, and that life will exist on Mars in the future.”
Row 2: It’s true that “life used to exist on Mars.” It’s false that “life will
exist on Mars in the future.” In that case it’s also false that “Life used to
exist on Mars, and that life will exist on Mars in the future.”
Row 3: It’s false that “life used to exist on Mars.” It’s true that “life will
exist on Mars in the future.” In that case it’s also false that “Life used to
exist on Mars, and that life will exist on Mars in the future.”
Row 4: It’s false that “life used to exist on Mars.” It’s false that “life will
exist on Mars in the future.” In that case it’s also false that “Life used to
exist on Mars, and that life will exist on Mars in the future.”
Logical false
• The output value is never true: that is, always
false, regardless of the input value of p
p F
T F
F F
Logical identity
• Logical identity is an operation on one logical
value p, for which the output value remains p.
p P
T T
F F
Logical negation
• Logical negation is an operation on one logical value,
typically the value of a proposition, that produces a
value of true if its operand is false and a value of false if
its operand is true.
p ¬p
T F
F T
Logical conjunction (AND)
• Logical conjunction is an operation on two logical values, typically
the values of two propositions, that produces a value of true if both
of its operands are true.
• p AND q (also written as p ∧ q, Kpq, p & q, or p ⋅ {displaystyle
cdot } cdot q
p q p ∧ q
T T T
T F F
F T F
F F F
Logical disjunction (OR)
• Logical disjunction is an operation on two logical values, typically
the values of two propositions, that produces a value of true if at
least one of its operands is true.
• p XOR q (also written as p ⊕ q, Jpq, p ≠ q, or p ↮ q)
p q p ⇒ q
T T T
T F F
F T T
F F T
Logical equality
• Logical equality (also known as biconditional) is an operation on
two logical values, typically the values of two propositions, that
produces a value of true if both operands are false or both
operands are true.
• p XNOR q (also written as p ↔ q, Epq, p = q, or p ≡ q)
p q p ↔ q
T T T
T F F
F T F
F F T
Logical NAND
• The logical NAND is an operation on two logical values,
typically the values of two propositions, that produces a value
of false if both of its operands are true. In other words, it
produces a value of true if at least one of its operands is false.
• p NAND q (also written as p ↑ q, Dpq, or p | q)
p q p ↑ q
T T F
T F T
F T T
F F T
Logical NOR
• The logical NOR is an operation on two logical values, typically the
values of two propositions, that produces a value of true if both of
its operands are false. In other words, it produces a value of false
if at least one of its operands is true.
• p NOR q (also written as p ↓ q, or Xpq)
p q p ↓ q
T T F
T F F
F T F
F F T
References:
• https://ethicalrealism.wordpress.com/2013/01/14
/logic-part-3-truth-tables/
• https://en.wikipedia.org/wiki/Truth_table
• http://kias.dyndns.org/comath/21.html
• https://medium.com/i-math/intro-to-truth-tables-
boolean-algebra-73b331dd9b94

Contenu connexe

Tendances

Truth tables presentation
Truth tables presentationTruth tables presentation
Truth tables presentation
MujtaBa Khan
 
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
 
Conditional Statements
Conditional StatementsConditional Statements
Conditional Statements
micdsram
 

Tendances (20)

CMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional EquivalencesCMSC 56 | Lecture 2: Propositional Equivalences
CMSC 56 | Lecture 2: Propositional Equivalences
 
Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)Discrete Math Presentation(Rules of Inference)
Discrete Math Presentation(Rules of Inference)
 
Discrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: Propositional LogicDiscrete Math Lecture 01: Propositional Logic
Discrete Math Lecture 01: 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 د. خالد بكرو
 
Number Theory - Lesson 1 - Introduction to Number Theory
Number Theory - Lesson 1 - Introduction to Number TheoryNumber Theory - Lesson 1 - Introduction to Number Theory
Number Theory - Lesson 1 - Introduction to Number Theory
 
Discrete math Truth Table
Discrete math Truth TableDiscrete math Truth Table
Discrete math Truth Table
 
Logic (PROPOSITIONS)
Logic (PROPOSITIONS)Logic (PROPOSITIONS)
Logic (PROPOSITIONS)
 
Principle of mathematical induction
Principle of mathematical inductionPrinciple of mathematical induction
Principle of mathematical induction
 
Logic&proof
Logic&proofLogic&proof
Logic&proof
 
Truth tables presentation
Truth tables presentationTruth tables presentation
Truth tables presentation
 
Discrete Math Lecture 03: Methods of Proof
Discrete Math Lecture 03: Methods of ProofDiscrete Math Lecture 03: Methods of Proof
Discrete Math Lecture 03: Methods of Proof
 
Proposition (Logic)
Proposition (Logic)Proposition (Logic)
Proposition (Logic)
 
Counting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probabilityCounting, mathematical induction and discrete probability
Counting, mathematical induction and discrete probability
 
Conditional Statements
Conditional StatementsConditional Statements
Conditional Statements
 
Propositional logic
Propositional logicPropositional logic
Propositional logic
 
Proof by contradiction
Proof by contradictionProof by contradiction
Proof by contradiction
 
Predicates and Quantifiers
Predicates and QuantifiersPredicates and Quantifiers
Predicates and Quantifiers
 
Proposition
PropositionProposition
Proposition
 
Propositional Logic and Pridicate logic
Propositional Logic and Pridicate logicPropositional Logic and Pridicate logic
Propositional Logic and Pridicate logic
 
Unit 1 rules of inference
Unit 1  rules of inferenceUnit 1  rules of inference
Unit 1 rules of inference
 

Similaire à Truth table

Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logic
ankush_kumar
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
PradeeshSAI
 

Similaire à Truth table (20)

Dicrete structure
Dicrete structureDicrete structure
Dicrete structure
 
CS202Ch1.ppt
CS202Ch1.pptCS202Ch1.ppt
CS202Ch1.ppt
 
AppTheories_L3
AppTheories_L3AppTheories_L3
AppTheories_L3
 
Logic
LogicLogic
Logic
 
MFCS PPT.pdf
MFCS PPT.pdfMFCS PPT.pdf
MFCS PPT.pdf
 
Propositional And First-Order Logic
Propositional And First-Order LogicPropositional And First-Order Logic
Propositional And First-Order Logic
 
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
 
Math
MathMath
Math
 
L01.ppt
L01.pptL01.ppt
L01.ppt
 
Logic
LogicLogic
Logic
 
logic_lec4.ppt
logic_lec4.pptlogic_lec4.ppt
logic_lec4.ppt
 
Per3 logika&pembuktian
Per3 logika&pembuktianPer3 logika&pembuktian
Per3 logika&pembuktian
 
Discrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.pptDiscrete mathematics Chapter1 presentation.ppt
Discrete mathematics Chapter1 presentation.ppt
 
Logic - Logical Propositions
Logic - Logical Propositions Logic - Logical Propositions
Logic - Logical Propositions
 
logicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdflogicproof-141212042039-conversion-gate01.pdf
logicproof-141212042039-conversion-gate01.pdf
 
dm-logic.pdf
dm-logic.pdfdm-logic.pdf
dm-logic.pdf
 
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
 
Introduction to mathematical analysis
Introduction to mathematical analysisIntroduction to mathematical analysis
Introduction to mathematical analysis
 
Bab 1 proposisi
Bab 1 proposisiBab 1 proposisi
Bab 1 proposisi
 
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]
 

Plus de Liwayway Memije-Cruz

Plus de Liwayway Memije-Cruz (20)

Second-level Digital Divide and experiences of Schools and Teachers
Second-level Digital Divide and experiences of Schools and TeachersSecond-level Digital Divide and experiences of Schools and Teachers
Second-level Digital Divide and experiences of Schools and Teachers
 
Human flourishing in science and technology: Technology as a Mode of Revealing
Human flourishing in science and technology: Technology as a Mode of RevealingHuman flourishing in science and technology: Technology as a Mode of Revealing
Human flourishing in science and technology: Technology as a Mode of Revealing
 
Intellectual Revolutions
Intellectual RevolutionsIntellectual Revolutions
Intellectual Revolutions
 
Historical Antecedents of Science and Technology
Historical Antecedents of Science and TechnologyHistorical Antecedents of Science and Technology
Historical Antecedents of Science and Technology
 
Ribonucleic acid or RNA
Ribonucleic acid or RNARibonucleic acid or RNA
Ribonucleic acid or RNA
 
Hydrocarbon and its derivatives
Hydrocarbon and its derivativesHydrocarbon and its derivatives
Hydrocarbon and its derivatives
 
Types of Organic Reactions
Types of Organic ReactionsTypes of Organic Reactions
Types of Organic Reactions
 
Functional groups
Functional groupsFunctional groups
Functional groups
 
General view of organic chemistry and iupac
General view of organic chemistry  and iupacGeneral view of organic chemistry  and iupac
General view of organic chemistry and iupac
 
Historical antecedents of science and technology
Historical antecedents of science and technologyHistorical antecedents of science and technology
Historical antecedents of science and technology
 
Isomerism
IsomerismIsomerism
Isomerism
 
Apportionment and Voting
Apportionment and VotingApportionment and Voting
Apportionment and Voting
 
Lipid metabolism
Lipid metabolismLipid metabolism
Lipid metabolism
 
Graphs: Hamiltonian Path and Circuit
 Graphs: Hamiltonian Path and Circuit Graphs: Hamiltonian Path and Circuit
Graphs: Hamiltonian Path and Circuit
 
Carbohydrate Metabolism
Carbohydrate  MetabolismCarbohydrate  Metabolism
Carbohydrate Metabolism
 
Graph: Euler path and Euler circuit
Graph: Euler path and Euler circuitGraph: Euler path and Euler circuit
Graph: Euler path and Euler circuit
 
Body tissues
Body tissuesBody tissues
Body tissues
 
Cell division
Cell divisionCell division
Cell division
 
Enzymes
EnzymesEnzymes
Enzymes
 
Vitamins
VitaminsVitamins
Vitamins
 

Dernier

Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
PirithiRaju
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptx
MohamedFarag457087
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
levieagacer
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformation
Areesha Ahmad
 

Dernier (20)

Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.Proteomics: types, protein profiling steps etc.
Proteomics: types, protein profiling steps etc.
 
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdfPests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
Pests of cotton_Borer_Pests_Binomics_Dr.UPR.pdf
 
Forensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdfForensic Biology & Its biological significance.pdf
Forensic Biology & Its biological significance.pdf
 
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort ServiceCall Girls Ahmedabad +917728919243 call me Independent Escort Service
Call Girls Ahmedabad +917728919243 call me Independent Escort Service
 
Site Acceptance Test .
Site Acceptance Test                    .Site Acceptance Test                    .
Site Acceptance Test .
 
Digital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptxDigital Dentistry.Digital Dentistryvv.pptx
Digital Dentistry.Digital Dentistryvv.pptx
 
Module for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learningModule for Grade 9 for Asynchronous/Distance learning
Module for Grade 9 for Asynchronous/Distance learning
 
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verifiedSector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
Sector 62, Noida Call girls :8448380779 Model Escorts | 100% verified
 
GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)GBSN - Biochemistry (Unit 1)
GBSN - Biochemistry (Unit 1)
 
Clean In Place(CIP).pptx .
Clean In Place(CIP).pptx                 .Clean In Place(CIP).pptx                 .
Clean In Place(CIP).pptx .
 
module for grade 9 for distance learning
module for grade 9 for distance learningmodule for grade 9 for distance learning
module for grade 9 for distance learning
 
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRLKochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
Kochi ❤CALL GIRL 84099*07087 ❤CALL GIRLS IN Kochi ESCORT SERVICE❤CALL GIRL
 
Conjugation, transduction and transformation
Conjugation, transduction and transformationConjugation, transduction and transformation
Conjugation, transduction and transformation
 
Introduction to Viruses
Introduction to VirusesIntroduction to Viruses
Introduction to Viruses
 
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verifiedConnaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
Connaught Place, Delhi Call girls :8448380779 Model Escorts | 100% verified
 
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
❤Jammu Kashmir Call Girls 8617697112 Personal Whatsapp Number 💦✅.
 
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
9999266834 Call Girls In Noida Sector 22 (Delhi) Call Girl Service
 
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptxCOST ESTIMATION FOR A RESEARCH PROJECT.pptx
COST ESTIMATION FOR A RESEARCH PROJECT.pptx
 
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
High Class Escorts in Hyderabad ₹7.5k Pick Up & Drop With Cash Payment 969456...
 
Justdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts Service
Justdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts ServiceJustdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts Service
Justdial Call Girls In Indirapuram, Ghaziabad, 8800357707 Escorts Service
 

Truth table

  • 1. Truth Table By Prof. Liwayway Memije-Cruz
  • 2. What is a truth table? • a handy little logical device • a mathematical table used in logic—specifically in connection with Boolean algebra, boolean functions, and propositional calculus • sets out the functional values of logical expressions on each of their functional arguments, that is, for each combination of values taken by their logical variables.
  • 3. Importance of truth tables • help us determine all the truth value possibilities of various statements. • help us better understand logic. • used to define logical connectives. • help us identify various distinctions (such as tautologies, self-contradictions, consistent statements, equivalent statements, and valid arguments).
  • 4. Logical connectives The five connectives used in propositional logic are the following: 1. “and” (∧), 2. “not” (¬), 3. “or” (∨), 4. “implies” (→), 5. “if and only if” (↔). :
  • 5. How to read the truth table:
  • 6. • There is a column (vertical area) under each statement, which contains every possible truth value. The column under “p” has “T, T, F, F” (true, true, false, false). The column under “q” is “T, F, T, F” (true, false, true, false). The column under “p ∧ q” contains “T, F, F, F” (true, false, false, false). • Every row (horizontal area) beneath the statements contains every combination of truth values. The first row of truth values states that “p,” “q,” and “p ∧ q” are all true. The second row states that “p” is true, “q” is false, and “p ∧ q” is false. The third states that “p” is false, “q” is true, and “p ∧ q” is false. The fourth states that “p,” “q” and “p ∧ q” are all false.
  • 7. Example: Life used to exist on Mars. Life will exist on Mars in the future. Life used to exist on Mars and life will exist on Mars in the future. T T T T F F F T F F F F
  • 8. Possibilities Row 1: It’s true that “life used to exist on Mars.” It’s true that “life will exist on Mars in the future.” In that case it’s also true that “Life used to exist on Mars, and that life will exist on Mars in the future.” Row 2: It’s true that “life used to exist on Mars.” It’s false that “life will exist on Mars in the future.” In that case it’s also false that “Life used to exist on Mars, and that life will exist on Mars in the future.” Row 3: It’s false that “life used to exist on Mars.” It’s true that “life will exist on Mars in the future.” In that case it’s also false that “Life used to exist on Mars, and that life will exist on Mars in the future.” Row 4: It’s false that “life used to exist on Mars.” It’s false that “life will exist on Mars in the future.” In that case it’s also false that “Life used to exist on Mars, and that life will exist on Mars in the future.”
  • 9.
  • 10. Logical false • The output value is never true: that is, always false, regardless of the input value of p p F T F F F
  • 11. Logical identity • Logical identity is an operation on one logical value p, for which the output value remains p. p P T T F F
  • 12. Logical negation • Logical negation is an operation on one logical value, typically the value of a proposition, that produces a value of true if its operand is false and a value of false if its operand is true. p ¬p T F F T
  • 13. Logical conjunction (AND) • Logical conjunction is an operation on two logical values, typically the values of two propositions, that produces a value of true if both of its operands are true. • p AND q (also written as p ∧ q, Kpq, p & q, or p ⋅ {displaystyle cdot } cdot q p q p ∧ q T T T T F F F T F F F F
  • 14. Logical disjunction (OR) • Logical disjunction is an operation on two logical values, typically the values of two propositions, that produces a value of true if at least one of its operands is true. • p XOR q (also written as p ⊕ q, Jpq, p ≠ q, or p ↮ q) p q p ⇒ q T T T T F F F T T F F T
  • 15. Logical equality • Logical equality (also known as biconditional) is an operation on two logical values, typically the values of two propositions, that produces a value of true if both operands are false or both operands are true. • p XNOR q (also written as p ↔ q, Epq, p = q, or p ≡ q) p q p ↔ q T T T T F F F T F F F T
  • 16. Logical NAND • The logical NAND is an operation on two logical values, typically the values of two propositions, that produces a value of false if both of its operands are true. In other words, it produces a value of true if at least one of its operands is false. • p NAND q (also written as p ↑ q, Dpq, or p | q) p q p ↑ q T T F T F T F T T F F T
  • 17. Logical NOR • The logical NOR is an operation on two logical values, typically the values of two propositions, that produces a value of true if both of its operands are false. In other words, it produces a value of false if at least one of its operands is true. • p NOR q (also written as p ↓ q, or Xpq) p q p ↓ q T T F T F F F T F F F T
  • 18. References: • https://ethicalrealism.wordpress.com/2013/01/14 /logic-part-3-truth-tables/ • https://en.wikipedia.org/wiki/Truth_table • http://kias.dyndns.org/comath/21.html • https://medium.com/i-math/intro-to-truth-tables- boolean-algebra-73b331dd9b94