Set and Logic Exam
Set and Logic Exam
1. What is 𝐴 ∩ 𝐶?
𝐴 ∩ 𝐶 = {2, 4, 6, 8}
II. Use De Morgan’s laws to find the negation of each of the following statements.
1. Juan is rich and happy.
- Let p be “Juan is rich” and let q be “Juan is happy.”
¬ (𝐩 ∧ 𝐪) = ¬𝐩 ∨ ¬ 𝐪, by the De Morgan Law
The negation of the statement is Juan is not rich or Juan is not happy.
III. Construct the truth table for the following propositional form to determine if it is a
tautology or not:
1. (𝐩 ∧ 𝐪) ∨ ~r: NOT TAUTOLOGY
p q r (𝐩 ∧ 𝐪) ~r (𝐩 ∧ 𝐪) ∨ ~r
T T T T F T
T T F T T T
T F T F F F
T F F F T T
F T T F F F
F T F F T T
F F T F F T
F F F F T T
3. (𝐩 ∧ 𝐪) → (𝒑 → 𝒒): TAUTOLOGY
p q (𝐩 ∧ 𝐪) (𝒑 → 𝒒) (𝐩 ∧ 𝐪) → (𝒑 → 𝒒)
T T T T T
T F F F T
F T F T T
F F F T T
4. ~ (𝒑 → 𝒒) → ~q: TAUTOLOGY
p q (𝒑 → 𝒒) ~(𝒑 → 𝒒) ~𝐪 ~ (𝒑 → 𝒒) → ~q
T T T F F T
T F F T T T
F T T F F T
F F T F T T
p q r 𝒑∨𝒓 𝒑 → (𝒑 ∨ 𝒓) 𝒑 → (𝒑 ∨ 𝒓) ∨ 𝒒 ~ 𝒑 → (𝒑 ∨ 𝒓) ∨ 𝒒 ∧ ~𝐫 [𝒑 → (𝒑 ∨ 𝒓) ∨ 𝒒 ∧ ~𝐫 → 𝐩]
𝐫
T T T T T T F F T
T T F T T T T T T
T F T T T T F F T
T F F T T T T T T
F T T T T T F F T
F T F F T T T T F
F F T T T T F F T
F F F F T T T T F
2. [(~𝒑 ∧ 𝒒) → (𝒓 ∨ 𝒔) ∧ (𝒑 → 𝐬) ∧ ~𝐫]
Contrapositive If two angles are not supplementary then they are not linear
pairs.
Inverse If two angles are not linear pairs then they are not
supplementary.