7

I recently just started the MIT openware Mathematics for computer science course. The method of proof by contradiction was introduced in one of the lectures, I did not really accept it easily as the other methods such as the proof by contraposition, proof by cases or by a direct proof. This is because what I thought about is: If I assume A and then I find a contradiction, if all my steps were valid and true then A must not be true, but why must it be false, maybe it’s something else that we just do not know about, this is related to the law of excluded middle.

So why is the law of excluded middle true?

What exactly is classical logic and intuitionist logic?

  • 7
    Excluded middle is no more true than any other axiom of maths. One must choose to either assume it is true (as an axiom of the logic we use to deduce mathematical truths), or choose to reject it. There are some mathematicians (in the minority) who are called intuitionists who do indeed make the choice not to include the law of the excluded middle. – David Sheard Aug 30 '21 at 17:49
  • 4
    If you start with a true statement and apply correct arguments, then you cannot land in a contradiction, assuming you work in a consistent theory. The only remaining possibility is that the original statement is false. It makes no sense to omit this very important tool since many important results can only be derived with a proof by contradiction. Math without this principle is extremely poor. – Peter Aug 30 '21 at 18:01
  • 2
    From it's use over thousands of years, there are no known inconsistencies resulting from its application to logical propositions are unambiguously either true or false. It works. It makes sense. It is self-evident. If you want a challenge, you can try to do math without it, but most will find ordinary math challenging enough as it is. – Dan Christensen Aug 30 '21 at 19:08
  • @DavidSheard What's the motivation for rejecting (or not assuming as true) the law of excluded middle? Someone please give an accessible example in mathematics where if P is not true, it isn't necessarily false. The following quotation from https://plato.stanford.edu/entries/intuitionism/ sounds like sophistry; just because something is not currently proven, or just because we do not currently know its veracity, doesn't mean that it is neither true nor false, does it? : – ryang Aug 30 '21 at 19:09
  • "Indeed, there are propositions, like the Riemann hypothesis, for which there exists currently neither a proof of the statement nor of its negation. Since knowing the negation of a statement in intuitionism means that one can prove that the statement is not true, this implies that both A and ¬A do not hold intuitionistically, at least not at this moment. The dependence of intuitionism on time is essential: statements can become provable in the course of time and therefore might become intuitionistically valid while not having been so before." – ryang Aug 30 '21 at 19:14
  • @RyanG It’s not really an example that’s the motivation, but instead the thought of how can you be so sure ? – Mohamed Shereef Aug 30 '21 at 19:15
  • @RyanG Classical logic, as I understand it, deals with logical propositions that ARE (in the present tense) unambiguously either true or false. – Dan Christensen Aug 30 '21 at 19:27
  • 1
    I hadn't been clear enough: my request for example was a separate question from asking about the motivation of intuitionists. As for being so sure, does one need to be? One can use the law of excluded middle as a reasonable assumption the same way one takes the symmetry of '=' as a built-in given in the language of first-order arithmetic. Since an intuitionist is unwilling assume LEM, is there a stronger reason beyond "I can't be sure that there's no middle position"? To be clear, the domain of discussion here is mathematics and FOL, not philosophy and less "pure" disciplines. – ryang Aug 30 '21 at 19:28
  • @RyanG I can only speculate as to what may have so shook the confidence of the intuitionists to the extant that they abandoned a well established intellectual tradition dating back thousands of years. FWIW it may have been Russell's Paradox that spooked them, forcing them to question their own sanity. Most realized that the problem was not the traditional rules of logic, but the new kid on the block: axiomatic set theory. Others like the intuitionists became suspicious of the very rules of logic. – Dan Christensen Aug 30 '21 at 19:41
  • @RyanG I will just give a very quick comment (and maybe your question is worth posting?): One merit of an intuitionistic logic is that all (intuitionistic) proofs of an existence $\exists x : , p (x)$, when inspected in all detail, are guaranteed to yield an element $x$ with the claimed property $p(x)$. This cannot be said about classical proofs. – Léreau Aug 30 '21 at 19:41
  • @Lereau Classical proofs can do both things at various times. They can show how to construct a concrete example of a required object using the given axioms. Or simply show that an object with the required properties must exist without constructing an actual example, the latter often being all that is needed to proceed. – Dan Christensen Aug 30 '21 at 19:55
  • 1
    @RyanG I cannot speak for the motivation for intuitionism, not subscribing to the idea myself. The point is that Logic is not pre-ordained, and there is nothing that prevents us from defining, and working in, logical systems which admit more than two truth values. Whether you apply this to your own mathematics is a matter of personal preference, much like the axiom of choice. Arguing that people should or should not work with one axiom or another is a waste of everyone's time. If you want an interesting example of a logical system which flirts with these ideas, look up the modal system $G$. – David Sheard Aug 30 '21 at 20:07
  • 2
    @RyanG Regardless of whether you agree with the philosophical arguments of intuitionists, constructive logic has a valuable place in mathematics. Constructive logics are the internal languages of many interesting kinds of categories, especially toposes. You seem to be misunderstanding constructive logic when you request "an accessible example in mathematics where if P is not true, it isn't necessarily false." As I explain in my answer, constructive logic agrees that if $P$ is not true, it is false. – Mark Saving Aug 30 '21 at 21:28

2 Answers2

20

This is an interesting question and a common mistake that people make when discussing constructive logic (which is also known as intuitionist logic, although in some contexts the terms "constructive" and "intuitionist" have slightly different meanings).

