Disproof and Counterexamples
Is every odd number prime? Is every continuous function differentiable? Is every matrix with positive entries invertible? Each question has the same grammatical shape — "every X has property P." Each has the same fate: a single well-chosen object shows it false. Learning to refute a universal claim efficiently is a key skill. This matters more than groping through cases. It is one of the most useful skills a mathematician acquires. False conjectures vastly outnumber true ones in the wild. Knowing how to kill them quickly matters. It lets you spend your energy proving the survivors. The idea sounds almost too simple to deserve an article. To disprove "for all , ," just find one for which fails. But the simplicity is exactly the point. It rests on a piece of logical machinery — the negation of a quantified statement. This must be gotten exactly right. Otherwise the "disproof" is worthless. Many false proofs in student work come not from bad arithmetic. Instead, they come from disproving the wrong statement. Some attack by showing fails for some they misidentify. Others, worse, show is false when the claim was . This article makes the logic of counterexamples completely precise. It explains what a counterexample is. It shows why exhibiting one is a complete proof of a negation. It shows how the search for counterexamples interacts with the structure of the statement being tested. This includes nested quantifiers, implications, and universally-quantified conditionals. We prove the underlying theorem — that a single counterexample suffices. This follows as a direct consequence of the semantics of quantifiers, not as folklore. We also show, via a genuine counterexample-to-the-method, what goes wrong. Specifically, we show the danger of dropping the requirement that the counterexample actually lies in the domain of discourse. The payoff is a disciplined refutation strategy usable everywhere in mathematics. This includes number theory, analysis, linear algebra, and combinatorics. It also sets up later material on Existence and Uniqueness Proofs. There, the interplay of "there exists" and "for all" becomes the central object of study. It is no longer just a tool for demolition.
- A universal statement is false iff there exists with false.
- One concrete making false is a complete, rigorous proof that is false.
- For implications , a counterexample is an with true and false.
- Disproving requires an that defeats every — a stronger burden than disproving .
- A counterexample search is guided by the negated statement: know exactly what you must exhibit before you look for it.
- Key idea: to refute "always," you need only "once" — but that "once" must be verified with the same rigor as any theorem.
Where this lives today
Counterexample-hunting is a working tool across mathematics and beyond. In analysis and topology, entire reference books catalogue spaces and functions built purely to violate one plausible-sounding universal claim, from non-metrizable topological spaces to nowhere-differentiable continuous functions; these serve as the field's stress tests for which hypotheses are truly necessary in theorems. In algebra, counterexamples separate classes of structures — a ring that is not an integral domain, a group that is not abelian, a matrix that is invertible over but not over — clarifying exactly which implications hold and which need extra hypotheses. In computer science, model checkers and automated theorem provers search state spaces specifically for counterexamples to safety properties expressed as universal statements over program states; a single found counterexample (a "witness trace") is treated as a complete disproof of correctness, exactly mirroring the logical criterion here. In cryptography, breaking a claimed security property often means exhibiting one attack — one adversary strategy that violates the universal "for all adversaries, the scheme resists forgery" claim — and that single strategy suffices to invalidate the security proof. In statistics and the philosophy of science, Popper's falsifiability criterion, directly modeled on mathematical counterexamples, shapes how empirical universal claims are tested against data. Finally, in combinatorics and graph theory, conjectures are routinely tested computationally against small cases precisely because a single small counterexample (a specific graph, a specific coloring) can end a decades-old conjecture, as happened historically with several Euler-type and Ramsey-type conjectures.
:::quiz[A student wants to disprove over functions on using . Is this valid?]
- Yes, since is differentiable and has no maximum on but the domain here is closed , so check the actual max
- Invalid as stated, since on the closed interval attains a maximum at , so is true and it is not a counterexample ✓
- Valid, since is a straight line and lines never have maxima
- Invalid, since is not differentiable
Ask the tutor: Can you give me a universal statement with three quantifiers and walk me through exactly what a valid counterexample to it would need to establish?
Let be a set (the domain of discourse) and let be a predicate defined on , so that is a statement for each . Consider the universally quantified statement
A counterexample to this statement is an element such that is false. More generally, for a statement of conditional form
a counterexample is an element such that is true and is false (equivalently, satisfies the hypothesis but not the conclusion). To disprove means to prove its negation, ; exhibiting a counterexample together with a verification that it satisfies constitutes exactly such a proof.
Intuition
A universal claim "" is a claim about every element of a domain, potentially infinite. To prove it directly you typically need a general argument covering all cases at once — an argument that works no matter which someone hands you. But to show the claim is false, the logical burden collapses: you do not need to say anything about most of . You need exactly one element, checked concretely, where fails. This asymmetry is the heart of the matter, and it comes directly from the semantics of negation applied to quantifiers, which you have already seen: is logically equivalent to . A disproof of a -statement is a proof of an -statement, and proofs of -statements are, by their nature, allowed to be "constructive point-checks" — produce the witness, check the property, done. No sweeping argument about the whole domain is required, which is why counterexamples are often much shorter than the proofs of the theorems they refute. The subtlety enters once statements have more than one quantifier, or hide a quantifier inside an implication. "Every differentiable function is continuous" is true; "every continuous function is differentiable" is false, and the classic witness works because it satisfies the hypothesis (continuous at ) while violating the conclusion (not differentiable at ). Get the direction of the implication backwards and you'll go hunting for the wrong kind of example forever. With nested quantifiers such as , the negation demands an that defeats every candidate — a strictly stronger task than defeating a single-quantifier claim, and one that requires its own short universal argument over , even though the outer structure is existential.
Let be a nonempty set and let be a predicate on . The universal statement
is false if and only if there exists such that is false. Consequently, to prove is false, it suffices to exhibit a single and verify that is false; no argument about any other element of is required.
We argue from the truth-conditions (semantics) of the universal and existential quantifiers over a domain , which is the standard technique for quantifier facts: it does not rely on any theorem about proof techniques, only on the definitions of and themselves, so there is no circularity.
Definitions used. By definition, the statement is true exactly when is true for every single element of ; it is false exactly when this fails, i.e. when it is not the case that holds for every . By definition, the statement is true exactly when there is at least one element for which is true.
Step 1: Unwind what "false" means for the universal statement. is false it is not true that ( holds for every ) there is at least one for which does not hold there is at least one for which holds. This chain of equivalences is just restating, in two different but synonymous ways, the single fact that "for every" fails precisely when some instance fails — this is the definitional content of , not an assumption we are importing.
Step 2: Translate "there is at least one for which holds" into quantifier notation. By the definition of given above (applied to the predicate in place of ), the phrase "there is at least one for which holds" is precisely the meaning of the formal statement
Step 3: Combine. Steps 1 and 2 give the biconditional
i.e.
This is exactly the claimed criterion, read as an "iff": the universal statement is false iff some makes false. (This equivalence is also visible truth-table-wise in the finite case: if , then is the conjunction , and a conjunction is false iff at least one conjunct is false — which is exactly "some makes false." The argument above generalizes this finite fact to arbitrary, possibly infinite, directly from the quantifier definitions.)
Step 4: Conclude the proof-theoretic consequence. By Step 3, to establish that is false, it is logically equivalent — and hence logically sufficient — to establish that is true. By the definition of , establishing an existential statement requires only producing one witness and verifying the predicate (, i.e. " is false") holds for that particular . No universally-quantified reasoning about the rest of enters this verification at any point, because the truth of depends only on the existence of a witness, not on the behavior of non-witnesses.
∎Let be nonempty and let be predicates on . The statement
is false if and only if there exists with true and false.
By the Counterexample Criterion applied to the predicate in place of , the statement is false iff there is with true. It remains to unwind . Recall (from the truth table of the conditional, part of the definition of ) that is false exactly in the single case where is true and is false; in every other combination of truth values the conditional is true. Hence is true exactly when is true and is false. Substituting this into the criterion gives: is false iff there exists with true and false, as claimed.
∎Worked examples
Example 1 — a claim about integers, asymmetric and multi-step. Claim to test: "For every integer , if is prime for , then is prime for all positive integers ." Rather than test this vague meta-claim, let's test the cleaner and historically famous statement it alludes to:
This has fooled people because it is true for (Euler's polynomial). By the Counterexample Criterion, to disprove the universal claim we need exactly one positive integer for which is not prime — we owe no explanation of the other successes. Take . Compute:
Since has as a proper divisor with , is composite, not prime. Thus — " is prime" — is false, so is a counterexample. By the Counterexample Criterion, is false. Notice we did not need to explain why the pattern holds for ; the single failure at is a complete, self-contained refutation. (In fact already works, since is prime — wait, check: we want a failure, and still gives a prime; the point is that is the first failure, and finding the first failure is not logically necessary, only convenient. Any single failing would do.)
Example 2 — a claim about real functions, testing an implication. Claim to test:
where the domain is the set of real-valued functions on , is " is continuous on ," and is " is differentiable on ." By the Corollary above, a counterexample is a function with true (continuous) and false (not differentiable somewhere). Let . We must verify both halves rigorously. Continuity of at every : Given , choose . For , the reverse triangle inequality gives
So is continuous at every , hence continuous on ; holds. Failure of differentiability at : Consider the difference quotient
The right-hand limit as is , and the left-hand limit as is . Since these one-sided limits disagree (), the two-sided limit does not exist, so is not differentiable at . Hence is false. So satisfies , exactly the criterion of the Corollary. Therefore
is false — continuity does not imply differentiability. Again, note the asymmetry with Example 1: here the counterexample must satisfy two conditions (hold the hypothesis, break the conclusion), and both had to be separately proved, with – work on one side and a one-sided-limit computation on the other. A function that merely failed to be differentiable, without first being shown continuous, would not refute the implication — it might simply fail to be a legitimate test case if it also failed continuity (in which case is false and is automatically true, vacuously, for that ).
The Counterexample Criterion requires . Dropping this — allowing a "witness" from outside the domain of discourse — breaks the method entirely, and here is a genuine failure showing why. Consider the claim
i.e., "every positive integer satisfies ." This is in fact true: for , since both factors are nonnegative when , so holds for every . Suppose a student, ignoring the restriction , tries , which lies in but not in . Then , so — "" — is indeed false at . If the student concludes " is a counterexample, so the claim is false," the conclusion is wrong, even though the arithmetic () is perfectly correct. The true statement has been "disproved" by an invalid argument, because : the domain restriction in the Counterexample Criterion is not decorative, it is load-bearing. The criterion reads "there exists with false" — an outside says nothing about , since that quantifier never ranges over points outside in the first place. This shows precisely what fails if the hypothesis "" is dropped from the theorem: the biconditional
becomes the strictly weaker (and here false) claim
and the right side can be true (witnessed by ) while the left side is false. The lesson generalizes: always state the domain of your universal claim precisely, and always check membership in that domain as part of verifying a counterexample — it is not optional bookkeeping, it is half the proof.
Scope, edge cases & common traps
| Situation | What a valid counterexample must do | Common mistake |
|---|---|---|
| Exhibit with false, verified | Picking | |
| Exhibit with true and false | Using an where is already false (implication is vacuously true there) | |
| Exhibit , then prove for every | Exhibiting one bad pair and forgetting other might still work for that | |
| Prove : for every candidate , produce a defeating | Testing only one and declaring victory | |
| Empty domain | is vacuously true; no counterexample can exist | Assuming some exotic must be lurking |
The mathematician behind it
Origins · 1 minKarl Popper and how this was discovered
Karl Popper was not a mathematician but a philosopher of science, and his relevance here is conceptual rather than technical: he argued that scientific theories, framed as universal laws ("all swans are white"), can never be proven by accumulating confirming instances, but can be refuted by a single counter-instance — one black swan. This is precisely the logical asymmetry the Counterexample Criterion formalizes for mathematics: a universal statement collapses under one witness to its negation, while confirming instances, however numerous, never establish it. Mathematicians had used counterexamples with full rigor for centuries before Popper (Euler's own polynomial failing at predates him by 150 years), but Popper's articulation of "falsifiability" gave the everyday mathematical habit of hunting for counterexamples a name recognized across all the sciences.
Why does one counterexample suffice — isn't that too easy compared to proving a theorem?
It feels asymmetric because it is asymmetric, and that asymmetry is a genuine, provable fact about quantifiers, not a shortcut or convention. A universal statement makes a claim about every element of ; proving it true generally requires an argument that covers all of at once (or a valid case split covering all of ). But its negation is existential: . Existential statements are, by the very meaning of "there exists," verified by producing one instance — the definition of does not ask for anything about the rest of the domain. So the "easiness" of counterexamples is not a loophole; it is the same logical machinery that makes universal proofs hard, viewed from the other side.
What if I can't find a counterexample — does that mean the statement is true?
No. Failing to find a counterexample after some search proves nothing by itself; it may mean the statement is true (and you should now attempt a direct or other proof), or it may mean a counterexample exists but you haven't found it yet, perhaps because it is large, exotic, or requires a clever construction. The Counterexample Criterion is a biconditional about the existence of a witness, not about the difficulty of finding one. Many famous conjectures resisted counterexample search for decades before either being proven true or refuted by a counterexample discovered later (Euler's sum of powers conjecture stood unrefuted for two centuries before a computer search found ).
Does a counterexample need to be a "nice" or simple object?
No — logical validity does not require simplicity. A counterexample is valid as soon as it is (a) a genuine member of the stated domain and (b) verified, with full rigor, to make the predicate false (or, for an implication, to satisfy the hypothesis while violating the conclusion). Simplicity is a matter of mathematical taste and communicability, not correctness. That said, mathematicians do prize simple counterexamples because they are easier to verify and to generalize; much of the art of "counterexample hunting" is finding the simplest object with the required failure, not merely any object.
How does this relate to proof by contradiction?
They are related but distinct techniques. Disproving via a counterexample is a direct proof of the equivalent existential statement : you produce and directly verify , with no assumption-for-contradiction involved. Proof by contradiction is a different technique used to prove statements are true — you assume the statement is false and derive an absurdity. It is possible (and common) to use proof by contradiction as a tool inside the verification that a specific candidate satisfies — for instance, showing is irrational (part of some larger counterexample) is itself often argued by contradiction — but the overall counterexample method is fundamentally a direct-verification strategy applied to an existential statement.
Can a single counterexample disprove a theorem with multiple hypotheses?
Yes, provided you show the counterexample satisfies all the stated hypotheses while violating the conclusion — exactly as in the Corollary for implications, generalized to conjunctions of hypotheses. If a claimed theorem reads , a counterexample must be an satisfying both and (the full hypothesis) while fails. If your candidate violates one of the hypotheses, it is not a counterexample to the theorem as stated — it may only show that some weaker version of the theorem (with a hypothesis dropped) would be false, which is a related but different and often illuminating exercise, as our own counterexample block on domain restriction illustrates.
Is "no counterexample found in millions of computer-checked cases" ever accepted as a proof?
Never as a mathematical proof of a universal statement over an infinite domain, no matter how large the search. Checking a finite (even enormous) initial segment of an infinite domain establishes the claim only for that segment; the Counterexample Criterion concerns the whole domain , and a universal claim over an infinite is not reducible to finitely many instances. The Euler polynomial example in this article is a canonical warning: it holds for consecutive values before failing. Computer search is an excellent heuristic for finding counterexamples (or building confidence enough to attempt a real proof), but the mathematical community requires either a full proof or a produced-and-verified counterexample — never a search report — to settle the claim.
How does this connect forward to existence and uniqueness proofs?
Counterexamples are existential statements verified by a single witness; existence proofs (in the sense of "there is an with property ") are exactly the same logical shape, just usually pursued as a positive goal rather than a refutation. Uniqueness proofs add a second layer — showing any two witnesses coincide — which is a universal statement layered on top of an existential one. Mastering how one witness settles an -claim, as practiced here in disproof, is the direct rehearsal for the constructive half of Existence and Uniqueness Proofs, where you will build a witness on purpose instead of hunting for one that breaks someone else's claim.