Contradiction in proof by contraposition and counterexample
Suppose $\frac{x}{y}$ is rational, then $x \in Z$ and $y \in Z$ by definition of rational
False. If $x=y=\frac12$, then $\frac{x}{y}$ is rational, but $x\notin \mathbb Z$ and $y\notin\mathbb Z$.