11

One of my math teacher did not like proof by contradiction. He mentioned that it is a indirect way to prove something and not a genuine way to prove a statement.

In elementary math class, there is a following statement: "there is no rational number whose square is 2." I have only seen a proof by contradiction so far.

Is there a direct proof for there is no rational number whose square is 2?

Also I want to hear your opinion about proof method: proof by contradiction. Is this really bad? Should I avoid using this method whenever possible?

5 Answers5

19

As another answer indicated, proof by contradiction is really only objected to by constructivist mathematicians, who use intuitionistic logic. But typically constructivists will accept the usual proof of the irrationality of $\sqrt 2$. If I'm right in assuming that your professor is a constructivist, then I'd imagine that they would accept that proof. This might be confusing. As you say, the irrationality of $\sqrt 2$ seems like a proof by contradiction, so to explain this I'll explain constructivism to the best of my knowledge first.

In intuitionistic logic, one refuses the law of excluded middle:

$$ P \vee \neg P $$

which can be thought of as saying that $\neg (\neg P) \iff P$ for all propositions $P$. In case you're unfamiliar with the jargon, $\neg$ means "not" and $\vee$ means "or." Now, a proof by contradiction is something of the form:

$$ \text{Suppose } \neg P \text{ and derive a contradiction. Then, we must have } P. $$

But there is a very similar proof method called proof by negation that is constructively valid:

$$ \text{Suppose } P \text{ and derive a contradiction. Then, we must have } \neg P. $$

These appear almost identical (and in classical logic they are identical), but the crux is that proof by contradiction uses the law of excluded middle whereas proof by negation does not. Proof by negation essentially comes from the fact that $\neg P$ is the same as $P \implies \text{false}$. This is often taken as the definition of $\neg P$. From this perspective, proof by negation is an application of the deductive principle that to prove $P \implies \text{false}$, one can suppose $P$ and derive $\text{false}$.

The irrationality of $\sqrt 2$ is a proof by negation, not by contradiction. The proof I'm aware of starts with "Suppose $\sqrt 2 = \frac{p}{q}$..." and ends with "...so $p$ and $q$ must both be even, which is a contradiction. Hence, $\sqrt 2$ is irrational." This is a proof by negation and is therefore constructively valid.

