Professional Documents
Culture Documents
Definition Axiom
(mathematical Mathematical proof (True without proof)
meaning)
Process
Decision
Inference Theorem Proposition
To prove them:
1. We show that where c is an arbitrary element of the domain,
2. By universal generalization the truth of the original formula follows.
Example: Give a direct proof of the theorem “If 𝑛 is an odd integer, then 𝑛2 is odd.”
Solution:
Assume that 𝑛 is odd. Then 𝑛 = 2𝑘 + 1 for an integer 𝑘. Squaring both sides of
the equation, we get:= + +
2
𝑛 = (2𝑘 + 1)2 4 𝑘 2 4𝑘 + 1 = 2(2𝑘 2 2𝑘) ++ 1
𝑛2 = 2𝑟 + 1 (Assume 𝑟 = 2𝑘2 2𝑘)
𝑛2 is an odd integer.
Q.E.D.
We have proved that f 𝑛 is an odd integer, then 𝑛2 is odd integer.
13 13 Discrete Structures (1) First Semester - 1444
Practice: Give a direct proof of the theorem “If n is an even integer,
then n2 is even.”
Solution: Assume r and s are two rational numbers. Then there must be
integers p, q and also t, u such that
where v = pu + qt , w = qu ≠ 0
Example: Prove that if you pick 22 days from the calendar, at least 4 must
fall on the same day of the week.
Solution: Assume that no more than 3 of the 22 days fall on the same day
of the week. Because there are 7 days of the week, we could only have
picked 21 days. This contradicts the assumption that we have picked 22
days. Remember:
Q.E.D. ¬ 𝑝 → 𝑞 ≡ 𝑝 ∧ ¬𝑞
Therefore a2 must be even. If a2 is even then a must be even (an exercise). Since a is even, a = 2c
for some integer c. Thus,
Q.E.D.
Solution: Assume 𝐴 − 𝐵 ∩ 𝐵 − 𝐴 ≠ ∅
Then, ∃𝑥 ∈ [ 𝐴 − 𝐵 ∩ 𝐵 − 𝐴 ]
𝑥 ∈ 𝐴−𝐵 ∧ 𝑥 ∈ 𝐵−𝐴
(𝑥 ∈ 𝐴 ∧ 𝑥 ∉ 𝐵) ∧ (𝑥 ∈ 𝐵 ∧ 𝑥 ∉ 𝐴)
𝑥 ∈𝐴∧𝑥 ∉𝐵∧𝑥 ∈𝐵∧𝑥 ∉𝐴
And there are two contradictions:
𝑥 ∈𝐴∧𝑥 ∉𝐴 and 𝑥 ∉𝐵∧𝑥 ∈𝐵
𝑝 ↔ 𝑞 ≡ (𝑝 → 𝑞) ∧ (𝑞 → 𝑝)
Theorem Proof
• Sometimes a theorem states that several propositions are equivalent. Such a theorem states that
propositions 𝑝1, 𝑝2, 𝑝3, . . . , 𝑝𝑛 are equivalent. This can be written as: 𝑝1 ↔ 𝑝2 ↔ 𝑝3 ↔. . . ↔ 𝑝𝑛 . To
prove it, we use the following:
𝑝1 ↔ 𝑝2 ↔ 𝑝3 ↔ ⋯ ↔ 𝑝𝑛 ≡ 𝑝1 → 𝑝2 ∧ 𝑝2 → 𝑝3 ∧ ⋯ ∧ (𝑝𝑛 → 𝑝1 )
Theorem Proof
Solution:
We have already shown (previous slides) that both
𝑝 → 𝑞 and 𝑞 → 𝑝 are true.
Therefore, we can conclude 𝑝 ↔ 𝑞.
Solution:
We will show that these three statements are equivalent by showing that 𝑝1 → 𝑝2, 𝑝2 → 𝑝3, and 𝑝3 → 𝑝1 are true.
Example: Show that the statement “Every positive integer is the sum of the
squares of two integers” is false.
Solution:
3 is not a sum of two squares.
02 + 12 = 1 ≠ 3
12 + 22 = 5 ≠ 3
A complete proof requires that the equality be shown to hold for all
6 cases. But the proofs of the remaining cases are similar. Try them.
Q.E.D.
Note:
We only cover the case where x is odd because the case where y is odd is similar. The use
phrase without loss of generality (WLOG) indicates this.
33 33 Discrete Structures (1) First Semester - 1444
Example: Prove that (n + 1)3 ≥3n if n is a positive integer with 1 ≤ n ≤ 4.
Solution:
We use a proof by exhaustion, by examining all the possible cases: n = 1, 2, 3,
4.
for n=1 then 23 ≥31 8≥3 true
for n=2 then 33 ≥32 27 ≥ 9 true
for n=2 then 43 ≥33 64 ≥ 27 true
for n=2 then 53 ≥34 125 ≥ 81 true
Therefore, (n + 1)3 ≥3n for 1 ≤ n ≤ 4
Q.E.D.
Solution:
Step 5. a - b = 0 by the premise and division by 0 is undefined.
36 36 Discrete Structures (1) First Semester - 1444
• Read Section 1.7 and 1.8.1 to 1.8.2 of Rosen’s book.