I read in this post that $\sup(f(x)+g(x))\le\sup f(x)+\sup g(x)$ (whenever all these quantities are defined) whereas I read somewhere that $\sup (A+B)=\sup A + \sup B$ where $A, B$ are real-valued, bounded sets.
Can someone please explain why this discrepancy exists (if it does at all)? Where is there an inequality in one case and an equality in the other?
Edit: Let $S=\{a+b: a\in A, b\in B\}$. Then $\sup(A+B)=\sup S$.