Let $A = (2,5) \cup \{7\}$. Find the supremum and infimum of $A$.
Firstly, I claim that $\sup A = 7$ and $\inf A = 2$. But, I got confused that in $A$, there is a singleton set. How to approach the supremum? And also, the infimum?
An approach that I know is using this theorem:
Let $S \subseteq \Bbb R$ and suppose that $s:= \sup S$ belongs to $S$. If $u \notin S$, then $\sup(S \cup \{u\}) = \sup \{s,u\}$.
Thanks in advanced.