Constructive logic is a form of logic where the claim $P \lor \neg P$ is not assumed to be true. Neither are equivalent logical rules such as $\neg \neg P \implies P$ (double negation elimination) and $(\neg P \implies \neg Q) \implies (Q \implies P)$ (proof by contrapositive). Constructive logic does not claim these three logical rules are wrong. It simply takes no position on whether these rules are valid or not.

Classical logic is constructive logic plus accepting the validity of $P \lor \neg P$. Note that this means anything you can prove with constructive logic can also be proved with classical logic.

The proof that you're outlining is basically using the statement

$$(P \implies \bot) \implies \neg P$$

This rule is known as the "proof of negation" rule.

In case you haven't seen the symbol, $\bot$ is the logical symbol for "False".

This principle is completely valid in constructive logic. In fact, in constructive logic, $\neg P$ is typically defined to be the statement $P \implies \bot$. In other words, $\neg P$ is just shorthand for $P \implies \bot$.

So if you start by assuming $P$ and proving $\bot$ (aka starting with $P$ and deriving a contradiction), then you have proved $P \implies \bot$, which is exactly the meaning of $\neg P$.

The principle that most people have trouble with is the following one: $\bot \implies P$. This principle is known as "ex falso quodlibet" or "the principle of explosion". I personally call it "false implies everything".

This principle is a valid principle in constructive logic. It is always the case that $\bot \implies P$, no matter what $P$ is.

Now if we start with $P$ and derive a contradiction, we have actually started with $P$ and proved $\bot$. This means we have proved $P \implies \bot$. We also get $\bot \implies P$ for free from the "ex falso" rule. So we have actually shown $P \iff \bot$.

In other words, if we start with $P$ and derive a contradiction, we have shown that $P$ and "false" are logically equivalent. That is, we have shown that $P$ is false.

What is not valid in constructive logic is "proof by contradiction". This is the rule stating that

$$(\neg P \implies \bot) \implies P$$

Or, in other words, $\neg \neg P \implies P$. This rule is also known as "double negation elimination".

The "law of excluded middle", which is the principle $P \lor \neg P$, is actually misnamed. In fact, even without the "law of excluded middle", we can still prove that $P$ cannot be neither true nor false. In other words, we can still prove that $P$ doesn't take a "middle value" which is both not true and not false.

Formally speaking, the statement "It cannot be the case that both $P$ is not true, and $P$ is not false" can be stated succinctly as $\neg (\neg P \land \neg \neg P)$. This is because "$P$ is not true" translates to $\neg P$, and "$P$ is not false" translates to $\neg \neg P$.

The statement $\neg (\neg P \land \neg \neg P)$ is just a special case of the Law of Noncontradiction, which states $\neg (Q \land \neg Q)$. The Law of Noncontradiction is always true in constructive logic. In fact, if we expand all the $\neg$s in $\neg (Q \land \neg Q)$ to $\implies \bot$, we get the statement $(Q \land (Q \implies \bot)) \implies \bot$, which is just a special case of modus ponens and is quite straightforward to prove.

I hope this helps! Please comment if you have any questions.

Mark Saving
  • 31,855
6

First things first: Proof by contradiction, double negation elimination ($\mathsf{DNE}$), the law of excluded middle ($\mathsf{LEM}$) and the contraposition principle ($\mathsf{CP}$) are all equivalent. This can be seen from the viewpoint of intuitionistic logic and I have once written down a few of these equivalence proofs in another answer.

Now to "what is the difference between classical and intuitionistic logic?".

To give a conveniently concise answer to this, let's have a look at the following very formal but precise way to specify the deduction rules of intuitionistic propositional logic (IPL):

enter image description here

To give a very quick explanation: Every rule states at the top of the line what you need to show in order to conclude what is below the line. Presenting rules in this way and building proofs with them is know as the system of natural deduction and if you want to know more about this, I can really recommend the write-up on the Lean prover page as a starting point.

So what is now the difference between IPL and classical propositional logic (CPL)? It's simply that CPL has one more rule compared to IPL, namely $\mathsf{DNE}$: $$ \frac{\Gamma \vdash \neg \neg \phi}{\Gamma \vdash \phi} $$ And that's it! The difference is the presence or absence of one single rule and this carries over to the respective predicate logic. This has major consequences to how much information a proof contains, as in classical logic we can give proofs that are themselves non-informative. This is not possible - by design - in intuitionistic logic. And again: all it takes is to leave out one rule.

It can be shown that rule we left out ($\mathsf{DNE}$) cannot be derived from the rules that are still present, but this requires some more work in the form of e.g. a semantics for the logic.

Overall, from the natural deduction viewpoint, this means $\mathsf{LEM}$ is a valid principle in classical logic, as it is build in from the start. Its validity can be further justified by looking at the classical semantics, showing that CPL constitutes a sound logical system. IPL can neither prove nor disprove $\mathsf{LEM}$/$\mathsf{DNE}$, it simply opts to not assume it, and as a benefit from this, intuitionistic proofs are always informative.

(Instead of $\mathsf{DNE}$ we could also have added a rule expressing $\mathsf{LEM}$, $\mathsf{CP}$ or proof by contradiction as they are equivalent by what I mentioned at the start.)

Léreau
  • 3,015
  • What do you mean by “ in classical logic we can give proofs that are themselves non-informative”, is this not the case in intuitionistic logic? – Mohamed Shereef Aug 30 '21 at 20:01
  • 2
    @MohamedShereef No it's not the case for intuitionistic logic; and that is the whole reason people are interested in these kinds of logics. – Léreau Aug 30 '21 at 20:09