Since we know \mathrm {Rational}(\sqrt {2}), by definition that means there exist some integers p and q such that \sqrt {2} = \frac {p}{q}. We may further assume that p and q have no common factors, that is, p/q is reduced to lowest terms (if it were not, we could just cancel common factors until none are left, which would not affect equality with \sqrt 2). We can reason as follows:
\sqrt {2} = p/q
\rightarrow \quad \quad \quad { Multiply both sides by
q }
q \sqrt {2} = p
\rightarrow \quad \quad \quad { Square both sides }
2q^2 = p^2
\rightarrow \quad \quad \quad { Definition }
\mathrm {Even}(p^2)
\rightarrow \quad \quad \quad { Contrapositive of
previous example }
\mathrm {Even}(p)
Since p is even, there must be an integer r such that p = 2r. Continuing,
2q^2 = p^2
\rightarrow \quad \quad \quad { Substitute
p = 2r }
2q^2 = (2r)^2
\rightarrow \quad \quad \quad { Expand }
2q^2 = 4r^2
\rightarrow \quad \quad \quad { Divide both sides by
2 }
q^2 = 2r^2
But this implies—using identical reasoning as for p—that q is even as well. Hence p and q are both even and have a factor of 2 in common. But we started out by assuming that p and q share no common factors! Thus we have a contradiction, that is, we have proved \mathsf {F}: at this point we know that p and q both do and do not have a common factor, and P \land \neg P \equiv \mathsf {F}.