ArticleslgStudy

mathematics

Counterexample

Counterexample is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Counterexample rather than just read about it. In short: A counterexample is a specific example that contradicts a claim, hypothesis, or generalization. In logic a counterexample disproves a universally stated claim, and does so rigorously in the fields of mathematics and philosophy.

Key takeaways

  • Counterexample belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Counterexample to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Counterexample from memory before moving on to harder problems.

Reference excerpt

A counterexample is a specific example that contradicts a claim, hypothesis, or generalization. In logic a counterexample disproves a universally stated claim, and does so rigorously in the fields of mathematics and philosophy. For example, the statement that "student John Smith is not lazy" is a counterexample to the generalization "students are lazy", and both a counterexample to, and disproof of, the universally quantified "all students are lazy."

In mathematics In mathematics, counterexamples are often used to establish the boundaries of possible theorems. By using counterexamples to show that certain conjectures are false, mathematical researchers can then avoid going down blind alleys and learn to modify conjectures to produce provable theorems. It is sometimes said that mathematical development consists primarily in finding (and proving) theorems and counterexamples.

Rectangle example Suppose that a mathematician is studying geometry and shapes, and she wishes to prove certain theorems about them. She conjectures that "All rectangles are squares", and she is interested in knowing whether this statement is true or false. In this case, she can either attempt to prove the truth of the statement using deductive reasoning, or she can attempt to find a counterexample to the statement if she suspects it to be false. In the latter case, a counterexample would be a rectangle that is not a square, such as a rectangle with two sides of length 5 and two sides of length 7. However, despite having found rectangles that were not squares, all the rectangles she did find had four sides. She then makes the new conjecture "All rectangles have four sides". This is logically weaker than her original conjecture, since every square has four sides, but not every four-sided shape is a square. The above example explained — in a simplified way — how a mathematician might weaken her conjecture in the face of counterexamples, but counterexamples can also be used to demonstrate the necessity of certain assumptions and hypotheses. For example, suppose that after a while, the mathematician above settled on the new conjecture "All shapes that are rectangles and have four sides of equal length are squares". This conjecture has two parts to the hypothesis: the shape must be 'a rectangle' and must have 'four sides of equal length'. The mathematician then would like to know if she can remove either assumption, and still maintain the truth of her conjecture. This means that she needs to check the truth of the following two statements:

"All shapes that are rectangles are squares." "All shapes that have four sides of equal length are squares". A counterexample to (1) was already given above, and a counterexample to (2) is a non-square rhombus. Thus, the mathematician now knows that each assumption by itself is insufficient.

Other mathematical examples

A counterexample to the statement "all prime numbers are odd numbers" is the number 2, as it is a prime number but is not an odd number. Neither 7 nor 10 is a counterexample, since neither one contradicts the statement. In this example, 2 is in fact the only possible counterexample to the statement, but that alone is enough to contradict the statement. In a similar manner, the statement "All natural numbers are either prime or composite" has the number 1 as a counterexample, as 1 is neither prime nor composite. Euler's sum of powers conjecture was disproved by counterexample. It asserted that at least n nth powers were necessary to sum to another nth power. This conjecture was disproved in 1966, with a counterexample involving n = 5; other n = 5 counterexamples are now known, as well as some n = 4 counterexamples. Witsenhausen's counterexample shows that it is not always true (for control problems) that a quadratic loss function and a linear equation of evolution of the state variable imply optimal control laws that are linear. All Euclidean plane isometries are mappings that preserve area, but the converse is false as shown by the counterexamples of shear mapping and squeeze mapping. Other examples include the disproofs of the Seifert conjecture, the Pólya conjecture, the conjecture of Hilbert's fourteenth problem, Tait's conjecture, and the Ganea conjecture. In 2026, the Jacobian conjecture for ⁠n>2⁠ was disproved by Levent Alpöge which he credited to Anthropic's Claude Fable 5 large language model. The announcement, containing the explicit counterexample, was made by Alpöge via a Tweet on the X social media platform.

In philosophy In philosophy, counterexamples are usually used to argue that a certain philosophical position is wrong by showing that it does not apply in certain cases. Alternatively, the first philosopher can modify their claim so that the counterexample no longer applies; this is analogous to when a mathematician modifies a conjecture because of a counterexample. For example, in Plato's Gorgias, Callicles argues that those who are physically stronger or more capable are naturally entitled to rule over weaker people. Socrates responds by proposing that the sheer number of ordinary people, by virtue of their combined strength, could be considered "stronger" than the aristocratic few even though the masses are prima facie of worse character. This presents a counterexample to Callicles' claim, by shifting the notion of strength from individual superiority to collective power. Callicles' argument therefore fails under this alternative interpretation, unless he revises his claim. Callicles might challenge Socrates' counterexample, arguing perhaps that the common rabble really are better than the nobles, or that even in their large numbers, they still are not stronger. But if Callicles accepts the counterexample, then he must either withdraw his claim, or modify it so that the counterexample no longer applies. For example, he might modify his claim to refer only to individual persons, requiring him to think of the common people as a collection of individuals rather than as a mob. As it happens, he modifies his claim to say "wiser" instead of "stronger", arguing that no amount of numerical superiority can make people wiser.

See also Contradiction Exception that proves the rule Minimal counterexample

References

… excerpt ends here. Continue reading the full article.

Worked examples

Example 1 — a first encounter with Counterexample

Start with the simplest possible case. Write down what Counterexample claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Counterexample before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Counterexample ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Counterexample

In research
Counterexample appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Counterexample in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Counterexample is common in secondary-school and first-year university syllabi. It links to neighbouring topics Interpretation (philosophy), Logic, Mathematical terminology, so understanding it makes those chapters shorter.
In everyday life
Look for Counterexample outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Counterexample” →

How to study Counterexample in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Counterexample means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Counterexample out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Counterexample in simple terms?

A counterexample is a specific example that contradicts a claim, hypothesis, or generalization. In logic a counterexample disproves a universally stated claim, and does so rigorously in the fields of mathematics and philosophy.

Why does Counterexample matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Counterexample?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Counterexample.

Tags

  • Interpretation (philosophy)
  • Logic
  • Mathematical terminology
  • Methods of proof

Keep exploring