It is easy to prove that one-to-one (bijective) functions $f : \mathbb{N} \to \mathbb{N}$ are uncountable using a diagonalization argument like this:
Suppose that an enumeration $f_1,f_2,f_3,...$ exists; start with $A_1 = \mathbb{N} = \{1,2,3,...\}$ and iteratively define the one-to-one function $g(n)$ in this way:
- $g(2n-1) = \min \{ y \in A_n \mid f_n(2n-1) \neq y \}$;
- $g(2n) = \min \{ y \in A_n \setminus \{g(2n-1)\} \mid f_n(2n) \neq y \}$ and set
- $A_{n+1} = A_n \setminus \{ g(2n-1),g(2n)\}$
I didn't think of it too much, but:
Question 1: Is there a closed form to define a one-to-one "diagonal" function $g$ that differs from every $f_i$ in at least one point? (something like the standard diagonal function that can be use to prove that generic functions $\mathbb{N} \to \mathbb{N}$ are not countable: $g(i) = f_i(i)+1$)
Question 2: If such a closed form doesn't exist, is there a way to formally prove it?