Exemplary Structured Proof by Leslie Lamport

The following contains the structured proof as presented by Leslie Lamport’s How to Write a Proof. This example is meant to illustrate how structured proofs are converted from LaTeX to a more interactive format.

You can traverse the proof by using either the mouse, arrow keys, or vi navigation keys.

A proof of the irrationality of √2

A proof of the irrationality of 2

Leslie Lamport
(December 1, 1993)

Theorem  There does not exist r in Q such that r2=2.

Proof sketch: We assume r2=2 for r𝐐 and obtain a contradiction. Writing r=m/n, where m and n have no common divisors (step 11), we deduce from (m/n)2=2 and the lemma that both m and n must be divisible by 2 (12 and 13). Assume:

  1. 1.

    r𝐐

  2. 2.

    r2=2


Prove:  False


11. Choose m, n in Z such that (1) gcd(m,n)=1, and (2) r=(m/n)
21. Choose p, q in Z such that q0 and r=p/q.

Proof: By assumption 0:1.


22. Letm =Δ p/gcd(p,q)
n =Δ q/gcd(p,q)

23. m,n𝐙

Proof21 and definition of m and n.


24. r=m/n
Proofm/n = p/gcd(p,q)q/gcd(p,q) [Definition of m and n]
= p/q [Simple algebra]
= r [By 21]

25. gcd(m,n)=1

Proof: By the definition of the gcd, it suffices to: Assume:

  1. 1.

    s divides m

  2. 2.

    s divides n


Prove:  s=±1


31. sgcd(p,q) divides p.

Proof2:1 and the definition of m.


32. sgcd(p,q) divides q.

Proof2:2 and definition of n.


Q.E.D.

Proof31, 32, and the definition of gcd.


Q.E.D.

12. 2 divides m.
21. m2=2n2

Proof11.1 implies (m/n)2=2.


Q.E.D.

Proof: By 21 and the lemma.


13. 2 divides n.
21. Choose p in Z such that m=2p.

Proof: By 12.


22. n2=2p2
Proof: 2 = (m/n)2 [11.2 and 0:2]
= (2p/n)2 [21]
= 4p2/n2 [Algebra]
from which the result follows easily by algebra.

Q.E.D.

Proof: By 22 and the lemma.


Q.E.D.

Proof11.1, 12, 13, and definition of gcd.