PYQ Vault

IMAT Logical Reasoning · Deductive Logic

If, Only If and Unless: Conditionals and Valid Inference

An if-then statement links a condition to a result; only some ways of reasoning from it are valid, and the contrapositive is the one rewording that keeps its meaning.

Why this matters

Two ministry questions (2024 and 2025) gave an if-then statement and asked which conclusion can be deduced; both answers were modus tollens. Two Cambridge questions (2021 and 2022) asked for the argument with the same logical structure.

Concept 1 of 4: If P then Q: the converse, the inverse and the contrapositive

"If it is a whale, it is a mammal" is true, but "if it is a mammal, it is a whale" is false: a dog is a mammal. Turning a conditional round changes its meaning. Turning it round AND negating both parts keeps the meaning: if it is not a mammal, it cannot be a whale.

Definition

In if P then Q (written P⇒QP \Rightarrow Q), P is the antecedent (the condition) and Q is the consequent (the result).

  • The statement is false in only one case: P true and Q false. When P is false, it makes no claim.
  • The contrapositive (if not Q then not P) always has the same meaning as the original.
  • The converse (if Q then P) and the inverse (if not P then not Q) do not. They are equivalent to each other.
  • "Whenever P, Q", "every time P, Q" and "all P are Q" are all forms of if P then Q.
FormPatternExampleSame meaning as the original?
OriginalIf P then QIf it is a whale, it is a mammal.Yes
ConverseIf Q then PIf it is a mammal, it is a whale.No
InverseIf not P then not QIf it is not a whale, it is not a mammal.No (it matches the converse)
ContrapositiveIf not Q then not PIf it is not a mammal, it is not a whale.Yes
Only the contrapositive can replace the original statement.
Practice this conceptself-check · 3 quick reps

The converse is not equivalent

"If P then Q" does not give "if Q then P". All whales are mammals, but not all mammals are whales. The only rewording with the same meaning is the contrapositive, "if not Q then not P".

Concept 2 of 4: Necessary and sufficient conditions: only if, unless, if and only if

In "if P then Q", P is enough to guarantee Q, so P is sufficient. Q cannot be missing whenever P happens, so Q is necessary for P. "Only if" points at the necessary condition. Rewrite every wording as an arrow before reasoning with it.

Definition

For P⇒QP \Rightarrow Q:

  • P is a sufficient condition for Q: P alone guarantees Q.
  • Q is a necessary condition for P: without Q, P cannot happen.
  • "P only if Q" means P⇒QP \Rightarrow Q. The word after "only if" is the necessary condition.
  • "P unless Q" means "if not Q, then P".
  • "P if and only if Q" means both P⇒QP \Rightarrow Q and Q⇒PQ \Rightarrow P: each is necessary and sufficient for the other.
WordingAs an arrowWhat it tells you
If P, then QP⇒QP \Rightarrow QP is sufficient for Q; Q is necessary for P
Q if PP⇒QP \Rightarrow QSame as above: the word after "if" is the condition
P only if QP⇒QP \Rightarrow QQ is necessary for P
Only Q can be P (only Qs are Ps)P⇒QP \Rightarrow QEvery P is a Q
P unless Qnot Q⇒P\text{not } Q \Rightarrow PWithout Q, P happens
P if and only if QP⇔QP \Leftrightarrow QEach is necessary and sufficient for the other
"Only if" and "if" point in opposite directions.
Practice this conceptself-check · 4 quick reps

"Only if" introduces the necessary condition

"P only if Q" means if P then Q. Reading it as "if Q then P" turns a necessary condition into a sufficient one, which is the most common wrong option on these items.

Concept 3 of 4: Valid inference: modus ponens and modus tollens, and the two fallacies

Given "if P then Q", only two one-step conclusions are safe. If P happens, Q happens. If Q did not happen, P cannot have happened. The other two moves feel natural but fail, because Q can have causes other than P.

Definition

