Going through "Elementary Number Theory" by Kenneth Rosen, there is a proof showing $\sqrt2$ is irrational using the well-ordering principle. I believe I've understood it correctly, but I'm uncertain. Would one as such kindly read through my understanding of it and correct correct me if / where, I went wrong.
Proof: Suppose $\sqrt2$ is rational. Then there exist positive integers a,b such that
$$\sqrt2 = a/b$$
and
$$a = b\sqrt2$$
Let S be the set of all such positive integers k, $k = m\sqrt2, m \in N$
That is, S holds all values where that is true, for example $k_1=b\sqrt2, k_2=2b\sqrt2$ and so on.
$$S = \{k\}, k = m\sqrt2, m \in N$$
So I'm creating a set containing all possible integer multiples of a from $\frac ab$, where $\frac ab=\sqrt2$
Then $S$ would be a non-empty set of positive integers.
By the well-ordering principle, $S$ has a smallest element. Let $s$ be the smallest such integer of $S$.
By definition of S,
$$ s = t\sqrt2$$
for some $t, t \in N$
I'm now going to start looking for an element smaller than s, that is part of the set.
Since $$\sqrt2 > 1$$
$$s\sqrt2 > s$$
and $$s\sqrt2 - s > 0$$
That is, $s\sqrt2 - s$ is positive.
Now,
$$s\sqrt2 = (t\sqrt2) * \sqrt2$$ $$= t2$$
which is an integer, and as such $$s\sqrt2 - s = t2 -s$$
and $s\sqrt2 - s$ is a positive integer.
So I've now shown that $s\sqrt2 - s$ is a positive integer. I want to show that it is part of S
But, $$s\sqrt2 - s = s\sqrt2 - t\sqrt2$$
$$= (s - t)\sqrt2$$
and since both s and t are integers, and by definition $s = t\sqrt2$, s is larger than t by a factor of $\sqrt2$, and as such $(s - t)$ is a positive integer.
So I've now shown that $s\sqrt2 - s$ can be written as $m\sqrt2$, so it is also part of S
That being the case, $(s -t)\sqrt2$ is also an element of S.
I now need to show that it is smaller than s, contradicting our initial claim
Noting that $$\sqrt2 < 2$$
We have
$$s\sqrt2 < 2s$$ $$s\sqrt2 - s < 2s - s$$ $$s\sqrt2 - s < s$$ $$s\sqrt2 - t\sqrt2 < s$$ $$(s -t)\sqrt2 < s$$
thus contradicting our initial claim that s is the smallest element of S.
By contradiction, our assumption that there exists positive integers a, b such that $a/b = \sqrt2$ does not hold and $\sqrt2$ is as such, not rational.