Proof by contradiction does not end in the usual way. Direct proof ends when you finally write down the conclusion. Contradiction ends the moment you notice that two rows of your own work cannot coexist. That moment — the contradiction — is easy to miss on paper because the two conflicting rows might be separated by half a page of algebra, and nothing about the individual rows looks wrong.

The visualisation in this article is a contradiction detector. Picture a ledger that tracks every fact you have assumed or derived. Each new fact is added as a row. The detector runs a background check after every row: does this new fact conflict with anything I have already written? When the answer is yes, the panel flashes red. The flash is the end of the proof.

Training your eye on this pattern has two benefits. First, you finish contradiction proofs without wandering past the contradiction. Second, you learn to plan the proof by anticipating which specific collision you are aiming to trigger.

What counts as a conflict

A conflict is not "this feels wrong." It is a precise logical clash between two rows of the ledger. There are only a few shapes to look for.

Any time a new row logically denies an old row — or vice versa — the detector fires. The proof is over.

The interactive detector

Drag the slider below to step through a proof-by-contradiction ledger for the claim "there are infinitely many primes" (Euclid's proof, restated as contradiction). Each stage adds one fact to the ledger. At stage 6, a contradiction is detected — the panel flashes red and the proof terminates.

Each press of Step (or every second of Play) adds one fact to the ledger. After every addition the detector runs: green while the new row is consistent with all earlier rows, red the instant two rows fight. A red pulse animation draws attention to the conflict pair — you watch it flash, not just sit there.

Why the detector picture helps

Three specific training effects.

1. You learn to name the target. Before the detector goes off, you should be able to say what the conflict is going to be with. In the primes proof, you are aiming at the conflict "p_i \mid 1 but primes do not divide 1." Naming the target before you start the algebra makes the algebra feel goal-directed rather than exploratory.

Why naming the target matters: proof by contradiction without a target is wandering. With a named target, each line of algebra has a job — either it produces the conflicting fact or it does not. Lines that do not contribute get deleted. The detector picture trains this habit by making the "target" — the conflicting row — visually explicit from the start.

2. You learn to stop. Some students keep writing after the contradiction, because they feel the proof is "too short." The detector tells them to stop. Once red flashes, every further line is noise.

3. You spot planted conflicts faster. In an exam, the author usually arranges for the contradiction to be short and clean. Training on the detector model — "where is the flash going to come from?" — lets you pattern-match on the most likely conflict candidates: even/odd, zero/non-zero, lowest-terms clashes, inequalities with equalities, set-membership with set-exclusion.

A second example — \sqrt{2} irrational

Short run of the ledger, to show the shape again.

  1. Assume \sqrt{2} = p/q with \gcd(p, q) = 1.
  2. Square: 2q^2 = p^2.
  3. So p^2 is even, hence p is even.
  4. Write p = 2k; substitute: q^2 = 2k^2, so q^2 is even, hence q is even.
  5. Detector flash. Row 1 says \gcd(p, q) = 1. Rows 3 and 4 together say 2 divides both p and q, i.e. \gcd(p, q) \geq 2. Contradiction.

The conflict is between row 1 and rows 3+4 combined. The detector does not care that the conflict is split across three rows — logic does not care either. As long as two of the ledger's consequences cannot simultaneously hold, the detector fires.

A diagnostic: were you actually contradicting something?

A common subtle failure in student proofs by contradiction is deriving something surprising and treating it as a contradiction, when in fact it is merely unexpected. The detector picture rules this out cleanly: a contradiction must point at a specific earlier row.

Ask yourself, at the end of the derivation: what is row X that row Y is denying? If you cannot answer with two specific row numbers from your own ledger, you did not derive a contradiction. Go back and look harder.

The mental model

The contradiction detector is the mental image to carry into every proof by contradiction. You are not wandering through hypothetical algebra waiting for something bad to happen. You are building a ledger, and the end is when two rows of your own ledger fight. Keep the ledger visible, watch the detector, and stop at the flash.

Related: Proof by Contradiction · Two-World Split Screen — Watch the Negation World Collapse · Proof by Contradiction for Irrationality · Proof by Contradiction: Assume Not-Conclusion, Derive False