This question arises from a homework problem asking if $\sup A < \inf B$ means that there is a $c$ such that $a < c < b$ for all $a,b$ in $A,B \subset R$. But that's not that difficult to answer and I was wondering what properties the sets must have for that to be true. Eg. if $A,B \subset U$ what properties must $U$ have such that there must be a $c$.
My inclination is that $U$ must be dense in itself for this to true but I don't really know how to prove this or if this is too strong/weak of a condition.
Thanks for the help