Tool/Reasoning and Philosophy/No. 0786
Proof by Counterexample
Proof by counterexample is a method in mathematical logic that disproves a universal claim by finding one case where it fails. The case must meet the claim’s stated conditions. This method tests rules that apply to every case; a statistical trend can allow exceptions.
Also called Disproof by Counterexample
- Evidence
- Well established
- Read
- 6 min
- Links
- 10 connections
01You've seen this when…
- in life
A friend says all inexpensive shoes fall apart within a year. You are wearing a $35 pair bought three years ago.
- at work
The release checklist says every active account can reset its password. You try an active account created through a partner, and the reset process fails.
- out in the world
The transit agency says every bus on Route 8 arrives within five minutes of its scheduled time. At your stop, the 8:10 bus pulls in at 8:25.
02The idea
Words such as all, every, always and never make demanding promises. A claim that every active account can reset its password covers each account within its stated scope. One qualifying account that cannot reset its password breaks that promise.
The logic has two parts: the case meets the claim’s conditions, and the promised result fails. Both matter. A disabled account cannot refute a rule about active accounts. An active account with a failed reset can, provided the failure is established and falls within the rule’s stated conditions.
This is a form of deduction. A universal claim rules out exceptions, so finding an exception establishes that the claim is false. Counting hundreds of successful resets cannot repair the original claim. A narrower claim may survive, such as one covering accounts created through the standard signup process.
The method also tests arguments. An argument form is invalid if there is a possible case in which its premises are true and its conclusion is false. Reductio ad absurdum takes a different route: it assumes a proposition and derives a contradiction.
03How to use it
- Write the exact claim. Preserve its scope, conditions and time period. A rule about all accounts created this month differs from a rule about all accounts ever created. If the claim says usually or on average, establish what frequency or average it predicts before searching for exceptions.
- Describe a case that would break it. Identify the qualifying condition and the promised result. For the password rule, the target is an active account that meets every stated requirement and still cannot complete a reset. This forces attention onto necessary and sufficient conditions: what exactly must hold for the rule to apply?
- Verify the candidate. Check that the case belongs in the claimed category. Then check the failure. Reproduce a software error, inspect the original record, or calculate both sides of an equation. A mistaken classification or faulty measurement can make a promising counterexample disappear.
- State the conclusion at the right size. Identify the universal claim that failed and show the qualifying exception. Keep separate any questions about frequency, causes or consequences. If the claim is revised, write down the revision and test that version on its own terms.
A useful discipline is to search where the rule is under strain: boundary dates, unusual account types, extreme values or overlooked groups. Deliberately looking for failure helps counter confirmation bias, which keeps attention on cases that support the rule.
04A worked example
In 1769, Leonhard Euler proposed a rule about sums of integer powers. One consequence was that a fifth power could equal a sum of two or more positive integer fifth powers only if that sum had at least five terms.
In 1966, L. J. Lander and T. R. Parkin used a computer search to find this equation:
27⁵ + 84⁵ + 110⁵ + 133⁵ = 144⁵
There are four terms on the left. Each is the fifth power of a positive integer, and their sum equals another positive integer’s fifth power.
What it looks like A nearly two-century-old conjecture from a leading mathematician offers a general rule. Testing cases that satisfy it can keep adding support without settling whether it holds everywhere.
What’s actually going on This single equation violates the rule’s requirement of at least five terms. All the relevant conditions are met, and exact arithmetic establishes the equality. The fifth-power case therefore disproves Euler’s broader conjecture. It leaves questions about other exponents to separate arguments.
What made it work The researchers produced a witness that anyone could check. The equation carries the argument: four qualifying terms achieve the result the conjecture said required at least five. Once that calculation is verified, further examples supporting the original rule cannot restore its universal truth.
05When to reach for it
Use it when a claim promises complete coverage: every customer receives a refund, no employee loses access, or a procedure always produces the same result. It is especially helpful when testing policies, product requirements and arguments built from broad categories.
It also checks hasty generalization. A handful of successful cases can encourage someone to announce a universal rule. Searching for a qualifying failure reveals how far those observations actually reach. When the claim concerns a tendency or an average, switch to evidence about rates, distributions and comparison groups.
06When it misleads
- A tendency allows exceptions. One smoker who lives to 100 does not refute evidence that smoking raises mortality risk. Using that person to dismiss a population-level result is an anecdotal fallacy. A statistical claim needs a statistical test appropriate to what it predicts.
- Unclear categories weaken the test. Claims about all good managers or every successful project leave room for disagreement over membership. Agree on observable criteria before testing. If a person excludes each awkward case solely because it breaks the rule, watch for No True Scotsman reasoning.
- Observations can be wrong. A report of a failed reset may reflect an expired link or an incorrect email address. In empirical settings, the force of the counterexample depends on measurement, records and the conditions of the test. Falsifiability helps identify what observations would count against a claim, but checking those observations still takes work.
- A broken rule leaves many questions open. One inaccessible polling site defeats a promise of universal accessibility. It gives no estimate of how many sites are inaccessible or why. Likewise, failing to find a counterexample does not prove a universal claim unless the search exhausts every possible case.
07Roots
Aristotle, working in fourth-century BCE Greece, wanted to separate arguments that guarantee their conclusions from arguments that merely sound convincing. In his Prior Analytics, letters stand for terms in general argument patterns. Concrete terms then expose patterns that allow true premises and a false conclusion. That is counterexample reasoning applied to inference itself.
The technique has no known single inventor. It belongs to the ancient mathematical and logical tradition of testing claims that purport to hold without exception. Such claims create an uneven task: proving them requires covering every permitted case, while disproving them can require just one. Euler’s conjecture and the later computer-generated equation show that asymmetry across centuries of mathematics.
In the twentieth century, Imre Lakatos made this process the subject of an imagined classroom discussion. A teacher presents the rule that a polyhedron’s vertices minus edges plus faces equals two. A cube fits neatly: 8 − 12 + 6 = 2. Awkward shapes force the class to examine its definitions and assumptions. His Proofs and Refutations shows how counterexamples can help develop sharper claims as mathematics proceeds.
08How solid is this?
The method’s force follows from deductive logic: a verified case that satisfies a universal claim’s conditions and violates its conclusion refutes that claim. Empirical applications depend on definitions and measurement, and a single exception does not establish how common exceptions are.
09Connections
- Often confused withAnecdotal Fallacy
- Helps counter Affirming the Consequent, No True Scotsman, Hasty Generalization, Confirmation Bias
- Part of Deduction, Popper’s Falsifiability, Reductio ad Absurdum
- See also Necessary vs. Sufficient Conditions, Validity vs. Soundness
10Origin and sources
An ancient technique in mathematics and logic, with no known single inventor. Aristotle’s Prior Analytics contains early counterexample tests of invalid inference patterns.
- [1]Aristotle (1989). Prior Analytics. Translated by Robin Smith. Hackett Publishing Company.
- [2]Lander, L. J., & Parkin, T. R. (1966). Counterexample to Euler's conjecture on sums of like powers. Bulletin of the American Mathematical Society, 72(6), 1079.
- [3]Lakatos, I. (1976). Proofs and Refutations: The Logic of Mathematical Discovery. Edited by J. Worrall and E. Zahar. Cambridge University Press.
Updated 2026-10-05