"Express the following sentence symbollically, using only quantifiers for real numbers, logical connectives, the order relation < and the symbol Q having the meaning 'x is rational'"
I have to translate the sentence "There is a rational number between any two unequal real numbers". I worked a bit on it and eventually deduced the following:
$$(\forall x,y\in \mathbb{R})[x> y](\exists q\in \mathbb{Q})[q>y \wedge q< x]$$
In light of some comments a correct version of my incorrect statement should be: $$(\forall x,y\in \mathbb{R})[x≠ y \Rightarrow (\exists q\in \mathbb{Q})[q>y \wedge x> q]\vee[y>q \; \wedge \;q>x]]$$
Can you help me understand why my answer is wrong?
Correct is $$(\forall x,y\in \mathbb R)(x\neq y\to \exists q\in \mathbb Q((x>q\land q>y)\lor (y>q \land q> x))).$$
– Git Gud Mar 04 '14 at 01:32