# Thread: Metric Space , Close and open

1. ## Metric Space , Close and open

We have a, b ∈ R \ Q, a < b.
A = {x ∈ Q: a < x < b}

Show that A is clopen(open and close) in Q

i have being trying to solve this problem in the last 2hours

i need some hints or examples

2. Originally Posted by donsmith
We have a, b ∈ R \ Q, a < b.
A = {x ∈ Q: a < x < b}

Show that A is clopen(open and close) in Q

i have being trying to solve this problem in the last 2hours

i need some hints or examples

Assuming you give $\mathbb{Q}$ the topology inherited from $\mathbb{R}$ then open sets in $\mathbb{Q}$ are those of the form $A \cap \mathbb{Q}$ where $A$ is open in $\mathbb{R}$. Is $A_1=\{ x \in \mathbb{R} : a open? $A_1$ fails to be closed in $\mathbb{R}$ because it lacks $a$ and $b$, but is that a problem in $\mathbb{Q}$?
Assuming you give $\mathbb{Q}$ the topology inherited from $\mathbb{R}$ then open sets in $\mathbb{Q}$ are those of the form $A \cap \mathbb{Q}$ where $A$ is open in $\mathbb{R}$. Is $A_1=\{ x \in \mathbb{R} : a open? $A_1$ fails to be closed in $\mathbb{R}$ because it lacks $a$ and $b$, but is that a problem in $\mathbb{Q}$?