We are asked to show \lnot (\mathsf {isRational}(\sqrt 2)). To that end, we assume that \sqrt 2 is rational, and we must prove \bot .
By Lemma [01BV], we may assume a fractional representation \sqrt 2 = m/n for some positive m,n with no prime factors in common. To get a contradiction, we are going to show that under the assumptions m and n are actually both even and therefore both divisible by 2, a prime. First we calculate:
\begin {aligned}
\sqrt 2 &= \frac {m}{n}
\\
2 &= \frac {m^2}{n^2}
\\
2n^2 &= m^2
\end {aligned}
It follows that m^2 is even; because squaring reflects evenness, m is even.
Because 2n^2 = m^2 and m^2 is even, we have some integer l with m = 2l. Therefore:
2n^2 = m^2 = (2l)^2 = 4l^2
Hence we have n^2 = 2l^2, so n^2 is even and by another application of the lemma we conclude that n is even too.
Therefore, m and n are both divisible by the prime 2, which contradicts our assumption that m and n share no prime factors in common.