The statement “if an integer is divisible by 44, then it is even” is true. Reversing it produces a false statement. Reversing it and negating both parts, however, preserves its truth. Understanding why these operations differ is more useful than memorizing their names: it tells us which proof tasks we may substitute for the original one.

We work in classical logic, with the domain and interpretation fixed as in Propositions and Axiomatic Systems. Here ≡\equiv denotes logical equivalence: two formulas agree under every truth assignment, not merely in one example. For a review of the truth conditions of implication and biconditional, see MIT’s introductory proof notes [1][1] T. Leighton and R. Rubinfeld, “What Is a Proof?,” 2006. MIT 6.042/18.062J lecture notes, September 7, 2006. https://web.mit.edu/neboat/Public/6.042/proofs.pdf.

Four forms of a conditional

Let PP be the hypothesis and QQ the conclusion of P→QP\to Q. A conditional fails exactly when its hypothesis is true and its conclusion false. The other three combinations satisfy it, including cases where the hypothesis is false.

NameFormOperation
OriginalP→QP\to QNone
ConverseQ→PQ\to PSwap the two parts
Inverse¬P→¬Q\neg P\to\neg QNegate both parts
Contrapositive¬Q→¬P\neg Q\to\neg PSwap and negate both

The domain stays fixed throughout these transformations. In an assertion about every integer nn, each form is still an assertion about every integer nn. Changing the domain or dropping a hypothesis changes the problem in addition to changing its logical form.

ExampleUse the same integer example for all four forms

Let P(n)P(n) mean that 44 divides nn, and let Q(n)Q(n) mean that nn is even. Each claim below is universally quantified over Z\mathbb Z.

  • Original: if 44 divides nn, then nn is even. This is true, since n=4k=2(2k)n=4k=2(2k) for some integer kk.
  • Converse: if nn is even, then 44 divides nn. This is false at n=2n=2.
  • Inverse: if 44 does not divide nn, then nn is not even. This is also false at n=2n=2.
  • Contrapositive: if nn is not even, then 44 does not divide nn. This is true: a multiple of 44 would be even.

The counterexample to the converse also refutes the inverse. In both cases, it makes that form’s hypothesis true and conclusion false.

Why the equivalences hold

The original and contrapositive form one equivalent pair; the converse and inverse form another. A truth table checks every assignment rather than relying on a chosen arithmetic example.

PPQQP→QP\to Q¬Q→¬P\neg Q\to\neg P
TTTT
TFFF
FTTT
FFTT

The last two columns match in every row. Another way to see this is to ask when the contrapositive fails: ¬Q\neg Q must be true and ¬P\neg P false, which again means PP is true and QQ false. Thus,

(P→Q)≡(¬Q→¬P).(P\to Q)\equiv(\neg Q\to\neg P).

Apply the same result to Q→PQ\to P. Its contrapositive is ¬P→¬Q\neg P\to\neg Q, so

(Q→P)≡(¬P→¬Q).(Q\to P)\equiv(\neg P\to\neg Q).

The two pairs are not generally equivalent to one another. At P=T,Q=FP=\mathrm T,Q=\mathrm F, the original is false but the converse true. They can agree in particular situations, so “not generally equivalent” does not mean “always opposite.”

Four faces of an implication. Two pairs are logically equivalent: original with contrapositive, and converse with inverse.

Four faces of an implication. Two pairs are logically equivalent: original with contrapositive, and converse with inverse.

These transformations describe logical relationships. The diagram helps locate the pairs, while the truth table establishes the equivalence.

The inverse is not the negation

The inverse negates the two components and retains an implication. Negating the entire implication instead asks for exactly the situation it excludes:

¬(P→Q)≡(P∧¬Q).\neg(P\to Q)\equiv(P\land\neg Q).

For example, the negation of “if 44 divides nn, then nn is even” says that 44 divides nn and nn is not even. It does not say “if 44 does not divide nn, then nn is not even.” The latter is the inverse.

For a universal claim, the negation also changes the quantifier:

¬(∀x∈D, P(x)→Q(x))≡∃x∈D, P(x)∧¬Q(x).\neg\bigl(\forall x\in D,\ P(x)\to Q(x)\bigr) \equiv \exists x\in D,\ P(x)\land\neg Q(x).

This is why one counterexample can refute a universal implication: the witness must satisfy its hypothesis and violate its conclusion. By contrast, forming the contrapositive preserves the universal quantifier and the domain.

RemarkNegate the entire condition

The negation of x>0x>0 is x≤0x\le 0, not x<0x<0. If the condition is compound, use De Morgan’s laws:

¬(A∧B)≡¬A∨¬B,\neg(A\land B)\equiv\neg A\lor\neg B,¬(A∨B)≡¬A∧¬B.\neg(A\lor B)\equiv\neg A\land\neg B.

For instance, the contrapositive of “if x>0x>0 and y>0y>0, then xy>0xy>0,” for real x,yx,y, is “if xy≤0xy\le 0, then x≤0x\le 0 or y≤0y\le 0.” Negating each inequality while leaving “and” unchanged would be incorrect.

Sufficient, necessary, and equivalent conditions

Saying that PP is sufficient for QQ means that PP guarantees QQ. Saying that QQ is necessary for PP means that PP cannot hold without QQ. Both express P→QP\to Q; they describe the same direction from different ends.

