Professional Documents
Culture Documents
Example:
All mathematicians wear sandals
Anyone who wears sandals is an algebraist
Therefore, all mathematicians are algebraists
1.2 Propositions
1.5 Quantifiers
𝐴 = 1, 2, 3, 4
𝐍 Natural numbers 1, 2, 3, 4
Infinite sets
Examples:
𝑍 = integers = … , −2, −1, 0, 1, 2, …
𝑆 = 𝑥 𝑥 is real number and 1 ≤ 𝑥 ≤ 4}
Infinity cardinality
Countable (e.g., 𝐍, 𝐙, 𝐐)
Uncountable (e.g., 𝐑, 𝐂)
𝑋⊆𝑌
𝑋⊂𝑌
Example:
✓ If 𝐴 = 𝑎, 𝑏, 𝑐 , then 𝑃 𝐴 = 𝜙, 𝑎 , 𝑏 , 𝑐 , 𝑎, 𝑏 , 𝑎, 𝑐 , 𝑏, 𝑐 , 𝑎, 𝑏, 𝑐
Intersection:
𝑋 ∩ 𝑌 = 𝑥 𝑥 ∈ 𝑋 and 𝑥 ∈ 𝑌}
Difference:
𝑋 − 𝑌 = 𝑥 𝑥 ∈ 𝑋 and 𝑥 ∉ 𝑌}
Complement:
𝑋ത = 𝑥 𝑥 ∈ 𝑈 and 𝑥 ∉ 𝑋}
Examples: 𝐴 ∩ 𝐵, 𝐴 ∪ 𝐵, 𝐴,ҧ 𝐴 − 𝐵
𝐴ഥ = 𝐴
( j) 0/1 laws:
𝜙ത = 𝑈, 𝑈
ഥ=𝜙
(𝐴 ∪ 𝐵) = 𝐴ҧ ∩ 𝐵,
ത 𝐴 ∩ 𝐵 = 𝐴ҧ ∪ 𝐵ത
Example:
𝑆= 1, 2 , 1, 3 , 1, 7, 10
𝑋 ∈ 𝑥 𝑥 = 𝑆 ڂfor some 𝑋 ∈ 𝑆}
Example:
Example:
𝑆= 1, 4, 5 , 2, 6 , 3 , 7, 8 is a partition of 𝑋 = {1, 2, 3, 4, 5, 6, 7}
𝑋×𝑌 = 𝑥, 𝑦 𝑥 ∈ 𝑋, 𝑦 ∈ 𝑌}
Example:
If 𝑋 = 1, 2, 3 , 𝑌 = 𝑎, 𝑏 ,
then 𝑋 × 𝑌 = 1, 𝑎 , 1, 𝑏 , 2, 𝑎 , 2, 𝑏 , 3, 𝑎 , 3, 𝑏
𝑋1 × 𝑋2 × ⋯ × 𝑋𝑛 = 𝑥1 , 𝑥2 , … , 𝑥𝑛 𝑥1 ∈ 𝑋1 , … , 𝑥𝑛 ∈ 𝑋𝑛 }
Examples:
(a) The only positive integers that divide 7 are 1 and 7 itself
(b) Alfred Hitchcock won an Academy Award in 1940 for directing Rebecca
(c) For every positive integer 𝑛, there is a prime number larger than 𝑛
(d) Earth is the only planet in the universe that contains life
(e) Buy two tickets to the “Unhinged Universe” rock concert for Friday
(f) 𝑥 + 4 = 6
𝒑 𝒒 𝒑∧𝒒
T T T
T F F
F T F
F F F
is false
𝒑 𝒒 𝒑∧𝒒
T T T
T F T
F T T
F F F
is true
𝒑 𝒒 𝒑⊕𝒒
T T F
T F T
F T T
F F F
𝒑 ¬𝑝
T F
F T
is true
Example:
Assume 𝑝 is false, 𝑞 is true, and 𝑟 is false. What is ¬𝑝 ∨ 𝑞 ∧ 𝑟?
𝒑 𝒒 𝒑→𝒒
T T T
T F F
F T T
F F T
Example 1.3.5
𝑝 is true, 𝑞 is false, and 𝑟 is true. Find truth value of each proposition
(a) 𝑝 ∧ 𝑞 → 𝑟
(b) 𝑝 ∨ 𝑞 → ¬𝑟
(c) 𝑝 ∧ 𝑞 → 𝑟
(d) 𝑝 → (𝑞 → 𝑟)
𝒑 𝒒 𝒑⟷𝒒
T T T
T F F
F T F
F F T
Example:
The bug is either in module 17 or in module 81
The bug is a numerical error Hypotheses
or premises
Module 81 has no numerical error
𝑝
𝑝∨𝑞 Disjunctive
Addition ¬𝑝
――― syllogism
(추가법) ―――
∴𝑝∨𝑞 (논리합 삼단논법)
∴𝑞
𝑝∧𝑞 Simplification
―――
∴𝑝 (단순화)
for 𝑖 = 1 to 𝑛
if ¬𝑃 𝑑𝑖
return false
return true
for 𝑖 = 1 to 𝑛
if 𝑃 𝑑𝑖
return true
return false
(b) ¬ ∃𝑥 𝑃 𝑥 ≡ ∀𝑥 ¬𝑃(𝑥)
∀𝑥 𝑃(𝑥)
――――――― Universal instantiation
∴ 𝑃 𝑑 if 𝑑 ∈ 𝐷
∃𝑥 𝑃(𝑥)
――――――― Existential instantiation
∴ 𝑃 𝑑 for some 𝑑 ∈ 𝐷
𝑃 𝑑 for some 𝑑 ∈ 𝐷
――――――― Existential generalization
∴ ∃𝑥 𝑃 𝑥
for 𝑖 = 1 to 𝑛
for 𝑗 = 1 to 𝑛
if ¬𝑃 𝑑𝑖 , 𝑑𝑗
return false
return true
It is true if, for every 𝑥 ∈ 𝑋, there exists at least one 𝑦 ∈ 𝑌 for which
𝑃 𝑥, 𝑦 is true
∀𝑥∃𝑦 (𝑥 + 𝑦 = 0)
∀𝑥∃𝑦 (𝑥 > 𝑦)