Discrete Math - Truth Table
Discrete Math - Truth Table
Dept. of Mathematics
KNUST
4 Logical argument
5 Quantifiers
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Summary of topics
4 Logical argument
5 Quantifiers
1 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Warm-up question
Example
Let A = ”I like to eat apples, let B = ”I like to eat pears” and
C = ”I like to eat peaches. Translate (A ∨ B) ∧ C and
A ∨ (B ∧ C) into words.
2 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Warm-up question
Example
Let A = ”I like to eat apples, let B = ”I like to eat pears” and
C = ”I like to eat peaches. Translate (A ∨ B) ∧ C and
A ∨ (B ∧ C) into words.
2 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Summary of topics
4 Logical argument
5 Quantifiers
4 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Tautology
Defintion: Tautology
A tautology is a statement that is always true by logical
necessity.
Tautology
Defintion: Tautology
A tautology is a statement that is always true by logical
necessity.
Tautology
Defintion: Tautology
A tautology is a statement that is always true by logical
necessity.
Tautology
Defintion: Tautology
A tautology is a statement that is always true by logical
necessity.
Tautology
Defintion: Tautology
A tautology is a statement that is always true by logical
necessity.
Contradiction
Defintion: Contradiction
A contradiction is a statement that is always false by logical
necessity.
Example
Irene has red hair and she does not have red hair. (verify
using a truth table).
Outline
4 Logical argument
5 Quantifiers
7 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Meta-statements
8 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Meta-statements
8 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Meta-statements
8 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Meta-statements
8 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Meta-statements
8 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Logical implications
Definition:
We say that P logically implies Q if the statement P → Q is a
tautology. Notation: P =⇒ Q.
Logical implications
Definition:
We say that P logically implies Q if the statement P → Q is a
tautology. Notation: P =⇒ Q.
Logical implications
Definition:
We say that P logically implies Q if the statement P → Q is a
tautology. Notation: P =⇒ Q.
Logical implications
Definition:
We say that P logically implies Q if the statement P → Q is a
tautology. Notation: P =⇒ Q.
Logical implications
Definition:
We say that P logically implies Q if the statement P → Q is a
tautology. Notation: P =⇒ Q.
Logical implications
Definition:
We say that P logically implies Q if the statement P → Q is a
tautology. Notation: P =⇒ Q.
Logical equivalence
Definition:
We say that P and Q are logically equivalent to mean that
necessarily P is true iff Q is true. Notation: P ⇔ Q.
Claim
The statement ”If Fred is skilled at programming, then he is
effecient at using the Python programming language” is
logically equivalent to ”If Fred is not effecient at using the
Python programming language, then he is not skilled at
programming.”
11 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Logical equivalence
Definition:
We say that P and Q are logically equivalent to mean that
necessarily P is true iff Q is true. Notation: P ⇔ Q.
Claim
The statement ”If Fred is skilled at programming, then he is
effecient at using the Python programming language” is
logically equivalent to ”If Fred is not effecient at using the
Python programming language, then he is not skilled at
programming.”
11 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Logical equivalence
Definition:
We say that P and Q are logically equivalent to mean that
necessarily P is true iff Q is true. Notation: P ⇔ Q.
Claim
The statement ”If Fred is skilled at programming, then he is
effecient at using the Python programming language” is
logically equivalent to ”If Fred is not effecient at using the
Python programming language, then he is not skilled at
programming.”
11 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Logical equivalence
Definition:
We say that P and Q are logically equivalent to mean that
necessarily P is true iff Q is true. Notation: P ⇔ Q.
Claim
The statement ”If Fred is skilled at programming, then he is
effecient at using the Python programming language” is
logically equivalent to ”If Fred is not effecient at using the
Python programming language, then he is not skilled at
programming.”
11 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Definition:
We say that P and Q are logically equivalent if the statement
P ↔ Q is a tautology.
1 P → Q ⇔ ¬Q → ¬P (Contrapositive)
2 ¬(P ∧ Q) ⇔ ¬P ∨ ¬Q (De Morgan’s Law)
3 ¬(P ∨ Q) ⇔ ¬P ∧ ¬Q (De Morgan’s Law)
12 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Definition:
We say that P and Q are logically equivalent if the statement
P ↔ Q is a tautology.
1 P → Q ⇔ ¬Q → ¬P (Contrapositive)
2 ¬(P ∧ Q) ⇔ ¬P ∨ ¬Q (De Morgan’s Law)
3 ¬(P ∨ Q) ⇔ ¬P ∧ ¬Q (De Morgan’s Law)
12 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Definition:
We say that P and Q are logically equivalent if the statement
P ↔ Q is a tautology.
1 P → Q ⇔ ¬Q → ¬P (Contrapositive)
2 ¬(P ∧ Q) ⇔ ¬P ∨ ¬Q (De Morgan’s Law)
3 ¬(P ∨ Q) ⇔ ¬P ∧ ¬Q (De Morgan’s Law)
12 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Example
Determine whether the second statement is the inverse,
converse or contrapositive of the first statement or none:
”Going to the beach is sufficient for me to have fun”; and ”Not
going to the beach is sufficient for me not to have fun.”
13 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Example
Determine whether the second statement is the inverse,
converse or contrapositive of the first statement or none:
”Going to the beach is sufficient for me to have fun”; and ”Not
going to the beach is sufficient for me not to have fun.”
13 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Example
Determine whether the second statement is the inverse,
converse or contrapositive of the first statement or none:
”Going to the beach is sufficient for me to have fun”; and ”Not
going to the beach is sufficient for me not to have fun.”
13 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Example
Determine whether the second statement is the inverse,
converse or contrapositive of the first statement or none:
”Going to the beach is sufficient for me to have fun”; and ”Not
going to the beach is sufficient for me not to have fun.”
13 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Example
Determine whether the second statement is the inverse,
converse or contrapositive of the first statement or none:
”Going to the beach is sufficient for me to have fun”; and ”Not
going to the beach is sufficient for me not to have fun.”
13 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Example
Determine whether the second statement is the inverse,
converse or contrapositive of the first statement or none:
”Going to the beach is sufficient for me to have fun”; and ”Not
going to the beach is sufficient for me not to have fun.”
13 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Outline
4 Logical argument
5 Quantifiers
14 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Valid arguments
Example (Argument)
If a Tesla car is cheap or is energy efficient, then it will not make
money for the manufaturer. If the Tesla car is painted black,
then it will make money for the manufacturer. The car is cheap.
Therefore the Tesla car is not painted black.
Valid arguments
Example (Argument)
If a Tesla car is cheap or is energy efficient, then it will not make
money for the manufaturer. If the Tesla car is painted black,
then it will make money for the manufacturer. The car is cheap.
Therefore the Tesla car is not painted black.
Valid arguments
Example (Argument)
If a Tesla car is cheap or is energy efficient, then it will not make
money for the manufaturer. If the Tesla car is painted black,
then it will make money for the manufacturer. The car is cheap.
Therefore the Tesla car is not painted black.
Valid arguments
Example (Argument)
If a Tesla car is cheap or is energy efficient, then it will not make
money for the manufaturer. If the Tesla car is painted black,
then it will make money for the manufacturer. The car is cheap.
Therefore the Tesla car is not painted black.
Arguments
(C ∨ E) → ¬M Alternatively:
B→M [(C ∨ E) → ¬M] ∧ [B → M] ∧ C =⇒ ¬B.
C
¬B,
The above statement is valid if the conditional
[(C ∨ E) → ¬M] ∧ [B → M] ∧ C → ¬B is a tautology.
Some terms and meaning
Arguments
(C ∨ E) → ¬M Alternatively:
B→M [(C ∨ E) → ¬M] ∧ [B → M] ∧ C =⇒ ¬B.
C
¬B,
The above statement is valid if the conditional
[(C ∨ E) → ¬M] ∧ [B → M] ∧ C → ¬B is a tautology.
Some terms and meaning
Arguments
(C ∨ E) → ¬M Alternatively:
B→M [(C ∨ E) → ¬M] ∧ [B → M] ∧ C =⇒ ¬B.
C
¬B,
The above statement is valid if the conditional
[(C ∨ E) → ¬M] ∧ [B → M] ∧ C → ¬B is a tautology.
Some terms and meaning
Arguments
(C ∨ E) → ¬M Alternatively:
B→M [(C ∨ E) → ¬M] ∧ [B → M] ∧ C =⇒ ¬B.
C
¬B,
The above statement is valid if the conditional
[(C ∨ E) → ¬M] ∧ [B → M] ∧ C → ¬B is a tautology.
Some terms and meaning
Arguments
(C ∨ E) → ¬M Alternatively:
B→M [(C ∨ E) → ¬M] ∧ [B → M] ∧ C =⇒ ¬B.
C
¬B,
The above statement is valid if the conditional
[(C ∨ E) → ¬M] ∧ [B → M] ∧ C → ¬B is a tautology.
Some terms and meaning
Arguments
(C ∨ E) → ¬M Alternatively:
B→M [(C ∨ E) → ¬M] ∧ [B → M] ∧ C =⇒ ¬B.
C
¬B,
The above statement is valid if the conditional
[(C ∨ E) → ¬M] ∧ [B → M] ∧ C → ¬B is a tautology.
Some terms and meaning
Outline
4 Logical argument
5 Quantifiers
17 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Quantifiers
The following statements are not complete.
1 If x ≥ 2 then x 3 ≥ 8.
2 If w = 3, then z w ̸= 0.
Any type of logic with quantifiers is called Predicate logic.
Quantifiers
The following statements are not complete.
1 If x ≥ 2 then x 3 ≥ 8.
2 If w = 3, then z w ̸= 0.
Any type of logic with quantifiers is called Predicate logic.
Quantifiers
The following statements are not complete.
1 If x ≥ 2 then x 3 ≥ 8.
2 If w = 3, then z w ̸= 0.
Any type of logic with quantifiers is called Predicate logic.
Definition of terms
19 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Definition of terms
19 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Definition of terms
19 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Definition of terms
19 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Definition of terms
19 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Definition of terms
19 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Definition of terms
19 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Universal quantifier
20 / 21
Using truth tables Tautology and contradiction Relations between statements Logical argument Quantifiers
Existential quantifier
Let P(x) be an expression with a free variable x.
Let U be the collection of all possible values of x.