Professional Documents
Culture Documents
Logic
About This Module
This module is will elaborate the discussion on logic.
Student will be introduced to more symbols and
applications of logic in arguments.
Substopics
Learn how to quantify conditions applied on elements of
sets.
Learn more about the meaning and truth values of
different logic operators. Identify logical equivalences
and creating truth tables.
Apply logic to simple arguments. Use truth tables and
Euler diagrams to determine the validity of an argument.
You may stop here and proceed
to the subtopic materials or you
may continue and read through
the full course materials.
Logic
Logic Quantifiers
Intended Learning
Outcomes
• Understand logic symbols
• Apply knowledge on the set of real numbers to
determine the truth value of logic statements
Logic Quantifier
The domain of discourse is the set of all values under
consideration in a given proposition.
A proposition defined for an arbitrary value in a given set
may be denoted like a function of that variable.
Example:
Symbol ∀ ∃
Solution:
Let 𝐴(𝑥) denote the statement “𝑥 has studied algebra.”
Solution:
A. Since a real number 𝑥 will always be smaller than 𝑥 + 1, ∀𝑥 𝑃(𝑥), has the
truth value TRUE or T.
B. Since we can find at least one real number, 𝑥 = 1 such that
(𝑥 + 1) > 𝑥 is true, then ∃𝑥 𝑃(𝑥) has a truth value of TRUE, T.
Let 𝑅(𝑥) be “𝑥 < 2”,
1. ∀𝑥, 𝑃(𝑥) if 𝑥 ∈ ℝ
Let 𝑃 𝑥 : 𝑥 + 1 > 0
1. ∀𝑥, 𝑃(𝑥) if 𝑥 ∈ ℝ
2. ∀𝑥, 𝑃 𝑥 if 𝑥 ∈ ℕ
Let 𝑃 𝑥 : 𝑥 + 1 > 0
1. ∀𝑥, 𝑃(𝑥) if 𝑥 ∈ ℝ
2. ∀𝑥, 𝑃 𝑥 if 𝑥 ∈ ℕ
3. ∃𝑥, 𝑃(𝑥) if 𝑥 ∈ ℤ
Let 𝑃 𝑥 : 𝑥 + 1 > 0
1. ∀𝑥, 𝑃(𝑥) if 𝑥 ∈ ℝ
2. ∀𝑥, 𝑃 𝑥 if 𝑥 ∈ ℕ
3. ∃𝑥, 𝑃(𝑥) if 𝑥 ∈ ℤ
4. ∃𝑥, 𝑃(𝑥) if 𝑥 ∈ ℕ
Logic
Logic Operators
Intended Learning
Outcomes
• Interpret logic statements
• Construct truth tables
• Identify logical equivalences
Logic Operators
The truth value of a negated
S ~S statement is just the opposite truth
T F value.
F T
Negation
Symbol: ~
Ex:
She is hungry. (ℎ) → She is not hungry. (~ℎ)
Pia is late (𝑙) → Pia is not late. (~𝑙)
It is cold (𝑐) → It is not cold. (~𝑐)
S1 S2 S1 ∧ S2
T T TRUE “And” statement is TRUE only when
T F FALSE BOTH subsentences are TRUE.
F T FALSE Conjunction
F F FALSE Symbol: ∧
Examples:
It is a weekday and a sunny day. 𝑾 ∧ 𝑺
The kid is playing and is happy 𝑷 ∧ 𝑯
The party is fun and the kids are happy. 𝑭 ∧ 𝑯
S1 S2 S1 ∨ S2 An `or' sentence is true when at least
T T TRUE one of the subsentences is TRUE.
That is, an `or' sentence is true when
T F TRUE one, or the other, or both, of the subsentences are
F T TRUE true. Notice that line 1 of the truth table is slightly
F F FALSE different than the English word ‘or'.
Inclusive Disjunction
Examples: Symbol: V or +
Examples:
It is a weekday or a sunny day, but not, weekday and sunny day. 𝑾𝑽𝑺
Either the kids are playing or they tired. 𝑷𝑽𝑻
Either the party is fun or the kids are not happy. 𝑭 𝑽 ~𝑯
S1 S2 S1 → S2
T T TRUE
T F FALSE
S1 implies S2
F T TRUE If S1 then S2
F F TRUE S2 only if S1
S1 is the hypothesis (antecedent).
Examples: S2 is the conclusion (consequence).
If Lea did not eat breakfast then she is hungry. ~𝑃 → 𝑄
Pia waking up late implies she misses her class. 𝐿→ 𝑀
The match is burning only if there is oxygen in the room. 𝑂→𝐵
It is only false when a true statement implies a false statement.
Given an implication 𝒑 → 𝒒, its converse, inverse and
contrapositive are
• Converse proposition: 𝒒→ 𝒑
• Inverse proposition: ~𝒑 → ~𝒒
• Contrapositive proposition: ~𝒒 → ~𝒑
𝑝 𝑞 𝑝 ∨𝑞 ~(𝒑 ∨ 𝒒) ~𝑝 ~𝑞 ~𝒑 ∧ ~𝒒
T T T F F F F
T F T F F T F
F T T F T F F
F F F T T T T
For every possible cases of truth values for 𝒑 and 𝒒, the two statements have the
same truth value. Thus they are logically equivalent.
The following table contains some important logical equivalences.
Logical Equivalence Name
𝒑 ∧𝑻 ⇔ 𝒑 𝒑 ∨ 𝑭⇔𝒑 Identity laws
𝒑 ∨𝑻⇔𝑻 𝒑 ∧ 𝑭⇔𝑭 Domination laws
𝒑 ∨𝒑𝒑 𝒑 ∧𝒑𝒑 Idempotent laws
~(~𝒑) ⇔ 𝒑 Double negation laws
𝒑∨𝒒𝒒∨𝒑 𝒑∧𝒒𝒒∧𝒑 Commutative laws
(𝒑 ∨ 𝒒) ∨ 𝒓 ⇔ 𝒑 ∨ (𝒒 ∨ 𝒓) (𝒑 ∧ 𝒒 ) ∧ 𝒓 ⇔ 𝒑 ∧ (𝒒 ∧ 𝒓) Associative laws
𝒑 ∨ (𝒒 ∧ 𝒓) ⇔ (𝒑 ∨ 𝒒) ∧ (𝒑 ∨ 𝒓) 𝒑 ∧ (𝒒 ∨ 𝒓) (𝒑 ∧ 𝒒) ∨ (𝒑 ∧ 𝒓) Distributive laws
~(𝒑 ∧ 𝒒 ) ~𝒑 ∨ ~𝒒 ~(𝒑 ∨ 𝒒 ) ~𝒑 ∧ ~𝒒 De Morgan’s laws
Tautology – a compound proposition that is ALWAYS
TRUE, regardless of the truth values of the propositions
that occur in it.
Hypothesis: (𝑝 → ~𝑞) ∧ ~𝑝
Conclusion: 𝒒
Argument: 𝒑 → ~𝒒 ∧ ~𝒑 → 𝒒
Determine if the argument is valid.
Statement Symbolic
It will be sunny or cloudy today. 𝑺 ∨ 𝑪
It isn’t sunny. ~𝑺
Therefore, it will be cloudy C. 𝑪
Premise: (𝑆 ∨ 𝐶) ∧ ~ 𝑆
Conclusion: 𝐶
Argument: ((𝑺 ∨ 𝑪) ∧ ~ 𝑺) 𝑪
Determine if the argument is valid.
𝑺 𝑪 ~𝑺 𝑺 ∨ 𝑪 (𝑺 ∨ 𝑪) ∧ ~ 𝑺 𝑺 ∨ 𝑪 ∧ ~𝑺 → 𝑪
T T F T F T
T F F T F T
F T T T T T
F F T F F T
∴ No wizard is a lizard
Magic
Lizards
Wizards
Argument
is VALID
Argument is VALID only if every possible diagram illustrates the
conclusion of the argument.
Time-
Toasters
Made travel
of gold
All toasters are made of gold machines
Time travel
machines Argument
Gold is
INVALID
Toasters
Online references:
Euler Diagram and Argument Analysis, Retrieved from
https://www.youtube.com/watch?v=KCopWgrMFZg
https://www.radford.edu/~wacase/Section%203.5%20math%20116%20spring%202007.
pdf