MathLabs

History and philosophy of mathematics

Formalism, intuitionism and Platonism

Three rival philosophies of what mathematics is: Platonism holds mathematical objects exist independently of us (Gödel's view); Hilbert's Formalism reduces mathematics to consistent symbol manipulation, provable by finitary means; Brouwer's Intuitionism rejects the unrestricted law of excluded middle P∨¬PP \vee \neg P and demands constructive witnesses. We prove the classic 22\sqrt{2}^{\sqrt{2}} irrationality puzzle both non-constructively and constructively, and show the Gödel–Kolmogorov translation embeds classical logic into intuitionistic logic.

IntuitionWhat Kind of Thing Is a Number?

Imagine three mathematicians arguing over whether the number 77 "exists". The Platonist says: yes, 77 exists in an abstract realm of mathematical objects, exactly as real as the number 33 existed before anyone counted to it — we discover theorems the way astronomers discover planets. The Formalist says: mathematics is a game with symbols and rules, like chess; "77" is a meaningful string only because it obeys the axioms of arithmetic, and mathematics is really about which strings of symbols are derivable from which, not about a mystical realm. The Intuitionist says: a mathematical object exists only when we can construct it step by step in our minds; P∨¬PP \vee \neg P is not automatically true, because for some propositions PP we may never possess a construction proving PP nor one refuting it.

Interactive graph showing Platonism, Formalism, Intuitionism as connected nodes
A concept graph: Platonism, Formalism and Intuitionism as three nodes disagreeing about existence, proof and truth — drag to see how each connects to logic, computation and set theory.

SchoolThe Law of Excluded Middle

Definition: Classical vs. Intuitionistic Logic

In classical logic, P∨¬PP \vee \neg P is an axiom: for any proposition PP, either PP holds or ¬P\neg P holds — no third option, and no proof is required to know which one holds. In intuitionistic logic (Brouwer, formalized by Heyting), a proof of P∨QP \vee Q must exhibit either a proof of PP or a proof of QQ; so P∨¬PP \vee \neg P is only accepted when we can actually decide, for the specific PP at hand, which disjunct holds. This is not "classical logic minus one axiom" cosmetically — it changes which theorems are provable and, crucially, makes every proof computationally meaningful: a constructive proof of ∃x.ϕ(x)\exists x. \phi(x) must contain an algorithm producing a witness xx.

P∨¬PP \vee \neg P

This single formula P∨¬PP \vee \neg P is accepted unconditionally by classical logic but only case-by-case by intuitionistic logic. What is provable intuitionistically, for every PP, is the weaker double negation ¬¬(P∨¬P)\neg\neg(P \vee \neg P) — proved as Theorem 2 below.

¬¬(P∨¬P)\neg\neg(P \vee \neg P)
Three schools compared
QuestionPlatonism (Gödel)Formalism (Hilbert)Intuitionism (Brouwer)
Do numbers exist?Yes, in an abstract realm, independent of mindsIrrelevant — only symbol-strings and derivation rules matterOnly if we can mentally construct them
Is P∨¬PP \vee \neg P always true?Yes — truth is objective, independent of proofYes, as a formal axiom within the consistent systemNo — only when a witness or refutation is constructed
What makes a proof valid?Correctly tracking objective mathematical truthA finite, mechanically checkable derivation from axiomsAn explicit construction/algorithm producing the object

UndergraduateHilbert's Program and Gödel's Blow

Hilbert proposed to secure all of mathematics by (1) formalizing it as a system TT of axioms and mechanical inference rules, and (2) proving, using only finitary methods (no infinite objects, no completed infinite totalities — reasoning any Formalist and Intuitionist could both accept), that TT is consistent: it can never derive both ϕ\phi and ¬ϕ\neg\phi, in particular never 0=10 = 1. Gödel's second incompleteness theorem (1931) showed this is impossible for any consistent TT containing arithmetic: TT cannot prove Con(T)\text{Con}(T) using only methods formalizable inside TT itself. Hilbert's specific finitary consistency program died, but formalism as a foundational stance survived — proof theory (Gentzen's consistency proof of arithmetic using transfinite induction up to ε0\varepsilon_0, going beyond strict finitism) and modern proof assistants (Coq, Lean, Isabelle) are its direct descendants.

There exist irrational numbers a,ba, b such that ab∈Qa^b \in \mathbb{Q}.

Why is it true?

This theorem is the sharpest classroom illustration of the Formalist/Platonist vs Intuitionist divide: the classical (non-constructive) proof establishes existence via a case split on an undecided proposition, never telling you which case is real, while the constructive proof exhibits explicit values.

Proof

Classical (non-constructive) proof. Consider 22\sqrt{2}^{\sqrt{2}}. By the law of excluded middle, either 22∈Q\sqrt{2}^{\sqrt{2}} \in \mathbb{Q} or 22∉Q\sqrt{2}^{\sqrt{2}} \notin \mathbb{Q} — we do not need to know which.

Case 1: if 22∈Q\sqrt{2}^{\sqrt{2}} \in \mathbb{Q}, take a=22,b=2a = \sqrt{2}^{\sqrt{2}}, b = \sqrt{2}: both are irrational (2\sqrt{2} is irrational by the classic proof-by-contradiction on parity of p,qp,q in p/q=2p/q=\sqrt 2), and ab=22a^b = \sqrt{2}^{\sqrt{2}} is rational by assumption of this case. Done.

Case 2: if 22∉Q\sqrt{2}^{\sqrt{2}} \notin \mathbb{Q}, take a=22a = \sqrt{2}^{\sqrt{2}} (irrational by this case's assumption) and b=2b = \sqrt{2} (irrational). Then ab=2a^b = 2: ab=(22)2=22=2a^b = (\sqrt{2}^{\sqrt{2}})^{\sqrt{2}} = \sqrt{2}^{2} = 2. Since 2∈Q2 \in \mathbb{Q}, done.

Either way we have exhibited irrational a,ba,b with ab∈Qa^b \in \mathbb{Q} — but the proof never tells us which case holds, i.e. whether 22\sqrt{2}^{\sqrt 2} itself is rational or irrational. A Formalist accepts this immediately (it is a valid derivation in classical first-order logic); an Intuitionist rejects it as a genuine existence proof because it produces no single explicit (a,b)(a,b) pair together with a proof that that specific pair works.

Constructive proof (removes the case split). Take a=2a = \sqrt{2} and b=log⁡29b = \log_2 9. Both are irrational: 2\sqrt 2 irrational as above; log⁡29\log_2 9 irrational because if log⁡29=p/q\log_2 9 = p/q in lowest terms with q>0q>0 then 2p/q=92^{p/q}=9, so 2p=9q2^p = 9^q, but the left side is a power of 22 and the right side a power of 33 (for q≥1q \ge 1, 9q9^q has only the prime factor 33), forcing p=q=0p=q=0, contradicting 9q=2p>19^q=2^p>1.

Now compute explicitly: ab=2log⁡29=212log⁡29=2log⁡23=3a^b = \sqrt{2}^{\log_2 9} = 2^{\frac{1}{2}\log_2 9} = 2^{\log_2 3} = 3, using 2=21/2\sqrt{2} = 2^{1/2}, so a=2,b=log⁡29a = \sqrt{2}, b = \log_2 9 gives ab=(21/2)log⁡29=212log⁡29=2log⁡23=3∈Qa^b = (2^{1/2})^{\log_2 9} = 2^{\frac{1}{2}\log_2 9} = 2^{\log_2 3} = 3 \in \mathbb{Q}.

This time no case split, no unresolved disjunction — Fact 2's original open question (is 22\sqrt2^{\sqrt2} rational?) is bypassed entirely, and any Intuitionist accepts the pair (2,log⁡29)(\sqrt{2}, \log_2 9) as a genuine witness. (Historical footnote: Gelfond–Schneider (1934) later proved 22\sqrt{2}^{\sqrt 2} is in fact irrational — indeed transcendental — resolving Case 2 as the "true" one, but the classical proof above needed no such deep theorem.)

For every proposition PP, the double negation ¬¬(P∨¬P)\neg\neg(P \vee \neg P) is provable in intuitionistic logic — even though P∨¬PP \vee \neg P itself may not be.

Why is it true?

Kolmogorov (1925) and Gödel (1933) independently showed classical logic embeds into intuitionistic logic via this "negative translation": you never regain full LEM, but you can always recover its double negation, which is exactly what is needed to embed classical arithmetic proofs into an intuitionistic system, a key step in later formalized proof assistants.

Proof

Step 1: Fix the intuitionistic rules we may use. Intuitionistic logic keeps modus ponens and the natural deduction rules for ∧,∨,→\wedge, \vee, \to, and defines ¬P:=(P→⊥)\neg P := (P \to \bot) where ⊥\bot is absurdity ("from a proof of ⊥\bot, anything follows" — ex falso quodlibet — is intuitionistically valid). What is not assumed is P∨¬PP \vee \neg P or the double-negation elimination law ¬¬P→P\neg\neg P \to P.

**Step 2: Prove the easy direction P→¬¬PP \to \neg\neg P intuitionistically.** Assume a proof of PP. We must produce a proof of ¬¬P=((P→⊥)→⊥)\neg\neg P = (( P \to \bot) \to \bot), i.e. assume a proof of (P→⊥)(P \to \bot) and derive ⊥\bot. Applying this assumed function to our proof of PP directly yields a proof of ⊥\bot. So P→¬¬PP \to \neg\neg P holds with no case analysis — this direction never needed LEM.

**Step 3: Build a proof of ¬¬(P∨¬P)\neg\neg(P \vee \neg P) directly.** We must show ((P∨¬P)→⊥)→⊥((P \vee \neg P) \to \bot) \to \bot. Assume a proof hh of (P∨¬P)→⊥(P \vee \neg P) \to \bot (i.e. hh refutes the disjunction); we must derive ⊥\bot. Observe that hh, restricted to the right disjunct, gives a function taking any proof of PP to a proof of ⊥\bot — that is exactly a proof of ¬P\neg P (apply hh after wrapping with the right-injection inr\text{inr}). Call this derived proof n:¬Pn : \neg P.

Step 4: Close the loop. Since we have n:¬Pn : \neg P, we can form inr(n):P∨¬P\text{inr}(n) : P \vee \neg P (the right disjunct of P∨¬PP \vee \neg P, instantiated with proof nn). Feed this term back into hh: h(inr(n))h(\text{inr}(n)) is a proof of ⊥\bot, exactly the ⊥\bot we needed to derive in Step 3. This closes the assumption from Step 3, giving a full intuitionistic proof of ¬((P∨¬P)→⊥)\neg((P\vee\neg P)\to\bot), i.e. of ¬¬(P∨¬P)\neg\neg(P \vee \neg P).

*Step 5: Why this does not* give P∨¬PP \vee \neg P back.** Step 4 produces ¬¬(P∨¬P)\neg\neg(P \vee \neg P), but intuitionistically ¬¬Q→Q\neg\neg Q \to Q is not generally derivable (that would require the very LEM-like principle we lack). So the translation is genuinely weaker: it shows classical logic's "law" survives as an irrefutable statement (its negation is always contradictory) even where it cannot be asserted outright — precisely the gap that lets constructive mathematics coexist with, and interpret, classical mathematics via Gödel's negative translation of every formula ϕ↦ϕN\phi \mapsto \phi^N (replacing each atomic formula and each connective with its double-negated intuitionistic analogue), which sends every classically-provable arithmetic sentence to an intuitionistically-provable one.

AdvancedReal-World Applications and Worked Examples

The intuitionist's demand for constructive witnesses turned out to be extraordinarily practical: the Curry–Howard correspondence shows that a constructive proof of ∀x∃y.ϕ(x,y)\forall x \exists y. \phi(x,y) is a program computing yy from xx. This underlies proof assistants like Coq, Agda, and Lean, used to formally verify the CompCert C compiler and the Feit–Thompson theorem, and underlies type systems in functional programming languages (Haskell, ML) where types are propositions and programs are proofs. Formalism's finitary, mechanically-checkable derivations are literally what a computer proof-checker verifies line by line — no appeal to Platonic intuition is needed for the machine to accept a proof.

Example: Extracting an Algorithm from a Constructive Existence Proof

A constructive proof states: "for every n∈Nn \in \mathbb{N}, there exists a unique pair (q,r)(q,r) with 0≤r<n0 \le r < n and given dividend mm, m=qn+rm = qn + r." Show how this proof, if written constructively, directly yields the Euclidean division algorithm.

Solution

Step 1: A constructive existence proof proceeds by induction on mm. Base case m=0m=0: take q=0,r=0q=0, r=0; clearly 0=0⋅n+00 = 0\cdot n + 0 and 0≤0<n0 \le 0 < n (assuming n>0n>0).

Step 2: Inductive step: assume for mm we already have (q,r)(q,r) with m=qn+rm=qn+r, 0≤r<n0\le r<n. For m+1m+1: if r+1<nr+1 < n, take (q,r+1)(q, r+1) — since m+1=qn+(r+1)m+1 = qn+(r+1). If r+1=nr+1 = n, take (q+1,0)(q+1, 0) — since m+1=qn+n=(q+1)n+0m+1 = qn+n = (q+1)n + 0.

Step 3: This inductive proof is already an algorithm: it's a recursive function computing (q,r)(q,r) from mm by repeatedly incrementing, exactly matching the "count up" division algorithm. Extracting a program via Curry–Howard from a proof written in a more efficient style (e.g. binary long division, subtracting successive multiples of nn) yields the fast Euclidean division algorithm used in every processor's ALU, with the proof's structure guaranteeing termination and correctness for free.

Example: Formalizing Fermat's Little Theorem in Lean

Explain why a "proof" of Fermat's Little Theorem (ap≡a(modp)a^p \equiv a \pmod p for prime pp) accepted by the Lean proof assistant is a stronger guarantee of correctness than a proof accepted only by human peer review, from the Formalist's point of view.

Solution

Step 1: A human-reviewed proof relies on reviewers correctly parsing informal mathematical prose, filling in "obvious" steps mentally, and trusting their own background knowledge of definitions — any of which can hide an error (famously, Wiles's first FLT proof attempt had a gap found only after extensive review).

Step 2: A Lean proof is a term in a formal type theory (the Calculus of Inductive Constructions); Lean's kernel — a few thousand lines of trusted code — mechanically re-derives every single inference step from the axioms, with zero appeal to intuition, English prose, or "it's obviously true".

Step 3: This is exactly Hilbert's formalist vision realized in software: mathematics reduced to symbol manipulation checkable by a small, auditable program, sidestepping any need to agree on whether numbers "really exist" (Platonism) or on what counts as a legitimate mental construction (Intuitionism) — the kernel only cares whether the derivation is syntactically valid.

Which philosophy holds that mathematical objects exist independently of the human mind, in an abstract realm, and that mathematicians discover rather than invent theorems?

In the classical proof that irrational a,ba, b exist with ab∈Qa^b \in \mathbb{Q}, what logical principle is invoked to justify the case split on whether 22\sqrt{2}^{\sqrt{2}} is rational?

What did Gödel's second incompleteness theorem prove about Hilbert's formalist consistency program?

The Curry–Howard correspondence, which underlies proof assistants like Coq and Lean, identifies constructive proofs of ∀x∃y.ϕ(x,y)\forall x \exists y.\phi(x,y) with what?

References

  1. Michael Dummett (2000). Elements of Intuitionism
  2. Kurt Gödel (1931). Über formal unentscheidbare Sätze der Principia Mathematica und verwandter Systeme I
  3. A.S. Troelstra, D. van Dalen (1988). Constructivism in Mathematics: An Introduction
  4. The Univalent Foundations Program (2013). Homotopy Type Theory: Univalent Foundations of Mathematics