Proof Techniques
A proof is a finite chain of justified steps from hypotheses to a conclusion. The main challenge is not remembering a ritual but matching the form of the statement to a method that exposes why it is true. Conditional statements invite direct proof or contraposition. Negated statements invite contradiction. Universal statements require arbitrary elements. Existential statements require witnesses or a carefully justified nonconstructive argument.
Discrete mathematics uses proof techniques constantly because many objects are finite, symbolic, and rule based. Algorithms need correctness proofs, counting formulas need double-counting or bijective proofs, graph statements need structural arguments, and number theory statements need divisibility reasoning. A good proof makes the dependencies visible enough that another reader can check every step.
Definitions
A theorem is a statement that has been proved. A lemma is a supporting theorem used to prove larger results. A corollary follows quickly from a theorem. A conjecture is a statement believed to be true but not yet proved.
A direct proof of assumes and derives . A proof by contraposition proves , which is equivalent to . A proof by contradiction assumes the negation of the desired conclusion and derives an impossibility, such as or a statement and its negation.
An existence proof shows that an object with a desired property exists. It is constructive if it gives an object or a method to find one. It is nonconstructive if it proves existence without identifying a specific witness. A counterexample disproves a universal claim by giving one object for which the claim fails.
A proof by cases divides the hypotheses into exhaustive possibilities and proves the conclusion in every possibility. A biconditional proof of usually proves both directions and . A vacuous proof proves by showing is impossible. A trivial proof proves by showing is always true under the relevant domain.
Key results
The logical equivalences behind proof methods are:
The first justifies contraposition. The second explains how counterexamples work. The third explains why "if and only if" proofs have two directions.
For universal statements, the standard template is:
- Let be an arbitrary element of the domain.
- Use only facts true of every such , plus the hypotheses.
- Derive the desired property.
- Conclude the statement holds for all .
For existential statements, the standard template is:
- Name a candidate witness or describe how it is chosen.
- Verify it belongs to the domain.
- Verify it has the required property.
Contradiction is powerful but should be used with discipline. To prove , assume and combine that assumption with known facts until an impossibility follows. The contradiction must depend on the assumption; otherwise the proof has only shown the surrounding facts are inconsistent.
Proof by cases requires two checks: the cases cover all possibilities, and the conclusion is proved in each case. For integer parity, the cases "even" and "odd" are exhaustive. For modular arithmetic modulo , the cases are usually the possible remainders.
Visual
| Goal shape | Usually effective method | What must be checked |
|---|---|---|
| direct proof | all uses of are explicit | |
| with awkward | contraposition | prove |
| arbitrary element | no hidden special choice of | |
| constructive witness | witness is in the domain and satisfies | |
| two implications | both directions are present | |
| disprove | counterexample | one valid domain element violates |
Worked example 1: Use contraposition for a divisibility claim
Problem. Prove: If is even, then is even.
Method.
- A direct proof would assume is even and try to show is even. That is possible but awkward without prime factorization.
- Use contraposition. The contrapositive is: If is not even, then is not even.
- "Not even" for an integer means odd. Let be odd.
- Then for some integer .
- Square it:
- Since is an integer, has the form and is odd.
Checked answer. We have proved the contrapositive: if is odd, then is odd. Therefore the original implication is true: if is even, then is even.
Worked example 2: Prove an existence statement constructively
Problem. Prove that for every integer , there exists an integer such that and is divisible by .
Method.
- The statement has the form .
- Choose an arbitrary integer .
- Divide by . By the division algorithm, where .
- Define the witness by cases:
In all cases this is just .
- Check divisibility: , so .
- Check that :
- If , then .
- If , then .
- If , then .
Checked answer. For arbitrary , the constructed integer is divisible by and greater than . Since the construction works for every possible remainder, the universal-existential statement is proved.
Code
def witness_multiple_of_three_above(n):
q, r = divmod(n, 3)
return 3 * q + 3
def verify(limit=20):
for n in range(-limit, limit + 1):
m = witness_multiple_of_three_above(n)
assert m > n
assert m % 3 == 0
return True
print(verify())
print([(n, witness_multiple_of_three_above(n)) for n in range(-4, 8)])
The code checks the witness formula on a finite range. This is not a replacement for the proof, but it is a useful way to test whether the proposed construction behaves as intended before writing the formal argument.
Common pitfalls
- Starting a direct proof by assuming the conclusion. That is circular unless the statement is being proved by a valid equivalence chain.
- Proving examples instead of a universal statement. Examples can guide a proof, but they do not establish "for all."
- Using contradiction when contraposition is clearer. Contraposition often gives a more readable proof for parity and divisibility.
- Forgetting one direction of an "if and only if" proof.
- Giving a witness for an existence proof but not checking all required properties.
- Splitting into cases that are not exhaustive or that overlap in a confusing way.
- Using a theorem whose hypotheses have not been verified.
A proof should make quantifier movement visible. To prove , begin with an arbitrary and then construct a that may depend on that . To prove , one single must work for every . Many invalid proofs accidentally prove the first statement while claiming the second.
Counterexamples should satisfy the hypotheses of the statement being disproved. To refute "every prime greater than is odd," the number is irrelevant because it is not prime. A valid counterexample must live in the domain and meet the hypothesis while violating the conclusion. Writing the statement as helps identify both requirements.
Proof by contradiction is strongest when the contradiction is explicit. The endpoint should be a statement known to be false, such as an integer being both even and odd, a positive number being less than itself, or a violation of a previously proved theorem. Simply reaching an unexpected result is not enough; the result must be impossible under accepted assumptions.
Existence proofs come in layers. A constructive proof gives a witness and verifies it. A counting proof may show more objects are available than forbidden objects, so some valid object must exist. A contradiction proof may show nonexistence is impossible. In all cases, identify whether the proof actually tells how to find the object.
After drafting a proof, check every sentence for its source. Each claim should come from a hypothesis, a definition, an earlier line, an established theorem, or a clearly introduced construction. This source check catches hidden assumptions, especially in divisibility, parity, and set-inclusion proofs.
The proof method should fit the statement, but first attempts are allowed to change. If a direct proof stalls, try the contrapositive. If an existence proof lacks a witness, try a counting or extremal argument. If a universal claim seems false, search for a counterexample before forcing a proof.
Connections
- Propositional logic explains the equivalences behind implication and contraposition.
- Predicates and quantifiers supplies the formal structure of universal and existential claims.
- Induction and recursion adds proof methods for statements indexed by integers.
- Number theory basics provides many standard direct, contradiction, and contraposition examples.