Counterexample

Logic
meta

Also known as: counter-example, disproof by example

Grade 9-12

View on concept map

A counterexample is a specific instance that satisfies the hypothesis of a claim but contradicts its conclusion, thereby disproving the general statement. One counterexample instantly kills any universal claim โ€” it is the most efficient form of mathematical disproof.

Definition

A counterexample is a specific instance that satisfies the hypothesis of a claim but contradicts its conclusion, thereby disproving the general statement.

๐Ÿ’ก Intuition

One case where it fails is enough to kill a 'for all' claim.

๐ŸŽฏ Core Idea

To disprove \forall x\, P(x), find one x where P(x) is false.

Example

'All primes are odd' โ€” counterexample: 2. 'x^2 > x' โ€” counterexample: x = 0.5.

Formula

\neg(\forall x\, P(x)) \Leftrightarrow \exists x\, \neg P(x)

Notation

To disprove \forall x\, P(x), exhibit a specific x_0 such that \neg P(x_0)

๐ŸŒŸ Why It Matters

One counterexample instantly kills any universal claim โ€” it is the most efficient form of mathematical disproof.

๐Ÿ’ญ Hint When Stuck

Try small, simple values first (0, 1, 2, -1, 1/2). Counterexamples are usually lurking among the simplest cases.

Formal View

\neg(\forall x\,P(x)) \Leftrightarrow \exists x_0\,\neg P(x_0); a single witness x_0 with \neg P(x_0) refutes the universal claim

๐Ÿšง Common Stuck Point

A counterexample disproves "for all" claims, but finding many examples that work does NOT prove a universal statement is true.

โš ๏ธ Common Mistakes

  • Trying to use a counterexample to prove a statement true โ€” counterexamples can only disprove universal claims
  • Finding one example that works and concluding the statement is always true โ€” one positive example does not prove \forall x\, P(x)
  • Giving a counterexample that does not actually satisfy the hypothesis โ€” e.g., 'disproving' a claim about primes by testing a composite number

Frequently Asked Questions

What is Counterexample in Math?

A counterexample is a specific instance that satisfies the hypothesis of a claim but contradicts its conclusion, thereby disproving the general statement.

What is the Counterexample formula?

\neg(\forall x\, P(x)) \Leftrightarrow \exists x\, \neg P(x)

When do you use Counterexample?

Try small, simple values first (0, 1, 2, -1, 1/2). Counterexamples are usually lurking among the simplest cases.

Prerequisites

Next Steps

How Counterexample Connects to Other Ideas

To understand counterexample, you should first be comfortable with quantifiers. Once you have a solid grasp of counterexample, you can move on to proof intuition.