Example. Irrationality of \sqrt {2} [005P]
- February 11, 2026
Definition Rational number [005Q]
- February 11, 2026
A rational number is a number that is a ratio of two integers. That is, formally, \mathrm {Rational}(r) \equiv \exists {p}: {\Z }.\; \exists {q}: {\Z }.\; r = \frac {p}{q}.
Remark [009E]
- March 6, 2026
Actually, the definition of the rational numbers is a bit more subtle than this; the above definition does not take into account the fact that, say, 1/2 = 2/4. We will see how to deal with this when we learn about equivalence relations.
Definition Irrational number [009D]
- March 6, 2026
A number is irrational if it is not rational, that is, \mathrm {Irrational}(x) \equiv \neg \mathrm {Rational}(x).
Prove that \sqrt {2} is irrational.
Proof.
- February 11, 2026
Subproof. Irrationality of \sqrt {2} ›
- February 11, 2026
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:
Since p is even, there must be an integer r such that p = 2r. Continuing,
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}.