Mathematical Logic
Mathematical Logic
Module 2
Mathematical
Language & Symbols
Mathematics in the Modern World
01 02
Mathematics as a Sets, Functions, and Binary
Language Operations
The linguistic functions of Basic concepts of
mathematics mathematical language
03 04
Mathematical Logic Practice Exercises
Albert Einstein
Some Elementary Logic
Skills Check
Determine whether the given sentence is a statement. If
it is, state whether it is true or false.
1. 𝑥 +6 = 5
2. Study your MMW notes.
3. 6>0
4. Wow! Math is amazing!
5. The heart has four chambers: two atria and two
ventricles.
Logic Statements
Skills Check
Determine whether the given sentence is a statement. If
it is, state whether it is true or false.
1. 𝑥 + 6 = 5 Not a statement. (An open statement)
2. Study your MMW notes. Not a statement. (An
imperative sentence)
3. 6 > 0 STATEMENT which is true.
Logic Statements
Skills Check
Determine whether the given sentence is a statement. If
it is, state whether it is true or false.
4. Wow! Math is amazing! Not a statement. (An
exclamatory sentence)
5. The heart has four chambers: two atria and two
ventricles. STATEMENT which is true.
Symbolic Logic
Brief History
𝑝 𝑜𝑟 𝑞 𝑜𝑟 𝑝∨𝑞 Disjunction
Grouping Symbols
[𝒑 ˄ (𝒒 ˅ 𝒓 ˅ 𝒔)] → 𝒕
Example:
𝒑: Fishes can swim. True
~𝒑: Fishes cannot swim. False
1. 𝒑: Today is Monday.
2. 𝒒: 𝟐 is a rational number.
2. 𝒒: 𝟐 is a rational number.
Answers:
𝑇 𝐹
1. 𝒒: 𝟐 is a rational number.
𝐹 𝑇
~𝒒: 𝟐 is an irrational number.
Example:
𝒑: Yesterday is Wednesday.
𝒒: Tomorrow is Friday.
Example:
𝒑: I am going to the park.
𝒒: I am going to sleep all day.
● 𝟗≥𝟒
● 𝟗≥𝟒
𝒑: 𝟗 = 𝟒 𝒒: 𝟗 > 𝟒
Examples
Determine whether each compound statement is true of false.
● 𝟗≥𝟒
𝒑: 𝟗 = 𝟒 𝒒: 𝟗 > 𝟒
𝒑 𝒒 𝒑∨𝒒
Examples
Determine whether each compound statement is true of false.
● 𝟗≥𝟒
𝒑: 𝟗 = 𝟒 𝒒: 𝟗 > 𝟒
𝒑 𝒒 𝒑∨𝒒
𝐹 𝑇
Examples
Determine whether each compound statement is true of false.
● 𝟗≥𝟒
𝒑: 𝟗 = 𝟒 𝒒: 𝟗 > 𝟒
𝒑 𝒒 𝒑∨𝒒
𝐹 𝑇 𝑇
Examples
Determine whether each compound statement is true of false.
𝒑 𝒒 𝒑∧𝒒
𝑇 𝐹 𝐹
Conditional
Conditional Statements
Conditional Statements are usually expressed as “If 𝒑
then 𝒒” denoted by 𝒑 → 𝒒 (read as “𝒑 implies 𝒒”) where 𝒑 is
a hypothesis/premise and 𝒒 is a conclusion.
Example:
𝒑: Two triangles are similar.
𝒒: The corresponding sides are proportional.
Converse Form:
𝒒 → 𝒑: If it is a parallelogram, then it is a rectangle.
Example
Write the converse, inverse and contrapositive of the
given sentence.
Inverse Form:
~𝒑 → ~𝒒: If it is not a rectangle, then it is not a
parallelogram.
Example
Write the converse, inverse and contrapositive of the
given sentence.
Contrapositive Form:
~𝒒 → ~𝒑: If it is not a parallelogram, then it is not a
rectangle.
Biconditional
Biconditional Statements
Biconditional statements are expressed as 𝒑 ↔ 𝒒 which
represents “𝒑 if and only if 𝒒.” This statement is equivalent
to (𝒑 → 𝒒) ∧ (𝒒 → 𝒑)
Example:
𝒑: You pass the exam.
𝒒: You get a score of 75% or higher.
● 𝒙 + 𝟒 = 𝟕 if and only if 𝒙 = 𝟑.
● If 𝟓 > 𝟑, then 𝟐 + 𝟕 = 𝟑.
Examples
Identify the truth value of the following statements.
● 𝒙 + 𝟒 = 𝟕 if and only if 𝒙 = 𝟑.
○ Both equations are true when 𝑥 = 3, and both are
false when 𝒙 ≠ 𝟑.
● If 𝟓 > 𝟑, then 𝟐 + 𝟕 = 𝟑.
𝑇 𝑇 𝑇
𝑇 𝐹 𝐹
𝑇 𝐹 𝑇 𝐹 𝑇 𝑇
𝐹 𝑇 𝑇
𝐹 𝐹 𝐹 𝐹 𝐹 𝑇
Example 1
Construct a table for: 𝒑 𝒒 ~𝒑 ~𝒑 ∨ 𝒒
~𝒑 ∨ 𝒒
𝑇 𝑇 𝐹 𝑇
𝒑 𝒒 𝒑∨𝒒
𝑇 𝑇 𝑇
𝑇 𝐹 𝐹
𝑇 𝐹 𝑇 𝐹 𝑇 𝑇
𝐹 𝑇 𝑇
𝐹 𝐹 𝐹 𝐹 𝐹 𝑇
Example 1
Construct a table for: 𝒑 𝒒 ~𝒑 ~𝒑 ∨ 𝒒
~𝒑 ∨ 𝒒
𝑇 𝑇 𝐹 𝑇
𝒑 𝒒 𝒑∨𝒒
𝑇 𝑇 𝑇
𝑇 𝐹 𝐹 𝐹
𝑇 𝐹 𝑇 𝐹 𝑇 𝑇
𝐹 𝑇 𝑇
𝐹 𝐹 𝐹 𝐹 𝐹 𝑇
Example 1
Construct a table for: 𝒑 𝒒 ~𝒑 ~𝒑 ∨ 𝒒
~𝒑 ∨ 𝒒
𝑇 𝑇 𝐹 𝑇
𝒑 𝒒 𝒑∨𝒒
𝑇 𝑇 𝑇
𝑇 𝐹 𝐹 𝐹
𝑇 𝐹 𝑇 𝐹 𝑇 𝑇 𝑇
𝐹 𝑇 𝑇
𝐹 𝐹 𝐹 𝐹 𝐹 𝑇
Example 1
Construct a table for: 𝒑 𝒒 ~𝒑 ~𝒑 ∨ 𝒒
~𝒑 ∨ 𝒒
𝑇 𝑇 𝐹 𝑇
𝒑 𝒒 𝒑∨𝒒
𝑇 𝑇 𝑇
𝑇 𝐹 𝐹 𝐹
𝑇 𝐹 𝑇 𝐹 𝑇 𝑇 𝑇
𝐹 𝑇 𝑇
𝐹 𝐹 𝐹 𝐹 𝐹 𝑇 𝑇
Example 1
Truth Table for: 𝒑 𝒒 ~𝒑 ~𝒑 ∨ 𝒒
~𝒑 ∨ 𝒒
𝑇 𝑇 𝐹 𝑇
𝑇 𝐹 𝐹 𝐹
𝐹 𝑇 𝑇 𝑇
𝐹 𝐹 𝑇 𝑇
Example 2
Construct a table for: 𝒑 𝒒
~𝒑 ∨ 𝒒 ∧ ~𝒒
𝑇 𝑇
𝑇 𝐹
𝐹 𝑇
𝐹 𝐹
Example 2
Construct a table for: 𝒑 𝒒 ~𝒑
~𝒑 ∨ 𝒒 ∧ ~𝒒
𝑇 𝑇 𝐹
𝑇 𝐹 𝐹
𝐹 𝑇 𝑇
𝐹 𝐹 𝑇
Example 2
Construct a table for: 𝒑 𝒒 ~𝒑 ~𝒒
~𝒑 ∨ 𝒒 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹
𝑇 𝐹 𝐹 𝑇
𝐹 𝑇 𝑇 𝐹
𝐹 𝐹 𝑇 𝑇
Construct a table for:
Example 2 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝒑 𝒒 ~𝒑 ~𝒒 ~𝒑 ∨ 𝒒 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹
𝑇 𝐹 𝐹 𝑇
𝐹 𝑇 𝑇 𝐹
𝐹 𝐹 𝑇 𝑇
Construct a table for:
Example 2 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝒑 𝒒 ~𝒑 ~𝒒 ~𝒑 ∨ 𝒒 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹
𝑇 𝐹 𝐹 𝑇
𝐹 𝑇 𝑇 𝐹
𝐹 𝐹 𝑇 𝑇
Construct a table for:
Example 2 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝒑 𝒒 ~𝒑 ~𝒒 ~𝒑 ∨ 𝒒 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇
𝑇 𝐹 𝐹 𝑇 𝐹
𝐹 𝑇 𝑇 𝐹 𝑇
𝐹 𝐹 𝑇 𝑇 𝑇
Construct a table for:
Example 2 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝒑 𝒒 ~𝒑 ~𝒒 ~𝒑 ∨ 𝒒 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇
𝑇 𝐹 𝐹 𝑇 𝐹
𝐹 𝑇 𝑇 𝐹 𝑇
𝐹 𝐹 𝑇 𝑇 𝑇
Construct a table for:
Example 2 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝒑 𝒒 ~𝒑 ~𝒒 ~𝒑 ∨ 𝒒 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇 𝐹
𝑇 𝐹 𝐹 𝑇 𝐹
𝐹 𝑇 𝑇 𝐹 𝑇
𝐹 𝐹 𝑇 𝑇 𝑇
Construct a table for:
Example 2 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝒑 𝒒 ~𝒑 ~𝒒 ~𝒑 ∨ 𝒒 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇 𝐹
𝑇 𝐹 𝐹 𝑇 𝐹 𝐹
𝐹 𝑇 𝑇 𝐹 𝑇
𝐹 𝐹 𝑇 𝑇 𝑇
Construct a table for:
Example 2 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝒑 𝒒 ~𝒑 ~𝒒 ~𝒑 ∨ 𝒒 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇 𝐹
𝑇 𝐹 𝐹 𝑇 𝐹 𝐹
𝐹 𝑇 𝑇 𝐹 𝑇 𝐹
𝐹 𝐹 𝑇 𝑇 𝑇
Construct a table for:
Example 2 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝒑 𝒒 ~𝒑 ~𝒒 ~𝒑 ∨ 𝒒 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇 𝐹
𝑇 𝐹 𝐹 𝑇 𝐹 𝐹
𝐹 𝑇 𝑇 𝐹 𝑇 𝐹
𝐹 𝐹 𝑇 𝑇 𝑇 𝑇
Example 2 Truth Table for: ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝒑 𝒒 ~𝒑 ~𝒒 ~𝒑 ∨ 𝒒 ~𝒑 ∨ 𝒒 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇 𝐹
𝑇 𝐹 𝐹 𝑇 𝐹 𝐹
𝐹 𝑇 𝑇 𝐹 𝑇 𝐹
𝐹 𝐹 𝑇 𝑇 𝑇 𝑇
Let us try… (Skills Check #3)
𝑎 𝑝 ∧ 𝑞 → ~𝑞
(𝑏) 𝑞 ∧ ~𝑞 ∨ 𝑝
𝑐 ∼ 𝑟 ∧ (𝑝 ∨ ∼ 𝑞)
(𝑑) 𝑝 ∨ ∼ (𝑞 → 𝑟)
Logical Equivalence
Tautologies, Contradictions,
Logical Equivalence, and Fallacies
𝒑 𝒒 ~𝒑 𝒑→𝒒 ~𝒑 ∨ 𝒒
𝑇 𝑇
𝑇 𝐹
𝐹 𝑇
𝐹 𝐹
Truth Table to show the equivalence of
𝒑 → 𝒒 and ~𝒑 ∨ 𝒒.
𝒑 𝒒 ~𝒑 𝒑→𝒒 ~𝒑 ∨ 𝒒
𝑇 𝑇 𝐹
𝑇 𝐹 𝐹
𝐹 𝑇 𝑇
𝐹 𝐹 𝑇
Truth Table to show the equivalence of
𝒑 → 𝒒 and ~𝒑 ∨ 𝒒.
𝒑 𝒒 ~𝒑 𝒑→𝒒 ~𝒑 ∨ 𝒒
𝑇 𝑇 𝐹 T
𝑇 𝐹 𝐹 F
𝐹 𝑇 𝑇 T
𝐹 𝐹 𝑇 T
Truth Table to show the equivalence of
𝒑 → 𝒒 and ~𝒑 ∨ 𝒒.
𝒑 𝒒 ~𝒑 𝒑→𝒒 ~𝒑 ∨ 𝒒
𝑇 𝑇 𝐹 T T
𝑇 𝐹 𝐹 F F
𝐹 𝑇 𝑇 T T
𝐹 𝐹 𝑇 T T
Notation for Equivalent Statements
● The notation 𝒑 ≡ 𝒒 is used to indicate that
the statements 𝒑 and 𝒒 are equivalent.
● From the example, we can write that:
○ 𝒑 → 𝒒 ≡ ~𝒑 ∨ 𝒒
De Morgan’s Laws
De Morgan’s Laws for Statements
~ 𝒑 ∨ 𝒒 ≡ ~𝒑 ∧ ~𝒒
~ 𝒑 ∧ 𝒒 ≡ ~𝒑 ∨ ~𝒒
De Morgan’s Laws for Statements
Show that ~ 𝒑 ∨ 𝒒 and ~𝒑 ∧ ~𝒒 are equivalent statements.
𝒑 𝒒 ~𝒑 ~𝒒 ~ 𝒑∨𝒒 ~𝒑 ∧ ~𝒒
𝑇 𝑇
𝑇 𝐹
𝐹 𝑇
𝐹 𝐹
De Morgan’s Laws for Statements
Show that ~ 𝒑 ∨ 𝒒 and ~𝒑 ∧ ~𝒒 are equivalent statements.
𝒑 𝒒 ~𝒑 ~𝒒 ~ 𝒑∨𝒒 ~𝒑 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹
𝑇 𝐹 𝐹 𝑇
𝐹 𝑇 𝑇 𝐹
𝐹 𝐹 𝑇 𝑇
De Morgan’s Laws for Statements
Show that ~ 𝒑 ∨ 𝒒 and ~𝒑 ∧ ~𝒒 are equivalent statements.
𝒑 𝒒 ~𝒑 ~𝒒 𝒑∨𝒒 ~ 𝒑∨𝒒 ~𝒑 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇
𝑇 𝐹 𝐹 𝑇 𝑇
𝐹 𝑇 𝑇 𝐹 𝑇
𝐹 𝐹 𝑇 𝑇 𝐹
De Morgan’s Laws for Statements
Show that ~ 𝒑 ∨ 𝒒 and ~𝒑 ∧ ~𝒒 are equivalent statements.
𝒑 𝒒 ~𝒑 ~𝒒 𝒑∨𝒒 ~ 𝒑∨𝒒 ~𝒑 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇 F
𝑇 𝐹 𝐹 𝑇 𝑇 F
𝐹 𝑇 𝑇 𝐹 𝑇 F
𝐹 𝐹 𝑇 𝑇 𝐹 T
De Morgan’s Laws for Statements
Show that ~ 𝒑 ∨ 𝒒 and ~𝒑 ∧ ~𝒒 are equivalent statements.
𝒑 𝒒 ~𝒑 ~𝒒 𝒑∨𝒒 ~ 𝒑∨𝒒 ~𝒑 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇 F
𝑇 𝐹 𝐹 𝑇 𝑇 F
𝐹 𝑇 𝑇 𝐹 𝑇 F
𝐹 𝐹 𝑇 𝑇 𝐹 T
De Morgan’s Laws for Statements
Show that ~ 𝒑 ∨ 𝒒 and ~𝒑 ∧ ~𝒒 are equivalent statements.
𝒑 𝒒 ~𝒑 ~𝒒 𝒑∨𝒒 ~ 𝒑∨𝒒 ~𝒑 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇 F F
𝑇 𝐹 𝐹 𝑇 𝑇 F F
𝐹 𝑇 𝑇 𝐹 𝑇 F F
𝐹 𝐹 𝑇 𝑇 𝐹 T T
De Morgan’s Laws for Statements
Show that ~ 𝒑 ∨ 𝒒 and ~𝒑 ∧ ~𝒒 are equivalent statements.
𝒑 𝒒 ~𝒑 ~𝒒 𝒑∨𝒒 ~ 𝒑∨𝒒 ~𝒑 ∧ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇 F F
𝑇 𝐹 𝐹 𝑇 𝑇 F F
𝐹 𝑇 𝑇 𝐹 𝑇 F F
𝐹 𝐹 𝑇 𝑇 𝐹 T T
Hence, ~ 𝒑 ∨ 𝒒 ≡ ~𝒑 ∧ ~𝒒.
De Morgan’s Laws for Statements
Show that ~ 𝒑 ∧ 𝒒 and ~𝒑 ∨ ~𝒒 are equivalent statements.
𝒑 𝒒 ~𝒑 ~𝒒 𝒑∧𝒒 ~ 𝒑∧𝒒 ~𝒑 ∨ ~𝒒
𝑇 𝑇
𝑇 𝐹
𝐹 𝑇
𝐹 𝐹
De Morgan’s Laws for Statements
Show that ~ 𝒑 ∧ 𝒒 and ~𝒑 ∨ ~𝒒 are equivalent statements.
𝒑 𝒒 ~𝒑 ~𝒒 𝒑∧𝒒 ~ 𝒑∧𝒒 ~𝒑 ∨ ~𝒒
𝑇 𝑇 𝐹 𝐹
𝑇 𝐹 𝐹 𝑇
𝐹 𝑇 𝑇 𝐹
𝐹 𝐹 𝑇 𝑇
De Morgan’s Laws for Statements
Show that ~ 𝒑 ∧ 𝒒 and ~𝒑 ∨ ~𝒒 are equivalent statements.
𝒑 𝒒 ~𝒑 ~𝒒 𝒑∧𝒒 ~ 𝒑∧𝒒 ~𝒑 ∨ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇
𝑇 𝐹 𝐹 𝑇 𝐹
𝐹 𝑇 𝑇 𝐹 𝐹
𝐹 𝐹 𝑇 𝑇 𝐹
De Morgan’s Laws for Statements
Show that ~ 𝒑 ∧ 𝒒 and ~𝒑 ∨ ~𝒒 are equivalent statements.
𝒑 𝒒 ~𝒑 ~𝒒 𝒑∧𝒒 ~ 𝒑∧𝒒 ~𝒑 ∨ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇 F
𝑇 𝐹 𝐹 𝑇 𝐹 T
𝐹 𝑇 𝑇 𝐹 𝐹 T
𝐹 𝐹 𝑇 𝑇 𝐹 T
De Morgan’s Laws for Statements
Show that ~ 𝒑 ∧ 𝒒 and ~𝒑 ∨ ~𝒒 are equivalent statements.
𝒑 𝒒 ~𝒑 ~𝒒 𝒑∧𝒒 ~ 𝒑∧𝒒 ~𝒑 ∨ ~𝒒
𝑇 𝑇 𝐹 𝐹 𝑇 F F
𝑇 𝐹 𝐹 𝑇 𝐹 T T
𝐹 𝑇 𝑇 𝐹 𝐹 T T
𝐹 𝐹 𝑇 𝑇 𝐹 T T
Hence, ~ 𝒑 ∧ 𝒒 ≡ ~𝒑 ∨ ~𝒒.
Let us try this…
Solution:
Let 𝒑 represent the statement “I graduated.”
Let 𝒒 represent the statement “I got a job.”
Let us try this…
Given: “It is not true that, I graduated or I got a job.”
Solution:
Let 𝒑 represent the statement “I graduated.”
Let 𝒒 represent the statement “I got a job.”
In symbolic form, the original sentence is, ~ 𝒑 ∨ 𝒒 . One of De
Morgan’s laws states that this is equivalent to ~𝒑 ∧ ~𝒒.
Thus, a sentence that is equivalent to the original sentence is
Solution:
Let 𝒑 represent the statement “I am going to the dance.”
Let 𝒒 represent the statement “I am going to the game.”
Let us try this…
Given: “It is not true that, I am going to the dance and I am
going to the game.”
Solution:
Let 𝒑 represent the statement “I am going to the dance.”
Let 𝒒 represent the statement “I am going to the game.”
● uses the words “some”, “there exists” and “at least one”
● Examples:
GIMB
04
Practice
Exercises
Skills Check Up
Skills Check Up Tasks are posted in
CeLo+.
These tasks are not graded but you are
required to accomplish these tasks.
Answer Keys will be visible after your
Skills Check Up attempt.
Graded Activities are posted
in CeLo+.
Please take note of the
deadline of submission.
MMW Quiz #2
Monday/Wednesday Schedule:
September 20, 2021
Tuesday/Thursday Class Schedule:
September 20, 2021