Suppose we have a countable set $X$, say $X=\mathbb{N}$, and let $Q \colon X \rightarrow \{0,1\}$ be a function. Is $$\min \{x \in X \colon Q(x)=1\}$$ the same as $$ \inf \{x \in X \colon Q(x)=1\}.$$
What about $\max$ and $\sup$? And for uncountable sets it is not the same?
Thanks for your help.