I am working on a simple proof involving rational and irrational numbers. Is it safe to assume that if a number is not rational, it is irrational, and that if a number is not irrational, it is rational?
Example: Let $P(x)=\text{x is rational}$ and $Q(x)=\text{x is irrational}$.
Then is it true that $\forall x\ P(x)\text{ xor }Q(x)$?
The real numbers are composed of the rational numbers and the irrational numbers so yes if a number is not one, it is the other.
See Dominik's answer:
Are there real numbers that are neither rational nor irrational?
There he provided this excellent picture: