CS2050 L06 Proof by Cases and Contradiction
Overview
Abrahim Ladha explains how proof by cases turns an exhaustive set of assumptions into separate proofs, then develops proof by contradiction through examples including the irrationality of √2 and Euclid’s proof that infinitely many primes exist. He also covers symmetry and “without loss of generality,” existence and uniqueness proofs, vacuous and trivial implications, and a non-constructive existence argument using powers of √2.
Key takeaways
- A proof by cases is valid only when the cases are exhaustive; integers being even or odd is a simple example of a complete split.
- For |x + y| ≤ |x| + |y|, the same-sign cases give equality, while the mixed-sign case follows by bounding |x + y| by the larger of the two magnitudes.
- A contradiction proof must state the negated assumption, derive a contradiction using valid deductions, and clearly indicate where the hypothetical argument ends.
- Assuming √2 = m/n in lowest terms forces both m and n to be even, directly contradicting the reduced-fraction condition.
- Euclid’s product-plus-one construction shows that any proposed finite list of primes is incomplete, because a prime divisor of the constructed number would also divide 1.
- A non-constructive proof can establish existence without identifying the object: the two cases for (√2)^√2 guarantee irrational a and b with rational aᵇ.
Chapters
- If the premise is P1 or ... or Pk and each Pi implies Q, then Q follows.
- A difficult claim Q can also be proved by assuming P in one case and not P in the other.
- Each case gives a stronger premise to work with, but the cases must cover every possibility.
- For any integer n, either n = 2k or n = 2k + 1.
- If n = 2k, the product n(n + 1) has the factor 2k; if n = 2k + 1, then n + 1 = 2(k + 1).
- Both cases express the product as 2 times an integer, establishing that it is even.
- The variable k can be reused because each case has its own scope.
- The target is |x + y| ≤ |x| + |y|, with absolute value defined piecewise by whether its input is negative or nonnegative.
- When x and y are both nonnegative, |x + y| = x + y = |x| + |y|.
- When both are negative, |x + y| = −(x + y) = |x| + |y|.
- The same-sign cases yield equality, so the mixed-sign cases are where an inequality is needed.
- For mixed signs, the cases are x ≥ 0, y < 0 and x < 0, y ≥ 0.
- Symmetry lets the proof handle one mixed-sign case and say “without loss of generality” assume x ≥ 0 and y < 0.
- In that case, |x + y| is at most x and at most |y|, so it is at most max(x, |y|).
- Since x and |y| are nonnegative, their sum is at least their maximum, giving |x + y| ≤ |x| + |y|; Ladha cautions against using symmetry when cases are not genuinely equivalent.
- Ladha introduces reductio ad absurdum as a method of assuming the negation of the claim and deducing a false statement.
- A contradiction proof should clearly mark both the assumption to the contrary and the point where the contradiction is reached.
- The derivation inside the hypothetical assumption must use valid reasoning, even though the assumption will be rejected.
- Assume a largest natural number N exists.
- N + 1 is a natural number larger than N, contradicting the assumption that N is largest.
- The example shows why contradiction is useful for non-existence claims: assuming an object exists provides something concrete to reason about.
- A right triangle with legs of length 1 has hypotenuse c satisfying c² = 2 by the Pythagorean theorem.
- The proof targets the claim that no rational number c can satisfy c² = 2.
- Ladha recounts the traditional story of Pythagoras and Hippasus as historical context, noting that parts of the story may be lore.
- Assume √2 = m/n for positive integers m and n, choosing the fraction in fully reduced form.
- Squaring gives m² = 2n², so m² is even and therefore m is even.
- Writing m = 2k yields n² = 2k², so n² and then n are even.
- Both m and n being even contradicts m/n being reduced, proving √2 is irrational.
- A prime is defined as a number divisible only by 1 and itself; 1 is excluded from the prime numbers.
- The divisibility notation p divides N means there is an integer c such that pc = N.
- To prove there are infinitely many primes, Ladha introduces Euclid’s contradiction argument rather than relying on enumeration.
- Assume the complete list of primes is finite, P1 through Pk, and define N = P1P2...Pk + 1.
- N exceeds every listed prime, so it is composite and must have a prime divisor from the assumed complete list.
- That divisor divides both the product P1P2...Pk and N, so it must divide their difference, 1.
- No prime divides 1, contradicting the finite-list assumption and proving there are infinitely many primes.
- To prove that every integer x has a unique y satisfying x + y = 0, first establish existence by choosing y = −x.
- For uniqueness, suppose y and y′ both satisfy x + y = 0 and x + y′ = 0.
- Equating the expressions and subtracting x gives y = y′, so the solution is unique.
- Because P implies Q is equivalent to not P or Q, an implication can be proved by showing its premise is false or its conclusion is true.
- A proof using a false premise is called vacuous; one using an already-true conclusion is called trivial.
- “Every number written in the box is prime” is vacuously true when the box is empty, because no number in it can violate the claim.
- Ladha recommends telling the reader when an argument relies on vacuity or triviality.
- The claim is that irrational numbers a and b exist such that aᵇ is rational, without requiring the proof to identify which pair works.
- Split into cases on whether (√2)^√2 is rational or irrational.
- If it is rational, choose a = √2 and b = √2; if it is irrational, choose a = (√2)^√2 and b = √2.
- In the second case, aᵇ = (√2)² = 2, so both cases provide irrational a and b with a rational power.
Transcript excerpt
0:00 All [snorts] right. Let's get started. Uh CS 2050, the topic of today is proof uh by cases and contradiction. And we'll talk about some other things along the way. Uh just little edge case of proofs. Um so proof by cases, what is proof by cases? Like sometimes some a statement may be necessarily hard to prove, but what you can allow yourself to do is condition on things uh that you normally shouldn't be able to as long as you condition on kind of every version of this. So it follows from two reasons. One, recall that if you have uh P1 or PK in the premise and this implies some Q, that this is logically equivalent to what?
0:52 This one's a only a trivial one. The end of these premises, so you get P1 implies Q and and PK implies Q, right? So perhaps assuming an or of things is maybe boring and it doesn't tell you much information and you wish to deduce Q in in the context of writing a proof, uh maybe you can't do this and this is difficult. But what you can do is just write K different proofs, each with a different uh premise. The reason it's useful is assuming P1 is very powerful. You get to assume it's something entirely. As long as you do that for each P1 through PK, you get your um uh you have your proof. It is also the case that sometimes let's say like showing Q is hard, right? But you can premise on things that you normally
1:40 shouldn't be able to. Would you agree that Q is logically equivalent to uh T implies Q? Right? If Q is true, then this is true. If Q is false, then this is false. And then this is logically equivalent to
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Abrahim Ladha.