Lecture 2
Lecture 2
Lecture 2
Table of Contents
p q
The Foundations: Logic and Proofs
Conditional statement
Imply
p q
p q ≡ ┐q ┐p
q p ≡ ┐p ┐q
The Foundations: Logic and Proofs
Propositional Equivalences:
Compound proposition
Compound
proposition
≡
⇔
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Example:
The Foundations: Logic and Proofs
Logically
Equivalences
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
¬ (p → q) → p
≡ ¬ (¬ p V q) → p
≡ (p ∧ ¬ q) → p
≡ ¬ (p ∧ ¬ q) V p
≡ (¬ p V q) V p
≡ (¬ p V p) V q
≡TVq
≡T
The Foundations: Logic and Proofs
Predicates and Quantifiers
The Foundations: Logic and Proofs
Predicates and Quantifiers
➢ P(2,3) ^ Q(2,1,5)
➢ P(2,1) Q(3,1,3)
The Foundations: Logic and Proofs
Example:
Let P(x,y) denote the statement “x +y ≤ 4.” and Q(x,y,z) denote the
statement “ x+2y+5z > 20”
What are these truth values?
Quantifiers
Universal Existential
The Foundations: Logic and Proofs
Quantifiers
Universal Existential
The Foundations: Logic and Proofs
Quantifiers
Universal Existential
The Foundations: Logic and Proofs
Universal
Existential
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
The Foundations: Logic and Proofs
Example 5:
The Foundations: Logic and Proofs
Example 5:
T T F
F T F
The Foundations: Logic and Proofs
Translate into English
Example1:
Express the statement “Every student in this class has studied calculus.
𝐀𝐧𝐬𝐰𝐞𝐫
The Foundations: Logic and Proofs
𝐀𝐧𝐬𝐰𝐞𝐫
The Foundations: Logic and Proofs
𝐀𝐧𝐬𝐰𝐞𝐫
The Foundations: Logic and Proofs
𝐀𝐧𝐬𝐰𝐞𝐫
The Foundations: Logic and Proofs
Precedence of Quantifiers:
The Foundations: Logic and Proofs
Negating Quantified Expressions
1
The Foundations: Logic and Proofs
∀𝒙𝑷(𝒙) :
1
"Every student in your class has taken a course in calculus"
"There is at least one student in your class who has not taken a course in calculus"
¬∀𝒙𝑷(𝒙) ≡ ∃𝒙¬𝑷(𝒙)
The Foundations: Logic and Proofs
2
The Foundations: Logic and Proofs
2
∃𝒙𝑷(𝒙) :
“At least one student in your class has taken a course in calculus"
1. ¬∀𝑥(𝐴 ∨ 𝐵)
2. ቀ𝐴∧ (𝐵 ∨ 𝐶))
3. ¬∃𝑥 𝐴∧ (𝐵 ∨ 𝐶)
4. 𝐴∧ (𝐴 ∨ 𝐶)
5. 𝐴∧ (𝐴 ∨ 𝐶)
6. ¬∀𝑥 𝐴∧ (𝐴𝑉𝐶)
The Foundations: Logic and Proofs
Answer
1. ¬∀𝑥(𝐴 ∨ 𝐵) 1. ¬∀𝑥(𝐴 ∨ 𝐵) = ∃𝑥(𝐴᪄ ∧ 𝐵)
᪄
4. 𝐴∧ (𝐴 ∨ 𝐶) 4. 𝐴∧ (𝐴 ∨ 𝐶 ቁ = 𝐴᪄ ∨ (𝐴 ∨ 𝐶) = 𝐴᪄ ∨ (𝐴᪄ ∧ 𝐶)
᪄ = 𝐴᪄
• Another Solution: ൫A∧ (A ∨ C) = A → So: 𝐴∧ (𝐴 ∨ 𝐶 is 𝐴᪄
5. 𝐴∧ (𝐴 ∨ 𝐶) 5. ¬∀𝑥 𝐴∧ (𝐴 ∨ 𝐶)
Therefore,
"You can log onto the network."
The Foundations: Logic and Proofs
Arguments in Propositional Logic
Consider the following argument involving propositions
(which, by definition, is a sequence of propositions):
"If you have a current password, then you can log onto the network."
"You have a current password." Premises
Therefore,
"You can log onto the network." Conclusion
The Foundations: Logic and Proofs
𝑝→ 𝑞
𝑝 Premises
∴𝑞 Conclusion
The Foundations: Logic and Proofs
Valid Arguments
An argument in propositional logic is a sequence of
propositions. All the proposition in the argument are called
premises and the final proposition is called the conclusion.
∀
The argument is valid if ∧ (∀ Premises) → conclusion is a tautology.
The Foundations: Logic and Proofs
Valid Arguments
We can always use a truth table to show that an argument form is valid.
Premise 1 Premise 2 Conclusion
𝒑 𝒒 𝒑→ 𝒒 𝒑 (𝒑 → 𝒒) ∧ 𝒑 𝒒 ((𝒑 → 𝒒) ∧ 𝒑) → 𝒒
𝐓 𝐓 𝐓 𝐓 𝐓 𝐓 𝐓
𝐓 𝐅 𝐅 𝐓 𝐅 𝐅 𝐓
𝐅 𝐓 𝐓 𝐅 𝐅 𝐓 𝐓
𝑝→ 𝑞
𝐅 𝐅 𝐓 𝐅 𝐅 𝐅 𝐓
𝑝
So, this argument is valid
𝑝 → 𝑞 ∧ 𝑝 → 𝑞 is a tautology
∴𝑞
Critical Rows: The critical rows are those rows where the premises have truth value T.
The Foundations: Logic and Proofs
Example1
Using the truth table to show that the hypotheses
𝑝∨𝑞
¬𝑝 ∨ 𝑟
lead to the conclusion
𝑞∨𝑟
The Foundations: Logic and Proofs
Example1
Premise 1 Premise 2 Conclusion
𝑝∨𝑞
𝒑 𝒒 𝒓 𝒑∨𝒒 ¬𝒑 ¬𝒑 ∨ 𝒓 (𝒑 ∨ 𝒒) ∧ (¬𝒑 ∨ 𝒓) 𝒒 ∨ 𝒓
¬𝑝 ∨ 𝑟
𝐓 𝐓 𝐓 𝐓 𝐅 𝐓 𝐓 𝐓
----------- 𝐓 𝐓 𝐅 𝐓 𝐅 𝐅 𝐅 𝐓
𝐓 𝐅 𝐓 𝐓 𝐅 𝐓 𝐓 𝐓
𝑞∨𝑟 𝐓 𝐅 𝐅 𝐓 𝐅 𝐅 𝐅 𝐅
𝐅 𝐓 𝐓 𝐓 𝐓 𝐓 𝐓 𝐓
𝐅 𝐓 𝐅 𝐓 𝐓 𝐓 𝐓 𝐓
𝐅 𝐅 𝐓 𝐅 𝐓 𝐓 𝐅 𝐓
𝐅 𝐅 𝐅 𝐅 𝐓 𝐓 𝐅 𝐅
WORD PROBLEM
Example2
is valid or invalid.
The Foundations: Logic and Proofs
Argument is invalid
The Foundations: Logic and Proofs
WORD PROBLEM
Example3
is valid or invalid.
let
The Foundations: Logic and Proofs
Argument
Argument is valid
The Foundations: Logic and Proofs