How to show that the set of all non-decreasing functions $f:\mathbb{Z} \rightarrow \{ 0, 1\}$ is countable?

289 Views Asked by At

Given the set $A = \{f:\mathbb{Z} \rightarrow \{ 0,1 \} |$ if $n \geq m$ then $f(n) \geq f(m) \}$

How would I go about showing $A$ is countable?

Thank you!

2

There are 2 best solutions below

6
On BEST ANSWER

Hint If $f$ is not constant, show that there exists a smallest $k$ such that $f(k)=1$. Here smallest means $\forall m< k$ we have $f(m)\neq 1$.

What can you say about $f$ then?

0
On

We can draw the conclusion:

If the function isn't always $0$ and isn't always $1$, then it must be $0$ in the left and $1$ in the right. The point where the function changes its value has countable number of choices.