Académique Documents
Professionnel Documents
Culture Documents
1 2
Types of Proofs for p implies q Examples of Direct Proofs
I use p implies q as shortcut for P (x) implies Q(x). Prove x < 0 implies x < 1
Type Of Proof How To Show It Assume x < 0. Want to show x < 1.
Counterexample Find a value where p is true Proof: We know 0 < 1.
of p implies q and q is false. x < 0 and 0 < 1 implies x < 1.
Direct Proof Assume p is true. Derive a Prove x < 0 implies x < x(x 1)
of p implies q chain of implications which Assume x < 0. Want to show x < x(x 1).
ends with q. Proof: x < 0 implies x 1 < 0.
Indirect Proof Prove q implies p with x < 0 and x 1 < 0 imply x(x 1) > 0.
of p implies q a direct proof. x < 0 and x(x 1) > 0 imply x < x(x 1).
Proof by Do a direct proof of CS 2233 Discrete Mathematical Structures Proofs 7
Contradiction (p q) implies false, that
of p implies q is, implies a contradiction.
CS 2233 Discrete Mathematical Structures Proofs 5 Examples of Indirect Proofs
Prove x < 0 implies x < 1
Setting Up Proofs of p implies q Assume x 1. Want to show x 0.
Proof: We know 1 0.
Type Of Proof How To Set It Up
x 1 and 1 0 imply x 1.
Direct Proof Assume: p
of p implies q Want to show: q Prove x < 0 implies x < x(x 1)
Proof: Assume x x(x 1). Want to show x 0.
Indirect Proof Assume: q Proof: x x(x 1) implies x x2 x.
of p implies q Want to show: p x x2 x implies 2x x2.
Proof: We know x2 0.
Proof by Assume p q 2x x2 and x2 0 imply 2x 0.
Contradiction Want to show: contradiction 2x 0 implies x 0.
Proof: CS 2233 Discrete Mathematical Structures Proofs 8
CS 2233 Discrete Mathematical Structures Proofs 6
3 4
Examples of Proofs by Contradiction Proofs of xP (x) and xP (x)
Prove xy = 0 implies x = 0 y = 0 To prove xP (x), find a value for x that makes P (x) true. Alternative: find a
Assume xy = 0 and x 6= 0 y 6= 0. calculation for x.
Want to show a contradiction. Prove xy(x < y 2 ). Proof: choose x = 1.
Proof: x 6= 0 and y 6= 0 imply xy 6= 0. Prove yx(y 2 < x). Choose x = y 2 + 1.
xy 6= 0 contradicts xy = 0.
To prove xP (x), show that P (x) follows from the properties of the domain.
Prove x + y < xy y < 0 implies x < 1
Assume x + y < xy y < 0 and x 1. Prove x(x2 0).
Want to show a contradiction. Proof: x can be positive, zero, or negative.
Proof: x 1 implies y < x + y. Case 1: x > 0 implies x2 > 0.
y < x + y and x + y < xy imply y < xy. Case 2: x = 0 implies x2 = 0.
y < 0 and y < xy imply 1 > x Case 3: x < 0 implies x2 > 0.
1 > x contradicts x 1 All cases imply x2 0.
CS 2233 Discrete Mathematical Structures Proofs 11
CS 2233 Discrete Mathematical Structures Proofs 9
5 6
Proving 2 is Irrational
Definition: A number x is rational if can be expressed as x = a/b where a and
b are integers.
Property: We can eliminate common factors to get the same x.
Proof by contradiction:
Assume 2 = a/b, where a and b are integers with no common divisors.
2 = a/b implies 2 = a2 /b2, and 2b2 = a2 .
2
This implies a is even, which implies a is even, and that c = a/2 is an
integer.
2 2 2 2
Then 2b = 4c , which is equiv. to b = 2c .
This implies b is even, which is a contradiction.
CS 2233 Discrete Mathematical Structures Proofs 13