If $A,B \subset \mathbb{R}$ satisfy : $$\begin{cases}\forall\ a \in A,\ \forall\ b \in B,\ a \le b \cr \forall\ \epsilon > 0,\ \exists\ a \in A,\ \exists\ b \in B \text{ such that }\quad b-a \le \epsilon\end{cases}$$ then we say that $A$ and $B$ are adjacent.
Show that $A$ and $B$ are adjacent if and only if : $\sup(A) = \inf(B)$.
My thoughts :
note that :
$$\sup A =: \begin{cases}\forall\ a \in A,\ ,\ a \le \sup A \cr \forall\ \epsilon > 0,\ \exists\ a \in A,\ \text{ such that }\quad \epsilon-\sup A < a\le \epsilon\end{cases}$$
$$\inf B =: \begin{cases}\forall\ b \in B,\ ,\ \inf B \le b \cr \forall\ \epsilon > 0,\ \exists\ b \in B,\ \text{ such that }\quad \inf B \le b < \inf B+\epsilon\end{cases}$$
- To show the first implication :
Assume that $A$ and $B$ are adjacent and let's show that $\sup(A)$, and $\inf(B)$ exists such that $\sup(A) = \inf(B)$.
- Show first that $\sup(A)$, and $\inf(B)$ exists :
Let $b\in B$, we have $$\forall a\in A,\quad a \le b$$ then b is upper bound, $A \neq \emptyset, A \subseteq \mathbb{R}$ then $\sup(A)$ exist.
Let $a\in A$, we have $$\forall b\in B,\quad a \le b$$ then a is Lower bound, $B \neq \emptyset, B \subseteq \mathbb{R}$ then $\inf(B)$ exist.
- Show first that $\sup(A)=\inf(B)$:
we have :$$\forall\ \epsilon > 0,\ \exists\ a \in A,\ \exists\ b \in B \text{ such that }\quad b-a \le \epsilon$$
or $$\forall\ \epsilon > 0,\ \exists\ a,b \in A\times B,\ \text{ such that }$$ $$ \begin{cases}\epsilon-\sup A < a\le \epsilon \cr \inf B \le b < \inf B+\epsilon\end{cases}$$ $$\iff \begin{cases}-\sup A < a\le \sup A-\epsilon\cr \inf B \le b < \inf B+\epsilon\end{cases}$$ $$\iff \inf B-\sup A < b-a < \sup A+\inf B $$ $$\iff \inf B-\sup A < \epsilon \quad \forall \epsilon > 0 $$ i'm stuk here
or we can say :
since $\forall a,b \in A\times B \quad a\leq b $ then $\forall b\in B,\quad \sup A \leq b$ then
$$\sup A \leq \inf B **(1)** $$
we have :$$\forall\ \epsilon > 0,\ \exists\ a \in A,\ \exists\ b \in B \text{ such that }\quad b-a \le \epsilon$$ then :$$\forall\ \epsilon > 0,\ \exists\ a \in A,\ \exists\ b \in B \text{ such that }\quad b<a+\epsilon $$ then :$$\forall\ \epsilon > 0,\ \exists\ a \in A,\ \exists\ b \in B \text{ such that }\quad \inf B \le \sup A + \epsilon $$
Then $$\inf B \le \sup A **(2)**$$
From (1) and (2) we have $$ \inf B=\sup A $$
- To show the second implication :
Assume that $\sup(A)$, and $\inf(B)$ exists such that $\sup(A) = \inf(B)$ and let's show that $A$ and $B$ are adjacent
- To show : $$\forall\ a \in A,\ \forall\ b \in B,\ a \le b $$
from the defintion of $\sup A$ and $\inf B$ we have: $$ \forall\ a \in A,\ ,\ a \le \sup A \text{ and } \forall\ b \in B,\ ,\ \inf B \le b$$ or we know that $\sup(A) = \inf(B)$ then $$\forall\ a \in A,\ \forall\ b \in B,\ a \le \sup A =\inf B\le b $$
- To show : $$ \forall\ \epsilon > 0,\ \exists\ a \in A,\ \exists\ b \in B \text{ such that }\quad b-a \le \epsilon $$
from the defintion of $\sup A$ and $\inf B$ we have: $$ \ \forall\ \epsilon > 0,\ \exists\ a \in A,\ \text{ such that }\quad \epsilon-\sup A < a\le \epsilon \text{ and } \forall\ \epsilon > 0,\ \exists\ b \in B,\ \text{ such that }\quad \inf B \le b < \inf B+\epsilon$$
we can also say that :
$$\forall\ \epsilon > 0,\ \exists\ a,b \in A\times B,\ \text{ tell que } \begin{cases}\frac{ \epsilon }{2}-\sup A < a\le \frac{ \epsilon }{2}\cr \inf B \le b < \inf B+\frac{ \epsilon }{2}\end{cases}$$ any help would be appreciated !!
HINT: If $\sup A<\inf B$ take $\epsilon<\inf B-\sup A$. To the reverse consider definition of $\sup$ and $\inf$ with the value $\epsilon/2$.