Proofs Methods and Strategies

CSCE 222
Discrete Structures for Computing
Proofs Methods and Strategies
Dr. Philip C. Ritchey
Exhaustive Proofs
β€’ Prove for every element in the domain
β€’ Ex: 𝑛 + 1 3 β‰₯ 3𝑛 for 𝑛 ∈ 0,1,2,3,4
– Exhaustive Proof:
– 0 + 1 3 β‰₯ 30
β€’ 1β‰₯1
–
1+1
3
β‰₯ 31
β€’ 8β‰₯3
–
2+1
3
β‰₯ 32
β€’ 27 β‰₯ 9
–
3+1
3
β‰₯ 33
β€’ 64 β‰₯ 27
–
4+1
3
β‰₯ 34
β€’ 125 β‰₯ 81
– β–‘
Proof by Cases
β€’ Prove for every case in the theorem
β€’ Ex: if 𝑛 is an integer, then 𝑛2 β‰₯ 𝑛
– Proof by cases:
– Case 𝑛 β‰₯ 1:
β€’ 𝑛⋅𝑛 β‰₯ 1⋅𝑛
β€’ 𝑛2 β‰₯ 𝑛
– Case 𝑛 ≀ 1:
β€’ 𝑛2 β‰₯ 𝑛, since 𝑛2 is positive and 𝑛 is negative
– Case 𝑛 = 0:
β€’ 02 β‰₯ 0
– The claim holds in all cases β–‘
Leveraging Proof by Cases
β€’ When you can’t consider every case all at
once
β€’ When there’s no obvious way to start, but
extra information in each case helps
β€’ Ex: Formulate and prove a conjecture about
the final digit of perfect squares
– List some perfect squares
– Look at the final digit 132 = 16πŸ—
– See a pattern?
Leveraging Proof by Cases
β€’
β€’
Theorem: The final digit of a perfect square is 0,1,4,5,6, or 9.
Proof:
– 𝑛 = 10π‘Ž + 𝑏, 𝑏 ∈ 0,1,2, … , 9
– 𝑛2 = 10π‘Ž + 𝑏 2 = 10 10π‘Ž2 + 2π‘Žπ‘ + 𝑏2
β€’
𝑛2 and 𝑏2 have the same final digit
– Case 𝑏 = 0:
β€’
02 = 𝟎, 𝑛2 ends in 0
– Case 𝑏 ∈ 1,9 :
β€’
12 = 𝟏, 92 = 8𝟏, 𝑛2 ends in 1
– Case 𝑏 ∈ 2,8 :
β€’
22 = πŸ’, 82 = 6πŸ’, 𝑛2 ends in 4
– Case 𝑏 ∈ 3,7 :
β€’
32 = πŸ—, 72 = 4πŸ—, 𝑛2 ends in 9
– Case 𝑏 ∈ 4,6 :
β€’
42 = 1πŸ”, 62 = 3πŸ”, 𝑛2 ends in 6
– Case 𝑏 = 5:
β€’
– β–‘
52 = 2πŸ“, 𝑛2 ends in 5
Leveraging Proof by Cases
β€’ Theorem: π‘₯ 2 + 3𝑦 2 = 8 has no integer solutions
β€’ Proof by Cases:
– π‘₯2 ≀ 8 π‘₯ < 3
– 3𝑦 2 ≀ 8 𝑦 < 2
– 15 cases
β€’ π‘₯ ∈ βˆ’2, βˆ’1,0,1,2
β€’ 𝑦 ∈ βˆ’1,0,1
– 6 cases
β€’ π‘₯ 2 ∈ 0,1,4
β€’ 𝑦 2 ∈ 0,1
– ≀6 cases
β€’ π‘₯ 2 ∈ 0,1, πŸ’
β€’ 3𝑦 2 ∈ 0, πŸ‘
β€’ 4+3=7β‰ 8
– ∴ no integer solutions β–‘
Without Loss of Generality (wlog)
β€’
β€’
Assert that the proof for one case can be reapplied with only straightforward
changes to prove other specified cases.
Ex: Let π‘₯, 𝑦 be integers. If π‘₯𝑦 and π‘₯ + 𝑦 are both even, then π‘₯ and 𝑦 are both
even.
– Proof
– Use contraposition
β€’
π‘₯ 𝑖𝑠 π‘œπ‘‘π‘‘ ∨ 𝑦 𝑖𝑠 π‘œπ‘‘π‘‘
β†’
π‘₯𝑦 𝑖𝑠 π‘œπ‘‘π‘‘ ∨ π‘₯ + 𝑦 𝑖𝑠 π‘œπ‘‘π‘‘
– Assume π‘₯ 𝑖𝑠 π‘œπ‘‘π‘‘ ∨ 𝑦 𝑖𝑠 π‘œπ‘‘π‘‘
– Wlog, assume π‘₯ is odd.
– Case 𝑦 even:
β€’
π‘₯ + 𝑦 = π‘œπ‘‘π‘‘ + 𝑒𝑣𝑒𝑛 = π‘œπ‘‘π‘‘ βœ“
– Case 𝑦 odd:
β€’
π‘₯𝑦 = π‘œπ‘‘π‘‘ π‘œπ‘‘π‘‘ = π‘œπ‘‘π‘‘ βœ“
– ∴ π‘₯ 𝑖𝑠 π‘œπ‘‘π‘‘ ∨ 𝑦 𝑖𝑠 π‘œπ‘‘π‘‘ β†’ π‘₯𝑦 𝑖𝑠 π‘œπ‘‘π‘‘ ∨ π‘₯ + 𝑦 𝑖𝑠 π‘œπ‘‘π‘‘
– It follows that π‘₯𝑦 𝑖𝑠 𝑒𝑣𝑒𝑛 ∧ π‘₯ + 𝑦 𝑖𝑠 𝑒𝑣𝑒𝑛 β†’ π‘₯ 𝑖𝑠 𝑒𝑣𝑒𝑛 ∧ 𝑦 𝑖𝑠 𝑒𝑣𝑒𝑛
β–‘
β€’ Exhaustive proof and proof by cases are only valid
when you prove every case
β€’ Ex: every positive integer is the sum of 18 fourth
powers of integers.
– 79 is the counterexample
β€’ Ex: if π‘₯ is a real number, then π‘₯ 2 is positive
– Case π‘₯ 𝑖𝑠 π‘π‘œπ‘ π‘–π‘‘π‘–π‘£π‘’:
β€’ π‘π‘œπ‘ π‘–π‘‘π‘–π‘£π‘’ π‘π‘œπ‘ π‘–π‘‘π‘–π‘£π‘’ = (π‘π‘œπ‘ π‘–π‘‘π‘–π‘£π‘’) βœ“
– Case π‘₯ 𝑖𝑠 π‘›π‘’π‘”π‘Žπ‘‘π‘–π‘£π‘’:
β€’ π‘›π‘’π‘”π‘Žπ‘‘π‘–π‘£π‘’ π‘›π‘’π‘”π‘Žπ‘‘π‘–π‘£π‘’ = (π‘π‘œπ‘ π‘–π‘‘π‘–π‘£π‘’) βœ“
– Case π‘₯ 𝑖𝑠 π‘§π‘’π‘Ÿπ‘œ:
β€’ π‘§π‘’π‘Ÿπ‘œ π‘§π‘’π‘Ÿπ‘œ = π‘§π‘’π‘Ÿπ‘œ X
Existence Proofs
β€’ To prove βˆƒπ‘₯𝑃 π‘₯
– Constructive: find a witness
– Nonconstructive: shown without witness
β€’ Ex: Show that there exists some integer that is
expressible as the sum of 2 cubes in 2
different ways
– Constructive proof: 1729 = 103 + 93 = 123 + 13
Existence Proofs
β€’ Ex: Show that there exists 2 irrational numbers π‘₯, 𝑦
such that π‘₯ 𝑦 is rational
– Nonconstructive proof:
β€’ Known: 2 is irrational
β€’ Consider π‘₯ = 𝑦 = 2, so π‘₯ 𝑦 = 2
β€’ If 2
β€’ If 2
2
2
2
is rational, then π‘₯ = 𝑦 = 2 are the witnesses
is irrational, then let π‘₯ = 2
– π‘₯𝑦 =
– π‘₯= 2
2
2
2
2
2
and 𝑦 = 2
2
= 2 =2
and 𝑦 = 2 are the witnesses
β€’ Either way, we found irrational π‘₯, 𝑦 such that π‘₯ 𝑦 is rational
– We just don’t know which value to use for π‘₯
Uniqueness Proofs
β€’ β€œexactly one element satisfies 𝑃 π‘₯ ”
– Existence: βˆƒπ‘₯ 𝑃 π‘₯
– Uniqueness: βˆ€π‘¦ 𝑃 𝑦 β†’ 𝑦 = π‘₯
– βˆƒπ‘₯βˆ€π‘¦ 𝑃 π‘₯ ∧ 𝑃 𝑦 β†’ 𝑦 = π‘₯
– βˆƒπ‘₯βˆ€π‘¦ 𝑃 𝑦 ↔ 𝑦 = π‘₯
Uniqueness Proofs
β€’ π‘Žπ‘Ÿ + 𝑏 = 0 has a unique solution when π‘Ž, 𝑏 are real and π‘Ž β‰  0
– Proof:
– Existence
β€’ π‘Žπ‘Ÿ + 𝑏 = 0
β€’ π‘Žπ‘Ÿ = βˆ’π‘
β€’ π‘Ÿ=βˆ’
𝑏
π‘Ž
– Uniqueness
β€’ Assume βˆƒπ‘  π‘Žπ‘  + 𝑏 = 0
β€’ Then, π‘Žπ‘Ÿ + 𝑏 = π‘Žπ‘  + 𝑏
β€’ π‘Žπ‘Ÿ + 𝑏 βˆ’ 𝑏 = π‘Žπ‘  + 𝑏 βˆ’ 𝑏
β€’
π‘Žπ‘Ÿ
π‘Ž
=
π‘Žπ‘ 
π‘Ž
β€’ π‘Ÿ=𝑠
𝑏
π‘Ž
– ∴ π‘Ÿ = βˆ’ is the solution to π‘Žπ‘Ÿ + 𝑏 = 0
Proof Strategies
β€’ Forward
– Start with premises, plug and chug to the
conclusion.
β€’ Direct proof
– Start with negation of conclusion, plug and chug
to negation of premises
β€’ Indirect proof
β€’ Backward
– Work backwards from the conclusion to find the
correct steps for a direct proof
Backward Reasoning
β€’ Prove that
–
π‘₯+𝑦
2
–
π‘₯+𝑦 2
4
π‘₯+𝑦
2
β‰₯ π‘₯𝑦 for positive reals π‘₯, 𝑦
β‰₯ π‘₯𝑦
β‰₯ π‘₯𝑦
– π‘₯ + 𝑦 2 β‰₯ 4π‘₯𝑦
– π‘₯ 2 + 2π‘₯𝑦 + 𝑦 2 β‰₯ 4π‘₯𝑦
– π‘₯ 2 βˆ’ 2π‘₯𝑦 + 𝑦 2 β‰₯ 0
– π‘₯βˆ’π‘¦ 2 β‰₯0
∴
π‘₯+𝑦
2
β‰₯ π‘₯𝑦
both sides
divide by 4
factor LHS
add 4π‘₯𝑦
expand LHS
Tautology
Adapting Existing Proofs
β€’ Theorem: 3 is irrational
– Proof: 2 is irrational, use that proof
β€’
𝑛 is irrational when 𝑛 is not a perfect square.
– Same kind of proof: contradiction
Tilings
β€’ Can a standard checkerboard (8 × 8) be tiled by dominoes?
– Yes.
β€’ Can a standard checkerboard with one corner missing be
tiled by dominoes?
– No.
– 63 squares is not an even number of squares
β€’ Can a standard checkerboard with two opposite corners
missing be tiled by dominoes?
– No.
– Opposite corners have the same color.
β€’ 32 black + 30 white cannot be tiled because each domino covers 1
white and 1 black square