A counterexample is any exception to a
generalization. In
logic
Logic is the study of correct reasoning. It includes both formal and informal logic. Formal logic is the study of deductively valid inferences or logical truths. It examines how conclusions follow from premises based on the structure o ...
a counterexample disproves the generalization, and does so
rigorously in the fields of
mathematics
Mathematics is a field of study that discovers and organizes methods, Mathematical theory, theories and theorems that are developed and Mathematical proof, proved for the needs of empirical sciences and mathematics itself. There are many ar ...
and
philosophy
Philosophy ('love of wisdom' in Ancient Greek) is a systematic study of general and fundamental questions concerning topics like existence, reason, knowledge, Value (ethics and social sciences), value, mind, and language. It is a rational an ...
.
For example, the fact 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
universal quantification
In mathematical logic, a universal quantification is a type of quantifier, a logical constant which is interpreted as "given any", "for all", "for every", or "given an arbitrary element". It expresses that a predicate can be satisfied by e ...
"all students are lazy."
In mathematics
In mathematics, counterexamples are often used to prove 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
Geometry (; ) is a branch of mathematics concerned with properties of space such as the distance, shape, size, and relative position of figures. Geometry is, along with arithmetic, one of the oldest branches of mathematics. A mathematician w ...
and
shape
A shape is a graphics, graphical representation of an object's form or its external boundary, outline, or external Surface (mathematics), surface. It is distinct from other object properties, such as color, Surface texture, texture, or material ...
s, and she wishes to prove certain theorems about them. She
conjecture
In mathematics, a conjecture is a conclusion or a proposition that is proffered on a tentative basis without proof. Some conjectures, such as the Riemann hypothesis or Fermat's conjecture (now a theorem, proven in 1995 by Andrew Wiles), ha ...
s that "All
rectangles are
squares
In geometry, a square is a regular polygon, regular quadrilateral. It has four straight sides of equal length and four equal angles. Squares are special cases of rectangles, which have four equal angles, and of rhombuses, which have four equal si ...
", 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
Deductive reasoning is the process of drawing valid inferences. An inference is valid if its conclusion follows logically from its premises, meaning that it is impossible for the premises to be true and the conclusion to be false. For example, t ...
, or she can attempt to find a counterexample of 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
hypothesis
A hypothesis (: hypotheses) is a proposed explanation for a phenomenon. A scientific hypothesis must be based on observations and make a testable and reproducible prediction about reality, in a process beginning with an educated guess o ...
. 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
In plane Euclidean geometry, a rhombus (: rhombi or rhombuses) is a quadrilateral whose four sides all have the same length. Another name is equilateral quadrilateral, since equilateral means that all of its sides are equal in length. The rhom ...
. Thus, the mathematician now knows that each assumption by itself is insufficient.
Other mathematical examples
A counterexample to the statement "all
prime number
A prime number (or a prime) is a natural number greater than 1 that is not a Product (mathematics), product of two smaller natural numbers. A natural number greater than 1 that is not prime is called a composite number. For example, 5 is prime ...
s are
odd numbers" is the number 2, as it is a prime number but is not an odd number.
Neither of the numbers 7 or 10 is a counterexample, as neither of them are enough to contradict the statement. In this example, 2 is in fact the only possible counterexample to the statement, even though that alone is enough to contradict the statement. In a similar manner, the statement "All
natural number
In mathematics, the natural numbers are the numbers 0, 1, 2, 3, and so on, possibly excluding 0. Some start counting with 0, defining the natural numbers as the non-negative integers , while others start with 1, defining them as the positive in ...
s 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'' ''n''
th powers were necessary to sum to another ''n''
th 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
Area is the measure of a region's size on a surface. The area of a plane region or ''plane area'' refers to the area of a shape or planar lamina, while '' surface area'' refers to the area of an open surface or the boundary of a three-di ...
, but the
converse is false as shown by counterexamples
shear mapping
In plane geometry, a shear mapping is an affine transformation that displaces each point in a fixed direction by an amount proportional to its signed distance function, signed distance from a given straight line, line parallel (geometry), paral ...
and
squeeze mapping
In linear algebra, a squeeze mapping, also called a squeeze transformation, is a type of linear map that preserves Euclidean area of regions in the Cartesian plane, but is ''not'' a rotation (mathematics), rotation or shear mapping.
For a fixed p ...
.
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 philosophy
In
philosophy
Philosophy ('love of wisdom' in Ancient Greek) is a systematic study of general and fundamental questions concerning topics like existence, reason, knowledge, Value (ethics and social sciences), value, mind, and language. It is a rational an ...
, 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
Plato ( ; Greek language, Greek: , ; born BC, died 348/347 BC) was an ancient Greek philosopher of the Classical Greece, Classical period who is considered a foundational thinker in Western philosophy and an innovator of the writte ...
's ''
Gorgias'',
Callicles, trying to define what it means to say that some people are "better" than others, claims that those who are stronger are better.
Socrates
Socrates (; ; – 399 BC) was a Ancient Greek philosophy, Greek philosopher from Classical Athens, Athens who is credited as the founder of Western philosophy and as among the first moral philosophers of the Ethics, ethical tradition ...
replies that, because of their strength of numbers, the class of common rabble is stronger than the propertied class of nobles, even though the masses are ''
prima facie'' of worse character. Thus Socrates has proposed a counterexample to Callicles' claim, by looking in an area that Callicles perhaps did not expect — groups of people rather than individual persons.
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
Further reading
*
Imre Lakatos, ''
Proofs and Refutations'' (1976) Cambridge University Press
*
James Franklin and Albert Daoud (2011) ''Proof in Mathematics: An Introduction'', Kew, Sydney , ch. 6.
*
Lynn Arthur Steen and
J. Arthur Seebach, Jr. (1978) ''
Counterexamples in Topology'', Springer, New York .
* Joseph P. Romano and Andrew F. Siegel (1986) ''
Counterexamples in Probability and Statistics'' Chapman & Hall, New York, London .
* Gary L. Wise and Eric B. Hall (1993) ''Counterexamples in Probability and Real Analysis''. Oxford University Press, New York .
* Bernard R. Gelbaum, John M. H. Olmsted (2003) ''Counterexamples in Analysis''. Corrected reprint of the second (1965) edition, Dover Publications, Mineola, NY .
* Jordan M. Stoyanov (1997) ''
Counterexamples in Probability'' Second edition, Wiley, Chichester .
* Michael Copobianco & John Mulluzzo (1978) ''Examples and Counterexamples in Graph Theory'', Elsevier North-Holland .
External links
*{{wikiquote-inline
Mathematical terminology
Logic
Interpretation (philosophy)
Methods of proof