Live data from Hacker News

Formalising a new proof that the square root of two is irrational

lawrencecpaulson.github.io

11–20 of 94 posts

Re: Formalising a new proof that the square root of two is irrational

#11
post #9

The new proof rephrased: Let K be the set of positive integers k such that k √2 is an integer. Suppose K is non-empty, denote its minimum as k. Consider the positive integer k' = k √2 - k = k (√2 - 1). Then k' < k and k' is also in K since k' √2 = 2 k - k √2, contradicting non-emptyness of K.

That's a lovely proof. It has the "proof by absurdity" feel of the classic Euclidean proof, but without as much fiddling about with even numbers.

Re: Formalising a new proof that the square root of two is irrational

#12
post #9

The new proof rephrased: Let K be the set of positive integers k such that k √2 is an integer. Suppose K is non-empty, denote its minimum as k. Consider the positive integer k' = k √2 - k = k (√2 - 1). Then k' < k and k' is also in K since k' √2 = 2 k - k √2, contradicting non-emptyness of K.

... which contradicts the hypothesis that k is the minimum. Therefore, K is empty.

[deleted]

Re: Formalising a new proof that the square root of two is irrational

#13
post #9

The new proof rephrased: Let K be the set of positive integers k such that k √2 is an integer. Suppose K is non-empty, denote its minimum as k. Consider the positive integer k' = k √2 - k = k (√2 - 1). Then k' < k and k' is also in K since k' √2 = 2 k - k √2, contradicting non-emptyness of K.

As the post points out this involves some claims about infinite sets that are maybe not super obvious to laypeople (every infinite set of natural numbers has a least element). But we can rephrase this to avoid mentioning sets:

For any rational number p/q (with q > 0) there exists a smallest positive natural number k such that k * p/q is natural: Clearly q works, so we check the finitely many numbers 1, ..., q and pick the smallest.

Suppose the square root of 2 is rational. Let k be this smallest number for \sqrt 2, and proceed with the rest of the proof to find 0 < k' < k that also works.

Re: Formalising a new proof that the square root of two is irrational

#14
post #9

The new proof rephrased: Let K be the set of positive integers k such that k √2 is an integer. Suppose K is non-empty, denote its minimum as k. Consider the positive integer k' = k √2 - k = k (√2 - 1). Then k' < k and k' is also in K since k' √2 = 2 k - k √2, contradicting non-emptyness of K.

What am I missing about why this couldn't also argue sqrt(4) is irrational?

Re: Formalising a new proof that the square root of two is irrational

#15
post #9

The new proof rephrased: Let K be the set of positive integers k such that k √2 is an integer. Suppose K is non-empty, denote its minimum as k. Consider the positive integer k' = k √2 - k = k (√2 - 1). Then k' < k and k' is also in K since k' √2 = 2 k - k √2, contradicting non-emptyness of K.

There are some assumptions in there that you haven't made explicit. They're correct, but they make the proof feel a little "cheaper".

1. Let K be the set of positive integers {n: n√2 ∈ ℤ}

2. Supposing K is non-empty, denote its minimum as k.

3. Consider k' = k√2 - k = k(√2 - 1)

Lemma 1: k'

L1. When x > 1, √x Lemma 2: k' is a positive integer

L2a: By hypothesis, k√2 ∈ ℤ.

L2b: By hypothesis, k is a positive integer.

L2c: The difference of any two integers is itself an integer, so k' ∈ ℤ.

L2d: When x > 1, √x > 1. Therefore, √2 > 1, k√2 > k, and so k' = k√2 - k > 0.

4. k'√2 = (k√2 - k)√2 = 2k - k√2 ∈ ℤ. Therefore, k' ∈ K.

5. This contradicts the assumption that k is the minimum element of K. Thus K must be empty.

To make this proof work, we needed some general information about the behavior of the square root function over the entire real domain. (Or, some special knowledge about the numerical value of √2, but from an elegance perspective that's even worse.) This is something you can easily get away with, but it's somewhat annoying. The proof based on "assume this rational number is represented in its simplest form, such that gcd(n,d) = 1" seems a little more self-contained.

Re: Formalising a new proof that the square root of two is irrational

#16
post #9

The new proof rephrased: Let K be the set of positive integers k such that k √2 is an integer. Suppose K is non-empty, denote its minimum as k. Consider the positive integer k' = k √2 - k = k (√2 - 1). Then k' < k and k' is also in K since k' √2 = 2 k - k √2, contradicting non-emptyness of K.

This is similar to the proof of the fundamental theorem of arithmetic (from which the irrationality of the square root of 2 trivially follows): https://en.wikipedia.org/wiki/Fundamental_theorem_of_arithme...

Re: Formalising a new proof that the square root of two is irrational

#17
post #9

The new proof rephrased: Let K be the set of positive integers k such that k √2 is an integer. Suppose K is non-empty, denote its minimum as k. Consider the positive integer k' = k √2 - k = k (√2 - 1). Then k' < k and k' is also in K since k' √2 = 2 k - k √2, contradicting non-emptyness of K.

What am I missing about why this couldn't also argue sqrt(4) is irrational?

The parent comment didn't call it out, but this proof relies on the fact that √2 - 1 is less than 1. (This is necessary when we conclude that k(√2 - 1) is less than k.) The same is not true of √4 - 1.

If you look at my more explicit proof sidethread, the problem occurs in line L1, where instead of going from "√2 < 2" to "√2 - 1 < 1", you'd go from "√4 < 4" to "√4 - 1 < 3" and then you'd be stuck. (My proof won't even work for √3, but it seems safe to say that the problem with √3 is correctable and the problem with √4 is not.)

Re: Formalising a new proof that the square root of two is irrational

#18
Let's have a simple proof so that we don't have to argue about more complicate issues:

For integers p, q with q not 0, suppose

2 = (p/q)^2

Then

2 q^2 = p^2

and the left size has an odd number of factors of 2 and the right side has an even number of factors of 2, a contradiction.

Therefore such p, q do not exist, and 2 does not have a rational square root.

Done.

Re: Formalising a new proof that the square root of two is irrational

#19
post #16
post #9

The new proof rephrased: Let K be the set of positive integers k such that k √2 is an integer. Suppose K is non-empty, denote its minimum as k. Consider the positive integer k' = k √2 - k = k (√2 - 1). Then k' < k and k' is also in K since k' √2 = 2 k - k √2, contradicting non-emptyness of K.

This is similar to the proof of the fundamental theorem of arithmetic (from which the irrationality of the square root of 2 trivially follows): https://en.wikipedia.org/wiki/Fundamental_theorem_of_arithme...

[deleted]

Re: Formalising a new proof that the square root of two is irrational

#20
post #18

Let's have a simple proof so that we don't have to argue about more complicate issues: For integers p, q with q not 0, suppose 2 = (p/q)^2 Then 2 q^2 = p^2 and the left size has an odd number of factors of 2 and the right side has an even number of factors of 2, a contradiction. Therefore such p, q do not exist, and 2 does not have a rational square root. Done.

It is simple if you can assume unique factorization of positive integers [1].

[1] https://en.wikipedia.org/wiki/Fundamental_theorem_of_arithme...

Post reply on HN