Now, as for proof by contradiction, I personally see no issue with it. I accept the law of excluded middle in my work and don't think twice about using proof by contradiction. I think the majority of mathematicians would agree with me on this. However, constructivism is a very real viewpoint and it's worth understanding it. I can't do it much justice myself, but I highly recommend an article written by Andrej Bauer entitled "5 Stages of Accepting Constructive Mathematics." There are many very technical things in this article, but I think you could still learn a lot about constructivism and why (I assume) your professor dislikes proof by contradiction.

  • 2
  • @BillDubuque Thank you for the interesting links! – paul blart math cop Apr 27 '21 at 20:20
  • 3
    It's not clear to me how your proof by negation isn't just the definition of proof by contradiction. Every proof by contradiction I've encountered uses "suppose X" and then proves not X (albeit sometimes in multiple cases). Can you provide an example of a proof by contradiction that is not a proof by negation? – trlkly Apr 28 '21 at 00:55
  • 5
    @trlkly: It's because of an asymmetry between $P$ and $\neg P$. Basically, if you start by assuming $P$ and derive a contradiction, then you have $P \implies \bot$, and can conclude $\neg P$. If you start from $\neg P$ and derive a contradiction, then you can conclude $\neg \neg P$, but double negation elimination is not allowed under intuitionism, so you can't then go on to conclude $P$. – Kevin Apr 28 '21 at 01:04
  • 2
    @Kevin It's still not clear to me what the difference is. You start with "Prove $\sqrt 2$ is irrational," or P. You then set about to prove that $\sqrt 2$ is rational", which is proving the negation of P, aka $\neg P$. That seems to be the strategy that is used in every proof by contradiction I know of. Hence my asking for a counterexample: a proof by contradiction that does not begin that same way. – trlkly Apr 28 '21 at 01:12
  • 1
    @trlkly The difference only appears in intuitionistic logic. $\sqrt 2$ is irrational is a negative proposition. It means $\neg (\sqrt 2 \text{ is rational})$. On the other hand, you can prove that a continuous function $f: [0, 1] \longrightarrow \mathbb R$ is bounded using contradiction. Such a proof would not be by negation, as it starts as "suppose $f$ is unbounded" in an attempt to prove the positive assertion that it is bounded. Again, this positive/negative distinction is a feature of intuitionistic rather than classical logic. The Bauer article I mentioned explains this difference well. – paul blart math cop Apr 28 '21 at 01:42
  • @trlkly: Maybe it will help to think about it this way: Intuitionistic logic (and constructivism generally) is concerned with whether or not you can explicitly construct any objects which you assert to exist. If you assert that $x \in \mathbb Q$, then you are asserting the existence of integers a, b, with $\frac{a}{b} = x$, and constructivism won't let you do that unless you can explicitly construct those integers. But if you assert $x \notin \mathbb Q$, then you're asserting the nonexistence of such integers, and constructivism doesn't have a problem with that. – Kevin Apr 28 '21 at 03:57
  • I'm really not seeing any justification for "assuming that your professor is a constructivist"; I can imagine a lot of (much less exotic) reasons for generally disliking proofs by contradiction; and we're not sure whether the OP has understood them correctly or not. So contextualizing this whole answer in non-classical, constructivist logic seems to be muddying the waters unnecessarily. – Daniel R. Collins Apr 28 '21 at 05:44
  • 2
    @DanielRCollins That's a fair point, my assumption isn't justified. Nevertheless, I do still think a discussion of constructivist math is warranted when talking about objections to proof by contradiction. Admittedly, I approached this problem from the perspective of a student, as I am not a teacher. The idea you brought up in your answer about advising students on proper style and "logical hygiene" (to borrow Bauer's term) is a good one that I did not consider. – paul blart math cop Apr 28 '21 at 06:47
6

I will not answer the question about the possibility of providing a direct proof of the irrationality of $\sqrt2$ since that has been asked (and answered) before.

However, concerning the other question, that's easy: there is nothing bad in proofs by contradiction. Real mathematicians do them all the time. And a proof by contradiction is a real proof.

4

I'm going to agree with others that a proof by contradiction is completely valid, assuming mainstream, classical logic.

That said, if either option is available, a direct proof can often be more explanatory, easier to read, more understandable, and possibly more useful in pointing to other constructed facts later on. Many of us find that students tend to go to proofs by contradiction almost fetishistically, when a direct proof is available and shorter. So some of us try to advise students about that blind spot. It's possible that the OP's instructor was trying to say something similar, and was misunderstood.

Now, here's the thing I really want to add. Consider the standard definitions of the terms "rational" and "irrational".

  • Rational: A real number $r$ is rational if $r = p/q$, for some integers $p$ and $q$, with $q \ne 0$.
  • Irrational: A real number is irrational if it is not rational.

The thing I'd like to draw attention to is that the definition of "rational" has a formula for it, whereas "irrational" does not. So proofs about rationality can be done directly, by manipulating that formula algebraically (or manipulating some other formula into a matching form).

With proofs about a number being irrational, that's not an option. It doesn't have a formula; it only has a proposition containing the "not" operator. So really you have no choice but to use a proof by contradiction: The initial assumption of a negation of your goal statement cancels the other negation, and then you're left with a positive statement about a rational number, for which you have a formula for algebraic manipulation.

So based on the way "irrational" is defined, not-some-other-property, you inherently need to use a proof by contradiction. Again: this assumes standard, classical logic (in which proof by contradiction and "negation" are equivalent).

2

Most people would say there is nothing inherently wrong with proof by contradiction. However in many cases, if a direct proof is available, it may be cleaner and easier to understand than a proof by contradiction.

For instance, a direct proof of the implication $P\Rightarrow Q$ might go $$ P\Rightarrow A\Rightarrow B\Rightarrow C\Rightarrow Q,$$ where $A$, $B$, and $C$ are intermediate statements. If there is an error somewhere in the proof, someone might catch it with a line of thinking "Assuming $P$ is true: $A$ looks true, $B$ looks true, but $C$ looks false so I should look for the error in the step $B\Rightarrow C$". On the other hand, a proof by contradiction might go $$ P\text{ and not }Q\Rightarrow A\Rightarrow B\Rightarrow C\Rightarrow \text{contradiction}. $$ Now, the statements $A$, $B$, and $C$ are all contradictory, so it can be harder to catch a mistake.

An additional reason your teacher may have said this: this is sometimes a tendency for students first learning about proof techniques to overuse proof by contradiction. Many times I have seen student proofs along the lines "Assume $P$ and not $Q$. Then $P\Rightarrow A\Rightarrow B\Rightarrow Q$, which contradicts the assumption that $Q$ is false. Therefore $P\Rightarrow Q$." This is really a direct proof disguised as proof by contradiction, and it is certainly preferable to write is as a direct proof.

Julian Rosen
  • 16,142
1

The only people who have problems with proof by contradiction are constructivists who don't accept the law of the excluded middle. In constructivist math, knowing something is not false is not the same as knowing it's true. However, outside of some computer programming and and abstract logic domains, most mathematicians don't use constructivist math. This is because we are seriously, seriously hamstrung in our tools. We can't even use basic things like the intermediate value theorem!

Alan
  • 16,582
  • can you give examples of computer programming where proofs by contradiction are not accepted? – Asinomás Apr 27 '21 at 16:44
  • @HereToRelax https://en.wikipedia.org/wiki/Constructivism_(philosophy_of_mathematics) – Alan Apr 27 '21 at 16:47
  • I couldnt find one – Asinomás Apr 27 '21 at 16:49
  • @HereToRelax https://en.wikipedia.org/wiki/Theoretical_computer_science has some of the things that were referenced on that page. – Alan Apr 27 '21 at 17:00
  • 1
    @HereToRelax Logical statements can be considered as data types where values of the data type correspond to proofs of the statement. E.g. "$n\in\mathbb{N}$ is even" may be explicated mathematically as $\exists m\in\mathbb{N}.,n=2m$ and corresponds to a data type which contains the actual value of $m$ that "witnesses" that truth. Proofs of negation are procedures operating on data values that somehow show that they can't actually exist. Proof by contradiction (cancelling double negation) doesn't exist as a general principle because there's no general way to "guess" witnesses. – HTNW Apr 28 '21 at 01:28
  • @HereToRelax Proofs in computer programming don't follow conventional logic. For example, if a programming language uses floating point variables as defined by international standard IEE 754, you can not even assume that x = x is true for all possible values of x. – alephzero Apr 28 '21 at 04:20