Discrete Structures
§7 Direct Proofs and Contrapositives
11 min read
A proof has to meet the exact claim being made. “Every” asks for an argument that handles an arbitrary input. “There exists” asks us to establish that a suitable object exists. “If” lets us assume a hypothesis, while “if and only if” asks for two directions. Reading that structure first tells us what we may assume, what we can choose, and what we still need to show.
These proof methods build on predicates and quantifiers.
Quantifier order and dependence
Consider these two statements over the real numbers, written :
The equation is the same, but the order changes what is being claimed.
- The first says that each real number has some additive inverse : a number that adds to to give zero. We may choose a different for each .
- The second says that one fixed real number adds to zero with every real number .
The first is true. Given any , choose . This is a real number, and
The second is false. Whatever real number is proposed, choose . Then
This defeats every proposed , not just one particular choice. In general, we cannot swap a universal and an existential quantifier and expect the statement to keep its meaning.
Game semantics
Game semantics makes this dependence explicit by imagining two players reading a quantified statement from left to right:
- Adam chooses the value at each universal quantifier, .
- Eve chooses the value at each existential quantifier, .
- Each value must belong to the quantifier's domain. A choice may depend on earlier moves, but not on moves that have not happened yet.
For the two formulas above, the players evaluate the equation after choosing both values. Eve wins if it is true; Adam wins if it is false.
A winning strategy is a rule that guarantees a win against every legal choice by the other player. Winning one play is not enough. In this quantifier game, a true statement gives Eve a winning strategy, while a false statement gives Adam one.
For , Adam moves first and Eve responds with . For , Eve must commit first, and Adam responds with . The order determines who can respond to whom.
This viewpoint is useful when writing a proof: describe a choice or argument that still works when the universally quantified inputs are arbitrary. It is not enough to show that a few convenient choices work.
When quantifier order does not matter
Two adjacent universal quantifiers can be swapped, as can two adjacent existential quantifiers. Here the quantifiers must range over fixed domains, each independent of the other variable. Let and be sets, and let be a predicate with and . Then
The two universal statements both require every pair to satisfy . The two existential statements both require at least one pair to satisfy . Reordering these same-type quantifiers does not change either requirement. In the game, the same player makes both choices: Adam for two universal quantifiers, Eve for two existential quantifiers.
For example, is the set of ordered pairs of real numbers. These three statements all say that every real pair satisfies the given equation:
They are equivalent, and all three are false. Adam can choose and , since
One counterexample defeats a universal claim. This is different from exchanging with , where the players' dependence on each other's choices can change the truth of the statement.
Let the statement guide the proof
A direct proof starts from the given assumptions and establishes the conclusion. Its steps follow the logical structure of the statement.
Let be the universe of objects under discussion, let be a predicate on , and let and be propositions. An object that makes an existential claim true is called a witness. The following are useful ways to approach different goals:
| Goal | What to do |
|---|---|
| Let be an arbitrary element of , then prove without assuming anything special about . | |
| Construct a witness , check that , and show that holds. | |
| Implication: | Assume is true and prove . |
| Conjunction: | Prove both and . |
| Disjunction: | Prove at least one of and . Which one is convenient may depend on the given inputs. |
| Negation: | Rewrite the negation into a useful equivalent statement and prove it. Another method is to assume and derive a contradiction. |
| Biconditional: | Prove and . |
For a conjunction, both claims must stand up to a challenge: Adam could ask for either one. For a disjunction, Eve can choose which claim to establish; each of the two claims is called a disjunct. The connective is inclusive OR, so proving both is allowed, but not required.
These are proof strategies, not claims that there is only one possible method. For example, an existence claim can also be proved indirectly rather than by explicitly constructing a witness.
A conjecture is a claim whose truth we have not yet established. Once it is proved, it becomes a theorem. To investigate a conjecture, first make its assumptions and conclusion precise. Definitions often show what the proof needs to produce.
Example: the square of an odd integer
Write for the set of integers. For an integer , the definitions of even and odd are
Every integer is exactly one of even or odd. Whether an integer is even or odd is its parity. This matters later: for integers, “not odd” means “even,” and “not even” means “odd.”
We want to prove:
If is an odd integer, then is odd.
Expanding the definition of odd makes the required witnesses visible:
The two witnesses have different roles. The assumption supplies an integer representing . The conclusion asks us to produce an integer representing .
Direct proof
Let be arbitrary and assume is odd. Then for some integer . Our goal is to write with .
Square the expression for , then separate one from an even term:
Choose . Because is an integer, its products and sums are integers too, so is an integer. We now have , which is exactly the definition of odd. This proves the claim for every odd integer .
Notice which choices were available. We could not set to a convenient value: once was given, had to satisfy . We were free to construct using that . Choosing a witness means meeting the required equation and domain, not choosing an arbitrary number.
Proving a disjunction
To prove , it is enough to establish either disjunct. Sometimes neither one is guaranteed by itself, so we split according to whether is true:
- If is true, the disjunction is already true.
- If is false, prove .
This is captured by the logical equivalence
So we may prove by assuming and deriving . This does not mean that we are allowed to prove only when is false. Either disjunct always suffices; the equivalence just gives a useful conditional strategy.
Example with a product bound
Let , , and be positive real numbers. We want to prove that if , then
The conclusion bounds at least one factor, not necessarily both. If the first factor is larger than , the product bound will force the second factor to be smaller than .
Let , , and be arbitrary positive real numbers, and assume . If , there is nothing more to prove. Otherwise,
Because , multiplying this strict inequality by preserves its direction:
Since , we also have . We may therefore divide by without reversing the inequality:
In particular, , which proves the other disjunct. The desired OR statement holds in either case.
There is also a shorter route through fractions. With a fixed positive numerator, increasing a positive denominator makes the fraction smaller. Since and , we can write
The first inequality comes from dividing the product bound by ; the second uses the larger denominator .
Proof by contrapositive
For an implication , distinguish two statements:
| Name | Statement |
|---|---|
| Contrapositive | |
| Converse |
The contrapositive reverses the direction and negates both propositions. It is logically equivalent to the original implication:
Both are false in exactly the same situation: is true and is false. A proof by contrapositive therefore proves the original implication by assuming and deriving .
The converse merely reverses the direction. It is not generally equivalent to the original implication and needs its own proof. For example, when is false and is true, is true but is false.
Example: if the square is odd, the integer is odd
For an integer , we now want to prove
This is the converse of the odd-square result proved above, so the earlier proof alone does not establish it.
A direct attempt begins with for some integer . Taking square roots gives
But this expression does not immediately exhibit an integer with . The contrapositive avoids square roots and gives an easier starting point:
Because both and are integers, this is the same as
Let be arbitrary and assume it is even. Then for some integer , so
Choose . This is an integer, and , so is even. We have proved the contrapositive, and therefore the original claim: if an integer's square is odd, that integer is odd.
The integer assumption is essential. It is what allows us to replace “not odd” with “even.”
Combining both directions
We have now proved both implications needed for
The forward direction came from expanding the square of an odd integer. The reverse direction came from proving that an even integer has an even square.
Negating both sides preserves a biconditional:
Using the integer parity distinction gives the corollary, a consequence of the result we just proved:
In short, an integer and its square have the same parity. The two directions are justified by the proofs, not just by checking examples.
0 reads
Last edited