All articles

Logic

If-then logic: the four forms worth knowing

7 min read2026-11-03

Many logic puzzles are built from a single conditional sentence: if P then Q. Four patterns of reasoning can be built on top of it, and only two are valid. Learning their names is the fastest way to stop being fooled.

The two valid forms

Affirming the antecedent. If P then Q. P is true. Therefore Q. This is valid. If it rains, the match is cancelled; it is raining; the match is cancelled.

Denying the consequent. If P then Q. Q is false. Therefore P is false. This is also valid. If it rains, the match is cancelled; the match was not cancelled; therefore it did not rain.

The two traps

Denying the antecedent. If P then Q. P is false. Therefore Q is false. Invalid. The rule says rain cancels the match. It does not say rain is the only thing that cancels it. A flooded pitch would also do it.

Affirming the consequent. If P then Q. Q is true. Therefore P. Invalid. The match was cancelled, so it must have rained. Not necessarily.

The traps feel persuasive because everyday speech often implies "if and only if". In a puzzle, assume only what is written.

Reading "only if"

The word order matters. "You may enter only if you have a pass" means pass is required: enter implies pass. It does not mean a pass guarantees entry. Swap the direction and the conclusion flips, which is why so many puzzles use this construction.

The counter-example habit

When you are unsure whether a conclusion follows, try to build a world where the premises are true and the conclusion is false. If you can build one, the conclusion does not follow. If you cannot, it does.

Take "all painters are creative; some artists are painters". Try to make "some artists are creative" false. You would need every artist to be uncreative, including the painters, which contradicts the first premise. The conclusion holds.

Practice

The logic section of the 30-question challenge uses these forms directly, and every explanation names the form involved. Once you have seen the four patterns a few times, they become as recognisable as a spelling mistake.

Try it on a real puzzle

The 30-question challenge mixes logic, patterns, numbers, reasoning and memory — with an explanation for every answer.

Note on claims

These articles are educational. They are not medical or psychological advice, and no technique here is a clinical assessment.