WordingLogical form
PP is sufficient for QQP→QP\to Q
QQ is necessary for PPP→QP\to Q
PP only if QQP→QP\to Q
PP if QQQ→PQ\to P
PP if and only if QQP↔QP\leftrightarrow Q

Being divisible by 44 is sufficient for being even. Being even is necessary for being divisible by 44, but is not sufficient: 22 still supplies a counterexample. To prove an “if and only if” claim, establish both the original and its converse. Proving the original and its contrapositive establishes the same direction twice.

A set interpretation makes this concrete. Inside a fixed domain DD, let AA contain the objects satisfying PP and BB those satisfying QQ. The universal implication says A⊆BA\subseteq B. Its contrapositive says

D∖B⊆D∖A.D\setminus B\subseteq D\setminus A.

Both inclusions exclude an object in AA but outside BB. The converse requires B⊆AB\subseteq A, an additional condition; both directions together give A=BA=B.

A complete proof by contrapositive

PropositionAn even square has an even integer root

For every integer nn, if n2n^2 is even, then nn is even.

The hypothesis describes a square, while the conclusion describes its root. Starting from an odd integer gives an explicit expression we can square, so the contrapositive offers a useful starting point. We use the integer parity fact that every integer is exactly one of even or odd; this follows from division by 22 with remainder 00 or 11.

Proof

Fix an arbitrary integer nn. We prove that if nn is not even, then n2n^2 is not even. By the parity fact, write n=2k+1n=2k+1 for an integer kk. Then

n2=(2k+1)2=4k2+4k+1=2(2k2+2k)+1.\begin{aligned} n^2&=(2k+1)^2\\ &=4k^2+4k+1\\ &=2(2k^2+2k)+1. \end{aligned}

Since 2k2+2k2k^2+2k is an integer, n2n^2 is odd and therefore not even. This proves the contrapositive, hence the original implication. As nn was arbitrary, the result holds for every integer.

The domain matters. For real numbers, “not even” cannot simply be replaced by “odd”; the parity dichotomy used here is a fact about integers. Also, showing that an even nn has an even square would prove the converse, which does not by itself establish the stated proposition.

Contrapositive and contradiction proofs

A proof by contrapositive starts from ¬Q\neg Q and establishes ¬P\neg P. A proof by contradiction of P→QP\to Q instead assumes the negation of that implication, namely P∧¬QP\land\neg Q, and derives a contradiction. For a universally quantified theorem, a contradiction proof begins by assuming there is a counterexample and taking such a witness.

These descriptions are related, and a proof of a contrapositive can itself use contradiction. In the parity proof above, however, we directly computed an odd square from an odd integer. No assumption that n2n^2 is even was needed. Choose the approach that exposes usable definitions or structure, and state what is assumed and what remains to be shown. See Indirect Proof for further examples.

Exercises

ExerciseKeep the domain fixed

For real xx, consider “if x>2x>2, then x2>4x^2>4.” Write its converse, inverse, and contrapositive. Determine whether each universal claim is true, giving counterexamples when appropriate.

Show solution
Solution

The original is true. The converse is “if x2>4x^2>4, then x>2x>2”; it fails at x=−3x=-3. The inverse is “if x≤2x\le 2, then x2≤4x^2\le 4”; the same value refutes it. The contrapositive is “if x2≤4x^2\le 4, then x≤2x\le 2,” which is true and equivalent to the original. Using x<2x<2 in place of x≤2x\le 2 would omit the boundary point when negating the condition.

ExerciseNegate a universal implication

Negate “for all integers a,ba,b, if abab is even, then aa and bb are both even.” Supply a witness to the negation.

Show solution
Solution

The negation says that there exist integers a,ba,b such that abab is even and at least one of a,ba,b is not even. Take a=2,b=3a=2,b=3: the product is 66, but bb is odd. The negation of “both even” is “at least one not even,” not “both odd.”

ExerciseDo two proofs give both directions?

A student proves P→QP\to Q and ¬Q→¬P\neg Q\to\neg P, then concludes P↔QP\leftrightarrow Q. Explain the gap. What additional direction would suffice?

Show solution
Solution

The two proved forms are equivalent, so both establish only the original direction. The missing direction is Q→PQ\to P, or equivalently ¬P→¬Q\neg P\to\neg Q. The assignment P=F,Q=TP=\mathrm F,Q=\mathrm T satisfies both proved forms but makes the biconditional false.

ExerciseChoose and finish a proof

Prove that for every integer nn, if 3n+23n+2 is odd, then nn is odd. State the contrapositive before beginning the calculation.

Show solution
Solution

The contrapositive says that if nn is even, then 3n+23n+2 is even. Write n=2kn=2k with k∈Zk\in\mathbb Z. Then

3n+2=6k+2=2(3k+1).3n+2=6k+2=2(3k+1).

Since 3k+13k+1 is an integer, this expression is even. The contrapositive, and hence the original claim, follows.

Before changing a proof task, identify its domain, hypothesis, conclusion, and quantifiers. Then check whether you have taken the converse, the contrapositive, or the negation of the entire statement. Continue with Direct Proof to practice turning definitions into a justified chain of deductions.

References

  1. [1] T. Leighton and R. Rubinfeld, “What Is a Proof?,” 2006. MIT 6.042/18.062J lecture notes, September 7, 2006. https://web.mit.edu/neboat/Public/6.042/proofs.pdf ↩