An argument is valid when the conclusion must be true whenever the premises are true. From P⇒QP \Rightarrow Q:

  • Modus ponens: P, so Q. Valid.
  • Modus tollens: not Q, so not P. Valid (it uses the contrapositive).
  • Affirming the consequent: Q, so P. Invalid.
  • Denying the antecedent: not P, so not Q. Invalid.
  • Chaining: P⇒QP \Rightarrow Q and Q⇒RQ \Rightarrow R give P⇒RP \Rightarrow R. Valid.
NamePremisesConclusionValid?
Modus ponensIf P then Q; PQYes
Modus tollensIf P then Q; not QNot PYes
Affirming the consequentIf P then Q; QPNo
Denying the antecedentIf P then Q; not PNot QNo
ChainIf P then Q; if Q then RIf P then RYes
The two invalid forms are the converse and the inverse in disguise.
Practice this conceptself-check · 3 quick reps

Affirming the consequent looks like modus ponens

From "if it rains, the street is wet" and "the street is wet", you cannot conclude that it rained: a burst pipe also wets the street. Only "the street is dry, so it did not rain" is valid.

Concept 4 of 4: Finding the argument with the same logical structure

Two arguments about different topics can have the same skeleton. Replace each idea with a letter and write the argument as arrows. Then compare skeletons, not topics: the matching option has the same arrows, the same "not"s and the same kind of conclusion, valid or flawed.

Definition

To match structure:

  • Write the original as a skeleton, for example A⇒BA \Rightarrow B; not B; so not A.
  • Translate "requires", "needs", "only if" into arrows first: "A requires B" is A⇒BA \Rightarrow B.
  • Do the same for each option and pick the identical skeleton.
  • A flawed argument must be matched by an option with the same flaw. A valid option does not match a flawed original.
  • Ignore the topic and whether the conclusion is true in real life.

Worked example

Original: "Only members can borrow books. Lena is not a member, so Lena cannot borrow books." Which has the same structure? (1) Only adults can vote. Tom is an adult, so Tom can vote. (2) Only licensed drivers may rent a car. Ivo has no licence, so Ivo may not rent a car. (3) Only athletes use this gym. Eva uses this gym, so Eva is an athlete.
Practice this conceptself-check · 3 quick reps

Match the skeleton, not the topic

An option on the same subject as the original, or with a conclusion that sounds sensible, is often the wrong one. Only the pattern of arrows and "not"s decides the match.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Reference tables (3)

If P then Q: the converse, the inverse and the contrapositive4 rows
FormPatternExampleSame meaning as the original?
OriginalIf P then QIf it is a whale, it is a mammal.Yes
ConverseIf Q then PIf it is a mammal, it is a whale.No
InverseIf not P then not QIf it is not a whale, it is not a mammal.No (it matches the converse)
ContrapositiveIf not Q then not PIf it is not a mammal, it is not a whale.Yes
Only the contrapositive can replace the original statement.
Necessary and sufficient conditions: only if, unless, if and only if6 rows
WordingAs an arrowWhat it tells you
If P, then QP⇒QP \Rightarrow QP is sufficient for Q; Q is necessary for P
Q if PP⇒QP \Rightarrow QSame as above: the word after "if" is the condition
P only if QP⇒QP \Rightarrow QQ is necessary for P
Only Q can be P (only Qs are Ps)P⇒QP \Rightarrow QEvery P is a Q
P unless Qnot Q⇒P\text{not } Q \Rightarrow PWithout Q, P happens
P if and only if QP⇔QP \Leftrightarrow QEach is necessary and sufficient for the other
"Only if" and "if" point in opposite directions.
Valid inference: modus ponens and modus tollens, and the two fallacies5 rows
NamePremisesConclusionValid?
Modus ponensIf P then Q; PQYes
Modus tollensIf P then Q; not QNot PYes
Affirming the consequentIf P then Q; QPNo
Denying the antecedentIf P then Q; not PNot QNo
ChainIf P then Q; if Q then RIf P then RYes
The two invalid forms are the converse and the inverse in disguise.

Watch out for (4)

Drill the past-year questions on this topic

Open the bank with this topic pre-filtered.