Lecture 4
Lecture 4
FACULTY OF ENGINEERING
ELECTRICAL & ELECTRONICS ENGINEERING DEPT.
Instructor:
Dr. Mohammed Alkrunz
Electrical & Electronics Engineering Dept.
Basic Proof Methods
We will review both Correct and Fallacious (tricky) inference rules and several
proof methods.
Proof Terminology:
Dr. M. Alkrunz
26.10.2019 2
EEE247: Discrete Mathematics
Basic Proof Methods
Basic Definitions:
Other theorems
Rules of inference
Dr. M. Alkrunz
26.10.2019 3
EEE247: Discrete Mathematics
Basic Proof Methods
Antecedent 1
Antecedent 2
----------------------
∴ Consequent
Corresponding tautology:
𝒂𝒏𝒕𝒆𝒄𝒆𝒅𝒆𝒏𝒕 𝟏 ∧ 𝒂𝒏𝒕𝒆𝒄𝒆𝒅𝒆𝒏𝒕 𝟐 ∧ … → 𝑪𝒐𝒏𝒔𝒆𝒒𝒖𝒆𝒏𝒕
Dr. M. Alkrunz
26.10.2019 4
EEE247: Discrete Mathematics
Basic Proof Methods
Dr. M. Alkrunz
26.10.2019 5
EEE247: Discrete Mathematics
Basic Proof Methods
¬𝑝 ∨ 𝑝 ∨ 𝑞
¬𝑝 ∨ 𝑝 ∨ 𝑞
𝑇 ∨ 𝑞 ≡ 𝑇 (𝑡𝑜𝑢𝑡𝑜𝑙𝑜𝑔𝑦)
Dr. M. Alkrunz
26.10.2019 6
EEE247: Discrete Mathematics
Basic Proof Methods
d. If it snows today, the university will close. The university [Modus Tollens]
is not closed today. Therefore, it is not snow today.
Dr. M. Alkrunz
26.10.2019 7
EEE247: Discrete Mathematics
Basic Proof Methods
Formal Proofs:
A formal proofs of a conclusion “C” given premises 𝑝1 , 𝑝2 , … . . , 𝑝𝑛 consists
of a sequence of steps, each of which implies some inference rule to
premises or to previously proven statements (as antecedent) to yield a new
true statements (as consequent).
A proof demonstrates that if the premises are true, then the conclusion is
true.
Dr. M. Alkrunz
26.10.2019 8
EEE247: Discrete Mathematics
Basic Proof Methods
Prove the theorem, “We will be home early” using inference rules.
Dr. M. Alkrunz
26.10.2019 9
EEE247: Discrete Mathematics
Basic Proof Methods
Solution:
Dr. M. Alkrunz
26.10.2019 10
EEE247: Discrete Mathematics
Basic Proof Methods
Solution:
STEP PROVEN BY
1. ¬ 𝑠𝑢𝑛𝑛𝑦 ∧ 𝑐𝑜𝑙𝑑 [Premise #1]
2. ¬ 𝑠𝑢𝑛𝑛𝑦 [Simplification of 1]
3. 𝑠𝑤𝑖𝑚 → 𝑠𝑢𝑛𝑛𝑦 [Premise #2]
4. ¬ 𝑠𝑤𝑖𝑚 [Modus Tollens on 2, 3]
5. ¬ 𝑠𝑤𝑖𝑚 → 𝑣𝑜𝑙𝑙𝑒𝑦 [premise #3]
6. 𝑣𝑜𝑙𝑙𝑒𝑦 [Modus Ponens on 4, 5]
7. 𝑣𝑜𝑙𝑙𝑒𝑦 → 𝑒𝑎𝑟𝑙𝑦 [premise #4]
8. 𝑒𝑎𝑟𝑙𝑦 [Modus Ponens on 6, 7]
Dr. M. Alkrunz
26.10.2019 11
EEE247: Discrete Mathematics
Basic Proof Methods
Lead to the conclusion, “If I do not finish writing the program, then I will
wake up feeling refreshed.”
Dr. M. Alkrunz
26.10.2019 12
EEE247: Discrete Mathematics
Basic Proof Methods
Solution:
Dr. M. Alkrunz
26.10.2019 13
EEE247: Discrete Mathematics
Basic Proof Methods
Solution:
STEP PROVEN BY
1. 𝑒𝑚𝑎𝑖𝑙 → 𝑝𝑟𝑜𝑔𝑟𝑎𝑚 [Premise #1]
2.¬ 𝑝𝑟𝑜𝑔𝑟𝑎𝑚 → ¬ 𝑒𝑚𝑎𝑖𝑙 [Contrapositive of 1]
3.¬ 𝑒𝑚𝑎𝑖𝑙 → 𝑠𝑙𝑒𝑒𝑝 [Premise #2]
4.¬ 𝑝𝑟𝑜𝑔𝑟𝑎𝑚 → 𝑠𝑙𝑒𝑒𝑝 [Hypothetical Syllogism on 2, 3]
5. 𝑠𝑙𝑒𝑒𝑝 → 𝑟𝑒𝑓𝑟𝑒𝑠ℎ𝑒𝑑 [premise #3]
6.¬ 𝑝𝑟𝑜𝑔𝑟𝑎𝑚 → 𝑟𝑒𝑓𝑟𝑒𝑠ℎ𝑒𝑑 [Hypothetical Syllogism on 4, 5]
Dr. M. Alkrunz
26.10.2019 14
EEE247: Discrete Mathematics
Basic Proof Methods
Solution:
Let us adopt the following abbreviations:
Solution:
Then:
STEP PROVEN BY
1. ℎ𝑎𝑟𝑑 [Premise #1]
2. ℎ𝑎𝑟𝑑 → 𝑏𝑜𝑟𝑖𝑛𝑔 [Premise #2]
3. 𝑏𝑜𝑟𝑖𝑛𝑔 [Modus Ponens on 1, 2]
4. 𝑏𝑜𝑟𝑖𝑛𝑔 → ¬ 𝑗𝑜𝑏 [premise #3]
5. ¬ 𝑗𝑜𝑏 [Modus Ponens on 3, 4]
Dr. M. Alkrunz
26.10.2019 16
EEE247: Discrete Mathematics
Discussion Questions
[Q1]:
Which of these sentences are propositions? What are the truth values of
those that are propositions?
a. Answer this question No
b. 2+3=5 Yes, True
c. 5 + 7 = 10 Yes, False
d. 𝑥 + 2 = 11 No
e. 2𝑛 ≥ 100 No
[Q2]:
What is the negation of these propositions?!!
a. Ali has an MP3 player. Ali does not have an MP3 player.
b. There is no pollution in New Jersey. Three is a pollution in New Jersey.
Dr. M. Alkrunz
26.10.2019 17
EEE247: Discrete Mathematics
Discussion Questions
c. 2+1=3 𝟐+𝟏≠𝟑
d. 121 is a perfect square. 121 is not a perfect square.
[Q3]:
Let 𝒑 and 𝒒 be the propositions:
Dr. M. Alkrunz
26.10.2019 19
EEE247: Discrete Mathematics
Discussion Questions
[Q4]:
Let 𝒑 and 𝒒 be the propositions:
𝑝 ≡ "𝑖𝑡 𝑖𝑠 𝑏𝑒𝑙𝑜𝑤 𝑓𝑟𝑒𝑒𝑧𝑖𝑛𝑔"
𝑞 ≡ "𝑖𝑡 𝑖𝑠 𝑠𝑛𝑜𝑤𝑖𝑛𝑔"
Write these propositions using 𝒑 and 𝒒 and logical connectives (including
negations).
a. It is below freezing and snowing. 𝒑∧𝒒
b. It is below freezing, but not snowing. 𝒑 ∧ ¬𝒒
c. It is either snowing or below freezing (or both). 𝒑∨𝒒
d. If it is below freezing, it is also snowing. 𝒑→𝒒
e. Either it is below freezing or it is snowing, but it is not 𝒑∨𝒒 ∧ 𝒑→¬𝒒
snowing if it is below freezing.
f. That it is below freezing is necessary and sufficient for it to 𝒑 ↔ 𝒒
be snowing.
Dr. M. Alkrunz
26.10.2019 20
EEE247: Discrete Mathematics
Discussion Questions
[Q5]:
Determine each of these statement is true or false:
a. If 1 + 1 = 2, then 2 + 2 = 5 F
b. If 1 + 1 = 3, then 2 + 2 = 4 T
c. 2 + 2 = 4 if and only if 1 + 1 = 2 T
d. If monkeys can fly, then 1 + 1 = 3 T
[Q6]:
How many rows appear in the truth table for each of these compound
propositions:
a. 𝑝 → ¬𝑝 𝟐𝟏 = 𝟐
b. 𝑝∨¬𝑟 ∧ 𝑞∨¬𝑠 𝟐𝟒 = 𝟏𝟔
c. 𝑞∨𝑝∨¬𝑠∨¬𝑟∨¬𝑡∨𝑢 𝟐𝟔 = 𝟔𝟒
Dr. M. Alkrunz
26.10.2019 21
EEE247: Discrete Mathematics
Discussion Questions
[Q7]:
Construct the truth table for these compound propositions:
a. 𝑝 ∨ 𝑞 → 𝑝⨁𝑞
Dr. M. Alkrunz
26.10.2019 22
EEE247: Discrete Mathematics
Discussion Questions
[Q7]:
Construct the truth table for these compound propositions:
b. 𝑝 ↔ 𝑞 ⨁ ¬ 𝑝 ↔ ¬ 𝑟
[Q9]:
Let 𝑷(𝒙) be the statement "𝒙 = 𝒙𝟐 ". If the domain consists of all integers,
what are these truth values?!!
Dr. M. Alkrunz
26.10.2019 24
EEE247: Discrete Mathematics
Discussion Questions
[Q10]:
a. ∀𝑦 𝑄(0, 𝑦, 0) 𝑸 𝟎, 𝟎, 𝟎 ∧ 𝑸 𝟎, 𝟏, 𝟎
b. ∃𝑥 𝑄(𝑥, 1, 1) 𝑸 𝟎, 𝟏, 𝟏 ∨ 𝑸 𝟏, 𝟏, 𝟏 ∨ 𝑸 𝟐, 𝟏, 𝟏
c. ∃𝑧 ¬ 𝑄(0, 0, 𝑧) ¬ 𝑸 𝟎, 𝟎, 𝟎 ∨ ¬ 𝑸 𝟎, 𝟎, 𝟏
¬ 𝑸 𝟎, 𝟎, 𝟏 ∨ ¬ 𝑸 𝟏, 𝟎, 𝟏 ∨ ¬ 𝑸 𝟐, 𝟎, 𝟏
d. ∃𝑥 ¬ 𝑄 𝑥, 0, 1
Dr. M. Alkrunz
26.10.2019 25
EEE247: Discrete Mathematics
Discussion Questions
[Q11]:
What rule of inference is used in each statement:
Dr. M. Alkrunz
26.10.2019 26
EEE247: Discrete Mathematics
Discussion Questions
[Q12]:
Determine without using truth table whether ([¬ 𝒒 ∧ 𝒑 → 𝒒 ] → ¬ 𝒑) is a
tautology.
Dr. M. Alkrunz
26.10.2019 27
EEE247: Discrete Mathematics
*Questions
Dr. M. Alkrunz
26.10.2019 28
EEE247: Discrete Mathematics
*Thanks
Dr. M. Alkrunz
26.10.2019 29
EEE247: Discrete Mathematics