In logic, proof by contradiction is a form of proof that establishes the truth or the validity of a proposition, by showing that assuming the proposition to be false leads to a contradiction.Although it is quite freely used in mathematical proofs, not every school of mathematical thought accepts this kind of nonconstructive proof as universally valid.[1]
More broadly, proof by contradiction is any form of argument that establishes a statement by arriving at a contradiction, even when the initial assumption is not the negation of the statement to be proved. In this general sense, proof by contradiction is also known as indirect proof, proof by assuming the opposite,[2] and reductio ad impossibile.[3]
A mathematical proof employing proof by contradiction usually proceeds as follows:
An important special case is the existence proof by contradiction: in order to demonstrate that an object with a given property exists, we derive a contradiction from the assumption that all objects satisfy the negation of the property.
The principle may be formally expressed as the propositional formula ¬¬P ⇒ P, equivalently (¬P ⇒ ⊥) ⇒ P, which reads: "If assuming P to be false implies falsehood, then P is true."
In natural deduction the principle takes the form of the rule of inference
\cfrac{\vdashlnotlnotP}{\vdashP}
which reads: "If
lnotlnotP
P
In sequent calculus the principle is expressed by the sequent
\Gamma,lnotlnotP\vdashP,\Delta
which reads: "Hypotheses
\Gamma
lnotlnotP
P
\Delta
In classical logic the principle may be justified by the examination of the truth table of the proposition ¬¬P ⇒ P, which demonstrates it to be a tautology:
Another way to justify the principle is to derive it from the law of the excluded middle, as follows. We assume ¬¬P and seek to prove P. By the law of excluded middle P either holds or it does not:
In either case, we established P. It turns out that, conversely, proof by contradiction can be used to derive the law of excluded middle.
In classical sequent calculus LK proof by contradiction is derivable from the inference rules for negation:
\cfrac{\cfrac{\cfrac{ }{\Gamma,P\vdashP,\Delta} (I)}{\Gamma,\vdashlnotP,P,\Delta} ({lnot}R)}{\Gamma,lnotlnotP\vdashP,\Delta} ({lnot}L)
Proof by contradiction is similar to refutation by contradiction,[4] [5] also known as proof of negation, which states that ¬P is proved as follows:
In contrast, proof by contradiction proceeds as follows:
Formally these are not the same, as refutation by contradiction applies only when the proposition to be proved is negated, whereas proof by contradiction may be applied to any proposition whatsoever.[6] In classical logic, where
P
\neg\negP
See main article: Law of excluded middle.
Proof by contradiction is equivalent to the law of the excluded middle, first formulated by Aristotle, which states that either an assertion or its negation is true, P ∨ ¬P.
The law of noncontradiction was first stated as a metaphysical principle by Aristotle. It posits that a proposition and its negation cannot both be true, or equivalently, that a proposition cannot be both true and false. Formally the law of non-contradiction is written as ¬(P ∧ ¬P) and read as "it is not the case that a proposition is both true and false". The law of non-contradiction neither follows nor is implied by the principle of Proof by contradiction.
The laws of excluded middle and non-contradiction together mean that exactly one of P and ¬P is true.
In intuitionistic logic proof by contradiction is not generally valid, although some particular instances can be derived. In contrast, proof of negation and principle of noncontradiction are both intuitionistically valid.
Brouwer–Heyting–Kolmogorov interpretation of proof by contradiction gives the following intuitionistic validity condition:
If we take "method" to mean algorithm, then the condition is not acceptable, as it would allow us to solve the Halting problem. To see how, consider the statement H(M) stating "Turing machine M halts or does not halt". Its negation ¬H(M) states that "M neither halts nor does not halt", which is false by the law of noncontradiction (which is intuitionistically valid). If proof by contradiction were intuitionistically valid, we would obtain an algorithm for deciding whether an arbitrary Turing machine M halts, thereby violating the (intuitionistically valid) proof of non-solvability of the Halting problem.
A proposition P which satisfies
lnotlnotP ⇒ P
P\lorlnotP
n
a
b
An early occurrence of proof by contradiction can be found in Euclid's Elements, Book 1, Proposition 6:[7]
If in a triangle two angles equal one another, then the sides opposite the equal angles also equal one another.
The proof proceeds by assuming that the opposite sides are not equal, and derives a contradiction.
An influential proof by contradiction was given by David Hilbert. HisNullstellensatz states:
If
f1,\ldots,fk
g1,\ldots,gk
f1g1+\ldots+fkgk=1.
Hilbert proved the statement by assuming that there are no such polynomials
g1,\ldots,gk
Euclid's theorem states that there are infinitely many primes. In Euclid's Elements the theorem is stated in Book IX, Proposition 20:[9]
Prime numbers are more than any assigned multitude of prime numbers.
Depending on how we formally write the above statement, the usual proof takes either the form of a proof by contradiction or a refutation by contradiction. We present here the former, see below how the proof is done as refutation by contradiction.
If we formally express Euclid's theorem as saying that for every natural number
n
Given any number
n
n
n
p1,\ldots,pk
P=p1 ⋅ \ldots ⋅ pk
Q=P+1
Q
pi
P
Q
pi
Q-P=1
n
The following examples are commonly referred to as proofs by contradiction, but formally employ refutation by contradiction (and therefore are intuitionistically valid).[10]
Let us take a second look at Euclid's theorem – Book IX, Proposition 20:
Prime numbers are more than any assigned multitude of prime numbers.
We may read the statement as saying that for every finite list of primes, there is another prime not on that list,which is arguably closer to and in the same spirit as Euclid's original formulation. In this case Euclid's proof applies refutation by contradiction at one step, as follows.
Given any finite list of prime numbers
p1,\ldots,pn
P=p1 ⋅ p2 … pn
p
P+1
P+1
p
p
P
P+1
1
The classic proof that the square root of 2 is irrational is a refutation by contradiction.[11] Indeed, we set out to prove the negation ¬ ∃ a, b ∈
N
Proof by infinite descent is a method of proof whereby a smallest object with desired property is shown not to exist as follows:
Such a proof is again a refutation by contradiction. A typical example is the proof of the proposition "there is no smallest positive rational number": assume there is a smallest positive rational number q and derive a contradiction by observing that is even smaller than q and still positive.
Russell's paradox, stated set-theoretically as "there is no set whose elements are precisely those sets that do not contain themselves", is a negated statement whose usual proof is a refutation by contradiction.
Proofs by contradiction sometimes end with the word "Contradiction!". Isaac Barrow and Baermann used the notation Q.E.A., for "quod est absurdum" ("which is absurd"), along the lines of Q.E.D., but this notation is rarely used today.[12] A graphical symbol sometimes used for contradictions is a downwards zigzag arrow "lightning" symbol (U+21AF: ↯), for example in Davey and Priestley.[13] Others sometimes used include a pair of opposing arrows (as
→ \leftarrow
⇒ \Leftarrow
\nleftrightarrow
x x
G. H. Hardy described proof by contradiction as "one of a mathematician's finest weapons", saying "It is a far finer gambit than any chess gambit: a chess player may offer the sacrifice of a pawn or even a piece, but a mathematician offers the game."[16]
In automated theorem proving the method of resolution is based on proof by contradiction. That is, in order to show that a given statement is entailed by given hypotheses, the automated prover assumes the hypotheses and the negation of the statement, and attempts to derive a contradiction.